apply-clients 5.0.35-4 → 5.0.35-40
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/package.json +3 -3
- package/src/AndroidApp.vue +28 -28
- package/src/android.js +1 -1
- package/src/apply.js +6 -1
- package/src/assets//347/224/250/346/210/267/345/234/260/345/235/200.png +0 -0
- package/src/assets//347/224/250/346/210/267/345/247/223/345/220/215.png +0 -0
- package/src/assets//347/224/250/346/210/267/347/224/265/350/257/235.png +0 -0
- package/src/components/app_apply/ApplyDownList.vue +168 -164
- package/src/components/app_apply/ApplyInfo.vue +2 -2
- package/src/components/app_apply/ApplyListUpload.vue +268 -268
- package/src/components/app_apply/ApplyToDoList.vue +2822 -170
- package/src/components/app_apply/OneToMany.vue +192 -0
- package/src/components/app_apply/PlaceControler.vue +228 -185
- package/src/components/app_apply/ServiceControl.vue +350 -335
- package/src/components/app_apply/ServiceView.vue +383 -383
- package/src/components/app_apply/ezhou/FeiMinYongV.vue +109 -109
- package/src/components/app_apply/ezhou/FeiMinYongVV.vue +100 -100
- package/src/components/app_apply/ezhou/MinYong.vue +92 -92
- package/src/components/app_apply/ezhou/ServiceView.vue +367 -200
- package/src/components/product/Common/ApplyValidateBill.vue +13 -6
- package/src/components/product/Function/InstallInfoSelect.vue +1 -1
- package/src/components/product/Function/Service/FunctionServiceControl.vue +37 -1
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/InstallFee.vue +506 -342
- package/src/components/product/Process/ExplorationSelect.vue +8 -3
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +123 -37
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/Process/Processes/Service/ServiceControl.vue +24 -5
- package/src/components/product/ServiceView.vue +10 -6
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +54 -6
- package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
- package/src/components/product/applyReport/ApplyReport.vue +205 -0
- package/src/components/product/applyReport/PrintApplyReport.vue +116 -0
- package/src/ezhouAndroid.js +11 -10
- package/src/index.js +8 -8
- package/src/main.js +1 -1
- package/src/plugins/commonService.js +11 -7
- package/static/newStyle/clear.png +0 -0
- package/static/newStyle/fife.png +0 -0
- package/static/newStyle/hidden.png +0 -0
- package/static/newStyle/label-clear.png +0 -0
- package/static/newStyle/left-img.png +0 -0
- package/static/newStyle/list_ok.png +0 -0
- package/static/newStyle/login-check.png +0 -0
- package/static/newStyle/login-con.png +0 -0
- package/static/newStyle/login-do.gif +0 -0
- package/static/newStyle/login-f.png +0 -0
- package/static/newStyle/login-info.png +0 -0
- package/static/newStyle/login-left.png +0 -0
- package/static/newStyle/login-org.png +0 -0
- package/static/newStyle/login-pwd.png +0 -0
- package/static/newStyle/login-user.png +0 -0
- package/static/newStyle/loginbg.gif +0 -0
- package/static/newStyle/loginbg1280.gif +0 -0
- package/static/newStyle/loginbg1366.gif +0 -0
- package/static/newStyle/loginbg_1.gif +0 -0
- package/static/newStyle/searchin.png +0 -0
- package/static/newStyle/searchout.png +0 -0
- package/static/newStyle/setting.png +0 -0
- package/static/newStyle/setting1.png +0 -0
- package/static/newStyle/shirk.png +0 -0
- package/static/newStyle/stretch_bottom.png +0 -0
- package/static/newStyle/stretch_left.png +0 -0
- package/static/newStyle/stretch_right.png +0 -0
- package/static/newStyle/stretch_top.png +0 -0
- package/static/newStyle/system-off.png +0 -0
- package/static/newStyle//350/261/252/344/275/263/347/207/203/346/260/224.png +0 -0
|
@@ -1,80 +1,106 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="col-sm-12 auto select-overspread"
|
|
2
|
+
<div class="col-sm-12 auto select-overspread">
|
|
3
3
|
<div class="auto select-overspread">
|
|
4
4
|
<div class="panel panel-info">
|
|
5
5
|
<div class="panel-heading auto">
|
|
6
6
|
<div class="col-sm-12 recordTable" style="height: 200px">
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
<
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<
|
|
19
|
-
</
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
<
|
|
30
|
-
<
|
|
31
|
-
</
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
7
|
+
<partial-view v-ref:single-load v-if="!isSingleUser">
|
|
8
|
+
<data-grid :model="model" v-ref:grid>
|
|
9
|
+
<template partial='head'>
|
|
10
|
+
<tr>
|
|
11
|
+
<th>
|
|
12
|
+
<nobr>序号</nobr>
|
|
13
|
+
</th>
|
|
14
|
+
<th>
|
|
15
|
+
<nobr>用户</nobr>
|
|
16
|
+
</th>
|
|
17
|
+
<th>
|
|
18
|
+
<nobr>地址</nobr>
|
|
19
|
+
</th>
|
|
20
|
+
<th>
|
|
21
|
+
<nobr>收费金额(元)</nobr>
|
|
22
|
+
</th>
|
|
23
|
+
<th>
|
|
24
|
+
<nobr>收费人员</nobr>
|
|
25
|
+
</th>
|
|
26
|
+
<th>
|
|
27
|
+
<nobr>日期</nobr>
|
|
28
|
+
</th>
|
|
29
|
+
<th>
|
|
30
|
+
<nobr>备注</nobr>
|
|
31
|
+
</th>
|
|
32
|
+
<th>
|
|
33
|
+
<nobr>操作</nobr>
|
|
34
|
+
</th>
|
|
35
|
+
</tr>
|
|
36
|
+
</template>
|
|
37
|
+
<template partial='body'>
|
|
38
|
+
<td style="text-align: center">{{$index+1}}</td>
|
|
39
|
+
<td style="text-align: center">{{row.f_charge_user}}</td>
|
|
40
|
+
<td style="text-align: center">{{row.f_charge_address}}</td>
|
|
41
|
+
<td style="text-align: center">{{row.f_charge_money}}</td>
|
|
42
|
+
<td style="text-align: center">{{row.f_charge_collectors}}</td>
|
|
43
|
+
<td style="text-align: center">{{row.f_charge_date}}</td>
|
|
44
|
+
<td style="text-align: center">{{row.f_charge_remarks}}</td>
|
|
45
|
+
<td style="text-align: center">
|
|
46
|
+
<button class="btn btn-default" @click="$parent.$parent.$parent.tovoid($index)">冲正</button>
|
|
47
|
+
</td>
|
|
48
|
+
</template>
|
|
49
|
+
</data-grid>
|
|
50
|
+
</partial-view>
|
|
35
51
|
<partial-view v-ref:single-user v-if="isSingleUser">
|
|
36
|
-
<data-grid :model="userinfoRow" v-ref:grid
|
|
52
|
+
<data-grid :model="userinfoRow" v-ref:grid>
|
|
37
53
|
<template partial='head'>
|
|
38
54
|
<tr>
|
|
39
|
-
<th
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
<th
|
|
43
|
-
|
|
55
|
+
<th>
|
|
56
|
+
<nobr>序号</nobr>
|
|
57
|
+
</th>
|
|
58
|
+
<th>
|
|
59
|
+
<nobr>用户名</nobr>
|
|
60
|
+
</th>
|
|
61
|
+
<th>
|
|
62
|
+
<nobr>用户电话</nobr>
|
|
63
|
+
</th>
|
|
64
|
+
<th>
|
|
65
|
+
<nobr>地址</nobr>
|
|
66
|
+
</th>
|
|
67
|
+
<th>
|
|
68
|
+
<nobr>操作</nobr>
|
|
69
|
+
</th>
|
|
44
70
|
</tr>
|
|
45
71
|
</template>
|
|
46
|
-
<template partial='body'
|
|
72
|
+
<template partial='body'>
|
|
47
73
|
<td style="text-align: center">{{$index+1}}</td>
|
|
48
|
-
<td style="text-align: center"
|
|
74
|
+
<td style="text-align: center">{{row.f_user_name}}</td>
|
|
49
75
|
<td style="text-align: center">{{row.f_user_phone}}</td>
|
|
50
76
|
<td style="text-align: center">{{row.address}}</td>
|
|
51
77
|
<button type="button" name="button" class="btn btn-link"
|
|
52
|
-
|
|
78
|
+
@click.stop="$parent.$parent.$parent.getUserinfo($index)">收费
|
|
53
79
|
</button>
|
|
54
80
|
</template>
|
|
55
81
|
</data-grid>
|
|
56
82
|
</partial-view>
|
|
57
83
|
<form novalidate class="form-horizontal">
|
|
58
|
-
<p class="bg-info text-center" style="padding: 10px;"
|
|
84
|
+
<p class="bg-info text-center" style="padding: 10px;"></p>
|
|
59
85
|
<p class="bg-info text-center" style="padding: 10px;">收费信息</p>
|
|
60
86
|
<div class="row" style="margin-top:10px;">
|
|
61
87
|
<div class="form-input-group col-sm-3">
|
|
62
88
|
<label for="f_user_name" class="control-label col-sm-2 ">用户名称</label>
|
|
63
89
|
<div class="col-sm-2">
|
|
64
|
-
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_user_name"
|
|
90
|
+
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_user_name">
|
|
65
91
|
</div>
|
|
66
92
|
</div>
|
|
67
93
|
<div class="form-input-group col-sm-3">
|
|
68
94
|
<label for="f_phone" class="control-label col-sm-2 ">联系电话</label>
|
|
69
95
|
<div class="col-sm-2">
|
|
70
|
-
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_phone" readonly
|
|
96
|
+
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_phone" readonly>
|
|
71
97
|
|
|
72
98
|
</div>
|
|
73
99
|
</div>
|
|
74
100
|
<div class="form-input-group col-sm-6">
|
|
75
101
|
<label for="f_address" class="control-label col-sm-2 ">地址</label>
|
|
76
102
|
<div class="col-sm-2">
|
|
77
|
-
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_address" readonly
|
|
103
|
+
<input type="text" class="form-control" @blur="getUserinfo" v-model="model.f_address" readonly>
|
|
78
104
|
</div>
|
|
79
105
|
</div>
|
|
80
106
|
</div>
|
|
@@ -100,7 +126,8 @@
|
|
|
100
126
|
<div class="form-input-group col-sm-3">
|
|
101
127
|
<label for="f_brand_spec" class="control-label col-sm-2 ">金额(元)</label>
|
|
102
128
|
<div class="col-sm-2">
|
|
103
|
-
<input type="text" class="form-control"
|
|
129
|
+
<input type="text" class="form-control" :placeholder="0" v-model="model.f_charge_money"
|
|
130
|
+
disabled="true">
|
|
104
131
|
</div>
|
|
105
132
|
</div>
|
|
106
133
|
</div>
|
|
@@ -145,62 +172,71 @@
|
|
|
145
172
|
<div class="form-input-group col-sm-3">
|
|
146
173
|
<label for="f_brand_spec" class="control-label col-sm-2 ">金额大写(元)</label>
|
|
147
174
|
<div class="col-sm-2">
|
|
148
|
-
<input type="text" class="form-control"
|
|
175
|
+
<input type="text" class="form-control" v-model="getCapital" readonly>
|
|
149
176
|
</div>
|
|
150
177
|
</div>
|
|
151
178
|
</div>
|
|
152
179
|
<div class="row" style="margin-top:10px;" v-for="(index,row) in charges">
|
|
153
|
-
<div
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
<button class="glyphicon glyphicon-minus btn-danger" v-if="$index>0"
|
|
180
|
+
<div class="form-input-group col-sm-12">
|
|
181
|
+
<div class="form-input-group col-sm-3">
|
|
182
|
+
<label for="f_charge_item" class="control-label col-sm-2">
|
|
183
|
+
<button class="glyphicon glyphicon-minus btn-danger" v-if="$index>0"
|
|
184
|
+
@click.stop="delItems($index)"></button>
|
|
157
185
|
<button class="glyphicon glyphicon-plus btn-success" @click.stop="addItems()"></button>
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
<v-select id="f_charge_item"+$index
|
|
186
|
+
</label>
|
|
187
|
+
<div class="col-sm-2">
|
|
188
|
+
<v-select id="f_charge_item" +$index
|
|
161
189
|
v-model="f_project_item" width="100%"
|
|
162
190
|
placeholder='收费项目'
|
|
163
191
|
:value.sync="row.f_project_item"
|
|
164
192
|
:options='chargeitems'
|
|
165
193
|
close-on-select clear-button>
|
|
166
194
|
</v-select>
|
|
167
|
-
</div>
|
|
168
195
|
</div>
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
196
|
+
</div>
|
|
197
|
+
<div class="form-input-group col-sm-3">
|
|
198
|
+
<label for="f_amount" class="control-label col-sm-2">数量:</label>
|
|
199
|
+
<div class="col-sm-2">
|
|
200
|
+
<input class="form-control" style="background-color: white" type="number" v-model="row.f_amount"
|
|
201
|
+
:disabled="isDisable"
|
|
202
|
+
placeholder="数量" :blur="calcmoney(index)">
|
|
175
203
|
</div>
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
204
|
+
</div>
|
|
205
|
+
<div class="form-input-group col-sm-3">
|
|
206
|
+
<label for="f_price" class="control-label col-sm-2">单价:</label>
|
|
207
|
+
<div class="col-sm-2">
|
|
208
|
+
<input class="form-control" style="background-color: white" type="number" v-model="row.f_price"
|
|
209
|
+
:disabled="isDisable"
|
|
180
210
|
placeholder="单价" :blur="calcmoney(index)">
|
|
181
|
-
</div>
|
|
182
|
-
</div>
|
|
183
|
-
<div class="form-input-group col-sm-3">
|
|
184
|
-
<label for="f_money" class="control-label col-sm-2">金额:</label>
|
|
185
|
-
<div class="col-sm-2">
|
|
186
|
-
<input class="form-control" style="background-color: white" type="number" v-model="row.f_money" :disabled="true"
|
|
187
|
-
placeholder="金额" >
|
|
188
|
-
</div>
|
|
189
211
|
</div>
|
|
190
212
|
</div>
|
|
213
|
+
<div class="form-input-group col-sm-3">
|
|
214
|
+
<label for="f_money" class="control-label col-sm-2">金额:</label>
|
|
215
|
+
<div class="col-sm-2">
|
|
216
|
+
<input class="form-control" style="background-color: white" type="number" v-model="row.f_money"
|
|
217
|
+
:disabled="true"
|
|
218
|
+
placeholder="金额">
|
|
219
|
+
</div>
|
|
191
220
|
</div>
|
|
221
|
+
</div>
|
|
222
|
+
</div>
|
|
192
223
|
<div class="row" style="margin-top:10px;">
|
|
193
224
|
<div class="form-input-group col-sm-8">
|
|
194
225
|
<label for="f_paytype" class="control-label col-sm-2">备注:</label>
|
|
195
226
|
<input type="text" class="form-control" v-model="model.f_charge_remarks">
|
|
196
227
|
</div>
|
|
197
228
|
</div>
|
|
198
|
-
<apply-validate-bill v-if="hasValidateBill" :show="refresh" :data="model"
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
229
|
+
<apply-validate-bill v-if="hasValidateBill" :show="refresh" :data="model"
|
|
230
|
+
@validate-bill="validateBill"></apply-validate-bill>
|
|
231
|
+
<printbill :show="print" :data='model' :selfclean="selfclean" :bill-config='config' :bill-data='billData'
|
|
232
|
+
v-on:toggle="close" :selfsearch="load" @printok="printok" v-ref:printbill></printbill>
|
|
233
|
+
<bjpaper-ticket-bill :show="paperticket" :data='ids' @toggle="closeticket"></bjpaper-ticket-bill>
|
|
234
|
+
<printbill :show="delprint" :data='model' :selfclean="selfclean" :bill-config='config2'
|
|
235
|
+
:bill-data='billData' v-on:toggle="close" :selfsearch="load" @printok="printok"
|
|
236
|
+
v-ref:printbill></printbill>
|
|
202
237
|
<div class="row" style="text-align:right;">
|
|
203
|
-
<button :readonly="!validateOk"
|
|
238
|
+
<button :readonly="!validateOk" type="button" class="btn btn-success" style="" @click='confirm'>确认
|
|
239
|
+
</button>
|
|
204
240
|
</div>
|
|
205
241
|
</form>
|
|
206
242
|
</div>
|
|
@@ -208,13 +244,63 @@
|
|
|
208
244
|
</div>
|
|
209
245
|
</div>
|
|
210
246
|
</div>
|
|
247
|
+
<modal :show.sync="papershow" v-ref:modal large backdrop="false">
|
|
248
|
+
<header slot="modal-header" class="modal-header">
|
|
249
|
+
<h3 style="color:black" class="modal-title">购货方信息</h3>
|
|
250
|
+
</header>
|
|
251
|
+
<article slot="modal-body" class="modal-body">
|
|
252
|
+
|
|
253
|
+
<validator name='v'>
|
|
254
|
+
<form class="form-horizontal select-overspread">
|
|
255
|
+
<div class="row" style="display: flex;justify-content: center;" id='normal-bill'>
|
|
256
|
+
<div class="form-group col-sm-6">
|
|
257
|
+
<label class=" col-sm-2 control-label">购买方名称:</label>
|
|
258
|
+
<input type="text" class="form-control" v-model="paperinfo.f_buy_name" style="width:60%"
|
|
259
|
+
:value.sync="paperinfo.f_buy_name" placeholder="购买方名称"
|
|
260
|
+
>
|
|
261
|
+
</div>
|
|
262
|
+
<div class="form-group col-sm-6">
|
|
263
|
+
<label class=" col-sm-2 control-label">纳税人识别号:</label>
|
|
264
|
+
<input type="text" class="form-control" v-model="paperinfo.f_pay_id" style="width:60%"
|
|
265
|
+
placeholder="纳税人识别号" :value.sync="paperinfo.f_pay_id"
|
|
266
|
+
>
|
|
267
|
+
</div>
|
|
268
|
+
</div>
|
|
269
|
+
<div class="row">
|
|
270
|
+
<div class="form-group col-sm-6">
|
|
271
|
+
<label class=" col-sm-2 control-label">购买方地址电话:</label>
|
|
272
|
+
<input type="text" class="form-control" v-model="paperinfo.f_buy_address" style="width:60%"
|
|
273
|
+
placeholder="购买方地址" :value.sync="paperinfo.f_buy_address"
|
|
274
|
+
>
|
|
275
|
+
</div>
|
|
276
|
+
<div class="form-group col-sm-6">
|
|
277
|
+
<label class=" col-sm-2 control-label">购买方开户行及账号:</label>
|
|
278
|
+
<input type="text" class="form-control" v-model="paperinfo.f_buy_openbank" style="width:60%"
|
|
279
|
+
placeholder="购买方开户行及账号" :value.sync="paperinfo.f_buy_openbank"
|
|
280
|
+
>
|
|
281
|
+
</div>
|
|
282
|
+
<div class="form-group col-sm-6">
|
|
283
|
+
<label class=" col-sm-2 control-label">邮箱:</label>
|
|
284
|
+
<input type="text" class="form-control" v-model="paperinfo.f_email_push" style="width:60%"
|
|
285
|
+
placeholder="邮箱" :value.sync="paperinfo.f_email_push"
|
|
286
|
+
>
|
|
287
|
+
</div>
|
|
288
|
+
</div>
|
|
211
289
|
|
|
290
|
+
|
|
291
|
+
</form>
|
|
292
|
+
</validator>
|
|
293
|
+
</article>
|
|
294
|
+
<footer slot="modal-footer" class="modal-footer">
|
|
295
|
+
<button type="button" class="btn btn-default" @click='papaercom()'>确认</button>
|
|
296
|
+
</footer>
|
|
297
|
+
</modal>
|
|
212
298
|
</template>
|
|
213
299
|
<script>
|
|
214
300
|
import {HttpResetClass} from 'vue-client'
|
|
215
301
|
import InputAndSelect from "vue-client/src/vue-strap/src/InputAndSelect";
|
|
216
|
-
import {
|
|
217
|
-
import
|
|
302
|
+
import {DataModel} from 'vue-client'
|
|
303
|
+
import commonService from "../../../../plugins/commonService.js";
|
|
218
304
|
|
|
219
305
|
let gen = function* (self, val) {
|
|
220
306
|
val.f_actualfee_type = val.f_actualfee_type[0]
|
|
@@ -226,43 +312,44 @@
|
|
|
226
312
|
})
|
|
227
313
|
}
|
|
228
314
|
export default {
|
|
315
|
+
|
|
229
316
|
components: {InputAndSelect},
|
|
230
317
|
title: '报装收费',
|
|
231
318
|
data() {
|
|
232
319
|
return {
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
320
|
+
billtype: {
|
|
321
|
+
name: "收费发票"
|
|
322
|
+
},
|
|
236
323
|
isSingleUser: false,
|
|
237
|
-
isOne: [{label:'是',value: '是'},{label:'否',value: '否'}],
|
|
324
|
+
isOne: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
238
325
|
printUserInfo: {
|
|
239
|
-
f_user_name:'',
|
|
240
|
-
|
|
326
|
+
f_user_name: '',
|
|
327
|
+
f_phone: '',
|
|
241
328
|
f_address: ''
|
|
242
329
|
},
|
|
243
330
|
refresh: false,
|
|
244
|
-
ifsearch:false,
|
|
331
|
+
ifsearch: false,
|
|
245
332
|
showpay: false, // 新增收费模态框开关
|
|
246
333
|
showbuyerinfo: false, // 新增收费模态框开关
|
|
247
334
|
selectsellid: null, //需要打票收费id
|
|
248
|
-
buyerinfo:{
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
335
|
+
buyerinfo: {
|
|
336
|
+
id: '',
|
|
337
|
+
f_buyer_name: '',
|
|
338
|
+
f_buyer_identify: '',
|
|
339
|
+
f_buyer_addphone: '',
|
|
340
|
+
f_buyer_bank: '',
|
|
341
|
+
f_buyer_email: '',
|
|
342
|
+
rows: [] // 购货方信息
|
|
256
343
|
},
|
|
257
344
|
model: {
|
|
258
345
|
f_isone: ['否'],
|
|
259
|
-
chargeid:'',
|
|
346
|
+
chargeid: '',
|
|
260
347
|
f_print: ['普通收据'],
|
|
261
|
-
f_bill_type:'普通收据',
|
|
262
|
-
f_bill_style:'普通发票',
|
|
263
|
-
f_use_type:'报建费用',
|
|
264
|
-
f_payment:['现金缴费'],
|
|
265
|
-
f_charge_money:0,
|
|
348
|
+
f_bill_type: '普通收据',
|
|
349
|
+
f_bill_style: '普通发票',
|
|
350
|
+
f_use_type: '报建费用',
|
|
351
|
+
f_payment: ['现金缴费'],
|
|
352
|
+
f_charge_money: 0,
|
|
266
353
|
f_apply_num: '',//报建编号
|
|
267
354
|
f_process_id: '',//流程ID
|
|
268
355
|
f_payments: '',//首付
|
|
@@ -285,24 +372,24 @@
|
|
|
285
372
|
f_residual_invoicing: '',//剩余开票金额
|
|
286
373
|
f_main_contract_num: 0,//主合同编号
|
|
287
374
|
rows: [], // 付费数据数组
|
|
288
|
-
f_user_name:"",
|
|
289
|
-
f_phone:"",
|
|
290
|
-
f_address:"",
|
|
291
|
-
f_userinfo_id:""
|
|
375
|
+
f_user_name: "",
|
|
376
|
+
f_phone: "",
|
|
377
|
+
f_address: "",
|
|
378
|
+
f_userinfo_id: ""
|
|
292
379
|
},
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
chargemoney:0,
|
|
380
|
+
billmodel: {
|
|
381
|
+
f_user_name: "",
|
|
382
|
+
f_phone: "",
|
|
383
|
+
f_address: "",
|
|
384
|
+
f_userinfo_id: ""
|
|
385
|
+
},
|
|
386
|
+
chargemoney: 0,
|
|
300
387
|
chargeitems: this.$appdata.getParam('收费项目'),
|
|
301
388
|
billstyles: this.$appdata.getParam('票据类型'),
|
|
302
389
|
paymenttypes: this.$appdata.getParam('付款方式'),
|
|
303
390
|
printstyle: this.$appdata.getParam('打印格式'),
|
|
304
391
|
print: false,
|
|
305
|
-
|
|
392
|
+
delprint: false,
|
|
306
393
|
taxprint: false,
|
|
307
394
|
billData: {
|
|
308
395
|
url: 'rs/report/applyCharge_bill',
|
|
@@ -315,41 +402,52 @@
|
|
|
315
402
|
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
316
403
|
payment: '现金缴费', // 付款方式
|
|
317
404
|
brandspec: '材料费', // 收费类型
|
|
318
|
-
billtype:"收费发票"
|
|
405
|
+
billtype: "收费发票"
|
|
319
406
|
},
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
addItem:{
|
|
330
|
-
f_charge_money
|
|
331
|
-
f_amount_words
|
|
332
|
-
f_payment_type
|
|
333
|
-
f_charge_collectors
|
|
334
|
-
f_charge_date
|
|
335
|
-
f_charge_remarks
|
|
336
|
-
f_filiale
|
|
337
|
-
f_process_id
|
|
338
|
-
f_apply_num
|
|
339
|
-
f_payment_method:'',
|
|
340
|
-
f_charging_status
|
|
341
|
-
f_is_correct
|
|
342
|
-
f_bill_style:''
|
|
407
|
+
config2: {
|
|
408
|
+
hasPrint: true, //默认打票
|
|
409
|
+
hasBillManage: true, //默认不启用发票管理
|
|
410
|
+
billType: '报建收费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
|
|
411
|
+
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
412
|
+
payment: '现金缴费', // 付款方式
|
|
413
|
+
brandspec: '材料费', // 收费类型
|
|
414
|
+
billtype: "冲正发票"
|
|
415
|
+
},
|
|
416
|
+
addItem: {
|
|
417
|
+
f_charge_money: 0,
|
|
418
|
+
f_amount_words: '',
|
|
419
|
+
f_payment_type: '',
|
|
420
|
+
f_charge_collectors: this.$login.f.name,
|
|
421
|
+
f_charge_date: '',
|
|
422
|
+
f_charge_remarks: '',
|
|
423
|
+
f_filiale: '',
|
|
424
|
+
f_process_id: '',
|
|
425
|
+
f_apply_num: '',
|
|
426
|
+
f_payment_method: '',
|
|
427
|
+
f_charging_status: '有效',
|
|
428
|
+
f_is_correct: '否',
|
|
429
|
+
f_bill_style: ''
|
|
343
430
|
},
|
|
344
|
-
charges: [{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
|
|
431
|
+
charges: [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
345
432
|
// 启用发票管理需要对票号进行验证
|
|
346
|
-
hasValidateBill:
|
|
433
|
+
hasValidateBill: false,
|
|
347
434
|
validateOk: false,
|
|
348
|
-
userinfoRow:{
|
|
349
|
-
|
|
435
|
+
userinfoRow: {
|
|
436
|
+
rows: []
|
|
350
437
|
},
|
|
351
|
-
oldInfo:{},
|
|
352
|
-
bill: '' // 票数据
|
|
438
|
+
oldInfo: {},
|
|
439
|
+
bill: '', // 票数据
|
|
440
|
+
paperticket: false,
|
|
441
|
+
ids: {},
|
|
442
|
+
paperinfo: {
|
|
443
|
+
f_buy_name : '',
|
|
444
|
+
f_pay_id : '',
|
|
445
|
+
f_buy_address : '',
|
|
446
|
+
f_buy_openbank : '',
|
|
447
|
+
f_email_push:''
|
|
448
|
+
},
|
|
449
|
+
param: {},
|
|
450
|
+
papershow: false
|
|
353
451
|
}
|
|
354
452
|
},
|
|
355
453
|
props: ['infee', 'showfee'],
|
|
@@ -359,135 +457,172 @@
|
|
|
359
457
|
},
|
|
360
458
|
|
|
361
459
|
methods: {
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
460
|
+
async papaercom() {
|
|
461
|
+
this.papershow = false
|
|
462
|
+
console.log("this.paperinfo.",this.paperinfo)
|
|
463
|
+
this.param.paperinfo=this.paperinfo
|
|
464
|
+
// this.param.paperinfo.f_buy_name = this.paperinfo.f_buy_name ? this.paperinfo.f_buy_name : ''
|
|
465
|
+
// this.param.paperinfo.f_pay_id = this.paperinfo.f_pay_id ? this.paperinfo.f_pay_id : ''
|
|
466
|
+
// this.param.paperinfo.f_buy_address = this.paperinfo.f_buy_address ? this.paperinfo.f_buy_address : ''
|
|
467
|
+
// this.param.paperinfo.f_buy_openbank = this.paperinfo.f_buy_openbank ? this.paperinfo.f_buy_openbank : ''
|
|
468
|
+
if (this.param.f_print === '电子发票') {
|
|
469
|
+
let temp = await this.$commonService.openEticket(this.param, '报装收费')
|
|
470
|
+
console.log("temp", temp.data.f_bill_url)
|
|
471
|
+
this.f_bill_url = temp.data.f_bill_url
|
|
472
|
+
window.open(this.f_bill_url)
|
|
473
|
+
this.param = {}
|
|
474
|
+
this.$dispatch('success')
|
|
475
|
+
} else if (this.param.f_print === '纸质专票') {
|
|
476
|
+
await this.$commonService.openEticket(this.param, '报装收费')
|
|
477
|
+
this.ids.id = this.param.id
|
|
478
|
+
this.param = {}
|
|
479
|
+
this.paperticket = true
|
|
480
|
+
} else if (this.param.f_print === '纸质普票') {
|
|
481
|
+
await this.$commonService.openEticket(this.param, '报装收费')
|
|
482
|
+
this.ids.id = this.param.id
|
|
483
|
+
this.param = {}
|
|
484
|
+
this.paperticket = true
|
|
485
|
+
}
|
|
486
|
+
this.paperinfo.f_buy_name = ''
|
|
487
|
+
this.paperinfo.f_pay_id = ''
|
|
488
|
+
this.paperinfo.f_buy_address = ''
|
|
489
|
+
this.paperinfo.f_buy_openbank = ''
|
|
490
|
+
this.paperinfo.f_email_push=''
|
|
491
|
+
},
|
|
492
|
+
closeticket() {
|
|
493
|
+
this.paperticket = false
|
|
494
|
+
this.$dispatch('success')
|
|
495
|
+
},
|
|
496
|
+
//冲正
|
|
497
|
+
deleteChargeRecord(index) {
|
|
498
|
+
console.log(JSON.stringify(this.model.rows[index]))
|
|
499
|
+
if (this.config.hasPrint) {
|
|
500
|
+
if (this.model.f_print[0] === '普通收据') {
|
|
501
|
+
if (this.config.hasBillManage) {
|
|
502
|
+
|
|
503
|
+
this.model.f_bill_type = this.model.f_print[0]
|
|
504
|
+
this.model.f_bill_style = this.model.f_print[0]
|
|
505
|
+
this.print = true
|
|
506
|
+
|
|
507
|
+
console.log('f_bill_style' + this.model.f_bill_style)
|
|
508
|
+
|
|
385
509
|
} else {
|
|
386
|
-
|
|
510
|
+
this.print = true
|
|
387
511
|
}
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
},
|
|
403
|
-
getUserinfo(index){
|
|
404
|
-
console.log(index)
|
|
405
|
-
console.log("a")
|
|
406
|
-
this.model.f_user_name = this.userinfoRow.rows[index].f_user_name;
|
|
407
|
-
this.model.f_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
408
|
-
this.model.f_address = this.userinfoRow.rows[index].address;
|
|
409
|
-
this.model.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
410
|
-
this.billmodel.f_user_name = this.userinfoRow.rows[index].f_user_name;
|
|
411
|
-
this.billmodel.f_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
412
|
-
this.billmodel.f_address = this.userinfoRow.rows[index].address;
|
|
413
|
-
this.billmodel.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
414
|
-
|
|
415
|
-
},
|
|
416
|
-
calcmoney(index){
|
|
417
|
-
console.log("开始计算");
|
|
418
|
-
this.charges[index].f_money = this.charges[index].f_price*this.charges[index].f_amount
|
|
419
|
-
let allmoney = 0;
|
|
420
|
-
for(let i=0;i<this.charges.length;i++){
|
|
421
|
-
allmoney += parseFloat(this.charges[i].f_money)
|
|
512
|
+
} else if (this.model.f_print[0] === '国税发票') {
|
|
513
|
+
// TODO
|
|
514
|
+
this.$dispatch('success')
|
|
515
|
+
} else if (this.model.f_print[0] === '电子发票') {
|
|
516
|
+
// TODO
|
|
517
|
+
this.$dispatch('success')
|
|
518
|
+
}
|
|
519
|
+
} else {
|
|
520
|
+
this.$dispatch('success')
|
|
521
|
+
}
|
|
522
|
+
this.$showMessage('是否冲正此条记录?', ['confirm', 'cancel']).then((res) => {
|
|
523
|
+
if (res === 'confirm') {
|
|
524
|
+
let param = {
|
|
525
|
+
row: this.model.rows[index]
|
|
422
526
|
}
|
|
423
|
-
this
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
527
|
+
this.$resetpost('rs/logic/restChargeRecord', {data: param}, {resolveMsg: null, rejectMsg: "冲正失败!"})
|
|
528
|
+
.then((res) => {
|
|
529
|
+
this.$showAlert('冲正成功!', 'success', 5000)
|
|
530
|
+
this.load()
|
|
531
|
+
})
|
|
532
|
+
} else {
|
|
533
|
+
this.load()
|
|
534
|
+
}
|
|
535
|
+
})
|
|
536
|
+
},
|
|
537
|
+
getUserinfo(index) {
|
|
538
|
+
console.log(index)
|
|
539
|
+
console.log("a")
|
|
540
|
+
this.model.f_user_name = this.userinfoRow.rows[index].f_user_name;
|
|
541
|
+
this.model.f_process_id = this.userinfoRow.rows[index].f_process_id;
|
|
542
|
+
this.model.f_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
543
|
+
this.model.f_address = this.userinfoRow.rows[index].address;
|
|
544
|
+
this.model.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
545
|
+
this.billmodel.f_user_name = this.userinfoRow.rows[index].f_user_name;
|
|
546
|
+
this.billmodel.f_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
547
|
+
this.billmodel.f_address = this.userinfoRow.rows[index].address;
|
|
548
|
+
this.billmodel.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
549
|
+
|
|
550
|
+
},
|
|
551
|
+
calcmoney(index) {
|
|
552
|
+
console.log("开始计算");
|
|
553
|
+
this.charges[index].f_money = this.charges[index].f_price * this.charges[index].f_amount
|
|
554
|
+
let allmoney = 0;
|
|
555
|
+
for (let i = 0; i < this.charges.length; i++) {
|
|
556
|
+
allmoney += parseFloat(this.charges[i].f_money)
|
|
557
|
+
}
|
|
558
|
+
this.model.f_charge_money = allmoney
|
|
559
|
+
// row.f_money = parseFloat(row.f_amount)*parseFloat(row.f_price);
|
|
428
560
|
},
|
|
429
|
-
|
|
561
|
+
addItems() {
|
|
562
|
+
this.charges.push({f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0})
|
|
563
|
+
},
|
|
564
|
+
delItems(index) {
|
|
430
565
|
console.log('index==', index);
|
|
431
566
|
if (this.charges.length > 1) {
|
|
432
567
|
this.charges.splice(index, 1)
|
|
433
568
|
}
|
|
434
569
|
},
|
|
435
|
-
selfclean(){
|
|
570
|
+
selfclean() {
|
|
436
571
|
console.log("清空输入框")
|
|
437
|
-
this.model.f_charge_money =0
|
|
438
|
-
this.model.f_amount_words =''
|
|
439
|
-
this.model.f_charge_remarks =''
|
|
572
|
+
this.model.f_charge_money = 0
|
|
573
|
+
this.model.f_amount_words = ''
|
|
574
|
+
this.model.f_charge_remarks = ''
|
|
440
575
|
},
|
|
441
|
-
clean
|
|
442
|
-
this.addItem={
|
|
443
|
-
f_charge_money
|
|
444
|
-
f_amount_words
|
|
445
|
-
f_payment_type
|
|
446
|
-
f_charge_collectors
|
|
447
|
-
f_charge_date
|
|
448
|
-
f_charge_remarks
|
|
449
|
-
f_filiale
|
|
450
|
-
f_process_id
|
|
451
|
-
f_apply_num
|
|
452
|
-
f_charging_status
|
|
453
|
-
f_is_correct
|
|
454
|
-
f_bill_style:''
|
|
576
|
+
clean() {
|
|
577
|
+
this.addItem = {
|
|
578
|
+
f_charge_money: 0,
|
|
579
|
+
f_amount_words: '',
|
|
580
|
+
f_payment_type: '',
|
|
581
|
+
f_charge_collectors: this.$login.f.name,
|
|
582
|
+
f_charge_date: '',
|
|
583
|
+
f_charge_remarks: '',
|
|
584
|
+
f_filiale: '',
|
|
585
|
+
f_process_id: '',
|
|
586
|
+
f_apply_num: '',
|
|
587
|
+
f_charging_status: '有效',
|
|
588
|
+
f_is_correct: '否',
|
|
589
|
+
f_bill_style: ''
|
|
455
590
|
}
|
|
456
591
|
|
|
457
592
|
// this.$dispatch('refresh', this.model)
|
|
458
593
|
},
|
|
459
|
-
close
|
|
460
|
-
|
|
594
|
+
close() {
|
|
595
|
+
console.log("关闭打印框")
|
|
461
596
|
this.taxprint = false
|
|
462
597
|
this.print = false
|
|
463
598
|
this.delprint = false
|
|
464
599
|
this.clean()
|
|
465
600
|
},
|
|
466
|
-
printok
|
|
601
|
+
printok() {
|
|
467
602
|
console.log("successs............")
|
|
468
603
|
this.$dispatch('success')
|
|
469
604
|
},
|
|
470
|
-
validateBill
|
|
605
|
+
validateBill(val) {
|
|
471
606
|
this.validateOk = !val.isOk
|
|
472
607
|
this.billData.bill = val.bill
|
|
473
608
|
},
|
|
474
609
|
|
|
475
|
-
confirmbuyerinfo
|
|
610
|
+
confirmbuyerinfo(args) {
|
|
476
611
|
let drawbilldata = {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
612
|
+
sellid: this.selectsellid,
|
|
613
|
+
buyerid: args.id,
|
|
614
|
+
operator: this.$login.f.name
|
|
480
615
|
}
|
|
481
616
|
this.closebuyerinfo()
|
|
482
617
|
this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
618
|
+
.then((res) => {
|
|
619
|
+
if (res.data.status === 200) {
|
|
620
|
+
this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
|
|
486
621
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
622
|
+
} else {
|
|
623
|
+
this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status, 'warning', 3000)
|
|
624
|
+
}
|
|
625
|
+
})
|
|
491
626
|
},
|
|
492
627
|
// 输入金额校验
|
|
493
628
|
check() {
|
|
@@ -543,11 +678,11 @@
|
|
|
543
678
|
// f_cumulative_invoicing: '',//--累计开票金额--
|
|
544
679
|
// f_residual_invoicing: '',//剩余开票金额
|
|
545
680
|
async confirm() {
|
|
546
|
-
if(this.validateOk){
|
|
681
|
+
if (this.validateOk) {
|
|
547
682
|
this.$showMessage("当前未分配发票号,请联系管理员!!");
|
|
548
683
|
return;
|
|
549
684
|
}
|
|
550
|
-
Object.assign(this.model,this.model,this.billmodel);
|
|
685
|
+
Object.assign(this.model, this.model, this.billmodel);
|
|
551
686
|
|
|
552
687
|
let flag = this.check()
|
|
553
688
|
if (!flag) {
|
|
@@ -555,14 +690,13 @@
|
|
|
555
690
|
}
|
|
556
691
|
if (Number(this.model.f_charge_money) > Number(this.model.f_unaccounts_money)) {
|
|
557
692
|
this.$showMessage("缴费金额不能大于剩余金额")
|
|
558
|
-
this.model.f_charge_money=0
|
|
559
|
-
this.model.f_amount_words=''
|
|
560
|
-
} else if (this.model.f_charge_money == 0||this.model.f_charge_money == ""||this.model.f_charge_money == null) {
|
|
693
|
+
this.model.f_charge_money = 0
|
|
694
|
+
this.model.f_amount_words = ''
|
|
695
|
+
} else if (this.model.f_charge_money == 0 || this.model.f_charge_money == "" || this.model.f_charge_money == null) {
|
|
561
696
|
this.$showMessage("不能缴费0元")
|
|
562
|
-
this.model.f_charge_money=0
|
|
563
|
-
this.model.f_amount_words=''
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
697
|
+
this.model.f_charge_money = 0
|
|
698
|
+
this.model.f_amount_words = ''
|
|
699
|
+
} else {
|
|
566
700
|
//获取购货方信息
|
|
567
701
|
http = new HttpResetClass()
|
|
568
702
|
data = {
|
|
@@ -591,11 +725,11 @@
|
|
|
591
725
|
this.addItem.f_charge_money = this.model.f_charge_money
|
|
592
726
|
this.addItem.f_amount_words = this.model.f_amount_words
|
|
593
727
|
console.log('f_payment' + this.model.f_payment)
|
|
594
|
-
this.addItem.f_payment_method= this.model.f_payment[0]
|
|
728
|
+
this.addItem.f_payment_method = this.model.f_payment[0]
|
|
595
729
|
this.addItem.f_charge_collectors = this.$login.f.name
|
|
596
730
|
this.addItem.f_charge_date = this.model.f_charge_date
|
|
597
731
|
this.addItem.f_charge_remarks = this.model.f_charge_remarks
|
|
598
|
-
this.addItem.f_filiale = this
|
|
732
|
+
this.addItem.f_filiale = this.model.f_payment_account =='安泰' ? '欣泰集团.安泰天然气' : '欣泰天然气'
|
|
599
733
|
this.addItem.f_process_id = this.infee.f_process_id
|
|
600
734
|
this.addItem.f_apply_num = this.infee.f_apply_num
|
|
601
735
|
this.model.rows.push(this.addItem)
|
|
@@ -604,21 +738,21 @@
|
|
|
604
738
|
let chargeremarks = this.addItem.f_charge_remarks ? this.addItem.f_charge_remarks : ''
|
|
605
739
|
let chargebillstyle = this.model.f_print[0]
|
|
606
740
|
this.chargemoney = this.addItem.f_charge_money
|
|
607
|
-
this.addItem.f_bill_style=this.model.f_print[0]
|
|
608
|
-
this.addItem.f_userinfo_id=this.model.f_userinfo_id
|
|
741
|
+
this.addItem.f_bill_style = this.model.f_print[0]
|
|
742
|
+
this.addItem.f_userinfo_id = this.model.f_userinfo_id
|
|
609
743
|
this.addItem.f_charge_state = '已收费'
|
|
610
|
-
if(this.model.f_user_name == ""){
|
|
744
|
+
if (this.model.f_user_name == "") {
|
|
611
745
|
|
|
612
|
-
|
|
613
|
-
}else{
|
|
614
|
-
|
|
746
|
+
this.addItem.f_charge_user = this.oldInfo.f_user_name;
|
|
747
|
+
} else {
|
|
748
|
+
this.addItem.f_charge_user = this.model.f_user_name;
|
|
615
749
|
}
|
|
616
|
-
if(this.model.f_user_name==""){
|
|
617
|
-
|
|
618
|
-
}else{
|
|
619
|
-
|
|
750
|
+
if (this.model.f_user_name == "") {
|
|
751
|
+
this.addItem.f_charge_address = this.oldInfo.f_address;
|
|
752
|
+
} else {
|
|
753
|
+
this.addItem.f_charge_address = this.model.f_address;
|
|
620
754
|
}
|
|
621
|
-
console.log("==>"+JSON.stringify(this.oldInfo))
|
|
755
|
+
console.log("==>" + JSON.stringify(this.oldInfo))
|
|
622
756
|
let data = {
|
|
623
757
|
tablename: 't_charge_record',
|
|
624
758
|
parameters: this.addItem
|
|
@@ -627,24 +761,29 @@
|
|
|
627
761
|
let sellid = ''
|
|
628
762
|
let ret = await http.load('POST', 'rs/logic/saveentity', {data: data})
|
|
629
763
|
this.model.chargeid = ret.data.id
|
|
630
|
-
console.log('ret==',ret)
|
|
764
|
+
console.log('ret==', ret)
|
|
631
765
|
data = {
|
|
632
766
|
f_cumulative_money: flag1,
|
|
633
767
|
f_unaccounts_money: flag2,
|
|
634
768
|
f_apply_num: this.infee.f_apply_num
|
|
635
769
|
}
|
|
636
770
|
//开始收费
|
|
637
|
-
for(let i=0;i<this.charges.length;i++){
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
771
|
+
for (let i = 0; i < this.charges.length; i++) {
|
|
772
|
+
let saveen = this.charges[i]
|
|
773
|
+
saveen.f_project_item = this.charges[i].f_project_item[0]
|
|
774
|
+
saveen.f_charge_record_id = parseFloat(ret.data.id);
|
|
775
|
+
await http.load('POST', 'rs/logic/saveentity', {
|
|
776
|
+
data: {
|
|
777
|
+
tablename: 't_charge_record_item',
|
|
778
|
+
parameters: saveen
|
|
779
|
+
}
|
|
780
|
+
}, {resolveMsg: null, rejectMsg: "失败"})
|
|
642
781
|
}
|
|
643
782
|
|
|
644
783
|
await http.load('POST', 'rs/logic/updatechargemoney', {data: data}, {resolveMsg: null, rejectMsg: "添加累计金额失败"})
|
|
645
784
|
.then((res) => {
|
|
646
|
-
this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
|
|
647
|
-
|
|
785
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
786
|
+
this.close()
|
|
648
787
|
this.load()
|
|
649
788
|
})
|
|
650
789
|
if (this.config.hasPrint) {
|
|
@@ -655,27 +794,41 @@
|
|
|
655
794
|
this.model.f_bill_style = this.model.f_print[0]
|
|
656
795
|
this.print = true
|
|
657
796
|
|
|
658
|
-
console.log('f_bill_style'+this.model.f_bill_style)
|
|
797
|
+
console.log('f_bill_style' + this.model.f_bill_style)
|
|
659
798
|
|
|
660
799
|
} else {
|
|
661
800
|
this.print = true
|
|
662
801
|
}
|
|
663
|
-
} else if (this.model.f_print[0] === '
|
|
802
|
+
} else if (this.model.f_print[0] === '纸质普票') {
|
|
803
|
+
this.param.f_print = this.model.f_print[0],
|
|
804
|
+
this.param.id = ret.data.id,
|
|
805
|
+
this.param.bz = this.model.f_charge_remarks
|
|
806
|
+
this.papershow = true
|
|
807
|
+
} else if (this.model.f_print[0] === '纸质专票') {
|
|
664
808
|
// TODO
|
|
665
|
-
this
|
|
666
|
-
|
|
809
|
+
this.param.f_print = this.model.f_print[0]
|
|
810
|
+
this.param.id = ret.data.id
|
|
811
|
+
this.param.bz = this.model.f_charge_remarks
|
|
812
|
+
this.papershow = true
|
|
813
|
+
|
|
814
|
+
} else if (this.model.f_print[0] === '电子发票') {
|
|
667
815
|
// TODO
|
|
668
|
-
this
|
|
816
|
+
this.param.f_print = this.model.f_print[0],
|
|
817
|
+
this.param.id = ret.data.id,
|
|
818
|
+
this.param.bz = this.model.f_charge_remarks
|
|
819
|
+
this.papershow = true
|
|
820
|
+
|
|
821
|
+
|
|
669
822
|
}
|
|
670
823
|
} else {
|
|
671
824
|
this.$dispatch('success')
|
|
672
825
|
}
|
|
673
826
|
|
|
674
827
|
}
|
|
675
|
-
this.model.f_amount_words=''
|
|
676
|
-
this.model.f_charge_money=0
|
|
828
|
+
this.model.f_amount_words = ''
|
|
829
|
+
this.model.f_charge_money = 0
|
|
677
830
|
},
|
|
678
|
-
async invoice(val){
|
|
831
|
+
async invoice(val) {
|
|
679
832
|
console.log('打印票据')
|
|
680
833
|
if (val.f_bill_style === '增值税电子发票') {
|
|
681
834
|
this.selectsellid = val.id
|
|
@@ -689,40 +842,40 @@
|
|
|
689
842
|
},
|
|
690
843
|
async tovoid(index) {
|
|
691
844
|
console.log(index)
|
|
692
|
-
|
|
693
|
-
this.model.rows[index].f_amount_words = "负"+this.model.rows[index].f_amount_words;
|
|
845
|
+
console.log(JSON.stringify(this.model.rows))
|
|
846
|
+
this.model.rows[index].f_amount_words = "负" + this.model.rows[index].f_amount_words;
|
|
694
847
|
this.model.rows[index].f_charge_money = -this.model.rows[index].f_charge_money;
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
if (val.f_is_correct==='是' || val.f_charging_status !== '有效' || val.f_is_correct==='冲正中') {
|
|
848
|
+
var val = this.model.rows[index];
|
|
849
|
+
this.model.chargeid = val.id;
|
|
850
|
+
|
|
851
|
+
this.delprint = false;
|
|
852
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
853
|
+
console.log(JSON.stringify(val))
|
|
854
|
+
// this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
|
|
855
|
+
if (val.f_is_correct === '是' || val.f_charging_status !== '有效' || val.f_is_correct === '冲正中') {
|
|
703
856
|
this.$showMessage('已冲正或正在冲正,不能操作!')
|
|
704
857
|
} else {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
858
|
+
let param = {
|
|
859
|
+
sellid: val.id,
|
|
860
|
+
operator: this.$login.f.name
|
|
708
861
|
}
|
|
709
|
-
this.$resetpost('rs/logic/applyCancelDrawBill', {data:param
|
|
862
|
+
this.$resetpost('rs/logic/applyCancelDrawBill', {data: param}, {
|
|
710
863
|
resolveMsg: null,
|
|
711
864
|
rejectMsg: '冲正失败'
|
|
712
865
|
}).then((res) => {
|
|
713
|
-
if (res.data.status === 200
|
|
866
|
+
if (res.data.status === 200) {
|
|
714
867
|
this.model.chargeid = res.data.charge_id;
|
|
715
868
|
if (val.f_bill_style === '增值税电子发票') {
|
|
716
|
-
this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
|
|
717
|
-
this.delprint = true;
|
|
718
|
-
}else {
|
|
719
|
-
this.$showAlert('冲正成功','success',2000)
|
|
869
|
+
this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
|
|
720
870
|
this.delprint = true;
|
|
721
|
-
}
|
|
871
|
+
} else {
|
|
872
|
+
this.$showAlert('冲正成功', 'success', 2000)
|
|
722
873
|
this.delprint = true;
|
|
723
|
-
|
|
874
|
+
}
|
|
875
|
+
this.delprint = true;
|
|
876
|
+
this.load()
|
|
724
877
|
} else {
|
|
725
|
-
this.$showAlert('冲正失败', 'warning',5000)
|
|
878
|
+
this.$showAlert('冲正失败', 'warning', 5000)
|
|
726
879
|
}
|
|
727
880
|
})
|
|
728
881
|
|
|
@@ -730,29 +883,35 @@
|
|
|
730
883
|
}
|
|
731
884
|
},
|
|
732
885
|
tomakeup(val) {
|
|
733
|
-
if (val.f_invoice_num
|
|
886
|
+
if (val.f_invoice_num) {
|
|
734
887
|
this.$showMessage('此记录有票据,不能操作!')
|
|
735
|
-
}else{
|
|
888
|
+
} else {
|
|
736
889
|
this.invoice(val)
|
|
737
890
|
}
|
|
738
891
|
},
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
892
|
+
//根据票据流水号查看票据
|
|
893
|
+
async seeeticket(val) {
|
|
894
|
+
console.log('该票据流水号为:', val.f_fpqqlsh)
|
|
895
|
+
var eticketData = await this.$resetpost('rs/sql/querySingleTable', {
|
|
896
|
+
data: {
|
|
897
|
+
items: 'f_bill_url,f_url_code',
|
|
898
|
+
tablename: 't_eticket',
|
|
899
|
+
condition: `f_serial_number=${val.f_fpqqlsh}`
|
|
900
|
+
}
|
|
901
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
902
|
+
console.log('eticketData:', eticketData)
|
|
903
|
+
var data = eticketData.data[0]
|
|
904
|
+
if (data.f_bill_url && data.f_bill_url != '') {
|
|
905
|
+
console.log(data)
|
|
906
|
+
var auth = data.f_bill_url.split("/")
|
|
907
|
+
console.log("截取", auth)
|
|
908
|
+
var authCode = auth[auth.length - 1]
|
|
909
|
+
var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
|
|
910
|
+
this.$showAlert('开票成功!', 'success', 500)
|
|
911
|
+
window.open(url)
|
|
912
|
+
return 'success'
|
|
913
|
+
}
|
|
914
|
+
return 'fail'
|
|
756
915
|
},
|
|
757
916
|
accSub(arg1, arg2) {
|
|
758
917
|
var r1, r2, m, n;
|
|
@@ -794,9 +953,9 @@
|
|
|
794
953
|
|
|
795
954
|
// 获取数据
|
|
796
955
|
async load() {
|
|
797
|
-
|
|
956
|
+
console.log('load被重新调用111')
|
|
798
957
|
this.refresh = !this.refresh
|
|
799
|
-
console.log("刷新validate,重新加载"+this.refresh)
|
|
958
|
+
console.log("刷新validate,重新加载" + this.refresh)
|
|
800
959
|
// this.ifsearch = !this.ifsearch
|
|
801
960
|
let http = new HttpResetClass()
|
|
802
961
|
let data = {
|
|
@@ -818,9 +977,9 @@
|
|
|
818
977
|
res.data[i].f_charge_date = res.data[i].f_charge_date.substring(0, 11)
|
|
819
978
|
}
|
|
820
979
|
this.model.rows = res.data
|
|
821
|
-
|
|
822
|
-
for(let i=0;i<res.data.length;i++) {
|
|
823
|
-
|
|
980
|
+
this.model.f_cumulative_money = 0;
|
|
981
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
982
|
+
this.model.f_cumulative_money =parseFloat(parseFloat(this.model.f_cumulative_money) + parseFloat(res.data[i].f_charge_money)).toFixed(2) ;
|
|
824
983
|
}
|
|
825
984
|
|
|
826
985
|
|
|
@@ -834,16 +993,21 @@
|
|
|
834
993
|
|
|
835
994
|
//获取用户信息
|
|
836
995
|
data = {
|
|
837
|
-
|
|
996
|
+
condition: this.infee.f_process_id
|
|
838
997
|
}
|
|
839
|
-
let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {
|
|
998
|
+
let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {
|
|
999
|
+
resolveMsg: null,
|
|
1000
|
+
rejectMsg: '获取用户信息失败!'
|
|
1001
|
+
})
|
|
840
1002
|
this.userinfoRow.rows = userinfores.data;
|
|
841
1003
|
|
|
842
|
-
this.oldInfo.f_user_name=this.model.f_user_name;
|
|
843
|
-
this.oldInfo.f_phone=this.model.f_phone;
|
|
844
|
-
this.oldInfo.f_address
|
|
845
|
-
this.model.f_isone= ['否'];
|
|
846
|
-
this.charges= [{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}];
|
|
1004
|
+
this.oldInfo.f_user_name = this.model.f_user_name;
|
|
1005
|
+
this.oldInfo.f_phone = this.model.f_phone;
|
|
1006
|
+
this.oldInfo.f_address = this.model.f_address;
|
|
1007
|
+
this.model.f_isone = ['否'];
|
|
1008
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}];
|
|
1009
|
+
this.hasValidateBill=true
|
|
1010
|
+
console.log('load被重新调用222')
|
|
847
1011
|
}
|
|
848
1012
|
},
|
|
849
1013
|
computed: {
|
|
@@ -891,27 +1055,27 @@
|
|
|
891
1055
|
// return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
|
|
892
1056
|
}
|
|
893
1057
|
},
|
|
894
|
-
watch
|
|
895
|
-
'model.f_isone'
|
|
1058
|
+
watch: {
|
|
1059
|
+
'model.f_isone'(val) {
|
|
896
1060
|
console.log('111111111is one', val, val[0] == '是')
|
|
897
1061
|
if (val[0] == '是') {
|
|
898
1062
|
this.isSingleUser = true
|
|
899
|
-
this.model.f_user_name=""
|
|
900
|
-
this.model.f_phone =""
|
|
901
|
-
this.model.f_address=""
|
|
902
|
-
this.model.f_userinfo_id="";
|
|
1063
|
+
this.model.f_user_name = ""
|
|
1064
|
+
this.model.f_phone = ""
|
|
1065
|
+
this.model.f_address = ""
|
|
1066
|
+
this.model.f_userinfo_id = "";
|
|
903
1067
|
} else {
|
|
904
1068
|
this.isSingleUser = false
|
|
905
|
-
this.model.f_user_name=this.oldInfo.f_user_name
|
|
906
|
-
this.model.f_phone =this.oldInfo.f_phone
|
|
907
|
-
this.model.f_address=this.oldInfo.f_address
|
|
908
|
-
this.model.f_userinfo_id="";
|
|
1069
|
+
this.model.f_user_name = this.oldInfo.f_user_name
|
|
1070
|
+
this.model.f_phone = this.oldInfo.f_phone
|
|
1071
|
+
this.model.f_address = this.oldInfo.f_address
|
|
1072
|
+
this.model.f_userinfo_id = "";
|
|
909
1073
|
}
|
|
910
1074
|
},
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
'print'
|
|
1075
|
+
'infee'(val) {
|
|
1076
|
+
this.load()
|
|
1077
|
+
},
|
|
1078
|
+
'print'(val) {
|
|
915
1079
|
this.load()
|
|
916
1080
|
}
|
|
917
1081
|
},
|