Commit e73fa34e by wuwenlong

生产报工附件清单

parent 620eb6c0
...@@ -366,6 +366,8 @@ public class HGConstant { ...@@ -366,6 +366,8 @@ public class HGConstant {
public static final String CHECK_DEFECT = "CHECK_DEFECT"; public static final String CHECK_DEFECT = "CHECK_DEFECT";
//质检问题处理照片 //质检问题处理照片
public static final String CHECK_HANDLE = "CHECK_HANDLE"; public static final String CHECK_HANDLE = "CHECK_HANDLE";
//生产报工
public static final String SCBG = "SCBG";
} }
/** /**
......
...@@ -1105,6 +1105,9 @@ public class HGSCTools { ...@@ -1105,6 +1105,9 @@ public class HGSCTools {
checkDeleteDate(ids); checkDeleteDate(ids);
DaoUtils.update(HGSC008.BATCH_DELETE, new HashMap<String,Object>(){{put("ids",ids);}}); DaoUtils.update(HGSC008.BATCH_DELETE, new HashMap<String,Object>(){{put("ids",ids);}});
HGZLTools.THGZL002.deleteByWorkIds(ids); HGZLTools.THGZL002.deleteByWorkIds(ids);
ids.forEach( id -> {
HGSCTools.THGSC099.deleteByMatId(id, HGConstant.FileBizType.SCBG);
});
} }
private static void checkDeleteDate(List<Long> ids){ private static void checkDeleteDate(List<Long> ids){
......
...@@ -10,8 +10,15 @@ $(function () { ...@@ -10,8 +10,15 @@ $(function () {
pageSize: 20, pageSize: 20,
pageSizes: [10, 20, 50, 70, 100], pageSizes: [10, 20, 50, 70, 100],
}, },
columns: [ columns: [{
], field: "operator",
template: function (item) {
let template = '';
template+='<a style="cursor: pointer;display: inline-flex;justify-content: center;margin:auto 5px" '
+ 'onclick="showUploadFile(' + item.id + ')" >附件清单</a>';
return template;
}
}],
loadComplete: function(grid) { loadComplete: function(grid) {
}, },
onSuccess: function (e) { onSuccess: function (e) {
...@@ -33,3 +40,17 @@ $(window).load(function () { ...@@ -33,3 +40,17 @@ $(window).load(function () {
// 查 // 查
query(); query();
}); });
/**
* 显示附件清单
*
* @param id
*/
function showUploadFile(id) {
JSColorbox.open({
href: "HGSC099?methodName=initLoad&inqu_status-0-bizType=SCBG&inqu_status-0-matId=" + id,
title: "<div style='text-align: center;'>附件详情</div>",
width: "85%",
height: "80%",
});
}
\ No newline at end of file
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
<EF:EFGrid blockId="result" autoDraw="override" isFloat="true"> <EF:EFGrid blockId="result" autoDraw="override" isFloat="true">
<EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/> <EF:EFColumn ename="id" primaryKey="true" cname="内码" hidden="true"/>
<EF:EFColumn ename="accountCode" cname="账套" hidden="true"/> <EF:EFColumn ename="accountCode" cname="账套" hidden="true"/>
<EF:EFColumn ename="operator" cname="操作" locked="true" enable="false" width="220" align="center"/>
<EF:EFColumn ename="companyName" cname="公司名称" enable="true" width="120" align="center" readOnly="true"/> <EF:EFColumn ename="companyName" cname="公司名称" enable="true" width="120" align="center" readOnly="true"/>
<EF:EFColumn ename="projName" cname="项目名称" enable="true" width="120" align="center" readOnly="true"/> <EF:EFColumn ename="projName" cname="项目名称" enable="true" width="120" align="center" readOnly="true"/>
<EF:EFColumn ename="workCode" cname="报工单号" width="100" enable="false" readonly="true" align="center"/> <EF:EFColumn ename="workCode" cname="报工单号" width="100" enable="false" readonly="true" align="center"/>
......
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