apply-clients 4.1.2 → 4.1.4-weinan

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 (37) hide show
  1. package/index.html +1 -1
  2. package/package.json +7 -5
  3. package/src/apply.js +81 -66
  4. package/src/applyAndroid.js +41 -39
  5. package/src/components/app_apply/AppChargeManagement.vue +619 -0
  6. package/src/components/app_apply/ApplyInfo.vue +56 -56
  7. package/src/components/app_apply/ApplyToDoList.vue +148 -165
  8. package/src/components/app_apply/PlaceControler.vue +258 -258
  9. package/src/components/app_apply/ServiceControl.vue +280 -267
  10. package/src/components/product/ApplyCharge/ApplyChargeList.vue +251 -251
  11. package/src/components/product/Function/InstallInfoSelect.vue +40 -27
  12. package/src/components/product/Function/StopApplyCrrdList.vue +1 -1
  13. package/src/components/product/Function/functions/StopInstall.vue +7 -1
  14. package/src/components/product/Process/ExplorationSelect.vue +82 -59
  15. package/src/components/product/Process/Processes/InstallationDetails.vue +276 -246
  16. package/src/components/product/Process/Processes/UserFireInfo.vue +409 -0
  17. package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +1458 -99
  18. package/src/components/product/Process/Processes/addressAndUserinfoManagementPro.vue +1221 -0
  19. package/src/components/product/Process/Processes/chargeManagement.vue +47 -53
  20. package/src/components/product/Process/Processes/devicesDetails.vue +834 -0
  21. package/src/components/product/Process/Processes/materialshoufei.vue +182 -0
  22. package/src/components/product/Process/Processes/printCharge.vue +130 -130
  23. package/src/components/product/Process/Processes/recordcancel.vue +50 -0
  24. package/src/components/product/Process/Processes/selectUserinfo.vue +199 -0
  25. package/src/components/product/Process/Processes/splitMaterial.vue +358 -0
  26. package/src/components/product/Process/Service/ServiceControl.vue +1126 -703
  27. package/src/components/product/Process/ShowBackReason.vue +1 -0
  28. package/src/components/product/ServiceView.vue +82 -35
  29. package/src/components/product/Stop/StopApply.vue +101 -0
  30. package/src/components/product/Stop/StopApplyList.vue +257 -0
  31. package/src/components/product/Supervisory/SupervisoryControl.vue +7 -4
  32. package/src/components/product/Supervisory/SupervisoryList.vue +40 -27
  33. package/src/components/product/Supervisory/SupervisoryhCart.vue +0 -7
  34. package/src/components/product/Test.vue +8 -4
  35. package/src/components/product/VueUtils/ApplyUpload.vue +4 -4
  36. package/src/main.js +25 -23
  37. package/static/images/lefticon//347/237/251/345/275/2421183.png +0 -0
@@ -0,0 +1,619 @@
1
+ <template>
2
+ <div>
3
+ <div class="col-sm-12 col-xs-12 form-group app-btn">
4
+ <button class="btn btn-info" @click.prevent="showChargeModal()">收费</button>
5
+ </div>
6
+ <!--<div class="col-sm-12 col-xs-12">
7
+ <list :model="charge.payment_terms" partial='list'>
8
+ <div partial class="auto app-text panel">
9
+ <div class="panel-body panel-self">
10
+ <div class="row">
11
+ <p class="col-xs-4 text-left font"><b>收费项目</b></p>
12
+ <p class="col-xs-8 text-left input-font">{{ row.f_payment_term }}</p>
13
+ </div>
14
+ <div class="row">
15
+ <p class="col-xs-4 text-left font"><b>收费金额</b></p>
16
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_money }}</p>
17
+ </div>
18
+ <div class="row">
19
+ <p class="col-xs-4 text-left font"><b>金额大写</b></p>
20
+ <p class="col-xs-8 text-left input-font">{{ row.f_amount_words }}</p>
21
+ </div>
22
+ <div class="row">
23
+ <p class="col-xs-4 text-left font"><b>收费状态</b></p>
24
+ <p class="col-xs-8 text-left input-font">未缴费</p>
25
+ </div>
26
+ </div>
27
+ </div>
28
+ </list>
29
+ </div>-->
30
+ <div class="col-sm-12 col-xs-12">
31
+ <list :model="model" partial='list'>
32
+ <div partial class="auto app-text panel">
33
+ <div class="panel-body panel-self">
34
+ <div class="row" v-if="selectdata.f_apply_type !== '开发商集体报建'">
35
+ <p class="col-xs-4 text-left font"><b>地址</b></p>
36
+ <p class="col-xs-8 text-left input-font">{{ row.f_useraddres }}</p>
37
+ </div>
38
+ <div class="row">
39
+ <p class="col-xs-4 text-left font"><b>缴费编号</b></p>
40
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_number }}</p>
41
+ </div>
42
+ <div class="row">
43
+ <p class="col-xs-4 text-left font"><b>收费金额</b></p>
44
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_money }}</p>
45
+ </div>
46
+ <div class="row">
47
+ <p class="col-xs-4 text-left font"><b>金额大写</b></p>
48
+ <p class="col-xs-8 text-left input-font">{{ row.f_amount_words }}</p>
49
+ </div>
50
+ <div class="row">
51
+ <p class="col-xs-4 text-left font"><b>收费项目</b></p>
52
+ <p class="col-xs-8 text-left input-font">{{ row.f_payment_term }}</p>
53
+ </div>
54
+ <div class="row">
55
+ <p class="col-xs-4 text-left font"><b>付款方式</b></p>
56
+ <p class="col-xs-8 text-left input-font">{{ row.f_payment_method }}</p>
57
+ </div>
58
+ <div class="row" v-if="row.f_payment_method === '银行转账'">
59
+ <p class="col-xs-4 text-left font"><b>付款方名称</b></p>
60
+ <p class="col-xs-8 text-left input-font">{{ row.f_payer_name }}</p>
61
+ </div>
62
+ <div class="row" v-if="row.f_payment_method === '银行转账'">
63
+ <p class="col-xs-4 text-left font"><b>付款方账号</b></p>
64
+ <p class="col-xs-8 text-left input-font">{{ row.f_payer_account }}</p>
65
+ </div>
66
+ <div class="row" v-if="row.f_payment_method === '银行转账'">
67
+ <p class="col-xs-4 text-left font"><b>付款流水号</b></p>
68
+ <p class="col-xs-8 text-left input-font">{{ row.f_payer_number }}</p>
69
+ </div>
70
+ <div class="row">
71
+ <p class="col-xs-4 text-left font"><b>收费人员</b></p>
72
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_collectors }}</p>
73
+ </div>
74
+ <div class="row">
75
+ <p class="col-xs-4 text-left font"><b>收费日期</b></p>
76
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_date }}</p>
77
+ </div>
78
+ <div class="row">
79
+ <p class="col-xs-4 text-left font"><b>备注</b></p>
80
+ <p class="col-xs-8 text-left input-font">{{ row.f_charge_remarks }}</p>
81
+ </div>
82
+ </div>
83
+ </div>
84
+ </list>
85
+ </div>
86
+
87
+ <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
88
+ <header slot="modal-header" class="modal-header">
89
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
90
+ <h4 class="modal-title">收费明细</h4>
91
+ </header>
92
+ <article slot="modal-body" class="modal-body clearfix">
93
+ <div v-for="(index,payment) in charge.payment_terms">
94
+ <div class="form-group row vertical-center" :class="payment.f_payment_term ? '':'has-error'">
95
+ <label class="col-xs-4 control-label">收费项目:</label>
96
+ <div class="col-xs-8">
97
+ <input-select class="select select_list"
98
+ v-model="payment.f_payment_term"
99
+ :value.sync="payment.f_payment_term"
100
+ :options='paymentTerm'
101
+ :value-single="true"
102
+ close-on-select ></input-select>
103
+ </div>
104
+ </div>
105
+ <div class="form-group row vertical-center" :class="payment.f_charge_money ? '':'has-error'">
106
+ <label class="col-xs-4 control-label">收费金额:</label>
107
+ <div class="col-xs-8">
108
+ <input class="form-control input_view" style="" type="number"
109
+ v-model="payment.f_charge_money"
110
+ @keyup="handleInput(index)"
111
+ @change="moneyChange(index)"
112
+ :readonly="false"/>
113
+ </div>
114
+ </div>
115
+ <div class="form-group row vertical-center">
116
+ <label class="col-xs-4 control-label">金额大写:</label>
117
+ <div class="col-xs-8">
118
+ <input class="form-control input_view" style=""
119
+ v-model="payment.f_amount_words"
120
+ :value="smalltoBIG(0)"
121
+ :readonly="true"/>
122
+ </div>
123
+ </div>
124
+ </div>
125
+ <div class="row" style="display: flex"> <button type="button" style="margin: 0 auto;" class="btn btn-primary" @click.prevent="addPaymentTerms()">增加收费项目</button> </div>
126
+ <div class="form-group row vertical-center">
127
+ <label class="col-xs-4 control-label">应交总金额:</label>
128
+ <div class="col-xs-8">
129
+ <input class="form-control input_view" style=""
130
+ v-model="selectdata.f_due_money"
131
+ :readonly="true"/>
132
+ </div>
133
+ </div>
134
+ <div class="form-group row vertical-center">
135
+ <label class="col-xs-4 control-label">缴费总金额:</label>
136
+ <div class="col-xs-8">
137
+ <input class="form-control input_view" style=""
138
+ v-model="selectdata.f_cumulative_payment_money"
139
+ :readonly="true"/>
140
+ </div>
141
+ </div>
142
+ <div class="form-group row vertical-center">
143
+ <label class="col-xs-4 control-label">未结总金额:</label>
144
+ <div class="col-xs-8">
145
+ <input class="form-control input_view" style=""
146
+ v-model="selectdata.f_surplus_money"
147
+ :readonly="true"/>
148
+ </div>
149
+ </div>
150
+ </article>
151
+ <footer slot="modal-footer" class="modal-footer">
152
+ <button type="button" class="btn btn-primary" @click.prevent="openQrCode()">确认</button>
153
+ </footer>
154
+ </modal>
155
+
156
+ <modal :show.sync="showQrCode" v-ref:qrcodemodal :large="true" :backdrop="false" style="height: 100%">
157
+ <header slot="modal-header" class="modal-header">
158
+ <h4 class="modal-title">微信扫码支付</h4>
159
+ </header>
160
+ <article slot="modal-body" class="modal-body clearfix">
161
+ <div class="text-center">
162
+ <p><b>收费金额:{{ getTotalAmount() }}¥</b></p>
163
+ <p><b>收费项目:{{ getPaymentTerm() }}</b></p>
164
+ <div id="qrcode" class="qrcode" v-ref:qrcode></div>
165
+ <p>
166
+ 等待支付,剩余&ensp;<span style="color: #ff791a">{{timeLeft}}</span>&ensp;秒
167
+ </p>
168
+ <button type="button" @click="closeQRCode">取消支付</button>
169
+ </div>
170
+ </article>
171
+ <footer slot="modal-footer"></footer>
172
+ </modal>
173
+ </div>
174
+ </template>
175
+ <script>
176
+ import * as Util from '../Util'
177
+ import {PagedList} from 'vue-client'
178
+ import {HttpResetClass} from 'vue-client'
179
+ import QRCode from 'qrcodejs2'
180
+ import Vue from "vue";
181
+
182
+ export default {
183
+ title: '收费管理',
184
+ props: {
185
+ selectdata: {
186
+ type: Object
187
+ },
188
+ mark: {
189
+ type: Number,
190
+ default: 0
191
+ }
192
+ },
193
+ data () {
194
+ return {
195
+ showCharge: false, // 收费明细
196
+ showQrCode : false, // 二维码
197
+ model: {
198
+ rows: null
199
+ }, // 记录
200
+ useraddresList: [], // 地址列表
201
+ /*charge: {
202
+
203
+ },*/
204
+ charge: {
205
+ payment_terms:[{f_payment_term: '',f_charge_money: '',f_amount_words:'',f_payment_method : '手机APP'}]
206
+ },
207
+ order: null,
208
+ timeLeft: 120,
209
+ paymentInterval: null,
210
+ orderInterval: null,
211
+ filiale:"",
212
+ config: {
213
+
214
+ }
215
+ }
216
+ },
217
+ ready () {
218
+ this.search()
219
+ },
220
+ methods: {
221
+ addPaymentTerms(){
222
+ this.charge.payment_terms.push({f_payment_term: '',f_charge_money: '',f_payment_method : '掌上营业厅'})
223
+ },
224
+ // 新增收费
225
+ async saveCharge() {
226
+ let http = new HttpResetClass()
227
+ let data = {
228
+ apply: this.selectdata,
229
+ charge: this.charge,
230
+ user: Vue.user,
231
+ f_out_trade_no:this.order.f_out_trade_no
232
+ }
233
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/appaddApplyChargeRecord`, {data:data}, {
234
+ resolveMsg: null,
235
+ rejectMsg: '缴费失败!!!'
236
+ })
237
+ this.selectdata = res.data
238
+
239
+ this.$dispatch('breakControl')
240
+ },
241
+ // 获取订单信息
242
+ async getOrderInformation () {
243
+ // 查询订单信息
244
+ console.log('查询订单信息!!!')
245
+ // let data = {
246
+ // out_trade_no: this.order.out_trade_no,
247
+ // filiale: this.config[Vue.user.number]
248
+ // }
249
+ // 查询订单状态
250
+
251
+ let http = new HttpResetClass()
252
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/tel_singleTable_OrderBy`, {
253
+ data: {
254
+ items: "id",
255
+ tablename: "t_weixinreturnxml",
256
+ condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_bill_state = 1 `,
257
+ orderitem: "id"
258
+ }
259
+ }, {
260
+ resolveMsg: null,
261
+ rejectMsg: '订单查询失败!!!'
262
+ })
263
+ console.log('8888888888')
264
+ console.log(this.order.f_out_trade_no)
265
+ console.log(JSON.stringify(res))
266
+ // 支付成功
267
+ if (res.data.length > 0) {
268
+ this.$showMessage('支付成功!!!')
269
+ clearTimeout(this.paymentInterval)
270
+ clearTimeout(this.orderInterval)
271
+ this.timeLeft = 10
272
+ // 清除二维码
273
+ this.clearQrCode()
274
+ this.showQrCode = false
275
+
276
+ this.saveCharge()
277
+ }
278
+ },
279
+ checkApplyModel(){
280
+ console.log(this.charge.payment_terms)
281
+ if (Number(this.getTotalAmount()) != Number(this.selectdata.f_surplus_money)) {
282
+ this.$showAlert('本次收费金额必须和未交总金额一致!!!', 'warning', 3000)
283
+ //this.charge.f_charge_money = null
284
+ return
285
+ }
286
+
287
+ for(let row = 0;row<this.charge.payment_terms.length; row++){
288
+ console.log(this.charge.payment_terms[row])
289
+ if (isEmpty(this.charge.payment_terms[row].f_payment_term)) {
290
+ console.log(1111)
291
+ this.$showAlert('请选择收费项目!!!', 'warning', 3000)
292
+ return
293
+ }else if (isEmpty(this.charge.payment_terms[row].f_charge_money)) {
294
+ console.log(2222)
295
+ this.$showAlert('请输入收费金额!!!', 'warning', 3000)
296
+ return
297
+ }
298
+ }
299
+ this.showCharge=false
300
+ this.$dispatch('changeShowfei','待付款')
301
+ },
302
+ // 打开二维码
303
+ async openQrCode () {
304
+ console.log(this.charge.payment_terms)
305
+ if (Number(this.getTotalAmount()) != Number(this.selectdata.f_surplus_money)) {
306
+ this.$showAlert('本次收费金额必须和未交总金额一致!!!', 'warning', 3000)
307
+ //this.charge.f_charge_money = null
308
+ return
309
+ }
310
+
311
+ for(let row = 0;row<this.charge.payment_terms.length; row++){
312
+ console.log(this.charge.payment_terms[row])
313
+ if (isEmpty(this.charge.payment_terms[row].f_payment_term)) {
314
+ console.log(1111)
315
+ this.$showAlert('请选择收费项目!!!', 'warning', 3000)
316
+ return
317
+ }else if (isEmpty(this.charge.payment_terms[row].f_charge_money)) {
318
+ console.log(2222)
319
+ this.$showAlert('请输入收费金额!!!', 'warning', 3000)
320
+ return
321
+ }
322
+ }
323
+ this.showCharge=false
324
+ //this.$dispatch('changeShowfei','待付款')
325
+ //this.saveCharge()
326
+ let http = new HttpResetClass()
327
+ // 接口金额 单位为:分
328
+ let data = {
329
+ money: this.accMul(this.getTotalAmount() ,100),
330
+ attach: {
331
+ "f_type": '报建收费',
332
+ "f_user": Vue.user.id
333
+ },
334
+ str: this.getPaymentTerm(),
335
+ config: this.filiale,
336
+ f_revenue: "productV3"
337
+ }
338
+ console.log('下单信息')
339
+ console.log(JSON.stringify(data))
340
+ // 下订单
341
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/ICBCGetCode`, data, {
342
+ resolveMsg: null,
343
+ rejectMsg: '订单生成失败!!!'
344
+ })
345
+ console.log('=================================')
346
+ console.log(JSON.stringify(res.data))
347
+ this.order = res.data
348
+ let info = {
349
+ apply: this.selectdata,
350
+ charge: this.charge,
351
+ user: Vue.user,
352
+ f_out_trade_no:this.order.f_out_trade_no
353
+ }
354
+ http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
355
+ resolveMsg: null,
356
+ rejectMsg: null
357
+ }).then(ress=>{
358
+ console.log('ress',ress)
359
+ if(ress.data.code == '200'){
360
+ this.showQrCode = true
361
+ this.$nextTick(()=>{
362
+ this.qrcode()
363
+ })
364
+ // 剩余支付时间
365
+ this.paymentInterval = setInterval(() => {
366
+ this.timeLeft = this.timeLeft - 1
367
+ },1000)
368
+
369
+ // 3秒查询一次订单支付信息
370
+ this.orderInterval = setInterval(() => {
371
+ this.getOrderInformation()
372
+ },3000)
373
+ }else{
374
+ this.$showMessage('订单生成失败')
375
+ }
376
+ })
377
+
378
+
379
+ },
380
+ accMul(arg1,arg2) {
381
+ let m = 0, s1 = arg1.toString(), s2 = arg2.toString();
382
+ try {
383
+ m += s1.split(".")[1].length
384
+ } catch (e) {
385
+ }
386
+ try {
387
+ m += s2.split(".")[1].length
388
+ } catch (e) {
389
+ }
390
+ return Number(s1.replace(".", "")) * Number(s2.replace(".", "")) / Math.pow(10, m)
391
+ },
392
+ getTotalAmount(){
393
+ let money=0
394
+ this.charge.payment_terms.forEach((row)=>{
395
+ money = Math.floor((Number(money)+Number(row.f_charge_money)) * 100) / 100
396
+ })
397
+ return money
398
+ },
399
+ getPaymentTerm(){
400
+ let term=''
401
+ this.charge.payment_terms.forEach((row)=>{
402
+ term += `${row.f_payment_term} `
403
+ })
404
+ return term
405
+ },
406
+ qrcode () {
407
+ let qrcode = new QRCode('qrcode',{
408
+ text: this.order.url, // 设置二维码内容或跳转地址
409
+ width: 200, // 设置宽度,单位像素
410
+ height: 200, // 设置高度,单位像素
411
+ correctLevel: QRCode.CorrectLevel.L //容错率,L/M/Hs
412
+ })
413
+ },
414
+ clearQrCode () {
415
+ document.getElementById('qrcode').innerHTML = ''
416
+ },
417
+ moneyChange (index) {
418
+ console.log(`当前下标----${index}`)
419
+ if (isEmpty(this.charge.payment_terms[index].f_charge_money) || Number(this.charge.payment_terms[index].f_charge_money) === 0) {
420
+ this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
421
+ this.charge.payment_terms[index].f_charge_money = null
422
+ return
423
+ }
424
+
425
+ },
426
+ /*moneyChange () {
427
+ if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
428
+ this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
429
+ this.charge.f_charge_money = null
430
+ return
431
+ }
432
+ if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.f_charge_money) > Number(this.charge.f_outstanding_amount)) {
433
+ this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
434
+ this.charge.f_charge_money = null
435
+ return
436
+ }
437
+ if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) {
438
+ this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
439
+ this.charge.f_charge_money = null
440
+ return
441
+ }
442
+ },*/
443
+ // 金额转大写
444
+ handleInput(index) {
445
+ // 通过正则过滤小数点后两位
446
+ console.log('-----------------------')
447
+ this.charge.payment_terms[index].f_charge_money = (this.charge.payment_terms[index].f_charge_money.match(/^\d*(\.?\d{0,2})/g)[0]) || null
448
+ this.charge.payment_terms[index].f_amount_words = this.smalltoBIG( this.charge.payment_terms[index].f_charge_money)
449
+ },
450
+ // 金额转大写
451
+ smalltoBIG(n) {
452
+ let fraction = ['角', '分'];
453
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
454
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
455
+ let head = n < 0 ? '欠' : '';
456
+ n = Math.abs(n);
457
+
458
+ let s = '';
459
+
460
+ for (var i = 0; i < fraction.length; i++) {
461
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
462
+ }
463
+ s = s || '整';
464
+ n = Math.floor(n);
465
+
466
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
467
+ let p = '';
468
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
469
+ p = digit[n % 10] + unit[1][j] + p;
470
+ n = Math.floor(n / 10);
471
+ }
472
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
473
+ }
474
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
475
+ },
476
+ async getUserAddress() {
477
+ let http = new HttpResetClass()
478
+ let data = {}
479
+ let url = null
480
+ if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
481
+ data = {
482
+ condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
483
+ }
484
+ url = `${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetUserinfos`
485
+ } else {
486
+ data = {
487
+ condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
488
+ f_process_id: this.selectdata.f_process_id
489
+ }
490
+ url = `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndCumulativePayment`
491
+ }
492
+ let res = await http.load('POST', url, {data:data}, {
493
+ resolveMsg: null,
494
+ rejectMsg: '用户获取失败!!!'
495
+ })
496
+
497
+ if (res.data.length <= 0) {
498
+ this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
499
+ }
500
+
501
+ this.useraddresList = res.data.map(item => {
502
+ return {
503
+ // 有用户姓名地址后拼接姓名
504
+ label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
505
+ value: item
506
+ }
507
+ })
508
+
509
+ },
510
+ async showChargeModal() {
511
+ this.getUserAddress()
512
+
513
+ this.charge.f_payment_method = '掌上营业厅'
514
+
515
+ this.showCharge = true
516
+ },
517
+ async search () {
518
+ let http = new HttpResetClass()
519
+ let data = {
520
+ f_process_id: this.selectdata.f_process_id
521
+ }
522
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyChargeRecord`, {data:data}, {
523
+ resolveMsg: null,
524
+ rejectMsg: '收费记录查询失败!!!'
525
+ })
526
+ this.model.rows = res.data
527
+ },
528
+ // 关闭对话框
529
+ closeModal () {
530
+ this.showCharge = false
531
+ this.showInvalid = false
532
+ this.showPrint = false
533
+ this.charge = {
534
+ payment_terms:[{f_payment_term: '',f_charge_money: '',f_amount_words:'',f_payment_method : '掌上营业厅'}]
535
+ }
536
+ this.search()
537
+ },
538
+ closeQRCode(){
539
+ clearTimeout(this.paymentInterval)
540
+ clearTimeout(this.orderInterval)
541
+ this.timeLeft = 120
542
+ // 清除二维码
543
+ this.clearQrCode()
544
+ this.showQrCode = false
545
+ }
546
+ // async getConfig () {
547
+ // let http = new HttpResetClass()
548
+ // let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/getWeiXinConfig`, null, {
549
+ // resolveMsg: null,
550
+ // rejectMsg: '获取配置失败!!!'
551
+ // })
552
+ //
553
+ // console.log('==============================')
554
+ // console.log(res.data)
555
+ //
556
+ // this.config = res.data
557
+ //
558
+ // this.timeLeft = 120
559
+ // },
560
+ },
561
+ events: {
562
+ },
563
+ computed: {
564
+ paymentMethod() {
565
+ return this.$appdata.getParam("付款方式")
566
+ },
567
+ paymentTerm() {
568
+ return this.$appdata.getParam("收费项目")
569
+ //return [{label: '安装费', value: '安装费'}]
570
+ }
571
+ },
572
+ watch: {
573
+ timeLeft () {
574
+ if (this.timeLeft <= 0) {
575
+ clearTimeout(this.paymentInterval)
576
+ clearTimeout(this.orderInterval)
577
+
578
+ this.timeLeft = 120
579
+
580
+ // 清除二维码
581
+ this.clearQrCode()
582
+
583
+ this.showQrCode = false
584
+
585
+ this.$showMessage('订单支付超时!!!')
586
+ }
587
+ },
588
+ /*'selectdata.showfei' (val){
589
+ console.log('---------'+val)
590
+ if(val=='收款码'){
591
+ this.openQrCode()
592
+ }
593
+ }*/
594
+ }
595
+ }
596
+ </script>
597
+ <style scoped lang="less">
598
+ .qrcode {
599
+ display: inline-block !important;
600
+ margin: 10px 0px;
601
+ }
602
+ .panel-self{
603
+ border-radius: 10px;
604
+ border:1px solid #499EDF;
605
+ background-color: #F8F8F8;
606
+ }
607
+ .vertical-center {
608
+ display: flex;
609
+ align-items: center;
610
+ text-align: center;
611
+ }
612
+ /*清除model中的浮动*/
613
+ .clearfix:after,.clearfix:before{
614
+ display: table;
615
+ }
616
+ .clearfix:after{
617
+ clear: both;
618
+ }
619
+ </style>