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