Commit 23cf2d12 authored by yff's avatar yff

Merge branch 'master' of gitlab.gavelinfo.com:gavelinfo/kwell-mes

parents 9f5ba211 2bc7a579
...@@ -154,14 +154,35 @@ ...@@ -154,14 +154,35 @@
{title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200}, {title: "规格型号", field: "wlxxGg", fieldType: "ftString",width:200},
{title: "数量", field: "zpsl", fieldType: "int"} {title: "数量", field: "zpsl", fieldType: "int"}
]; ];
$zpList.datagrid({ var $hgbz= [
title:"详情", {title: "是否合格", field: "hgbz",width:180,align:"center",
columns:[new $.common.formatterCol($righColumnsZp)], formatter: function(value,row,index){
pagination:false if (row.hzsl=="Y"){
}); return "合格";
} else {
return "不合格";
}
}
}
];
HTTP.post("kmes/wosngz/getGphymx",{gpfkid:rowData.id},function (res) { HTTP.post("kmes/wosngz/getGphymx",{gpfkid:rowData.id},function (res) {
if(res.success){ if(res.success){
$zpList.datagrid("loadData",res.data.records||[]) if(res.data.total==0){
$zpList.datagrid({
title:"详情",
columns:[new $.common.formatterCol($hgbz)],
pagination:false
});
$zpList.datagrid("loadData",[rowData])
}else{
$zpList.datagrid({
title:"详情",
columns:[new $.common.formatterCol($righColumnsZp)],
pagination:false
});
$zpList.datagrid("loadData",res.data.records||[])
}
} }
}) })
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment