sale-client 4.1.230 → 4.2.1-ronghao

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.
Files changed (171) hide show
  1. package/build/dev-server.js +29 -46
  2. package/package.json +2 -2
  3. package/src/App.vue +3 -3
  4. package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -4
  5. package/src/components/FilesManageNew/FileUserFiles.vue +2 -4
  6. package/src/components/FilesManageNew/MeterinfoTest.vue +9 -9
  7. package/src/components/FilesManageNew/UserEssentialInfoTest.vue +201 -227
  8. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +0 -2
  9. package/src/components/charge/business/CardMeterCenter.vue +1 -1
  10. package/src/components/charge/business/FilesComplete.vue +3 -3
  11. package/src/components/charge/business/IOTMeterCenter.vue +1 -1
  12. package/src/components/charge/business/OtherChargeNew.vue +68 -48
  13. package/src/components/common/userinfo_detail/UserInfoDetailManageNew.vue +10 -1
  14. package/src/components/common/userinfo_detail/ic_detail/CardHandRecord.vue +1 -1
  15. package/src/components/common/userinfo_detail/ic_detail/ChangeMeterQueryUser.vue +1 -1
  16. package/src/components/common/userinfo_detail/ic_detail/GarbageRecordList.vue +69 -0
  17. package/src/components/common/userinfo_detail/ic_detail/InsuranceChargesRecord.vue +384 -0
  18. package/src/components/common/userinfo_detail/ic_detail/WebHandQueryUser.vue +1 -1
  19. package/src/components/revenue/Common/MeterMessage.vue +1 -1
  20. package/src/components/revenue/HandManager/MeterBookUser.vue +726 -726
  21. package/src/components/revenue/HandManager/WebHand.vue +7 -4
  22. package/src/components/revenue/base/leftview/SafeCheck.vue +41 -3
  23. package/src/components/revenue/base/leftview/UserFeeInfo.vue +76 -0
  24. package/src/components/revenue/base/leftview/otherinfo.vue +1 -0
  25. package/src/components/revenue/base/rightview/CardList.vue +7 -3
  26. package/src/components/revenue/batchDeduction/batchDeductionList.vue +1 -1
  27. package/src/components/revenue/cardHandManage/cardDown.vue +18 -0
  28. package/src/components/revenue/changeInsurance/InsuranceAdd.vue +1 -0
  29. package/src/components/revenue/changeInsurance/InsuranceRecord.vue +2 -1
  30. package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +1 -1
  31. package/src/components/revenue/comprehen/ComprehenOperation/GiftFee/icTable.vue +4 -2
  32. package/src/components/revenue/comprehen/ComprehenOperation/QrPay/QrPaymentDetailed.vue +423 -423
  33. package/src/components/revenue/comprehen/Maintenance/hand/handOperate.vue +469 -469
  34. package/src/components/revenue/comprehen/Maintenance/revenue/MeterOperatemain.vue +2 -2
  35. package/src/components/revenue/machineHandManage/ArrearsQuery.vue +938 -938
  36. package/src/components/revenue/machineHandManage/HandplanQuery.vue +1 -1
  37. package/src/components/revenue/machineHandManage/machineHand.vue +3 -2
  38. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +970 -970
  39. package/src/filiale/alashan/eticket/EticketRecordList.vue +428 -428
  40. package/src/filiale/bayan/ChargeList.vue +1010 -1010
  41. package/src/filiale/bayan/StockListmain.vue +543 -543
  42. package/src/filiale/beifangshiye/OtherChargeNew.vue +625 -625
  43. package/src/filiale/dexin/MeterinfoTest.vue +1239 -0
  44. package/src/filiale/dexin/UserEssentialInfoTest.vue +602 -0
  45. package/src/filiale/dexin/sale.js +5 -0
  46. package/src/filiale/fugou/MeterinfoTest.vue +1 -1
  47. package/src/filiale/jiaxian/AutomaticPurse.vue +349 -0
  48. package/src/filiale/jiaxian/ChangeMeterQueryUser.vue +303 -0
  49. package/src/filiale/jiaxian/ChangeRecord.vue +44 -2
  50. package/src/filiale/jiaxian/FillCardQueryUser.vue +250 -0
  51. package/src/filiale/jiaxian/FillGasQueryUser.vue +270 -0
  52. package/src/filiale/jiaxian/OtherChargeQueryUser.vue +305 -0
  53. package/src/filiale/jiaxian/PriceAdjustmentQueryUser.vue +368 -0
  54. package/src/filiale/jiaxian/PriceChangeQueryUser.vue +243 -0
  55. package/src/filiale/jiaxian/QueryInstruct.vue +436 -0
  56. package/src/filiale/jiaxian/RecordQueryUser.vue +321 -0
  57. package/src/filiale/jiaxian/Repurchase.vue +181 -0
  58. package/src/filiale/jiaxian/TransferQueryUser.vue +274 -0
  59. package/src/filiale/jiaxian/UserInfoDetailManageNew.vue +11 -11
  60. package/src/filiale/jiaxian/Userinfo.vue +426 -0
  61. package/src/filiale/jiaxian/WatchCollection.vue +54 -1
  62. package/src/filiale/jiaxian/WebAutomaticPurse.vue +348 -0
  63. package/src/filiale/jiaxian/contractSigningList.vue +149 -0
  64. package/src/filiale/jiaxian/sale.js +5 -0
  65. package/src/filiale/jinhong/AutoAccountsDetail.vue +63 -0
  66. package/src/filiale/jinhong/CardList.vue +572 -0
  67. package/src/filiale/jinhong/CardMeterCenter.vue +1 -1
  68. package/src/filiale/jinhong/CardMeterCenterInner.vue +61 -22
  69. package/src/filiale/jinhong/GarbageCharge.vue +1 -1
  70. package/src/filiale/jinhong/HandplanQuery.vue +1430 -0
  71. package/src/filiale/jinhong/IOTMeterCenterInner.vue +42 -14
  72. package/src/filiale/jinhong/InsuranceAdd.vue +27 -5
  73. package/src/filiale/jinhong/InsuranceChargesDetails.vue +11 -5
  74. package/src/filiale/jinhong/InsuranceRecord.vue +4 -5
  75. package/src/filiale/jinhong/InsuranceTemp.vue +33 -5
  76. package/src/filiale/jinhong/MachineChargeService.js +8 -0
  77. package/src/filiale/jinhong/MachineMeterCenter.vue +38 -11
  78. package/src/filiale/jinhong/ShowCardSellGasInner.vue +46 -14
  79. package/src/filiale/jinhong/Userinfo.vue +75 -1
  80. package/src/filiale/jinhong/insuranceGuanL.vue +349 -0
  81. package/src/filiale/jinhong/machineDown.vue +1205 -0
  82. package/src/filiale/jinhong/sale.js +9 -0
  83. package/src/filiale/jinhuang/UserInfoDetailManageNew.vue +259 -0
  84. package/src/filiale/jinhuang/WebHand.vue +1026 -0
  85. package/src/filiale/jinhuang/WebHandQueryUser.vue +413 -0
  86. package/src/filiale/jinhuang/cardsHand.vue +911 -0
  87. package/src/filiale/jinhuang/sale.js +8 -0
  88. package/src/filiale/lixianV3/ArrearsQuery.vue +938 -938
  89. package/src/filiale/lixianV3/InsuranceAdd.vue +1 -0
  90. package/src/filiale/lixianV3/InsuranceChargesDetails.vue +425 -425
  91. package/src/filiale/meihekou/CardMeterCenter.vue +991 -0
  92. package/src/filiale/meihekou/ChargeManage.vue +3 -2
  93. package/src/filiale/meihekou/ChargeOper.vue +279 -169
  94. package/src/filiale/meihekou/HandManager.vue +57 -2
  95. package/src/filiale/meihekou/NoCardMeterCenter.vue +542 -0
  96. package/src/filiale/meihekou/OverUseCharge.vue +1 -1
  97. package/src/filiale/meihekou/PrintBill.vue +48 -41
  98. package/src/filiale/meihekou/ReissueBill.vue +4 -1
  99. package/src/filiale/meihekou/ShowCardSellGas.vue +935 -0
  100. package/src/filiale/meihekou/TransferManage.vue +704 -0
  101. package/src/filiale/meihekou/Userinfo.vue +233 -5
  102. package/src/filiale/meihekou/common/userinfo_detail/ic_detail/MachineRecordQuery.vue +281 -281
  103. package/src/filiale/meihekou/icTable.vue +233 -0
  104. package/src/filiale/meihekou/machineHand.vue +2158 -0
  105. package/src/filiale/meihekou/manualChargeCenter.vue +394 -0
  106. package/src/filiale/meihekou/meterTable.vue +220 -0
  107. package/src/filiale/meihekou/sale.js +15 -0
  108. package/src/filiale/qianneng/MeterMessage.vue +1 -1
  109. package/src/filiale/qianneng/revenue/sms/AccountMessageList.vue +508 -508
  110. package/src/filiale/rizhao/InsuranceAdd.vue +1 -0
  111. package/src/filiale/ronghao/ArrearsQuery.vue +974 -974
  112. package/src/filiale/ronghao/CardList.vue +19 -17
  113. package/src/filiale/ronghao/CardMeterChargeCancel.vue +5 -0
  114. package/src/filiale/ronghao/CardService.js +2144 -2144
  115. package/src/filiale/ronghao/ChangeMeterService.js +1 -1
  116. package/src/filiale/ronghao/ChargeList.vue +17 -17
  117. package/src/filiale/ronghao/ChargeManage.vue +325 -0
  118. package/src/filiale/ronghao/ChargeOper.vue +330 -0
  119. package/src/filiale/ronghao/FilesManageNew/UserEssentialInfoTest.vue +457 -0
  120. package/src/filiale/ronghao/FilesManageNew/UserGeneralInfoTest.vue +690 -0
  121. package/src/filiale/ronghao/HandplanQuery.vue +13 -14
  122. package/src/filiale/ronghao/IOTMeterCenter.vue +15 -6
  123. package/src/filiale/ronghao/InsuranceAdd.vue +1 -0
  124. package/src/filiale/ronghao/InsuranceManage.vue +58 -58
  125. package/src/filiale/ronghao/MachineChargeService.js +149 -149
  126. package/src/filiale/ronghao/NoCardMeterCenter.vue +534 -534
  127. package/src/filiale/ronghao/PaymentCode.vue +174 -174
  128. package/src/filiale/ronghao/PriceChangeCompensation/CompensationManage.vue +26 -26
  129. package/src/filiale/ronghao/PriceChangeCompensation/IotCompensation.vue +318 -318
  130. package/src/filiale/ronghao/PriceChangeCompensation/JbCompensation.vue +343 -343
  131. package/src/filiale/ronghao/PriceChangeCompensation/SurplusRecordDetail.vue +74 -74
  132. package/src/filiale/ronghao/ReplaceCardManage.vue +415 -415
  133. package/src/filiale/ronghao/Upload.vue +654 -654
  134. package/src/filiale/ronghao/Userinfo.vue +18 -18
  135. package/src/filiale/ronghao/cardDown.vue +1141 -1141
  136. package/src/filiale/ronghao/changemeterOperate.vue +315 -315
  137. package/src/filiale/ronghao/fillgasSpecific.vue +313 -313
  138. package/src/filiale/ronghao/ic_detail/ChargeRecordQuery.vue +106 -106
  139. package/src/filiale/ronghao/ic_detail/WatchCollection.vue +115 -115
  140. package/src/filiale/ronghao/ic_detail/WebHandQueryUser.vue +411 -411
  141. package/src/filiale/ronghao/machineDown.vue +1176 -1176
  142. package/src/filiale/ronghao/machineRefund.vue +3 -1
  143. package/src/filiale/ronghao/replacementSingleInfoOperation.vue +315 -315
  144. package/src/filiale/ronghao/sale.js +11 -0
  145. package/src/filiale/ronghao/specificInformation.vue +537 -537
  146. package/src/filiale/ronghao/uploadFilesHistory.vue +214 -0
  147. package/src/filiale/ruihua/FilesManage/MeterinfoTest.vue +10 -0
  148. package/src/filiale/shanxian/components/revenue/InsuranceAdd.vue +1 -0
  149. package/src/filiale/wuan/MeterMessage.vue +1 -1
  150. package/src/filiale/yangchun/BasicLivingList.vue +281 -0
  151. package/src/filiale/yangchun/BlackList/BlackRecordQuery.vue +1 -0
  152. package/src/filiale/yangchun/CardChangeFill.vue +1 -1
  153. package/src/filiale/yangchun/ChargeList.vue +954 -954
  154. package/src/filiale/yangchun/FilesManage/UserPaperInfoTest.vue +3 -3
  155. package/src/filiale/yangchun/NewMeterList.vue +742 -0
  156. package/src/filiale/yangchun/sale.js +3 -0
  157. package/src/filiale/yuncheng/CardList.vue +1 -1
  158. package/src/filiale/yuncheng/IndustryCommerceHand.vue +1145 -0
  159. package/src/filiale/yuncheng/IndustryCommerceHandAudit.vue +794 -0
  160. package/src/filiale/yuncheng/IndustryCommerceHandManager.vue +64 -0
  161. package/src/filiale/yuncheng/InsuranceAdd.vue +1 -0
  162. package/src/filiale/yuncheng/MeterBookUser.vue +781 -0
  163. package/src/filiale/yuncheng/UserDeviceInfoTest.vue +2 -2
  164. package/src/filiale/yuncheng/changemeterListMaintain.vue +504 -504
  165. package/src/filiale/yuncheng/industryDown.vue +1118 -0
  166. package/src/filiale/yuncheng/sale.js +11 -0
  167. package/src/filiale/yuncheng/uploadFilesHistory.vue +185 -0
  168. package/src/filiale/zhongsheng/BlackListList.vue +293 -293
  169. package/src/filiale/zhongyi/HandQueryUser.vue +389 -389
  170. package/src/plugins/CardService.js +2217 -2217
  171. package/src/sale.js +3 -1
@@ -95,23 +95,31 @@
95
95
 
96
96
  <!-- <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按气量' && model.f_payment!='赠气'"-->
97
97
  <!-- :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">-->
98
- <!-- <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>-->
98
+ <!-- <label for="f_collection" class=" font_normal_body">燃气收款</label>-->
99
99
  <!-- <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"-->
100
100
  <!-- v-validate:f_collection='{required: true, dctest: [(model.f_totalcost - 0), ">=" ] }'-->
101
101
  <!-- v-el:sk v-scale="[model.f_totalcost, 2]" :disabled="$refs.givechange.promptText != ''">-->
102
102
  <!-- </div>-->
103
103
  <!-- <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按气量' && model.f_payment=='赠气'"-->
104
104
  <!-- :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">-->
105
- <!-- <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>-->
105
+ <!-- <label for="f_collection" class=" font_normal_body">燃气收款</label>-->
106
106
  <!-- <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"-->
107
107
  <!-- v-el:sk v-scale="[model.f_totalcost, 2]" :disabled="$refs.givechange.promptText != ''">-->
108
108
  <!-- </div>-->
109
- <div class="col-sm-3 form-group">
110
- <label for="f_collection" class=" font_normal_body">&nbsp;&nbsp;&nbsp;收款&nbsp;&nbsp;&nbsp;</label>
111
- <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"
112
- @blur="config.calculatePreByCollection && calculatePreByCollection()"
113
- @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"
114
- v-el:sk v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection ">
109
+ <!-- <div class="col-sm-3 form-group">-->
110
+ <!-- <label for="f_collection" class=" font_normal_body">燃气收款</label>-->
111
+ <!-- <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="model.f_collection"-->
112
+ <!-- @blur="config.calculatePreByCollection && calculatePreByCollection()"-->
113
+ <!-- @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm))"-->
114
+ <!-- v-el:sk v-scale="[model.f_collection, row.f_fee_decimal||4]" :disabled="!config.calculatePreByCollection ">-->
115
+ <!-- </div>-->
116
+ <div class="col-sm-4 form-group"
117
+ :class="[$v.f_preamount.required || $v.f_preamount.dctest? 'has-error' : 'has-success']">
118
+ <label for="f_preamount" class=" font_normal_body">燃气收款</label>
119
+ <input class="input_search" style="width:60%" @keyup.enter="checkInvoiceMsg((!$v.valid || validateOk || !islegal || clickConfirm)),preamount()" @blur="preamount()" type="number" v-model="model.f_preamount" id="f_preamount"
120
+ v-validate:f_preamount='{required: true, dctest: [maxmoney, "<=" ] }'
121
+ :disabled="config.calculatePreByCollection"
122
+ v-scale="[model.f_preamount, row.f_fee_decimal||4]" placeholder="燃气收款" >
115
123
  </div>
116
124
  <div class="col-sm-1 form-group">
117
125
  <give-change :curbalance="curbalance" :collection.sync="model.f_collection" v-ref:givechange></give-change>
@@ -168,7 +176,7 @@
168
176
  </div>
169
177
  <div class="col-sm-4">
170
178
  <label for="f_comments" class="font_normal_body">合计金额</label>
171
- <input class="input_search" style="width:77%" v-model="sumCollection" rows="1" placeholder="合计">
179
+ <input class="input_search" style="width:77%" v-model="sumCollection" @blur="calculateCollection" rows="1" placeholder="合计">
172
180
  </div>
173
181
  </div>
174
182
 
@@ -323,10 +331,15 @@ import {HttpResetClass} from 'vue-client'
323
331
  self.model.f_expiration_date = self.insurance.f_expiration_date
324
332
  self.model.f_salecount = self.insurance.f_salecount
325
333
  self.model.f_money = self.insurance.f_money_all
334
+ self.model.f_insurance_company = self.insurance.f_insurance_company
335
+ self.model.f_insurance_number = self.insurance.f_insurance_number
326
336
  param.insurance = Object.assign({}, {}, self.model)
327
337
  param.insurance.f_payment = self.model.f_payment[0]
328
338
  param.insurance.f_userinfo_code = self.row.f_userinfo_code
339
+ param.insurance.f_idnumber = self.row.f_idnumber
340
+ param.insurance.f_user_phone = self.row.f_user_phone
329
341
  param.insurance.f_state = '有效'
342
+ param.insurance.f_receivable = self.insurance.f_money_all
330
343
  param.insurance.f_user_name = self.row.f_user_name
331
344
  param.insurance.f_opreator = self.$login.f.name
332
345
  // await self.$resetpost('api/af-revenue/logic/saveInsInfo', {data: self.model})
@@ -528,6 +541,7 @@ import {HttpResetClass} from 'vue-client'
528
541
  invoice_is_pax: '不征税',
529
542
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
530
543
 
544
+ sumCollection: 0,
531
545
  calculatedetail: '',
532
546
  // 启用发票管理需要对票号进行验证
533
547
  hasValidateBill: false,
@@ -573,6 +587,7 @@ import {HttpResetClass} from 'vue-client'
573
587
  })
574
588
  }
575
589
  // this.getPurchase()
590
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
576
591
  this.model.f_price_id = this.row.f_price_id
577
592
  this.model.f_user_id = this.row.f_user_id
578
593
  this.model.f_userfiles_id = this.row.f_userfiles_id
@@ -588,10 +603,12 @@ import {HttpResetClass} from 'vue-client'
588
603
  'insurance.f_money_all'(){
589
604
  // 获取计算优惠
590
605
  this.getPrivilegeList()
606
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
591
607
  },
592
608
  'garbagefee'(){
593
609
  // 获取计算优惠
594
610
  this.getPrivilegeList()
611
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
595
612
  },
596
613
  'model.f_payment.length' (val) {
597
614
  console.log('付款方式多选。。', val)
@@ -617,6 +634,7 @@ import {HttpResetClass} from 'vue-client'
617
634
  'model.f_collection' (val) {
618
635
  // 获取计算优惠
619
636
  this.getPrivilegeList()
637
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
620
638
  },
621
639
  'model.f_payment' (val) {
622
640
  let _payment = this.$appdata.getSingleValue('需要输入业务单号的付款方式') || ''
@@ -651,6 +669,19 @@ import {HttpResetClass} from 'vue-client'
651
669
  }
652
670
  },
653
671
  methods: {
672
+ calculateCollection () {
673
+ if (!isNaN(this.sumCollection) && this.sumCollection > 0) {
674
+ let tempFee = this.sumCollection
675
+ if ((this.garbagefee - 0) > 0) {
676
+ tempFee = (tempFee - 0) - (this.garbagefee - 0)
677
+ }
678
+ if ((this.insurance.f_money_all - 0) > 0) {
679
+ tempFee = (tempFee - 0) - (this.insurance.f_money_all - 0)
680
+ }
681
+ this.model.f_collection = tempFee
682
+ this.calculatePreByCollection()
683
+ }
684
+ },
654
685
  // 根据收款金额计算划价信息
655
686
  // 需要配置 calculatePreByCollection = true
656
687
  async calculatePreByCollection () {
@@ -665,7 +696,7 @@ import {HttpResetClass} from 'vue-client'
665
696
  // 通过收款进行划价
666
697
  let getGas = await this.$CommonService.feeCalculate(this.model, calFee)
667
698
  if (this.row.f_isdecimal === '是') {
668
- this.model.f_pregas = getGas.data.gas.toFixed(this.row.f_gas_decimal || 4)
699
+ this.model.f_pregas = (getGas.data.gas - 0).toFixed(this.row.f_gas_decimal || 4)
669
700
  } else {
670
701
  this.model.f_pregas = parseInt(getGas.data.gas)
671
702
  }
@@ -873,9 +904,6 @@ import {HttpResetClass} from 'vue-client'
873
904
  }
874
905
  },
875
906
  computed: {
876
- sumCollection () {
877
- return (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
878
- },
879
907
  authArr () {
880
908
  return this.$login.r ? this.$login.r : []
881
909
  },
@@ -884,7 +912,7 @@ import {HttpResetClass} from 'vue-client'
884
912
  return this.row.f_balance
885
913
  }
886
914
  if (this.model.f_preamount) {
887
- return ((this.model.f_collection - 0) - (this.model.f_preamount - 0) + (this.row.f_balance - 0) - this.alldue_fee).toFixed(2) - 0
915
+ return ((this.model.f_collection - 0) - (this.model.f_preamount - 0) + (this.row.f_balance - 0) - this.alldue_fee).toFixed(this.row.f_gas_decimal || 4) - 0
888
916
  } else {
889
917
  return 0
890
918
  }
@@ -59,7 +59,7 @@
59
59
  <datepicker id="f_ins_start_date" placeholder="本次保费开始日期" style="width:60%"
60
60
  v-model="model.f_ins_start_date"
61
61
  :value.sync="model.f_ins_start_date"
62
- :format="'yyyy-MM-dd'"
62
+ :format="'yyyy-MM-dd HH:mm:ss'"
63
63
  :show-reset-button="true">
64
64
  </datepicker>
65
65
  </div>
@@ -113,6 +113,22 @@
113
113
  v-ref:f_insurance_type>
114
114
  </v-select>
115
115
  </div>
116
+ <div class="col-sm-6 form-group" >
117
+ <label class="font_normal_body" title="参数:保险公司">&emsp;&emsp;&emsp;&emsp;保险公司</label>
118
+ <input v-show="false" v-model="$refs.f_insurance_company.selectedItems"
119
+ type="text">
120
+ <v-select
121
+ v-model="model.f_insurance_company"
122
+ v-ref:f_insurance_company
123
+ :options='insurancecompany'
124
+ :value-single="true"
125
+ :value.sync="model.f_insurance_company"
126
+ close-on-select
127
+ placeholder='保险公司'
128
+ style="width:60%"
129
+ >
130
+ </v-select>
131
+ </div>
116
132
  <div class="col-sm-6 form-group" :class="[$v.f_state.required ? 'has-error' : '']">
117
133
  <label class="font_normal_body" title="参数:保险状态">&emsp;&emsp;&emsp;&emsp;保险状态</label>
118
134
  <input type="text" v-show="false" v-model="$refs.f_state.selectedItems"
@@ -152,7 +168,7 @@
152
168
  </div>
153
169
  <div class="col-sm-6 form-group">
154
170
  <label class="font_normal_body">&emsp;&emsp;&emsp;&emsp;保险单号</label>
155
- <input type="text" v-model="model.f_ins_number" style="width: 60%"
171
+ <input type="text" v-model="model.f_insurance_number" style="width: 60%"
156
172
  class="input_search">
157
173
  </div>
158
174
  <div class="col-sm-6 form-group" v-show="false">
@@ -210,6 +226,7 @@
210
226
  paytype: [],
211
227
  insurancetype: this.$appdata.getParam('险种'),
212
228
  insurancestate: this.$appdata.getParam('保险状态'),
229
+ insurancecompany: this.$appdata.getParam('保险公司'),
213
230
  f_salecount: {
214
231
  dctest: true
215
232
  },
@@ -263,19 +280,24 @@
263
280
  if (JSON.stringify(this.row) != '{}') {
264
281
  this.model = {
265
282
  f_userinfo_id: this.row.f_userinfo_id,
283
+ f_userfiles_id: this.row.f_userfiles_id,
266
284
  f_ins_stop_date: this.row.f_ins_stop_date,
267
285
  f_user_name: this.row.f_user_name,
268
286
  f_idnumber: this.row.f_idnumber,
269
287
  f_user_phone: this.row.f_user_phone,
270
288
  f_salecount: this.row.f_saleCount,
271
289
  f_userinfo_code: this.row.f_userinfo_code,
290
+ f_ins_start_date:Util.toStandardTimeString(),
272
291
  f_last_insexpiration_date: this.row.f_ins_stop_date
273
292
  }
274
293
  }
275
294
  }
276
- this.model.f_buy_date = this.$login.toStandardTimeString()
277
- this.$set('model.f_ins_start_date', Util.toStandardDateString())
278
- this.model.f_ins_start_date = Util.toStandardDateString()
295
+ this.model.f_buy_date = Util.toStandardTimeString()
296
+ if(this.model.f_ins_stop_date && this.model.f_ins_stop_date>Util.toStandardTimeString()){
297
+ this.$set('model.f_ins_start_date',this.model.f_ins_stop_date)
298
+ }else{
299
+ this.$set('model.f_ins_start_date',Util.toStandardTimeString())
300
+ }
279
301
  this.model.f_salecount = 1
280
302
  this.configMerge()
281
303
  },
@@ -97,9 +97,9 @@
97
97
  </div>
98
98
  <div class="col-sm-2 form-group">
99
99
  <label class="font_normal_body" for="f_user_name">保险单号</label>
100
- <input id="f_ins_number" type="text" class="input_search" style="width: 60%"
101
- v-model="model.f_ins_number"
102
- condition="f_ins_number like '%{}%'" placeholder='请输入要查询的保险单号'>
100
+ <input id="f_insurance_number" type="text" class="input_search" style="width: 60%"
101
+ v-model="model.f_insurance_number"
102
+ condition="f_insurance_number like '%{}%'" placeholder='请输入要查询的保险单号'>
103
103
  </div>
104
104
  <div class="col-sm-2 form-group">
105
105
  <label class="font_normal_body" for="f_user_name">备注信息</label>
@@ -219,6 +219,9 @@
219
219
  <th>
220
220
  <nobr>缴费时间</nobr>
221
221
  </th>
222
+ <th style="text-align: center">
223
+ <nobr> 保险公司</nobr>
224
+ </th>
222
225
  <th>
223
226
  <nobr>保险单号</nobr>
224
227
  </th>
@@ -294,7 +297,10 @@
294
297
  <nobr>{{ row.f_operate_date }}</nobr>
295
298
  </td>
296
299
  <td style="text-align: center;">
297
- <nobr>{{ row.f_ins_number }}</nobr>
300
+ <nobr>{{ row.f_insurance_company }}</nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr>{{ row.f_insurance_number }}</nobr>
298
304
  </td>
299
305
  <td style="text-align: center;">
300
306
  <nobr>{{ row.f_insurance_type }}</nobr>
@@ -416,7 +422,7 @@ export default {
416
422
  'f_payment': '收款方式',
417
423
  'f_state': '状态',
418
424
  'f_operate_date': '缴费时间',
419
- 'f_ins_number': '保险单号',
425
+ 'f_insurance_number': '保险单号',
420
426
  'f_insurance_type': '险种',
421
427
  'f_salecount': '购买年限',
422
428
  'f_operator': '操作人',
@@ -98,7 +98,7 @@
98
98
  <header slot="modal-header" class="modal-header" style="text-align: center">
99
99
  <h4 class="modal-title">保险撤销</h4>
100
100
  </header>
101
- <article slot="modal-body" class="modal-body" style="height: 950px">
101
+ <article slot="modal-body" class="modal-body" style="height: 450px">
102
102
  <validator name='v'>
103
103
  <form class="form-horizontal select-overspread">
104
104
  <!-- <div class="form-group" :class="[$v.payment.required ? 'has-error' : '']" v-if="paymentShow && (!config.hasAudit || isTodayResult)">-->
@@ -159,10 +159,9 @@
159
159
  </div>
160
160
  </div>
161
161
  </form>
162
- <div class="form-group" style="padding-top: 20px;padding-left: 20px">
163
- <upload v-if="config.showupload && (config.hasAudit && !isTodayResult)" :blodid="obj.f_userinfo_id"
164
- :businessid="model.randomBusinessId" isremark="true" fusetype="保险冲正"></upload>
165
- </div>
162
+ <upload v-if="config.showupload && (config.hasAudit && !isTodayResult)" :blodid="obj.f_userinfo_id"
163
+ :businessid="model.randomBusinessId" isremark="true" fusetype="保险冲正">
164
+ </upload>
166
165
  </validator>
167
166
  </article>
168
167
  <footer slot="modal-footer" class="modal-footer">
@@ -43,6 +43,27 @@
43
43
  <label class="font_normal_body">结束日期</label>
44
44
  <input v-model="model.f_expiration_date" style="width: 60%" placeholder="保险到期时间" :value.sync='model.f_expiration_date' class="input_search" type="text" >
45
45
  </div>
46
+ <div class="col-sm-4 form-group" >
47
+ <label class="font_normal_body" title="参数:保险公司">保险公司</label>
48
+ <input v-show="false" v-model="$refs.f_insurance_company.selectedItems"
49
+ type="text">
50
+ <v-select
51
+ v-model="model.f_insurance_company"
52
+ v-ref:f_insurance_company
53
+ :options='insurancecompany'
54
+ :value-single="true"
55
+ :value.sync="model.f_insurance_company"
56
+ close-on-select
57
+ placeholder='保险公司'
58
+ style="width:60%"
59
+ >
60
+ </v-select>
61
+ </div>
62
+ <div class="col-sm-4 form-group" >
63
+ <label class="font_normal_body">保险单号</label>
64
+ <input v-model="model.f_insurance_number" class="input_search" placeholder="保险单号" style="width:60%"
65
+ type="number">
66
+ </div>
46
67
  <div class="col-sm-4 form-group" >
47
68
  <label class="font_normal_body">保费总额</label>
48
69
  <input v-model="model.f_money_all" class="input_search" placeholder="保费总额" style="width:60%"
@@ -63,12 +84,15 @@ export default {
63
84
  f_insurance_type: '',
64
85
  f_money: null,
65
86
  f_ins_start_date: '',
87
+ f_insurance_company: '',
88
+ f_insurance_number: '',
66
89
  f_expiration_date: '',
67
90
  f_salecount: null,
68
91
  f_money_all: null
69
92
  },
70
93
  paytype: [],
71
94
  insurancetype: this.$appdata.getParam('险种'),
95
+ insurancecompany: this.$appdata.getParam('保险公司'),
72
96
  f_salecount: {
73
97
  dctest: true
74
98
  }
@@ -78,7 +102,11 @@ export default {
78
102
  row: Object
79
103
  },
80
104
  ready () {
81
- this.model.f_ins_start_date = Util.toStandardTimeString()
105
+ if(this.row.f_ins_stop_date && this.row.f_ins_stop_date>Util.toStandardTimeString()){
106
+ this.model.f_ins_start_date = this.row.f_ins_stop_date
107
+ } else {
108
+ this.model.f_ins_start_date = Util.toStandardTimeString()
109
+ }
82
110
  },
83
111
  watch: {
84
112
  'model.f_ins_start_date' (val) {
@@ -166,12 +194,12 @@ export default {
166
194
  if (saveState) {
167
195
  this.model.f_total_ins_charge = this.model.f_total_ins_charge == null ? 0 : this.model.f_total_ins_charge
168
196
  this.model.f_operat_type = '保险'
169
- this.model.f_operator = this.operatorname[0]
170
- this.model.f_operatorid = this.f_operatorid[0]
197
+ this.model.f_operator = this.$login.f.name
198
+ this.model.f_operatorid = this.$login.f.id
171
199
  this.model.f_orgid = this.$login.f.orgid
172
200
  this.model.f_orgname = this.$login.f.orgs
173
- this.model.f_depid = this.f_depid[0]
174
- this.model.f_depname = this.depname[0]
201
+ this.model.f_depid = this.$login.f.depids
202
+ this.model.f_depname = this.$login.f.deps
175
203
  this.model.f_fee_type = '保险收费'
176
204
  this.model.f_last_insexpiration_date = this.model.f_ins_stop_date
177
205
  await
@@ -46,6 +46,14 @@ let MachineChargeService = {
46
46
  f_after_discount: model.f_after_discount,
47
47
  isBreakOverdue: model.isBreakOverdue,
48
48
  floor: floor,
49
+ f_operator: model.f_operator ? model.f_operator : Vue.$login.f.name,
50
+ f_operatorid: Vue.$login.f.id,
51
+ f_orgid: Vue.$login.f.orgid,
52
+ f_orgname: Vue.$login.f.orgs,
53
+ f_depid: Vue.$login.f.depids,
54
+ f_depname: Vue.$login.f.deps,
55
+ f_zoneid: Vue.$login.f.zoneid,
56
+ f_zones: Vue.$login.f.zones,
49
57
  operInfo: {
50
58
  f_operator: model.f_operator ? model.f_operator : Vue.$login.f.name,
51
59
  f_operatorid: Vue.$login.f.id,
@@ -71,13 +71,13 @@
71
71
  <input class="input_search" style="width:60%" type="number" v-model="curbalance" disabled>
72
72
  </div>
73
73
  <div class="col-sm-3 form-group" v-if="config.hasfindaReail" :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error select-error' : '']">
74
- <label for="f_collection" class="font_normal_body">收&emsp;&emsp;款</label>
74
+ <label for="f_collection" class="font_normal_body">燃气收款</label>
75
75
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="data.f_collection"
76
76
  v-validate:f_collection='{required: true, dctest: [0, ">=" ]}' v-scale = "[data.f_collection, 2]"
77
77
  @mousewheel.native.prevent @keyup.enter="confirm()" :disabled="$refs.givechange.promptText != ''">
78
78
  </div>
79
79
  <div class="col-sm-4 form-group" v-if="!config.hasfindaReail" :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error select-error' : '']">
80
- <label for="f_collection" class="font_normal_body">收&emsp;&emsp;款</label>
80
+ <label for="f_collection" class="font_normal_body">燃气收款</label>
81
81
  <input id="f_collection" class="input_search" style="width:60%" type="number" v-model="data.f_collection"
82
82
  v-validate:f_collection='{required: true, dctest: [0, ">=" ]}' v-scale = "[data.f_collection, 2]"
83
83
  @mousewheel.native.prevent @keyup.enter="confirm()" :disabled="$refs.givechange.promptText != ''">
@@ -132,7 +132,7 @@
132
132
  </div>
133
133
  <div class="col-sm-4">
134
134
  <label for="f_comments" class="font_normal_body">合计金额</label>
135
- <input class="input_search" style="width:77%" v-model="sumCollection" rows="1" placeholder="合计">
135
+ <input class="input_search" style="width:77%" v-model="sumCollection" @blur="calculateCollection" rows="1" placeholder="合计">
136
136
  </div>
137
137
  </div>
138
138
  </form>
@@ -208,7 +208,7 @@ let asyncMachineMeterCenter = async function (self) {
208
208
  // 加入扫码盒付款码支付流水号
209
209
  self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
210
210
  console.log('查看传过来的数据=====================>', self)
211
- if (self.insurance && self.insurance.f_money_all>0) {
211
+ if (self.insurance && self.insurance.f_money_all > 0) {
212
212
  self.model.f_total_ins_charge = self.model.f_total_ins_charge == null ? 0 : self.model.f_total_ins_charge
213
213
  self.model.f_fee_type = '保险收费'
214
214
  self.model.f_last_insexpiration_date = self.model.f_ins_stop_date
@@ -217,13 +217,24 @@ let asyncMachineMeterCenter = async function (self) {
217
217
  self.model.f_expiration_date = self.insurance.f_expiration_date
218
218
  self.model.f_salecount = self.insurance.f_salecount
219
219
  self.model.f_money = self.insurance.f_money_all
220
+ self.model.f_insurance_company = self.insurance.f_insurance_company
221
+ self.model.f_insurance_number = self.insurance.f_insurance_number
220
222
  let insurance = Object.assign({}, {}, self.model)
221
223
  insurance.f_userinfo_code = self.row.f_userinfo_code
222
224
  insurance.f_state = '有效'
223
225
  insurance.f_operat_type = '保险'
224
226
  insurance.f_user_name = self.row.f_user_name
227
+ insurance.f_idnumber = self.row.f_idnumber
228
+ insurance.f_user_phone = self.row.f_user_phone
225
229
  insurance.f_payment = self.data.f_payment.toString()
226
- insurance.f_opreator = self.$login.f.name
230
+ insurance.f_userfiles_id = self.row.f_userfiles_id
231
+ insurance.f_operator = self.$login.f.name
232
+ insurance.f_operatorid = self.$login.f.id
233
+ insurance.f_orgid = self.$login.f.orgid
234
+ insurance.f_orgname = self.$login.f.orgs
235
+ insurance.f_depid = self.$login.f.depids
236
+ insurance.f_depname = self.$login.f.deps
237
+ insurance.f_receivable = self.insurance.f_money_all
227
238
  insurance.f_userinfo_id = self.row.f_userinfo_id
228
239
  self.model.insurance = insurance
229
240
  // await self.$resetpost('api/af-revenue/logic/saveInsInfo', {data: self.model})
@@ -348,6 +359,7 @@ let asyncMachineMeterCenter = async function (self) {
348
359
  f_old_overdue: 0,
349
360
  f_new_overdue: ''
350
361
  },
362
+ sumCollection: 0,
351
363
  newOverdue: 0,
352
364
  isBreakOverdue: false,
353
365
  breakOverdue: {},
@@ -377,7 +389,7 @@ let asyncMachineMeterCenter = async function (self) {
377
389
  serialShow: false
378
390
  }
379
391
  },
380
- props: ['data', 'row', 'floor', 'ceil', 'charge','garbagelist', 'garbagefee', 'insurance'],
392
+ props: ['data', 'row', 'floor', 'ceil', 'charge', 'garbagelist', 'garbagefee', 'insurance'],
381
393
  ready () {
382
394
  this.paytype = this.$appdata.getParam('付款方式') ? this.$appdata.getParam('付款方式') : []
383
395
  if (!this.$login.r.includes('免交充值付款')) {
@@ -385,6 +397,7 @@ let asyncMachineMeterCenter = async function (self) {
385
397
  return item.label != '免交'
386
398
  })
387
399
  }
400
+ this.sumCollection = (this.data.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
388
401
  // this.calOverdue()
389
402
  this.newOverdue = this.overdueModal.f_old_overdue = this.data.f_overdue
390
403
  if (this.floor) {
@@ -410,6 +423,20 @@ let asyncMachineMeterCenter = async function (self) {
410
423
  this.showOverdueModal = true
411
424
  },
412
425
  methods: {
426
+ calculateCollection () {
427
+ console.log(this.sumCollection)
428
+ if (!isNaN(this.sumCollection) && this.sumCollection > 0) {
429
+ console.log('adawdafacfcacacascascassca')
430
+ let tempFee = this.sumCollection
431
+ if ((this.garbagefee - 0) > 0) {
432
+ tempFee = tempFee - (this.garbagefee - 0)
433
+ }
434
+ if ((this.insurance.f_money_all - 0) > 0) {
435
+ tempFee = tempFee - (this.insurance.f_money_all - 0)
436
+ }
437
+ this.data.f_collection = tempFee
438
+ }
439
+ },
413
440
  getRandomId () {
414
441
  this.randomBusinessId = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function (c) {
415
442
  let res = Math.random() * 16 | 0
@@ -661,13 +688,15 @@ let asyncMachineMeterCenter = async function (self) {
661
688
  // this.data.f_last_overdue = this.newOverdue
662
689
  this.newOverdue = val
663
690
  },
664
- 'garbagefee'(){
691
+ 'garbagefee' () {
665
692
  // 获取计算优惠
666
693
  this.getPrivilegeList()
694
+ this.sumCollection = (this.data.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
667
695
  },
668
- 'insurance.f_money_all'(){
696
+ 'insurance.f_money_all' () {
669
697
  // 获取计算优惠
670
698
  this.getPrivilegeList()
699
+ this.sumCollection = (this.data.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
671
700
  },
672
701
  'splitAll' (val) {
673
702
  this.data.f_pregas = this.data.f_pregas - val
@@ -709,12 +738,10 @@ let asyncMachineMeterCenter = async function (self) {
709
738
  this.data.f_after_discount = this.data.f_collection
710
739
  // 获取计算优惠
711
740
  this.getPrivilegeList()
741
+ this.sumCollection = (this.data.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
712
742
  }
713
743
  },
714
744
  computed: {
715
- sumCollection () {
716
- return (this.data.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
717
- },
718
745
  authArr () {
719
746
  return this.$login.r ? this.$login.r : []
720
747
  },