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
@@ -87,7 +87,7 @@
87
87
 
88
88
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按气量'"
89
89
  :class="[$v.f_collection.required || $v.f_collection.dctest ? 'has-error' : 'has-success']">
90
- <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
90
+ <label for="f_collection" class=" font_normal_body">燃气收款</label>
91
91
  <input class="input_search" style="width:60%" type="number" v-model="model.f_collection"
92
92
  @blur="calculatePreByCollection()"
93
93
  v-show="config.calculatePreByCollection"
@@ -99,7 +99,7 @@
99
99
  v-el:sk v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
100
100
  </div>
101
101
  <div class="col-sm-3 form-group" v-if="row.f_collection_type === '按金额'">
102
- <label for="f_collection" class=" font_normal_body">*收&emsp;&emsp;款</label>
102
+ <label for="f_collection" class=" font_normal_body">燃气收款</label>
103
103
  <input class="input_search" style="width:50%" type="number" v-model="model.f_collection"
104
104
  @blur="config.calculatePreByCollection && calculatePreByCollection()"
105
105
  v-el:sk v-scale="[model.f_collection, 4]" :disabled="$refs.givechange.promptText != ''">
@@ -176,7 +176,7 @@
176
176
  </div>
177
177
  <div class="col-sm-4">
178
178
  <label for="f_comments" class="font_normal_body">合计金额</label>
179
- <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="合计">
180
180
  </div>
181
181
  </div>
182
182
  <div v-if="paymentModel.length >1">
@@ -322,7 +322,7 @@ let preamountGen = async function (self) {
322
322
  }
323
323
  self.model.f_preamount = (calFee - (self.dymoney - 0)).toFixed(self.row.f_fee_decimal || 4)
324
324
  self.calText(getGas.data.chargeprice)
325
- self.pricetext = getGas.data.chargeprice[0].pricetext ? getGas.data.chargeprice[0].pricetext:null
325
+ self.pricetext = getGas.data.chargeprice[0].pricetext ? getGas.data.chargeprice[0].pricetext : null
326
326
  }
327
327
 
328
328
  // 输入气量,换算金额
@@ -343,7 +343,7 @@ let pregasGen = async function (self) {
343
343
  if (self.config.floor) {
344
344
  self.model.f_collection = Math.ceil(self.model.f_collection)
345
345
  }
346
- self.pricetext = getAmount.data.chargeprice[0].pricetext?getAmount.data.chargeprice[0].pricetext:null
346
+ self.pricetext = getAmount.data.chargeprice[0].pricetext ? getAmount.data.chargeprice[0].pricetext : null
347
347
  self.calText(getAmount.data.chargeprice)
348
348
  }
349
349
  }
@@ -368,7 +368,7 @@ let initCardGen = async function (self) {
368
368
  self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
369
369
  // 加入扫码盒付款码支付流水号
370
370
  self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
371
- if (self.insurance && self.insurance.f_money_all>0) {
371
+ if (self.insurance && self.insurance.f_money_all > 0) {
372
372
  self.model.f_total_ins_charge = self.model.f_total_ins_charge == null ? 0 : self.model.f_total_ins_charge
373
373
  self.model.f_fee_type = '保险收费'
374
374
  self.model.f_last_insexpiration_date = self.model.f_ins_stop_date
@@ -377,13 +377,24 @@ let initCardGen = async function (self) {
377
377
  self.model.f_expiration_date = self.insurance.f_expiration_date
378
378
  self.model.f_salecount = self.insurance.f_salecount
379
379
  self.model.f_money = self.insurance.f_money_all
380
+ self.model.f_insurance_company = self.insurance.f_insurance_company
381
+ self.model.f_insurance_number = self.insurance.f_insurance_number
380
382
  let insurance = Object.assign({}, {}, self.model)
381
383
  insurance.f_userinfo_code = self.row.f_userinfo_code
382
384
  insurance.f_payment = self.model.f_payment.toString()
383
385
  insurance.f_state = '有效'
384
386
  insurance.f_operat_type = '保险'
385
387
  insurance.f_user_name = self.row.f_user_name
386
- insurance.f_opreator = self.$login.f.name
388
+ insurance.f_idnumber = self.row.f_idnumber
389
+ insurance.f_user_phone = self.row.f_user_phone
390
+ insurance.f_userfiles_id = self.row.f_userfiles_id
391
+ insurance.f_operator = self.$login.f.name
392
+ insurance.f_operatorid = self.$login.f.id
393
+ insurance.f_orgid = self.$login.f.orgid
394
+ insurance.f_orgname = self.$login.f.orgs
395
+ insurance.f_depid = self.$login.f.depids
396
+ insurance.f_depname = self.$login.f.deps
397
+ insurance.f_receivable = self.insurance.f_money_all
387
398
  self.model.insurance = insurance
388
399
  // await self.$resetpost('api/af-revenue/logic/saveInsInfo', {data: self.model})
389
400
  }
@@ -540,6 +551,8 @@ export default {
540
551
  f_privilege_money: 0,
541
552
  f_after_discount: 0
542
553
  },
554
+ sumCollection: 0,
555
+ calculateCollectionFlag: false,
543
556
  cardallot: null,
544
557
  calculatedetail: '',
545
558
 
@@ -579,7 +592,7 @@ export default {
579
592
  is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}]
580
593
  }
581
594
  },
582
- props: ['row','garbagelist', 'garbagefee', 'insurance'],
595
+ props: ['row', 'garbagelist', 'garbagefee', 'insurance'],
583
596
  ready () {
584
597
  console.log(this.row)
585
598
  if (this.authArr.includes('余额写卡限定')) {
@@ -592,6 +605,7 @@ export default {
592
605
  })
593
606
  }
594
607
  }
608
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
595
609
  this.blodid = this.row.f_userinfo_id
596
610
  this.model.f_price_id = this.row.f_price_id
597
611
  this.model.f_user_id = this.row.f_user_id
@@ -630,13 +644,15 @@ export default {
630
644
  }
631
645
  },
632
646
  watch: {
633
- 'insurance.f_money_all'(){
647
+ 'insurance.f_money_all' () {
634
648
  // 获取计算优惠
635
649
  this.getPrivilegeList()
650
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
636
651
  },
637
- 'garbagefee'(){
652
+ 'garbagefee' () {
638
653
  // 获取计算优惠
639
654
  this.getPrivilegeList()
655
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
640
656
  },
641
657
  'row' (val) {
642
658
  this.model.f_balance = val.f_balance
@@ -674,6 +690,7 @@ export default {
674
690
  'model.f_collection' (val) {
675
691
  // 获取计算优惠
676
692
  this.getPrivilegeList()
693
+ this.sumCollection = (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
677
694
  },
678
695
  '$v' (val) {
679
696
  },
@@ -691,6 +708,20 @@ export default {
691
708
  }
692
709
  },
693
710
  methods: {
711
+ calculateCollection () {
712
+ if (!isNaN(this.sumCollection) && this.sumCollection > 0) {
713
+ let tempFee = this.sumCollection
714
+ if ((this.garbagefee - 0) > 0) {
715
+ tempFee = (tempFee - 0) - (this.garbagefee - 0)
716
+ }
717
+ if ((this.insurance.f_money_all - 0) > 0) {
718
+ tempFee = (tempFee - 0) - (this.insurance.f_money_all - 0)
719
+ }
720
+ this.model.f_collection = tempFee
721
+ this.calculateCollectionFlag = true
722
+ this.calculatePreByCollection()
723
+ }
724
+ },
694
725
  // 根据收款金额计算划价信息
695
726
  // 需要配置 calculatePreByCollection = true
696
727
  async calculatePreByCollection () {
@@ -703,7 +734,11 @@ export default {
703
734
  let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
704
735
  this.model.chargeprice = dymoney2.data.chargeprice
705
736
  Object.assign(this.model, this.model, dymoney2.data)
706
- this.model.f_totalcost = dymoney2.data.chargenum
737
+ if (this.calculateCollectionFlag && !this.config.calculatePreByCollection) {
738
+ this.model.f_totalcost = (dymoney2.data.chargenum - 0) - (this.row.f_balance - 0)
739
+ } else {
740
+ this.model.f_totalcost = dymoney2.data.chargenum
741
+ }
707
742
  this.model.f_preamount = dymoney2.data.chargenum
708
743
  this.calText(dymoney2.data.chargeprice)
709
744
  } catch (error) {
@@ -922,9 +957,6 @@ export default {
922
957
  }
923
958
  },
924
959
  computed: {
925
- sumCollection () {
926
- return (this.model.f_collection - 0) + (this.insurance.f_money_all - 0) + (this.garbagefee - 0)
927
- },
928
960
  'invoice_show_gas' () {
929
961
  return this.row.f_collection_type === '按气量' ? '是' : '否'
930
962
  },
@@ -26,6 +26,13 @@
26
26
  <label class="col-sm-5">客户类型</label>
27
27
  <span class="col-sm-7">{{ data ? data.f_user_type : dafault.f_user_type }}</span>
28
28
  </div>
29
+ <div class="row" :class="[config.f_big_user ? 'highlight' : '']">
30
+ <label class="col-sm-5">大用户</label>
31
+ <span class="col-sm-7">{{ data ? (data.f_big_user === '是' ? '是' : '否') : dafault.f_big_user }}
32
+ <span v-if="data" @click.stop="changeBigUserState"
33
+ class="glyphicon glyphicon-pencil clickchange" title="修正大用户"></span>
34
+ </span>
35
+ </div>
29
36
  <div class="row">
30
37
  <label class="col-sm-5">账户余额</label>
31
38
  <span class="col-sm-7">{{ data ? data.f_balance : dafault.f_user_type }}</span>
@@ -207,6 +214,35 @@
207
214
  <button type="button" class="button_clear" @click='close'>取消</button>
208
215
  </footer>
209
216
  </modal>
217
+ <modal v-if="showSelectBigUserState" :show.sync="showSelectBigUserState" width="40%" title="修改大用户状态"
218
+ v-ref:modal large backdrop="false">
219
+ <article slot="modal-body" class="modal-body">
220
+ <div class="form-horizontal">
221
+ <div class="row">
222
+ <div class="col-sm-12 form-group">
223
+ <label class="font_normal_body">旧大用户状态</label>
224
+ <input readonly type="text" style="width:80%" class="input_search"
225
+ v-model=" data && data.f_big_user === '是' ? '是' : '否'" placeholder='旧大用户状态'>
226
+ </div>
227
+ </div>
228
+ <div class="row">
229
+ <div class="col-sm-12 form-group">
230
+ <label class="font_normal_body">新大用户状态</label>
231
+ <v-select placeholder='新大用户状态'
232
+ v-model="newBigUserState"
233
+ :value.sync="newBigUserState"
234
+ :options='BigUser'
235
+ close-on-select clear-button>
236
+ </v-select>
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </article>
241
+ <footer slot="modal-footer" class="modal-footer">
242
+ <button class="button_search" :disabled='!newBigUserState' @click="modifyBigUserStateMethod">确定</button>
243
+ <button type="button" class="button_clear" @click='close'>取消</button>
244
+ </footer>
245
+ </modal>
210
246
 
211
247
  </div>
212
248
  </div>
@@ -234,6 +270,7 @@ export default {
234
270
  f_user_phone: '************',
235
271
  f_address: '*****',
236
272
  f_user_type: '***',
273
+ f_big_user: '***',
237
274
  f_open_date: '****年**月**日',
238
275
  f_input_date: '****年**月**日',
239
276
  f_hand_date: '****年**月**日',
@@ -250,18 +287,31 @@ export default {
250
287
  f_user_phone: false,
251
288
  f_address: false,
252
289
  f_user_type: false,
290
+ f_big_user: false,
253
291
  f_open_date: false,
254
292
  f_input_date: false,
255
293
  f_comments: false,
256
294
  f_user_state: false
257
295
  },
296
+ BigUser: [
297
+ {
298
+ label: '是',
299
+ value: '是'
300
+ },
301
+ {
302
+ label: '否',
303
+ value: '否'
304
+ }
305
+ ],
258
306
  model: null,
259
307
  showselectncuserinfo: false,
260
308
  showselectncuserrent: false,
261
309
  showselectncuseridnumber: false,
310
+ showSelectBigUserState: false,
262
311
  newuserphone: '',
263
312
  newrentphone: '',
264
313
  newuseridnumber: '',
314
+ newBigUserState: '',
265
315
  reason_show: false,
266
316
  new_reason: ''
267
317
  }
@@ -275,9 +325,28 @@ export default {
275
325
 
276
326
  // 判断是否已经过期
277
327
  return expirationDate < currentDate
278
- },
328
+ }
279
329
  },
280
330
  methods: {
331
+ async modifyBigUserStateMethod () {
332
+ let param = {
333
+ newBigUserState: this.newBigUserState[0],
334
+ f_userinfo_id: this.data.f_userinfo_id,
335
+ f_user_id: this.data.f_user_id,
336
+ f_operator: this.$login.f.name,
337
+ f_operatorid: this.$login.f.id,
338
+ f_orgid: this.$login.f.orgid,
339
+ f_orgname: this.$login.f.orgs,
340
+ f_depid: this.$login.f.depids,
341
+ f_depname: this.$login.f.deps
342
+ }
343
+ await this.$resetpost('/api/af-revenue/logic/changeuserinfo', {data: param}, {resolveMsg: '修正成功', rejectMsg: null})
344
+ this.data.f_big_user = this.newBigUserState[0]
345
+ this.$parent.$parent.close()
346
+ this.$parent.$parent.clean()
347
+ this.$parent.$parent.$refs.list.searchNoData()
348
+ this.close()
349
+ },
281
350
  async modifyUserSpecialReson () {
282
351
  let param = {
283
352
  new_reason: this.new_reason,
@@ -336,6 +405,10 @@ export default {
336
405
  this.showselectncuseridnumber = true
337
406
  this.newuseridnumber = ''
338
407
  },
408
+ changeBigUserState () {
409
+ this.showSelectBigUserState = true
410
+ this.newBigUserState = ''
411
+ },
339
412
  changerentphone () {
340
413
  // 修正客户电话
341
414
  this.showselectncuserrent = true
@@ -384,6 +457,7 @@ export default {
384
457
  this.showselectncuserrent = false
385
458
  this.reason_show = false
386
459
  this.showselectncuseridnumber = false
460
+ this.showSelectBigUserState = false
387
461
  this.newuserphone = ''
388
462
  this.new_reason = ''
389
463
  this.new_idnumber = ''
@@ -0,0 +1,349 @@
1
+ <template>
2
+ <div @keyup.enter="search" class="flex-row">
3
+ <div class="basic-main">
4
+ <criteria-paged :model="model" v-ref:paged>
5
+ <criteria @condition-changed='$parent.selfSearch' partial='criteria' v-ref:cri>
6
+ <div class="form-horizontal select-overspread container-fluid auto" novalidate partial>
7
+ <div class="row">
8
+ <div class="col-sm-2 form-group">
9
+ <label class="font_normal_body">客户编号</label>
10
+ <input class="input_search" condition="f_userinfo_code = '{}'" placeholder='客户编号' style="width:60%" type="text"
11
+ v-el:qjmc v-model="model.f_userinfo_code" v-next-el="cx"
12
+ >
13
+ </div>
14
+ <div class="col-sm-2 form-group">
15
+ <label class="font_normal_body">客户姓名</label>
16
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
17
+ condition="f_user_name = '{}'" @keyup.enter="search" placeholder='客户姓名'></input>
18
+ </div>
19
+ <div class="col-sm-2 form-group">
20
+ <label class="font_normal_body">客户住址</label>
21
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_address"
22
+ condition="f_address like '%{}%'" @keyup.enter="search" placeholder='客户住址'></input>
23
+ </div>
24
+ <div class="form-group col-sm-3 button-range" style="float: right;" >
25
+ <button @click="search()" class="button_search button_spacing" v-el:cx>查询</button>
26
+ <div style="float: right" class="button_spacing" :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}" @click="$parent.$parent.hidden()"></div>
27
+ </div>
28
+ <div class="row" v-show="$parent.$parent.criteriaShow">
29
+ <div class="col-sm-2 form-group">
30
+ <label class="font_normal_body">开始时间</label>
31
+ <datepicker :format="'yyyy-MM-dd'"
32
+ :value.sync="model.f_ins_start_date"
33
+ placeholder="生效日期"
34
+ condition="f_ins_start_date > '{}'"
35
+ v-model="model.f_ins_start_date" style="width: 55%">
36
+ </datepicker>
37
+ </div>
38
+ <div class="col-sm-2 form-group">
39
+ <label class="font_normal_body">到期时间</label>
40
+ <datepicker :format="'yyyy-MM-dd'"
41
+ :value.sync="model.f_expiration_date"
42
+ placeholder="到期时间"
43
+ condition="f_expiration_date > '{}'"
44
+ v-model="model.f_expiration_date" style="width: 55%">
45
+ </datepicker>
46
+ </div>
47
+ <res-select-group :initres="$parent.$parent.initres" @re-res="$parent.$parent.getRes" v-ref:sel></res-select-group>
48
+ </div>
49
+ </div>
50
+ </div>
51
+
52
+ </criteria>
53
+ <data-grid :model="model" class="list_area table_sy" partial='list' v-ref:grid>
54
+ <template partial='head'>
55
+ <tr>
56
+ <th>
57
+ <nobr>序号</nobr>
58
+ </th>
59
+ <th>
60
+ <nobr>客户编号</nobr>
61
+ </th>
62
+ <th>
63
+ <nobr>投保人</nobr>
64
+ </th>
65
+ <th>
66
+ <nobr>客户电话</nobr>
67
+ </th>
68
+ <th>
69
+ <nobr>客户地址</nobr>
70
+ </th>
71
+ <!--<th>-->
72
+ <!--<nobr>保险编号</nobr>-->
73
+ <!--</th>-->
74
+ <th>
75
+ <nobr>保险金额</nobr>
76
+ </th>
77
+ <th>
78
+ <nobr>收款方式</nobr>
79
+ </th>
80
+ <th>
81
+ <nobr>购买年限</nobr>
82
+ </th>
83
+ <th>
84
+ <nobr>保险类型</nobr>
85
+ </th>
86
+ <th>
87
+ <nobr>保险日期</nobr>
88
+ </th>
89
+ <th>
90
+ <nobr>到期时间</nobr>
91
+ </th>
92
+ <th>
93
+ <nobr>生效时间</nobr>
94
+ </th>
95
+ <th>
96
+ <nobr>记录状态</nobr>
97
+ </th>
98
+ <th>
99
+ <nobr>累计保费充值金额</nobr>
100
+ </th>
101
+ <th>
102
+ <nobr>操作人</nobr>
103
+ </th>
104
+ <th>
105
+ <nobr>操作时间</nobr>
106
+ </th>
107
+ <th>
108
+ <nobr>备注</nobr>
109
+ </th>
110
+ <!-- <th>-->
111
+ <!-- <nobr>保险时间</nobr>-->
112
+ <!-- </th>-->
113
+ <th>
114
+ <nobr>操作</nobr>
115
+ </th>
116
+
117
+ </tr>
118
+ </template>
119
+ <template partial='body'>
120
+ <tr>
121
+ <td style="text-align:center"><nobr>{{$index + 1}}</nobr></td>
122
+ <td style="text-align:center"><nobr>{{row.f_userinfo_code}}</nobr></td>
123
+ <td style="text-align:center"><nobr>{{row.f_user_name}}</nobr></td>
124
+ <td style="text-align:center"><nobr>{{row.f_user_phone}}</nobr></td>
125
+ <td style="text-align:center"><nobr>{{row.f_address}}</nobr></td>
126
+ <!--<td style="text-align:center">{{row.id}}</td>-->
127
+ <td style="text-align:center"><nobr>{{row.f_money}}</nobr></td>
128
+ <td style="text-align:center"><nobr>{{row.f_payment}}</nobr></td>
129
+ <td style="text-align:center"><nobr>{{row.f_salecount}}</nobr></td>
130
+ <td style="text-align:center"><nobr>{{row.f_insurance_type}}</nobr></td>
131
+ <td style="text-align:center"><nobr>{{row.f_ins_start_date}}</nobr></td>
132
+ <td style="text-align:center"><nobr>{{row.f_expiration_date}}</nobr></td>
133
+ <td style="text-align:center"><nobr>{{row.f_shengxiao_date}}</nobr></td>
134
+ <td style="text-align:center"><nobr>{{row.f_state}}</nobr></td>
135
+ <td style="text-align:center"><nobr>{{row.f_total_ins_charge}}</nobr></td>
136
+ <td style="text-align:center"><nobr>{{row.f_operator}}</nobr></td>
137
+ <td style="text-align:center"><nobr>{{row.f_operate_date}}</nobr></td>
138
+ <td style="text-align:center"><nobr>{{row.f_comments}}</nobr></td>
139
+ <td style="text-align:center" >
140
+ <button type="button" name="button" class="button_search-2 button_spacing width-60"
141
+ v-if="row.f_state === '待执行' || row.f_state === '有效'" @click="$parent.$parent.$parent.updatetime(row)">修改
142
+ </button>
143
+ </td>
144
+ </tr>
145
+ </template>
146
+ <template partial='foot'></template>
147
+ </data-grid>
148
+ </criteria-paged>
149
+ <modal :backdrop="false" :show.sync="show" v-if="show" >
150
+ <header class="modal-header" slot="modal-header">
151
+ <button @click="show=!show" class="close" type="button"><span>&times;</span></button>
152
+ <h4 class="modal-title">修改客户保险信息</h4>
153
+ </header>
154
+ <article class="modal-body" slot="modal-body" style="height:100%;width:100%" >
155
+ <div class="row">
156
+ <div class="col-sm-6 form-group">
157
+ <label class="font_normal_body">开始时间</label>
158
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
159
+ :value.sync="base.f_ins_start_date"
160
+ placeholder="开始时间"
161
+ v-model="base.f_ins_start_date" style="width: 55%">
162
+ </datepicker>
163
+ </div>
164
+ <div class="col-sm-6 form-group">
165
+ <label class="font_normal_body">&emsp;&emsp;&emsp;&emsp;到期时间</label>
166
+ <datepicker :format="'yyyy-MM-dd HH:mm:ss'"
167
+ :value.sync="base.f_expiration_date"
168
+ placeholder="到期时间"
169
+ v-model="base.f_expiration_date" style="width: 55%">
170
+ </datepicker>
171
+ </div>
172
+ <div class="row">
173
+ <div class="col-sm-6 form-group" >
174
+ <label class="font_normal_body">购买年限</label>
175
+ <input type="number" v-model="base.f_salecount" placeholder="购买年限" style="width: 60%"
176
+ class="input_search" disabled/>
177
+ </div>
178
+ <div class="col-sm-6 form-group" >
179
+ <label class="font_normal_body">&emsp;&emsp;&emsp;&emsp;保费金额</label>
180
+ <input type="number" v-model="base.f_money" class="input_search" style="width:60%"
181
+ placeholder="保费金额" disabled/>
182
+ </div>
183
+ </div>
184
+ <div class="row">
185
+ <div class="col-sm-6 form-group" >
186
+ <label class="font_normal_body">&emsp;&emsp;险种</label>
187
+ <v-select
188
+ placeholder='险种'
189
+ :value.sync="base.f_insurance_type"
190
+ style="width:20%" class="select_list select"
191
+ :value-single="true"
192
+ v-model="base.f_insurance_type"
193
+ :options='insurancetype'
194
+ close-on-select>
195
+ </v-select>
196
+ </div>
197
+ <div class="col-sm-6 form-group" >
198
+ <label class="font_normal_body" title="参数:保险状态">&emsp;&emsp;&emsp;&emsp;保险状态</label>
199
+ <v-select
200
+ placeholder='保险状态'
201
+ :value.sync="base.f_state"
202
+ style="width:20%" class="select_list select"
203
+ :value-single="true"
204
+ v-model="base.f_state"
205
+ :options='insurancestate'
206
+ close-on-select :disabled="stataDisabled">
207
+ </v-select>
208
+ </div>
209
+ <div class="col-sm-6 form-group" >
210
+ <label class="font_normal_body" title="参数:保险状态">收款方式</label>
211
+ <v-select v-model="model.f_payment"
212
+ style="width:60%"
213
+ placeholder='请选择'
214
+ :value.sync="base.f_payment"
215
+ :options='paytype'
216
+ v-ref:payment value-single
217
+ close-on-select clear-button>
218
+ </v-select>
219
+ </div>
220
+ </div>
221
+ <div class="row">
222
+ <div class="col-sm-6 form-group" >
223
+ <label class="font_normal_body">投保人:</label>
224
+ <input type="text" v-model="base.f_user_name" placeholder="投保人" style="width: 60%"
225
+ class="input_search"/>
226
+ </div>
227
+ <div class="col-sm-6 form-group" >
228
+ <label class="font_normal_body">&emsp;&emsp;&emsp;&emsp;保险单号</label>
229
+ <input type="text" v-model="base.f_insurance_number" class="input_search" style="width:60%"
230
+ placeholder="保险单号" />
231
+ </div>
232
+ </div>
233
+ <div class="row">
234
+ <div class="col-sm-12 form-group">
235
+ <label class="font_normal_body">备注信息</label>
236
+ <input type="textarea" v-model="base.f_comments" style="width: 80%;" class="input_search">
237
+ </div>
238
+ </div>
239
+ </div>
240
+ </article>
241
+ <footer class="modal-footer" slot="modal-footer">
242
+ <button type="button" class="btn btn-default" @click='editclose' id="vc-messagebox-close">取消</button>
243
+ <button type="button" class="btn btn-success" @click='updatedefail' id="vc-messagebox-confirm">确认</button>
244
+ </footer>
245
+ </modal>
246
+ </div>
247
+ </div>
248
+ </template>
249
+
250
+ <script>
251
+ /**
252
+ *保险管理
253
+ */
254
+ import {PagedList} from 'vue-client'
255
+ import Vue from 'vue'
256
+
257
+ export default {
258
+ title: '保险记录维护',
259
+ data () {
260
+ return {
261
+ initres: {
262
+ org: [this.$login.f.orgid],
263
+ dep: [],
264
+ user: []
265
+ },
266
+ base: {},
267
+ insurancetype: this.$appdata.getParam('险种'),
268
+ insurancestate: this.$appdata.getParam('保险状态'),
269
+ paytype : this.$appdata.getParam('付款方式') ? this.$appdata.getParam('付款方式') : [],
270
+ model: new PagedList('api/af-revenue/sql/insuranceguanl', 20),
271
+ show: false,
272
+ orgCondtionStr: '',
273
+ stataDisabled: false,
274
+ criteriaShow: false,
275
+ // 公司下拉
276
+ curorgid: [this.$login.f.orgid]
277
+ }
278
+ },
279
+ ready () {
280
+ this.$refs.paged.$refs.cri.search()
281
+ },
282
+ watch: {
283
+
284
+ },
285
+ methods: {
286
+ updatedefail () {
287
+ console.log('insurance_end_date', this.base.f_expiration_date, this.base.f_insurance_type)
288
+ if (this.base.f_expiration_date || this.base.f_insurance_type) {
289
+ this.base.f_operator = this.$login.f.name
290
+ this.base.f_operatorid = this.$login.f.id
291
+ this.base.f_orgid = this.$login.f.orgid
292
+ this.base.f_orgname = this.$login.f.orgs
293
+ this.base.f_depid = this.$login.f.depids
294
+ this.base.f_depname = this.$login.f.deps
295
+ this.$resetpost('api/af-revenue/logic/insuranceguanl', this.base, {
296
+ resolveMsg: '恭喜!提交成功!',
297
+ rejectMsg: '提交错误!'
298
+ })
299
+ this.base = ''
300
+ this.show = !this.show
301
+ this.$refs.paged.$refs.cri.search()
302
+ } else {
303
+ this.$showAlert('请输入修改的内容', 'warning', 2000)
304
+ }
305
+ },
306
+ editclose () {
307
+ this.base = ''
308
+ this.show = !this.show
309
+ },
310
+ hidden () {
311
+ this.criteriaShow = !this.criteriaShow
312
+ },
313
+ getRes (obj) {
314
+ this.orgCondtionStr = obj
315
+ },
316
+ search () {
317
+ this.selfSearch()
318
+ },
319
+ async stateIsDisabled () {
320
+ let data = {
321
+ tablename: 't_userfees',
322
+ condition: `f_state = '有效' and f_userinfo_id = '${this.base.f_userinfo_id}' and id > ${this.base.id}`
323
+ }
324
+ let res = await this.$resetpost('api/af-revenue/sql/saleSingleTable', {data: data}, {
325
+ resolveMsg: '',
326
+ rejectMsg: ''
327
+ })
328
+ if (res.data.length > 0) {
329
+ this.stataDisabled = true
330
+ } else {
331
+ this.stataDisabled = false
332
+ }
333
+ },
334
+ selfSearch (args) {
335
+ if (!this.orgCondtionStr) {
336
+ args.condition = `${args.condition}` + ' and f_orgid = ' + `'${this.$login.f.orgid}'`
337
+ } else {
338
+ args.condition = `${args.condition}` + this.orgCondtionStr
339
+ }
340
+ this.model.search(args.condition, args.model)
341
+ },
342
+ updatetime (row) {
343
+ this.base = row
344
+ this.show = !this.show
345
+ this.stateIsDisabled()
346
+ }
347
+ }
348
+ }
349
+ </script>