From 373d6e1e854b4b288455c2c47224be8a6dddca5d Mon Sep 17 00:00:00 2001 From: cwchen <1048842385@qq.com> Date: Mon, 11 Nov 2024 09:35:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E8=B4=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- js/demandPlan/child/early_info_list.js | 1 - js/demandPlan/child/excess_inventory_list.js | 12 +++++++----- .../child/unplanned_quantity_list.js | 19 +++++++------------ 3 files changed, 14 insertions(+), 18 deletions(-) diff --git a/js/demandPlan/child/early_info_list.js b/js/demandPlan/child/early_info_list.js index 7a4902d..7379025 100644 --- a/js/demandPlan/child/early_info_list.js +++ b/js/demandPlan/child/early_info_list.js @@ -8,7 +8,6 @@ function setParams(type) { element = layui.element; // tab 切换事件 element.on('tab(demo-filter-tab)', function (data) { - let value = $(this).attr('value'); element.on('tab(demo-filter-tab)', function (data) { let value = $(this).attr('value'); if (value === '1') { // 超库存量 diff --git a/js/demandPlan/child/excess_inventory_list.js b/js/demandPlan/child/excess_inventory_list.js index e4912d0..1a4b4c1 100644 --- a/js/demandPlan/child/excess_inventory_list.js +++ b/js/demandPlan/child/excess_inventory_list.js @@ -34,6 +34,7 @@ function reloadTable(pageNum) { encryptedData: JSON.stringify({ 'name': $('#name').val(), 'module': $('#module').val(), + type:1 }), }, }, @@ -49,11 +50,12 @@ function initTable() { authorization: sessionStorage.getItem("gz-token"), }, height: "full-140", - url: dataUrl + "backstage/planOut/getPorInfoDetail2", + url: dataUrl + "backstage/planOut/getWarnInfoPage", where: { encryptedData: JSON.stringify({ 'name': $('#name').val(), 'module': $('#module').val(), + type:1 }), }, request: { @@ -116,23 +118,23 @@ function initTable() { }, }, { - field: "needNum", + field: "num", title: "库存量", width: '10%', unresize: true, align: "center", templet: function (d) { - return setNumColor(d.needNum,2); + return setNumColor(d.num,2); }, }, { - field: "needNum", + field: "diff", title: "超出量", width: '10%', unresize: true, align: "center", templet: function (d) { - return setNumColor(d.needNum,3); + return setNumColor(d.diff,3); }, }, { diff --git a/js/demandPlan/child/unplanned_quantity_list.js b/js/demandPlan/child/unplanned_quantity_list.js index 5aa0268..ca156e9 100644 --- a/js/demandPlan/child/unplanned_quantity_list.js +++ b/js/demandPlan/child/unplanned_quantity_list.js @@ -34,6 +34,7 @@ function reloadTable(pageNum) { encryptedData: JSON.stringify({ 'name': $('#name').val(), 'module': $('#module').val(), + type:2 }), }, }, @@ -49,11 +50,12 @@ function initTable() { authorization: sessionStorage.getItem("gz-token"), }, height: "full-140", - url: dataUrl + "backstage/planOut/getPorInfoDetail2", + url: dataUrl + "backstage/planOut/getWarnInfoPage", where: { encryptedData: JSON.stringify({ 'name': $('#name').val(), 'module': $('#module').val(), + type:2 }), }, request: { @@ -107,26 +109,19 @@ function initTable() { align: "center", }, { - field: "needNum", + field: "tzNum", title: "计划外发货量", width: '10%', unresize: true, align: "center", templet: function (d) { - return setNumColor(d.needNum, 4); + return setNumColor(d.tzNum, 4); }, }, { - field: "status", - title: "需要日期", - width: '10%', - unresize: true, - align: "center", - }, - { - field: "status", + field: "proName", title: "工程名称", - width: '10%', + width: '20%', unresize: true, align: "center", },