YYC
2023-07-25 21bf8b454eee7e80d9471e4424e7520c4f82f3a7
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 ==&quot;customerId&quot;){&#xD;
   autoByCustomer(arg.newValue);&#xD;
}</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(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;KHKHH&quot;)}</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(&quot;dicTriggerPR#dicTrigger&quot;).getResult(&quot;KHKHH&quot;)}</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;//父页面中的分库编码&#xD;
&#xD;
//根据客户自动回填客户类型,客户开户行,客户开户行账号,客户签约人&#xD;
autoByCustomer = function(id){&#xD;
   view.get(&quot;#ajaxGetCustomer&quot;).set(&quot;parameter&quot;,id).execute(function(result){&#xD;
     if(result){&#xD;
     var data = view.get(&quot;#dsMain.data:#&quot;);&#xD;
     data.set(&quot;customerType&quot;,result.khlx);&#xD;
    data.set(&quot;customerBank&quot;,result.bank);&#xD;
     data.set(&quot;customerBankAccount&quot;,result.bankNum);&#xD;
     data.set(&quot;customerSignUser&quot;,result.fddbr);&#xD;
   }&#xD;
});&#xD;
};&#xD;
addMain = function(){&#xD;
   view.get(&quot;#dsMain&quot;).insert({});&#xD;
   view.get(&quot;#dialogMain&quot;).show();&#xD;
@@ -378,7 +402,7 @@
   if(price &amp;&amp; contactAmount){&#xD;
      &#xD;
      //计算倒入数量&#xD;
      var money = price*contactAmount;&#xD;
      var money = price*contactAmount/1000;&#xD;
       curData.set(&quot;money&quot;,money); &#xD;
   }&#xD;
};</ClientEvent>
@@ -491,6 +515,7 @@
        <DataColumn name="name">
          <Property name="property">name</Property>
          <Property name="align">center</Property>
          <Property name="width">340</Property>
        </DataColumn>
        <DataColumn name="type">
          <Property name="property">type</Property>
@@ -503,6 +528,7 @@
        <DataColumn name="customerName">
          <Property name="property">customerName</Property>
          <Property name="align">center</Property>
          <Property name="width">300</Property>
        </DataColumn>
        <DataColumn name="money">
          <Property name="property">money</Property>
@@ -729,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>
@@ -753,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>