This commit is contained in:
cwchen 2024-11-11 09:35:38 +08:00
parent b29c60eaad
commit 373d6e1e85
3 changed files with 14 additions and 18 deletions

View File

@ -8,7 +8,6 @@ function setParams(type) {
element = layui.element; element = layui.element;
// tab 切换事件 // tab 切换事件
element.on('tab(demo-filter-tab)', function (data) { element.on('tab(demo-filter-tab)', function (data) {
let value = $(this).attr('value');
element.on('tab(demo-filter-tab)', function (data) { element.on('tab(demo-filter-tab)', function (data) {
let value = $(this).attr('value'); let value = $(this).attr('value');
if (value === '1') { // 超库存量 if (value === '1') { // 超库存量

View File

@ -34,6 +34,7 @@ function reloadTable(pageNum) {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'name': $('#name').val(), 'name': $('#name').val(),
'module': $('#module').val(), 'module': $('#module').val(),
type:1
}), }),
}, },
}, },
@ -49,11 +50,12 @@ function initTable() {
authorization: sessionStorage.getItem("gz-token"), authorization: sessionStorage.getItem("gz-token"),
}, },
height: "full-140", height: "full-140",
url: dataUrl + "backstage/planOut/getPorInfoDetail2", url: dataUrl + "backstage/planOut/getWarnInfoPage",
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'name': $('#name').val(), 'name': $('#name').val(),
'module': $('#module').val(), 'module': $('#module').val(),
type:1
}), }),
}, },
request: { request: {
@ -116,23 +118,23 @@ function initTable() {
}, },
}, },
{ {
field: "needNum", field: "num",
title: "库存量", title: "库存量",
width: '10%', width: '10%',
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) { templet: function (d) {
return setNumColor(d.needNum,2); return setNumColor(d.num,2);
}, },
}, },
{ {
field: "needNum", field: "diff",
title: "超出量", title: "超出量",
width: '10%', width: '10%',
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) { templet: function (d) {
return setNumColor(d.needNum,3); return setNumColor(d.diff,3);
}, },
}, },
{ {

View File

@ -34,6 +34,7 @@ function reloadTable(pageNum) {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'name': $('#name').val(), 'name': $('#name').val(),
'module': $('#module').val(), 'module': $('#module').val(),
type:2
}), }),
}, },
}, },
@ -49,11 +50,12 @@ function initTable() {
authorization: sessionStorage.getItem("gz-token"), authorization: sessionStorage.getItem("gz-token"),
}, },
height: "full-140", height: "full-140",
url: dataUrl + "backstage/planOut/getPorInfoDetail2", url: dataUrl + "backstage/planOut/getWarnInfoPage",
where: { where: {
encryptedData: JSON.stringify({ encryptedData: JSON.stringify({
'name': $('#name').val(), 'name': $('#name').val(),
'module': $('#module').val(), 'module': $('#module').val(),
type:2
}), }),
}, },
request: { request: {
@ -107,26 +109,19 @@ function initTable() {
align: "center", align: "center",
}, },
{ {
field: "needNum", field: "tzNum",
title: "计划外发货量", title: "计划外发货量",
width: '10%', width: '10%',
unresize: true, unresize: true,
align: "center", align: "center",
templet: function (d) { templet: function (d) {
return setNumColor(d.needNum, 4); return setNumColor(d.tzNum, 4);
}, },
}, },
{ {
field: "status", field: "proName",
title: "需要日期",
width: '10%',
unresize: true,
align: "center",
},
{
field: "status",
title: "工程名称", title: "工程名称",
width: '10%', width: '20%',
unresize: true, unresize: true,
align: "center", align: "center",
}, },