apply-clients 3.5.4-8 → 3.5.4-80

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 (103) hide show
  1. package/build/dev-server.js +6 -2
  2. package/package.json +2 -2
  3. package/src/App.vue +4 -4
  4. package/src/apply.js +2 -3
  5. package/src/applyAndroid.js +2 -0
  6. package/src/assets//344/270/213/350/275/275.png +0 -0
  7. package/src/components/android/AppCheckTakePic.vue +168 -0
  8. package/src/components/android/Process/AppServiceControl.vue +4 -0
  9. package/src/components/android/Process/Processes/AppChargeManagementNew.vue +637 -0
  10. package/src/components/image/dxf.png +0 -0
  11. package/src/components/product/Function/Service/FunctionServiceControl.vue +1 -1
  12. package/src/components/product/Material/MaterialDetailed.vue +268 -268
  13. package/src/components/product/MaterialsManage/MaterialsBase.vue +5 -1
  14. package/src/components/product/MaterialsManage/MaterialsManage.vue +2 -2
  15. package/src/components/product/PcZhihuanManagement.vue +160 -0
  16. package/src/components/product/Process/ExplorationSelect.vue +4 -1
  17. package/src/components/product/Process/ExplorationUser.vue +1 -0
  18. package/src/components/product/Process/Processes/chargeManagement.vue +1 -1
  19. package/src/components/product/ServiceView.vue +22 -1
  20. package/src/components/product/Supervisory/SupervisoryControl.vue +1 -0
  21. package/src/filiale/baiyin/android/AppServiceControl.vue +1762 -0
  22. package/src/filiale/baiyin/android/ByAddMaterialScience.vue +823 -0
  23. package/src/filiale/baiyin/android/ByDeviceManagement.vue +916 -0
  24. package/src/filiale/baiyin/android.js +8 -0
  25. package/src/filiale/fugou/android/AppAddMaterialScience.vue +448 -0
  26. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -0
  27. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -625
  28. package/src/filiale/fugou/android/AppDevicesManagement.vue +519 -0
  29. package/src/filiale/fugou/android/AppInstallationDetails.vue +541 -0
  30. package/src/filiale/fugou/android/AppServiceControl.vue +38 -5
  31. package/src/filiale/fugou/android/AppZhihuanManagement.vue +191 -0
  32. package/src/filiale/fugou/android.js +7 -1
  33. package/src/filiale/fugou/pc/AddReplacement.vue +340 -0
  34. package/src/filiale/fugou/pc/ExplorationSelect.vue +525 -0
  35. package/src/filiale/fugou/pc/InstallationDetails.vue +54 -43
  36. package/src/filiale/fugou/pc/ServiceControl.vue +125 -379
  37. package/src/filiale/fugou/pc/ServiceView.vue +941 -0
  38. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -0
  39. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -0
  40. package/src/filiale/fugou/pc/devicesManagement.vue +483 -0
  41. package/src/filiale/fugou/pc.js +13 -7
  42. package/src/filiale/gongyi/android/AppAddMaterialScience.vue +493 -481
  43. package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -0
  44. package/src/filiale/gongyi/android/AppInstallationDetails.vue +15 -10
  45. package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -0
  46. package/src/filiale/gongyi/android/AppSign.vue +16 -3
  47. package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -0
  48. package/src/filiale/gongyi/android.js +3 -0
  49. package/src/filiale/gongyi/pc/ApplyUpload.vue +31 -39
  50. package/src/filiale/gongyi/pc/PcAddLogs.vue +12 -4
  51. package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -0
  52. package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -0
  53. package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +1 -1
  54. package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -0
  55. package/src/filiale/gongyi/pc/addMaterialScience.vue +43 -7
  56. package/src/filiale/gongyi/pc/chargeManagement.vue +765 -0
  57. package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -0
  58. package/src/filiale/gongyi/pc.js +6 -1
  59. package/src/filiale/hongda/pc/SupervisoryList.vue +13 -0
  60. package/src/filiale/jinhuang/pc/ServiceControl.vue +1925 -0
  61. package/src/filiale/jinhuang/pc/chargeManagementNew.vue +589 -0
  62. package/src/filiale/jinhuang/pc.js +7 -0
  63. package/src/filiale/qianneng/android/AppChargeManagement.vue +686 -0
  64. package/src/filiale/qianneng/android/AppExplorationUser.vue +490 -490
  65. package/src/filiale/qianneng/android/AppInstallationDetails.vue +541 -541
  66. package/src/filiale/qianneng/android.js +15 -14
  67. package/src/filiale/qianneng/pc/ApplyUpload.vue +5 -4
  68. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +704 -704
  69. package/src/filiale/qianneng/pc/Applydetail.vue +378 -383
  70. package/src/filiale/qianneng/pc/InstallFunction.vue +188 -188
  71. package/src/filiale/qianneng/pc/InstallationDetails.vue +614 -587
  72. package/src/filiale/qianneng/pc/ServiceControl.vue +1384 -1384
  73. package/src/filiale/qianneng/pc/printactivatecard.vue +311 -311
  74. package/src/filiale/ruihua/pc/ServiceControl.vue +20 -0
  75. package/src/filiale/ruihua/pc/printVentilation.vue +21 -6
  76. package/src/filiale/shexian/android/AppServiceControl.vue +12 -2
  77. package/src/filiale/shexian/android/AppTakePic.vue +15 -55
  78. package/src/filiale/siyangRH/android/AppAddMaterialScience.vue +0 -2
  79. package/src/filiale/siyangRH/pc/ApplyUpload.vue +324 -324
  80. package/src/filiale/siyangRH/pc/chargeManagement.vue +810 -0
  81. package/src/filiale/siyangRH/pc.js +1 -0
  82. package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -511
  83. package/src/filiale/yangchunboneng/android/AppDevicesManagement.vue +639 -609
  84. package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +12 -0
  85. package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +956 -961
  86. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +1681 -1648
  87. package/src/filiale/yangchunboneng/android/AppSuperServiceControl.vue +1 -1
  88. package/src/filiale/yangchunboneng/android/AppUpload.vue +78 -9
  89. package/src/filiale/yangchunboneng/android/MaterIialOne.vue +31 -19
  90. package/src/filiale/yangchunboneng/android.js +1 -1
  91. package/src/filiale/yangchunboneng/pc/ApplyUpload.vue +235 -218
  92. package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +548 -508
  93. package/src/filiale/yangchunboneng/pc/ExplorationUser.vue +191 -0
  94. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2075 -1871
  95. package/src/filiale/yangchunboneng/pc/SupervisoryControlNew.vue +142 -0
  96. package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +69 -14
  97. package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +628 -0
  98. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControl.vue +902 -0
  99. package/src/filiale/yangchunboneng/pc/SupervisoryServiceControlNew.vue +901 -0
  100. package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1117 -0
  101. package/src/filiale/yangchunboneng/pc/chargeManagement.vue +1059 -960
  102. package/src/filiale/yangchunboneng/pc.js +7 -1
  103. package/src/main.js +1 -1
@@ -0,0 +1,589 @@
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
+ v-validate:f_charge_money = "['required']"
153
+ v-model="charge.f_charge_money" />
154
+ </div>
155
+ </div>
156
+ <div class="form-group col-sm-12" :class="[$v.f_payment_method.required ? 'has-error' : '']">
157
+ <label class="col-sm-2 control-label">付款方式:</label>
158
+ <div class="col-sm-10">
159
+ <input type="text" v-show="false" v-model="charge.f_payment_method" v-validate:f_payment_method = "['required']" >
160
+ <input-select
161
+ placeholder='请选择' width="100%"
162
+ v-model="charge.f_payment_method"
163
+ :value.sync="charge.f_payment_method"
164
+ :options='paymentMethod'
165
+ class="select select_list"
166
+ :value-single="true"
167
+ @change="changePaymentMethod()"
168
+ close-on-select ></input-select>
169
+ </div>
170
+ </div>
171
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_name.required ? 'has-error' : '']">
172
+ <label class="col-sm-2 control-label">付款方名称:</label>
173
+ <div class="col-sm-10">
174
+ <input type="text"
175
+ class="form-control input_view"
176
+ style="width: 100%"
177
+ v-validate:f_payer_name = "['required']"
178
+ v-model="charge.f_payer_name" value="" />
179
+ </div>
180
+ </div>
181
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_account.required ? 'has-error' : '']">
182
+ <label class="col-sm-2 control-label">付款方账号:</label>
183
+ <div class="col-sm-10">
184
+ <input type="text" style="width: 100%" class="form-control input_view"
185
+ v-validate:f_payer_account = "['required']"
186
+ v-model="charge.f_payer_account" value=""/>
187
+ </div>
188
+ </div>
189
+ <div class="form-group col-sm-12" v-if="charge.f_payment_method === '银行转账'" :class="[$v.f_payer_number.required ? 'has-error' : '']">
190
+ <label class="col-sm-2 control-label">付款流水号:</label>
191
+ <div class="col-sm-10">
192
+ <input type="text"
193
+ class="form-control input_view"
194
+ style="width: 100%" @change="payerNumberChange()"
195
+ v-validate:f_payer_number = "['required']"
196
+ v-model="charge.f_payer_number" value="" />
197
+ </div>
198
+ </div>
199
+ <div class="form-group col-sm-12">
200
+ <label class="col-sm-2 control-label">金额大写:</label>
201
+ <div class="col-sm-10">
202
+ <input type="text"
203
+ class="form-control input_view"
204
+ style="width: 100%"
205
+ :value="smalltoBIG(0)"
206
+ readonly
207
+ v-model.sync="charge.f_amount_words" />
208
+ </div>
209
+ </div>
210
+ <div class="form-group col-sm-12"
211
+ v-if="selectdata.f_apply_type === '散户集体报建'"
212
+ >
213
+ <label class="col-sm-2 control-label">单价(户):</label>
214
+ <div class="col-sm-10">
215
+ <input type="text"
216
+ class="form-control input_view"
217
+ style="width: 100%"
218
+ readonly
219
+ v-model="selectdata.f_price" />
220
+ </div>
221
+ </div>
222
+ <div class="form-group col-sm-12">
223
+ <label class="col-sm-2 control-label">备注:</label>
224
+ <div class="col-sm-10">
225
+ <input type="text"
226
+ class="form-control input_view"
227
+ style="width: 100%"
228
+ v-model="charge.f_charge_remarks" />
229
+ </div>
230
+ </div>
231
+ <div class="form-group col-sm-12">
232
+ <label class="col-sm-2 control-label">实际收款时间:</label>
233
+ <div class="col-sm-10">
234
+ <datepicker id="startDate" placeholder="实际收款时间"
235
+ style="width: 60%!important;"
236
+ v-model="charge.f_actual_date"
237
+ :value.sync="charge.f_actual_date"
238
+ :format="'yyyy-MM-dd HH:mm:ss'"
239
+ :show-reset-button="true"
240
+ >
241
+ </datepicker>
242
+ </div>
243
+ </div>
244
+ </article>
245
+ <footer slot="modal-footer" class="modal-footer">
246
+ <button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
247
+ </footer>
248
+ </modal>
249
+ </validator>
250
+
251
+ <modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :backdrop="false" title="作废收费">
252
+ <header slot="modal-header" class="modal-header">
253
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
254
+ <h4 class="modal-title">作废收费</h4>
255
+ </header>
256
+ <article slot="modal-body" class="modal-body clearfix">
257
+ <div class="form-group col-sm-12" v-if="false">
258
+ <label class="col-sm-2 control-label">缴费地址:</label>
259
+ <div class="col-sm-10">
260
+ <input type="text"
261
+ class="form-control input_view"
262
+ style="width: 100%"
263
+ readonly
264
+ v-model="charge.f_useraddres" />
265
+ </div>
266
+ </div>
267
+ <div class="form-group col-sm-12">
268
+ <label class="col-sm-2 control-label">收费金额:</label>
269
+ <div class="col-sm-10">
270
+ <input type="text"
271
+ class="form-control input_view"
272
+ style="width: 100%"
273
+ readonly
274
+ v-model="charge.f_charge_money" />
275
+ </div>
276
+ </div>
277
+ <div class="form-group col-sm-12">
278
+ <label class="col-sm-2 control-label">付款方式:</label>
279
+ <div class="col-sm-10">
280
+ <input type="text"
281
+ class="form-control input_view"
282
+ style="width: 100%"
283
+ readonly
284
+ v-model="charge.f_payment_method" />
285
+ </div>
286
+ </div>
287
+ <div class="form-group col-sm-12">
288
+ <label class="col-sm-2 control-label">金额大写:</label>
289
+ <div class="col-sm-10">
290
+ <input type="text"
291
+ class="form-control input_view"
292
+ style="width: 100%"
293
+ readonly
294
+ v-model="charge.f_amount_words" />
295
+ </div>
296
+ </div>
297
+ <div class="form-group col-sm-12">
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_charge_collectors" />
305
+ </div>
306
+ </div>
307
+ <div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
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
+ v-model="charge.f_void_remarks" />
314
+ </div>
315
+ </div>
316
+ </article>
317
+ <footer slot="modal-footer" class="modal-footer">
318
+ <button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
319
+ </footer>
320
+ </modal>
321
+
322
+ <modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
323
+ <header slot="modal-header" class="modal-header">
324
+ <button type="button" class="close" @click="closeModal"><span>&times;</span></button>
325
+ <h4 class="modal-title">打印预览</h4>
326
+ </header>
327
+ <article slot="modal-body" class="modal-body clearfix">
328
+ <apply-print-chargepc :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-chargepc>
329
+ </article>
330
+ <footer slot="modal-footer" class="modal-footer">
331
+ <button type="button" class="btn btn-primary" @click="print()">打印</button>
332
+ </footer>
333
+ </modal>
334
+ </div>
335
+ </template>
336
+ <script>
337
+ import {isEmpty, to3339TimeString} from "../../../components/Util";
338
+ import {PagedList} from 'vue-client'
339
+ import {HttpResetClass} from 'vue-client'
340
+ import Vue from 'vue'
341
+
342
+ export default {
343
+ title: '收费管理',
344
+ props: {
345
+ selectdata: {
346
+ type: Object
347
+ },
348
+ mark: {
349
+ type: Number,
350
+ default: 0
351
+ }
352
+ },
353
+ data () {
354
+ return {
355
+ showCharge: false, // 收费明细
356
+ showInvalid: false, // 作废
357
+ showPrint: false, // 打印
358
+ model: {
359
+ data: null
360
+ }, // 记录
361
+ useraddresList: [], // 地址列表
362
+ charge: {
363
+
364
+ }
365
+ }
366
+ },
367
+ ready () {
368
+ this.search()
369
+ },
370
+ methods: {
371
+ async payerNumberChange () {
372
+ if (isEmpty(this.charge.f_payer_number)) {
373
+ return
374
+ }
375
+ let http = new HttpResetClass()
376
+ let data = {
377
+ tablename: 't_charge_record',
378
+ condition: `f_payer_number = '${this.charge.f_payer_number}'`
379
+ }
380
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
381
+ resolveMsg: null,
382
+ rejectMsg: '流水号查询失败!!!'
383
+ })
384
+ if (res.data.length > 0) {
385
+ this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
386
+ return
387
+ }
388
+ },
389
+ print () {
390
+ this.$refs.print.$refs.print.PrintTable()
391
+ },
392
+ showPrintModal(row) {
393
+ this.charge = row
394
+ this.showPrint = true
395
+ },
396
+ selectAddres () {
397
+ if (this.charge.useraddres) {
398
+ this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
399
+ this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
400
+ } else {
401
+ this.charge.f_cumulative_payment_money = 0
402
+ this.charge.f_outstanding_amount = this.selectdata.f_price
403
+ }
404
+ },
405
+ async invalidApplyCharge() {
406
+ let http = new HttpResetClass()
407
+ let sql = `update t_charge_record set f_charge_status= '作废',f_void_staff='${this.$login.f.name}' ,f_void_remarks='${this.charge.f_void_remarks}' ,f_void_date='${to3339TimeString()}' where id = '${this.charge.id}'`
408
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/runSQL`, {data: {sql: sql}}, {
409
+ resolveMsg: null,
410
+ rejectMsg: '作废失败!!!'
411
+ })
412
+ this.showInvalid=false
413
+ this.search()
414
+ },
415
+ // 打开作废收费
416
+ showInvalidModal(row) {
417
+ this.charge = row
418
+ this.showInvalid = true
419
+ },
420
+ // 新增收费
421
+ async saveCharge() {
422
+ let http = new HttpResetClass()
423
+ let data = {
424
+ apply: this.selectdata,
425
+ user: this.$login.f,
426
+ charge: this.charge
427
+ }
428
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/logic/addChargeRecordNew`, {data:data}, {
429
+ resolveMsg: null,
430
+ rejectMsg: '缴费失败!!!'
431
+ })
432
+ this.showCharge= false
433
+ this.search()
434
+ },
435
+ moneyChange () {
436
+ if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
437
+ this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
438
+ this.charge.f_charge_money = null
439
+ return
440
+ }
441
+ if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.f_charge_money) > Number(this.charge.f_outstanding_amount)) {
442
+ this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
443
+ this.charge.f_charge_money = null
444
+ return
445
+ }
446
+ if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) {
447
+ this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
448
+ this.charge.f_charge_money = null
449
+ return
450
+ }
451
+ },
452
+ // 金额转大写
453
+ handleInput(e) {
454
+ // 通过正则过滤小数点后两位
455
+ e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
456
+ this.charge.f_amount_words = this.smalltoBIG(e.target.value)
457
+ },
458
+ // 金额转大写
459
+ smalltoBIG(n) {
460
+ let fraction = ['角', '分'];
461
+ let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
462
+ let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
463
+ let head = n < 0 ? '欠' : '';
464
+ n = Math.abs(n);
465
+
466
+ let s = '';
467
+
468
+ for (var i = 0; i < fraction.length; i++) {
469
+ s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
470
+ }
471
+ s = s || '整';
472
+ n = Math.floor(n);
473
+
474
+ for (var i = 0; i < unit[0].length && n > 0; i++) {
475
+ let p = '';
476
+ for (var j = 0; j < unit[1].length && n > 0; j++) {
477
+ p = digit[n % 10] + unit[1][j] + p;
478
+ n = Math.floor(n / 10);
479
+ }
480
+ s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
481
+ }
482
+ return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
483
+ },
484
+ async changePaymentMethod () {
485
+ if (this.charge.f_payment_method === '银行转账' && this.selectdata.f_apply_type === '团购报建') {
486
+ let http = new HttpResetClass()
487
+ let data = {
488
+ tablename: 't_dev_info',
489
+ condition: `f_orgid = '${this.$login.f.orgid}' and id = '${this.selectdata.f_dev_id}'`
490
+ }
491
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {data:data}, {
492
+ resolveMsg: null,
493
+ rejectMsg: '开发商档案查询失败!!!'
494
+ })
495
+
496
+ this.charge.f_payer_name = res.data[0].f_dev_name
497
+ this.charge.f_payer_account = res.data[0].f_bank_account
498
+ }
499
+ },
500
+ async getUserAddress() {
501
+ let http = new HttpResetClass()
502
+ let data = {}
503
+ let url = null
504
+ if (this.selectdata.f_apply_type === '改管报建' || this.selectdata.f_apply_type === '增容报建' || this.selectdata.f_apply_type === '报警器报建' || this.selectdata.f_apply_type === '工商业报警器报建' ) {
505
+ data = {
506
+ condition: `ui.f_userinfo_id = ${this.selectdata.f_userinfo_id}`
507
+ }
508
+ url =` ${this.$androidUtil.getProxyUrl()}/rs/sql/applyGetUserinfos`
509
+ } else {
510
+ data = {
511
+ condition: this.selectdata.f_apply_type === '散户集体报建' ? `nvl(cr.f_cumulative_payment_money, 0) < ${this.selectdata.f_price}` : '1=1',
512
+ f_process_id: this.selectdata.f_process_id
513
+ }
514
+ url = `${this.$androidUtil.getProxyUrl()}/rs/sql/getAddresAndCumulativePayment`
515
+ }
516
+ let res = await http.load('POST', url, {data:data}, {
517
+ resolveMsg: null,
518
+ rejectMsg: '用户获取失败!!!'
519
+ })
520
+
521
+ if (res.data.length <= 0) {
522
+ this.$showAlert('暂无需要缴费用户!!!', 'warning', 3000)
523
+ }
524
+
525
+ this.useraddresList = res.data.map(item => {
526
+ return {
527
+ // 有用户姓名地址后拼接姓名
528
+ label: `${item.f_address} ${isEmpty(item.f_user_name) ? '' : '--- ' + item.f_user_name}`,
529
+ value: item
530
+ }
531
+ })
532
+
533
+ },
534
+ async showChargeModal() {
535
+ this.getUserAddress()
536
+
537
+ if (this.selectdata.f_apply_type === '团购报建') {
538
+ this.charge.f_dev_info_id = this.selectdata.f_dev_id
539
+ }
540
+
541
+ this.showCharge = true
542
+ },
543
+ async search () {
544
+ let http = new HttpResetClass()
545
+ let data = {
546
+ f_process_id: this.selectdata.f_process_id
547
+ }
548
+ let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/getApplyChargeRecord`, {data:data}, {
549
+ resolveMsg: null,
550
+ rejectMsg: '收费记录查询失败!!!'
551
+ })
552
+ this.model.data = res.data
553
+ },
554
+ // 关闭对话框
555
+ closeModal() {
556
+ this.showCharge = false
557
+ this.showInvalid = false
558
+ this.showPrint = false
559
+ this.charge = {}
560
+ this.search()
561
+ }
562
+ },
563
+ events: {
564
+ },
565
+ computed: {
566
+ paymentMethod() {
567
+ return this.$appdata.getParam("付款方式")
568
+ },
569
+ paymentTerm() {
570
+ return this.$appdata.getParam("收费项目")
571
+ }
572
+ },
573
+ watch: {
574
+ }
575
+ }
576
+ </script>
577
+ <style scoped>
578
+ .textNoLineBreak {
579
+ white-space: nowrap;
580
+ }
581
+ .head-but{
582
+ margin-left: 5px;
583
+ height: 34px;
584
+ /*background-color: #6aa6e2;*/
585
+ border-radius: 4px;
586
+ font-family: PingFang;
587
+ color: #ffffff;
588
+ }
589
+ </style>
@@ -0,0 +1,7 @@
1
+ import Vue from 'vue'
2
+
3
+ let specialComp = {
4
+ 'apply-charge-management-new': (resolve) => { require(['./pc/chargeManagementNew'], resolve) },
5
+ 'service-control': (resolve) => { require(['./pc/ServiceControl.vue'], resolve) }
6
+ }
7
+ exports.specialComp = specialComp