apply-clients 3.5.5-86 → 3.5.5-87

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.5.5-86",
3
+ "version": "3.5.5-87",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -1778,17 +1778,29 @@ export default {
1778
1778
  }
1779
1779
  },
1780
1780
  'onblur' (index) {
1781
- if(this.show_data.fields[index].label==="优惠金额"){
1782
- let contract=this.getLableValue('合同金额')
1783
- let add=this.getLableValue('追加款')
1784
- let money = this.getLableValue('优惠金额')
1785
- //转为数字,然后contract减去money,保留两位小数
1786
- let money_num = parseFloat(money)
1787
- let add_num = parseFloat(add)
1788
- let contract_num = parseFloat(contract)
1789
- let new_contract = contract_num+add_num - money_num
1790
- this.setLabelValue('应交金额', new_contract.toFixed(2))
1781
+ if(this.show_data.f_apply_type === '改管报建'){
1782
+ if(this.show_data.fields[index].label==="优惠金额"){
1783
+ let contract=this.getLableValue('总金额')
1784
+ let money = this.getLableValue('优惠金额')
1785
+ let contract_num = parseFloat(contract)
1786
+ let money_num = parseFloat(money)
1787
+ let new_contract = contract_num - money_num
1788
+ this.setLabelValue('应交金额', new_contract.toFixed(2))
1789
+ }
1790
+ }else{
1791
+ if(this.show_data.fields[index].label==="优惠金额"){
1792
+ let contract=this.getLableValue('合同金额')
1793
+ let add=this.getLableValue('追加款')
1794
+ let money = this.getLableValue('优惠金额')
1795
+ //转为数字,然后contract减去money,保留两位小数
1796
+ let money_num = parseFloat(money)
1797
+ let add_num = parseFloat(add)
1798
+ let contract_num = parseFloat(contract)
1799
+ let new_contract = contract_num+add_num - money_num
1800
+ this.setLabelValue('应交金额', new_contract.toFixed(2))
1801
+ }
1791
1802
  }
1803
+
1792
1804
  },
1793
1805
  'oninput' (index) {},
1794
1806
  'initializtionView' () {},
@@ -1596,6 +1596,29 @@
1596
1596
  },
1597
1597
  selectSearch (val, index) {},
1598
1598
  'onblur' (index) {
1599
+ if(this.show_data.f_apply_type === '改管报建'){
1600
+ if(this.show_data.fields[index].label==="优惠金额"){
1601
+ let contract=this.getLableValue('总金额')
1602
+ let money = this.getLableValue('优惠金额')
1603
+ let contract_num = parseFloat(contract)
1604
+ let money_num = parseFloat(money)
1605
+ let new_contract = contract_num - money_num
1606
+ this.setLabelValue('应交金额', new_contract.toFixed(2))
1607
+ }
1608
+ }else{
1609
+ if(this.show_data.fields[index].label==="优惠金额"){
1610
+ let contract=this.getLableValue('合同金额')
1611
+ let add=this.getLableValue('追加款')
1612
+ let money = this.getLableValue('优惠金额')
1613
+ //转为数字,然后contract减去money,保留两位小数
1614
+ let money_num = parseFloat(money)
1615
+ let add_num = parseFloat(add)
1616
+ let contract_num = parseFloat(contract)
1617
+ let new_contract = contract_num+add_num - money_num
1618
+ this.setLabelValue('应交金额', new_contract.toFixed(2))
1619
+ }
1620
+ }
1621
+
1599
1622
  },
1600
1623
  'oninput' (index) {},
1601
1624
  'initializtionView' () {},