From 21bf8b454eee7e80d9471e4424e7520c4f82f3a7 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期二, 25 七月 2023 11:55:14 +0800 Subject: [PATCH] 通知单及合同相关优化 --- igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml | 36 +++++++++++++++++++++++++++++------- 1 files changed, 29 insertions(+), 7 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml b/igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml index 65e756f..57fc926 100644 --- a/igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml +++ b/igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml @@ -39,6 +39,9 @@ </PropertyDef> </DataType> <DataType name="dtMain"> + <ClientEvent name="onDataChange">if(arg.property =="customerId"){
 + autoByCustomer(arg.newValue);
 +}</ClientEvent> <Property name="creationType">com.ld.igds.models.InoutContract</Property> <PropertyDef name="id"> <Property></Property> @@ -107,6 +110,11 @@ <PropertyDef name="customerBank"> <Property></Property> <Property name="label">瀹㈡埛寮�鎴疯</Property> + <Property name="mapping"> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("KHKHH")}</Property> + </Property> </PropertyDef> <PropertyDef name="customerBankAccount"> <Property></Property> @@ -119,6 +127,11 @@ <PropertyDef name="bank"> <Property></Property> <Property name="label">鏈柟寮�鎴疯</Property> + <Property name="mapping"> + <Property name="keyProperty">code</Property> + <Property name="valueProperty">name</Property> + <Property name="mapValues">${dorado.getDataProvider("dicTriggerPR#dicTrigger").getResult("KHKHH")}</Property> + </Property> </PropertyDef> <PropertyDef name="bankAccount"> <Property></Property> @@ -361,7 +374,18 @@ </Model> <View layout="regionPadding:10"> <ClientEvent name="onReady">var deptId = window.parent.deptId;//鐖堕〉闈腑鐨勫垎搴撶紪鐮�
 -
 +//鏍规嵁瀹㈡埛鑷姩鍥炲~瀹㈡埛绫诲瀷锛屽鎴峰紑鎴疯锛屽鎴峰紑鎴疯璐﹀彿锛屽鎴风绾︿汉
 +autoByCustomer = function(id){
 + view.get("#ajaxGetCustomer").set("parameter",id).execute(function(result){
 + if(result){
 + var data = view.get("#dsMain.data:#");
 + data.set("customerType",result.khlx);
 + data.set("customerBank",result.bank);
 + data.set("customerBankAccount",result.bankNum);
 + data.set("customerSignUser",result.fddbr);
 + }
 +});
 +};
 addMain = function(){
 view.get("#dsMain").insert({});
 view.get("#dialogMain").show();
 @@ -378,7 +402,7 @@ if(price && contactAmount){
 
 //璁$畻鍊掑叆鏁伴噺
 - var money = price*contactAmount;
 + var money = price*contactAmount/1000;
 curData.set("money",money); 
 }
 };</ClientEvent> @@ -731,11 +755,6 @@ <Property name="property">signAddress</Property> <Editor/> </AutoFormElement> - <AutoFormElement layoutConstraint="colSpan:3"> - <Property name="name">remark</Property> - <Property name="property">remark</Property> - <Editor/> - </AutoFormElement> </AutoForm> </Children> </FieldSet> @@ -755,6 +774,9 @@ <Property name="confirmMessage">纭畾瑕佸垹闄ゅ悧锛�</Property> <Property name="service">contractManagePR#delContract</Property> </AjaxAction> + <AjaxAction id="ajaxGetCustomer"> + <Property name="service">inoutCustomerPR#queryListByParam</Property> + </AjaxAction> <CustomDropDown id="ddCustomer"> <Property name="minHeight">400</Property> <Property name="assignmentMap">customerId=id,customerName=name</Property> -- Gitblit v1.9.3