sale-client 3.4.110 → 3.4.113

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 (101) hide show
  1. package/.gradle/4.4/fileChanges/last-build.bin +0 -0
  2. package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
  3. package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
  4. package/build/dev-server.js +7 -7
  5. package/npm +0 -0
  6. package/package.json +1 -1
  7. package/src/components/FilesManage/MeterinfoTest.vue +0 -1
  8. package/src/components/FilesManage/TemplateManage.vue +167 -167
  9. package/src/components/FilesManage/UserGeneralInfoTest.vue +4 -2
  10. package/src/components/FilesManageNew/UserEssentialInfoTest.vue +1 -1
  11. package/src/components/FilesManageNew/UserGeneralInfoTest.vue +7 -7
  12. package/src/components/charge/business/CardChangeFill.vue +4 -4
  13. package/src/components/charge/business/CardMeterCenter.vue +4 -4
  14. package/src/components/charge/business/FilesComplete.vue +253 -253
  15. package/src/components/charge/business/IOTMeterCenter.vue +801 -801
  16. package/src/components/charge/business/refund/IOTRefund.vue +236 -236
  17. package/src/components/charge/business/refund/RefundManage.vue +28 -28
  18. package/src/components/chargeNew/thirdSurplus.vue +2 -0
  19. package/src/components/meterBook/MeterManger.vue +61 -61
  20. package/src/components/revenue/Common/MeterMessage.vue +184 -184
  21. package/src/components/revenue/HandManager/MeterBookList.vue +488 -488
  22. package/src/components/revenue/HandManager/MeterBookUser.vue +702 -702
  23. package/src/components/revenue/HandManager/OverdueSet.vue +45 -45
  24. package/src/components/revenue/base/leftview/MixPriceInfo.vue +60 -60
  25. package/src/components/revenue/base/leftview/SafeCheck.vue +311 -311
  26. package/src/components/revenue/base/leftview/Stairinfo.vue +156 -156
  27. package/src/components/revenue/base/leftview/meterinfodetail.vue +195 -195
  28. package/src/components/revenue/base/rightview/CardList.vue +477 -478
  29. package/src/components/revenue/comprehen/ComprehenOperation/OtherGas/OtherGas.vue +5 -1
  30. package/src/components/revenue/comprehen/ComprehenOperation/removeTable.vue +1 -1
  31. package/src/components/revenue/comprehen/Maintenance/hand/handListMaintain.vue +33 -10
  32. package/src/components/revenue/comprehen/Maintenance/revenue/StockListmain.vue +7 -7
  33. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackList.vue +1 -1
  34. package/src/components/revenue/comprehen/SpecialUser/BlackList/BlackListManage.vue +1 -1
  35. package/src/components/revenue/comprehen/handAudit/MeterReadAudit.vue +342 -342
  36. package/src/components/revenue/comprehen/replacement/replacementHandInfoRecord.vue +155 -155
  37. package/src/components/revenue/comprehen/wechatpay/WeChat.vue +62 -62
  38. package/src/components/revenue/machineHandManage/machineDown.vue +1105 -1105
  39. package/src/components/revenue/machineHandManage/machineHand.vue +1 -5
  40. package/src/components/webMeter/MeterManage/WebMeterBatchOperationValve.vue +8 -4
  41. package/src/filiale/{weinan → WEINAN}/AutomaticPurse.vue +0 -0
  42. package/src/filiale/{weinan → WEINAN}/CardList.vue +0 -0
  43. package/src/filiale/{weinan → WEINAN}/CardMeterCenter.vue +0 -0
  44. package/src/filiale/{weinan → WEINAN}/CardMeterChargeCancel.vue +0 -0
  45. package/src/filiale/{weinan → WEINAN}/ChangeMeter.vue +0 -0
  46. package/src/filiale/{weinan → WEINAN}/ChargeList.vue +0 -0
  47. package/src/filiale/{weinan → WEINAN}/ChargeManageNew.vue +0 -0
  48. package/src/filiale/{weinan → WEINAN}/ChargeQueryUser.vue +0 -0
  49. package/src/filiale/{weinan → WEINAN}/ChargeRecordQuery.vue +0 -0
  50. package/src/filiale/{weinan → WEINAN}/DisableManage.vue +0 -0
  51. package/src/filiale/{weinan → WEINAN}/EnableManage.vue +0 -0
  52. package/src/filiale/{weinan → WEINAN}/FileAddressManage.vue +0 -0
  53. package/src/filiale/{weinan → WEINAN}/FileUserAddress.vue +0 -0
  54. package/src/filiale/{weinan → WEINAN}/HighMeter.vue +0 -0
  55. package/src/filiale/{weinan → WEINAN}/IOTMeterCenter.vue +0 -0
  56. package/src/filiale/{weinan → WEINAN}/MachineMeterCenter.vue +0 -0
  57. package/src/filiale/{weinan → WEINAN}/MeterMessage.vue +0 -0
  58. package/src/filiale/{weinan → WEINAN}/MeterinfoTest.vue +0 -0
  59. package/src/filiale/{weinan → WEINAN}/OffGasAddGas.vue +0 -0
  60. package/src/filiale/{weinan → WEINAN}/OtherGas.vue +0 -0
  61. package/src/filiale/{weinan → WEINAN}/OverUseCharge.vue +0 -0
  62. package/src/filiale/{weinan → WEINAN}/RecordCancel.vue +0 -0
  63. package/src/filiale/{weinan → WEINAN}/RecordQueryUser.vue +0 -0
  64. package/src/filiale/{weinan → WEINAN}/ReplaceCardManage.vue +0 -0
  65. package/src/filiale/{weinan → WEINAN}/ShowCardSellGas.vue +0 -0
  66. package/src/filiale/{weinan → WEINAN}/Stairinfo.vue +0 -0
  67. package/src/filiale/{weinan → WEINAN}/TransferManage.vue +0 -0
  68. package/src/filiale/{weinan → WEINAN}/UserBaseInfoNew.vue +0 -0
  69. package/src/filiale/{weinan → WEINAN}/UserEssentialInfoTest.vue +0 -0
  70. package/src/filiale/{weinan → WEINAN}/UserGeneralInfoTest.vue +0 -0
  71. package/src/filiale/{weinan → WEINAN}/UserInfoDetailManageNew.vue +0 -0
  72. package/src/filiale/{weinan → WEINAN}/Userinfo.vue +0 -0
  73. package/src/filiale/{weinan → WEINAN}/gasmove.vue +0 -0
  74. package/src/filiale/{weinan → WEINAN}/meterinfodetail.vue +0 -0
  75. package/src/filiale/{weinan → WEINAN}/plugins/FileManageService.js +0 -0
  76. package/src/filiale/{weinan → WEINAN}/plugins/getTimeService.js +0 -0
  77. package/src/filiale/{weinan → WEINAN}/sale.js +0 -0
  78. package/src/filiale/{weinan → WEINAN}/sale.js~Stashed changes +0 -0
  79. package/src/filiale/{weinan → WEINAN}/static/mainicon//347/237/251/345/275/2421828.png +0 -0
  80. package/src/filiale/alashan/PrintBill.vue +116 -116
  81. package/src/filiale/jingwei/CardHand.vue +742 -742
  82. package/src/filiale/macheng/FilesManageNew/FileUserFiles.vue +743 -0
  83. package/src/filiale/macheng/FilesManageNew/UserEssentialInfoTest.vue +21 -1
  84. package/src/filiale/macheng/UserEssentialInfoTest.vue +4 -2
  85. package/src/filiale/meihekou/MeterinfoTest.vue +0 -1
  86. package/src/filiale/meihekou/PrintBill.vue +140 -140
  87. package/src/filiale/meihekou/ReissueBill.vue +322 -322
  88. package/src/filiale/qianneng/FilesManage/MeterinfoTest.vue +0 -1
  89. package/src/filiale/qianneng/HandManager.vue +1838 -1838
  90. package/src/filiale/qianneng/OtherChargeNew.vue +6 -2
  91. package/src/filiale/qianneng/revenue/comprehen/closeaccount/Batchmanage.vue +58 -58
  92. package/src/filiale/qianneng/sale.js +30 -30
  93. package/src/filiale/qingtongxia/UserGeneralInfoTest.vue +538 -533
  94. package/src/filiale/rongcheng/FilesManageNew/UserGeneralInfoTest.vue +608 -608
  95. package/src/filiale/rongchuang/OtherGas.vue +329 -329
  96. package/src/filiale/tongchuan/CardList.vue +482 -482
  97. package/src/filiale/zhongsheng/rightview/CardList.vue +492 -492
  98. package/src/filiale/zhongsheng/wechatpay/WeChatPayDetail.vue +469 -469
  99. package/src/main.js +1 -1
  100. package/src/plugins/CardService.js +1798 -1798
  101. package/src/plugins/ChangeMeterService.js +756 -756
@@ -1,236 +1,236 @@
1
- <template>
2
- <div class="auto">
3
- <validator name='v'>
4
- <form novalidate class="form-horizontal">
5
- <div class="row">
6
- <div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
7
- <label class="font_normal_body" title="参数名称:付款方式">收款方式</label>
8
- <input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
9
- <v-select v-model="f_payment"
10
- placeholder='请选择'
11
- style="width:60%"
12
- :value.sync="model.f_payment"
13
- :options='paytype'
14
- v-ref:payment
15
- close-on-select clear-button></v-select>
16
-
17
- </div>
18
- <div class="col-sm-4 form-group">
19
- <label for="f_print" class="font_normal_body">打印格式</label>
20
-
21
- <v-select id="print"
22
- v-model="f_print"
23
- style="width:60%"
24
- placeholder='请选择'
25
- :value.sync="model.f_print"
26
- :options='printstyle'
27
- close-on-select clear-button>
28
- </v-select>
29
- </div>
30
- <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
31
- <label class="font_normal_body">剩余气量</label>
32
- <input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
33
- </div>
34
- <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
35
- <label class="font_normal_body">核算单价</label>
36
- <input class="input_search" style="width:60%" type="number" v-model="model.f_price" >
37
- </div>
38
- <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按金额'">
39
- <label class="font_normal_body">剩余金额</label>
40
- <input class="input_search" style="width:60%" type="number" v-model="data.f_balance_amount" readonly>
41
- </div>
42
- <div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按气量'"
43
- :class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
44
- <label class="font_normal_body">冲减气量</label>
45
- <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
46
- v-validate:f_refund_gas='{required: true, dctest: [0, ">=" ]}' placeholder="冲减气量" >
47
- </div>
48
- <div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按气量'"
49
- :class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
50
- <label class="font_normal_body">冲减气量</label>
51
- <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
52
- v-validate:f_refund_gas='{required: true, dctest: [data.f_balance_gas, "<=" ]}' placeholder="冲减气量" >
53
- </div>
54
- </div>
55
-
56
- <div class="row">
57
-
58
- <div class="col-sm-8">
59
- <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
60
- <input class="input_search" style="width:80%" v-model="model.f_comments">
61
- </div>
62
- <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
63
- <label class="font_normal_body">退费金额</label>
64
- <input class="input_search" style="width:60%"
65
- type="number" v-model="model.f_refund_fee"
66
- placeholder="退费金额">
67
- </div>
68
- <div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按金额'"
69
- :class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
70
- <label class="font_normal_body">退费金额</label>
71
- <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
72
- v-validate:f_refund_fee='{required: true, dctest: [data.f_balance_amount, "<=" ]}' placeholder="退费金额">
73
- </div>
74
- <div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按金额'"
75
- :class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
76
- <label class="font_normal_body">退费金额</label>
77
- <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
78
- v-validate:f_refund_fee='{required: true, dctest: [0, ">=" ]}' placeholder="退费金额">
79
- </div>
80
- </div>
81
- </form>
82
- <div style="text-align:right;">
83
- <button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
84
- <button class="button_clear btn-gn" @click="clean()">取消</button>
85
- </div>
86
- </validator>
87
- <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
88
- <!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
89
- <print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>
90
- </div>
91
-
92
- <upload :blodid="data.f_userinfo_id" isremark="true" fusetype="退费管理"></upload>
93
- </template>
94
-
95
-
96
- <script>
97
- let readyGen = async function (self) {
98
- await self.$getConfig(self, 'IOTRefund')
99
- // 默认打印格式
100
- self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
101
- self.model.f_payment = [self.config.payment]
102
-
103
- self.model.f_use_type = self.config.billType
104
- self.model.f_bill_type = self.model.f_print
105
- self.hasValidateBill = self.config.hasBillManage
106
- }
107
-
108
- export default {
109
- title: '物联网表退费',
110
- data () {
111
- return {
112
- config: {
113
- showupload: false, // 默认不上传附件
114
- hasPrint: false, // 默认打票
115
- hasBillManage: false, // 默认不启用发票管理
116
- overBalance: false, //为true时退费金额可以大于余额
117
- printType: '普通收据', // 收据/电子票/专用发票/国税发票
118
- payment: '现金缴费',
119
- billType: '燃气费'
120
- },
121
- model: {
122
- f_refund_fee: '',
123
- f_refund_gas: '',
124
- f_comments: '',
125
- f_payment: '',
126
- f_print: '',
127
- f_price: 0
128
- },
129
-
130
- blodid: '',
131
- hasValidateBill: false,
132
- validateOk: false,
133
-
134
- printModel: {},
135
- print: false,
136
- billUrl: '',
137
- billData: {
138
- url: 'rs/report/refund_sell',
139
- bill: ''
140
- },
141
-
142
- // 下拉框值
143
- paytype: this.$appdata.getParam('付款方式'),
144
- printstyle: this.$appdata.getParam('打印格式')
145
- }
146
- },
147
- props: ['data'],
148
- ready () {
149
- readyGen(this)
150
- if (this.data.f_collection_type === '按气量') {
151
- // this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
152
- this.model.f_price = this.data.f_price
153
-
154
- // this.$dispatch('refresh')
155
- }
156
- },
157
- methods: {
158
- async confirm () {
159
- let param = {
160
- f_user_id: this.data.f_user_id,
161
- f_userfiles_id: this.data.f_userfiles_id,
162
- version: this.data.version,
163
- f_price: this.model.f_price,
164
- f_refund_gas: this.model.f_refund_gas,
165
- f_refund_fee: this.model.f_refund_fee,
166
- f_comments: this.model.f_comments,
167
- f_collection_type: this.data.f_collection_type,
168
- f_payment: this.model.f_payment[0],
169
- f_print: this.model.f_print[0],
170
- f_price_id: this.data.f_price_id,
171
- f_total_gas: parseFloat(this.data.f_total_gas) - parseFloat(this.model.f_refund_gas),
172
- f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
173
- f_stairprice_id: this.data.f_stairprice_id,
174
- operInfo: {
175
- f_operator: this.$login.f.name,
176
- f_operatorid: this.$login.f.id,
177
- f_orgid: this.$login.f.orgid,
178
- f_orgname: this.$login.f.orgs,
179
- f_depid: this.$login.f.depids,
180
- f_depname: this.$login.f.deps
181
- }
182
- }
183
- console.log('退费传参', param)
184
- let res = await this.$resetpost('rs/logic/iotRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
185
- console.log('退费', res)
186
- console.log('退费this.config', this.config)
187
- console.log('退费this.model', this.model)
188
- if (this.config.hasPrint) {
189
- if (this.model.f_print.indexOf('电子发票') == -1) {
190
- console.log('this.config.hasBillManage', this.config.hasBillManage)
191
- if (this.config.hasBillManage) {
192
- // 启用发票管理,获取票据管理中的票号并存储记录
193
- this.printModel.id = res.data.id
194
- this.printModel.f_bill_type = '退费'
195
- this.printModel.f_bill_style = this.model.f_print[0]
196
- // this.billUrl = 'rs/report/refund_sell'
197
- this.print = true
198
- } else {
199
- this.printModel.id = res.data.id
200
- // this.billUrl = 'rs/report/refund_sell'
201
- this.print = true
202
- }
203
- } else if (this.config.printType === '国税发票') {
204
- // TODO
205
- this.$dispatch('success')
206
- } else if (this.config.printType === '电子发票') {
207
- // TODO
208
- this.$dispatch('success')
209
- }
210
- }
211
- this.$dispatch('success')
212
- },
213
- refundChange () {
214
- this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
215
- },
216
- clean () {
217
- this.$dispatch('refresh')
218
- },
219
- printok () {
220
- this.$dispatch('success')
221
- },
222
- validateBill (val) {
223
- this.validateOk = !val.isOk
224
- this.billData.bill = val.bill
225
- }
226
- },
227
- watch:{
228
- 'model.f_price'(){
229
- this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
230
- },
231
- 'model.f_refund_gas'(){
232
- this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
233
- }
234
- }
235
- }
236
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <validator name='v'>
4
+ <form novalidate class="form-horizontal">
5
+ <div class="row">
6
+ <div class="col-sm-4 form-group" :class="[$v.payment.required ? 'select-error' : '']">
7
+ <label class="font_normal_body" title="参数名称:付款方式">收款方式</label>
8
+ <input type="text" v-show="false" v-model="$refs.payment.selectedItems" v-validate:payment='{required: true }'>
9
+ <v-select v-model="f_payment"
10
+ placeholder='请选择'
11
+ style="width:60%"
12
+ :value.sync="model.f_payment"
13
+ :options='paytype'
14
+ v-ref:payment
15
+ close-on-select clear-button></v-select>
16
+
17
+ </div>
18
+ <div class="col-sm-4 form-group">
19
+ <label for="f_print" class="font_normal_body">打印格式</label>
20
+
21
+ <v-select id="print"
22
+ v-model="f_print"
23
+ style="width:60%"
24
+ placeholder='请选择'
25
+ :value.sync="model.f_print"
26
+ :options='printstyle'
27
+ close-on-select clear-button>
28
+ </v-select>
29
+ </div>
30
+ <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
31
+ <label class="font_normal_body">剩余气量</label>
32
+ <input class="input_search" style="width:60%" type="number" v-model="data.f_balance_gas" readonly>
33
+ </div>
34
+ <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
35
+ <label class="font_normal_body">核算单价</label>
36
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_price" >
37
+ </div>
38
+ <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按金额'">
39
+ <label class="font_normal_body">剩余金额</label>
40
+ <input class="input_search" style="width:60%" type="number" v-model="data.f_balance_amount" readonly>
41
+ </div>
42
+ <div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按气量'"
43
+ :class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
44
+ <label class="font_normal_body">冲减气量</label>
45
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
46
+ v-validate:f_refund_gas='{required: true, dctest: [0, ">=" ]}' placeholder="冲减气量" >
47
+ </div>
48
+ <div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按气量'"
49
+ :class="[$v.f_refund_gas.required || $v.f_refund_gas.dctest ? 'has-error' : 'has-success']">
50
+ <label class="font_normal_body">冲减气量</label>
51
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_gas"
52
+ v-validate:f_refund_gas='{required: true, dctest: [data.f_balance_gas, "<=" ]}' placeholder="冲减气量" >
53
+ </div>
54
+ </div>
55
+
56
+ <div class="row">
57
+
58
+ <div class="col-sm-8">
59
+ <label for="f_paper_account" class="font_normal_body ">&nbsp;&nbsp;&nbsp;备注&nbsp;&nbsp;&nbsp;</label>
60
+ <input class="input_search" style="width:80%" v-model="model.f_comments">
61
+ </div>
62
+ <div class="col-sm-4 form-group" v-if="data.f_collection_type === '按气量'">
63
+ <label class="font_normal_body">退费金额</label>
64
+ <input class="input_search" style="width:60%"
65
+ type="number" v-model="model.f_refund_fee"
66
+ placeholder="退费金额">
67
+ </div>
68
+ <div class="col-sm-4 form-group" v-if="!config.overBalance && data.f_collection_type === '按金额'"
69
+ :class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
70
+ <label class="font_normal_body">退费金额</label>
71
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
72
+ v-validate:f_refund_fee='{required: true, dctest: [data.f_balance_amount, "<=" ]}' placeholder="退费金额">
73
+ </div>
74
+ <div class="col-sm-4 form-group" v-if="config.overBalance && data.f_collection_type === '按金额'"
75
+ :class="[$v.f_refund_fee.required || $v.f_refund_fee.dctest ? 'has-error' : 'has-success']">
76
+ <label class="font_normal_body">退费金额</label>
77
+ <input class="input_search" style="width:60%" type="number" v-model="model.f_refund_fee"
78
+ v-validate:f_refund_fee='{required: true, dctest: [0, ">=" ]}' placeholder="退费金额">
79
+ </div>
80
+ </div>
81
+ </form>
82
+ <div style="text-align:right;">
83
+ <button class="button_search btn-gn" @click="confirm()" :disabled='!$v.valid'>确认</button>
84
+ <button class="button_clear btn-gn" @click="clean()">取消</button>
85
+ </div>
86
+ </validator>
87
+ <validate-bill v-if="hasValidateBill" :data="model" @validate-bill="validateBill"></validate-bill>
88
+ <!--<print-bill :show="print" :bill-manager='config.hasBillManage' v-ref:printbill :bill-url='billUrl' v-on:toggle="clean" @printok="printok" :data='printModel'></print-bill>-->
89
+ <print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="clean" @printok="printok" :data='printModel' v-ref:printbill></print-bill>
90
+ </div>
91
+
92
+ <upload :blodid="data.f_userinfo_id" isremark="true" fusetype="退费管理"></upload>
93
+ </template>
94
+
95
+
96
+ <script>
97
+ let readyGen = async function (self) {
98
+ await self.$getConfig(self, 'IOTRefund')
99
+ // 默认打印格式
100
+ self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
101
+ self.model.f_payment = [self.config.payment]
102
+
103
+ self.model.f_use_type = self.config.billType
104
+ self.model.f_bill_type = self.model.f_print
105
+ self.hasValidateBill = self.config.hasBillManage
106
+ }
107
+
108
+ export default {
109
+ title: '物联网表退费',
110
+ data () {
111
+ return {
112
+ config: {
113
+ showupload: false, // 默认不上传附件
114
+ hasPrint: false, // 默认打票
115
+ hasBillManage: false, // 默认不启用发票管理
116
+ overBalance: false, //为true时退费金额可以大于余额
117
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
118
+ payment: '现金缴费',
119
+ billType: '燃气费'
120
+ },
121
+ model: {
122
+ f_refund_fee: '',
123
+ f_refund_gas: '',
124
+ f_comments: '',
125
+ f_payment: '',
126
+ f_print: '',
127
+ f_price: 0
128
+ },
129
+
130
+ blodid: '',
131
+ hasValidateBill: false,
132
+ validateOk: false,
133
+
134
+ printModel: {},
135
+ print: false,
136
+ billUrl: '',
137
+ billData: {
138
+ url: 'rs/report/refund_sell',
139
+ bill: ''
140
+ },
141
+
142
+ // 下拉框值
143
+ paytype: this.$appdata.getParam('付款方式'),
144
+ printstyle: this.$appdata.getParam('打印格式')
145
+ }
146
+ },
147
+ props: ['data'],
148
+ ready () {
149
+ readyGen(this)
150
+ if (this.data.f_collection_type === '按气量') {
151
+ // this.$showAlert('按气量缴费的物联网表退费功能尚未开放!!', 'warning', 3000)
152
+ this.model.f_price = this.data.f_price
153
+
154
+ // this.$dispatch('refresh')
155
+ }
156
+ },
157
+ methods: {
158
+ async confirm () {
159
+ let param = {
160
+ f_user_id: this.data.f_user_id,
161
+ f_userfiles_id: this.data.f_userfiles_id,
162
+ version: this.data.version,
163
+ f_price: this.model.f_price,
164
+ f_refund_gas: this.model.f_refund_gas,
165
+ f_refund_fee: this.model.f_refund_fee,
166
+ f_comments: this.model.f_comments,
167
+ f_collection_type: this.data.f_collection_type,
168
+ f_payment: this.model.f_payment[0],
169
+ f_print: this.model.f_print[0],
170
+ f_price_id: this.data.f_price_id,
171
+ f_total_gas: parseFloat(this.data.f_total_gas) - parseFloat(this.model.f_refund_gas),
172
+ f_total_fee: parseFloat(this.data.f_total_fee) - parseFloat(this.model.f_refund_fee),
173
+ f_stairprice_id: this.data.f_stairprice_id,
174
+ operInfo: {
175
+ f_operator: this.$login.f.name,
176
+ f_operatorid: this.$login.f.id,
177
+ f_orgid: this.$login.f.orgid,
178
+ f_orgname: this.$login.f.orgs,
179
+ f_depid: this.$login.f.depids,
180
+ f_depname: this.$login.f.deps
181
+ }
182
+ }
183
+ console.log('退费传参', param)
184
+ let res = await this.$resetpost('rs/logic/iotRefund', {data: param}, {warnMsg: `确定要对用户${this.data.f_user_name}进行退费吗?`, resolveMsg: '退费成功!!', rejectMsg: '退费失败!!请重试!!'})
185
+ console.log('退费', res)
186
+ console.log('退费this.config', this.config)
187
+ console.log('退费this.model', this.model)
188
+ if (this.config.hasPrint) {
189
+ if (this.model.f_print.indexOf('电子发票') == -1) {
190
+ console.log('this.config.hasBillManage', this.config.hasBillManage)
191
+ if (this.config.hasBillManage) {
192
+ // 启用发票管理,获取票据管理中的票号并存储记录
193
+ this.printModel.id = res.data.id
194
+ this.printModel.f_bill_type = '退费'
195
+ this.printModel.f_bill_style = this.model.f_print[0]
196
+ // this.billUrl = 'rs/report/refund_sell'
197
+ this.print = true
198
+ } else {
199
+ this.printModel.id = res.data.id
200
+ // this.billUrl = 'rs/report/refund_sell'
201
+ this.print = true
202
+ }
203
+ } else if (this.config.printType === '国税发票') {
204
+ // TODO
205
+ this.$dispatch('success')
206
+ } else if (this.config.printType === '电子发票') {
207
+ // TODO
208
+ this.$dispatch('success')
209
+ }
210
+ }
211
+ this.$dispatch('success')
212
+ },
213
+ refundChange () {
214
+ this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
215
+ },
216
+ clean () {
217
+ this.$dispatch('refresh')
218
+ },
219
+ printok () {
220
+ this.$dispatch('success')
221
+ },
222
+ validateBill (val) {
223
+ this.validateOk = !val.isOk
224
+ this.billData.bill = val.bill
225
+ }
226
+ },
227
+ watch:{
228
+ 'model.f_price'(){
229
+ this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
230
+ },
231
+ 'model.f_refund_gas'(){
232
+ this.model.f_refund_fee = (this.model.f_refund_gas - 0) * (this.model.f_price - 0)
233
+ }
234
+ }
235
+ }
236
+ </script>
@@ -1,28 +1,28 @@
1
- <template>
2
- <div class="auto">
3
- <iot-refund v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund>
4
- <machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-Refund>
5
- </div>
6
-
7
- </template>
8
- <script>
9
- import IotRefund from './IOTRefund'
10
- import machineRefund from './machineRefund'
11
-
12
- export default {
13
- title: '退费管理',
14
- components: {
15
- IotRefund,
16
- machineRefund
17
- },
18
- data () {
19
- return {
20
-
21
- }
22
- },
23
- ready () {
24
-
25
- },
26
- props: ['row']
27
- }
28
- </script>
1
+ <template>
2
+ <div class="auto">
3
+ <iot-refund v-if="row.f_meter_type === '物联网表'" :data="row"></iot-refund>
4
+ <machine-Refund v-if="row.f_meter_type !== '物联网表'" :data="row"></machine-Refund>
5
+ </div>
6
+
7
+ </template>
8
+ <script>
9
+ import IotRefund from './IOTRefund'
10
+ import machineRefund from './machineRefund'
11
+
12
+ export default {
13
+ title: '退费管理',
14
+ components: {
15
+ IotRefund,
16
+ machineRefund
17
+ },
18
+ data () {
19
+ return {
20
+
21
+ }
22
+ },
23
+ ready () {
24
+
25
+ },
26
+ props: ['row']
27
+ }
28
+ </script>
@@ -27,6 +27,7 @@
27
27
  <template partial='head'>
28
28
  <tr>
29
29
  <th><nobr>序号</nobr></th>
30
+ <th><nobr>用户编号</nobr></th>
30
31
  <th><nobr>用户名称</nobr></th>
31
32
  <th><nobr>单价调整量</nobr></th>
32
33
  <th><nobr>旧气价</nobr></th>
@@ -46,6 +47,7 @@
46
47
  <template partial='body' >
47
48
 
48
49
  <td style="text-align: center;" >{{$index+1}}</td>
50
+ <td style="text-align: center;" >{{row.f_userinfo_code}}</td>
49
51
  <td style="text-align: center" >{{row.f_user_name}}</td>
50
52
  <td style="text-align: center" >{{row.f_change_price}}</td>
51
53
  <td style="text-align: center" >{{row.f_old_price}}</td>