YYC
2023-07-25 44804e145dfd07f2537684a4358682774331cdaf
igds-inout/src/main/java/com/ld/igds/m/view/ContractManage.view.xml
@@ -29,8 +29,19 @@
        <Property></Property>
        <Property name="label">客户名称</Property>
      </PropertyDef>
      <PropertyDef name="type">
        <Property name="label">合同类型</Property>
        <Property name="mapping">
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
          <Property name="mapValues">${dorado.getDataProvider(&quot;contractManagePR#triggerContractType&quot;).getResult()}</Property>
        </Property>
      </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>
@@ -99,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>
@@ -111,10 +127,17 @@
      <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>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="bankAccount">
        <Property></Property>
        <Property name="label">本方开户行账号</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="signUser">
        <Property></Property>
@@ -127,7 +150,7 @@
      <PropertyDef name="price">
        <Property name="dataType">Double</Property>
        <Property name="label">单价</Property>
        <Property name="displayFormat">#,###0.000 元/公斤</Property>
        <Property name="displayFormat">#,###0.000 元/吨</Property>
        <Property name="required">true</Property>
      </PropertyDef>
      <PropertyDef name="money">
@@ -135,6 +158,7 @@
        <Property name="label">总金额</Property>
        <Property name="displayFormat">#,###0.00 元</Property>
        <Property name="required">true</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="contactAmount">
        <Property name="dataType">Double</Property>
@@ -202,31 +226,31 @@
        <Property name="label">备注说明</Property>
      </PropertyDef>
      <PropertyDef name="fddbr">
        <Property/>
        <Property></Property>
        <Property name="label">法定代表人</Property>
      </PropertyDef>
      <PropertyDef name="txdz">
        <Property/>
        <Property></Property>
        <Property name="label">通讯地址</Property>
      </PropertyDef>
      <PropertyDef name="yzbm">
        <Property/>
        <Property></Property>
        <Property name="label">邮政编码</Property>
      </PropertyDef>
      <PropertyDef name="lxrxm">
        <Property/>
        <Property></Property>
        <Property name="label">联系人姓名</Property>
      </PropertyDef>
      <PropertyDef name="lxrdh">
        <Property/>
        <Property></Property>
        <Property name="label">联系电话</Property>
      </PropertyDef>
      <PropertyDef name="sfzh">
        <Property/>
        <Property></Property>
        <Property name="label">身份证号</Property>
      </PropertyDef>
      <PropertyDef name="dzyx">
        <Property/>
        <Property></Property>
        <Property name="label">电子信箱</Property>
      </PropertyDef>
      <PropertyDef name="relEndTime">
@@ -236,49 +260,57 @@
      <PropertyDef name="lybzj">
        <Property name="dataType">Double</Property>
        <Property name="label">履约保证金</Property>
        <Property name="displayFormat">#,###0.00 元</Property>
      </PropertyDef>
      <PropertyDef name="lyl">
        <Property name="dataType">Double</Property>
        <Property name="label">履约率</Property>
        <Property name="displayFormat"> ##.00%</Property>
      </PropertyDef>
      <PropertyDef name="jsjg">
        <Property name="dataType">Double</Property>
        <Property name="label">结算价格,元/吨</Property>
        <Property name="label">结算价格</Property>
        <Property name="displayFormat">#,###0.000 元/吨</Property>
      </PropertyDef>
      <PropertyDef name="jszje">
        <Property name="dataType">Double</Property>
        <Property name="label">结算总金额</Property>
        <Property name="readOnly">true</Property>
        <Property name="displayFormat">#,###0.00 元</Property>
      </PropertyDef>
      <PropertyDef name="jsyhtyzx">
        <Property/>
        <Property></Property>
        <Property name="label">结算与合同一致性</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;contractManagePR#triggerConsistency&quot;).getResult()}</Property>
          <Property name="keyProperty">code</Property>
          <Property name="valueProperty">name</Property>
        </Property>
      </PropertyDef>
      <PropertyDef name="jsyhtbyzyy">
        <Property/>
        <Property></Property>
        <Property name="label">不一致原因</Property>
      </PropertyDef>
      <PropertyDef name="auditUser">
        <Property/>
        <Property></Property>
        <Property name="label">审批人</Property>
      </PropertyDef>
      <PropertyDef name="auditDate">
        <Property/>
        <Property></Property>
        <Property name="label">审批时间</Property>
        <Property name="dataType">Date</Property>
      </PropertyDef>
      <PropertyDef name="auditStatus">
        <Property/>
        <Property></Property>
        <Property name="label">审批状态</Property>
      </PropertyDef>
      <PropertyDef name="wcrq">
        <Property name="dataType">Date</Property>
        <Property name="label">完成时间</Property>
      </PropertyDef>
      <PropertyDef name="updateTime">
        <Property name="dataType">Date</Property>
        <Property name="label">更新时间</Property>
        <Property name="readOnly">true</Property>
      </PropertyDef>
      <PropertyDef name="hqzz">
        <Property/>
        <Property></Property>
        <Property name="label">货权组织</Property>
        <Property name="mapping">
          <Property name="mapValues">${dorado.getDataProvider(&quot;deptPR#loadParents&quot;).getResult()}</Property>
@@ -352,7 +384,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;
@@ -361,16 +404,22 @@
    <ClientEvent name="onCreate">//自动计算&#xD;
countMoney = function(){&#xD;
   var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
   &#xD;
   var price = curData.get(&quot;price&quot;);&#xD;
   &#xD;
   var contactAmount = curData.get(&quot;contactAmount&quot;);&#xD;
   &#xD;
   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;
};&#xD;
countSettleMoney = function(){&#xD;
   var curData = view.get(&quot;#dsMain.data:#&quot;);&#xD;
   var price = curData.get(&quot;jsjg&quot;);&#xD;
   var completeNum = curData.get(&quot;completeNum&quot;);&#xD;
   if(price &amp;&amp; completeNum){&#xD;
      //计算倒入数量&#xD;
      var money = price*completeNum/1000;&#xD;
       curData.set(&quot;jszje&quot;,money); &#xD;
   }&#xD;
};</ClientEvent>
    <Property name="packages">font-awesome,css-common</Property>
@@ -378,11 +427,6 @@
      <Property name="dataType">[dtMain]</Property>
      <Property name="dataProvider">contractManagePR#pageContract</Property>
      <Property name="pageSize">15</Property>
      <Property name="parameter">
        <Entity>
          <Property name="type">1</Property>
        </Entity>
      </Property>
    </DataSet>
    <DataSet id="dsParam">
      <Property name="dataType">dtParam</Property>
@@ -436,6 +480,11 @@
        <Property name="labelSeparator">:</Property>
        <Property name="labelWidth">100</Property>
        <AutoFormElement>
          <Property name="property">type</Property>
          <Property name="name">type</Property>
          <Editor/>
        </AutoFormElement>
        <AutoFormElement>
          <Property name="name">year</Property>
          <Property name="property">year</Property>
          <Property name="trigger">defaultYearDropDown</Property>
@@ -452,6 +501,9 @@
          <Editor/>
        </AutoFormElement>
        <Container layout="regionPadding:15">
          <Label layoutConstraint="left">
            <Property name="text">操作按键:</Property>
          </Label>
          <Button layoutConstraint="left">
            <ClientEvent name="onClick">var param = view.get(&quot;#dsParam.data&quot;);&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,param.toJSON()).flushAsync();</ClientEvent>
@@ -460,8 +512,8 @@
            <Property name="iconClass">fa fa-refresh</Property>
          </Button>
          <Button>
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({type:'1'});&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{type:'1'}).flushAsync();</ClientEvent>
            <ClientEvent name="onClick">view.get(&quot;#dsParam&quot;).setData({});&#xD;
view.get(&quot;#dsMain&quot;).set(&quot;parameter&quot;,{}).flushAsync();</ClientEvent>
            <Property name="exClassName">btn-warn</Property>
            <Property name="iconClass">fa fa-refresh</Property>
            <Property name="caption">重置</Property>
@@ -478,31 +530,42 @@
        <RowNumColumn/>
        <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>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="year">
          <Property name="property">year</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <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>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="contactAmount">
          <Property name="property">contactAmount</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn>
          <Property name="property">foodVariety</Property>
          <Property name="name">foodVariety</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="createUser">
          <Property name="property">createUser</Property>
          <Property name="align">center</Property>
        </DataColumn>
        <DataColumn name="createTime">
          <Property name="property">createTime</Property>
          <Property name="align">center</Property>
        </DataColumn>
      </DataGrid>
    </Container>
@@ -614,16 +677,6 @@
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">completeNum</Property>
                    <Property name="property">completeNum</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">payType</Property>
                    <Property name="property">payType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">beginTime</Property>
                    <Property name="property">beginTime</Property>
                    <Editor/>
@@ -642,6 +695,68 @@
                    <Property name="name">planName</Property>
                    <Property name="property">planName</Property>
                    <Property name="trigger">ddPlan</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">auditUser</Property>
                    <Property name="property">auditUser</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">auditDate</Property>
                    <Property name="property">auditDate</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">payType</Property>
                    <Property name="property">payType</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">lybzj</Property>
                    <Property name="property">lybzj</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">relEndTime</Property>
                    <Property name="property">relEndTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countSettleMoney();</ClientEvent>
                    <Property name="name">completeNum</Property>
                    <Property name="property">completeNum</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <ClientEvent name="onBlur">countSettleMoney();</ClientEvent>
                    <Property name="name">jsjg</Property>
                    <Property name="property">jsjg</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jszje</Property>
                    <Property name="property">jszje</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">lyl</Property>
                    <Property name="property">lyl</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">jsyhtyzx</Property>
                    <Property name="property">jsyhtyzx</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement>
                    <Property name="name">updateTime</Property>
                    <Property name="property">updateTime</Property>
                    <Editor/>
                  </AutoFormElement>
                  <AutoFormElement layoutConstraint="colSpan:3">
                    <Property name="name">jsyhtbyzyy</Property>
                    <Property name="property">jsyhtbyzyy</Property>
                    <Editor/>
                  </AutoFormElement>
                </AutoForm>
@@ -708,11 +823,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>
@@ -732,6 +842,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>