apply-clients 3.5.1 → 3.5.2

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 (44) hide show
  1. package/build/dev-server.js +142 -133
  2. package/package.json +118 -118
  3. package/src/App.vue +26 -21
  4. package/src/applyAndroid.js +58 -58
  5. package/src/components/android/AppSign.vue +152 -152
  6. package/src/components/android/AppTakePic.vue +181 -181
  7. package/src/components/android/Process/AppChargeList.vue +224 -224
  8. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  9. package/src/components/product/Install/ContractCharge.vue +210 -210
  10. package/src/filiale/fugou/android/AppChargeManagement.vue +625 -625
  11. package/src/filiale/hongda/pc/FunctionServiceControl.vue +526 -525
  12. package/src/filiale/qianneng/android/AppExplorationUser.vue +441 -441
  13. package/src/filiale/qianneng/android/AppServiceControl.vue +1608 -1608
  14. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +685 -685
  15. package/src/filiale/qianneng/pc/ExplorationSelect.vue +492 -492
  16. package/src/filiale/qianneng/pc/FunctionServiceControl.vue +521 -521
  17. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +392 -392
  18. package/src/filiale/qianneng/pc/InstallationDetails.vue +561 -561
  19. package/src/filiale/qianneng/pc/ServiceControl.vue +1351 -1340
  20. package/src/filiale/qianneng/pc/SupervisoryList.vue +344 -344
  21. package/src/filiale/qianneng/pc/SupervisoryServiceControl.vue +871 -871
  22. package/src/filiale/qianneng/pc/chargeManagement.vue +656 -656
  23. package/src/filiale/qianneng/pc/printactivatecard.vue +295 -295
  24. package/src/filiale/qianneng/pc/supplementalAgreement.vue +344 -344
  25. package/src/filiale/yangchunboneng/android/AppAddMaterialScience.vue +390 -390
  26. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +120 -120
  27. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +552 -552
  28. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +507 -507
  29. package/src/filiale/yangchunboneng/android/AppInstallationDetails.vue +492 -492
  30. package/src/filiale/yangchunboneng/android/AppOtherChargeManagement.vue +116 -116
  31. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1552 -1552
  32. package/src/filiale/yangchunboneng/android/AppTakePic.vue +181 -181
  33. package/src/filiale/yangchunboneng/android/chargesList.vue +170 -170
  34. package/src/filiale/yangchunboneng/android.js +16 -16
  35. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +496 -496
  36. package/src/filiale/yangchunboneng/pc/InstallationDetails.vue +609 -609
  37. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1782 -1782
  38. package/src/filiale/yangchunboneng/pc/ServiceView.vue +1005 -1005
  39. package/src/filiale/yangchunboneng/pc/addMaterialScience.vue +374 -374
  40. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +960 -960
  41. package/src/filiale/yangchunboneng/pc/devicesManagement.vue +511 -511
  42. package/src/filiale/yangchunboneng/pc/otherchargeManagement.vue +214 -214
  43. package/src/filiale/yangchunboneng/pc.js +17 -17
  44. package/src/main.js +23 -23
@@ -1,960 +1,960 @@
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">
7
- <button
8
- type="button"
9
- class="btn btn-info head-but"
10
- @click="$parent.$parent.showChargeModal()"
11
- v-show="$parent.$parent.selectdata.f_apply_type !== '启封通气'"
12
- >新增收费</button>
13
- </th>
14
- <th class="textNoLineBreak">序号</th>
15
- <th class="textNoLineBreak" v-if="selectdata.f_apply_type !== '开发商集体报建'">地址</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">付款流水号</th>
24
- <th class="textNoLineBreak">收费人员</th>
25
- <th class="textNoLineBreak">收费日期</th>
26
- <th class="textNoLineBreak">实际收费日期</th>
27
- <th class="textNoLineBreak">备注</th>
28
- <th class="textNoLineBreak">缴费状态</th>
29
- <th class="textNoLineBreak">作废人员</th>
30
- <th class="textNoLineBreak">作废时间</th>
31
- <th class="textNoLineBreak">作废原因</th>
32
- <th class="textNoLineBreak">确认人</th>
33
- <th class="textNoLineBreak">确认时间</th>
34
- <th class="textNoLineBreak">审核人</th>
35
- <th class="textNoLineBreak">审核时间</th>
36
- </tr>
37
- </template>
38
- <template partial='body'>
39
- <tr>
40
- <td style="text-align: center;">
41
- <nobr v-if="row.f_charge_status !== '退款'&& row.f_charge_status !== '作废' && row.f_confirm_person==null">
42
- <button
43
- type="button"
44
- name="button"
45
- class="btn btn-link"
46
- :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
47
- @click="$parent.$parent.showConfirmModal(row,'确认收款')"
48
- >确认收款</button>
49
- </nobr>
50
- <!-- <nobr v-if="row.f_charge_status !== '退款'&& row.f_charge_status !== '作废' && row.f_confirm_person!=null&& row.f_auditor_person==null">
51
- <button
52
- type="button"
53
- name="button"
54
- class="btn btn-link"
55
- :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
56
- @click="$parent.$parent.showConfirmModal(row,'确认审核')"
57
- >确认审核</button>
58
- </nobr>-->
59
- <nobr v-if="row.f_charge_status !== '退款'">
60
- <button
61
- type="button"
62
- name="button"
63
- class="btn btn-link"
64
- :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
65
- @click="$parent.$parent.showInvalidModal(row)"
66
- >作废</button>
67
-
68
- <button
69
- type="button"
70
- name="button"
71
- class="btn btn-link"
72
- @click="$parent.$parent.showPrintModal(row)"
73
- >打印预览</button>
74
- </nobr>
75
- </td>
76
- <td style="text-align: center;">
77
- <nobr>{{$index+1}}</nobr>
78
- </td>
79
- <td style="text-align: center;" v-if="selectdata.f_apply_type !== '开发商集体报建'">
80
- <nobr>{{row.f_useraddres}}</nobr>
81
- </td>
82
- <td style="text-align: center;">
83
- <nobr>{{row.f_charge_number}}</nobr>
84
- </td>
85
- <td style="text-align: center;">
86
- <nobr>{{row.f_charge_money}}</nobr>
87
- </td>
88
- <td style="text-align: center;">
89
- <nobr>{{row.f_amount_words}}</nobr>
90
- </td>
91
- <td style="text-align: center;">
92
- <nobr>{{row.f_payment_term}}</nobr>
93
- </td>
94
- <td style="text-align: center;">
95
- <nobr>{{row.f_payment_method}}</nobr>
96
- </td>
97
- <td style="text-align: center;">
98
- <nobr>{{row.f_payer_name}}</nobr>
99
- </td>
100
- <td style="text-align: center;">
101
- <nobr>{{row.f_payer_account}}</nobr>
102
- </td>
103
- <td style="text-align: center;">
104
- <nobr>{{row.f_payer_number}}</nobr>
105
- </td>
106
- <td style="text-align: center;">
107
- <nobr>{{row.f_charge_collectors}}</nobr>
108
- </td>
109
- <td style="text-align: center;">
110
- <nobr>{{row.f_charge_date}}</nobr>
111
- </td>
112
- <td style="text-align: center;">
113
- <nobr>{{row.f_actual_date}}</nobr>
114
- </td>
115
- <td style="text-align: center;">
116
- <nobr>{{row.f_charge_remarks}}</nobr>
117
- </td>
118
- <td style="text-align: center;">
119
- <nobr>{{row.f_charge_status}}</nobr>
120
- </td>
121
- <td style="text-align: center;">
122
- <nobr>{{row.f_void_staff}}</nobr>
123
- </td>
124
- <td style="text-align: center;">
125
- <nobr>{{row.f_void_date}}</nobr>
126
- </td>
127
- <td style="text-align: center;">
128
- <nobr>{{row.f_void_remarks}}</nobr>
129
- </td>
130
- <td style="text-align: center;">
131
- <nobr>{{row.f_confirm_person}}</nobr>
132
- </td>
133
- <td style="text-align: center;">
134
- <nobr>{{row.f_confirm_date}}</nobr>
135
- </td>
136
- <td style="text-align: center;">
137
- <nobr>{{row.f_auditor_person}}</nobr>
138
- </td>
139
- <td style="text-align: center;">
140
- <nobr>{{row.f_auditor_date}}</nobr>
141
- </td>
142
- </tr>
143
- </template>
144
- </data-grid>
145
-
146
- <validator name="v">
147
- <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
148
- <header slot="modal-header" class="modal-header">
149
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
150
- <h4 class="modal-title">收费明细</h4>
151
- </header>
152
- <article slot="modal-body" class="modal-body clearfix">
153
- <div class="form-group col-sm-12" v-if="false" :class="[$v.useraddres.required ? 'has-error' : '']">
154
- <label class="col-sm-2 control-label">缴费地址:</label>
155
- <div class="col-sm-10">
156
- <input type="text" v-show="false" v-model="charge.useraddres.id" v-validate:useraddres = "['required']" >
157
- <input-select width="100%" class="select select_list" placeholder='请选择'
158
- v-model="charge.useraddres"
159
- :value.sync="charge.useraddres"
160
- :options='useraddresList'
161
- :value-single="true"
162
- @change="selectAddres()"
163
- close-on-select ></input-select>
164
- </div>
165
- </div>
166
- <div v-for="(i, item) in charge.charges" class="form-group col-sm-12 panel panel-info">
167
- <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
168
- <div class="col-sm-6 text-left">收费项目{{$index+1}}信息</div>
169
- <div class="col-sm-6 text-right"><button
170
- class="button_delete button_spacing"
171
- v-if="!item.f_userfiles_id"
172
- @click.prevent="deleteUserFile(i)"
173
- >删除</button></div>
174
- </div>
175
- <div class="form-group col-sm-12" :class="[$v.item.f_payment_term.required ? 'has-error' : '']">
176
- <label class="col-sm-2 control-label">收费项目:</label>
177
- <div class="col-sm-10">
178
- <input type="text" v-show="false" v-model="item.f_payment_term" v-validate:f_payment_term = "['required']" >
179
- <input-select width="100%" class="select select_list" placeholder='请选择'
180
- v-model="item.f_payment_term"
181
- :value.sync="item.f_payment_term"
182
- :options='paymentTerm'
183
- :value-single="true"
184
- close-on-select ></input-select>
185
- </div>
186
- </div>
187
- <div class="form-group col-sm-12" :class="[$v.item.f_charge_money.required ? 'has-error' : '']">
188
- <label class="col-sm-2 control-label">收费金额:</label>
189
- <div class="col-sm-10">
190
- <input type="text"
191
- class="form-control input_view"
192
- style="width: 100%"
193
- placeholder="0.00"
194
- @change="moneyChange(i)"
195
- v-validate:f_charge_money = "['required']"
196
- v-model="item.f_charge_money" />
197
- </div>
198
- </div>
199
- <div class="form-group col-sm-12" :class="[$v.item.f_payment_method.required ? 'has-error' : '']">
200
- <label class="col-sm-2 control-label">付款方式:</label>
201
- <div class="col-sm-10">
202
- <input type="text" v-show="false" v-model="item.f_payment_method" v-validate:f_payment_method = "['required']" >
203
- <input-select
204
- placeholder='请选择' width="100%"
205
- v-model="item.f_payment_method"
206
- :value.sync="item.f_payment_method"
207
- :options='paymentMethod'
208
- class="select select_list"
209
- :value-single="true"
210
- @change="changePaymentMethod()"
211
- close-on-select ></input-select>
212
- </div>
213
- </div>
214
- <div class="form-group col-sm-12">
215
- <label class="col-sm-2 control-label">金额大写:</label>
216
- <div class="col-sm-10">
217
- <input type="text"
218
- class="form-control input_view"
219
- style="width: 100%"
220
- :value="smalltoBIG(0)"
221
- readonly
222
- v-model.sync="item.f_amount_words" />
223
- </div>
224
- </div>
225
- <div class="form-group col-sm-12">
226
- <label class="col-sm-2 control-label">备注:</label>
227
- <div class="col-sm-10">
228
- <input type="text"
229
- class="form-control input_view"
230
- style="width: 100%"
231
- v-model="item.f_charge_remarks" />
232
- </div>
233
- </div>
234
- <div class="form-group col-sm-12">
235
- <label class="col-sm-2 control-label">实际收款时间:</label>
236
- <div class="col-sm-10">
237
- <datepicker id="startDate" placeholder="实际收款时间"
238
- style="width: 60%!important;"
239
- v-model="item.f_actual_date"
240
- :value.sync="item.f_actual_date"
241
- :format="'yyyy-MM-dd HH:mm:ss'"
242
- :show-reset-button="true"
243
- >
244
- </datepicker>
245
- </div>
246
- </div>
247
- </div>
248
- <div class="form-group col-sm-12">
249
- <label class="col-sm-2 control-label">应交总金额:</label>
250
- <div class="col-sm-10">
251
- <input type="text"
252
- class="form-control input_view"
253
- style="width: 100%"
254
- readonly
255
- v-model="selectdata.f_due_money" />
256
- </div>
257
- </div>
258
- <div class="form-group col-sm-12">
259
- <label class="col-sm-2 control-label">累计缴费总金额:</label>
260
- <div class="col-sm-10">
261
- <input type="text"
262
- class="form-control input_view"
263
- style="width: 100%"
264
- readonly
265
- v-model="selectdata.f_cumulative_payment_money" />
266
- </div>
267
- </div>
268
- <div class="form-group col-sm-12">
269
- <label class="col-sm-2 control-label">未结总金额:</label>
270
- <div class="col-sm-10">
271
- <input type="text"
272
- class="form-control input_view"
273
- style="width: 100%"
274
- readonly
275
- v-model="selectdata.f_surplus_money" />
276
- </div>
277
- </div>
278
- <div class="form-group col-sm-12">
279
- <label class="col-sm-2 control-label">收费环节:</label>
280
- <div class="col-sm-10">
281
- <input-select width="100%" class="select select_list" placeholder='请选择'
282
- v-model="charge.defname"
283
- :value.sync="charge.defname"
284
- :options='defnames'
285
- :value-single="true"
286
- close-on-select ></input-select>
287
- </div>
288
- </div>
289
-
290
- </article>
291
- <footer slot="modal-footer" class="modal-footer">
292
- <button type="button" class="btn btn-primary" @click="addcharges" >添加收费项目</button>
293
- <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
294
- </footer>
295
- </modal>
296
- </validator>
297
-
298
- <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :backdrop="false" title="作废收费">
299
- <header slot="modal-header" class="modal-header">
300
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
301
- <h4 class="modal-title">作废收费</h4>
302
- </header>
303
- <article slot="modal-body" class="modal-body clearfix">
304
- <div class="form-group col-sm-12" v-if="false">
305
- <label class="col-sm-2 control-label">缴费地址:</label>
306
- <div class="col-sm-10">
307
- <input type="text"
308
- class="form-control input_view"
309
- style="width: 100%"
310
- readonly
311
- v-model="charge.f_useraddres" />
312
- </div>
313
- </div>
314
- <div class="form-group col-sm-12">
315
- <label class="col-sm-2 control-label">收费金额:</label>
316
- <div class="col-sm-10">
317
- <input type="text"
318
- class="form-control input_view"
319
- style="width: 100%"
320
- readonly
321
- v-model="charge.f_charge_money" />
322
- </div>
323
- </div>
324
- <div class="form-group col-sm-12">
325
- <label class="col-sm-2 control-label">付款方式:</label>
326
- <div class="col-sm-10">
327
- <input type="text"
328
- class="form-control input_view"
329
- style="width: 100%"
330
- readonly
331
- v-model="charge.f_payment_method" />
332
- </div>
333
- </div>
334
- <div class="form-group col-sm-12">
335
- <label class="col-sm-2 control-label">金额大写:</label>
336
- <div class="col-sm-10">
337
- <input type="text"
338
- class="form-control input_view"
339
- style="width: 100%"
340
- readonly
341
- v-model="charge.f_amount_words" />
342
- </div>
343
- </div>
344
- <div class="form-group col-sm-12">
345
- <label class="col-sm-2 control-label">收费人员:</label>
346
- <div class="col-sm-10">
347
- <input type="text"
348
- class="form-control input_view"
349
- style="width: 100%"
350
- readonly
351
- v-model="charge.f_charge_collectors" />
352
- </div>
353
- </div>
354
- <div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
355
- <label class="col-sm-2 control-label">作废原因:</label>
356
- <div class="col-sm-10">
357
- <input type="text"
358
- class="form-control input_view"
359
- style="width: 100%"
360
- v-model="charge.f_void_remarks" />
361
- </div>
362
- </div>
363
- </article>
364
- <footer slot="modal-footer" class="modal-footer">
365
- <button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
366
- </footer>
367
- </modal>
368
- <modal v-if="showConfirm" :show.sync="showConfirm" v-ref:modal :backdrop="false" title="确认收款">
369
- <header slot="modal-header" class="modal-header">
370
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
371
- <h4 class="modal-title">确认收款</h4>
372
- </header>
373
- <article slot="modal-body" class="modal-body clearfix">
374
- <div class="form-group col-sm-12" v-if="false">
375
- <label class="col-sm-2 control-label">缴费地址:</label>
376
- <div class="col-sm-10">
377
- <input type="text"
378
- class="form-control input_view"
379
- style="width: 100%"
380
- readonly
381
- v-model="charge.f_useraddres" />
382
- </div>
383
- </div>
384
- <div class="form-group col-sm-12">
385
- <label class="col-sm-2 control-label">收费金额:</label>
386
- <div class="col-sm-10">
387
- <input type="text"
388
- class="form-control input_view"
389
- style="width: 100%"
390
- readonly
391
- v-model="charge.f_charge_money" />
392
- </div>
393
- </div>
394
- <div class="form-group col-sm-12">
395
- <label class="col-sm-2 control-label">付款方式:</label>
396
- <div class="col-sm-10">
397
- <input type="text"
398
- class="form-control input_view"
399
- style="width: 100%"
400
- readonly
401
- v-model="charge.f_payment_method" />
402
- </div>
403
- </div>
404
- <div class="form-group col-sm-12">
405
- <label class="col-sm-2 control-label">金额大写:</label>
406
- <div class="col-sm-10">
407
- <input type="text"
408
- class="form-control input_view"
409
- style="width: 100%"
410
- readonly
411
- v-model="charge.f_amount_words" />
412
- </div>
413
- </div>
414
- <div class="form-group col-sm-12">
415
- <label class="col-sm-2 control-label">收费人员:</label>
416
- <div class="col-sm-10">
417
- <input type="text"
418
- class="form-control input_view"
419
- style="width: 100%"
420
- readonly
421
- v-model="charge.f_charge_collectors" />
422
- </div>
423
- </div>
424
- <div class="form-group col-sm-12">
425
- <label class="col-sm-2 control-label">确认人:</label>
426
- <div class="col-sm-10">
427
- <input type="text"
428
- class="form-control input_view"
429
- style="width: 100%"
430
- v-model="charge.f_confirm_person" />
431
- </div>
432
- </div>
433
- <div class="form-group col-sm-12">
434
- <label class="col-sm-2 control-label">确认时间:</label>
435
- <div class="col-sm-10">
436
- <datepicker id="startDate" placeholder="确认时间"
437
- style="width: 60%!important;"
438
- v-model="charge.f_confirm_date"
439
- :value.sync="charge.f_confirm_date"
440
- :default="true"
441
- :format="'yyyy-MM-dd HH:mm:ss'"
442
- :show-reset-button="true"
443
- >
444
- </datepicker>
445
- </div>
446
- </div>
447
- <div class="form-group col-sm-12">
448
- <label class="col-sm-2 control-label">备注:</label>
449
- <div class="col-sm-10">
450
- <input type="text"
451
- class="form-control input_view"
452
- style="width: 100%"
453
- v-model="charge.f_charge_remarks" />
454
- </div>
455
- </div>
456
- </article>
457
- <footer slot="modal-footer" class="modal-footer">
458
- <button type="button" class="btn btn-primary" @click="ConfirmPayment()">确认收款</button>
459
- </footer>
460
- </modal>
461
- <!-- <modal v-if="showauditor" :show.sync="showauditor" v-ref:modal :backdrop="false" title="确认审核">
462
- <header slot="modal-header" class="modal-header">
463
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
464
- <h4 class="modal-title">确认审核</h4>
465
- </header>
466
- <article slot="modal-body" class="modal-body clearfix">
467
- <div class="form-group col-sm-12" v-if="false">
468
- <label class="col-sm-2 control-label">缴费地址:</label>
469
- <div class="col-sm-10">
470
- <input type="text"
471
- class="form-control input_view"
472
- style="width: 100%"
473
- readonly
474
- v-model="charge.f_useraddres" />
475
- </div>
476
- </div>
477
- <div class="form-group col-sm-12">
478
- <label class="col-sm-2 control-label">收费金额:</label>
479
- <div class="col-sm-10">
480
- <input type="text"
481
- class="form-control input_view"
482
- style="width: 100%"
483
- readonly
484
- v-model="charge.f_charge_money" />
485
- </div>
486
- </div>
487
- <div class="form-group col-sm-12">
488
- <label class="col-sm-2 control-label">付款方式:</label>
489
- <div class="col-sm-10">
490
- <input type="text"
491
- class="form-control input_view"
492
- style="width: 100%"
493
- readonly
494
- v-model="charge.f_payment_method" />
495
- </div>
496
- </div>
497
- <div class="form-group col-sm-12">
498
- <label class="col-sm-2 control-label">金额大写:</label>
499
- <div class="col-sm-10">
500
- <input type="text"
501
- class="form-control input_view"
502
- style="width: 100%"
503
- readonly
504
- v-model="charge.f_amount_words" />
505
- </div>
506
- </div>
507
- <div class="form-group col-sm-12">
508
- <label class="col-sm-2 control-label">收费人员:</label>
509
- <div class="col-sm-10">
510
- <input type="text"
511
- class="form-control input_view"
512
- style="width: 100%"
513
- readonly
514
- v-model="charge.f_charge_collectors" />
515
- </div>
516
- </div>
517
- <div class="form-group col-sm-12">
518
- <label class="col-sm-2 control-label">确认人:</label>
519
- <div class="col-sm-10">
520
- <input type="text"
521
- class="form-control input_view"
522
- style="width: 100%"
523
- readonly
524
- v-model="charge.f_confirm_person" />
525
- </div>
526
- </div>
527
- <div class="form-group col-sm-12">
528
- <label class="col-sm-2 control-label">确认时间:</label>
529
- <div class="col-sm-10">
530
- <datepicker id="startDate" placeholder="确认时间"
531
- style="width: 60%!important;"
532
- v-model="charge.f_confirm_date"
533
- :value.sync="charge.f_confirm_date"
534
- readonly
535
- disabled
536
- :format="'yyyy-MM-dd HH:mm:ss'"
537
- :show-reset-button="true"
538
- >
539
- </datepicker>
540
- </div>
541
- </div>
542
- <div class="form-group col-sm-12">
543
- <label class="col-sm-2 control-label">审核人:</label>
544
- <div class="col-sm-10">
545
- <input type="text"
546
- class="form-control input_view"
547
- style="width: 100%"
548
- v-model="charge.f_auditor_person" />
549
- </div>
550
- </div>
551
- <div class="form-group col-sm-12">
552
- <label class="col-sm-2 control-label">审核时间:</label>
553
- <div class="col-sm-10">
554
- <datepicker id="startDate" placeholder="确认时间"
555
- style="width: 60%!important;"
556
- v-model="charge.f_auditor_date"
557
- :value.sync="charge.f_auditor_date"
558
- :default="true"
559
- :format="'yyyy-MM-dd HH:mm:ss'"
560
- :show-reset-button="true"
561
- >
562
- </datepicker>
563
- </div>
564
- </div>
565
- <div class="form-group col-sm-12">
566
- <label class="col-sm-2 control-label">备注:</label>
567
- <div class="col-sm-10">
568
- <input type="text"
569
- class="form-control input_view"
570
- style="width: 100%"
571
- v-model="charge.f_charge_remarks" />
572
- </div>
573
- </div>
574
- </article>
575
- <footer slot="modal-footer" class="modal-footer">
576
- <button type="button" class="btn btn-primary" @click="ConfirmPayment()">确认收款</button>
577
- </footer>
578
- </modal>-->
579
- <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
580
- <header slot="modal-header" class="modal-header">
581
- <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
582
- <h4 class="modal-title">打印预览</h4>
583
- </header>
584
- <article slot="modal-body" class="modal-body clearfix">
585
- <apply-print-chargepc :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-chargepc>
586
- </article>
587
- <footer slot="modal-footer" class="modal-footer">
588
- <button type="button" class="btn btn-primary" @click="print()">打印</button>
589
- </footer>
590
- </modal>
591
- </div>
592
- </template>
593
- <script>
594
- import {getNowDate,isEmpty} from '../../../components/Util'
595
- import {PagedList} from 'vue-client'
596
- import {HttpResetClass} from 'vue-client'
597
- import Vue from 'vue'
598
-
599
- export default {
600
- title: '收费管理',
601
- props: {
602
- selectdata: {
603
- type: Object
604
- },
605
- mark: {
606
- type: Number,
607
- default: 0
608
- }
609
- },
610
- data () {
611
- return {
612
- showCharge: false, // 收费明细
613
- showInvalid: false, // 作废
614
- showPrint: false, // 打印
615
- showConfirm: false, // 确认收款
616
- showauditor: false, // 确认审核
617
- person:this.$login.f.name,
618
- model: {
619
- data: null
620
- }, // 记录
621
- useraddresList: [], // 地址列表
622
- charge: {
623
- charges:[]
624
- },
625
- defnames: this.$appdata.getParam(this.selectdata.f_apply_type + '付款预设')
626
- }
627
- },
628
- ready () {
629
- this.search()
630
- },
631
- methods: {
632
- addcharges(){
633
- this.charge.charges.push({})
634
- },
635
- deleteUserFile (index) {
636
- this.charge.charges.splice(index, 1)
637
- },
638
- async payerNumberChange () {
639
- if (isEmpty(this.charge.f_payer_number)) {
640
- return
641
- }
642
- let http = new HttpResetClass()
643
- let data = {
644
- tablename: 't_charge_record',
645
- condition: `f_payer_number = '${this.charge.f_payer_number}'`
646
- }
647
- let res = await http.load('POST', 'rs/sql/apply_singleTable', {data:data}, {
648
- resolveMsg: null,
649
- rejectMsg: '流水号查询失败!!!'
650
- })
651
- if (res.data.length > 0) {
652
- this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
653
- return
654
- }
655
- },
656
- print () {
657
- this.$refs.print.$refs.print.PrintTable()
658
- },
659
- showPrintModal(row) {
660
- this.charge = row
661
- this.showPrint = true
662
- },
663
- selectAddres () {
664
- if (this.charge.useraddres) {
665
- this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
666
- this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
667
- } else {
668
- this.charge.f_cumulative_payment_money = 0
669
- this.charge.f_outstanding_amount = this.selectdata.f_price
670
- }
671
- },
672
- async invalidApplyCharge() {
673
-
674
- let http = new HttpResetClass()
675
- let data = {
676
- apply: this.selectdata,
677
- user: this.$login.f,
678
- charge: this.charge
679
- }
680
- let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
681
- resolveMsg: null,
682
- rejectMsg: '作废失败!!!'
683
- })
684
- this.selectdata = res.data
685
-
686
- this.$dispatch('breakControl', this.selectdata)
687
- },
688
- async ConfirmPayment() {
689
- let http = new HttpResetClass()
690
- let data = {
691
- apply: this.selectdata,
692
- user: this.$login.f,
693
- charge: this.charge
694
- }
695
- let res = await http.load('POST', 'rs/logic/confirmCharge', {data: data}, {
696
- resolveMsg: null,
697
- rejectMsg: '提交失败!!!'
698
- })
699
- if(res.data==200){
700
- this.$showAlert('提交成功!!!', 'success', 3000)
701
- //延时1s
702
- setTimeout(() => {
703
- this.showConfirm= false
704
- this.showauditor= false
705
- }, 1000)
706
- }
707
- //重新查询
708
- this.search()
709
- this.getbutton()
710
- },
711
- async getbutton(){
712
- var defname = this.selectdata.defname
713
- var processId = this.selectdata.f_process_id
714
- let data = {
715
- condition: `tc.f_process_id = '${processId}' and tc.defname = '${defname}'`
716
- }
717
- let http = new HttpResetClass()
718
- let res = await http.load(
719
- 'POST',
720
- `rs/sql/getPaymentRatio`,
721
- {data: data},
722
- {resolveMsg: null, rejectMsg: '查询失败!!!'}
723
- )
724
- if(res.data.length!==0){
725
- var f_due_money= res.data[0].f_due_money
726
- var cumulative= res.data[0].f_charge_money
727
- if (Number(f_due_money) == Number(cumulative)) {
728
- let flag = true
729
- let res1 = await http.load(
730
- 'POST',
731
- `rs/sql/getfeeconfirmation`,
732
- {data: data},
733
- {resolveMsg: null, rejectMsg: '查询失败!!!'}
734
- )
735
- for (let i =0;i<res1.data.length;i++){
736
- if (isEmpty(res1.data[i].f_confirm_person)){
737
- flag = false
738
- }
739
- }
740
- if (flag){
741
- let show_data = this.selectdata
742
- show_data.user = this.$login.f
743
- show_data.start_activity ='报装申请'
744
- show_data.xmlfilename =this.selectdata.f_apply_type
745
- show_data.button = {button_name:'提交'}
746
- await this.$resetpost(
747
- `rs/logic/ApplyProductService`,
748
- {data: show_data},
749
- {resolveMsg: null, rejectMsg: '数据保存失败'}
750
- )
751
- }
752
- }
753
- }
754
- },
755
- // 打开作废收费
756
- showInvalidModal(row) {
757
- this.charge = row
758
- this.showInvalid = true
759
- },
760
- showConfirmModal(row,type){
761
- this.charge = row
762
- if (type == '确认收款'){
763
- this.charge.f_confirm_person=this.person
764
- this.showConfirm= true
765
- }
766
- if (type == '确认审核'){
767
- this.charge.f_auditor_person=this.person
768
- this.showauditor= true
769
- }
770
- },
771
- // 新增收费
772
- async saveCharge() {
773
- if(this.charge.charges.length <= 0){
774
- return this.$showMessage('收费项目不能为空,请添加收费项目!!')
775
- }
776
- if(isEmpty(this.charge.defname )){
777
- return this.$showMessage('收费环节不能为空!!')
778
- }
779
- let http = new HttpResetClass()
780
- let data = {
781
- apply: this.selectdata,
782
- user: this.$login.f,
783
- charge: this.charge
784
- }
785
-
786
- let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
787
- resolveMsg: null,
788
- rejectMsg: '缴费失败!!!'
789
- })
790
- this.selectdata = res.data
791
-
792
- this.$dispatch('breakControl', this.selectdata)
793
- },
794
- moneyChange (i) {
795
- if (isEmpty(this.charge.charges[i].f_charge_money) || Number(this.charge.charges[i].f_charge_money) === 0) {
796
- this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
797
- this.charge.charges[i].f_charge_money = null
798
- return
799
- }
800
- if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.charges[i].f_charge_money) > Number(this.charge.charges[i].f_outstanding_amount)) {
801
- this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
802
- this.charge.charges[i].f_charge_money = null
803
- return
804
- }
805
- if (Number(this.charge.charges[i].f_charge_money) > Number(this.selectdata.f_surplus_money)) {
806
- this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
807
- this.charge.charges[i].f_charge_money = null
808
- return
809
- }
810
- this.charge.charges[i].f_charge_money = (this.charge.charges[i].f_charge_money.match(/^\d*(\.?\d{0,2})/g)[0]) || null
811
- this.charge.charges[i].f_amount_words = this.smalltoBIG(this.charge.charges[i].f_charge_money)
812
- },
813
- // 金额转大写
814
- handleInput(e) {
815
- // 通过正则过滤小数点后两位
816
- e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
817
- this.charge.f_amount_words = this.smalltoBIG(e.target.value)
818
- },
819
- // 金额转大写
820
- smalltoBIG(n) {
821
- let fraction = ['角', '分'];
822
- let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
823
- let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
824
- let head = n < 0 ? '欠' : '';
825
- n = Math.abs(n);
826
-
827
- let s = '';
828
-
829
- for (var i = 0; i < fraction.length; i++) {
830
- s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
831
- }
832
- s = s || '整';
833
- n = Math.floor(n);
834
-
835
- for (var i = 0; i < unit[0].length && n > 0; i++) {
836
- let p = '';
837
- for (var j = 0; j < unit[1].length && n > 0; j++) {
838
- p = digit[n % 10] + unit[1][j] + p;
839
- n = Math.floor(n / 10);
840
- }
841
- s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
842
- }
843
- return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
844
- },
845
- async changePaymentMethod () {
846
- if (this.charge.f_payment_method === '银行转账' && this.selectdata.f_apply_type === '团购报建') {
847
- let http = new HttpResetClass()
848
- let data = {
849
- tablename: 't_dev_info',
850
- condition: `f_orgid = '${this.$login.f.orgid}' and id = '${this.selectdata.f_dev_id}'`
851
- }
852
- let res = await http.load('POST', 'rs/sql/apply_singleTable', {data:data}, {
853
- resolveMsg: null,
854
- rejectMsg: '开发商档案查询失败!!!'
855
- })
856
-
857
- this.charge.f_payer_name = res.data[0].f_dev_name
858
- this.charge.f_payer_account = res.data[0].f_bank_account
859
- }
860
- },
861
- async getUserAddress() {
862
- let http = new HttpResetClass()
863
- let data = {}
864
- let url = null
865
- if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
866
- data = {
867
- condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
868
- }
869
- url = 'rs/sql/applyGetUserinfos'
870
- } else {
871
- data = {
872
- condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
873
- f_process_id: this.selectdata.f_process_id
874
- }
875
- url = 'rs/sql/getAddresAndCumulativePayment'
876
- }
877
- let res = await http.load('POST', url, {data:data}, {
878
- resolveMsg: null,
879
- rejectMsg: '用户获取失败!!!'
880
- })
881
-
882
- if (res.data.length <= 0) {
883
- this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
884
- }
885
-
886
- this.useraddresList = res.data.map(item => {
887
- return {
888
- // 有用户姓名地址后拼接姓名
889
- label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
890
- value: item
891
- }
892
- })
893
-
894
- },
895
- async showChargeModal() {
896
- // this.getUserAddress()
897
-
898
- if (this.selectdata.f_apply_type === '团购报建') {
899
- this.charge.f_dev_info_id = this.selectdata.f_dev_id
900
- }
901
-
902
- this.showCharge = true
903
- },
904
- async search () {
905
- let http = new HttpResetClass()
906
- let data = {
907
- // condition: `cr.f_charge_status != '退款'`,
908
- f_process_id: this.selectdata.f_process_id
909
- }
910
- if (this.selectdata.f_apply_type === '启封通气' && this.selectdata.f_apply_type !== '线下发起'){
911
- data = {
912
- f_process_id: this.selectdata.f_parent_process_id
913
- }
914
- }
915
- let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
916
- resolveMsg: null,
917
- rejectMsg: '收费记录查询失败!!!'
918
- })
919
- this.model.data = res.data
920
- },
921
- // 关闭对话框
922
- closeModal() {
923
- this.showCharge = false
924
- this.showInvalid = false
925
- this.showPrint = false
926
- this.showConfirm = false
927
- this.showauditor = false
928
- this.charge = {
929
- charges:[]
930
- }
931
- this.search()
932
- }
933
- },
934
- events: {
935
- },
936
- computed: {
937
- paymentMethod() {
938
- return this.$appdata.getParam("付款方式")
939
- },
940
- paymentTerm() {
941
- return this.$appdata.getParam("收费项目")
942
- }
943
- },
944
- watch: {
945
- }
946
- }
947
- </script>
948
- <style scoped>
949
- .textNoLineBreak {
950
- white-space: nowrap;
951
- }
952
- .head-but{
953
- margin-left: 5px;
954
- height: 34px;
955
- /*background-color: #6aa6e2;*/
956
- border-radius: 4px;
957
- font-family: PingFang;
958
- color: #ffffff;
959
- }
960
- </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">
7
+ <button
8
+ type="button"
9
+ class="btn btn-info head-but"
10
+ @click="$parent.$parent.showChargeModal()"
11
+ v-show="$parent.$parent.selectdata.f_apply_type !== '启封通气'"
12
+ >新增收费</button>
13
+ </th>
14
+ <th class="textNoLineBreak">序号</th>
15
+ <th class="textNoLineBreak" v-if="selectdata.f_apply_type !== '开发商集体报建'">地址</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">付款流水号</th>
24
+ <th class="textNoLineBreak">收费人员</th>
25
+ <th class="textNoLineBreak">收费日期</th>
26
+ <th class="textNoLineBreak">实际收费日期</th>
27
+ <th class="textNoLineBreak">备注</th>
28
+ <th class="textNoLineBreak">缴费状态</th>
29
+ <th class="textNoLineBreak">作废人员</th>
30
+ <th class="textNoLineBreak">作废时间</th>
31
+ <th class="textNoLineBreak">作废原因</th>
32
+ <th class="textNoLineBreak">确认人</th>
33
+ <th class="textNoLineBreak">确认时间</th>
34
+ <th class="textNoLineBreak">审核人</th>
35
+ <th class="textNoLineBreak">审核时间</th>
36
+ </tr>
37
+ </template>
38
+ <template partial='body'>
39
+ <tr>
40
+ <td style="text-align: center;">
41
+ <nobr v-if="row.f_charge_status !== '退款'&& row.f_charge_status !== '作废' && row.f_confirm_person==null">
42
+ <button
43
+ type="button"
44
+ name="button"
45
+ class="btn btn-link"
46
+ :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
47
+ @click="$parent.$parent.showConfirmModal(row,'确认收款')"
48
+ >确认收款</button>
49
+ </nobr>
50
+ <!-- <nobr v-if="row.f_charge_status !== '退款'&& row.f_charge_status !== '作废' && row.f_confirm_person!=null&& row.f_auditor_person==null">
51
+ <button
52
+ type="button"
53
+ name="button"
54
+ class="btn btn-link"
55
+ :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
56
+ @click="$parent.$parent.showConfirmModal(row,'确认审核')"
57
+ >确认审核</button>
58
+ </nobr>-->
59
+ <nobr v-if="row.f_charge_status !== '退款'">
60
+ <button
61
+ type="button"
62
+ name="button"
63
+ class="btn btn-link"
64
+ :disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
65
+ @click="$parent.$parent.showInvalidModal(row)"
66
+ >作废</button>
67
+
68
+ <button
69
+ type="button"
70
+ name="button"
71
+ class="btn btn-link"
72
+ @click="$parent.$parent.showPrintModal(row)"
73
+ >打印预览</button>
74
+ </nobr>
75
+ </td>
76
+ <td style="text-align: center;">
77
+ <nobr>{{$index+1}}</nobr>
78
+ </td>
79
+ <td style="text-align: center;" v-if="selectdata.f_apply_type !== '开发商集体报建'">
80
+ <nobr>{{row.f_useraddres}}</nobr>
81
+ </td>
82
+ <td style="text-align: center;">
83
+ <nobr>{{row.f_charge_number}}</nobr>
84
+ </td>
85
+ <td style="text-align: center;">
86
+ <nobr>{{row.f_charge_money}}</nobr>
87
+ </td>
88
+ <td style="text-align: center;">
89
+ <nobr>{{row.f_amount_words}}</nobr>
90
+ </td>
91
+ <td style="text-align: center;">
92
+ <nobr>{{row.f_payment_term}}</nobr>
93
+ </td>
94
+ <td style="text-align: center;">
95
+ <nobr>{{row.f_payment_method}}</nobr>
96
+ </td>
97
+ <td style="text-align: center;">
98
+ <nobr>{{row.f_payer_name}}</nobr>
99
+ </td>
100
+ <td style="text-align: center;">
101
+ <nobr>{{row.f_payer_account}}</nobr>
102
+ </td>
103
+ <td style="text-align: center;">
104
+ <nobr>{{row.f_payer_number}}</nobr>
105
+ </td>
106
+ <td style="text-align: center;">
107
+ <nobr>{{row.f_charge_collectors}}</nobr>
108
+ </td>
109
+ <td style="text-align: center;">
110
+ <nobr>{{row.f_charge_date}}</nobr>
111
+ </td>
112
+ <td style="text-align: center;">
113
+ <nobr>{{row.f_actual_date}}</nobr>
114
+ </td>
115
+ <td style="text-align: center;">
116
+ <nobr>{{row.f_charge_remarks}}</nobr>
117
+ </td>
118
+ <td style="text-align: center;">
119
+ <nobr>{{row.f_charge_status}}</nobr>
120
+ </td>
121
+ <td style="text-align: center;">
122
+ <nobr>{{row.f_void_staff}}</nobr>
123
+ </td>
124
+ <td style="text-align: center;">
125
+ <nobr>{{row.f_void_date}}</nobr>
126
+ </td>
127
+ <td style="text-align: center;">
128
+ <nobr>{{row.f_void_remarks}}</nobr>
129
+ </td>
130
+ <td style="text-align: center;">
131
+ <nobr>{{row.f_confirm_person}}</nobr>
132
+ </td>
133
+ <td style="text-align: center;">
134
+ <nobr>{{row.f_confirm_date}}</nobr>
135
+ </td>
136
+ <td style="text-align: center;">
137
+ <nobr>{{row.f_auditor_person}}</nobr>
138
+ </td>
139
+ <td style="text-align: center;">
140
+ <nobr>{{row.f_auditor_date}}</nobr>
141
+ </td>
142
+ </tr>
143
+ </template>
144
+ </data-grid>
145
+
146
+ <validator name="v">
147
+ <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
148
+ <header slot="modal-header" class="modal-header">
149
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
150
+ <h4 class="modal-title">收费明细</h4>
151
+ </header>
152
+ <article slot="modal-body" class="modal-body clearfix">
153
+ <div class="form-group col-sm-12" v-if="false" :class="[$v.useraddres.required ? 'has-error' : '']">
154
+ <label class="col-sm-2 control-label">缴费地址:</label>
155
+ <div class="col-sm-10">
156
+ <input type="text" v-show="false" v-model="charge.useraddres.id" v-validate:useraddres = "['required']" >
157
+ <input-select width="100%" class="select select_list" placeholder='请选择'
158
+ v-model="charge.useraddres"
159
+ :value.sync="charge.useraddres"
160
+ :options='useraddresList'
161
+ :value-single="true"
162
+ @change="selectAddres()"
163
+ close-on-select ></input-select>
164
+ </div>
165
+ </div>
166
+ <div v-for="(i, item) in charge.charges" class="form-group col-sm-12 panel panel-info">
167
+ <div class="panel-heading head col-sm-12" style="background-color: #e8f4ff;margin-bottom: 10px">
168
+ <div class="col-sm-6 text-left">收费项目{{$index+1}}信息</div>
169
+ <div class="col-sm-6 text-right"><button
170
+ class="button_delete button_spacing"
171
+ v-if="!item.f_userfiles_id"
172
+ @click.prevent="deleteUserFile(i)"
173
+ >删除</button></div>
174
+ </div>
175
+ <div class="form-group col-sm-12" :class="[$v.item.f_payment_term.required ? 'has-error' : '']">
176
+ <label class="col-sm-2 control-label">收费项目:</label>
177
+ <div class="col-sm-10">
178
+ <input type="text" v-show="false" v-model="item.f_payment_term" v-validate:f_payment_term = "['required']" >
179
+ <input-select width="100%" class="select select_list" placeholder='请选择'
180
+ v-model="item.f_payment_term"
181
+ :value.sync="item.f_payment_term"
182
+ :options='paymentTerm'
183
+ :value-single="true"
184
+ close-on-select ></input-select>
185
+ </div>
186
+ </div>
187
+ <div class="form-group col-sm-12" :class="[$v.item.f_charge_money.required ? 'has-error' : '']">
188
+ <label class="col-sm-2 control-label">收费金额:</label>
189
+ <div class="col-sm-10">
190
+ <input type="text"
191
+ class="form-control input_view"
192
+ style="width: 100%"
193
+ placeholder="0.00"
194
+ @change="moneyChange(i)"
195
+ v-validate:f_charge_money = "['required']"
196
+ v-model="item.f_charge_money" />
197
+ </div>
198
+ </div>
199
+ <div class="form-group col-sm-12" :class="[$v.item.f_payment_method.required ? 'has-error' : '']">
200
+ <label class="col-sm-2 control-label">付款方式:</label>
201
+ <div class="col-sm-10">
202
+ <input type="text" v-show="false" v-model="item.f_payment_method" v-validate:f_payment_method = "['required']" >
203
+ <input-select
204
+ placeholder='请选择' width="100%"
205
+ v-model="item.f_payment_method"
206
+ :value.sync="item.f_payment_method"
207
+ :options='paymentMethod'
208
+ class="select select_list"
209
+ :value-single="true"
210
+ @change="changePaymentMethod()"
211
+ close-on-select ></input-select>
212
+ </div>
213
+ </div>
214
+ <div class="form-group col-sm-12">
215
+ <label class="col-sm-2 control-label">金额大写:</label>
216
+ <div class="col-sm-10">
217
+ <input type="text"
218
+ class="form-control input_view"
219
+ style="width: 100%"
220
+ :value="smalltoBIG(0)"
221
+ readonly
222
+ v-model.sync="item.f_amount_words" />
223
+ </div>
224
+ </div>
225
+ <div class="form-group col-sm-12">
226
+ <label class="col-sm-2 control-label">备注:</label>
227
+ <div class="col-sm-10">
228
+ <input type="text"
229
+ class="form-control input_view"
230
+ style="width: 100%"
231
+ v-model="item.f_charge_remarks" />
232
+ </div>
233
+ </div>
234
+ <div class="form-group col-sm-12">
235
+ <label class="col-sm-2 control-label">实际收款时间:</label>
236
+ <div class="col-sm-10">
237
+ <datepicker id="startDate" placeholder="实际收款时间"
238
+ style="width: 60%!important;"
239
+ v-model="item.f_actual_date"
240
+ :value.sync="item.f_actual_date"
241
+ :format="'yyyy-MM-dd HH:mm:ss'"
242
+ :show-reset-button="true"
243
+ >
244
+ </datepicker>
245
+ </div>
246
+ </div>
247
+ </div>
248
+ <div class="form-group col-sm-12">
249
+ <label class="col-sm-2 control-label">应交总金额:</label>
250
+ <div class="col-sm-10">
251
+ <input type="text"
252
+ class="form-control input_view"
253
+ style="width: 100%"
254
+ readonly
255
+ v-model="selectdata.f_due_money" />
256
+ </div>
257
+ </div>
258
+ <div class="form-group col-sm-12">
259
+ <label class="col-sm-2 control-label">累计缴费总金额:</label>
260
+ <div class="col-sm-10">
261
+ <input type="text"
262
+ class="form-control input_view"
263
+ style="width: 100%"
264
+ readonly
265
+ v-model="selectdata.f_cumulative_payment_money" />
266
+ </div>
267
+ </div>
268
+ <div class="form-group col-sm-12">
269
+ <label class="col-sm-2 control-label">未结总金额:</label>
270
+ <div class="col-sm-10">
271
+ <input type="text"
272
+ class="form-control input_view"
273
+ style="width: 100%"
274
+ readonly
275
+ v-model="selectdata.f_surplus_money" />
276
+ </div>
277
+ </div>
278
+ <div class="form-group col-sm-12">
279
+ <label class="col-sm-2 control-label">收费环节:</label>
280
+ <div class="col-sm-10">
281
+ <input-select width="100%" class="select select_list" placeholder='请选择'
282
+ v-model="charge.defname"
283
+ :value.sync="charge.defname"
284
+ :options='defnames'
285
+ :value-single="true"
286
+ close-on-select ></input-select>
287
+ </div>
288
+ </div>
289
+
290
+ </article>
291
+ <footer slot="modal-footer" class="modal-footer">
292
+ <button type="button" class="btn btn-primary" @click="addcharges" >添加收费项目</button>
293
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
294
+ </footer>
295
+ </modal>
296
+ </validator>
297
+
298
+ <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :backdrop="false" title="作废收费">
299
+ <header slot="modal-header" class="modal-header">
300
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
301
+ <h4 class="modal-title">作废收费</h4>
302
+ </header>
303
+ <article slot="modal-body" class="modal-body clearfix">
304
+ <div class="form-group col-sm-12" v-if="false">
305
+ <label class="col-sm-2 control-label">缴费地址:</label>
306
+ <div class="col-sm-10">
307
+ <input type="text"
308
+ class="form-control input_view"
309
+ style="width: 100%"
310
+ readonly
311
+ v-model="charge.f_useraddres" />
312
+ </div>
313
+ </div>
314
+ <div class="form-group col-sm-12">
315
+ <label class="col-sm-2 control-label">收费金额:</label>
316
+ <div class="col-sm-10">
317
+ <input type="text"
318
+ class="form-control input_view"
319
+ style="width: 100%"
320
+ readonly
321
+ v-model="charge.f_charge_money" />
322
+ </div>
323
+ </div>
324
+ <div class="form-group col-sm-12">
325
+ <label class="col-sm-2 control-label">付款方式:</label>
326
+ <div class="col-sm-10">
327
+ <input type="text"
328
+ class="form-control input_view"
329
+ style="width: 100%"
330
+ readonly
331
+ v-model="charge.f_payment_method" />
332
+ </div>
333
+ </div>
334
+ <div class="form-group col-sm-12">
335
+ <label class="col-sm-2 control-label">金额大写:</label>
336
+ <div class="col-sm-10">
337
+ <input type="text"
338
+ class="form-control input_view"
339
+ style="width: 100%"
340
+ readonly
341
+ v-model="charge.f_amount_words" />
342
+ </div>
343
+ </div>
344
+ <div class="form-group col-sm-12">
345
+ <label class="col-sm-2 control-label">收费人员:</label>
346
+ <div class="col-sm-10">
347
+ <input type="text"
348
+ class="form-control input_view"
349
+ style="width: 100%"
350
+ readonly
351
+ v-model="charge.f_charge_collectors" />
352
+ </div>
353
+ </div>
354
+ <div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
355
+ <label class="col-sm-2 control-label">作废原因:</label>
356
+ <div class="col-sm-10">
357
+ <input type="text"
358
+ class="form-control input_view"
359
+ style="width: 100%"
360
+ v-model="charge.f_void_remarks" />
361
+ </div>
362
+ </div>
363
+ </article>
364
+ <footer slot="modal-footer" class="modal-footer">
365
+ <button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
366
+ </footer>
367
+ </modal>
368
+ <modal v-if="showConfirm" :show.sync="showConfirm" v-ref:modal :backdrop="false" title="确认收款">
369
+ <header slot="modal-header" class="modal-header">
370
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
371
+ <h4 class="modal-title">确认收款</h4>
372
+ </header>
373
+ <article slot="modal-body" class="modal-body clearfix">
374
+ <div class="form-group col-sm-12" v-if="false">
375
+ <label class="col-sm-2 control-label">缴费地址:</label>
376
+ <div class="col-sm-10">
377
+ <input type="text"
378
+ class="form-control input_view"
379
+ style="width: 100%"
380
+ readonly
381
+ v-model="charge.f_useraddres" />
382
+ </div>
383
+ </div>
384
+ <div class="form-group col-sm-12">
385
+ <label class="col-sm-2 control-label">收费金额:</label>
386
+ <div class="col-sm-10">
387
+ <input type="text"
388
+ class="form-control input_view"
389
+ style="width: 100%"
390
+ readonly
391
+ v-model="charge.f_charge_money" />
392
+ </div>
393
+ </div>
394
+ <div class="form-group col-sm-12">
395
+ <label class="col-sm-2 control-label">付款方式:</label>
396
+ <div class="col-sm-10">
397
+ <input type="text"
398
+ class="form-control input_view"
399
+ style="width: 100%"
400
+ readonly
401
+ v-model="charge.f_payment_method" />
402
+ </div>
403
+ </div>
404
+ <div class="form-group col-sm-12">
405
+ <label class="col-sm-2 control-label">金额大写:</label>
406
+ <div class="col-sm-10">
407
+ <input type="text"
408
+ class="form-control input_view"
409
+ style="width: 100%"
410
+ readonly
411
+ v-model="charge.f_amount_words" />
412
+ </div>
413
+ </div>
414
+ <div class="form-group col-sm-12">
415
+ <label class="col-sm-2 control-label">收费人员:</label>
416
+ <div class="col-sm-10">
417
+ <input type="text"
418
+ class="form-control input_view"
419
+ style="width: 100%"
420
+ readonly
421
+ v-model="charge.f_charge_collectors" />
422
+ </div>
423
+ </div>
424
+ <div class="form-group col-sm-12">
425
+ <label class="col-sm-2 control-label">确认人:</label>
426
+ <div class="col-sm-10">
427
+ <input type="text"
428
+ class="form-control input_view"
429
+ style="width: 100%"
430
+ v-model="charge.f_confirm_person" />
431
+ </div>
432
+ </div>
433
+ <div class="form-group col-sm-12">
434
+ <label class="col-sm-2 control-label">确认时间:</label>
435
+ <div class="col-sm-10">
436
+ <datepicker id="startDate" placeholder="确认时间"
437
+ style="width: 60%!important;"
438
+ v-model="charge.f_confirm_date"
439
+ :value.sync="charge.f_confirm_date"
440
+ :default="true"
441
+ :format="'yyyy-MM-dd HH:mm:ss'"
442
+ :show-reset-button="true"
443
+ >
444
+ </datepicker>
445
+ </div>
446
+ </div>
447
+ <div class="form-group col-sm-12">
448
+ <label class="col-sm-2 control-label">备注:</label>
449
+ <div class="col-sm-10">
450
+ <input type="text"
451
+ class="form-control input_view"
452
+ style="width: 100%"
453
+ v-model="charge.f_charge_remarks" />
454
+ </div>
455
+ </div>
456
+ </article>
457
+ <footer slot="modal-footer" class="modal-footer">
458
+ <button type="button" class="btn btn-primary" @click="ConfirmPayment()">确认收款</button>
459
+ </footer>
460
+ </modal>
461
+ <!-- <modal v-if="showauditor" :show.sync="showauditor" v-ref:modal :backdrop="false" title="确认审核">
462
+ <header slot="modal-header" class="modal-header">
463
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
464
+ <h4 class="modal-title">确认审核</h4>
465
+ </header>
466
+ <article slot="modal-body" class="modal-body clearfix">
467
+ <div class="form-group col-sm-12" v-if="false">
468
+ <label class="col-sm-2 control-label">缴费地址:</label>
469
+ <div class="col-sm-10">
470
+ <input type="text"
471
+ class="form-control input_view"
472
+ style="width: 100%"
473
+ readonly
474
+ v-model="charge.f_useraddres" />
475
+ </div>
476
+ </div>
477
+ <div class="form-group col-sm-12">
478
+ <label class="col-sm-2 control-label">收费金额:</label>
479
+ <div class="col-sm-10">
480
+ <input type="text"
481
+ class="form-control input_view"
482
+ style="width: 100%"
483
+ readonly
484
+ v-model="charge.f_charge_money" />
485
+ </div>
486
+ </div>
487
+ <div class="form-group col-sm-12">
488
+ <label class="col-sm-2 control-label">付款方式:</label>
489
+ <div class="col-sm-10">
490
+ <input type="text"
491
+ class="form-control input_view"
492
+ style="width: 100%"
493
+ readonly
494
+ v-model="charge.f_payment_method" />
495
+ </div>
496
+ </div>
497
+ <div class="form-group col-sm-12">
498
+ <label class="col-sm-2 control-label">金额大写:</label>
499
+ <div class="col-sm-10">
500
+ <input type="text"
501
+ class="form-control input_view"
502
+ style="width: 100%"
503
+ readonly
504
+ v-model="charge.f_amount_words" />
505
+ </div>
506
+ </div>
507
+ <div class="form-group col-sm-12">
508
+ <label class="col-sm-2 control-label">收费人员:</label>
509
+ <div class="col-sm-10">
510
+ <input type="text"
511
+ class="form-control input_view"
512
+ style="width: 100%"
513
+ readonly
514
+ v-model="charge.f_charge_collectors" />
515
+ </div>
516
+ </div>
517
+ <div class="form-group col-sm-12">
518
+ <label class="col-sm-2 control-label">确认人:</label>
519
+ <div class="col-sm-10">
520
+ <input type="text"
521
+ class="form-control input_view"
522
+ style="width: 100%"
523
+ readonly
524
+ v-model="charge.f_confirm_person" />
525
+ </div>
526
+ </div>
527
+ <div class="form-group col-sm-12">
528
+ <label class="col-sm-2 control-label">确认时间:</label>
529
+ <div class="col-sm-10">
530
+ <datepicker id="startDate" placeholder="确认时间"
531
+ style="width: 60%!important;"
532
+ v-model="charge.f_confirm_date"
533
+ :value.sync="charge.f_confirm_date"
534
+ readonly
535
+ disabled
536
+ :format="'yyyy-MM-dd HH:mm:ss'"
537
+ :show-reset-button="true"
538
+ >
539
+ </datepicker>
540
+ </div>
541
+ </div>
542
+ <div class="form-group col-sm-12">
543
+ <label class="col-sm-2 control-label">审核人:</label>
544
+ <div class="col-sm-10">
545
+ <input type="text"
546
+ class="form-control input_view"
547
+ style="width: 100%"
548
+ v-model="charge.f_auditor_person" />
549
+ </div>
550
+ </div>
551
+ <div class="form-group col-sm-12">
552
+ <label class="col-sm-2 control-label">审核时间:</label>
553
+ <div class="col-sm-10">
554
+ <datepicker id="startDate" placeholder="确认时间"
555
+ style="width: 60%!important;"
556
+ v-model="charge.f_auditor_date"
557
+ :value.sync="charge.f_auditor_date"
558
+ :default="true"
559
+ :format="'yyyy-MM-dd HH:mm:ss'"
560
+ :show-reset-button="true"
561
+ >
562
+ </datepicker>
563
+ </div>
564
+ </div>
565
+ <div class="form-group col-sm-12">
566
+ <label class="col-sm-2 control-label">备注:</label>
567
+ <div class="col-sm-10">
568
+ <input type="text"
569
+ class="form-control input_view"
570
+ style="width: 100%"
571
+ v-model="charge.f_charge_remarks" />
572
+ </div>
573
+ </div>
574
+ </article>
575
+ <footer slot="modal-footer" class="modal-footer">
576
+ <button type="button" class="btn btn-primary" @click="ConfirmPayment()">确认收款</button>
577
+ </footer>
578
+ </modal>-->
579
+ <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
580
+ <header slot="modal-header" class="modal-header">
581
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
582
+ <h4 class="modal-title">打印预览</h4>
583
+ </header>
584
+ <article slot="modal-body" class="modal-body clearfix">
585
+ <apply-print-chargepc :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-chargepc>
586
+ </article>
587
+ <footer slot="modal-footer" class="modal-footer">
588
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
589
+ </footer>
590
+ </modal>
591
+ </div>
592
+ </template>
593
+ <script>
594
+ import {getNowDate,isEmpty} from '../../../components/Util'
595
+ import {PagedList} from 'vue-client'
596
+ import {HttpResetClass} from 'vue-client'
597
+ import Vue from 'vue'
598
+
599
+ export default {
600
+ title: '收费管理',
601
+ props: {
602
+ selectdata: {
603
+ type: Object
604
+ },
605
+ mark: {
606
+ type: Number,
607
+ default: 0
608
+ }
609
+ },
610
+ data () {
611
+ return {
612
+ showCharge: false, // 收费明细
613
+ showInvalid: false, // 作废
614
+ showPrint: false, // 打印
615
+ showConfirm: false, // 确认收款
616
+ showauditor: false, // 确认审核
617
+ person:this.$login.f.name,
618
+ model: {
619
+ data: null
620
+ }, // 记录
621
+ useraddresList: [], // 地址列表
622
+ charge: {
623
+ charges:[]
624
+ },
625
+ defnames: this.$appdata.getParam(this.selectdata.f_apply_type + '付款预设')
626
+ }
627
+ },
628
+ ready () {
629
+ this.search()
630
+ },
631
+ methods: {
632
+ addcharges(){
633
+ this.charge.charges.push({})
634
+ },
635
+ deleteUserFile (index) {
636
+ this.charge.charges.splice(index, 1)
637
+ },
638
+ async payerNumberChange () {
639
+ if (isEmpty(this.charge.f_payer_number)) {
640
+ return
641
+ }
642
+ let http = new HttpResetClass()
643
+ let data = {
644
+ tablename: 't_charge_record',
645
+ condition: `f_payer_number = '${this.charge.f_payer_number}'`
646
+ }
647
+ let res = await http.load('POST', 'rs/sql/apply_singleTable', {data:data}, {
648
+ resolveMsg: null,
649
+ rejectMsg: '流水号查询失败!!!'
650
+ })
651
+ if (res.data.length > 0) {
652
+ this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
653
+ return
654
+ }
655
+ },
656
+ print () {
657
+ this.$refs.print.$refs.print.PrintTable()
658
+ },
659
+ showPrintModal(row) {
660
+ this.charge = row
661
+ this.showPrint = true
662
+ },
663
+ selectAddres () {
664
+ if (this.charge.useraddres) {
665
+ this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
666
+ this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
667
+ } else {
668
+ this.charge.f_cumulative_payment_money = 0
669
+ this.charge.f_outstanding_amount = this.selectdata.f_price
670
+ }
671
+ },
672
+ async invalidApplyCharge() {
673
+
674
+ let http = new HttpResetClass()
675
+ let data = {
676
+ apply: this.selectdata,
677
+ user: this.$login.f,
678
+ charge: this.charge
679
+ }
680
+ let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
681
+ resolveMsg: null,
682
+ rejectMsg: '作废失败!!!'
683
+ })
684
+ this.selectdata = res.data
685
+
686
+ this.$dispatch('breakControl', this.selectdata)
687
+ },
688
+ async ConfirmPayment() {
689
+ let http = new HttpResetClass()
690
+ let data = {
691
+ apply: this.selectdata,
692
+ user: this.$login.f,
693
+ charge: this.charge
694
+ }
695
+ let res = await http.load('POST', 'rs/logic/confirmCharge', {data: data}, {
696
+ resolveMsg: null,
697
+ rejectMsg: '提交失败!!!'
698
+ })
699
+ if(res.data==200){
700
+ this.$showAlert('提交成功!!!', 'success', 3000)
701
+ //延时1s
702
+ setTimeout(() => {
703
+ this.showConfirm= false
704
+ this.showauditor= false
705
+ }, 1000)
706
+ }
707
+ //重新查询
708
+ this.search()
709
+ this.getbutton()
710
+ },
711
+ async getbutton(){
712
+ var defname = this.selectdata.defname
713
+ var processId = this.selectdata.f_process_id
714
+ let data = {
715
+ condition: `tc.f_process_id = '${processId}' and tc.defname = '${defname}'`
716
+ }
717
+ let http = new HttpResetClass()
718
+ let res = await http.load(
719
+ 'POST',
720
+ `rs/sql/getPaymentRatio`,
721
+ {data: data},
722
+ {resolveMsg: null, rejectMsg: '查询失败!!!'}
723
+ )
724
+ if(res.data.length!==0){
725
+ var f_due_money= res.data[0].f_due_money
726
+ var cumulative= res.data[0].f_charge_money
727
+ if (Number(f_due_money) == Number(cumulative)) {
728
+ let flag = true
729
+ let res1 = await http.load(
730
+ 'POST',
731
+ `rs/sql/getfeeconfirmation`,
732
+ {data: data},
733
+ {resolveMsg: null, rejectMsg: '查询失败!!!'}
734
+ )
735
+ for (let i =0;i<res1.data.length;i++){
736
+ if (isEmpty(res1.data[i].f_confirm_person)){
737
+ flag = false
738
+ }
739
+ }
740
+ if (flag){
741
+ let show_data = this.selectdata
742
+ show_data.user = this.$login.f
743
+ show_data.start_activity ='报装申请'
744
+ show_data.xmlfilename =this.selectdata.f_apply_type
745
+ show_data.button = {button_name:'提交'}
746
+ await this.$resetpost(
747
+ `rs/logic/ApplyProductService`,
748
+ {data: show_data},
749
+ {resolveMsg: null, rejectMsg: '数据保存失败'}
750
+ )
751
+ }
752
+ }
753
+ }
754
+ },
755
+ // 打开作废收费
756
+ showInvalidModal(row) {
757
+ this.charge = row
758
+ this.showInvalid = true
759
+ },
760
+ showConfirmModal(row,type){
761
+ this.charge = row
762
+ if (type == '确认收款'){
763
+ this.charge.f_confirm_person=this.person
764
+ this.showConfirm= true
765
+ }
766
+ if (type == '确认审核'){
767
+ this.charge.f_auditor_person=this.person
768
+ this.showauditor= true
769
+ }
770
+ },
771
+ // 新增收费
772
+ async saveCharge() {
773
+ if(this.charge.charges.length <= 0){
774
+ return this.$showMessage('收费项目不能为空,请添加收费项目!!')
775
+ }
776
+ if(isEmpty(this.charge.defname )){
777
+ return this.$showMessage('收费环节不能为空!!')
778
+ }
779
+ let http = new HttpResetClass()
780
+ let data = {
781
+ apply: this.selectdata,
782
+ user: this.$login.f,
783
+ charge: this.charge
784
+ }
785
+
786
+ let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
787
+ resolveMsg: null,
788
+ rejectMsg: '缴费失败!!!'
789
+ })
790
+ this.selectdata = res.data
791
+
792
+ this.$dispatch('breakControl', this.selectdata)
793
+ },
794
+ moneyChange (i) {
795
+ if (isEmpty(this.charge.charges[i].f_charge_money) || Number(this.charge.charges[i].f_charge_money) === 0) {
796
+ this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
797
+ this.charge.charges[i].f_charge_money = null
798
+ return
799
+ }
800
+ if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.charges[i].f_charge_money) > Number(this.charge.charges[i].f_outstanding_amount)) {
801
+ this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
802
+ this.charge.charges[i].f_charge_money = null
803
+ return
804
+ }
805
+ if (Number(this.charge.charges[i].f_charge_money) > Number(this.selectdata.f_surplus_money)) {
806
+ this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
807
+ this.charge.charges[i].f_charge_money = null
808
+ return
809
+ }
810
+ this.charge.charges[i].f_charge_money = (this.charge.charges[i].f_charge_money.match(/^\d*(\.?\d{0,2})/g)[0]) || null
811
+ this.charge.charges[i].f_amount_words = this.smalltoBIG(this.charge.charges[i].f_charge_money)
812
+ },
813
+ // 金额转大写
814
+ handleInput(e) {
815
+ // 通过正则过滤小数点后两位
816
+ e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
817
+ this.charge.f_amount_words = this.smalltoBIG(e.target.value)
818
+ },
819
+ // 金额转大写
820
+ smalltoBIG(n) {
821
+ let fraction = ['角', '分'];
822
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
823
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
824
+ let head = n < 0 ? '欠' : '';
825
+ n = Math.abs(n);
826
+
827
+ let s = '';
828
+
829
+ for (var i = 0; i < fraction.length; i++) {
830
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
831
+ }
832
+ s = s || '整';
833
+ n = Math.floor(n);
834
+
835
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
836
+ let p = '';
837
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
838
+ p = digit[n % 10] + unit[1][j] + p;
839
+ n = Math.floor(n / 10);
840
+ }
841
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
842
+ }
843
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
844
+ },
845
+ async changePaymentMethod () {
846
+ if (this.charge.f_payment_method === '银行转账' && this.selectdata.f_apply_type === '团购报建') {
847
+ let http = new HttpResetClass()
848
+ let data = {
849
+ tablename: 't_dev_info',
850
+ condition: `f_orgid = '${this.$login.f.orgid}' and id = '${this.selectdata.f_dev_id}'`
851
+ }
852
+ let res = await http.load('POST', 'rs/sql/apply_singleTable', {data:data}, {
853
+ resolveMsg: null,
854
+ rejectMsg: '开发商档案查询失败!!!'
855
+ })
856
+
857
+ this.charge.f_payer_name = res.data[0].f_dev_name
858
+ this.charge.f_payer_account = res.data[0].f_bank_account
859
+ }
860
+ },
861
+ async getUserAddress() {
862
+ let http = new HttpResetClass()
863
+ let data = {}
864
+ let url = null
865
+ if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建') {
866
+ data = {
867
+ condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
868
+ }
869
+ url = 'rs/sql/applyGetUserinfos'
870
+ } else {
871
+ data = {
872
+ condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
873
+ f_process_id: this.selectdata.f_process_id
874
+ }
875
+ url = 'rs/sql/getAddresAndCumulativePayment'
876
+ }
877
+ let res = await http.load('POST', url, {data:data}, {
878
+ resolveMsg: null,
879
+ rejectMsg: '用户获取失败!!!'
880
+ })
881
+
882
+ if (res.data.length <= 0) {
883
+ this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
884
+ }
885
+
886
+ this.useraddresList = res.data.map(item => {
887
+ return {
888
+ // 有用户姓名地址后拼接姓名
889
+ label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
890
+ value: item
891
+ }
892
+ })
893
+
894
+ },
895
+ async showChargeModal() {
896
+ // this.getUserAddress()
897
+
898
+ if (this.selectdata.f_apply_type === '团购报建') {
899
+ this.charge.f_dev_info_id = this.selectdata.f_dev_id
900
+ }
901
+
902
+ this.showCharge = true
903
+ },
904
+ async search () {
905
+ let http = new HttpResetClass()
906
+ let data = {
907
+ // condition: `cr.f_charge_status != '退款'`,
908
+ f_process_id: this.selectdata.f_process_id
909
+ }
910
+ if (this.selectdata.f_apply_type === '启封通气' && this.selectdata.f_apply_type !== '线下发起'){
911
+ data = {
912
+ f_process_id: this.selectdata.f_parent_process_id
913
+ }
914
+ }
915
+ let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
916
+ resolveMsg: null,
917
+ rejectMsg: '收费记录查询失败!!!'
918
+ })
919
+ this.model.data = res.data
920
+ },
921
+ // 关闭对话框
922
+ closeModal() {
923
+ this.showCharge = false
924
+ this.showInvalid = false
925
+ this.showPrint = false
926
+ this.showConfirm = false
927
+ this.showauditor = false
928
+ this.charge = {
929
+ charges:[]
930
+ }
931
+ this.search()
932
+ }
933
+ },
934
+ events: {
935
+ },
936
+ computed: {
937
+ paymentMethod() {
938
+ return this.$appdata.getParam("付款方式")
939
+ },
940
+ paymentTerm() {
941
+ return this.$appdata.getParam("收费项目")
942
+ }
943
+ },
944
+ watch: {
945
+ }
946
+ }
947
+ </script>
948
+ <style scoped>
949
+ .textNoLineBreak {
950
+ white-space: nowrap;
951
+ }
952
+ .head-but{
953
+ margin-left: 5px;
954
+ height: 34px;
955
+ /*background-color: #6aa6e2;*/
956
+ border-radius: 4px;
957
+ font-family: PingFang;
958
+ color: #ffffff;
959
+ }
960
+ </style>