apply-clients 3.5.4-95 → 3.5.4-97

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 (39) hide show
  1. package/build/dev-server.js +9 -7
  2. package/package.json +1 -1
  3. package/src/App.vue +25 -25
  4. package/src/apply.js +139 -139
  5. package/src/components/android/AppCheckTakePic.vue +168 -168
  6. package/src/components/android/Process/AppExplorationUser.vue +508 -508
  7. package/src/components/android/Process/AppServiceControl.vue +1755 -1755
  8. package/src/components/product/PcZhihuanManagement.vue +160 -160
  9. package/src/components/product/Print/BuildOrder/buildOrderList.vue +339 -339
  10. package/src/components/product/Process/Processes/selectApply.vue +251 -251
  11. package/src/components/product/Process/Processes/selectBcakApply.vue +250 -250
  12. package/src/filiale/ancheng/android/AppSign.vue +149 -149
  13. package/src/filiale/ancheng/android/AppTakePic.vue +143 -143
  14. package/src/filiale/ancheng/android.js +7 -7
  15. package/src/filiale/fugou/android/AppAddReplacement.vue +341 -341
  16. package/src/filiale/fugou/android/AppChargeManagement.vue +739 -739
  17. package/src/filiale/fugou/android/AppZhihuanManagement.vue +230 -230
  18. package/src/filiale/fugou/pc/AddReplacement.vue +340 -340
  19. package/src/filiale/fugou/pc/ApplyChargeList.vue +480 -480
  20. package/src/filiale/fugou/pc/addMaterialScience.vue +481 -481
  21. package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +216 -216
  22. package/src/filiale/fugou/pc/chargeReport.vue +143 -143
  23. package/src/filiale/fugou/pc.js +16 -16
  24. package/src/filiale/hongda/pc/ApplyDetailsList.vue +329 -329
  25. package/src/filiale/qianneng/android/AppServiceView.vue +795 -795
  26. package/src/filiale/qianneng/pc/ApplyChargeList.vue +639 -625
  27. package/src/filiale/qianneng/pc/Applybatchdispatch.vue +769 -704
  28. package/src/filiale/qianneng/pc/Applydetail.vue +417 -378
  29. package/src/filiale/qianneng/pc/InstallInfoSelect.vue +434 -391
  30. package/src/filiale/qianneng/pc/ServiceControl.vue +1382 -1384
  31. package/src/filiale/qianneng/pc/StopApplyList.vue +334 -290
  32. package/src/filiale/qianneng/pc/SupervisoryList.vue +396 -382
  33. package/src/filiale/qianneng/pc/chargeManagement.vue +813 -810
  34. package/src/filiale/yangchunboneng/android/AppServiceControl.vue +2 -2
  35. package/src/filiale/yangchunboneng/pc/ServiceControl.vue +1 -1
  36. package/src/main.js +23 -22
  37. package/src/test/SessionTestServlet.java +0 -69
  38. package/webapp/WEB-INF/web.xml +0 -52
  39. package/webapp/session-test.jsp +0 -59
@@ -1,625 +1,639 @@
1
- <template>
2
- <criteria-paged :model="model" v-ref:cp>
3
- <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
4
- <div class="form-horizontal select-overspread container-fluid auto" partial>
5
- <div class="row">
6
- <div class="form-group col-sm-3">
7
- <label class="font_normal_body">组织机构:</label>
8
- <res-select
9
- restype='organization'
10
- :initresid='$parent.$parent.curorgid'
11
- @res-select="$parent.$parent.getorg"
12
- :is-mul="false"
13
- ></res-select>
14
- </div>
15
- <div class="form-group col-sm-3">
16
- <label for="startDate" class="font_normal_body">开始时间:</label>
17
- <datepicker id="startDate" placeholder="开始日期"
18
- style="width: 60%!important;"
19
- v-model="model.startDate"
20
- :value.sync="model.startDate"
21
- :format="'yyyy-MM-dd 00:00:00'"
22
- :show-reset-button="true"
23
- condition="cr.f_charge_date >= '{}'">
24
- </datepicker>
25
- </div>
26
- <div class="form-group col-sm-3">
27
- <label for="endDate" class="font_normal_body">结束时间:</label>
28
- <datepicker id="endDate" placeholder="结束日期"
29
- style="width: 60%!important;"
30
- v-model="model.endDate"
31
- :value.sync="model.endDate"
32
- :format="'yyyy-MM-dd 23:59:59'"
33
- :show-reset-button="true"
34
- condition="cr.f_charge_date <= '{}'">
35
- </datepicker>
36
- </div>
37
- <div class="form-group col-sm-3 button-range">
38
- <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
39
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
- <export-excel :data="$parent.$parent.getCondition"
41
- :field="$parent.$parent.getfield"
42
- sqlurl="rs/logic/applyExportfile"
43
- sql-name="getApplyCharge"
44
- template-name='收费记录信息导出'
45
- :choose-col="true"></export-excel>
46
- <div
47
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
- @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
49
- class="button_spacing"
50
- style="float: right">
51
- </div>
52
- </div>
53
- </div>
54
- <div class="row" v-show="$parent.$parent.criteriaShow">
55
- <div class="form-group col-sm-3">
56
- <label class="font_normal_body">用户编号:</label>
57
- <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
58
- v-on:keyup.enter="$parent.$parent.search()"
59
- condition="f_userinfo_code like '%{}%'">
60
- </div>
61
- <div class="form-group col-sm-3">
62
- <label class="font_normal_body">工程编号:</label>
63
- <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
64
- v-on:keyup.enter="$parent.$parent.search()"
65
- condition="a.f_apply_num like '%{}%'">
66
- </div>
67
- <div class="form-group col-sm-3">
68
- <label class="font_normal_body">合同编号:</label>
69
- <input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
70
- v-on:keyup.enter="$parent.$parent.search()"
71
- condition="a.f_contract_number = '{}'">
72
- </div>
73
- <div class="form-group col-sm-3">
74
- <label class="font_normal_body">报建类型:</label>
75
- <v-select
76
- v-model="model.f_apply_type"
77
- placeholder='请选择'
78
- condition="a.f_apply_type = '{}'"
79
- :value.sync="model.f_apply_type"
80
- :options='$parent.$parent.applytype'
81
- class="select select_list"
82
- :value-single="true"
83
- @change="$parent.$parent.applyTypeChange()"
84
- close-on-select ></v-select>
85
- </div>
86
- <div class="form-group col-sm-3">
87
- <label class="font_normal_body">报建性质:</label>
88
- <v-select
89
- v-model="model.f_apply_nature"
90
- placeholder='报建性质'
91
- condition="a.f_apply_nature = '{}'"
92
- :value.sync="model.f_apply_nature"
93
- :options='$parent.$parent.applyNatures'
94
- class="select select_list"
95
- :value-single="true"
96
- close-on-select ></v-select>
97
- </div>
98
- <div class="form-group col-sm-3">
99
- <label class="font_normal_body">用户名称:</label>
100
- <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
101
- v-on:keyup.enter="$parent.$parent.search()" condition="a.f_user_name like '%{}%'" placeholder='用户名称'>
102
- </div>
103
- <div class="form-group col-sm-3">
104
- <label class="font_normal_body">用户电话:</label>
105
- <input type="text" style="width:60%" class="input_search" placeholder='用户电话' v-model="model.f_phone"
106
- v-on:keyup.enter="$parent.$parent.search()"
107
- condition="a.f_phone like '%{}%'">
108
- </div>
109
- <div class="form-group col-sm-3">
110
- <label class="font_normal_body">用户地址:</label>
111
- <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
112
- v-on:keyup.enter="$parent.$parent.search()"
113
- condition="a.f_address like '%{}%'">
114
- </div>
115
- <div class="form-group col-sm-3">
116
- <label class="font_normal_body">身份证号:</label>
117
- <input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
118
- v-on:keyup.enter="$parent.$parent.search()"
119
- condition="a.f_idnumber like '%{}%'">
120
- </div>
121
- <div class="form-group col-sm-3">
122
- <label class="font_normal_body">缴费编码:</label>
123
- <input type="text" class="input_search" style="width: 60%" placeholder='缴费编码' v-model="model.f_charge_number"
124
- v-on:keyup.enter="$parent.$parent.search()"
125
- condition="cr.f_charge_number like '%{}%'">
126
- </div>
127
- <div class="form-group col-sm-3">
128
- <label class="font_normal_body">付款方式:</label>
129
- <v-select
130
- v-model="model.f_payment_method"
131
- placeholder='请选择'
132
- condition="cr.f_payment_method = '{}'"
133
- :value.sync="model.f_payment_method"
134
- :options='$parent.$parent.paymentMethod'
135
- class="select select_list"
136
- :value-single="true"
137
- close-on-select ></v-select>
138
- </div>
139
- <div class="form-group col-sm-3">
140
- <label class="font_normal_body">收费类型:</label>
141
- <v-select
142
- v-model="model.f_payment_type"
143
- placeholder='收费类型'
144
- condition="cr.f_payment_type = '{}'"
145
- :value.sync="model.f_payment_type"
146
- :options='$parent.$parent.paymenttype'
147
- class="select select_list"
148
- :value-single="true"
149
- close-on-select ></v-select>
150
- </div>
151
- <div class="form-group col-sm-3">
152
- <label class="font_normal_body">收费项目:</label>
153
- <v-select
154
- v-model="model.f_payment_term"
155
- placeholder='请选择'
156
- condition="cr.f_payment_term = '{}'"
157
- :value.sync="model.f_payment_term"
158
- :options='$parent.$parent.paymentTerm'
159
- class="select select_list"
160
- :value-single="true"
161
- close-on-select ></v-select>
162
- </div>
163
- <div class="form-group col-sm-3">
164
- <label class="font_normal_body">流&ensp;水&ensp;号:</label>
165
- <input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
166
- v-on:keyup.enter="$parent.$parent.search()"
167
- condition="cr.f_payer_number = '{}'">
168
- </div>
169
- <div class="form-group col-sm-3">
170
- <label class="font_normal_body">入户证号:</label>
171
- <input type="text" style="width:60%" class="input_search" placeholder='入户证号' v-model="model.f_entry_number"
172
- v-on:keyup.enter="$parent.$parent.search()"
173
- condition="a.f_entry_number like '%{}%'">
174
- </div>
175
- <div class="form-group col-sm-3">
176
- <label class="font_normal_body">部&emsp;&emsp;门:</label>
177
- <res-select
178
- restype='department'
179
- :parentresid="$parent.$parent.curorgid"
180
- :initresid='$parent.$parent.curdepid'
181
- @res-select="$parent.$parent.getdep"
182
- :is-mul="true"
183
- ></res-select>
184
- </div>
185
- <div class="form-group col-sm-3">
186
- <label class="font_normal_body">人&emsp;&emsp;员:</label>
187
- <res-select
188
- restype='user'
189
- :parentresid="$parent.$parent.curdepid"
190
- :initresid='$parent.$parent.curuserid'
191
- @res-select="$parent.$parent.getuser"
192
- :is-mul="true"></res-select>
193
- </div>
194
- <div class="form-group col-sm-3">
195
- <label class="font_normal_body">缴费状态:</label>
196
- <v-select
197
- v-model="model.f_charge_status"
198
- placeholder='请选择'
199
- condition="cr.f_charge_status = '{}'"
200
- :value.sync="model.f_charge_status"
201
- :options='$parent.$parent.chargeStatus'
202
- class="select select_list"
203
- :value-single="true"
204
- close-on-select ></v-select>
205
- </div>
206
- <div class="form-group col-sm-3">
207
- <label class="font_normal_body">服&ensp;务&ensp;人:</label>
208
- <v-select
209
- v-model="model.f_servicer"
210
- placeholder='请选择'
211
- condition="a.f_servicer = '{}'"
212
- :value.sync="model.f_servicer"
213
- class="select select_list"
214
- :options='$parent.$parent.servicerList'
215
- :value-single="true"
216
- close-on-select ></v-select>
217
- </div>
218
- <div class="form-group col-sm-3">
219
- <label class="font_normal_body">报建发起人:</label>
220
- <v-select
221
- v-model="model.f_operator"
222
- placeholder='请选择'
223
- condition="a.f_operator = '{}'"
224
- :value.sync="model.f_operator"
225
- class="select select_list"
226
- :options='$parent.$parent.operatorList'
227
- :value-single="true"
228
- close-on-select ></v-select>
229
- </div>
230
- <div class="form-group col-sm-3">
231
- <label class="font_normal_body">可派工数>:</label>
232
- <input type="text" style="width: 60%" class="input_search" placeholder='可派工数>=' v-model="model.f_installed_households1"
233
- condition="cr.f_installed_households >= {}">
234
- </div>
235
- <div class="form-group col-sm-3">
236
- <label class="font_normal_body">可派工数<:</label>
237
- <input type="text" style="width: 60%" class="input_search" placeholder='可派工数<=' v-model="model.f_installed_households"
238
- condition="cr.f_installed_households <= {}">
239
- </div>
240
- <div class="form-group col-sm-3">
241
- <label class="font_normal_body">可派工数是否为空:</label>
242
- <v-select
243
- v-model="model.f_installed_households2"
244
- placeholder='请选择'
245
- condition="cr.f_installed_households {}"
246
- :value.sync="model.f_installed_households2"
247
- class="select select_list"
248
- :options='$parent.$parent.installedhousehold'
249
- :value-single="true"
250
- close-on-select ></v-select>
251
- </div>
252
- </div>
253
- </div>
254
- </criteria>
255
- <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
256
- <template partial='head'>
257
- <tr>
258
- <th style="white-space: nowrap;">序号</th>
259
- <th style="white-space: nowrap;">工程编号</th>
260
- <th style="white-space: nowrap;">合同编号</th>
261
- <th style="white-space: nowrap;">报建类型</th>
262
- <th style="white-space: nowrap;">报建性质</th>
263
- <th style="white-space: nowrap;">用户编号</th>
264
- <th style="white-space: nowrap;">用户名称</th>
265
- <th style="white-space: nowrap;">用户电话</th>
266
- <th style="white-space: nowrap;">用户地址</th>
267
- <th style="white-space: nowrap;">身份证号</th>
268
- <th style="white-space: nowrap;">入户证号</th>
269
- <th style="white-space: nowrap;">缴费编码</th>
270
- <th style="white-space: nowrap;">收费类型</th>
271
- <th style="white-space: nowrap;">收费项目</th>
272
- <th style="white-space: nowrap;">可派工数</th>
273
- <th style="white-space: nowrap;">收费金额(退款金额)</th>
274
- <th style="white-space: nowrap;">付款方式</th>
275
- <th style="white-space: nowrap;">流水号</th>
276
- <th style="white-space: nowrap;">服务人</th>
277
- <th style="white-space: nowrap;">报建发起人</th>
278
- <th style="white-space: nowrap;">收费人员(退款人员)</th>
279
- <th style="white-space: nowrap;">收费日期(退款日期)</th>
280
- <th style="white-space: nowrap;">冲正人员</th>
281
- <th style="white-space: nowrap;">冲正原因</th>
282
- <th style="white-space: nowrap;">实际收费时间</th>
283
- <th style="white-space: nowrap;">备注</th>
284
- <th style="white-space: nowrap;">状态</th>
285
- </tr>
286
- </template>
287
- <template partial='body'>
288
- <tr >
289
- <td style="text-align: center;">
290
- <nobr><font>{{$index+1}}</font></nobr>
291
- </td>
292
- <td style="text-align: center;">
293
- <nobr><font>{{row.f_apply_num}}</font></nobr>
294
- </td>
295
- <td style="text-align: center;">
296
- <nobr><font>{{row.f_contract_number}}</font></nobr>
297
- </td>
298
- <td style="text-align: center;">
299
- <nobr><font>{{row.f_apply_type}}</font></nobr>
300
- </td>
301
- <td style="text-align: center;">
302
- <nobr><font>{{row.f_apply_nature}}</font></nobr>
303
- </td>
304
- <td style="text-align: center;">
305
- <nobr><font>{{row.f_userinfo_code}}</font></nobr>
306
- </td>
307
- <td style="text-align: center;">
308
- <nobr v-if="$parent.$parent.$parent.$login.f.f_role_name.includes('收费明细修改')" ><font><a @click="$parent.$parent.$parent.showCharges(row)">{{row.f_user_name}}</a></font></nobr>
309
- <nobr v-else><font>{{row.f_user_name}}</font></nobr>
310
- </td>
311
- <td style="text-align: center;">
312
- <nobr><font>{{row.f_phone}}</font></nobr>
313
- </td>
314
- <td style="text-align: center;">
315
- <nobr><font>{{row.f_address}}</font></nobr>
316
- </td>
317
- <td style="text-align: center;">
318
- <nobr><font>{{row.f_idnumber}}</font></nobr>
319
- </td>
320
- <td style="text-align: center;">
321
- <nobr><font>{{row.f_entry_number}}</font></nobr>
322
- </td>
323
- <td style="text-align: center;">
324
- <nobr><font>{{row.f_charge_number}}</font></nobr>
325
- </td>
326
- <td style="text-align: center;">
327
- <nobr><font>{{row.f_payment_type}}</font></nobr>
328
- </td>
329
- <td style="text-align: center;">
330
- <nobr><font>{{row.f_payment_term}}</font></nobr>
331
- </td>
332
- <td style="text-align: center;">
333
- <nobr><font>{{row.f_installed_households}}</font></nobr>
334
- </td>
335
- <td style="text-align: center;">
336
- <nobr><font>{{$parent.$parent.$parent.formatCurrency(row.f_charge_money,2)}}</font></nobr>
337
- </td>
338
- <td style="text-align: center;">
339
- <nobr><font>{{row.f_payment_method}}</font></nobr>
340
- </td>
341
- <td style="text-align: center;">
342
- <nobr><font>{{row.f_payer_number}}</font></nobr>
343
- </td>
344
- <td style="text-align: center;">
345
- <nobr><font>{{row.f_servicer}}</font></nobr>
346
- </td>
347
- <td style="text-align: center;">
348
- <nobr><font>{{row.f_operator}}</font></nobr>
349
- </td>
350
- <td style="text-align: center;">
351
- <nobr><font>{{row.f_charge_collectors}}</font></nobr>
352
- </td>
353
- <td style="text-align: center;">
354
- <nobr><font>{{row.f_charge_date}}</font></nobr>
355
- </td>
356
- <td style="text-align: center;">
357
- <nobr><font>{{row.f_void_staff}}</font></nobr>
358
- </td>
359
- <td style="text-align: center;">
360
- <nobr><font>{{row.f_void_remarks}}</font></nobr>
361
- </td>
362
- <td style="text-align: center;">
363
- <nobr><font>{{row.f_actual_date}}</font></nobr>
364
- </td>
365
- <td style="text-align: center;">
366
- <nobr><font>{{row.f_charge_remarks}}</font></nobr>
367
- </td>
368
- <td style="text-align: center;">
369
- <nobr><font>{{row.f_charge_status}}</font></nobr>
370
- </td>
371
- </tr>
372
- </template>
373
- </data-grid>
374
- </criteria-paged>
375
- <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
376
- <header slot="modal-header" class="modal-header">
377
- <button type="button" class="close" @click="showCharge = false"><span>&times;</span></button>
378
- <h4 class="modal-title">收费明细</h4>
379
- </header>
380
- <article slot="modal-body" class="modal-body clearfix">
381
- <div class="form-group col-sm-12">
382
- <label class="col-sm-2 control-label">收费项目:</label>
383
- <div class="col-sm-10">
384
- <input-select
385
- width="100%"
386
- class="select select_list"
387
- placeholder='请选择'
388
- v-model="charge.f_payment_term"
389
- :value.sync="charge.f_payment_term"
390
- :options='paymentTerm'
391
- :value-single="true"
392
- close-on-select ></input-select>
393
- </div>
394
- </div>
395
- <div class="form-group col-sm-12">
396
- <label class="col-sm-2 control-label">付款方式:</label>
397
- <div class="col-sm-10">
398
- <input-select
399
- placeholder='请选择' width="100%"
400
- v-model="charge.f_payment_method"
401
- :value.sync="charge.f_payment_method"
402
- :options='paymentMethod'
403
- class="select select_list"
404
- :value-single="true"
405
- close-on-select ></input-select>
406
- </div>
407
- </div>
408
- </article>
409
- <footer slot="modal-footer" class="modal-footer">
410
- <button type="button" class="btn btn-primary" @click="savedefname()">确认修改</button>
411
- </footer>
412
- </modal>
413
- </template>
414
-
415
- <script>
416
- import {PagedList} from 'vue-client'
417
- import {HttpResetClass} from 'vue-client'
418
- import {isEmpty} from"../../../components/Util";
419
- export default {
420
- title: '报建收费列表',
421
- data () {
422
- return {
423
- model: new PagedList('rs/sql/getApplyCharge', 30, null, {
424
- f_charge_money: 0
425
- }),
426
- curorgid: [this.$login.f.orgid],
427
- curdepid: [],
428
- servicerList:[],
429
- operatorList:[],
430
- curuserid: [],
431
- paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
432
- paymenttype :[{label: '全部', value: ''}, ...this.$appdata.getParam('报建-收费类型')],
433
- applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
434
- applyNatures: [{label: '全部', value: ''},...this.$appdata.getParam('报建性质')], // 报建性质
435
- paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
436
- chargeStatus: [{label: '全部', value: ''}, ...this.$appdata.getParam('缴费状态')],
437
- installedhousehold: [{label: '全部', value: ''},{label: '是', value: 'is null'},{label: '否', value: 'is not null'}],
438
- criteriaShow: false,
439
- chargeAll: {
440
- count: 0,
441
- sum: 0
442
- },
443
- showCharge:false,
444
- charge:{},
445
- getfield: {
446
- 'f_apply_num': '工程编号',
447
- 'f_contract_number': '合同编号',
448
- 'f_apply_type': '报建类型',
449
- 'f_apply_nature': '报建性质',
450
- 'f_userinfo_code': '用户编号',
451
- 'f_user_name': '用户名称',
452
- 'f_phone': '用户电话',
453
- 'f_address': '用户地址',
454
- 'f_idnumber': '身份证号',
455
- 'f_entry_number': '入户证号',
456
- 'f_payment_type': '收费类型',
457
- 'f_payment_term': '收费项目',
458
- 'f_installed_households': '可派工数',
459
- 'f_charge_number': '缴费编码',
460
- 'f_charge_money': '收费金额',
461
- 'f_payment_method': '付款方式',
462
- 'f_payer_number': '流水号',
463
- 'f_charge_collectors': '收费人员',
464
- 'f_charge_date': '收费日期',
465
- 'f_actual_date': '实际收费时间',
466
- 'f_charge_remarks': '备注',
467
- 'f_charge_status': '状态'
468
- }
469
- }
470
- },
471
- ready () {
472
- // 调用查询
473
- this.search()
474
- this.getservicer()
475
- this.getapplyoperator()
476
- },
477
- methods: {
478
- showCharges(row){
479
- this.showCharge = true
480
- this.charge = row
481
- },
482
- savedefname(){
483
- if(isEmpty(this.charge.f_payment_method )){
484
- return this.$showMessage('付款方式不能为空!!')
485
- }
486
- if(isEmpty(this.charge.f_payment_term )){
487
- return this.$showMessage('收费项目不能为空!!')
488
- }
489
- new HttpResetClass().load('POST', 'rs/entity/t_charge_record', {
490
- id: this.charge.id,
491
- f_payment_method: this.charge.f_payment_method,
492
- f_payment_term: this.charge.f_payment_term,
493
- version: this.charge.version
494
- }, {resolveMsg: '修改成功', rejectMsg: '修改失败'})
495
- .then(res => {
496
- this.showCharge = false
497
- this.search()
498
- })
499
- },
500
- formatCurrency(number, decimalPlaces) {
501
- var num = parseFloat(number);
502
- if (!isNaN(num)) {
503
- num = num.toFixed(decimalPlaces || 0); // 将金额保留指定位数,四舍五入
504
- num = num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); // 按照千分位进行分隔
505
- return num;
506
- } else {
507
- return ''; // 如果输入框中的值不是数字,则返回空字符串
508
- }
509
- },
510
- async getservicer(){
511
- let data = {
512
- tablename: 't_user',
513
- condition: `1=1`
514
- }
515
- let http = new HttpResetClass()
516
- let res = await http.load(
517
- 'POST',
518
- `rs/sql/apply_singleTable`,
519
- {data: data},
520
- {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
521
- )
522
- res.data.forEach(item => {
523
- this.servicerList.push({
524
- 'label': item.name,
525
- 'value': item.name
526
- })
527
- })},
528
-
529
- async getapplyoperator(){
530
- let data = {
531
- condition: `f_orgid in (${this.curorgid})`
532
- }
533
- let http = new HttpResetClass()
534
- let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
535
- res.data.forEach(item => {
536
- this.operatorList.push({
537
- 'label': item.f_operator,
538
- 'value': item.f_operator
539
- })
540
- })},
541
-
542
- applyTypeChange () {
543
- if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
544
- this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
545
- } else {
546
- this.applyNatures = [{label: '全部', value: ''}]
547
- }
548
- },
549
- clear () {
550
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
551
- this.$refs.cp.$refs.cri.model[key] = ''
552
- })
553
- this.curdepid = []
554
- this.curuserid = []
555
- },
556
- searchCondition (args) {
557
- args.condition = args.condition + ` and cr.f_orgid in ('${this.curorgid.join("','")}')`
558
- if (this.curdepid.length > 0) {
559
- args.condition = args.condition + ` and cr.f_depid in ('${this.curdepid.join("','")}')`
560
- }
561
- if (this.curuserid.length > 0) {
562
- args.condition = args.condition + ` and cr.f_charge_collectors_id in ('${this.curuserid.join("','")}')`
563
- }
564
- args.condition += ` and cr.f_charge_status !='作废'`
565
- this.model.search(args.condition, args.model)
566
- },
567
- // 查询
568
- search () {
569
- this.$refs.cp.$refs.cri.search()
570
- this.getChargeAll()
571
- this.getapplyoperator()
572
- },
573
- async getChargeAll () {
574
- let http = new HttpResetClass()
575
- let data = {
576
- condition: this.model.condition
577
- }
578
- let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
579
-
580
- this.chargeAll = res.data[0]
581
- },
582
- getuser (val) {
583
- if (val.length <= 0) {
584
- return
585
- }
586
- this.curuserid = val
587
- this.search()
588
- },
589
- getdep (val) {
590
- if (val.length <= 0) {
591
- return
592
- }
593
- this.curdepid = val
594
- this.curuserid = []
595
- this.search()
596
- },
597
- getorg (val) {
598
- if (val.length <= 0) {
599
- return
600
- }
601
- this.curorgid = val
602
- this.curdepid = []
603
- this.curuserid = []
604
- this.search()
605
- },
606
-
607
- },
608
- computed: {
609
- getCondition () {
610
- return {
611
- condition: this.model.condition
612
- }
613
- },
614
- paymentMethod() {
615
- return this.$appdata.getParam("付款方式")
616
- },
617
- paymentTerm() {
618
- return this.$appdata.getParam("收费项目")
619
- }
620
- }
621
- }
622
- </script>
623
-
624
- <style scoped>
625
- </style>
1
+ <template>
2
+ <criteria-paged :model="model" v-ref:cp>
3
+ <criteria partial='criteria' @condition-changed='$parent.searchCondition' v-ref:cri>
4
+ <div class="form-horizontal select-overspread container-fluid auto" partial>
5
+ <div class="row">
6
+ <div class="form-group col-sm-3">
7
+ <label class="font_normal_body">组织机构:</label>
8
+ <res-select
9
+ restype='organization'
10
+ :initresid='$parent.$parent.curorgid'
11
+ @res-select="$parent.$parent.getorg"
12
+ :is-mul="false"
13
+ ></res-select>
14
+ </div>
15
+ <div class="form-group col-sm-3">
16
+ <label for="startDate" class="font_normal_body">开始时间:</label>
17
+ <datepicker id="startDate" placeholder="开始日期"
18
+ style="width: 60%!important;"
19
+ v-model="model.startDate"
20
+ :value.sync="model.startDate"
21
+ :format="'yyyy-MM-dd 00:00:00'"
22
+ :show-reset-button="true"
23
+ condition="cr.f_charge_date >= '{}'">
24
+ </datepicker>
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label for="endDate" class="font_normal_body">结束时间:</label>
28
+ <datepicker id="endDate" placeholder="结束日期"
29
+ style="width: 60%!important;"
30
+ v-model="model.endDate"
31
+ :value.sync="model.endDate"
32
+ :format="'yyyy-MM-dd 23:59:59'"
33
+ :show-reset-button="true"
34
+ condition="cr.f_charge_date <= '{}'">
35
+ </datepicker>
36
+ </div>
37
+ <div class="form-group col-sm-3 button-range">
38
+ <button class="button_search button_spacing" @click="$parent.$parent.search()" v-el:cx>查询</button>
39
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
40
+ <export-excel :data="$parent.$parent.getCondition"
41
+ :field="$parent.$parent.getfield"
42
+ sqlurl="rs/logic/applyExportfile"
43
+ sql-name="getApplyCharge"
44
+ template-name='收费记录信息导出'
45
+ :choose-col="true"></export-excel>
46
+ <div
47
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
48
+ @click="$parent.$parent.criteriaShow = !$parent.$parent.criteriaShow"
49
+ class="button_spacing"
50
+ style="float: right">
51
+ </div>
52
+ </div>
53
+ </div>
54
+ <div class="row" v-show="$parent.$parent.criteriaShow">
55
+ <div class="form-group col-sm-3">
56
+ <label class="font_normal_body">用户编号:</label>
57
+ <input type="text" style="width:60%" class="input_search" placeholder='用户编号' v-model="model.f_userinfo_code"
58
+ v-on:keyup.enter="$parent.$parent.search()"
59
+ condition="f_userinfo_code like '%{}%'">
60
+ </div>
61
+ <div class="form-group col-sm-3">
62
+ <label class="font_normal_body">工程编号:</label>
63
+ <input type="text" style="width: 60%" class="input_search" placeholder='工程编号' v-model="model.f_apply_num"
64
+ v-on:keyup.enter="$parent.$parent.search()"
65
+ condition="a.f_apply_num like '%{}%'">
66
+ </div>
67
+ <div class="form-group col-sm-3">
68
+ <label class="font_normal_body">合同编号:</label>
69
+ <input type="text" style="width: 60%" class="input_search" placeholder='合同编号' v-model="model.f_contract_number"
70
+ v-on:keyup.enter="$parent.$parent.search()"
71
+ condition="a.f_contract_number = '{}'">
72
+ </div>
73
+ <div class="form-group col-sm-3">
74
+ <label class="font_normal_body">报建类型:</label>
75
+ <v-select
76
+ v-model="model.f_apply_type"
77
+ placeholder='请选择'
78
+ condition="a.f_apply_type = '{}'"
79
+ :value.sync="model.f_apply_type"
80
+ :options='$parent.$parent.applytype'
81
+ class="select select_list"
82
+ :value-single="true"
83
+ @change="$parent.$parent.applyTypeChange()"
84
+ close-on-select ></v-select>
85
+ </div>
86
+ <div class="form-group col-sm-3">
87
+ <label class="font_normal_body">报建性质:</label>
88
+ <v-select
89
+ v-model="model.f_apply_nature"
90
+ placeholder='报建性质'
91
+ condition="a.f_apply_nature = '{}'"
92
+ :value.sync="model.f_apply_nature"
93
+ :options='$parent.$parent.applyNatures'
94
+ class="select select_list"
95
+ :value-single="true"
96
+ close-on-select ></v-select>
97
+ </div>
98
+ <div class="form-group col-sm-3">
99
+ <label class="font_normal_body">用户名称:</label>
100
+ <input type="text" style="width:60%" class="input_search" v-model="model.f_user_name"
101
+ v-on:keyup.enter="$parent.$parent.search()" condition="a.f_user_name like '%{}%'" placeholder='用户名称'>
102
+ </div>
103
+ <div class="form-group col-sm-3">
104
+ <label class="font_normal_body">用户电话:</label>
105
+ <input type="text" style="width:60%" class="input_search" placeholder='用户电话' v-model="model.f_phone"
106
+ v-on:keyup.enter="$parent.$parent.search()"
107
+ condition="a.f_phone like '%{}%'">
108
+ </div>
109
+ <div class="form-group col-sm-3">
110
+ <label class="font_normal_body">用户地址:</label>
111
+ <input type="text" style="width:60%" class="input_search" placeholder='用户地址' v-model="model.f_address"
112
+ v-on:keyup.enter="$parent.$parent.search()"
113
+ condition="a.f_address like '%{}%'">
114
+ </div>
115
+ <div class="form-group col-sm-3">
116
+ <label class="font_normal_body">身份证号:</label>
117
+ <input type="text" style="width:60%" class="input_search" placeholder='身份证号' v-model="model.f_idnumber"
118
+ v-on:keyup.enter="$parent.$parent.search()"
119
+ condition="a.f_idnumber like '%{}%'">
120
+ </div>
121
+ <div class="form-group col-sm-3">
122
+ <label class="font_normal_body">缴费编码:</label>
123
+ <input type="text" class="input_search" style="width: 60%" placeholder='缴费编码' v-model="model.f_charge_number"
124
+ v-on:keyup.enter="$parent.$parent.search()"
125
+ condition="cr.f_charge_number like '%{}%'">
126
+ </div>
127
+ <div class="form-group col-sm-3">
128
+ <label class="font_normal_body">付款方式:</label>
129
+ <v-select
130
+ v-model="model.f_payment_method"
131
+ placeholder='请选择'
132
+ condition="cr.f_payment_method = '{}'"
133
+ :value.sync="model.f_payment_method"
134
+ :options='$parent.$parent.paymentMethod'
135
+ class="select select_list"
136
+ :value-single="true"
137
+ close-on-select ></v-select>
138
+ </div>
139
+ <div class="form-group col-sm-3">
140
+ <label class="font_normal_body">收费类型:</label>
141
+ <v-select
142
+ v-model="model.f_payment_type"
143
+ placeholder='收费类型'
144
+ condition="cr.f_payment_type = '{}'"
145
+ :value.sync="model.f_payment_type"
146
+ :options='$parent.$parent.paymenttype'
147
+ class="select select_list"
148
+ :value-single="true"
149
+ close-on-select ></v-select>
150
+ </div>
151
+ <div class="form-group col-sm-3">
152
+ <label class="font_normal_body">收费项目:</label>
153
+ <v-select
154
+ v-model="model.f_payment_term"
155
+ placeholder='请选择'
156
+ condition="cr.f_payment_term = '{}'"
157
+ :value.sync="model.f_payment_term"
158
+ :options='$parent.$parent.paymentTerm'
159
+ class="select select_list"
160
+ :value-single="true"
161
+ close-on-select ></v-select>
162
+ </div>
163
+ <div class="form-group col-sm-3">
164
+ <label class="font_normal_body">流&ensp;水&ensp;号:</label>
165
+ <input type="text" style="width: 60%" class="input_search" placeholder='流水号' v-model="model.f_payer_number"
166
+ v-on:keyup.enter="$parent.$parent.search()"
167
+ condition="cr.f_payer_number = '{}'">
168
+ </div>
169
+ <div class="form-group col-sm-3">
170
+ <label class="font_normal_body">入户证号:</label>
171
+ <input type="text" style="width:60%" class="input_search" placeholder='入户证号' v-model="model.f_entry_number"
172
+ v-on:keyup.enter="$parent.$parent.search()"
173
+ condition="a.f_entry_number like '%{}%'">
174
+ </div>
175
+ <div class="form-group col-sm-3">
176
+ <label class="font_normal_body">部&emsp;&emsp;门:</label>
177
+ <res-select
178
+ restype='department'
179
+ :parentresid="$parent.$parent.curorgid"
180
+ :initresid='$parent.$parent.curdepid'
181
+ @res-select="$parent.$parent.getdep"
182
+ :is-mul="true"
183
+ ></res-select>
184
+ </div>
185
+ <div class="form-group col-sm-3">
186
+ <label class="font_normal_body">人&emsp;&emsp;员:</label>
187
+ <res-select
188
+ restype='user'
189
+ :parentresid="$parent.$parent.curdepid"
190
+ :initresid='$parent.$parent.curuserid'
191
+ @res-select="$parent.$parent.getuser"
192
+ :is-mul="true"></res-select>
193
+ </div>
194
+ <div class="form-group col-sm-3">
195
+ <label class="font_normal_body">缴费状态:</label>
196
+ <v-select
197
+ v-model="model.f_charge_status"
198
+ placeholder='请选择'
199
+ condition="cr.f_charge_status = '{}'"
200
+ :value.sync="model.f_charge_status"
201
+ :options='$parent.$parent.chargeStatus'
202
+ class="select select_list"
203
+ :value-single="true"
204
+ close-on-select ></v-select>
205
+ </div>
206
+ <div class="form-group col-sm-3">
207
+ <label class="font_normal_body">服&ensp;务&ensp;人:</label>
208
+ <v-select
209
+ v-model="model.f_servicer"
210
+ placeholder='请选择'
211
+ condition="a.f_servicer = '{}'"
212
+ :value.sync="model.f_servicer"
213
+ class="select select_list"
214
+ :options='$parent.$parent.servicerList'
215
+ :value-single="true"
216
+ close-on-select ></v-select>
217
+ </div>
218
+ <div class="form-group col-sm-3">
219
+ <label class="font_normal_body">报建发起人:</label>
220
+ <v-select
221
+ v-model="model.f_operator"
222
+ placeholder='请选择'
223
+ condition="a.f_operator = '{}'"
224
+ :value.sync="model.f_operator"
225
+ class="select select_list"
226
+ :options='$parent.$parent.operatorList'
227
+ :value-single="true"
228
+ close-on-select ></v-select>
229
+ </div>
230
+ <div class="form-group col-sm-3">
231
+ <label class="font_normal_body">可派工数>:</label>
232
+ <input type="text" style="width: 60%" class="input_search" placeholder='可派工数>=' v-model="model.f_installed_households1"
233
+ condition="cr.f_installed_households >= {}">
234
+ </div>
235
+ <div class="form-group col-sm-3">
236
+ <label class="font_normal_body">可派工数<:</label>
237
+ <input type="text" style="width: 60%" class="input_search" placeholder='可派工数<=' v-model="model.f_installed_households"
238
+ condition="cr.f_installed_households <= {}">
239
+ </div>
240
+ <div class="form-group col-sm-3">
241
+ <label class="font_normal_body">可派工数是否为空:</label>
242
+ <v-select
243
+ v-model="model.f_installed_households2"
244
+ placeholder='请选择'
245
+ condition="cr.f_installed_households {}"
246
+ :value.sync="model.f_installed_households2"
247
+ class="select select_list"
248
+ :options='$parent.$parent.installedhousehold'
249
+ :value-single="true"
250
+ close-on-select ></v-select>
251
+ </div>
252
+ <div class="form-group col-sm-3">
253
+ <label class="font_normal_body">备注:</label>
254
+ <input type="text"
255
+ style="width:60%"
256
+ class="input_search"
257
+ v-model="model.f_apply_remarks"
258
+ v-on:keyup.enter="$parent.$parent.search()"
259
+ condition="a.f_apply_remarks like '%{}%'" placeholder='备注'>
260
+ </div>
261
+ </div>
262
+ </div>
263
+ </criteria>
264
+ <data-grid :model="model" partial='list' v-ref:grid style="overflow: auto" class="list_area table_sy">
265
+ <template partial='head'>
266
+ <tr>
267
+ <th style="white-space: nowrap;">序号</th>
268
+ <th style="white-space: nowrap;">工程编号</th>
269
+ <th style="white-space: nowrap;">合同编号</th>
270
+ <th style="white-space: nowrap;">报建类型</th>
271
+ <th style="white-space: nowrap;">报建性质</th>
272
+ <th style="white-space: nowrap;">用户编号</th>
273
+ <th style="white-space: nowrap;">用户名称</th>
274
+ <th style="white-space: nowrap;">用户电话</th>
275
+ <th style="white-space: nowrap;">用户地址</th>
276
+ <th style="white-space: nowrap;">身份证号</th>
277
+ <th style="white-space: nowrap;">入户证号</th>
278
+ <th style="white-space: nowrap;">缴费编码</th>
279
+ <th style="white-space: nowrap;">收费类型</th>
280
+ <th style="white-space: nowrap;">收费项目</th>
281
+ <th style="white-space: nowrap;">可派工数</th>
282
+ <th style="white-space: nowrap;">收费金额(退款金额)</th>
283
+ <th style="white-space: nowrap;">付款方式</th>
284
+ <th style="white-space: nowrap;">流水号</th>
285
+ <th style="white-space: nowrap;">服务人</th>
286
+ <th style="white-space: nowrap;">报建发起人</th>
287
+ <th style="white-space: nowrap;">收费人员(退款人员)</th>
288
+ <th style="white-space: nowrap;">收费日期(退款日期)</th>
289
+ <th style="white-space: nowrap;">冲正人员</th>
290
+ <th style="white-space: nowrap;">冲正原因</th>
291
+ <th style="white-space: nowrap;">实际收费时间</th>
292
+ <th style="white-space: nowrap;">备注</th>
293
+ <th style="white-space: nowrap;">状态</th>
294
+ <th style="white-space: nowrap;">报装备注</th>
295
+ </tr>
296
+ </template>
297
+ <template partial='body'>
298
+ <tr >
299
+ <td style="text-align: center;">
300
+ <nobr><font>{{$index+1}}</font></nobr>
301
+ </td>
302
+ <td style="text-align: center;">
303
+ <nobr><font>{{row.f_apply_num}}</font></nobr>
304
+ </td>
305
+ <td style="text-align: center;">
306
+ <nobr><font>{{row.f_contract_number}}</font></nobr>
307
+ </td>
308
+ <td style="text-align: center;">
309
+ <nobr><font>{{row.f_apply_type}}</font></nobr>
310
+ </td>
311
+ <td style="text-align: center;">
312
+ <nobr><font>{{row.f_apply_nature}}</font></nobr>
313
+ </td>
314
+ <td style="text-align: center;">
315
+ <nobr><font>{{row.f_userinfo_code}}</font></nobr>
316
+ </td>
317
+ <td style="text-align: center;">
318
+ <nobr v-if="$parent.$parent.$parent.$login.f.f_role_name.includes('收费明细修改')" ><font><a @click="$parent.$parent.$parent.showCharges(row)">{{row.f_user_name}}</a></font></nobr>
319
+ <nobr v-else><font>{{row.f_user_name}}</font></nobr>
320
+ </td>
321
+ <td style="text-align: center;">
322
+ <nobr><font>{{row.f_phone}}</font></nobr>
323
+ </td>
324
+ <td style="text-align: center;">
325
+ <nobr><font>{{row.f_address}}</font></nobr>
326
+ </td>
327
+ <td style="text-align: center;">
328
+ <nobr><font>{{row.f_idnumber}}</font></nobr>
329
+ </td>
330
+ <td style="text-align: center;">
331
+ <nobr><font>{{row.f_entry_number}}</font></nobr>
332
+ </td>
333
+ <td style="text-align: center;">
334
+ <nobr><font>{{row.f_charge_number}}</font></nobr>
335
+ </td>
336
+ <td style="text-align: center;">
337
+ <nobr><font>{{row.f_payment_type}}</font></nobr>
338
+ </td>
339
+ <td style="text-align: center;">
340
+ <nobr><font>{{row.f_payment_term}}</font></nobr>
341
+ </td>
342
+ <td style="text-align: center;">
343
+ <nobr><font>{{row.f_installed_households}}</font></nobr>
344
+ </td>
345
+ <td style="text-align: center;">
346
+ <nobr><font>{{$parent.$parent.$parent.formatCurrency(row.f_charge_money,2)}}</font></nobr>
347
+ </td>
348
+ <td style="text-align: center;">
349
+ <nobr><font>{{row.f_payment_method}}</font></nobr>
350
+ </td>
351
+ <td style="text-align: center;">
352
+ <nobr><font>{{row.f_payer_number}}</font></nobr>
353
+ </td>
354
+ <td style="text-align: center;">
355
+ <nobr><font>{{row.f_servicer}}</font></nobr>
356
+ </td>
357
+ <td style="text-align: center;">
358
+ <nobr><font>{{row.f_operator}}</font></nobr>
359
+ </td>
360
+ <td style="text-align: center;">
361
+ <nobr><font>{{row.f_charge_collectors}}</font></nobr>
362
+ </td>
363
+ <td style="text-align: center;">
364
+ <nobr><font>{{row.f_charge_date}}</font></nobr>
365
+ </td>
366
+ <td style="text-align: center;">
367
+ <nobr><font>{{row.f_void_staff}}</font></nobr>
368
+ </td>
369
+ <td style="text-align: center;">
370
+ <nobr><font>{{row.f_void_remarks}}</font></nobr>
371
+ </td>
372
+ <td style="text-align: center;">
373
+ <nobr><font>{{row.f_actual_date}}</font></nobr>
374
+ </td>
375
+ <td style="text-align: center;">
376
+ <nobr><font>{{row.f_charge_remarks}}</font></nobr>
377
+ </td>
378
+ <td style="text-align: center;">
379
+ <nobr><font>{{row.f_charge_status}}</font></nobr>
380
+ </td>
381
+ <td style="text-align: center;">
382
+ <nobr><font>{{row.f_charge_remarks}}</font></nobr>
383
+ </td>
384
+ </tr>
385
+ </template>
386
+ </data-grid>
387
+ </criteria-paged>
388
+ <modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
389
+ <header slot="modal-header" class="modal-header">
390
+ <button type="button" class="close" @click="showCharge = false"><span>&times;</span></button>
391
+ <h4 class="modal-title">收费明细</h4>
392
+ </header>
393
+ <article slot="modal-body" class="modal-body clearfix">
394
+ <div class="form-group col-sm-12">
395
+ <label class="col-sm-2 control-label">收费项目:</label>
396
+ <div class="col-sm-10">
397
+ <input-select
398
+ width="100%"
399
+ class="select select_list"
400
+ placeholder='请选择'
401
+ v-model="charge.f_payment_term"
402
+ :value.sync="charge.f_payment_term"
403
+ :options='paymentTerm'
404
+ :value-single="true"
405
+ close-on-select ></input-select>
406
+ </div>
407
+ </div>
408
+ <div class="form-group col-sm-12">
409
+ <label class="col-sm-2 control-label">付款方式:</label>
410
+ <div class="col-sm-10">
411
+ <input-select
412
+ placeholder='请选择' width="100%"
413
+ v-model="charge.f_payment_method"
414
+ :value.sync="charge.f_payment_method"
415
+ :options='paymentMethod'
416
+ class="select select_list"
417
+ :value-single="true"
418
+ close-on-select ></input-select>
419
+ </div>
420
+ </div>
421
+ </article>
422
+ <footer slot="modal-footer" class="modal-footer">
423
+ <button type="button" class="btn btn-primary" @click="savedefname()">确认修改</button>
424
+ </footer>
425
+ </modal>
426
+ </template>
427
+
428
+ <script>
429
+ import {PagedList} from 'vue-client'
430
+ import {HttpResetClass} from 'vue-client'
431
+ import {isEmpty} from"../../../components/Util";
432
+ export default {
433
+ title: '报建收费列表',
434
+ data () {
435
+ return {
436
+ model: new PagedList('rs/sql/getApplyCharge', 30, null, {
437
+ f_charge_money: 0
438
+ }),
439
+ curorgid: [this.$login.f.orgid],
440
+ curdepid: [],
441
+ servicerList:[],
442
+ operatorList:[],
443
+ curuserid: [],
444
+ paymentTerm :[{label: '全部', value: ''}, ...this.$appdata.getParam('收费项目')],
445
+ paymenttype :[{label: '全部', value: ''}, ...this.$appdata.getParam('报建-收费类型')],
446
+ applytype: [{label: '全部', value: ''}, ...this.$appdata.getParam('报建类型')],
447
+ applyNatures: [{label: '全部', value: ''},...this.$appdata.getParam('报建性质')], // 报建性质
448
+ paymentMethod: [{label: '全部', value: ''}, ...this.$appdata.getParam('付款方式')],
449
+ chargeStatus: [{label: '全部', value: ''}, ...this.$appdata.getParam('缴费状态')],
450
+ installedhousehold: [{label: '全部', value: ''},{label: '是', value: 'is null'},{label: '否', value: 'is not null'}],
451
+ criteriaShow: false,
452
+ chargeAll: {
453
+ count: 0,
454
+ sum: 0
455
+ },
456
+ showCharge:false,
457
+ charge:{},
458
+ getfield: {
459
+ 'f_apply_num': '工程编号',
460
+ 'f_contract_number': '合同编号',
461
+ 'f_apply_type': '报建类型',
462
+ 'f_apply_nature': '报建性质',
463
+ 'f_userinfo_code': '用户编号',
464
+ 'f_user_name': '用户名称',
465
+ 'f_phone': '用户电话',
466
+ 'f_address': '用户地址',
467
+ 'f_idnumber': '身份证号',
468
+ 'f_entry_number': '入户证号',
469
+ 'f_payment_type': '收费类型',
470
+ 'f_payment_term': '收费项目',
471
+ 'f_installed_households': '可派工数',
472
+ 'f_charge_number': '缴费编码',
473
+ 'f_charge_money': '收费金额',
474
+ 'f_payment_method': '付款方式',
475
+ 'f_payer_number': '流水号',
476
+ 'f_charge_collectors': '收费人员',
477
+ 'f_charge_date': '收费日期',
478
+ 'f_actual_date': '实际收费时间',
479
+ 'f_charge_remarks': '备注',
480
+ 'f_charge_status': '状态',
481
+ 'f_apply_remarks': '报装备注'
482
+ }
483
+ }
484
+ },
485
+ ready () {
486
+ // 调用查询
487
+ this.search()
488
+ this.getservicer()
489
+ this.getapplyoperator()
490
+ },
491
+ methods: {
492
+ showCharges(row){
493
+ this.showCharge = true
494
+ this.charge = row
495
+ },
496
+ savedefname(){
497
+ if(isEmpty(this.charge.f_payment_method )){
498
+ return this.$showMessage('付款方式不能为空!!')
499
+ }
500
+ if(isEmpty(this.charge.f_payment_term )){
501
+ return this.$showMessage('收费项目不能为空!!')
502
+ }
503
+ new HttpResetClass().load('POST', 'rs/entity/t_charge_record', {
504
+ id: this.charge.id,
505
+ f_payment_method: this.charge.f_payment_method,
506
+ f_payment_term: this.charge.f_payment_term,
507
+ version: this.charge.version
508
+ }, {resolveMsg: '修改成功', rejectMsg: '修改失败'})
509
+ .then(res => {
510
+ this.showCharge = false
511
+ this.search()
512
+ })
513
+ },
514
+ formatCurrency(number, decimalPlaces) {
515
+ var num = parseFloat(number);
516
+ if (!isNaN(num)) {
517
+ num = num.toFixed(decimalPlaces || 0); // 将金额保留指定位数,四舍五入
518
+ num = num.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); // 按照千分位进行分隔
519
+ return num;
520
+ } else {
521
+ return ''; // 如果输入框中的值不是数字,则返回空字符串
522
+ }
523
+ },
524
+ async getservicer(){
525
+ let data = {
526
+ tablename: 't_user',
527
+ condition: `1=1`
528
+ }
529
+ let http = new HttpResetClass()
530
+ let res = await http.load(
531
+ 'POST',
532
+ `rs/sql/apply_singleTable`,
533
+ {data: data},
534
+ {resolveMsg: null, rejectMsg: '服务人查询失败!!!'}
535
+ )
536
+ res.data.forEach(item => {
537
+ this.servicerList.push({
538
+ 'label': item.name,
539
+ 'value': item.name
540
+ })
541
+ })},
542
+
543
+ async getapplyoperator(){
544
+ let data = {
545
+ condition: `f_orgid in (${this.curorgid})`
546
+ }
547
+ let http = new HttpResetClass()
548
+ let res = await http.load('POST', 'rs/sql/getapplyOperator', {data: data}, {resolveMsg: null, rejectMsg: null})
549
+ res.data.forEach(item => {
550
+ this.operatorList.push({
551
+ 'label': item.f_operator,
552
+ 'value': item.f_operator
553
+ })
554
+ })},
555
+
556
+ applyTypeChange () {
557
+ if (!isEmpty(this.$refs.cp.$refs.cri.model.f_apply_type)) {
558
+ this.applyNatures = isEmpty(this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)) ? [{label: '全部', value: ''}] : [{label: '全部', value: ''}, ...this.$appdata.getParam(`${this.$refs.cp.$refs.cri.model.f_apply_type}性质`)]
559
+ } else {
560
+ this.applyNatures = [{label: '全部', value: ''}]
561
+ }
562
+ },
563
+ clear () {
564
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
565
+ this.$refs.cp.$refs.cri.model[key] = ''
566
+ })
567
+ this.curdepid = []
568
+ this.curuserid = []
569
+ },
570
+ searchCondition (args) {
571
+ args.condition = args.condition + ` and cr.f_orgid in ('${this.curorgid.join("','")}')`
572
+ if (this.curdepid.length > 0) {
573
+ args.condition = args.condition + ` and cr.f_depid in ('${this.curdepid.join("','")}')`
574
+ }
575
+ if (this.curuserid.length > 0) {
576
+ args.condition = args.condition + ` and cr.f_charge_collectors_id in ('${this.curuserid.join("','")}')`
577
+ }
578
+ args.condition += ` and cr.f_charge_status !='作废'`
579
+ this.model.search(args.condition, args.model)
580
+ },
581
+ // 查询
582
+ search () {
583
+ this.$refs.cp.$refs.cri.search()
584
+ this.getChargeAll()
585
+ this.getapplyoperator()
586
+ },
587
+ async getChargeAll () {
588
+ let http = new HttpResetClass()
589
+ let data = {
590
+ condition: this.model.condition
591
+ }
592
+ let res = await http.load('POST', 'rs/sql/getChargeAll', {data: data}, {resolveMsg: null, rejectMsg: null})
593
+
594
+ this.chargeAll = res.data[0]
595
+ },
596
+ getuser (val) {
597
+ if (val.length <= 0) {
598
+ return
599
+ }
600
+ this.curuserid = val
601
+ this.search()
602
+ },
603
+ getdep (val) {
604
+ if (val.length <= 0) {
605
+ return
606
+ }
607
+ this.curdepid = val
608
+ this.curuserid = []
609
+ this.search()
610
+ },
611
+ getorg (val) {
612
+ if (val.length <= 0) {
613
+ return
614
+ }
615
+ this.curorgid = val
616
+ this.curdepid = []
617
+ this.curuserid = []
618
+ this.search()
619
+ },
620
+
621
+ },
622
+ computed: {
623
+ getCondition () {
624
+ return {
625
+ condition: this.model.condition
626
+ }
627
+ },
628
+ paymentMethod() {
629
+ return this.$appdata.getParam("付款方式")
630
+ },
631
+ paymentTerm() {
632
+ return this.$appdata.getParam("收费项目")
633
+ }
634
+ }
635
+ }
636
+ </script>
637
+
638
+ <style scoped>
639
+ </style>