This commit is contained in:
jiask 2026-02-06 11:12:47 +08:00
parent cf226ddae7
commit ce6022dff3
1 changed files with 30 additions and 31 deletions

View File

@ -98,15 +98,14 @@
var typed=5;
var urld='${bonuspath}/backstage/indexHomeDetails/getNewlyStored';
var colsd=[[
{type: 'numbers', title: '序号', width: 80},
{field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
{type: 'numbers', title: '序号', width: 100},
{field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
{field: 'maType', title: '机具名称', width: 200},
{field: 'maName', title: '规格型号', width: 200},
{field: 'maUnit', title: '单位', width: 90},
{field: 'maTotal', title: '保有量', width: 90},
{field: 'storageNum', title: '新购入库量', width: 120},
{field: 'maType', title: '机具名称', width: 450},
{field: 'maName', title: '规格型号', width: 300},
{field: 'maUnit', title: '单位', width: 150},
{field: 'storageNum', title: '新购入库量', width: 200},
]];
// 渲染表单
form.render('select');
@ -114,50 +113,50 @@
if(type==2){
typed=3;
colsd=[[
{type: 'numbers', title: '序号', width: 80},
{field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
{type: 'numbers', title: '序号', width: 100},
{field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
{field: 'maType', title: '机具名称', width: 200},
{field: 'maName', title: '规格型号', width: 200},
{field: 'maUnit', title: '单位', width: 90},
{field: 'storageNum', title: '修试后入库量', width: 120},
{field: 'maType', title: '机具名称', width: 450},
{field: 'maName', title: '规格型号', width: 300},
{field: 'maUnit', title: '单位', width: 150},
{field: 'storageNum', title: '修试后入库量', width: 200},
]];
}else if(type==4){
typed=3;
colsd=[[
{type: 'numbers', title: '序号', width: 80},
{field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
{type: 'numbers', title: '序号', width: 100},
{field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
{field: 'maType', title: '机具名称', width: 200},
{field: 'maName', title: '规格型号', width: 200},
{field: 'maUnit', title: '单位', width: 90},
{field: 'storageNum', title: '退料入库量', width: 120}
{field: 'maType', title: '机具名称', width: 450},
{field: 'maName', title: '规格型号', width: 300},
{field: 'maUnit', title: '单位', width: 150},
{field: 'storageNum', title: '退料入库量', width: 200}
]];
}else if(type==1){
typed=5;
colsd=[[
{type: 'numbers', title: '序号', width: 80},
{field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
{type: 'numbers', title: '序号', width: 100},
{field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
{field: 'maType', title: '机具名称', width: 200},
{field: 'maName', title: '规格型号', width: 200},
{field: 'maUnit', title: '单位', width: 90},
{field: 'storageNum', title: '新购入库量', width: 120},
{field: 'maType', title: '机具名称', width: 450},
{field: 'maName', title: '规格型号', width: 300},
{field: 'maUnit', title: '单位', width: 150},
{field: 'storageNum', title: '新购入库量', width: 200},
]];
}else if(type==3){
urld='${bonuspath}/backstage/indexHomeDetails/getInventoryStored';
colsd=[[
{type: 'numbers', title: '序号', width: 80},
{field: 'isCount', title: '机具类别', width: 120, templet: function(d) {
{type: 'numbers', title: '序号', width: 100},
{field: 'isCount', title: '机具类别', width: 200, templet: function(d) {
return d.isCount === '0' ? '设备' : '机具';
}},
{field: 'maType', title: '机具名称', width: 200},
{field: 'maName', title: '规格型号', width: 200},
{field: 'maUnit', title: '单位', width: 90},
{field: 'storageNum', title: '盘点入库量', width: 120},
{field: 'maType', title: '机具名称', width: 450},
{field: 'maName', title: '规格型号', width: 300},
{field: 'maUnit', title: '单位', width: 150},
{field: 'storageNum', title: '盘点入库量', width: 200},
]];
}
// 监听数量筛选下拉框