apply-clients 3.3.201 → 3.3.205

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.
@@ -1,638 +1,638 @@
1
- <template>
2
- <div class="col-sm-12" style="margin: 20px 0px;">
3
- <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
4
- <template partial='head'>
5
- <tr>
6
- <th class="textNoLineBreak">序号</th>
7
- <th class="textNoLineBreak" v-if="selectdata.f_apply_type !== '开发商集体报建'">地址</th>
8
- <th class="textNoLineBreak">缴费编号</th>
9
- <th class="textNoLineBreak">收费金额</th>
10
- <th class="textNoLineBreak">金额大写</th>
11
- <th class="textNoLineBreak">收费项目</th>
12
- <th class="textNoLineBreak">付款方式</th>
13
- <th class="textNoLineBreak">付款方名称</th>
14
- <th class="textNoLineBreak">付款方账号</th>
15
- <th class="textNoLineBreak">付款流水号</th>
16
- <th class="textNoLineBreak">收费人员</th>
17
- <th class="textNoLineBreak">收费日期</th>
18
- <th class="textNoLineBreak">备注</th>
19
- <th class="textNoLineBreak">缴费状态</th>
20
- <th class="textNoLineBreak">作废人员</th>
21
- <th class="textNoLineBreak">作废时间</th>
22
- <th class="textNoLineBreak">作废原因</th>
23
- <th class="textNoLineBreak">
24
- <button
25
- type="button"
26
- class="btn btn-info head-but"
27
- @click="$parent.$parent.showChargeModal()"
28
- :disabled="$parent.$parent.mark === 1 || ($parent.$parent.selectdata.f_cumulative_payment_money >= $parent.$parent.selectdata.f_due_money || $parent.$parent.selectdata.f_surplus_money === 0)"
29
- >新增收费</button>
30
- </th>
31
- </tr>
32
- </template>
33
- <template partial='body'>
34
- <tr>
35
- <td style="text-align: center;">
36
- <nobr>{{$index+1}}</nobr>
37
- </td>
38
- <td style="text-align: center;" v-if="selectdata.f_apply_type !== '开发商集体报建'">
39
- <nobr>{{row.f_useraddres}}</nobr>
40
- </td>
41
- <td style="text-align: center;">
42
- <nobr>{{row.f_charge_number}}</nobr>
43
- </td>
44
- <td style="text-align: center;">
45
- <nobr>{{row.f_charge_money}}</nobr>
46
- </td>
47
- <td style="text-align: center;">
48
- <nobr>{{row.f_amount_words}}</nobr>
49
- </td>
50
- <td style="text-align: center;">
51
- <nobr>{{row.f_payment_term}}</nobr>
52
- </td>
53
- <td style="text-align: center;">
54
- <nobr>{{row.f_payment_method}}</nobr>
55
- </td>
56
- <td style="text-align: center;">
57
- <nobr>{{row.f_payer_name}}</nobr>
58
- </td>
59
- <td style="text-align: center;">
60
- <nobr>{{row.f_payer_account}}</nobr>
61
- </td>
62
- <td style="text-align: center;">
63
- <nobr>{{row.f_payer_number}}</nobr>
64
- </td>
65
- <td style="text-align: center;">
66
- <nobr>{{row.f_charge_collectors}}</nobr>
67
- </td>
68
- <td style="text-align: center;">
69
- <nobr>{{row.f_charge_date}}</nobr>
70
- </td>
71
- <td style="text-align: center;">
72
- <nobr>{{row.f_charge_remarks}}</nobr>
73
- </td>
74
- <td style="text-align: center;">
75
- <nobr>{{row.f_charge_status}}</nobr>
76
- </td>
77
- <td style="text-align: center;">
78
- <nobr>{{row.f_void_staff}}</nobr>
79
- </td>
80
- <td style="text-align: center;">
81
- <nobr>{{row.f_void_date}}</nobr>
82
- </td>
83
- <td style="text-align: center;">
84
- <nobr>{{row.f_void_remarks}}</nobr>
85
- </td>
86
- <td style="text-align: center;">
87
- <nobr v-if="row.f_charge_status !== '退款'">
88
- <button
89
- type="button"
90
- name="button"
91
- class="btn btn-link"
92
- :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
93
- @click="$parent.$parent.showInvalidModal(row)"
94
- >作废</button>
95
-
96
- <button
97
- type="button"
98
- name="button"
99
- class="btn btn-link"
100
- @click="$parent.$parent.showPrintModal(row)"
101
- >打印预览</button>
102
- </nobr>
103
- </td>
104
- </tr>
105
- </template>
106
- </data-grid>
107
-
108
- <validator name="v">
109
- <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
110
- <header slot="modal-header" class="modal-header">
111
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
112
- <h4 class="modal-title">收费明细</h4>
113
- </header>
114
- <article slot="modal-body" class="modal-body clearfix">
115
- <div class="form-group col-sm-12" v-if="false" :class="[$v.useraddres.required ? 'has-error' : '']">
116
- <label class="col-sm-2 control-label">缴费地址:</label>
117
- <div class="col-sm-10">
118
- <input type="text" v-show="false" v-model="charge.useraddres.id" v-validate:useraddres = "['required']" >
119
- <input-select width="100%" class="select select_list" placeholder='请选择'
120
- v-model="charge.useraddres"
121
- :value.sync="charge.useraddres"
122
- :options='useraddresList'
123
- :value-single="true"
124
- @change="selectAddres()"
125
- close-on-select ></input-select>
126
- </div>
127
- </div>
128
- <div class="form-group col-sm-12" :class="[$v.f_payment_term.required ? 'has-error' : '']">
129
- <label class="col-sm-2 control-label">收费项目:</label>
130
- <div class="col-sm-10">
131
- <input type="text" v-show="false" v-model="charge.f_payment_term" v-validate:f_payment_term = "['required']" >
132
- <input width="100%" class="form-control input_view" placeholder='请输入'
133
- v-model="charge.f_payment_term"
134
- :value.sync="charge.f_payment_term"
135
- :value-single="true"
136
- close-on-select ></input>
137
- </div>
138
- </div>
139
- <div class="form-group col-sm-12" :class="[$v.f_charge_money.required ? 'has-error' : '']">
140
- <label class="col-sm-2 control-label">收费金额:</label>
141
- <div class="col-sm-10">
142
- <input type="number"
143
- class="form-control input_view"
144
- style="width: 100%"
145
- placeholder="0.00"
146
- @keyup="handleInput"
147
- @change="moneyChange"
148
- v-validate:f_charge_money = "['required']"
149
- v-model="charge.f_charge_money" />
150
- </div>
151
- </div>
152
- <div class="form-group col-sm-12" :class="[$v.f_payment_method.required ? 'has-error' : '']">
153
- <label class="col-sm-2 control-label">付款方式:</label>
154
- <div class="col-sm-10">
155
- <input type="text" v-show="false" v-model="charge.f_payment_method" v-validate:f_payment_method = "['required']" >
156
- <input-select
157
- placeholder='请选择' width="100%"
158
- v-model="charge.f_payment_method"
159
- :value.sync="charge.f_payment_method"
160
- :options='paymentMethod'
161
- class="select select_list"
162
- :value-single="true"
163
- @change="changePaymentMethod()"
164
- close-on-select ></input-select>
165
- </div>
166
- </div>
167
- <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_name.required ? 'has-error' : '']">
168
- <label class="col-sm-2 control-label">付款方名称:</label>
169
- <div class="col-sm-10">
170
- <input type="text"
171
- class="form-control input_view"
172
- style="width: 100%"
173
- v-validate:f_payer_name = "['required']"
174
- v-model="charge.f_payer_name" value="" />
175
- </div>
176
- </div>
177
- <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_account.required ? 'has-error' : '']">
178
- <label class="col-sm-2 control-label">付款方账号:</label>
179
- <div class="col-sm-10">
180
- <input type="text" style="width: 100%" class="form-control input_view"
181
- v-validate:f_payer_account = "['required']"
182
- v-model="charge.f_payer_account" value=""/>
183
- </div>
184
- </div>
185
- <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_number.required ? 'has-error' : '']">
186
- <label class="col-sm-2 control-label">付款流水号:</label>
187
- <div class="col-sm-10">
188
- <input type="text"
189
- class="form-control input_view"
190
- style="width: 100%" @change="payerNumberChange()"
191
- v-validate:f_payer_number = "['required']"
192
- v-model="charge.f_payer_number" value="" />
193
- </div>
194
- </div>
195
- <div class="form-group col-sm-12">
196
- <label class="col-sm-2 control-label">金额大写:</label>
197
- <div class="col-sm-10">
198
- <input type="text"
199
- class="form-control input_view"
200
- style="width: 100%"
201
- :value="smalltoBIG(0)"
202
- readonly
203
- v-model.sync="charge.f_amount_words" />
204
- </div>
205
- </div>
206
- <div class="form-group col-sm-12"
207
- v-if="selectdata.f_apply_type === '散户集体报建'"
208
- >
209
- <label class="col-sm-2 control-label">单价(户):</label>
210
- <div class="col-sm-10">
211
- <input type="text"
212
- class="form-control input_view"
213
- style="width: 100%"
214
- readonly
215
- v-model="selectdata.f_price" />
216
- </div>
217
- </div>
218
- <div class="form-group col-sm-12"
219
- v-if="selectdata.f_apply_type === '散户集体报建'"
220
- >
221
- <label class="col-sm-2 control-label">累计缴费金额:</label>
222
- <div class="col-sm-10">
223
- <input type="text"
224
- class="form-control input_view"
225
- style="width: 100%"
226
- readonly
227
- v-model="charge.f_cumulative_payment_money"
228
- :value="charge.f_cumulative_payment_money || 0" />
229
- </div>
230
- </div>
231
- <div class="form-group col-sm-12"
232
- v-if="selectdata.f_apply_type === '散户集体报建'"
233
- >
234
- <label class="col-sm-2 control-label">未结金额:</label>
235
- <div class="col-sm-10">
236
- <input type="text"
237
- class="form-control input_view"
238
- style="width: 100%"
239
- readonly
240
- v-model="charge.f_outstanding_amount"
241
- :value="charge.f_outstanding_amount || 0" />
242
- </div>
243
- </div>
244
- <div class="form-group col-sm-12">
245
- <label class="col-sm-2 control-label">应交总金额:</label>
246
- <div class="col-sm-10">
247
- <input type="text"
248
- class="form-control input_view"
249
- style="width: 100%"
250
- readonly
251
- v-model="selectdata.f_due_money" />
252
- </div>
253
- </div>
254
- <div class="form-group col-sm-12">
255
- <label class="col-sm-2 control-label">累计缴费总金额:</label>
256
- <div class="col-sm-10">
257
- <input type="text"
258
- class="form-control input_view"
259
- style="width: 100%"
260
- readonly
261
- v-model="selectdata.f_cumulative_payment_money" />
262
- </div>
263
- </div>
264
- <div class="form-group col-sm-12">
265
- <label class="col-sm-2 control-label">未结总金额:</label>
266
- <div class="col-sm-10">
267
- <input type="text"
268
- class="form-control input_view"
269
- style="width: 100%"
270
- readonly
271
- v-model="selectdata.f_surplus_money" />
272
- </div>
273
- </div>
274
- <div class="form-group col-sm-12">
275
- <label class="col-sm-2 control-label">备注:</label>
276
- <div class="col-sm-10">
277
- <input type="text"
278
- class="form-control input_view"
279
- style="width: 100%"
280
- v-model="charge.f_charge_remarks" />
281
- </div>
282
- </div>
283
- </article>
284
- <footer slot="modal-footer" class="modal-footer">
285
- <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
286
- </footer>
287
- </modal>
288
- </validator>
289
-
290
- <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废收费">
291
- <header slot="modal-header" class="modal-header">
292
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
293
- <h4 class="modal-title">作废收费</h4>
294
- </header>
295
- <article slot="modal-body" class="modal-body clearfix">
296
- <div class="form-group col-sm-12" v-if="false">
297
- <label class="col-sm-2 control-label">缴费地址:</label>
298
- <div class="col-sm-10">
299
- <input type="text"
300
- class="form-control input_view"
301
- style="width: 100%"
302
- readonly
303
- v-model="charge.f_useraddres" />
304
- </div>
305
- </div>
306
- <div class="form-group col-sm-12">
307
- <label class="col-sm-2 control-label">收费金额:</label>
308
- <div class="col-sm-10">
309
- <input type="text"
310
- class="form-control input_view"
311
- style="width: 100%"
312
- readonly
313
- v-model="charge.f_charge_money" />
314
- </div>
315
- </div>
316
- <div class="form-group col-sm-12">
317
- <label class="col-sm-2 control-label">付款方式:</label>
318
- <div class="col-sm-10">
319
- <input type="text"
320
- class="form-control input_view"
321
- style="width: 100%"
322
- readonly
323
- v-model="charge.f_payment_method" />
324
- </div>
325
- </div>
326
- <div class="form-group col-sm-12">
327
- <label class="col-sm-2 control-label">金额大写:</label>
328
- <div class="col-sm-10">
329
- <input type="text"
330
- class="form-control input_view"
331
- style="width: 100%"
332
- readonly
333
- v-model="charge.f_amount_words" />
334
- </div>
335
- </div>
336
- <div class="form-group col-sm-12">
337
- <label class="col-sm-2 control-label">收费人员:</label>
338
- <div class="col-sm-10">
339
- <input type="text"
340
- class="form-control input_view"
341
- style="width: 100%"
342
- readonly
343
- v-model="charge.f_charge_collectors" />
344
- </div>
345
- </div>
346
- <div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
347
- <label class="col-sm-2 control-label">作废原因:</label>
348
- <div class="col-sm-10">
349
- <input type="text"
350
- class="form-control input_view"
351
- style="width: 100%"
352
- v-model="charge.f_void_remarks" />
353
- </div>
354
- </div>
355
- </article>
356
- <footer slot="modal-footer" class="modal-footer">
357
- <button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
358
- </footer>
359
- </modal>
360
-
361
- <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
362
- <header slot="modal-header" class="modal-header">
363
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
364
- <h4 class="modal-title">打印预览</h4>
365
- </header>
366
- <article slot="modal-body" class="modal-body clearfix">
367
- <apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
368
- </article>
369
- <footer slot="modal-footer" class="modal-footer">
370
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
371
- </footer>
372
- </modal>
373
- </div>
374
- </template>
375
- <script>
376
- import {getNowDate,isEmpty} from '../../../Util'
377
- import {PagedList} from 'vue-client'
378
- import {HttpResetClass} from 'vue-client'
379
- import Vue from 'vue'
380
-
381
- export default {
382
- title: '收费管理',
383
- props: {
384
- selectdata: {
385
- type: Object
386
- },
387
- mark: {
388
- type: Number,
389
- default: 0
390
- }
391
- },
392
- data () {
393
- return {
394
- showCharge: false, // 收费明细
395
- showInvalid: false, // 作废
396
- showPrint: false, // 打印
397
- model: {
398
- data: null
399
- }, // 记录
400
- useraddresList: [], // 地址列表
401
- charge: {
402
-
403
- }
404
- }
405
- },
406
- ready () {
407
- this.search()
408
- },
409
- methods: {
410
- async payerNumberChange () {
411
- if (isEmpty(this.charge.f_payer_number)) {
412
- return
413
- }
414
- let http = new HttpResetClass()
415
- let data = {
416
- tablename: 't_charge_record',
417
- condition: `f_payer_number = '${this.charge.f_payer_number}'`
418
- }
419
- let res = await http.load('POST', 'rs/sql/singleTable', {data:data}, {
420
- resolveMsg: null,
421
- rejectMsg: '流水号查询失败!!!'
422
- })
423
- if (res.data.length > 0) {
424
- this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
425
- return
426
- }
427
- },
428
- print () {
429
- this.$refs.print.$refs.print.PrintTable()
430
- },
431
- showPrintModal(row) {
432
- this.charge = row
433
- this.showPrint = true
434
- },
435
- selectAddres () {
436
- if (this.charge.useraddres) {
437
- this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
438
- this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
439
- } else {
440
- this.charge.f_cumulative_payment_money = 0
441
- this.charge.f_outstanding_amount = this.selectdata.f_price
442
- }
443
- },
444
- async invalidApplyCharge() {
445
-
446
- let http = new HttpResetClass()
447
- let data = {
448
- apply: this.selectdata,
449
- user: this.$login.f,
450
- charge: this.charge
451
- }
452
- let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
453
- resolveMsg: null,
454
- rejectMsg: '作废失败!!!'
455
- })
456
- this.selectdata = res.data
457
-
458
- this.$dispatch('breakControl', this.selectdata)
459
- },
460
-
461
- // 打开作废收费
462
- showInvalidModal(row) {
463
- this.charge = row
464
- this.showInvalid = true
465
- },
466
- // 新增收费
467
- async saveCharge() {
468
- let http = new HttpResetClass()
469
- let data = {
470
- apply: this.selectdata,
471
- user: this.$login.f,
472
- charge: this.charge
473
- }
474
-
475
- let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
476
- resolveMsg: null,
477
- rejectMsg: '缴费失败!!!'
478
- })
479
- this.selectdata = res.data
480
-
481
- this.$dispatch('breakControl', this.selectdata)
482
- },
483
- moneyChange () {
484
- if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
485
- this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
486
- this.charge.f_charge_money = null
487
- return
488
- }
489
- if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.f_charge_money) > Number(this.charge.f_outstanding_amount)) {
490
- this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
491
- this.charge.f_charge_money = null
492
- return
493
- }
494
- if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) {
495
- this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
496
- this.charge.f_charge_money = null
497
- return
498
- }
499
- },
500
- // 金额转大写
501
- handleInput(e) {
502
- // 通过正则过滤小数点后两位
503
- e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
504
- this.charge.f_amount_words = this.smalltoBIG(e.target.value)
505
- },
506
- // 金额转大写
507
- smalltoBIG(n) {
508
- let fraction = ['角', '分'];
509
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
510
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
511
- let head = n < 0 ? '欠' : '';
512
- n = Math.abs(n);
513
-
514
- let s = '';
515
-
516
- for (var i = 0; i < fraction.length; i++) {
517
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
518
- }
519
- s = s || '整';
520
- n = Math.floor(n);
521
-
522
- for (var i = 0; i < unit[0].length && n > 0; i++) {
523
- let p = '';
524
- for (var j = 0; j < unit[1].length && n > 0; j++) {
525
- p = digit[n % 10] + unit[1][j] + p;
526
- n = Math.floor(n / 10);
527
- }
528
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
529
- }
530
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
531
- },
532
- async changePaymentMethod () {
533
- if (this.charge.f_payment_method === '银行转账' && this.selectdata.f_apply_type === '团购报建') {
534
- let http = new HttpResetClass()
535
- let data = {
536
- tablename: 't_dev_info',
537
- condition: `f_orgid = '${this.$login.f.orgid}' and id = '${this.selectdata.f_dev_id}'`
538
- }
539
- let res = await http.load('POST', 'rs/sql/singleTable', {data:data}, {
540
- resolveMsg: null,
541
- rejectMsg: '开发商档案查询失败!!!'
542
- })
543
-
544
- this.charge.f_payer_name = res.data[0].f_dev_name
545
- this.charge.f_payer_account = res.data[0].f_bank_account
546
- }
547
- },
548
- async getUserAddress() {
549
- let http = new HttpResetClass()
550
- let data = {}
551
- let url = null
552
- if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建') {
553
- data = {
554
- condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
555
- }
556
- url = 'rs/sql/applyGetUserinfos'
557
- } else {
558
- data = {
559
- condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
560
- f_process_id: this.selectdata.f_process_id
561
- }
562
- url = 'rs/sql/getAddresAndCumulativePayment'
563
- }
564
- let res = await http.load('POST', url, {data:data}, {
565
- resolveMsg: null,
566
- rejectMsg: '用户获取失败!!!'
567
- })
568
-
569
- if (res.data.length <= 0) {
570
- this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
571
- }
572
-
573
- this.useraddresList = res.data.map(item => {
574
- return {
575
- // 有用户姓名地址后拼接姓名
576
- label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
577
- value: item
578
- }
579
- })
580
-
581
- },
582
- async showChargeModal() {
583
- this.getUserAddress()
584
-
585
- if (this.selectdata.f_apply_type === '团购报建') {
586
- this.charge.f_dev_info_id = this.selectdata.f_dev_id
587
- }
588
-
589
- this.showCharge = true
590
- },
591
- async search () {
592
- let http = new HttpResetClass()
593
- let data = {
594
- // condition: `cr.f_charge_status != '退款'`,
595
- f_process_id: this.selectdata.f_process_id
596
- }
597
- let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
598
- resolveMsg: null,
599
- rejectMsg: '收费记录查询失败!!!'
600
- })
601
- this.model.data = res.data
602
- },
603
- // 关闭对话框
604
- closeModal() {
605
- this.showCharge = false
606
- this.showInvalid = false
607
- this.showPrint = false
608
- this.charge = {}
609
- this.search()
610
- }
611
- },
612
- events: {
613
- },
614
- computed: {
615
- paymentMethod() {
616
- return this.$appdata.getParam("付款方式")
617
- },
618
- paymentTerm() {
619
- return this.$appdata.getParam("收费项目")
620
- }
621
- },
622
- watch: {
623
- }
624
- }
625
- </script>
626
- <style scoped>
627
- .textNoLineBreak {
628
- white-space: nowrap;
629
- }
630
- .head-but{
631
- margin-left: 5px;
632
- height: 34px;
633
- /*background-color: #6aa6e2;*/
634
- border-radius: 4px;
635
- font-family: PingFang;
636
- color: #ffffff;
637
- }
638
- </style>
1
+ <template>
2
+ <div class="col-sm-12" style="margin: 20px 0px;">
3
+ <data-grid :model="model" v-ref:grid class="list_area table_sy" style="padding: 0px">
4
+ <template partial='head'>
5
+ <tr>
6
+ <th class="textNoLineBreak">序号</th>
7
+ <th class="textNoLineBreak" v-if="selectdata.f_apply_type !== '开发商集体报建'">地址</th>
8
+ <th class="textNoLineBreak">缴费编号</th>
9
+ <th class="textNoLineBreak">收费金额</th>
10
+ <th class="textNoLineBreak">金额大写</th>
11
+ <th class="textNoLineBreak">收费项目</th>
12
+ <th class="textNoLineBreak">付款方式</th>
13
+ <th class="textNoLineBreak">付款方名称</th>
14
+ <th class="textNoLineBreak">付款方账号</th>
15
+ <th class="textNoLineBreak">付款流水号</th>
16
+ <th class="textNoLineBreak">收费人员</th>
17
+ <th class="textNoLineBreak">收费日期</th>
18
+ <th class="textNoLineBreak">备注</th>
19
+ <th class="textNoLineBreak">缴费状态</th>
20
+ <th class="textNoLineBreak">作废人员</th>
21
+ <th class="textNoLineBreak">作废时间</th>
22
+ <th class="textNoLineBreak">作废原因</th>
23
+ <th class="textNoLineBreak">
24
+ <button
25
+ type="button"
26
+ class="btn btn-info head-but"
27
+ @click="$parent.$parent.showChargeModal()"
28
+ :disabled="$parent.$parent.mark === 1 || ($parent.$parent.selectdata.f_cumulative_payment_money >= $parent.$parent.selectdata.f_due_money || $parent.$parent.selectdata.f_surplus_money === 0)"
29
+ >新增收费</button>
30
+ </th>
31
+ </tr>
32
+ </template>
33
+ <template partial='body'>
34
+ <tr>
35
+ <td style="text-align: center;">
36
+ <nobr>{{$index+1}}</nobr>
37
+ </td>
38
+ <td style="text-align: center;" v-if="selectdata.f_apply_type !== '开发商集体报建'">
39
+ <nobr>{{row.f_useraddres}}</nobr>
40
+ </td>
41
+ <td style="text-align: center;">
42
+ <nobr>{{row.f_charge_number}}</nobr>
43
+ </td>
44
+ <td style="text-align: center;">
45
+ <nobr>{{row.f_charge_money}}</nobr>
46
+ </td>
47
+ <td style="text-align: center;">
48
+ <nobr>{{row.f_amount_words}}</nobr>
49
+ </td>
50
+ <td style="text-align: center;">
51
+ <nobr>{{row.f_payment_term}}</nobr>
52
+ </td>
53
+ <td style="text-align: center;">
54
+ <nobr>{{row.f_payment_method}}</nobr>
55
+ </td>
56
+ <td style="text-align: center;">
57
+ <nobr>{{row.f_payer_name}}</nobr>
58
+ </td>
59
+ <td style="text-align: center;">
60
+ <nobr>{{row.f_payer_account}}</nobr>
61
+ </td>
62
+ <td style="text-align: center;">
63
+ <nobr>{{row.f_payer_number}}</nobr>
64
+ </td>
65
+ <td style="text-align: center;">
66
+ <nobr>{{row.f_charge_collectors}}</nobr>
67
+ </td>
68
+ <td style="text-align: center;">
69
+ <nobr>{{row.f_charge_date}}</nobr>
70
+ </td>
71
+ <td style="text-align: center;">
72
+ <nobr>{{row.f_charge_remarks}}</nobr>
73
+ </td>
74
+ <td style="text-align: center;">
75
+ <nobr>{{row.f_charge_status}}</nobr>
76
+ </td>
77
+ <td style="text-align: center;">
78
+ <nobr>{{row.f_void_staff}}</nobr>
79
+ </td>
80
+ <td style="text-align: center;">
81
+ <nobr>{{row.f_void_date}}</nobr>
82
+ </td>
83
+ <td style="text-align: center;">
84
+ <nobr>{{row.f_void_remarks}}</nobr>
85
+ </td>
86
+ <td style="text-align: center;">
87
+ <nobr v-if="row.f_charge_status !== '退款'">
88
+ <button
89
+ type="button"
90
+ name="button"
91
+ class="btn btn-link"
92
+ :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
93
+ @click="$parent.$parent.showInvalidModal(row)"
94
+ >作废</button>
95
+
96
+ <button
97
+ type="button"
98
+ name="button"
99
+ class="btn btn-link"
100
+ @click="$parent.$parent.showPrintModal(row)"
101
+ >打印预览</button>
102
+ </nobr>
103
+ </td>
104
+ </tr>
105
+ </template>
106
+ </data-grid>
107
+
108
+ <validator name="v">
109
+ <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
110
+ <header slot="modal-header" class="modal-header">
111
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
112
+ <h4 class="modal-title">收费明细</h4>
113
+ </header>
114
+ <article slot="modal-body" class="modal-body clearfix">
115
+ <div class="form-group col-sm-12" v-if="false" :class="[$v.useraddres.required ? 'has-error' : '']">
116
+ <label class="col-sm-2 control-label">缴费地址:</label>
117
+ <div class="col-sm-10">
118
+ <input type="text" v-show="false" v-model="charge.useraddres.id" v-validate:useraddres = "['required']" >
119
+ <input-select width="100%" class="select select_list" placeholder='请选择'
120
+ v-model="charge.useraddres"
121
+ :value.sync="charge.useraddres"
122
+ :options='useraddresList'
123
+ :value-single="true"
124
+ @change="selectAddres()"
125
+ close-on-select ></input-select>
126
+ </div>
127
+ </div>
128
+ <div class="form-group col-sm-12" :class="[$v.f_payment_term.required ? 'has-error' : '']">
129
+ <label class="col-sm-2 control-label">收费项目:</label>
130
+ <div class="col-sm-10">
131
+ <input type="text" v-show="false" v-model="charge.f_payment_term" v-validate:f_payment_term = "['required']" >
132
+ <input width="100%" class="form-control input_view" placeholder='请输入'
133
+ v-model="charge.f_payment_term"
134
+ :value.sync="charge.f_payment_term"
135
+ :value-single="true"
136
+ close-on-select ></input>
137
+ </div>
138
+ </div>
139
+ <div class="form-group col-sm-12" :class="[$v.f_charge_money.required ? 'has-error' : '']">
140
+ <label class="col-sm-2 control-label">收费金额:</label>
141
+ <div class="col-sm-10">
142
+ <input type="number"
143
+ class="form-control input_view"
144
+ style="width: 100%"
145
+ placeholder="0.00"
146
+ @keyup="handleInput"
147
+ @change="moneyChange"
148
+ v-validate:f_charge_money = "['required']"
149
+ v-model="charge.f_charge_money" />
150
+ </div>
151
+ </div>
152
+ <div class="form-group col-sm-12" :class="[$v.f_payment_method.required ? 'has-error' : '']">
153
+ <label class="col-sm-2 control-label">付款方式:</label>
154
+ <div class="col-sm-10">
155
+ <input type="text" v-show="false" v-model="charge.f_payment_method" v-validate:f_payment_method = "['required']" >
156
+ <input-select
157
+ placeholder='请选择' width="100%"
158
+ v-model="charge.f_payment_method"
159
+ :value.sync="charge.f_payment_method"
160
+ :options='paymentMethod'
161
+ class="select select_list"
162
+ :value-single="true"
163
+ @change="changePaymentMethod()"
164
+ close-on-select ></input-select>
165
+ </div>
166
+ </div>
167
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_name.required ? 'has-error' : '']">
168
+ <label class="col-sm-2 control-label">付款方名称:</label>
169
+ <div class="col-sm-10">
170
+ <input type="text"
171
+ class="form-control input_view"
172
+ style="width: 100%"
173
+ v-validate:f_payer_name = "['required']"
174
+ v-model="charge.f_payer_name" value="" />
175
+ </div>
176
+ </div>
177
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_account.required ? 'has-error' : '']">
178
+ <label class="col-sm-2 control-label">付款方账号:</label>
179
+ <div class="col-sm-10">
180
+ <input type="text" style="width: 100%" class="form-control input_view"
181
+ v-validate:f_payer_account = "['required']"
182
+ v-model="charge.f_payer_account" value=""/>
183
+ </div>
184
+ </div>
185
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_number.required ? 'has-error' : '']">
186
+ <label class="col-sm-2 control-label">付款流水号:</label>
187
+ <div class="col-sm-10">
188
+ <input type="text"
189
+ class="form-control input_view"
190
+ style="width: 100%" @change="payerNumberChange()"
191
+ v-validate:f_payer_number = "['required']"
192
+ v-model="charge.f_payer_number" value="" />
193
+ </div>
194
+ </div>
195
+ <div class="form-group col-sm-12">
196
+ <label class="col-sm-2 control-label">金额大写:</label>
197
+ <div class="col-sm-10">
198
+ <input type="text"
199
+ class="form-control input_view"
200
+ style="width: 100%"
201
+ :value="smalltoBIG(0)"
202
+ readonly
203
+ v-model.sync="charge.f_amount_words" />
204
+ </div>
205
+ </div>
206
+ <div class="form-group col-sm-12"
207
+ v-if="selectdata.f_apply_type === '散户集体报建'"
208
+ >
209
+ <label class="col-sm-2 control-label">单价(户):</label>
210
+ <div class="col-sm-10">
211
+ <input type="text"
212
+ class="form-control input_view"
213
+ style="width: 100%"
214
+ readonly
215
+ v-model="selectdata.f_price" />
216
+ </div>
217
+ </div>
218
+ <div class="form-group col-sm-12"
219
+ v-if="selectdata.f_apply_type === '散户集体报建'"
220
+ >
221
+ <label class="col-sm-2 control-label">累计缴费金额:</label>
222
+ <div class="col-sm-10">
223
+ <input type="text"
224
+ class="form-control input_view"
225
+ style="width: 100%"
226
+ readonly
227
+ v-model="charge.f_cumulative_payment_money"
228
+ :value="charge.f_cumulative_payment_money || 0" />
229
+ </div>
230
+ </div>
231
+ <div class="form-group col-sm-12"
232
+ v-if="selectdata.f_apply_type === '散户集体报建'"
233
+ >
234
+ <label class="col-sm-2 control-label">未结金额:</label>
235
+ <div class="col-sm-10">
236
+ <input type="text"
237
+ class="form-control input_view"
238
+ style="width: 100%"
239
+ readonly
240
+ v-model="charge.f_outstanding_amount"
241
+ :value="charge.f_outstanding_amount || 0" />
242
+ </div>
243
+ </div>
244
+ <div class="form-group col-sm-12">
245
+ <label class="col-sm-2 control-label">应交总金额:</label>
246
+ <div class="col-sm-10">
247
+ <input type="text"
248
+ class="form-control input_view"
249
+ style="width: 100%"
250
+ readonly
251
+ v-model="selectdata.f_due_money" />
252
+ </div>
253
+ </div>
254
+ <div class="form-group col-sm-12">
255
+ <label class="col-sm-2 control-label">累计缴费总金额:</label>
256
+ <div class="col-sm-10">
257
+ <input type="text"
258
+ class="form-control input_view"
259
+ style="width: 100%"
260
+ readonly
261
+ v-model="selectdata.f_cumulative_payment_money" />
262
+ </div>
263
+ </div>
264
+ <div class="form-group col-sm-12">
265
+ <label class="col-sm-2 control-label">未结总金额:</label>
266
+ <div class="col-sm-10">
267
+ <input type="text"
268
+ class="form-control input_view"
269
+ style="width: 100%"
270
+ readonly
271
+ v-model="selectdata.f_surplus_money" />
272
+ </div>
273
+ </div>
274
+ <div class="form-group col-sm-12">
275
+ <label class="col-sm-2 control-label">备注:</label>
276
+ <div class="col-sm-10">
277
+ <input type="text"
278
+ class="form-control input_view"
279
+ style="width: 100%"
280
+ v-model="charge.f_charge_remarks" />
281
+ </div>
282
+ </div>
283
+ </article>
284
+ <footer slot="modal-footer" class="modal-footer">
285
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
286
+ </footer>
287
+ </modal>
288
+ </validator>
289
+
290
+ <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :large="true" :backdrop="false" title="作废收费">
291
+ <header slot="modal-header" class="modal-header">
292
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
293
+ <h4 class="modal-title">作废收费</h4>
294
+ </header>
295
+ <article slot="modal-body" class="modal-body clearfix">
296
+ <div class="form-group col-sm-12" v-if="false">
297
+ <label class="col-sm-2 control-label">缴费地址:</label>
298
+ <div class="col-sm-10">
299
+ <input type="text"
300
+ class="form-control input_view"
301
+ style="width: 100%"
302
+ readonly
303
+ v-model="charge.f_useraddres" />
304
+ </div>
305
+ </div>
306
+ <div class="form-group col-sm-12">
307
+ <label class="col-sm-2 control-label">收费金额:</label>
308
+ <div class="col-sm-10">
309
+ <input type="text"
310
+ class="form-control input_view"
311
+ style="width: 100%"
312
+ readonly
313
+ v-model="charge.f_charge_money" />
314
+ </div>
315
+ </div>
316
+ <div class="form-group col-sm-12">
317
+ <label class="col-sm-2 control-label">付款方式:</label>
318
+ <div class="col-sm-10">
319
+ <input type="text"
320
+ class="form-control input_view"
321
+ style="width: 100%"
322
+ readonly
323
+ v-model="charge.f_payment_method" />
324
+ </div>
325
+ </div>
326
+ <div class="form-group col-sm-12">
327
+ <label class="col-sm-2 control-label">金额大写:</label>
328
+ <div class="col-sm-10">
329
+ <input type="text"
330
+ class="form-control input_view"
331
+ style="width: 100%"
332
+ readonly
333
+ v-model="charge.f_amount_words" />
334
+ </div>
335
+ </div>
336
+ <div class="form-group col-sm-12">
337
+ <label class="col-sm-2 control-label">收费人员:</label>
338
+ <div class="col-sm-10">
339
+ <input type="text"
340
+ class="form-control input_view"
341
+ style="width: 100%"
342
+ readonly
343
+ v-model="charge.f_charge_collectors" />
344
+ </div>
345
+ </div>
346
+ <div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
347
+ <label class="col-sm-2 control-label">作废原因:</label>
348
+ <div class="col-sm-10">
349
+ <input type="text"
350
+ class="form-control input_view"
351
+ style="width: 100%"
352
+ v-model="charge.f_void_remarks" />
353
+ </div>
354
+ </div>
355
+ </article>
356
+ <footer slot="modal-footer" class="modal-footer">
357
+ <button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
358
+ </footer>
359
+ </modal>
360
+
361
+ <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
362
+ <header slot="modal-header" class="modal-header">
363
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
364
+ <h4 class="modal-title">打印预览</h4>
365
+ </header>
366
+ <article slot="modal-body" class="modal-body clearfix">
367
+ <apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
368
+ </article>
369
+ <footer slot="modal-footer" class="modal-footer">
370
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
371
+ </footer>
372
+ </modal>
373
+ </div>
374
+ </template>
375
+ <script>
376
+ import {getNowDate,isEmpty} from '../../../Util'
377
+ import {PagedList} from 'vue-client'
378
+ import {HttpResetClass} from 'vue-client'
379
+ import Vue from 'vue'
380
+
381
+ export default {
382
+ title: '收费管理',
383
+ props: {
384
+ selectdata: {
385
+ type: Object
386
+ },
387
+ mark: {
388
+ type: Number,
389
+ default: 0
390
+ }
391
+ },
392
+ data () {
393
+ return {
394
+ showCharge: false, // 收费明细
395
+ showInvalid: false, // 作废
396
+ showPrint: false, // 打印
397
+ model: {
398
+ data: null
399
+ }, // 记录
400
+ useraddresList: [], // 地址列表
401
+ charge: {
402
+
403
+ }
404
+ }
405
+ },
406
+ ready () {
407
+ this.search()
408
+ },
409
+ methods: {
410
+ async payerNumberChange () {
411
+ if (isEmpty(this.charge.f_payer_number)) {
412
+ return
413
+ }
414
+ let http = new HttpResetClass()
415
+ let data = {
416
+ tablename: 't_charge_record',
417
+ condition: `f_payer_number = '${this.charge.f_payer_number}'`
418
+ }
419
+ let res = await http.load('POST', 'rs/sql/singleTable', {data:data}, {
420
+ resolveMsg: null,
421
+ rejectMsg: '流水号查询失败!!!'
422
+ })
423
+ if (res.data.length > 0) {
424
+ this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
425
+ return
426
+ }
427
+ },
428
+ print () {
429
+ this.$refs.print.$refs.print.PrintTable()
430
+ },
431
+ showPrintModal(row) {
432
+ this.charge = row
433
+ this.showPrint = true
434
+ },
435
+ selectAddres () {
436
+ if (this.charge.useraddres) {
437
+ this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
438
+ this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
439
+ } else {
440
+ this.charge.f_cumulative_payment_money = 0
441
+ this.charge.f_outstanding_amount = this.selectdata.f_price
442
+ }
443
+ },
444
+ async invalidApplyCharge() {
445
+
446
+ let http = new HttpResetClass()
447
+ let data = {
448
+ apply: this.selectdata,
449
+ user: this.$login.f,
450
+ charge: this.charge
451
+ }
452
+ let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
453
+ resolveMsg: null,
454
+ rejectMsg: '作废失败!!!'
455
+ })
456
+ this.selectdata = res.data
457
+
458
+ this.$dispatch('breakControl', this.selectdata)
459
+ },
460
+
461
+ // 打开作废收费
462
+ showInvalidModal(row) {
463
+ this.charge = row
464
+ this.showInvalid = true
465
+ },
466
+ // 新增收费
467
+ async saveCharge() {
468
+ let http = new HttpResetClass()
469
+ let data = {
470
+ apply: this.selectdata,
471
+ user: this.$login.f,
472
+ charge: this.charge
473
+ }
474
+
475
+ let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
476
+ resolveMsg: null,
477
+ rejectMsg: '缴费失败!!!'
478
+ })
479
+ this.selectdata = res.data
480
+
481
+ this.$dispatch('breakControl', this.selectdata)
482
+ },
483
+ moneyChange () {
484
+ if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
485
+ this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
486
+ this.charge.f_charge_money = null
487
+ return
488
+ }
489
+ if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.f_charge_money) > Number(this.charge.f_outstanding_amount)) {
490
+ this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
491
+ this.charge.f_charge_money = null
492
+ return
493
+ }
494
+ if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) {
495
+ this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
496
+ this.charge.f_charge_money = null
497
+ return
498
+ }
499
+ },
500
+ // 金额转大写
501
+ handleInput(e) {
502
+ // 通过正则过滤小数点后两位
503
+ e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
504
+ this.charge.f_amount_words = this.smalltoBIG(e.target.value)
505
+ },
506
+ // 金额转大写
507
+ smalltoBIG(n) {
508
+ let fraction = ['角', '分'];
509
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
510
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
511
+ let head = n < 0 ? '欠' : '';
512
+ n = Math.abs(n);
513
+
514
+ let s = '';
515
+
516
+ for (var i = 0; i < fraction.length; i++) {
517
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
518
+ }
519
+ s = s || '整';
520
+ n = Math.floor(n);
521
+
522
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
523
+ let p = '';
524
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
525
+ p = digit[n % 10] + unit[1][j] + p;
526
+ n = Math.floor(n / 10);
527
+ }
528
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
529
+ }
530
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
531
+ },
532
+ async changePaymentMethod () {
533
+ if (this.charge.f_payment_method === '银行转账' && this.selectdata.f_apply_type === '团购报建') {
534
+ let http = new HttpResetClass()
535
+ let data = {
536
+ tablename: 't_dev_info',
537
+ condition: `f_orgid = '${this.$login.f.orgid}' and id = '${this.selectdata.f_dev_id}'`
538
+ }
539
+ let res = await http.load('POST', 'rs/sql/singleTable', {data:data}, {
540
+ resolveMsg: null,
541
+ rejectMsg: '开发商档案查询失败!!!'
542
+ })
543
+
544
+ this.charge.f_payer_name = res.data[0].f_dev_name
545
+ this.charge.f_payer_account = res.data[0].f_bank_account
546
+ }
547
+ },
548
+ async getUserAddress() {
549
+ let http = new HttpResetClass()
550
+ let data = {}
551
+ let url = null
552
+ if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建') {
553
+ data = {
554
+ condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
555
+ }
556
+ url = 'rs/sql/applyGetUserinfos'
557
+ } else {
558
+ data = {
559
+ condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
560
+ f_process_id: this.selectdata.f_process_id
561
+ }
562
+ url = 'rs/sql/getAddresAndCumulativePayment'
563
+ }
564
+ let res = await http.load('POST', url, {data:data}, {
565
+ resolveMsg: null,
566
+ rejectMsg: '用户获取失败!!!'
567
+ })
568
+
569
+ if (res.data.length <= 0) {
570
+ this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
571
+ }
572
+
573
+ this.useraddresList = res.data.map(item => {
574
+ return {
575
+ // 有用户姓名地址后拼接姓名
576
+ label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
577
+ value: item
578
+ }
579
+ })
580
+
581
+ },
582
+ async showChargeModal() {
583
+ this.getUserAddress()
584
+
585
+ if (this.selectdata.f_apply_type === '团购报建') {
586
+ this.charge.f_dev_info_id = this.selectdata.f_dev_id
587
+ }
588
+
589
+ this.showCharge = true
590
+ },
591
+ async search () {
592
+ let http = new HttpResetClass()
593
+ let data = {
594
+ // condition: `cr.f_charge_status != '退款'`,
595
+ f_process_id: this.selectdata.f_process_id
596
+ }
597
+ let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
598
+ resolveMsg: null,
599
+ rejectMsg: '收费记录查询失败!!!'
600
+ })
601
+ this.model.data = res.data
602
+ },
603
+ // 关闭对话框
604
+ closeModal() {
605
+ this.showCharge = false
606
+ this.showInvalid = false
607
+ this.showPrint = false
608
+ this.charge = {}
609
+ this.search()
610
+ }
611
+ },
612
+ events: {
613
+ },
614
+ computed: {
615
+ paymentMethod() {
616
+ return this.$appdata.getParam("付款方式")
617
+ },
618
+ paymentTerm() {
619
+ return this.$appdata.getParam("收费项目")
620
+ }
621
+ },
622
+ watch: {
623
+ }
624
+ }
625
+ </script>
626
+ <style scoped>
627
+ .textNoLineBreak {
628
+ white-space: nowrap;
629
+ }
630
+ .head-but{
631
+ margin-left: 5px;
632
+ height: 34px;
633
+ /*background-color: #6aa6e2;*/
634
+ border-radius: 4px;
635
+ font-family: PingFang;
636
+ color: #ffffff;
637
+ }
638
+ </style>