From 097e31fa602807dbd089df673122a5b51638e41c Mon Sep 17 00:00:00 2001 From: syruan <321359594@qq.com> Date: Mon, 24 Mar 2025 15:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/init.json | 2 +- index.html | 2 +- js/accessory/child/accessory_apply_add.js | 4 +- js/demandPlan/child/apply_plan_detail.js | 6 +-- js/demandPlan/child/apply_plan_edit_form.js | 6 +-- js/demandPlan/child/apply_plan_form.js | 2 +- js/demandPlan/child/choose_tool_type_list.js | 2 +- js/demandPlan/child/delivery_all_list.js | 4 +- js/demandPlan/child/delivery_detail_list.js | 2 +- js/demandPlan/delivery_list.js | 43 +++---------------- js/public.js | 2 +- page/accessory/child/accessory_apply_add.html | 2 +- .../child/apply_plan_edit_form.html | 4 +- page/demandPlan/child/apply_plan_form.html | 15 +++---- page/demandPlan/child/delivery_all_list.html | 6 +-- .../child/delivery_detail_list.html | 2 + 16 files changed, 38 insertions(+), 66 deletions(-) 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(` -