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