diff --git a/api/init.json b/api/init.json index 1dec006..da04910 100644 --- a/api/init.json +++ b/api/init.json @@ -34,7 +34,7 @@ "target": "_self" }, { - "title": "机具公司发货", + "title": "发货统计", "href": "page/demandPlan/delivery_list.html", "icon": "fa fa-tachometer", "target": "_self" diff --git a/index.html b/index.html index 3003e65..5d7fdaf 100644 --- a/index.html +++ b/index.html @@ -171,7 +171,7 @@ errorFn(xhr, status, error) }, null); } else { - // console.log('走的自己登录'); + console.log('走的自己登录'); // login(miniAdmin); window.location = 'page/401.html'; } diff --git a/js/accessory/child/accessory_apply_add.js b/js/accessory/child/accessory_apply_add.js index d3e5359..3097e48 100644 --- a/js/accessory/child/accessory_apply_add.js +++ b/js/accessory/child/accessory_apply_add.js @@ -22,7 +22,9 @@ function setParams(obj) { // 获取sessionStorage中的数据并转换为对象 var user = JSON.parse(sessionStorage.getItem('us')); // 设置元素值 - $('#projectPart').val(user.username); + if (user != null && user.username != null) { + $('#projectPart').val(user.username); + } laydate.render({ elem: '#needTime' }); diff --git a/js/demandPlan/child/apply_plan_detail.js b/js/demandPlan/child/apply_plan_detail.js index ba01ddd..621aeea 100644 --- a/js/demandPlan/child/apply_plan_detail.js +++ b/js/demandPlan/child/apply_plan_detail.js @@ -160,8 +160,8 @@ function initTable() { }, { field: "backDate", - width: '10%', - title: "退还日期", + width: '15%', + title: "预计使用时间", unresize: true, align: "center", sort:true, @@ -169,7 +169,7 @@ function initTable() { }, { field: "remarks", - width: '15%', + width: '10%', title: "备注", unresize: true, align: "center", diff --git a/js/demandPlan/child/apply_plan_edit_form.js b/js/demandPlan/child/apply_plan_edit_form.js index 2cef8c2..ec4955b 100644 --- a/js/demandPlan/child/apply_plan_edit_form.js +++ b/js/demandPlan/child/apply_plan_edit_form.js @@ -141,9 +141,9 @@ function submitApply(data) { if (parseInt(list[i].needNum) === 0) { return layer.msg('机具明细,第' + (i + 1) + '行,未填写需用量', { icon: 7 }); } - if (parseInt(list[i].times) === 0) { - return layer.msg('机具明细,第' + (i + 1) + '行,未填写需用天数', { icon: 7 }); - } + // if (parseInt(list[i].times) === 0) { + // return layer.msg('机具明细,第' + (i + 1) + '行,未填写需用天数', { icon: 7 }); + // } } data.field.id = objParam.id; data.field.jsonData = JSON.stringify(list); diff --git a/js/demandPlan/child/apply_plan_form.js b/js/demandPlan/child/apply_plan_form.js index ab2986e..bc5d22c 100644 --- a/js/demandPlan/child/apply_plan_form.js +++ b/js/demandPlan/child/apply_plan_form.js @@ -232,7 +232,7 @@ function setFormInput(value, type) { if (type === 1) { // 需用量 html += ''; } else if (type === 2) { // 需用天数 - html += ''; + html += ''; } else if (type === 3) { // 备注 html += ''; } diff --git a/js/demandPlan/child/choose_tool_type_list.js b/js/demandPlan/child/choose_tool_type_list.js index 6eb73dc..d35681d 100644 --- a/js/demandPlan/child/choose_tool_type_list.js +++ b/js/demandPlan/child/choose_tool_type_list.js @@ -156,7 +156,7 @@ function initTable() { { field: "times", width: '15%', - title: " * 需用天数", + title: " * 预计使用时间", unresize: true, align: "center", edit: 'text', diff --git a/js/demandPlan/child/delivery_all_list.js b/js/demandPlan/child/delivery_all_list.js index 12135ae..db173c1 100644 --- a/js/demandPlan/child/delivery_all_list.js +++ b/js/demandPlan/child/delivery_all_list.js @@ -177,7 +177,7 @@ function initTable() { }, { field: "status", - title: "进度", + title: "发货进度", width: '13%', unresize: true, align: "center", @@ -333,7 +333,7 @@ function exportExcel() { // 打印 function print() { - Print('#table-box', { + Print('#layuimini-container', { onStart: function () { console.log('onStart', new Date()) }, diff --git a/js/demandPlan/child/delivery_detail_list.js b/js/demandPlan/child/delivery_detail_list.js index c3e1a0f..fd27ee1 100644 --- a/js/demandPlan/child/delivery_detail_list.js +++ b/js/demandPlan/child/delivery_detail_list.js @@ -32,7 +32,7 @@ function getShipmentBatch(list) { if (list && list.length > 0) { dataList.push({ name: '全部', id: '' }) $.each(list, function (index, item) { - dataList.push({ name: '第' + numToChinese(index + 1) + '批', id: item.id, tiem: item.createDay }) + dataList.push({ name: '领料单', id: item.id, tiem: item.createDay }) }); dataList.push({ name: '待发货', id: '0' }) } else { diff --git a/js/demandPlan/delivery_list.js b/js/demandPlan/delivery_list.js index 7d8fc19..03ac36c 100644 --- a/js/demandPlan/delivery_list.js +++ b/js/demandPlan/delivery_list.js @@ -5,22 +5,6 @@ layui.use(["form", "table"], function () { form = layui.form; table = layui.table; element = layui.element; - // 动态插入进度条元素 - /* $("#num-progress").after(` -
-
-
- `); - $("#num-progress2").after(` -
-
-
- `); - $("#num-progress3").after(` -
-
-
- `); */ element.render(); initTable(); getStatistics(); @@ -45,25 +29,7 @@ function getStatistics() { $('#fhNum').html(obj.fhNum); $('#overNum').html(obj.overNum); $('#noPlanNum').html(obj.noPlanNum); - /* $('#dfh').html(obj.dfh + '%'); - $('#yfh').html(obj.yfh + '%'); - let dfh = obj.dfh; - let yfh = obj.yfh; - $("#num-progress").after(` -
-
-
- `); - $("#num-progress2").after(` -
-
-
- `); - $("#num-progress3").after(` -
-
-
- `); */ + } } @@ -202,7 +168,7 @@ function initTable() { { field: "progress", width: '19.85%', - title: "进度", + title: "发货进度", unresize: true, align: "center", templet: schedule, @@ -215,7 +181,7 @@ function initTable() { templet: function (d) { let html = ""; html += "详情"; - html += "
|
发货"; + // html += "
|
发货"; return html; }, }, @@ -276,6 +242,9 @@ function schedule(d) { d.progress = parseFloat(d.progress); d.filter == undefined ? (d.filter = d.LAY_NUM) : d.filter; d.progress == undefined ? (d.progress = 100) : d.progress; + if (d.needNum === 0) { + d.progress = 100; + } var color = "layui-bg-orange"; if (d.progress < 100) { color = "layui-bg-orange"; diff --git a/js/public.js b/js/public.js index dbce75a..c7158f4 100644 --- a/js/public.js +++ b/js/public.js @@ -3,7 +3,7 @@ const fileUrl = 'http://127.0.0.1:21995/statics'; // 文件路径 const signFileUrl = 'http://127.0.0.1:21995/statics'; // 签名文件路径 const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 */ -const dataUrl = 'http://192.168.0.14:21999/'; // 数据请求路径 +const dataUrl = 'http://127.0.0.1:21521/'; // 数据请求路径 const fileUrl = 'http://192.168.0.14:21999/statics'; // 文件路径 const viewFileUrl = 'http://192.168.0.14:8012/onlinePreview?url=' //14服务器预览文件 diff --git a/page/accessory/child/accessory_apply_add.html b/page/accessory/child/accessory_apply_add.html index c850185..36aac4f 100644 --- a/page/accessory/child/accessory_apply_add.html +++ b/page/accessory/child/accessory_apply_add.html @@ -20,7 +20,7 @@
+ lay-verify="required" maxlength="50">
diff --git a/page/demandPlan/child/apply_plan_edit_form.html b/page/demandPlan/child/apply_plan_edit_form.html index 24b6ec8..f20e5e4 100644 --- a/page/demandPlan/child/apply_plan_edit_form.html +++ b/page/demandPlan/child/apply_plan_edit_form.html @@ -113,8 +113,8 @@ 物机名称 规格 单位 - *需用量 - *需用天数 + *需用量 + *预计使用时间 备注 diff --git a/page/demandPlan/child/apply_plan_form.html b/page/demandPlan/child/apply_plan_form.html index 50a35b2..5247354 100644 --- a/page/demandPlan/child/apply_plan_form.html +++ b/page/demandPlan/child/apply_plan_form.html @@ -43,13 +43,12 @@ lay-verify="required" maxlength="50" lay-affix="clear"> -
- -
- -
-
+ + + + + +
@@ -114,7 +113,7 @@ 规格 单位 *需用量 - *需用天数 + *预计使用时间 备注 diff --git a/page/demandPlan/child/delivery_all_list.html b/page/demandPlan/child/delivery_all_list.html index bc9fa7b..4e78bc9 100644 --- a/page/demandPlan/child/delivery_all_list.html +++ b/page/demandPlan/child/delivery_all_list.html @@ -48,8 +48,8 @@ class="layui-icon layui-icon-refresh"> 重 置 - + +
@@ -66,5 +66,5 @@ - + \ No newline at end of file diff --git a/page/demandPlan/child/delivery_detail_list.html b/page/demandPlan/child/delivery_detail_list.html index f1878c1..f25842d 100644 --- a/page/demandPlan/child/delivery_detail_list.html +++ b/page/demandPlan/child/delivery_detail_list.html @@ -27,6 +27,7 @@

计划数量

0

+