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