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
@@ -642,17 +642,16 @@
642
642
  style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;color: #5CB95C;font-weight: bold">
643
643
  汇总信息
644
644
  </td>
645
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
646
- <!-- 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}-->
647
- <!-- </td>-->
648
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
649
- <!-- 气费合计:&emsp;{{sumsmodel.f_oughtfee}}-->
650
- <!-- </td>-->
651
- <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
652
- <!-- 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}-->
653
- <!-- </td>-->
654
- <td
655
- style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
645
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
646
+ 用气量合计:&emsp;{{sumsmodel.f_oughtamount}}
647
+ </td>
648
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
649
+ 气费合计:&emsp;{{sumsmodel.f_oughtfee}}
650
+ </td>
651
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
652
+ 已交金额合计:&emsp;{{sumsmodel.f_debt_money}}
653
+ </td>
654
+ <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">
656
655
  欠费金额合计:&emsp;{{ sumsmodel.f_actual_arrears }}
657
656
  </td>
658
657
  <!-- <td style="display: inline-block;width: auto;border-right: 1px solid #F2F6FA;padding: 0px 10px 0px 10px;font-weight: bold">-->
@@ -777,9 +776,9 @@ export default {
777
776
  footer: [],
778
777
  data: {},
779
778
  model: new PagedList('api/af-revenue/sql/salehandplanQuery', 20, {}, {
780
- // f_oughtamount: 0,
781
- // f_oughtfee: 0,
782
- // f_debt_money: 0,
779
+ f_oughtamount: 0,
780
+ f_oughtfee: 0,
781
+ f_debt_money: 0,
783
782
  f_actual_arrears: 0
784
783
  // f_stair1amount: 0,
785
784
  // f_stair1fee: 0,
@@ -651,12 +651,21 @@
651
651
  } else {
652
652
  this.model.f_pregas = parseInt(getGas.data.gas)
653
653
  }
654
- let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
655
- this.model.chargeprice = dymoney2.data.chargeprice
656
- Object.assign(this.model, this.model, dymoney2.data)
657
- this.model.f_totalcost = dymoney2.data.chargenum
658
- this.model.f_preamount = dymoney2.data.chargenum
659
- this.calText(dymoney2.data.chargeprice)
654
+ if (this.row.f_collection_type === '按金额') {
655
+ // let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
656
+ // this.model.chargeprice = dymoney2.data.chargeprice
657
+ // Object.assign(this.model, this.model, dymoney2.data)
658
+ this.model.f_totalcost = getGas.data.chargenum
659
+ this.model.f_preamount = getGas.data.chargenum
660
+ this.calText(getGas.data.chargeprice)
661
+ } else {
662
+ let dymoney2 = await this.$CommonService.gasCalculate(this.model, this.model.f_pregas)
663
+ this.model.chargeprice = dymoney2.data.chargeprice
664
+ Object.assign(this.model, this.model, dymoney2.data)
665
+ this.model.f_totalcost = dymoney2.data.chargenum
666
+ this.model.f_preamount = dymoney2.data.chargenum
667
+ this.calText(dymoney2.data.chargeprice)
668
+ }
660
669
  } catch (error) {
661
670
  this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
662
671
  this.$dispatch('error', '发卡售气', this.model, error)
@@ -259,6 +259,7 @@
259
259
  if (JSON.stringify(this.row) != '{}') {
260
260
  this.model = {
261
261
  f_userinfo_id: this.row.f_userinfo_id,
262
+ f_userfiles_id: this.row.f_userfiles_id,
262
263
  f_ins_stop_date: this.row.f_ins_stop_date,
263
264
  f_user_name: this.row.f_user_name,
264
265
  f_idnumber: this.row.f_idnumber,
@@ -1,58 +1,58 @@
1
- <template>
2
- <!-- <div v-if="listpage">-->
3
- <tab-button v-ref:list>
4
- <tabs header="添加保险" v-if="permission('添加保险页面')">
5
- <user-insurance></user-insurance>
6
- </tabs>
7
- <tabs header="保险记录维护" v-if="permission('保险记录维护页面')">
8
- <insurance-guanl></insurance-guanl>
9
- </tabs>
10
- <tabs header="保险收费明细" v-if="permission('保险收费明细页面')">
11
- <insurance-harges-details></insurance-harges-details>
12
- </tabs>
13
- </tab-button>
14
- <!-- </div>-->
15
- <!-- <div v-if="!listpage">-->
16
- <!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
17
- <!-- </div>-->
18
- </template>
19
-
20
- <script>
21
- import TabButton from '../../components/revenue/comprehen/common/TabButton'
22
- import Tabs from '../../components/revenue/comprehen/common/Tabs'
23
-
24
- export default {
25
- name: 'InsuranceManage',
26
- title: '保险管理',
27
- data () {
28
- return {// 页面开关
29
- f_start_date: '',
30
- f_end_date: '',
31
- listpage: true,
32
- width: {
33
- left: '100%',
34
- right: '0%'
35
- },
36
- // searchNumber:'',
37
- rowData: {},
38
- show: [true]
39
- }
40
- },
41
- components: {Tabs, TabButton },
42
- ready () {
43
- },
44
- methods: {
45
- permission (name) {
46
- if (!this.$login.r.find(value => value == name)) {
47
- return false
48
- } else {
49
- return true
50
- }
51
- }
52
- }
53
- }
54
- </script>
55
-
56
- <style scoped>
57
-
58
- </style>
1
+ <template>
2
+ <!-- <div v-if="listpage">-->
3
+ <tab-button v-ref:list>
4
+ <tabs header="添加保险" v-if="permission('添加保险页面')">
5
+ <user-insurance></user-insurance>
6
+ </tabs>
7
+ <tabs header="保险记录维护" v-if="permission('保险记录维护页面')">
8
+ <insurance-guanl></insurance-guanl>
9
+ </tabs>
10
+ <tabs header="保险收费明细" v-if="permission('保险收费明细页面')">
11
+ <insurance-harges-details></insurance-harges-details>
12
+ </tabs>
13
+ </tab-button>
14
+ <!-- </div>-->
15
+ <!-- <div v-if="!listpage">-->
16
+ <!-- <meter-info-manage :row="rowData" :f_start_date="f_start_date" :f_end_date="f_end_date"></meter-info-manage>-->
17
+ <!-- </div>-->
18
+ </template>
19
+
20
+ <script>
21
+ import TabButton from '../../components/revenue/comprehen/common/TabButton'
22
+ import Tabs from '../../components/revenue/comprehen/common/Tabs'
23
+
24
+ export default {
25
+ name: 'InsuranceManage',
26
+ title: '保险管理',
27
+ data () {
28
+ return {// 页面开关
29
+ f_start_date: '',
30
+ f_end_date: '',
31
+ listpage: true,
32
+ width: {
33
+ left: '100%',
34
+ right: '0%'
35
+ },
36
+ // searchNumber:'',
37
+ rowData: {},
38
+ show: [true]
39
+ }
40
+ },
41
+ components: {Tabs, TabButton },
42
+ ready () {
43
+ },
44
+ methods: {
45
+ permission (name) {
46
+ if (!this.$login.r.find(value => value == name)) {
47
+ return false
48
+ } else {
49
+ return true
50
+ }
51
+ }
52
+ }
53
+ }
54
+ </script>
55
+
56
+ <style scoped>
57
+
58
+ </style>
@@ -1,149 +1,149 @@
1
- import Vue from 'vue'
2
-
3
- let MachineChargeService = {
4
- install (Vue, options) {
5
- // 给vue增添对话框显示方法
6
- Vue.MachineChargeService = Vue.prototype.$MachineChargeService = MachineChargeService
7
- },
8
-
9
- // 按表收费
10
- async marchineCharge (model, model2, row, floor) {
11
- console.log('保存收费。。。', model, model2, row)
12
- let f_serial_number = ''
13
- if (model.f_serial_number) {
14
- f_serial_number = model.f_serial_number
15
- }
16
- let f_serial_id = ''
17
- if (model2 && model2.f_serial_id) {
18
- f_serial_id = model2.f_serial_id
19
- }
20
- if (!model2 || !model2.garbage_number) {
21
- model2 = {
22
- // garbage_number: 0,
23
- // garbage_money: 0
24
- }
25
- }
26
- let param = {
27
- garbage_number: model2.garbage_number,
28
- garbage_money: model2.garbage_money,
29
- f_serial_id: f_serial_id,
30
- f_userinfo_id: row.f_userinfo_id,
31
- f_user_id: row.f_user_id,
32
- handids: model.handids,
33
- f_serial_number: f_serial_number,
34
- f_balance: row.f_balance,
35
- f_overdue: model.f_overdue,
36
- userinfo_version: row.userinfo_version,
37
- version: row.version,
38
- f_collection: model.f_collection - model.f_garbage_fee,
39
- f_preamount: model.f_totalcost,
40
- f_payment: model.f_payment[0],
41
- f_print: model.f_print[0],
42
- f_comments: model.f_comments,
43
- // 优惠金额
44
- f_privilege_money: model.f_privilege_money,
45
- f_after_discount: model.f_after_discount,
46
- isBreakOverdue: model.isBreakOverdue,
47
- floor: floor,
48
- operInfo: {
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
57
- },
58
- other: {
59
- f_grade_type: row.f_grade_fee,
60
- f_collection: model.f_garbage_fee,
61
- f_comments: model.f_comments,
62
- f_payment: model.f_payment[0],
63
- f_voucher_number: '',
64
- f_print: model.f_print[0],
65
- f_service_person: Vue.$login.f.name,
66
- t_userfees: '',
67
- f_fee_type: ['0'],
68
- f_fee_time: ['12'],
69
- otherdetail: [{f_brand_spec: ['生活垃圾'], f_unitprice: '5', f_number: model.f_garbage_fee / 5}]
70
- }
71
- }
72
- if (model.selectedids) {
73
- param.selectedids = model.selectedids
74
- }
75
- if (model.f_serial_id) {
76
- param.f_serial_id = model.f_serial_id
77
- }
78
- if (model.isBreakOverdue) {
79
- param.breakOverdue = model.breakOverdue
80
- }
81
- // if (model.f_collection - model.f_garbage_fee <= 0 && (model.f_totalcost - (model.f_collection + row.f_balance)) >= 0) {
82
- // param.f_collection = 0
83
- // }
84
- try {
85
- return await Vue.resetpost('api/af-revenue/logic/machineChargePay', {data: param}, {resolveMsg: '机表收费成功', rejectMsg: '收费失败'})
86
- } catch (error) {
87
- console.log('这里进来了吗?', param)
88
- if (param.f_payment.indexOf('扫码枪支付') > -1) {
89
- Vue.resetpost('weixin2/rs/pay/jsApiRefund', {
90
- data: {
91
- out_trade_no: param.f_serial_id,
92
- f_total_fee: param.f_collection,
93
- flag: 'microPayRongHaoJsbc'
94
- }
95
- }, {resolveMsg: null, rejectMsg: '调用银行退费接口失败'})
96
- }
97
- throw error
98
- }
99
- },
100
- // 保存预存收费
101
- async depositCharge (model, row, floor) {
102
- console.log('保存收费。。。', model, row)
103
- let param = {
104
- f_serial_id: model.f_serial_id,
105
- f_userinfo_id: row.f_userinfo_id,
106
- f_userfiles_id: row.f_userfiles_id,
107
- f_balance: row.f_balance,
108
- f_meter_type: row.f_meter_type,
109
- f_overdue: model.f_overdue,
110
- f_collection: model.f_collection - model.f_garbage_fee,
111
- f_preamount: model.f_totalcost,
112
- f_payment: model.f_payment[0],
113
- f_print: model.f_print[0],
114
- f_comments: model.f_comments,
115
- // 优惠金额
116
- f_privilege_money: model.f_privilege_money,
117
- f_after_discount: model.f_after_discount,
118
- isBreakOverdue: model.isBreakOverdue,
119
- f_serial_number: model.f_serial_number,
120
- floor: floor,
121
- operInfo: {
122
- f_operator: Vue.$login.f.name,
123
- f_operatorid: Vue.$login.f.id,
124
- f_orgid: Vue.$login.f.orgid,
125
- f_orgname: Vue.$login.f.orgs,
126
- f_depid: Vue.$login.f.depids,
127
- f_depname: Vue.$login.f.deps,
128
- f_zoneid: Vue.$login.f.zoneid,
129
- f_zones: Vue.$login.f.zones
130
- }
131
- }
132
- try {
133
- return await Vue.resetpost('api/af-revenue/logic/depositCharge', {data: param}, {resolveMsg: '预存收费成功', rejectMsg: '预存收费失败'})
134
- } catch (error) {
135
- if (param.f_payment.indexOf('扫码枪支付') > -1) {
136
- Vue.resetpost('weixin2/rs/pay/jsApiRefund', {
137
- data: {
138
- out_trade_no: param.f_serial_id,
139
- f_total_fee: param.f_collection,
140
- flag: 'microPayRongHaoJsbc'
141
- }
142
- }, {resolveMsg: null, rejectMsg: '调用银行退费接口失败'})
143
- }
144
- throw error
145
- }
146
- }
147
- }
148
-
149
- export default MachineChargeService
1
+ import Vue from 'vue'
2
+
3
+ let MachineChargeService = {
4
+ install (Vue, options) {
5
+ // 给vue增添对话框显示方法
6
+ Vue.MachineChargeService = Vue.prototype.$MachineChargeService = MachineChargeService
7
+ },
8
+
9
+ // 按表收费
10
+ async marchineCharge (model, model2, row, floor) {
11
+ console.log('保存收费。。。', model, model2, row)
12
+ let f_serial_number = ''
13
+ if (model.f_serial_number) {
14
+ f_serial_number = model.f_serial_number
15
+ }
16
+ let f_serial_id = ''
17
+ if (model2 && model2.f_serial_id) {
18
+ f_serial_id = model2.f_serial_id
19
+ }
20
+ if (!model2 || !model2.garbage_number) {
21
+ model2 = {
22
+ // garbage_number: 0,
23
+ // garbage_money: 0
24
+ }
25
+ }
26
+ let param = {
27
+ garbage_number: model2.garbage_number,
28
+ garbage_money: model2.garbage_money,
29
+ f_serial_id: f_serial_id,
30
+ f_userinfo_id: row.f_userinfo_id,
31
+ f_user_id: row.f_user_id,
32
+ handids: model.handids,
33
+ f_serial_number: f_serial_number,
34
+ f_balance: row.f_balance,
35
+ f_overdue: model.f_overdue,
36
+ userinfo_version: row.userinfo_version,
37
+ version: row.version,
38
+ f_collection: model.f_collection - model.f_garbage_fee,
39
+ f_preamount: model.f_totalcost,
40
+ f_payment: model.f_payment[0],
41
+ f_print: model.f_print[0],
42
+ f_comments: model.f_comments,
43
+ // 优惠金额
44
+ f_privilege_money: model.f_privilege_money,
45
+ f_after_discount: model.f_after_discount,
46
+ isBreakOverdue: model.isBreakOverdue,
47
+ floor: floor,
48
+ operInfo: {
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
57
+ },
58
+ other: {
59
+ f_grade_type: row.f_grade_fee,
60
+ f_collection: model.f_garbage_fee,
61
+ f_comments: model.f_comments,
62
+ f_payment: model.f_payment[0],
63
+ f_voucher_number: '',
64
+ f_print: model.f_print[0],
65
+ f_service_person: Vue.$login.f.name,
66
+ t_userfees: '',
67
+ f_fee_type: ['0'],
68
+ f_fee_time: ['12'],
69
+ otherdetail: [{f_brand_spec: ['生活垃圾'], f_unitprice: '5', f_number: model.f_garbage_fee / 5}]
70
+ }
71
+ }
72
+ if (model.selectedids) {
73
+ param.selectedids = model.selectedids
74
+ }
75
+ if (model.f_serial_id) {
76
+ param.f_serial_id = model.f_serial_id
77
+ }
78
+ if (model.isBreakOverdue) {
79
+ param.breakOverdue = model.breakOverdue
80
+ }
81
+ // if (model.f_collection - model.f_garbage_fee <= 0 && (model.f_totalcost - (model.f_collection + row.f_balance)) >= 0) {
82
+ // param.f_collection = 0
83
+ // }
84
+ try {
85
+ return await Vue.resetpost('api/af-revenue/logic/machineChargePay', {data: param}, {resolveMsg: '机表收费成功', rejectMsg: '收费失败'})
86
+ } catch (error) {
87
+ console.log('这里进来了吗?', param)
88
+ if (param.f_payment.indexOf('扫码枪支付') > -1) {
89
+ Vue.resetpost('weixin2/rs/pay/jsApiRefund', {
90
+ data: {
91
+ out_trade_no: param.f_serial_id,
92
+ f_total_fee: param.f_collection,
93
+ flag: 'microPayRongHaoJsbc'
94
+ }
95
+ }, {resolveMsg: null, rejectMsg: '调用银行退费接口失败'})
96
+ }
97
+ throw error
98
+ }
99
+ },
100
+ // 保存预存收费
101
+ async depositCharge (model, row, floor) {
102
+ console.log('保存收费。。。', model, row)
103
+ let param = {
104
+ f_serial_id: model.f_serial_id,
105
+ f_userinfo_id: row.f_userinfo_id,
106
+ f_userfiles_id: row.f_userfiles_id,
107
+ f_balance: row.f_balance,
108
+ f_meter_type: row.f_meter_type,
109
+ f_overdue: model.f_overdue,
110
+ f_collection: model.f_collection - model.f_garbage_fee,
111
+ f_preamount: model.f_totalcost,
112
+ f_payment: model.f_payment[0],
113
+ f_print: model.f_print[0],
114
+ f_comments: model.f_comments,
115
+ // 优惠金额
116
+ f_privilege_money: model.f_privilege_money,
117
+ f_after_discount: model.f_after_discount,
118
+ isBreakOverdue: model.isBreakOverdue,
119
+ f_serial_number: model.f_serial_number,
120
+ floor: floor,
121
+ operInfo: {
122
+ f_operator: Vue.$login.f.name,
123
+ f_operatorid: Vue.$login.f.id,
124
+ f_orgid: Vue.$login.f.orgid,
125
+ f_orgname: Vue.$login.f.orgs,
126
+ f_depid: Vue.$login.f.depids,
127
+ f_depname: Vue.$login.f.deps,
128
+ f_zoneid: Vue.$login.f.zoneid,
129
+ f_zones: Vue.$login.f.zones
130
+ }
131
+ }
132
+ try {
133
+ return await Vue.resetpost('api/af-revenue/logic/depositCharge', {data: param}, {resolveMsg: '预存收费成功', rejectMsg: '预存收费失败'})
134
+ } catch (error) {
135
+ if (param.f_payment.indexOf('扫码枪支付') > -1) {
136
+ Vue.resetpost('weixin2/rs/pay/jsApiRefund', {
137
+ data: {
138
+ out_trade_no: param.f_serial_id,
139
+ f_total_fee: param.f_collection,
140
+ flag: 'microPayRongHaoJsbc'
141
+ }
142
+ }, {resolveMsg: null, rejectMsg: '调用银行退费接口失败'})
143
+ }
144
+ throw error
145
+ }
146
+ }
147
+ }
148
+
149
+ export default MachineChargeService