Commit 529e2e8f by wuwenlong

生产订单派工dev

parent a3fd0b73
...@@ -49,9 +49,24 @@ function assign() { ...@@ -49,9 +49,24 @@ function assign() {
message("请至少选择一条需要分派的数据"); message("请至少选择一条需要分派的数据");
return; return;
} }
let productType= rows[0].get("productType");
let flag = true;
$.each(rows, function(index, item) {
let compareProductType = item.get("productType");
if(productType != compareProductType){
IPLAT.alert({
message : "选中的生产订单不属于同一工种,无法分派!",
okFn : function(e) {
},
title : '错误'
});
flag = false;
return false;
}
});
let companyCode = rows[0].companyCode; let companyCode = rows[0].companyCode;
JSColorbox.open({ JSColorbox.open({
href: "HPSC098?methodName=initLoad&inqu_status-0-companyCode="+companyCode, href: "HPSC098?methodName=initLoad&inqu_status-0-companyCode="+companyCode+"&inqu_status-0-productType="+productType,
title: "<div style='text-align: center;'>选择组织</div>", title: "<div style='text-align: center;'>选择组织</div>",
width: "70%", width: "70%",
height: "70%", height: "70%",
......
...@@ -15,7 +15,7 @@ HPSC098.js<!DOCTYPE html> ...@@ -15,7 +15,7 @@ HPSC098.js<!DOCTYPE html>
<EF:EFOption label="全部" value=""/> <EF:EFOption label="全部" value=""/>
<EF:EFOptions blockId="factory_record_block_id" textField="factoryName" valueField="factoryCode"/> <EF:EFOptions blockId="factory_record_block_id" textField="factoryName" valueField="factoryCode"/>
</EF:EFSelect> </EF:EFSelect>
<EF:EFCascadeSelect cascadeFrom="result-0-companyCode" cname="工作组" ename="result-0-depCode" <EF:EFCascadeSelect cascadeFrom="inqu_status-0-factoryCode" cname="工作组" ename="inqu_status-0-groupCode"
colWidth="4" required="true" filter="contains" defaultValue="" colWidth="4" required="true" filter="contains" defaultValue=""
serviceName="HGSC098" methodName="workGroupComboBox" resultId="workGroup" serviceName="HGSC098" methodName="workGroupComboBox" resultId="workGroup"
textField="orgCname" valueField="orgEname" > textField="orgCname" valueField="orgEname" >
......
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