Commit 5aa3037b by 江和松

整改通知单复核通过不能再复核通过

parent a14dce18
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
INVENT_CODE LIKE CONCAT('%', #inventCodeLike#, '%') INVENT_CODE LIKE CONCAT('%', #inventCodeLike#, '%')
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="spec"> <isNotEmpty prepend=" AND " property="spec">
SPEC = #spec# SPEC LIKE CONCAT('%', #spec#, '%')
</isNotEmpty> </isNotEmpty>
<isNotEmpty prepend=" AND " property="length"> <isNotEmpty prepend=" AND " property="length">
LENGTH = #length# LENGTH = #length#
...@@ -147,6 +147,12 @@ ...@@ -147,6 +147,12 @@
<isNotEmpty prepend=" AND " property="inventTypeDetails"> <isNotEmpty prepend=" AND " property="inventTypeDetails">
INVENT_TYPE_DETAIL IN <iterate close=")" open="(" conjunction="," property="inventTypeDetails">#inventTypeDetails[]#</iterate> INVENT_TYPE_DETAIL IN <iterate close=")" open="(" conjunction="," property="inventTypeDetails">#inventTypeDetails[]#</iterate>
</isNotEmpty> </isNotEmpty>
<isEqual prepend=" AND " property="isFlowId" compareValue="1">
FLOW_ID > 0
</isEqual>
<isEqual prepend=" AND " property="isFlowId" compareValue="0">
FLOW_ID = #isFlowId#
</isEqual>
</sql> </sql>
<select id="query" parameterClass="java.util.HashMap" resultClass="HGPZ005"> <select id="query" parameterClass="java.util.HashMap" resultClass="HGPZ005">
......
...@@ -71,6 +71,15 @@ $(function() { ...@@ -71,6 +71,15 @@ $(function() {
template: function (options) { template: function (options) {
return showUserName(options.updatedBy, options.updatedName); return showUserName(options.updatedBy, options.updatedName);
} }
}, {
field: "isFlowId",
template: function (options) {
let template = '未分配';
if (options.flowId>0){
template = '已分配';
}
return template;
}
}], }],
loadComplete: function(grid) { loadComplete: function(grid) {
// 此 grid 对象 // 此 grid 对象
...@@ -272,25 +281,25 @@ function showFlowDetail(id,inventCode,flowId) { ...@@ -272,25 +281,25 @@ function showFlowDetail(id,inventCode,flowId) {
}); });
} }
function showFlowDetail() { // function showFlowDetail() {
let rows = resultGrid.getCheckedRows(); // let rows = resultGrid.getCheckedRows();
let selectIds = []; // let selectIds = [];
//selectIds.push(rows[i]['id']); // //selectIds.push(rows[i]['id']);
if (rows.length < 1) { // if (rows.length < 1) {
message("请选择数据") // message("请选择数据")
return; // return;
} // }
$.each(rows, function(index, item) { // $.each(rows, function(index, item) {
selectIds.push(item.get("id")); // selectIds.push(item.get("id"));
}); // });
JSColorbox.open({ // JSColorbox.open({
href: "HGPZ005B?methodName=initLoad&inqu_status-0-parentIds=" + selectIds, // href: "HGPZ005B?methodName=initLoad&inqu_status-0-parentIds=" + selectIds,
title: "<div style='text-align: center;'>工艺流程</div>", // title: "<div style='text-align: center;'>工艺流程</div>",
width: "75%", // width: "75%",
height: "80%", // height: "80%",
callbackName: cllback2 // callbackName: cllback2
}); // });
} // }
/** /**
* 回调 * 回调
......
...@@ -21,6 +21,13 @@ ...@@ -21,6 +21,13 @@
<EF:EFCodeOption codeName="hpjx.hpjx.status"/> <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
</EF:EFSelect> </EF:EFSelect>
</div> </div>
<div class="row">
<EF:EFInput cname="规格" ename="spec" blockId="inqu_status" row="0" colWidth="3"/>
<EF:EFSelect blockId="inqu_status" row="0" ename="isFlowId" cname="是否分配" colWidth="3" filter="contains">
<EF:EFOption label="全部" value=""/>
<EF:EFCodeOption codeName="hggp.isFlowId"/>
</EF:EFSelect>
</div>
</EF:EFRegion> </EF:EFRegion>
<EF:EFRegion id="result" title="记录集"> <EF:EFRegion id="result" title="记录集">
...@@ -45,6 +52,7 @@ ...@@ -45,6 +52,7 @@
<EF:EFComboColumn ename="status" cname="状态" align="center" width="80" required="true" defaultValue="1"> <EF:EFComboColumn ename="status" cname="状态" align="center" width="80" required="true" defaultValue="1">
<EF:EFCodeOption codeName="hpjx.hpjx.status"/> <EF:EFCodeOption codeName="hpjx.hpjx.status"/>
</EF:EFComboColumn> </EF:EFComboColumn>
<EF:EFColumn ename="isFlowId" cname="是否分配" width="80" align="center"/>
<EF:EFColumn cname="创建人" ename="createdName" enable="false" align="center"/> <EF:EFColumn cname="创建人" ename="createdName" enable="false" align="center"/>
<EF:EFColumn cname="创建时间" ename="createdTime" enable="false" width="140" align="center" <EF:EFColumn cname="创建时间" ename="createdTime" enable="false" width="140" align="center"
editType="datetime" parseFormats="['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"/> editType="datetime" parseFormats="['yyyyMMddHHmmss','yyyy-MM-dd HH:mm:ss']"/>
......
...@@ -122,6 +122,11 @@ function complete() { ...@@ -122,6 +122,11 @@ function complete() {
flag = false; flag = false;
return; return;
} }
if(item.handleStatus==='2'){
message2("复检合格","【非处理中的数据】,无法进行复检操作!");
flag = false;
return;
}
}); });
if(flag) { if(flag) {
IPLAT.confirm({ IPLAT.confirm({
......
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