apply-clients 3.4.63 → 3.4.64

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