Commit bb4fb13f by wancheng

生产下料更新

parent dc8461f6
...@@ -117,7 +117,11 @@ $(function () { ...@@ -117,7 +117,11 @@ $(function () {
let template = ''; let template = '';
if (filePath1) { if (filePath1) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showUploadFile(' + filePath1 + ')" >附件清单</a>'; + 'onclick="showUploadFile(' + filePath1 + ',\'WL\')" >物料附件清单</a>';
}
if (filePath1) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showUploadFile(' + filePath1 + ',\'XL\')" >下料附件清单</a>';
} }
return template return template
} }
...@@ -137,8 +141,8 @@ $(function () { ...@@ -137,8 +141,8 @@ $(function () {
let projCode = item.projCode; let projCode = item.projCode;
let template = ''; let template = '';
if (filePath1) { if (filePath1) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' /* template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showUploadFile(' + filePath1 + ')" >附件清单</a>'; + 'onclick="showUploadFile(' + filePath1 + ')" >附件清单</a>';*/
if (status >= 1) { if (status >= 1) {
template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" ' template += '<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="checkIn(' + filePath1 + ')" >登记</a>'; + 'onclick="checkIn(' + filePath1 + ')" >登记</a>';
...@@ -278,12 +282,7 @@ $(function () { ...@@ -278,12 +282,7 @@ $(function () {
success: function (e) { success: function (e) {
let rows = resultGrid.getCheckedRows()[0]; let rows = resultGrid.getCheckedRows()[0];
var src = e.response.docUrl; var src = e.response.docUrl;
var className; var className = e.response.docTag;
if ("run" == projectEnv) {
className = e.response.groupId;
} else {
className = e.response.docTag;
}
var projCode = rows.projCode; var projCode = rows.projCode;
var projName = rows.projName; var projName = rows.projName;
var productionOrderNo = rows.prodOrderNo; var productionOrderNo = rows.prodOrderNo;
...@@ -357,9 +356,9 @@ function reqDetails(projCode) { ...@@ -357,9 +356,9 @@ function reqDetails(projCode) {
height: "90%" height: "90%"
}); });
} }
function showUploadFile(id) { function showUploadFile(id,type) {
JSColorbox.open({ JSColorbox.open({
href: "HPSC002A?methodName=initLoad&inqu_status-0-bizType=XL&inqu_status-0-id=" + id, href: "HPSC002A?methodName=initLoad&inqu_status-0-bizType="+type+"&inqu_status-0-id=" + id,
title: "<div style='text-align: center;'>附件清单</div>", title: "<div style='text-align: center;'>附件清单</div>",
width: "80%", width: "80%",
height: "80%", height: "80%",
...@@ -375,11 +374,26 @@ function checkIn(id) { ...@@ -375,11 +374,26 @@ function checkIn(id) {
callbackName: checkInCallback callbackName: checkInCallback
}); });
} }
checkInCallback = function (e) { checkInCallback = function () {
// 刷新列表 var block = detailGrid.getEiBlock();
detailGrid.setEiInfo(ei); var result = resultGrid.getCheckedRows()
// 关闭弹窗 if (rows.length < 1) {
JSColorbox.close(); message("请选择数据");
return;
}
if (block != null) {
block.setRows([]);
detailGrid.setEiBlock(block);
}
var info = new EiInfo()
var productionOrderNo = result[0]['prodOrderNo'];
info.set("productionOrderNo",productionOrderNo);
EiCommunicator.send("HPSC006","queryDetail",info,{
onSuccess:function(ei){//返回结果集
detailGrid.setEiInfo(ei);
},onFail:function(ei){}
},{async:false});
} }
let selectStock = function (id) { let selectStock = function (id) {
JSColorbox.open({ JSColorbox.open({
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<EF:EFInput ename="productionOrderNo" type="hidden"/> <EF:EFInput ename="productionOrderNo" type="hidden"/>
<EF:EFGrid blockId="detail" autoDraw="no"> <EF:EFGrid blockId="detail" autoDraw="no">
<EF:EFColumn ename="id" cname="主键" hidden="true"/> <EF:EFColumn ename="id" cname="主键" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" width="200" enable="false" readonly="false"/> <EF:EFColumn ename="operator" cname="操作" width="100" enable="false" readonly="false"/>
<EF:EFColumn enable="false" ename="reqNum" cname="领料记录" width="80" align="center" readonly="true"/> <EF:EFColumn enable="false" ename="reqNum" cname="领料记录" width="80" align="center" readonly="true"/>
<%-- <EF:EFComboColumn cname="材料类型" ename="inventType" width="80" align="center" required="true" >--%> <%-- <EF:EFComboColumn cname="材料类型" ename="inventType" width="80" align="center" required="true" >--%>
......
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