apply-clients 3.3.216 → 3.4.1
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/android.html +23 -23
- package/index.html +33 -33
- package/package.json +3 -3
- package/src/AndroidApp.vue +35 -30
- package/src/App.vue +20 -20
- package/src/android.js +21 -21
- package/src/apply.js +81 -90
- package/src/applyAndroid.js +1 -23
- package/src/components/android/AppOnetomany.vue +301 -285
- package/src/components/android/AppServiceView.vue +566 -570
- package/src/components/android/AppSign.vue +142 -142
- package/src/components/android/AppTakePic.vue +143 -144
- package/src/components/android/Process/AppExplorationUser.vue +320 -270
- package/src/components/android/Process/AppServiceControl.vue +757 -686
- package/src/components/android/Process/Processes/AppInstallationDetails.vue +456 -466
- package/src/components/android/ProgressReport/ProgressReportDetail.vue +64 -0
- package/src/components/android/ProgressReport/ProgressReportList.vue +209 -0
- package/src/components/android/Supervisory/AppProcessSupervisory.vue +73 -152
- package/src/components/android/Supervisory/AppSupervisoryCart.vue +121 -115
- package/src/components/android/TaskGraph.vue +125 -0
- package/src/components/product/ApplyCharge/ApplyChargeList.vue +36 -50
- package/src/components/product/ApplyCharge/ApplyChargeSearch.vue +3 -3
- package/src/components/product/Function/InstallFunction.vue +125 -122
- package/src/components/product/Function/InstallInfoSelect.vue +292 -318
- package/src/components/product/Function/Service/FunctionServiceControl.vue +222 -254
- package/src/components/product/Function/StopApplyCrrdList.vue +176 -0
- package/src/components/product/Function/functions/ApplyRecordCancel.vue +102 -0
- package/src/components/product/Function/functions/StopInstall.vue +106 -0
- package/src/components/product/Onetomany.vue +377 -296
- package/src/components/product/Order/OrderApply.vue +30 -30
- package/src/components/product/Order/OrderApplyList.vue +78 -67
- package/src/components/product/Order/OrderMessage.vue +11 -87
- package/src/components/product/Process/ExplorationSelect.vue +410 -369
- package/src/components/product/Process/ExplorationUser.vue +138 -128
- package/src/components/product/Process/Processes/InstallationDetails.vue +592 -504
- package/src/components/product/Process/Processes/Print/img/10101.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010109.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010110.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010111.png +0 -0
- package/src/components/product/Process/Processes/Print/img/1010112.png +0 -0
- package/src/components/product/Process/Processes/Print/printCharge.vue +142 -0
- package/src/components/product/Process/Processes/addressAndUserinfoManagement.vue +207 -181
- package/src/components/product/Process/Processes/chargeManagement.vue +639 -638
- package/src/components/product/Process/Processes/devicesManagement.vue +22 -2
- package/src/components/product/Process/Processes/selectApply.vue +1 -1
- package/src/components/product/Process/Service/ServiceControl.vue +1254 -883
- package/src/components/product/Process/Service/ShowBackReason.vue +33 -0
- package/src/components/product/ServiceView.vue +631 -741
- package/src/components/product/Stop/StopApply.vue +103 -103
- package/src/components/product/Stop/StopApplyList.vue +269 -254
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +186 -517
- package/src/components/product/Supervisory/SupervisoryControl.vue +100 -108
- package/src/components/product/Supervisory/SupervisoryList.vue +233 -253
- package/src/components/product/Supervisory/SupervisoryhCart.vue +107 -124
- package/src/components/product/VueUtils/ApplyUpload.vue +273 -264
- package/src/components/product/VueUtils/HighMeter.vue +208 -0
- package/src/expandcssAndroid.less +1034 -517
- package/src/filiale/yuchuan/android/Process/AppServiceControl.vue +548 -414
- package/src/filiale/yuchuan/android/Process/Processes/AppInstallationDetails.vue +754 -456
- package/src/filiale/yuchuan/android/Task/Survey/SurveyTsak.vue +60 -0
- package/src/filiale/yuchuan/android.js +7 -8
- package/src/filiale/yuchuan/pc/Order/OrderApply.vue +528 -517
- package/src/filiale/yuchuan/pc/Order/OrderApplyList.vue +343 -343
- package/src/filiale/yuchuan/pc/Process/ExplorationSelect.vue +270 -231
- package/src/filiale/yuchuan/pc/Process/ExplorationUser.vue +147 -131
- package/src/filiale/yuchuan/pc/Process/Processes/ApplyMapCom.vue +66 -0
- package/src/filiale/yuchuan/pc/Process/Processes/InstallationDetails.vue +759 -0
- package/src/filiale/yuchuan/pc/Process/Processes/chargeManagement.vue +470 -0
- package/src/filiale/yuchuan/pc/Process/Service/ServiceControl.vue +879 -517
- package/src/filiale/yuchuan/pc.js +11 -13
- package/src/main.js +23 -23
- package/src/components/android/Function/AppFunctionServiceControl.vue +0 -329
- package/src/components/android/Function/AppInstallFunction.vue +0 -330
- package/src/components/android/Process/Processes/AppBuildSign.vue +0 -47
- package/src/components/android/Process/Processes/AppChargeManagement.vue +0 -468
- package/src/components/android/Process/Processes/AppDevicesManagement.vue +0 -490
- package/src/components/android/Process/Processes/AppSupplementalAgreement.vue +0 -297
- package/src/components/android/Process/Processes/AppjiaSign.vue +0 -47
- package/src/components/android/Process/Processes/AppjiafangSign.vue +0 -47
- package/src/components/android/Process/Processes/ApptechnologySign.vue +0 -47
- package/src/components/image/dwg.jpg +0 -0
- package/src/components/image/yasuobao.jpg +0 -0
- package/src/components/product/Function/Inform.vue +0 -73
- package/src/components/product/Function/MarketSurvey.vue +0 -81
- package/src/components/product/Process/Processes/printCharge.vue +0 -121
- package/src/components/product/Process/ShowBackReason.vue +0 -33
- package/src/components/product/Supervisory/Service/printChargeNode.vue +0 -873
- package/src/components/product/VueUtils/GaoPaiYi/HighMeter.vue +0 -1090
- package/src/components/product/VueUtils/ToolsPage.vue +0 -51
- package/src/components/product/VueUtils/Tree.vue +0 -330
- package/src/filiale/wuan/android.js +0 -0
- package/src/filiale/wuan/pc.js +0 -4
- package/src/filiale/yuchuan/android/AppServiceView.vue +0 -599
- package/src/filiale/yuchuan/android/Reserve/ApplyReserve.vue +0 -200
- package/src/filiale/yuchuan/android/SiteSurvey/TaskGraph.vue +0 -137
- package/src/filiale/yuchuan/pc/Process/Processes/MapCom.vue +0 -51
|
@@ -0,0 +1,470 @@
|
|
|
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">缴费编号</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">
|
|
19
|
+
<button
|
|
20
|
+
type="button"
|
|
21
|
+
class="btn btn-info head-but"
|
|
22
|
+
@click="$parent.$parent.showChargeModal()"
|
|
23
|
+
: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)"
|
|
24
|
+
>新增收费</button>
|
|
25
|
+
</th>
|
|
26
|
+
</tr>
|
|
27
|
+
</template>
|
|
28
|
+
<template partial='body'>
|
|
29
|
+
<tr>
|
|
30
|
+
<td style="text-align: center;">
|
|
31
|
+
<nobr>{{$index+1}}</nobr>
|
|
32
|
+
</td>
|
|
33
|
+
<td style="text-align: center;">
|
|
34
|
+
<nobr>{{row.f_charge_number}}</nobr>
|
|
35
|
+
</td>
|
|
36
|
+
<td style="text-align: center;">
|
|
37
|
+
<nobr>{{row.f_charge_money}}</nobr>
|
|
38
|
+
</td>
|
|
39
|
+
<td style="text-align: center;">
|
|
40
|
+
<nobr>{{row.f_amount_words}}</nobr>
|
|
41
|
+
</td>
|
|
42
|
+
<td style="text-align: center;">
|
|
43
|
+
<nobr>{{row.f_payment_method}}</nobr>
|
|
44
|
+
</td>
|
|
45
|
+
<td style="text-align: center;">
|
|
46
|
+
<nobr>{{row.f_charge_collectors}}</nobr>
|
|
47
|
+
</td>
|
|
48
|
+
<td style="text-align: center;">
|
|
49
|
+
<nobr>{{row.f_charge_date}}</nobr>
|
|
50
|
+
</td>
|
|
51
|
+
<td style="text-align: center;">
|
|
52
|
+
<nobr>{{row.f_charge_remarks}}</nobr>
|
|
53
|
+
</td>
|
|
54
|
+
<td style="text-align: center;">
|
|
55
|
+
<nobr>{{row.f_charge_status}}</nobr>
|
|
56
|
+
</td>
|
|
57
|
+
<td style="text-align: center;">
|
|
58
|
+
<nobr>{{row.f_void_staff}}</nobr>
|
|
59
|
+
</td>
|
|
60
|
+
<td style="text-align: center;">
|
|
61
|
+
<nobr>{{row.f_void_date}}</nobr>
|
|
62
|
+
</td>
|
|
63
|
+
<td style="text-align: center;">
|
|
64
|
+
<nobr>{{row.f_void_remarks}}</nobr>
|
|
65
|
+
</td>
|
|
66
|
+
<td style="text-align: center;">
|
|
67
|
+
<nobr v-if="row.f_charge_status !== '退款'">
|
|
68
|
+
<button
|
|
69
|
+
type="button"
|
|
70
|
+
name="button"
|
|
71
|
+
class="btn btn-link"
|
|
72
|
+
:disabled="$parent.$parent.mark === 1 || row.f_charge_status === '作废'"
|
|
73
|
+
@click="$parent.$parent.showInvalidModal(row)"
|
|
74
|
+
>作废</button>
|
|
75
|
+
|
|
76
|
+
<button
|
|
77
|
+
type="button"
|
|
78
|
+
name="button"
|
|
79
|
+
class="btn btn-link"
|
|
80
|
+
@click="$parent.$parent.showPrintModal(row)"
|
|
81
|
+
>打印预览</button>
|
|
82
|
+
</nobr>
|
|
83
|
+
</td>
|
|
84
|
+
</tr>
|
|
85
|
+
</template>
|
|
86
|
+
</data-grid>
|
|
87
|
+
|
|
88
|
+
<validator name="v">
|
|
89
|
+
<modal v-if="showCharge" :show.sync="showCharge" v-ref:modal :large="true" :backdrop="false" title="收费明细">
|
|
90
|
+
<header slot="modal-header" class="modal-header">
|
|
91
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
92
|
+
<h4 class="modal-title">收费明细</h4>
|
|
93
|
+
</header>
|
|
94
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
95
|
+
<div class="form-group col-sm-12" :class="[$v.f_charge_money.required ? 'has-error' : '']">
|
|
96
|
+
<label class="col-sm-2 control-label">收费金额:</label>
|
|
97
|
+
<div class="col-sm-10">
|
|
98
|
+
<input type="number"
|
|
99
|
+
class="form-control input_view"
|
|
100
|
+
style="width: 100%"
|
|
101
|
+
placeholder="0.00"
|
|
102
|
+
@keyup="handleInput"
|
|
103
|
+
@change="moneyChange"
|
|
104
|
+
v-validate:f_charge_money = "['required']"
|
|
105
|
+
v-model="charge.f_charge_money" />
|
|
106
|
+
</div>
|
|
107
|
+
</div>
|
|
108
|
+
<div class="form-group col-sm-12" :class="[$v.f_payment_method.required ? 'has-error' : '']">
|
|
109
|
+
<label class="col-sm-2 control-label">付款方式:</label>
|
|
110
|
+
<div class="col-sm-10">
|
|
111
|
+
<input type="text" v-show="false" v-model="charge.f_payment_method" v-validate:f_payment_method = "['required']" >
|
|
112
|
+
<input-select
|
|
113
|
+
placeholder='请选择' width="100%"
|
|
114
|
+
v-model="charge.f_payment_method"
|
|
115
|
+
:value.sync="charge.f_payment_method"
|
|
116
|
+
:options='paymentMethod'
|
|
117
|
+
class="select select_list"
|
|
118
|
+
:value-single="true"
|
|
119
|
+
close-on-select ></input-select>
|
|
120
|
+
</div>
|
|
121
|
+
</div>
|
|
122
|
+
<div class="form-group col-sm-12">
|
|
123
|
+
<label class="col-sm-2 control-label">金额大写:</label>
|
|
124
|
+
<div class="col-sm-10">
|
|
125
|
+
<input type="text"
|
|
126
|
+
class="form-control input_view"
|
|
127
|
+
style="width: 100%"
|
|
128
|
+
:value="smalltoBIG(0)"
|
|
129
|
+
readonly
|
|
130
|
+
v-model.sync="charge.f_amount_words" />
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
<div class="form-group col-sm-12">
|
|
134
|
+
<label class="col-sm-2 control-label">应交总金额:</label>
|
|
135
|
+
<div class="col-sm-10">
|
|
136
|
+
<input type="text"
|
|
137
|
+
class="form-control input_view"
|
|
138
|
+
style="width: 100%"
|
|
139
|
+
readonly
|
|
140
|
+
v-model="selectdata.f_due_money" />
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div class="form-group col-sm-12">
|
|
144
|
+
<label class="col-sm-2 control-label">累计缴费总金额:</label>
|
|
145
|
+
<div class="col-sm-10">
|
|
146
|
+
<input type="text"
|
|
147
|
+
class="form-control input_view"
|
|
148
|
+
style="width: 100%"
|
|
149
|
+
readonly
|
|
150
|
+
v-model="selectdata.f_cumulative_payment_money" />
|
|
151
|
+
</div>
|
|
152
|
+
</div>
|
|
153
|
+
<div class="form-group col-sm-12">
|
|
154
|
+
<label class="col-sm-2 control-label">未结总金额:</label>
|
|
155
|
+
<div class="col-sm-10">
|
|
156
|
+
<input type="text"
|
|
157
|
+
class="form-control input_view"
|
|
158
|
+
style="width: 100%"
|
|
159
|
+
readonly
|
|
160
|
+
v-model="selectdata.f_surplus_money" />
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
<div class="form-group col-sm-12">
|
|
164
|
+
<label class="col-sm-2 control-label">备注:</label>
|
|
165
|
+
<div class="col-sm-10">
|
|
166
|
+
<input type="text"
|
|
167
|
+
class="form-control input_view"
|
|
168
|
+
style="width: 100%"
|
|
169
|
+
v-model="charge.f_charge_remarks" />
|
|
170
|
+
</div>
|
|
171
|
+
</div>
|
|
172
|
+
</article>
|
|
173
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
174
|
+
<button type="button" class="btn btn-primary" :disabled='!$v.valid' @click="saveCharge()">新增收费</button>
|
|
175
|
+
</footer>
|
|
176
|
+
</modal>
|
|
177
|
+
</validator>
|
|
178
|
+
|
|
179
|
+
<modal v-if="showInvalid" :show.sync="showInvalid" v-ref:modal :backdrop="false" title="作废收费">
|
|
180
|
+
<header slot="modal-header" class="modal-header">
|
|
181
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
182
|
+
<h4 class="modal-title">作废收费</h4>
|
|
183
|
+
</header>
|
|
184
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
185
|
+
<div class="form-group col-sm-12" v-if="false">
|
|
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
|
+
readonly
|
|
192
|
+
v-model="charge.f_useraddres" />
|
|
193
|
+
</div>
|
|
194
|
+
</div>
|
|
195
|
+
<div class="form-group col-sm-12">
|
|
196
|
+
<label class="col-sm-2 control-label">收费金额:</label>
|
|
197
|
+
<div class="col-sm-10">
|
|
198
|
+
<input type="text"
|
|
199
|
+
class="form-control input_view"
|
|
200
|
+
style="width: 100%"
|
|
201
|
+
readonly
|
|
202
|
+
v-model="charge.f_charge_money" />
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
<div class="form-group col-sm-12">
|
|
206
|
+
<label class="col-sm-2 control-label">付款方式:</label>
|
|
207
|
+
<div class="col-sm-10">
|
|
208
|
+
<input type="text"
|
|
209
|
+
class="form-control input_view"
|
|
210
|
+
style="width: 100%"
|
|
211
|
+
readonly
|
|
212
|
+
v-model="charge.f_payment_method" />
|
|
213
|
+
</div>
|
|
214
|
+
</div>
|
|
215
|
+
<div class="form-group col-sm-12">
|
|
216
|
+
<label class="col-sm-2 control-label">金额大写:</label>
|
|
217
|
+
<div class="col-sm-10">
|
|
218
|
+
<input type="text"
|
|
219
|
+
class="form-control input_view"
|
|
220
|
+
style="width: 100%"
|
|
221
|
+
readonly
|
|
222
|
+
v-model="charge.f_amount_words" />
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
225
|
+
<div class="form-group col-sm-12">
|
|
226
|
+
<label class="col-sm-2 control-label">收费人员:</label>
|
|
227
|
+
<div class="col-sm-10">
|
|
228
|
+
<input type="text"
|
|
229
|
+
class="form-control input_view"
|
|
230
|
+
style="width: 100%"
|
|
231
|
+
readonly
|
|
232
|
+
v-model="charge.f_charge_collectors" />
|
|
233
|
+
</div>
|
|
234
|
+
</div>
|
|
235
|
+
<div class="form-group col-sm-12" :class="charge.f_void_remarks ? '':'has-error'">
|
|
236
|
+
<label class="col-sm-2 control-label">作废原因:</label>
|
|
237
|
+
<div class="col-sm-10">
|
|
238
|
+
<input type="text"
|
|
239
|
+
class="form-control input_view"
|
|
240
|
+
style="width: 100%"
|
|
241
|
+
v-model="charge.f_void_remarks" />
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
</article>
|
|
245
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
246
|
+
<button type="button" class="btn btn-primary" :disabled="!charge.f_void_remarks" @click="invalidApplyCharge()">确认作废</button>
|
|
247
|
+
</footer>
|
|
248
|
+
</modal>
|
|
249
|
+
|
|
250
|
+
<modal v-if="showPrint" :show.sync="showPrint" v-ref:modal :large="true" :backdrop="false" title="打印预览">
|
|
251
|
+
<header slot="modal-header" class="modal-header">
|
|
252
|
+
<button type="button" class="close" @click="closeModal"><span>×</span></button>
|
|
253
|
+
<h4 class="modal-title">打印预览</h4>
|
|
254
|
+
</header>
|
|
255
|
+
<article slot="modal-body" class="modal-body clearfix">
|
|
256
|
+
<apply-print-charge :selectdata="selectdata" :charge="charge" v-ref:print></apply-print-charge>
|
|
257
|
+
</article>
|
|
258
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
259
|
+
<button type="button" class="btn btn-primary" @click="print()">打印</button>
|
|
260
|
+
</footer>
|
|
261
|
+
</modal>
|
|
262
|
+
</div>
|
|
263
|
+
</template>
|
|
264
|
+
<script>
|
|
265
|
+
import {PagedList} from 'vue-client'
|
|
266
|
+
import {HttpResetClass} from 'vue-client'
|
|
267
|
+
import Vue from 'vue'
|
|
268
|
+
import {isEmpty} from '../../../../../components/Util'
|
|
269
|
+
|
|
270
|
+
export default {
|
|
271
|
+
title: '收费管理',
|
|
272
|
+
props: {
|
|
273
|
+
selectdata: {
|
|
274
|
+
type: Object
|
|
275
|
+
},
|
|
276
|
+
mark: {
|
|
277
|
+
type: Number,
|
|
278
|
+
default: 0
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
data () {
|
|
282
|
+
return {
|
|
283
|
+
showCharge: false, // 收费明细
|
|
284
|
+
showInvalid: false, // 作废
|
|
285
|
+
showPrint: false, // 打印
|
|
286
|
+
model: {
|
|
287
|
+
data: null
|
|
288
|
+
}, // 记录
|
|
289
|
+
useraddresList: [], // 地址列表
|
|
290
|
+
charge: {
|
|
291
|
+
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
ready () {
|
|
296
|
+
this.search()
|
|
297
|
+
},
|
|
298
|
+
methods: {
|
|
299
|
+
async payerNumberChange () {
|
|
300
|
+
if (isEmpty(this.charge.f_payer_number)) {
|
|
301
|
+
return
|
|
302
|
+
}
|
|
303
|
+
let http = new HttpResetClass()
|
|
304
|
+
let data = {
|
|
305
|
+
tablename: 't_charge_record',
|
|
306
|
+
condition: `f_payer_number = '${this.charge.f_payer_number}'`
|
|
307
|
+
}
|
|
308
|
+
let res = await http.load('POST', 'rs/sql/singleTable', {data:data}, {
|
|
309
|
+
resolveMsg: null,
|
|
310
|
+
rejectMsg: '流水号查询失败!!!'
|
|
311
|
+
})
|
|
312
|
+
if (res.data.length > 0) {
|
|
313
|
+
this.$showAlert('该流水号已经使用!!!', 'warning', 3000)
|
|
314
|
+
return
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
print () {
|
|
318
|
+
this.$refs.print.$refs.print.PrintTable()
|
|
319
|
+
},
|
|
320
|
+
showPrintModal(row) {
|
|
321
|
+
this.charge = row
|
|
322
|
+
this.showPrint = true
|
|
323
|
+
},
|
|
324
|
+
selectAddres () {
|
|
325
|
+
if (this.charge.useraddres) {
|
|
326
|
+
this.charge.f_cumulative_payment_money = this.charge.useraddres.f_cumulative_payment_money
|
|
327
|
+
this.charge.f_outstanding_amount = this.selectdata.f_price - this.charge.useraddres.f_cumulative_payment_money
|
|
328
|
+
} else {
|
|
329
|
+
this.charge.f_cumulative_payment_money = 0
|
|
330
|
+
this.charge.f_outstanding_amount = this.selectdata.f_price
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
async invalidApplyCharge() {
|
|
334
|
+
|
|
335
|
+
let http = new HttpResetClass()
|
|
336
|
+
let data = {
|
|
337
|
+
apply: this.selectdata,
|
|
338
|
+
user: this.$login.f,
|
|
339
|
+
charge: this.charge
|
|
340
|
+
}
|
|
341
|
+
let res = await http.load('POST', 'rs/logic/invalidApplyCharge', {data:data}, {
|
|
342
|
+
resolveMsg: null,
|
|
343
|
+
rejectMsg: '作废失败!!!'
|
|
344
|
+
})
|
|
345
|
+
this.selectdata = res.data
|
|
346
|
+
|
|
347
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
348
|
+
},
|
|
349
|
+
|
|
350
|
+
// 打开作废收费
|
|
351
|
+
showInvalidModal(row) {
|
|
352
|
+
this.charge = row
|
|
353
|
+
this.showInvalid = true
|
|
354
|
+
},
|
|
355
|
+
// 新增收费
|
|
356
|
+
async saveCharge() {
|
|
357
|
+
let http = new HttpResetClass()
|
|
358
|
+
let data = {
|
|
359
|
+
apply: this.selectdata,
|
|
360
|
+
user: this.$login.f,
|
|
361
|
+
charge: this.charge
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
let res = await http.load('POST', 'rs/logic/addApplyChargeRecord', {data:data}, {
|
|
365
|
+
resolveMsg: null,
|
|
366
|
+
rejectMsg: '缴费失败!!!'
|
|
367
|
+
})
|
|
368
|
+
this.selectdata = res.data
|
|
369
|
+
|
|
370
|
+
this.$dispatch('breakControl', this.selectdata)
|
|
371
|
+
},
|
|
372
|
+
moneyChange () {
|
|
373
|
+
if (isEmpty(this.charge.f_charge_money) || Number(this.charge.f_charge_money) === 0) {
|
|
374
|
+
this.$showAlert('单笔收费不能为0元!!!', 'warning', 3000)
|
|
375
|
+
this.charge.f_charge_money = null
|
|
376
|
+
return
|
|
377
|
+
}
|
|
378
|
+
if (this.selectdata.f_apply_type === '散户集体报建' && Number(this.charge.f_charge_money) > Number(this.charge.f_outstanding_amount)) {
|
|
379
|
+
this.$showAlert('单笔收费不能超过未交金额!!!', 'warning', 3000)
|
|
380
|
+
this.charge.f_charge_money = null
|
|
381
|
+
return
|
|
382
|
+
}
|
|
383
|
+
if (Number(this.charge.f_charge_money) > Number(this.selectdata.f_surplus_money)) {
|
|
384
|
+
this.$showAlert('单笔收费不能超过未交总金额!!!', 'warning', 3000)
|
|
385
|
+
this.charge.f_charge_money = null
|
|
386
|
+
return
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
// 金额转大写
|
|
390
|
+
handleInput(e) {
|
|
391
|
+
// 通过正则过滤小数点后两位
|
|
392
|
+
e.target.value = (e.target.value.match(/^\d*(\.?\d{0,2})/g)[0]) || null
|
|
393
|
+
this.charge.f_amount_words = this.smalltoBIG(e.target.value)
|
|
394
|
+
},
|
|
395
|
+
// 金额转大写
|
|
396
|
+
smalltoBIG(n) {
|
|
397
|
+
let fraction = ['角', '分'];
|
|
398
|
+
let digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖'];
|
|
399
|
+
let unit = [['元', '万', '亿'], ['', '拾', '佰', '仟']];
|
|
400
|
+
let head = n < 0 ? '欠' : '';
|
|
401
|
+
n = Math.abs(n);
|
|
402
|
+
|
|
403
|
+
let s = '';
|
|
404
|
+
|
|
405
|
+
for (var i = 0; i < fraction.length; i++) {
|
|
406
|
+
s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, '');
|
|
407
|
+
}
|
|
408
|
+
s = s || '整';
|
|
409
|
+
n = Math.floor(n);
|
|
410
|
+
|
|
411
|
+
for (var i = 0; i < unit[0].length && n > 0; i++) {
|
|
412
|
+
let p = '';
|
|
413
|
+
for (var j = 0; j < unit[1].length && n > 0; j++) {
|
|
414
|
+
p = digit[n % 10] + unit[1][j] + p;
|
|
415
|
+
n = Math.floor(n / 10);
|
|
416
|
+
}
|
|
417
|
+
s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s;
|
|
418
|
+
}
|
|
419
|
+
return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整')
|
|
420
|
+
},
|
|
421
|
+
async showChargeModal() {
|
|
422
|
+
this.showCharge = true
|
|
423
|
+
},
|
|
424
|
+
async search () {
|
|
425
|
+
let http = new HttpResetClass()
|
|
426
|
+
let data = {
|
|
427
|
+
f_process_id: this.selectdata.f_process_id
|
|
428
|
+
}
|
|
429
|
+
let res = await http.load('POST', 'rs/sql/getApplyChargeRecord', {data:data}, {
|
|
430
|
+
resolveMsg: null,
|
|
431
|
+
rejectMsg: '收费记录查询失败!!!'
|
|
432
|
+
})
|
|
433
|
+
this.model.data = res.data
|
|
434
|
+
},
|
|
435
|
+
// 关闭对话框
|
|
436
|
+
closeModal() {
|
|
437
|
+
this.showCharge = false
|
|
438
|
+
this.showInvalid = false
|
|
439
|
+
this.showPrint = false
|
|
440
|
+
this.charge = {}
|
|
441
|
+
this.search()
|
|
442
|
+
}
|
|
443
|
+
},
|
|
444
|
+
events: {
|
|
445
|
+
},
|
|
446
|
+
computed: {
|
|
447
|
+
paymentMethod() {
|
|
448
|
+
return this.$appdata.getParam("付款方式")
|
|
449
|
+
},
|
|
450
|
+
paymentTerm() {
|
|
451
|
+
return this.$appdata.getParam("收费项目")
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
watch: {
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
</script>
|
|
458
|
+
<style scoped>
|
|
459
|
+
.textNoLineBreak {
|
|
460
|
+
white-space: nowrap;
|
|
461
|
+
}
|
|
462
|
+
.head-but{
|
|
463
|
+
margin-left: 5px;
|
|
464
|
+
height: 34px;
|
|
465
|
+
/*background-color: #6aa6e2;*/
|
|
466
|
+
border-radius: 4px;
|
|
467
|
+
font-family: PingFang;
|
|
468
|
+
color: #ffffff;
|
|
469
|
+
}
|
|
470
|
+
</style>
|