Commit be51fd2f by wuwenlong

项目立项优化

parent a815ac35
...@@ -68,16 +68,19 @@ $(function () { ...@@ -68,16 +68,19 @@ $(function () {
$("#result-0-companyCode").change(function () { $("#result-0-companyCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-companyCode")); let textField = IPLAT.EFSelect.text($("#result-0-companyCode"));
$("#result-0-companyName").val(textField); $("#result-0-companyName").val(textField);
}) let valueField = IPLAT.EFSelect.value($("#result-0-companyCode"));
$("#result-0-subcontractCode").val(valueField);
$("#result-0-subcontractName").val(textField);
});
$("#result-0-depCode").change(function () { $("#result-0-depCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-depCode")); let textField = IPLAT.EFSelect.text($("#result-0-depCode"));
$("#result-0-depName").val(textField); $("#result-0-depName").val(textField);
}); });
$("#result-0-subcontractCode").change(function () { // $("#result-0-subcontractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode")); // let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode"));
$("#result-0-subcontractName").val(textField); // $("#result-0-subcontractName").val(textField);
// loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode"))); // // loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode")));
}); // });
$("#result-0-genralContractCode").change(function () { $("#result-0-genralContractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode")); let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode"));
$("#result-0-genralContractName").val(textField); $("#result-0-genralContractName").val(textField);
......
...@@ -21,11 +21,8 @@ ...@@ -21,11 +21,8 @@
</EF:EFCascadeSelect> </EF:EFCascadeSelect>
</div> </div>
<div class="row"> <div class="row">
<EF:EFInput ename="result-0-subcontractName" cname="乙方名称" type="hidden"/> <EF:EFInput ename="result-0-subcontractName" cname="乙方" colWidth="4" required="true" readonly="true"/>
<EF:EFSelect cname="乙方" ename="result-0-subcontractCode" colWidth="4" required="true" filter="contains"> <EF:EFInput ename="result-0-subcontractCode" cname="乙方名称" type="hidden"/>
<EF:EFOption label="-- 请选择 --" value="" />
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect>
<EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/> <EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/>
<EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode" <EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode"
colWidth="4" required="true" filter="contains" defaultValue="" colWidth="4" required="true" filter="contains" defaultValue=""
......
...@@ -52,16 +52,19 @@ $(function () { ...@@ -52,16 +52,19 @@ $(function () {
$("#result-0-companyCode").change(function () { $("#result-0-companyCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-companyCode")); let textField = IPLAT.EFSelect.text($("#result-0-companyCode"));
$("#result-0-companyName").val(textField); $("#result-0-companyName").val(textField);
}) let valueField = IPLAT.EFSelect.value($("#result-0-companyCode"));
$("#result-0-subcontractCode").val(valueField);
$("#result-0-subcontractName").val(textField);
});
$("#result-0-depCode").change(function () { $("#result-0-depCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-depCode")); let textField = IPLAT.EFSelect.text($("#result-0-depCode"));
$("#result-0-depName").val(textField); $("#result-0-depName").val(textField);
}); });
$("#result-0-subcontractCode").change(function () { // $("#result-0-subcontractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode")); // let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode"));
$("#result-0-subcontractName").val(textField); // $("#result-0-subcontractName").val(textField);
// loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode"))); // // loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode")));
}); // });
$("#result-0-genralContractCode").change(function () { $("#result-0-genralContractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode")); let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode"));
$("#result-0-genralContractName").val(textField); $("#result-0-genralContractName").val(textField);
......
...@@ -21,11 +21,8 @@ ...@@ -21,11 +21,8 @@
</EF:EFCascadeSelect> </EF:EFCascadeSelect>
</div> </div>
<div class="row"> <div class="row">
<EF:EFInput ename="result-0-subcontractName" cname="乙方名称" type="hidden"/> <EF:EFInput ename="result-0-subcontractName" cname="乙方" colWidth="4" required="true" readonly="true"/>
<EF:EFSelect cname="乙方" ename="result-0-subcontractCode" colWidth="4" required="true" filter="contains"> <EF:EFInput ename="result-0-subcontractCode" cname="乙方名称" type="hidden"/>
<EF:EFOption label="-- 请选择 --" value="" />
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect>
<EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/> <EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/>
<EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode" <EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode"
colWidth="4" required="true" filter="contains" defaultValue="" colWidth="4" required="true" filter="contains" defaultValue=""
......
...@@ -63,16 +63,19 @@ $(function () { ...@@ -63,16 +63,19 @@ $(function () {
$("#result-0-companyCode").change(function () { $("#result-0-companyCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-companyCode")); let textField = IPLAT.EFSelect.text($("#result-0-companyCode"));
$("#result-0-companyName").val(textField); $("#result-0-companyName").val(textField);
}) let valueField = IPLAT.EFSelect.value($("#result-0-companyCode"));
$("#result-0-subcontractCode").val(valueField);
$("#result-0-subcontractName").val(textField);
});
$("#result-0-depCode").change(function () { $("#result-0-depCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-depCode")); let textField = IPLAT.EFSelect.text($("#result-0-depCode"));
$("#result-0-depName").val(textField); $("#result-0-depName").val(textField);
}); });
$("#result-0-subcontractCode").change(function () { // $("#result-0-subcontractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode")); // let textField = IPLAT.EFSelect.text($("#result-0-subcontractCode"));
$("#result-0-subcontractName").val(textField); // $("#result-0-subcontractName").val(textField);
// loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode"))); // // loadProjMg(IPLAT.EFSelect.value($("#result-0-subcontractCode")));
}); // });
$("#result-0-genralContractCode").change(function () { $("#result-0-genralContractCode").change(function () {
let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode")); let textField = IPLAT.EFSelect.text($("#result-0-genralContractCode"));
$("#result-0-genralContractName").val(textField); $("#result-0-genralContractName").val(textField);
......
...@@ -23,11 +23,8 @@ ...@@ -23,11 +23,8 @@
</EF:EFCascadeSelect> </EF:EFCascadeSelect>
</div> </div>
<div class="row"> <div class="row">
<EF:EFInput ename="result-0-subcontractName" cname="乙方名称" type="hidden"/> <EF:EFInput ename="result-0-subcontractName" cname="乙方" colWidth="4" required="true" readonly="true"/>
<EF:EFSelect cname="乙方" ename="result-0-subcontractCode" colWidth="4" required="true" filter="contains"> <EF:EFInput ename="result-0-subcontractCode" cname="乙方名称" type="hidden"/>
<EF:EFOption label="-- 请选择 --" value="" />
<EF:EFOptions blockId="roleCompany" valueField="companyCode" textField="companyName"/>
</EF:EFSelect>
<EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/> <EF:EFInput ename="result-0-genralContractName" cname="甲方名称" type="hidden"/>
<EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode" <EF:EFCascadeSelect cascadeFrom="result-0-subcontractCode" cname="甲方" ename="result-0-genralContractCode"
colWidth="4" required="true" filter="contains" defaultValue="" colWidth="4" required="true" filter="contains" defaultValue=""
......
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