apply-clients 3.4.2 → 3.4.3

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