This commit is contained in:
parent
b29c60eaad
commit
373d6e1e85
|
|
@ -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') { // 超库存量
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
},
|
||||
},
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue