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 | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 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 f711c52..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> @@ -371,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();
 @@ -760,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