apply-clients 5.0.35-2 → 5.0.35-23
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 +2 -2
- package/src/AndroidApp.vue +28 -28
- package/src/android.js +1 -1
- package/src/apply.js +154 -151
- 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 -183
- package/src/components/app_apply/PlaceControler.vue +287 -256
- package/src/components/app_apply/ServiceControl.vue +348 -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 +765 -620
- package/src/components/product/Function/Service/FunctionServiceControl.vue +364 -328
- package/src/components/product/Function/functions/ApplyUpload.vue +556 -0
- package/src/components/product/Function/functions/InstallFee.vue +500 -339
- package/src/components/product/Process/ExplorationSelect.vue +2 -2
- package/src/components/product/Process/Processes/CustomerRecordMessage.vue +2 -5
- package/src/components/product/Process/Processes/Service/ApplyChargeSearch.vue +25 -27
- package/src/components/product/Process/Processes/Service/PaperTicketBill.vue +85 -0
- package/src/components/product/ServiceView.vue +1 -1
- package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +6 -5
- package/src/components/product/Supervisory/SupervisoryList.vue +1 -1
- package/src/ezhouAndroid.js +44 -45
- 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">
|
|
211
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>
|
|
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: ""
|
|
379
|
+
},
|
|
380
|
+
billmodel: {
|
|
381
|
+
f_user_name: "",
|
|
382
|
+
f_phone: "",
|
|
383
|
+
f_address: "",
|
|
384
|
+
f_userinfo_id: ""
|
|
292
385
|
},
|
|
293
|
-
|
|
294
|
-
f_user_name:"",
|
|
295
|
-
f_phone:"",
|
|
296
|
-
f_address:"",
|
|
297
|
-
f_userinfo_id:""
|
|
298
|
-
},
|
|
299
|
-
chargemoney:0,
|
|
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 :0,
|
|
331
|
-
f_amount_words :'',
|
|
332
|
-
f_payment_type :'',
|
|
333
|
-
f_charge_collectors : this.$login.f.name,
|
|
334
|
-
f_charge_date :'',
|
|
335
|
-
f_charge_remarks :'',
|
|
336
|
-
f_filiale : this.$login.f.f_fengongsi,
|
|
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: "冲正发票"
|
|
343
415
|
},
|
|
344
|
-
|
|
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: this.$login.f.f_fengongsi,
|
|
424
|
+
f_process_id: '',
|
|
425
|
+
f_apply_num: '',
|
|
426
|
+
f_payment_method: '',
|
|
427
|
+
f_charging_status: '有效',
|
|
428
|
+
f_is_correct: '否',
|
|
429
|
+
f_bill_style: ''
|
|
430
|
+
},
|
|
431
|
+
charges: [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
345
432
|
// 启用发票管理需要对票号进行验证
|
|
346
433
|
hasValidateBill: true,
|
|
347
434
|
validateOk: false,
|
|
348
|
-
userinfoRow:{
|
|
349
|
-
|
|
435
|
+
userinfoRow: {
|
|
436
|
+
rows: []
|
|
437
|
+
},
|
|
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:''
|
|
350
448
|
},
|
|
351
|
-
|
|
352
|
-
|
|
449
|
+
param: {},
|
|
450
|
+
papershow: false
|
|
353
451
|
}
|
|
354
452
|
},
|
|
355
453
|
props: ['infee', 'showfee'],
|
|
@@ -359,135 +457,171 @@
|
|
|
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_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
542
|
+
this.model.f_address = this.userinfoRow.rows[index].address;
|
|
543
|
+
this.model.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
544
|
+
this.billmodel.f_user_name = this.userinfoRow.rows[index].f_user_name;
|
|
545
|
+
this.billmodel.f_phone = this.userinfoRow.rows[index].f_user_phone;
|
|
546
|
+
this.billmodel.f_address = this.userinfoRow.rows[index].address;
|
|
547
|
+
this.billmodel.f_userinfo_id = this.userinfoRow.rows[index].f_userinfo_id;
|
|
548
|
+
|
|
549
|
+
},
|
|
550
|
+
calcmoney(index) {
|
|
551
|
+
console.log("开始计算");
|
|
552
|
+
this.charges[index].f_money = this.charges[index].f_price * this.charges[index].f_amount
|
|
553
|
+
let allmoney = 0;
|
|
554
|
+
for (let i = 0; i < this.charges.length; i++) {
|
|
555
|
+
allmoney += parseFloat(this.charges[i].f_money)
|
|
556
|
+
}
|
|
557
|
+
this.model.f_charge_money = allmoney
|
|
558
|
+
// row.f_money = parseFloat(row.f_amount)*parseFloat(row.f_price);
|
|
559
|
+
},
|
|
560
|
+
addItems() {
|
|
561
|
+
this.charges.push({f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0})
|
|
428
562
|
},
|
|
429
|
-
delItems
|
|
563
|
+
delItems(index) {
|
|
430
564
|
console.log('index==', index);
|
|
431
565
|
if (this.charges.length > 1) {
|
|
432
566
|
this.charges.splice(index, 1)
|
|
433
567
|
}
|
|
434
568
|
},
|
|
435
|
-
selfclean(){
|
|
569
|
+
selfclean() {
|
|
436
570
|
console.log("清空输入框")
|
|
437
|
-
this.model.f_charge_money =0
|
|
438
|
-
this.model.f_amount_words =''
|
|
439
|
-
this.model.f_charge_remarks =''
|
|
571
|
+
this.model.f_charge_money = 0
|
|
572
|
+
this.model.f_amount_words = ''
|
|
573
|
+
this.model.f_charge_remarks = ''
|
|
440
574
|
},
|
|
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:''
|
|
575
|
+
clean() {
|
|
576
|
+
this.addItem = {
|
|
577
|
+
f_charge_money: 0,
|
|
578
|
+
f_amount_words: '',
|
|
579
|
+
f_payment_type: '',
|
|
580
|
+
f_charge_collectors: this.$login.f.name,
|
|
581
|
+
f_charge_date: '',
|
|
582
|
+
f_charge_remarks: '',
|
|
583
|
+
f_filiale: this.$login.f.f_fengongsi,
|
|
584
|
+
f_process_id: '',
|
|
585
|
+
f_apply_num: '',
|
|
586
|
+
f_charging_status: '有效',
|
|
587
|
+
f_is_correct: '否',
|
|
588
|
+
f_bill_style: ''
|
|
455
589
|
}
|
|
456
590
|
|
|
457
591
|
// this.$dispatch('refresh', this.model)
|
|
458
592
|
},
|
|
459
|
-
close
|
|
460
|
-
|
|
593
|
+
close() {
|
|
594
|
+
console.log("关闭打印框")
|
|
461
595
|
this.taxprint = false
|
|
462
596
|
this.print = false
|
|
463
597
|
this.delprint = false
|
|
464
598
|
this.clean()
|
|
465
599
|
},
|
|
466
|
-
printok
|
|
600
|
+
printok() {
|
|
467
601
|
console.log("successs............")
|
|
468
602
|
this.$dispatch('success')
|
|
469
603
|
},
|
|
470
|
-
validateBill
|
|
604
|
+
validateBill(val) {
|
|
471
605
|
this.validateOk = !val.isOk
|
|
472
606
|
this.billData.bill = val.bill
|
|
473
607
|
},
|
|
474
608
|
|
|
475
|
-
confirmbuyerinfo
|
|
609
|
+
confirmbuyerinfo(args) {
|
|
476
610
|
let drawbilldata = {
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
611
|
+
sellid: this.selectsellid,
|
|
612
|
+
buyerid: args.id,
|
|
613
|
+
operator: this.$login.f.name
|
|
480
614
|
}
|
|
481
615
|
this.closebuyerinfo()
|
|
482
616
|
this.$resetpost('rs/logic/applyDrawBill', {data: drawbilldata}, {resolveMsg: null, rejectMsg: "开发票失败"})
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
617
|
+
.then((res) => {
|
|
618
|
+
if (res.data.status === 200) {
|
|
619
|
+
this.$showAlert('申请开具增值税电子发票成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
|
|
486
620
|
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
621
|
+
} else {
|
|
622
|
+
this.$showAlert('电子发票开票失败,失败代码为:' + res.data.status, 'warning', 3000)
|
|
623
|
+
}
|
|
624
|
+
})
|
|
491
625
|
},
|
|
492
626
|
// 输入金额校验
|
|
493
627
|
check() {
|
|
@@ -543,11 +677,11 @@
|
|
|
543
677
|
// f_cumulative_invoicing: '',//--累计开票金额--
|
|
544
678
|
// f_residual_invoicing: '',//剩余开票金额
|
|
545
679
|
async confirm() {
|
|
546
|
-
if(this.validateOk){
|
|
680
|
+
if (this.validateOk) {
|
|
547
681
|
this.$showMessage("当前未分配发票号,请联系管理员!!");
|
|
548
682
|
return;
|
|
549
683
|
}
|
|
550
|
-
Object.assign(this.model,this.model,this.billmodel);
|
|
684
|
+
Object.assign(this.model, this.model, this.billmodel);
|
|
551
685
|
|
|
552
686
|
let flag = this.check()
|
|
553
687
|
if (!flag) {
|
|
@@ -555,14 +689,13 @@
|
|
|
555
689
|
}
|
|
556
690
|
if (Number(this.model.f_charge_money) > Number(this.model.f_unaccounts_money)) {
|
|
557
691
|
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) {
|
|
692
|
+
this.model.f_charge_money = 0
|
|
693
|
+
this.model.f_amount_words = ''
|
|
694
|
+
} else if (this.model.f_charge_money == 0 || this.model.f_charge_money == "" || this.model.f_charge_money == null) {
|
|
561
695
|
this.$showMessage("不能缴费0元")
|
|
562
|
-
this.model.f_charge_money=0
|
|
563
|
-
this.model.f_amount_words=''
|
|
564
|
-
}
|
|
565
|
-
else {
|
|
696
|
+
this.model.f_charge_money = 0
|
|
697
|
+
this.model.f_amount_words = ''
|
|
698
|
+
} else {
|
|
566
699
|
//获取购货方信息
|
|
567
700
|
http = new HttpResetClass()
|
|
568
701
|
data = {
|
|
@@ -591,7 +724,7 @@
|
|
|
591
724
|
this.addItem.f_charge_money = this.model.f_charge_money
|
|
592
725
|
this.addItem.f_amount_words = this.model.f_amount_words
|
|
593
726
|
console.log('f_payment' + this.model.f_payment)
|
|
594
|
-
this.addItem.f_payment_method= this.model.f_payment[0]
|
|
727
|
+
this.addItem.f_payment_method = this.model.f_payment[0]
|
|
595
728
|
this.addItem.f_charge_collectors = this.$login.f.name
|
|
596
729
|
this.addItem.f_charge_date = this.model.f_charge_date
|
|
597
730
|
this.addItem.f_charge_remarks = this.model.f_charge_remarks
|
|
@@ -604,21 +737,21 @@
|
|
|
604
737
|
let chargeremarks = this.addItem.f_charge_remarks ? this.addItem.f_charge_remarks : ''
|
|
605
738
|
let chargebillstyle = this.model.f_print[0]
|
|
606
739
|
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
|
|
740
|
+
this.addItem.f_bill_style = this.model.f_print[0]
|
|
741
|
+
this.addItem.f_userinfo_id = this.model.f_userinfo_id
|
|
609
742
|
this.addItem.f_charge_state = '已收费'
|
|
610
|
-
if(this.model.f_user_name == ""){
|
|
743
|
+
if (this.model.f_user_name == "") {
|
|
611
744
|
|
|
612
|
-
|
|
613
|
-
}else{
|
|
614
|
-
|
|
745
|
+
this.addItem.f_charge_user = this.oldInfo.f_user_name;
|
|
746
|
+
} else {
|
|
747
|
+
this.addItem.f_charge_user = this.model.f_user_name;
|
|
615
748
|
}
|
|
616
|
-
if(this.model.f_user_name==""){
|
|
617
|
-
|
|
618
|
-
}else{
|
|
619
|
-
|
|
749
|
+
if (this.model.f_user_name == "") {
|
|
750
|
+
this.addItem.f_charge_address = this.oldInfo.f_address;
|
|
751
|
+
} else {
|
|
752
|
+
this.addItem.f_charge_address = this.model.f_address;
|
|
620
753
|
}
|
|
621
|
-
console.log("==>"+JSON.stringify(this.oldInfo))
|
|
754
|
+
console.log("==>" + JSON.stringify(this.oldInfo))
|
|
622
755
|
let data = {
|
|
623
756
|
tablename: 't_charge_record',
|
|
624
757
|
parameters: this.addItem
|
|
@@ -627,24 +760,29 @@
|
|
|
627
760
|
let sellid = ''
|
|
628
761
|
let ret = await http.load('POST', 'rs/logic/saveentity', {data: data})
|
|
629
762
|
this.model.chargeid = ret.data.id
|
|
630
|
-
console.log('ret==',ret)
|
|
763
|
+
console.log('ret==', ret)
|
|
631
764
|
data = {
|
|
632
765
|
f_cumulative_money: flag1,
|
|
633
766
|
f_unaccounts_money: flag2,
|
|
634
767
|
f_apply_num: this.infee.f_apply_num
|
|
635
768
|
}
|
|
636
769
|
//开始收费
|
|
637
|
-
for(let i=0;i<this.charges.length;i++){
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
770
|
+
for (let i = 0; i < this.charges.length; i++) {
|
|
771
|
+
let saveen = this.charges[i]
|
|
772
|
+
saveen.f_project_item = this.charges[i].f_project_item[0]
|
|
773
|
+
saveen.f_charge_record_id = parseFloat(ret.data.id);
|
|
774
|
+
await http.load('POST', 'rs/logic/saveentity', {
|
|
775
|
+
data: {
|
|
776
|
+
tablename: 't_charge_record_item',
|
|
777
|
+
parameters: saveen
|
|
778
|
+
}
|
|
779
|
+
}, {resolveMsg: null, rejectMsg: "失败"})
|
|
642
780
|
}
|
|
643
781
|
|
|
644
782
|
await http.load('POST', 'rs/logic/updatechargemoney', {data: data}, {resolveMsg: null, rejectMsg: "添加累计金额失败"})
|
|
645
783
|
.then((res) => {
|
|
646
|
-
this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
|
|
647
|
-
|
|
784
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
785
|
+
this.close()
|
|
648
786
|
this.load()
|
|
649
787
|
})
|
|
650
788
|
if (this.config.hasPrint) {
|
|
@@ -655,27 +793,41 @@
|
|
|
655
793
|
this.model.f_bill_style = this.model.f_print[0]
|
|
656
794
|
this.print = true
|
|
657
795
|
|
|
658
|
-
console.log('f_bill_style'+this.model.f_bill_style)
|
|
796
|
+
console.log('f_bill_style' + this.model.f_bill_style)
|
|
659
797
|
|
|
660
798
|
} else {
|
|
661
799
|
this.print = true
|
|
662
800
|
}
|
|
663
|
-
} else if (this.model.f_print[0] === '
|
|
801
|
+
} else if (this.model.f_print[0] === '纸质普票') {
|
|
802
|
+
this.param.f_print = this.model.f_print[0],
|
|
803
|
+
this.param.id = ret.data.id,
|
|
804
|
+
this.param.bz = this.model.f_charge_remarks
|
|
805
|
+
this.papershow = true
|
|
806
|
+
} else if (this.model.f_print[0] === '纸质专票') {
|
|
664
807
|
// TODO
|
|
665
|
-
this
|
|
666
|
-
|
|
808
|
+
this.param.f_print = this.model.f_print[0]
|
|
809
|
+
this.param.id = ret.data.id
|
|
810
|
+
this.param.bz = this.model.f_charge_remarks
|
|
811
|
+
this.papershow = true
|
|
812
|
+
|
|
813
|
+
} else if (this.model.f_print[0] === '电子发票') {
|
|
667
814
|
// TODO
|
|
668
|
-
this
|
|
815
|
+
this.param.f_print = this.model.f_print[0],
|
|
816
|
+
this.param.id = ret.data.id,
|
|
817
|
+
this.param.bz = this.model.f_charge_remarks
|
|
818
|
+
this.papershow = true
|
|
819
|
+
|
|
820
|
+
|
|
669
821
|
}
|
|
670
822
|
} else {
|
|
671
823
|
this.$dispatch('success')
|
|
672
824
|
}
|
|
673
825
|
|
|
674
826
|
}
|
|
675
|
-
this.model.f_amount_words=''
|
|
676
|
-
this.model.f_charge_money=0
|
|
827
|
+
this.model.f_amount_words = ''
|
|
828
|
+
this.model.f_charge_money = 0
|
|
677
829
|
},
|
|
678
|
-
async invoice(val){
|
|
830
|
+
async invoice(val) {
|
|
679
831
|
console.log('打印票据')
|
|
680
832
|
if (val.f_bill_style === '增值税电子发票') {
|
|
681
833
|
this.selectsellid = val.id
|
|
@@ -689,40 +841,40 @@
|
|
|
689
841
|
},
|
|
690
842
|
async tovoid(index) {
|
|
691
843
|
console.log(index)
|
|
692
|
-
|
|
693
|
-
this.model.rows[index].f_amount_words = "负"+this.model.rows[index].f_amount_words;
|
|
844
|
+
console.log(JSON.stringify(this.model.rows))
|
|
845
|
+
this.model.rows[index].f_amount_words = "负" + this.model.rows[index].f_amount_words;
|
|
694
846
|
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==='冲正中') {
|
|
847
|
+
var val = this.model.rows[index];
|
|
848
|
+
this.model.chargeid = val.id;
|
|
849
|
+
|
|
850
|
+
this.delprint = false;
|
|
851
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}],
|
|
852
|
+
console.log(JSON.stringify(val))
|
|
853
|
+
// this.charges =[{f_project_item:'合同总额', f_amount: 0, f_price: 0,f_money:0}],
|
|
854
|
+
if (val.f_is_correct === '是' || val.f_charging_status !== '有效' || val.f_is_correct === '冲正中') {
|
|
703
855
|
this.$showMessage('已冲正或正在冲正,不能操作!')
|
|
704
856
|
} else {
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
857
|
+
let param = {
|
|
858
|
+
sellid: val.id,
|
|
859
|
+
operator: this.$login.f.name
|
|
708
860
|
}
|
|
709
|
-
this.$resetpost('rs/logic/applyCancelDrawBill', {data:param
|
|
861
|
+
this.$resetpost('rs/logic/applyCancelDrawBill', {data: param}, {
|
|
710
862
|
resolveMsg: null,
|
|
711
863
|
rejectMsg: '冲正失败'
|
|
712
864
|
}).then((res) => {
|
|
713
|
-
if (res.data.status === 200
|
|
865
|
+
if (res.data.status === 200) {
|
|
714
866
|
this.model.chargeid = res.data.charge_id;
|
|
715
867
|
if (val.f_bill_style === '增值税电子发票') {
|
|
716
|
-
this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success',5000)
|
|
717
|
-
this.delprint = true;
|
|
718
|
-
}else {
|
|
719
|
-
this.$showAlert('冲正成功','success',2000)
|
|
868
|
+
this.$showAlert('申请增值税电子发票冲正成功,请稍后到报建功能中【报建收费】中查看电子发票', 'success', 5000)
|
|
720
869
|
this.delprint = true;
|
|
721
|
-
}
|
|
870
|
+
} else {
|
|
871
|
+
this.$showAlert('冲正成功', 'success', 2000)
|
|
722
872
|
this.delprint = true;
|
|
723
|
-
|
|
873
|
+
}
|
|
874
|
+
this.delprint = true;
|
|
875
|
+
this.load()
|
|
724
876
|
} else {
|
|
725
|
-
this.$showAlert('冲正失败', 'warning',5000)
|
|
877
|
+
this.$showAlert('冲正失败', 'warning', 5000)
|
|
726
878
|
}
|
|
727
879
|
})
|
|
728
880
|
|
|
@@ -730,29 +882,35 @@
|
|
|
730
882
|
}
|
|
731
883
|
},
|
|
732
884
|
tomakeup(val) {
|
|
733
|
-
if (val.f_invoice_num
|
|
885
|
+
if (val.f_invoice_num) {
|
|
734
886
|
this.$showMessage('此记录有票据,不能操作!')
|
|
735
|
-
}else{
|
|
887
|
+
} else {
|
|
736
888
|
this.invoice(val)
|
|
737
889
|
}
|
|
738
890
|
},
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
891
|
+
//根据票据流水号查看票据
|
|
892
|
+
async seeeticket(val) {
|
|
893
|
+
console.log('该票据流水号为:', val.f_fpqqlsh)
|
|
894
|
+
var eticketData = await this.$resetpost('rs/sql/querySingleTable', {
|
|
895
|
+
data: {
|
|
896
|
+
items: 'f_bill_url,f_url_code',
|
|
897
|
+
tablename: 't_eticket',
|
|
898
|
+
condition: `f_serial_number=${val.f_fpqqlsh}`
|
|
899
|
+
}
|
|
900
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
901
|
+
console.log('eticketData:', eticketData)
|
|
902
|
+
var data = eticketData.data[0]
|
|
903
|
+
if (data.f_bill_url && data.f_bill_url != '') {
|
|
904
|
+
console.log(data)
|
|
905
|
+
var auth = data.f_bill_url.split("/")
|
|
906
|
+
console.log("截取", auth)
|
|
907
|
+
var authCode = auth[auth.length - 1]
|
|
908
|
+
var url = `https://${auth[2]}/ent-views/fpExtract/get_fapiao.html?pwd=${data.f_url_code}&authCode=${authCode}`
|
|
909
|
+
this.$showAlert('开票成功!', 'success', 500)
|
|
910
|
+
window.open(url)
|
|
911
|
+
return 'success'
|
|
912
|
+
}
|
|
913
|
+
return 'fail'
|
|
756
914
|
},
|
|
757
915
|
accSub(arg1, arg2) {
|
|
758
916
|
var r1, r2, m, n;
|
|
@@ -796,7 +954,7 @@
|
|
|
796
954
|
async load() {
|
|
797
955
|
|
|
798
956
|
this.refresh = !this.refresh
|
|
799
|
-
console.log("刷新validate,重新加载"+this.refresh)
|
|
957
|
+
console.log("刷新validate,重新加载" + this.refresh)
|
|
800
958
|
// this.ifsearch = !this.ifsearch
|
|
801
959
|
let http = new HttpResetClass()
|
|
802
960
|
let data = {
|
|
@@ -818,9 +976,9 @@
|
|
|
818
976
|
res.data[i].f_charge_date = res.data[i].f_charge_date.substring(0, 11)
|
|
819
977
|
}
|
|
820
978
|
this.model.rows = res.data
|
|
821
|
-
|
|
822
|
-
for(let i=0;i<res.data.length;i++) {
|
|
823
|
-
|
|
979
|
+
this.model.f_cumulative_money = 0;
|
|
980
|
+
for (let i = 0; i < res.data.length; i++) {
|
|
981
|
+
this.model.f_cumulative_money = this.model.f_cumulative_money + parseInt(res.data[i].f_charge_money);
|
|
824
982
|
}
|
|
825
983
|
|
|
826
984
|
|
|
@@ -834,16 +992,19 @@
|
|
|
834
992
|
|
|
835
993
|
//获取用户信息
|
|
836
994
|
data = {
|
|
837
|
-
|
|
995
|
+
condition: this.infee.f_process_id
|
|
838
996
|
}
|
|
839
|
-
let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {
|
|
997
|
+
let userinfores = await http.load('POST', 'rs/sql/getBillUserinfo', {data: data}, {
|
|
998
|
+
resolveMsg: null,
|
|
999
|
+
rejectMsg: '获取用户信息失败!'
|
|
1000
|
+
})
|
|
840
1001
|
this.userinfoRow.rows = userinfores.data;
|
|
841
1002
|
|
|
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}];
|
|
1003
|
+
this.oldInfo.f_user_name = this.model.f_user_name;
|
|
1004
|
+
this.oldInfo.f_phone = this.model.f_phone;
|
|
1005
|
+
this.oldInfo.f_address = this.model.f_address;
|
|
1006
|
+
this.model.f_isone = ['否'];
|
|
1007
|
+
this.charges = [{f_project_item: '合同总额', f_amount: 0, f_price: 0, f_money: 0}];
|
|
847
1008
|
}
|
|
848
1009
|
},
|
|
849
1010
|
computed: {
|
|
@@ -891,27 +1052,27 @@
|
|
|
891
1052
|
// return [{label: '全部', value: ''}, ...AppData.getParam('缴费类型')]
|
|
892
1053
|
}
|
|
893
1054
|
},
|
|
894
|
-
watch
|
|
895
|
-
'model.f_isone'
|
|
1055
|
+
watch: {
|
|
1056
|
+
'model.f_isone'(val) {
|
|
896
1057
|
console.log('111111111is one', val, val[0] == '是')
|
|
897
1058
|
if (val[0] == '是') {
|
|
898
1059
|
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="";
|
|
1060
|
+
this.model.f_user_name = ""
|
|
1061
|
+
this.model.f_phone = ""
|
|
1062
|
+
this.model.f_address = ""
|
|
1063
|
+
this.model.f_userinfo_id = "";
|
|
903
1064
|
} else {
|
|
904
1065
|
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="";
|
|
1066
|
+
this.model.f_user_name = this.oldInfo.f_user_name
|
|
1067
|
+
this.model.f_phone = this.oldInfo.f_phone
|
|
1068
|
+
this.model.f_address = this.oldInfo.f_address
|
|
1069
|
+
this.model.f_userinfo_id = "";
|
|
909
1070
|
}
|
|
910
1071
|
},
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
'print'
|
|
1072
|
+
'infee'(val) {
|
|
1073
|
+
this.load()
|
|
1074
|
+
},
|
|
1075
|
+
'print'(val) {
|
|
915
1076
|
this.load()
|
|
916
1077
|
}
|
|
917
1078
|
},
|