apply-clients 7.1.36-yuchuan-13 → 7.1.36-yuchuan-16

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.
Files changed (69) hide show
  1. package/android.html +28 -28
  2. package/build/dev-server.js +10 -28
  3. package/index.html +39 -39
  4. package/package.json +2 -2
  5. package/src/apply.js +1 -0
  6. package/src/applyAndroid.js +97 -97
  7. package/src/components/android/AppSign.vue +0 -1
  8. package/src/components/android/AppUpload.vue +275 -275
  9. package/src/components/android/Ignition/VentilationIgnition.vue +1 -1
  10. package/src/components/android/Ignition/VentilationIgnitionHandle.vue +1 -1
  11. package/src/components/android/Process/AppExplorationUser.vue +2 -2
  12. package/src/components/android/Process/AppServiceControl.vue +6 -6
  13. package/src/components/android/Process/Processes/AppInstallationDetails.vue +2 -2
  14. package/src/components/android/Sign/AppSignTask.vue +1 -1
  15. package/src/components/android/Supervisory/AppProcessSupervisory.vue +1 -1
  16. package/src/components/android/Task/GuanXianJianShe/AppExplorationGuanXian.vue +2 -2
  17. package/src/components/android/Task/ShiGongXinXi/AppShowBuildUser.vue +2 -2
  18. package/src/components/android/Task/yiban/AppShowDone.vue +2 -2
  19. package/src/components/android/Task/yiban/ShowDone.vue +95 -95
  20. package/src/components/android/Task/yiban/satisfactionShow.vue +166 -166
  21. package/src/components/android/newPackage/customerServiceManager.vue +1 -1
  22. package/src/components/android/newPackage/projectPrice.vue +1 -1
  23. package/src/components/product/ApplyCharge/ApplyChargeList.vue +1101 -1101
  24. package/src/components/product/ApplyGaiXianCharge/ApplyGaiXianViewList.vue +272 -272
  25. package/src/components/product/ApplyGuanXian/GuanXianCaiLiao.vue +236 -236
  26. package/src/components/product/ApplyGuanXian/GuanXianExplorationSelect.vue +2 -2
  27. package/src/components/product/ApplyGuanXian/GuanXianExplorationUser.vue +1 -1
  28. package/src/components/product/ApplyGuanXian/GuanXianSupervisoryhCart.vue +119 -119
  29. package/src/components/product/ApplyMap/AMapLocation.vue +870 -870
  30. package/src/components/product/ApplyMap/AmapUtil.js +37 -37
  31. package/src/components/product/ApplyMap/ApplyDragaboutList.vue +223 -223
  32. package/src/components/product/ApplyMap/ApplyInputSearch.vue +212 -212
  33. package/src/components/product/ApplyMap/ApplyMapCom.vue +82 -82
  34. package/src/components/product/ApplyMap/ApplyMapLocation.vue +862 -862
  35. package/src/components/product/Function/InstallFunction.vue +1 -1
  36. package/src/components/product/Function/InstallInfoSelect.vue +2 -2
  37. package/src/components/product/Function/Service/FunctionServiceControl.vue +586 -586
  38. package/src/components/product/GongJianPush/ApplyPushList.vue +191 -191
  39. package/src/components/product/GongJianPush/ApplyPushManage.vue +91 -91
  40. package/src/components/product/Ignition/IgnitionListManage.vue +602 -602
  41. package/src/components/product/Ignition/IgnitionRecord.vue +380 -380
  42. package/src/components/product/List/OldShowDevices.vue +2 -2
  43. package/src/components/product/List/ShowAllActivity.vue +2 -2
  44. package/src/components/product/List/ShowDevices.vue +2 -2
  45. package/src/components/product/Process/ExplorationSelect.vue +2 -2
  46. package/src/components/product/Process/ExplorationUser.vue +1 -1
  47. package/src/components/product/Process/New1ExplorationUser.vue +2 -2
  48. package/src/components/product/Process/NewExplorationSelect.vue +2 -2
  49. package/src/components/product/Process/NewExplorationUser.vue +1 -1
  50. package/src/components/product/Process/Processes/InstallationDetails.vue +4 -4
  51. package/src/components/product/Process/Processes/Print/printCharge.vue +250 -250
  52. package/src/components/product/Process/Processes/Print/printGaiXianCharge.vue +244 -244
  53. package/src/components/product/Process/Processes/chargeManagement.vue +704 -704
  54. package/src/components/product/Process/Processes/devicesManagement.vue +393 -393
  55. package/src/components/product/Process/Processes/newDevicesManagement.vue +413 -413
  56. package/src/components/product/Process/Processes/selectChaiChuUserinfo.vue +2 -2
  57. package/src/components/product/Process/Processes/selectOldUserinfo.vue +2 -2
  58. package/src/components/product/Process/Processes/selectUserinfo.vue +3 -3
  59. package/src/components/product/Process/Service/ServiceControl.vue +6 -6
  60. package/src/components/product/ServiceView.vue +644 -644
  61. package/src/components/product/Supervisory/NewSupervisoryhCart.vue +175 -175
  62. package/src/components/product/Supervisory/Service/SupervisoryServiceControl.vue +1 -1
  63. package/src/components/product/Supervisory/SupervisoryControl.vue +116 -116
  64. package/src/components/product/Supervisory/SupervisoryList.vue +2 -2
  65. package/src/components/product/Supervisory/SupervisoryhCart.vue +119 -119
  66. package/src/components/product/Supervisory/YiBanSupervisoryList.vue +2 -2
  67. package/src/components/product/VueUtils/ApplyUpload.vue +285 -294
  68. package/src/components/product/records/AdjustmentRecordList.vue +162 -162
  69. package/src/main.js +27 -27
@@ -1,1101 +1,1101 @@
1
- <template>
2
- <!-- 收费明细 -->
3
- <criteria-paged :model="model" v-ref:cp>
4
- <criteria
5
- partial="criteria"
6
- @condition-changed="$parent.searchCondition"
7
- v-ref:cri
8
- >
9
- <div
10
- class="form-horizontal select-overspread container-fluid auto"
11
- partial
12
- >
13
- <div class="row">
14
- <div class="form-group col-sm-3">
15
- <label class="font_normal_body"><strong>报建编号:</strong></label>
16
- <input
17
- type="text"
18
- class="input_search"
19
- style="width: 60%"
20
- v-model="model.f_apply_num"
21
- v-on:keyup.enter="$parent.$parent.search()"
22
- condition="a.f_apply_num like '%{}%'"
23
- placeholder="报建编号"
24
- />
25
- </div>
26
- <div class="form-group col-sm-3">
27
- <label class="font_normal_body"><strong>用户名称:</strong></label>
28
- <input
29
- type="text"
30
- class="input_search"
31
- style="width: 60%"
32
- v-model="model.f_user_name"
33
- v-on:keyup.enter="$parent.$parent.search()"
34
- condition="a.f_user_name like '%{}%'"
35
- placeholder="用户名称"
36
- />
37
- </div>
38
- <div class="form-group col-sm-3">
39
- <label class="font_normal_body"><strong>电&emsp;&emsp;话:</strong></label>
40
- <input
41
- type="text"
42
- class="input_search"
43
- style="width: 60%"
44
- v-model="model.f_phone"
45
- v-on:keyup.enter="$parent.$parent.search()"
46
- condition="a.f_phone like '%{}%'"
47
- placeholder="电话"
48
- />
49
- </div>
50
- <div class="form-group col-sm-3 button-range">
51
- <button
52
- class="button_search button_spacing"
53
- @click="$parent.$parent.updateshowStatus()"
54
- v-el:cx
55
- >
56
- {{ $parent.$parent.showStatus ? "已作废" : "正常" }}
57
- </button>
58
- <button
59
- class="button_search button_spacing"
60
- @click="$parent.$parent.search()"
61
- v-el:cx
62
- >
63
- 查询
64
- </button>
65
- <button
66
- class="button_clear button_spacing"
67
- @click="$parent.$parent.clear()"
68
- >
69
- 清空
70
- </button>
71
- <export-excel
72
- :data="$parent.$parent.getCondition"
73
- :field="$parent.$parent.getfield"
74
- sqlurl="rs/logic/applyExportfile"
75
- sql-name="getApplyCharge"
76
- template-name="收费记录信息导出"
77
- :choose-col="true"
78
- ></export-excel>
79
- <div
80
- :class="{
81
- button_shrink_top: $parent.$parent.criteriaShow,
82
- button_shrink_bottom: !$parent.$parent.criteriaShow,
83
- }"
84
- @click="
85
- $parent.$parent.criteriaShow = !$parent.$parent.criteriaShow
86
- "
87
- class="button_spacing"
88
- style="float: right"
89
- ></div>
90
- </div>
91
- </div>
92
- <div class="row" v-show="$parent.$parent.criteriaShow">
93
- <div class="form-group col-sm-3">
94
- <label class="font_normal_body"><strong>报建类型:</strong></label>
95
- <v-select
96
- v-model="model.f_apply_type"
97
- placeholder="请选择"
98
- condition="a.f_apply_type = '{}'"
99
- :value.sync="model.f_apply_type"
100
- :options="$parent.$parent.applytype"
101
- class="select select_list"
102
- :value-single="true"
103
- close-on-select
104
- ></v-select>
105
- </div>
106
- <div class="form-group col-sm-3">
107
- <label class="font_normal_body"><strong>票据类型:</strong></label>
108
- <v-select
109
- v-model="model.f_bill_style"
110
- placeholder="请选择"
111
- condition="cr.f_bill_style = '{}'"
112
- :value.sync="model.f_bill_style"
113
- :options="$parent.$parent.billStyles"
114
- class="select select_list"
115
- :value-single="true"
116
- close-on-select
117
- ></v-select>
118
- </div>
119
- <div class="form-group col-sm-3">
120
- <label class="font_normal_body"><strong>收费人员:</strong></label>
121
- <input
122
- type="text"
123
- class="input_search"
124
- style="width: 60%"
125
- placeholder="收费人员"
126
- v-model="model.f_charge_collectors"
127
- v-on:keyup.enter="$parent.$parent.search()"
128
- condition="cr.f_charge_collectors like '%{}%'"
129
- />
130
- </div>
131
- <div class="form-group col-sm-3">
132
- <label class="font_normal_body"><strong>收费金额:</strong></label>
133
- <input
134
- type="text"
135
- class="input_search"
136
- style="width: 60%"
137
- placeholder="收费金额"
138
- v-model="model.f_charge_money"
139
- v-on:keyup.enter="$parent.$parent.search()"
140
- condition="cr.f_charge_money = '{}'"
141
- />
142
- </div>
143
- <div class="form-group col-sm-3">
144
- <label class="font_normal_body"><strong>流&ensp;水&ensp;号:</strong></label>
145
- <input
146
- type="text"
147
- class="input_search"
148
- style="width: 60%"
149
- placeholder="流水号"
150
- v-model="model.f_payer_number"
151
- v-on:keyup.enter="$parent.$parent.search()"
152
- condition="cr.f_payer_number like '%{}%'"
153
- />
154
- </div>
155
- <div class="form-group col-sm-3">
156
- <label class="font_normal_body"><strong>付款方式:</strong></label>
157
- <v-select
158
- v-model="model.f_payment_method"
159
- placeholder="请选择"
160
- condition="cr.f_payment_method = '{}'"
161
- :value.sync="model.f_payment_method"
162
- :options="$parent.$parent.paymentMethod"
163
- class="select select_list"
164
- :value-single="true"
165
- close-on-select
166
- ></v-select>
167
- </div>
168
- <div class="form-group col-sm-3">
169
- <label class="font_normal_body"><strong>缴费状态:</strong></label>
170
- <v-select
171
- v-model="model.f_charge_status"
172
- placeholder="请选择"
173
- condition="cr.f_charge_status = '{}'"
174
- :value.sync="model.f_charge_status"
175
- :options="$parent.$parent.chargingStatus"
176
- class="select select_list"
177
- :value-single="true"
178
- close-on-select
179
- ></v-select>
180
- </div>
181
- <div class="form-group col-sm-3">
182
- <label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
183
- <datepicker
184
- id="startDate"
185
- placeholder="开始日期"
186
- style="width: 60% !important"
187
- v-model="model.startDate"
188
- :value.sync="model.startDate"
189
- :format="'yyyy-MM-dd 00:00:00'"
190
- :show-reset-button="true"
191
- condition="cr.f_charge_date >= '{}'"
192
- >
193
- </datepicker>
194
- </div>
195
- <div class="form-group col-sm-3">
196
- <label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
197
- <datepicker
198
- id="endDate"
199
- placeholder="结束日期"
200
- style="width: 60% !important"
201
- v-model="model.endDate"
202
- :value.sync="model.endDate"
203
- :format="'yyyy-MM-dd 23:59:59'"
204
- :show-reset-button="true"
205
- condition="cr.f_charge_date <= '{}'"
206
- >
207
- </datepicker>
208
- </div>
209
- <div class="form-group col-sm-3">
210
- <label class="font_normal_body"><strong>新旧报建:</strong></label>
211
- <v-select
212
- v-model="model.f_house_type"
213
- placeholder="保存状态"
214
- condition="a.f_house_type {}"
215
- :value.sync="model.f_house_type"
216
- :options="$parent.$parent.houseType"
217
- class="select select_list"
218
- :value-single="true"
219
- close-on-select
220
- >
221
- </v-select>
222
- </div>
223
- <div class="form-group col-sm-3">
224
- <label class="font_normal_body"><strong>营业网点:</strong></label>
225
- <v-select
226
- v-model="model.f_depname"
227
- placeholder="请选择"
228
- condition="cr.f_depname = '{}'"
229
- :value.sync="model.f_depname"
230
- :options="$parent.$parent.Business"
231
- class="select select_list"
232
- :value-single="true"
233
- close-on-select
234
- ></v-select>
235
- </div>
236
- <div class="form-group col-sm-3">
237
- <label class="font_normal_body"><strong>地&ensp;址&ensp;:</strong></label>
238
- <input
239
- type="text"
240
- class="input_search"
241
- style="width: 60%"
242
- placeholder="地址"
243
- v-model="model.f_address"
244
- v-on:keyup.enter="$parent.$parent.search()"
245
- condition="a.f_address like '%{}%'"
246
- />
247
- </div>
248
- </div>
249
- </div>
250
- </criteria>
251
- <data-grid
252
- :model="model"
253
- partial="list"
254
- v-ref:grid
255
- style="overflow: auto"
256
- class="list_area table_sy"
257
- >
258
- <template partial="head">
259
- <tr>
260
- <th style="white-space: nowrap">序号</th>
261
- <th style="white-space: nowrap">报建编号</th>
262
- <th style="white-space: nowrap">用户名称</th>
263
- <th style="white-space: nowrap">用户地址</th>
264
- <th style="white-space: nowrap">电话</th>
265
- <th style="white-space: nowrap">合同编号</th>
266
- <th style="white-space: nowrap">报建类型</th>
267
- <th style="white-space: nowrap">报建性质</th>
268
- <th style="white-space: nowrap">收费金额</th>
269
- <th style="white-space: nowrap">户数</th>
270
- <th style="white-space: nowrap">付款方式</th>
271
- <th style="white-space: nowrap">收费人员</th>
272
- <th style="white-space: nowrap">收费日期</th>
273
- <th style="white-space: nowrap">缴费状态</th>
274
- <th
275
- style="white-space: nowrap"
276
- v-if="!$parent.$parent.$parent.showStatus"
277
- >
278
- 作废人员
279
- </th>
280
- <th
281
- style="white-space: nowrap"
282
- v-if="!$parent.$parent.$parent.showStatus"
283
- >
284
- 作废时间
285
- </th>
286
- <th
287
- style="white-space: nowrap"
288
- v-if="!$parent.$parent.$parent.showStatus"
289
- >
290
- 作废原因
291
- </th>
292
- <th style="white-space: nowrap">票据类型</th>
293
- <th style="white-space: nowrap">发票代码</th>
294
- <th style="white-space: nowrap">发票号码</th>
295
- <th style="white-space: nowrap">票据状态</th>
296
- <th style="white-space: nowrap">操作</th>
297
- <th style="white-space: nowrap">流水号</th>
298
- </tr>
299
- </template>
300
- <template partial="body">
301
- <tr>
302
- <td style="text-align: center">
303
- <nobr
304
- ><font>{{ $index + 1 }}</font></nobr
305
- >
306
- </td>
307
- <td style="text-align: center">
308
- <nobr
309
- ><font>{{ row.f_apply_num }}</font></nobr
310
- >
311
- </td>
312
- <td style="text-align: center">
313
- <nobr
314
- ><font>{{ row.f_user_name }}</font></nobr
315
- >
316
- </td>
317
- <td style="text-align: center">
318
- <nobr
319
- ><font>{{ row.f_address}}</font></nobr
320
- >
321
- </td>
322
- <td style="text-align: center">
323
- <nobr
324
- ><font>{{ row.f_phone }}</font></nobr
325
- >
326
- </td>
327
- <td style="text-align: center">
328
- <nobr
329
- ><font>{{ row.f_contract_number }}</font></nobr
330
- >
331
- </td>
332
- <td style="text-align: center">
333
- <nobr
334
- ><font>{{ row.f_apply_type }}</font></nobr
335
- >
336
- </td>
337
- <td style="text-align: center">
338
- <nobr
339
- ><font>{{ row.f_apply_nature }}</font></nobr
340
- >
341
- </td>
342
- <td style="text-align: center">
343
- <nobr
344
- ><font>{{ row.f_charge_money }}</font></nobr
345
- >
346
- </td>
347
- <td style="text-align: center">
348
- <nobr
349
- ><font>{{ row.f_feecount }}</font></nobr
350
- >
351
- </td>
352
- <td style="text-align: center">
353
- <nobr
354
- ><font>{{ row.f_payment_method }}</font></nobr
355
- >
356
- </td>
357
- <td style="text-align: center">
358
- <nobr
359
- ><font>{{ row.f_charge_collectors }}</font></nobr
360
- >
361
- </td>
362
- <td style="text-align: center">
363
- <nobr
364
- ><font>{{ row.f_charge_date }}</font></nobr
365
- >
366
- </td>
367
- <td style="text-align: center">
368
- <nobr
369
- ><font>{{ row.f_charge_status }}</font></nobr
370
- >
371
- </td>
372
- <td
373
- style="text-align: center"
374
- v-if="!$parent.$parent.$parent.showStatus"
375
- >
376
- <nobr
377
- ><font>{{ row.f_void_staff }}</font></nobr
378
- >
379
- </td>
380
- <td
381
- style="text-align: center"
382
- v-if="!$parent.$parent.$parent.showStatus"
383
- >
384
- <nobr
385
- ><font>{{ row.f_void_date }}</font></nobr
386
- >
387
- </td>
388
- <td
389
- style="text-align: center"
390
- v-if="!$parent.$parent.$parent.showStatus"
391
- >
392
- <nobr
393
- ><font>{{ row.f_void_remarks }}</font></nobr
394
- >
395
- </td>
396
- <td style="text-align: center">
397
- <nobr
398
- ><font>{{ row.f_bill_style }}</font></nobr
399
- >
400
- </td>
401
- <td style="text-align: center">
402
- <nobr
403
- ><font>{{ row.f_bill_code }}</font></nobr
404
- >
405
- </td>
406
- <td style="text-align: center">
407
- <nobr
408
- ><font>{{ row.f_bill_number }}</font></nobr
409
- >
410
- </td>
411
- <td style="text-align: center">
412
- <nobr
413
- ><font>{{ row.f_bill_state }}</font></nobr
414
- >
415
- </td>
416
- <td style="text-align: center">
417
- <nobr v-if="row.f_charge_status !== '作废'">
418
- <button
419
- type="button"
420
- name="button"
421
- class="btn btn-link"
422
- v-if="row.f_bill_state !== '开票成功'"
423
- @click="$parent.$parent.$parent.openBill(row)"
424
- >
425
- 开票
426
- </button>
427
-
428
- <button
429
- type="button"
430
- name="button"
431
- class="btn btn-link"
432
- v-else
433
- @click="$parent.$parent.$parent.showPrintModal(row)"
434
- >
435
- 查看发票
436
- </button>
437
- <button
438
- type="button"
439
- name="button"
440
- class="btn btn-link"
441
- v-if="
442
- $parent.$parent.$parent.getUserRolesname &&
443
- row.f_charge_money > 0
444
- "
445
- @click="$parent.$parent.$parent.showChongZhengModal(row)"
446
- >
447
- 作废
448
- </button>
449
- </nobr>
450
- </td>
451
- <td style="text-align: center">
452
- <nobr
453
- ><font>{{ row.f_payer_number }}</font></nobr
454
- >
455
- </td>
456
- </tr>
457
- </template>
458
- </data-grid>
459
- </criteria-paged>
460
-
461
- <modal
462
- v-if="showPrint"
463
- :show.sync="showPrint"
464
- v-ref:modal
465
- :large="true"
466
- :backdrop="false"
467
- >
468
- <header slot="modal-header" class="modal-header">
469
- <button type="button" class="close" @click="showPrint = !showPrint">
470
- <span>&times;</span>
471
- </button>
472
- <h4 class="modal-title">票据信息</h4>
473
- </header>
474
- <article slot="modal-body" class="modal-body clearfix">
475
- <iframe
476
- width="100%"
477
- height="500px"
478
- :src="charge.f_bill_link"
479
- v-if="charge.f_bill_link"
480
- ></iframe>
481
- </article>
482
- <footer slot="modal-footer" class="modal-footer"></footer>
483
- </modal>
484
- <modal
485
- v-if="showChongZheng"
486
- :show.sync="showChongZheng"
487
- v-ref:modal
488
- :large="true"
489
- :backdrop="false"
490
- style="overflow: auto"
491
- >
492
- <header slot="modal-header" class="modal-header">
493
- <button
494
- type="button"
495
- class="close"
496
- @click="showChongZheng = !showChongZheng"
497
- >
498
- <span>&times;</span>
499
- </button>
500
- <h4 class="modal-title">冲正信息</h4>
501
- </header>
502
- <article slot="modal-body" class="modal-body clearfix">
503
- <div class="form-group col-sm-5">
504
- <label class="col-sm-4 control-label">收费金额:</label>
505
- <div class="col-sm-8">
506
- <input
507
- type="text"
508
- class="form-control input_view"
509
- style="width: 100%"
510
- readonly
511
- v-model="charge.f_charge_money"
512
- />
513
- </div>
514
- </div>
515
- <div class="form-group col-sm-5">
516
- <label class="col-sm-4 control-label">金额大写:</label>
517
- <div class="col-sm-8">
518
- <input
519
- type="text"
520
- class="form-control input_view"
521
- style="width: 100%"
522
- readonly
523
- v-model="charge.f_amount_words"
524
- />
525
- </div>
526
- </div>
527
- <div class="form-group col-sm-5">
528
- <label class="col-sm-4 control-label">付款方式:</label>
529
- <div class="col-sm-8">
530
- <input
531
- type="text"
532
- class="form-control input_view"
533
- style="width: 100%"
534
- readonly
535
- v-model="charge.f_payment_method"
536
- />
537
- </div>
538
- </div>
539
- <div class="form-group col-sm-5">
540
- <label class="col-sm-4 control-label">收费人员:</label>
541
- <div class="col-sm-8">
542
- <input
543
- type="text"
544
- class="form-control input_view"
545
- style="width: 100%"
546
- readonly
547
- v-model="charge.f_charge_collectors"
548
- />
549
- </div>
550
- </div>
551
- <div class="form-group col-sm-5">
552
- <label class="col-sm-4 control-label">发票代码:</label>
553
- <div class="col-sm-8">
554
- <input
555
- type="text"
556
- class="form-control input_view"
557
- style="width: 100%"
558
- readonly
559
- v-model="detail.fpdm"
560
- />
561
- </div>
562
- </div>
563
- <div class="form-group col-sm-5">
564
- <label class="col-sm-4 control-label">发票号码:</label>
565
- <div class="col-sm-8">
566
- <input
567
- type="text"
568
- class="form-control input_view"
569
- style="width: 100%"
570
- readonly
571
- v-model="detail.fphm"
572
- />
573
- </div>
574
- </div>
575
- <div class="form-group col-sm-5">
576
- <label class="col-sm-4 control-label">购方单位名称:</label>
577
- <div class="col-sm-8">
578
- <input
579
- type="text"
580
- class="form-control input_view"
581
- style="width: 100%"
582
- readonly
583
- v-model="detail.ghdwmc"
584
- />
585
- </div>
586
- </div>
587
- <div class="form-group col-sm-5">
588
- <label class="col-sm-4 control-label">开票人:</label>
589
- <div class="col-sm-8">
590
- <input
591
- type="text"
592
- class="form-control input_view"
593
- style="width: 100%"
594
- readonly
595
- v-model="detail.kpr"
596
- />
597
- </div>
598
- </div>
599
- <div class="form-group col-sm-5">
600
- <label class="col-sm-4 control-label">开票日期:</label>
601
- <div class="col-sm-8">
602
- <input
603
- type="text"
604
- class="form-control input_view"
605
- style="width: 100%"
606
- readonly
607
- v-model="detail.kprq"
608
- />
609
- </div>
610
- </div>
611
- <div class="form-group col-sm-5">
612
- <label class="col-sm-4 control-label">合计金额:</label>
613
- <div class="col-sm-8">
614
- <input
615
- type="text"
616
- class="form-control input_view"
617
- style="width: 100%"
618
- readonly
619
- v-model="detail.hjje"
620
- />
621
- </div>
622
- </div>
623
- <div class="form-group col-sm-5">
624
- <label class="col-sm-4 control-label">合计税额:</label>
625
- <div class="col-sm-8">
626
- <input
627
- type="text"
628
- class="form-control input_view"
629
- style="width: 100%"
630
- readonly
631
- v-model="detail.hjse"
632
- />
633
- </div>
634
- </div>
635
- <div class="form-group col-sm-5">
636
- <label class="col-sm-4 control-label">价税合计:</label>
637
- <div class="col-sm-8">
638
- <input
639
- type="text"
640
- class="form-control input_view"
641
- style="width: 100%"
642
- readonly
643
- v-model="detail.jshj"
644
- />
645
- </div>
646
- </div>
647
- <div
648
- class="form-group col-sm-10"
649
- :class="charge.f_void_remarks ? '' : 'has-error'"
650
- >
651
- <label class="col-sm-2 control-label">作废原因:</label>
652
- <div class="col-sm-10">
653
- <input
654
- type="text"
655
- class="form-control input_view"
656
- style="width: 100%"
657
- v-model="charge.f_void_remarks"
658
- />
659
- </div>
660
- </div>
661
- <apply-upload
662
- :blodid="charge.f_process_id"
663
- :isupload="true"
664
- :isdelete="true"
665
- :isusetype="true"
666
- :isremark="true"
667
- :takeimg="false"
668
- :issearch="false"
669
- defname="冲正"
670
- >
671
- </apply-upload>
672
- </article>
673
- <footer slot="modal-footer" class="modal-footer">
674
- <button
675
- type="button"
676
- class="btn btn-primary"
677
- :disabled="!charge.f_void_remarks"
678
- @click="invalidApplyCharge()"
679
- >
680
- 确认作废
681
- </button>
682
- <button
683
- type="button"
684
- class="btn btn-default"
685
- @click="showChongZheng = !showChongZheng"
686
- >
687
- 取消
688
- </button>
689
- </footer>
690
- </modal>
691
- </template>
692
-
693
- <script>
694
- import { PagedList } from "vue-client";
695
- import { HttpResetClass } from "vue-client";
696
- import { isEmpty } from "../../Util";
697
- import Vue from "vue";
698
- export default {
699
- title: "报建收费列表",
700
- data() {
701
- return {
702
- model: new PagedList("rs/sql/getApplyCharge", 30, null, {
703
- f_charge_money: 0,
704
- }),
705
- applytype: [
706
- { label: "全部", value: "" },
707
- ...this.$appdata.getParam("报建类型")?this.$appdata.getParam("报建类型"):[],
708
- ],
709
- paymentMethod: [
710
- { label: "全部", value: "" },
711
- ...this.$appdata.getParam("付款方式")?this.$appdata.getParam("付款方式"):[],
712
- ],
713
- billStyles: [
714
- { label: "全部", value: "" },
715
- { label: "电子票", value: "电子票" },
716
- { label: "专票", value: "专票" },
717
- ],
718
- chargingStatus: [
719
- { label: "全部", value: "" },
720
- { label: "有效", value: "有效" },
721
- { label: "作废", value: "作废" },
722
- ],
723
- Business: [
724
- { label: "微信", value: "微信" },
725
- { label: "各营业厅", value: "营业厅" },
726
- ],
727
- houseType: [
728
- { label: "全部", value: "" },
729
- { label: "旧报建", value: ` = '旧报导入'` },
730
- { label: "新报建", value: " is null" },
731
- ],
732
- criteriaShow: false,
733
- showStatus: true,
734
- getfield: {
735
- f_apply_num: "报建编号",
736
- f_user_name: "用户名称",
737
- f_phone: "电话",
738
- f_contract_number: "合同编号",
739
- f_apply_type: "报建类型",
740
- f_apply_nature: "报建性质",
741
- f_charge_money: "收费金额",
742
- f_feecount: "收费户数",
743
- f_payment_method: "付款方式",
744
- f_charge_collectors: "收费人员",
745
- f_charge_date: "收费日期",
746
- f_charge_status: "缴费状态",
747
- f_bill_style: "票据类型",
748
- f_bill_code: "发票代码",
749
- f_bill_number: "发票号码",
750
- f_bill_state: "票据状态",
751
- },
752
- charge: null,
753
- showPrint: false,
754
- showChongZheng: false,
755
- detailShow: false,
756
- detail: {
757
- title: "",
758
- confirmContent: "",
759
- type: "",
760
- },
761
- };
762
- },
763
- ready() {
764
- // 调用查询
765
- this.search();
766
- },
767
- methods: {
768
- clear() {
769
- Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
770
- this.$refs.cp.$refs.cri.model[key] = [];
771
- });
772
- },
773
- searchCondition(args) {
774
- if (this.showStatus) {
775
- args.condition = args.condition + ` and f_charge_status = '有效'`;
776
- } else {
777
- args.condition =
778
- args.condition +
779
- ` and (f_charge_status = '作废' or f_charge_money < 0)`;
780
- }
781
- console.log("args.condition", args.condition);
782
- this.model.search(args.condition, args.model);
783
- },
784
- // 查询
785
- search() {
786
- this.$refs.cp.$refs.cri.search();
787
- },
788
- updateshowStatus() {
789
- this.showStatus = !this.showStatus;
790
- this.search();
791
- },
792
- // 查看发票
793
- showPrintModal(row) {
794
- this.charge = row;
795
- if (!this.charge.f_bill_link && this.charge.f_filepath) {
796
- let date = new Date(this.charge.f_charge_date);
797
- let year = date.getFullYear();
798
- let month = date.getMonth() + 1;
799
- let month2 = month <= 9 ? "0" + month : month;
800
- let day = date.getDate();
801
- let day2 = day <= 9 ? "0" + day : day;
802
- let chargedate = year + "-" + month2 + "-" + day2;
803
- this.charge.f_bill_link =
804
- `http://193.168.1.6:8082/eticket/` +
805
- chargedate +
806
- "/" +
807
- this.charge.f_filepath +
808
- ".pdf";
809
- } else if (!this.charge.f_bill_link) {
810
- this.charge.f_bill_link = this.charge.f_bill_url;
811
- }
812
- this.showPrint = true;
813
- },
814
- // 开票
815
- async openBill(charge) {
816
- this.charge = charge;
817
- let data = null;
818
- let res = null;
819
-
820
- let http = new HttpResetClass();
821
-
822
- if (isEmpty(this.charge.f_bill_id)) {
823
- data = {
824
- id: this.charge.id,
825
- charge_type: "报装收费",
826
- f_user_name: this.charge.f_user_name,
827
- };
828
- if (this.charge.f_apply_type === "改线业务") {
829
- data.charge_type = "整改收费";
830
- }
831
- res = await http.load(
832
- "POST",
833
- "rs/logic/bjEticketCharge",
834
- { data: data },
835
- {
836
- resolveMsg: null,
837
- rejectMsg: "开票失败!!!",
838
- }
839
- );
840
- this.charge.f_bill_id = res.data;
841
- }
842
-
843
- if (this.charge.f_bill_style === "电子票") {
844
- data = {
845
- id: this.charge.f_bill_id,
846
- f_sell_id: this.charge.id,
847
- };
848
- try {
849
- res = await http.load(
850
- "POST",
851
- "rs/logic/bjOpenEticket",
852
- { data: data },
853
- {
854
- resolveMsg: null,
855
- rejectMsg: "开票失败!!!",
856
- }
857
- );
858
-
859
- // res.data.f_bill_url = 'https://dlj.51fapiao.cn/dlj/v7/de4c9b985021111ef1c722c2914e34d9273291'
860
-
861
- if (res.data.f_bill_state !== "开票成功") {
862
- throw "开票失败!!!";
863
- } else {
864
- let date = new Date();
865
- let year = date.getFullYear();
866
- let month = date.getMonth() + 1;
867
- let day = date.getDate();
868
- let month2 = month <= 9 ? "0" + month : month;
869
- let day2 = day <= 9 ? "0" + day : day;
870
- let chargedate = year + "-" + month2 + "-" + day2;
871
- this.charge.f_bill_link =
872
- `http://193.168.1.6:8082/eticket/` +
873
- chargedate +
874
- "/" +
875
- res.data.f_filepath +
876
- ".pdf";
877
- let pram = {
878
- f_bill_link: this.charge.f_bill_link,
879
- f_sell_id: this.charge.id,
880
- };
881
- await http.load(
882
- "POST",
883
- "rs/logic/updataChargeRecord",
884
- { data: pram },
885
- {
886
- resolveMsg: null,
887
- rejectMsg: null,
888
- }
889
- );
890
- }
891
- this.charge.f_bill_state = res.data.f_bill_state;
892
- this.charge.f_bill_url = res.data.f_bill_url;
893
-
894
- this.showPrint = true;
895
- } catch (e) {
896
- console.error(e);
897
- this.charge.f_bill_state = "开票失败";
898
-
899
- data = {
900
- f_bill_id: this.charge.f_bill_id,
901
- id: this.charge.id,
902
- };
903
- res = await http.load(
904
- "POST",
905
- "rs/logic/updateChargeBill",
906
- { data: data },
907
- {
908
- resolveMsg: null,
909
- rejectMsg: "收费信息更新失败!!!",
910
- }
911
- );
912
-
913
- throw e;
914
- }
915
- } else if (this.charge.f_bill_style === "专票") {
916
- data = {
917
- id: this.charge.f_bill_id,
918
- };
919
- res = await http.load(
920
- "POST",
921
- "rs/sql/getEticketData",
922
- { data: data },
923
- {
924
- resolveMsg: null,
925
- rejectMsg: "开票数据查询失败!!!",
926
- }
927
- );
928
- let openBillData = JSON.parse(res.data[0].f_bill_data);
929
- openBillData.kpzdbs = this.$login.f.taxnum;
930
- const nowDate = new Date();
931
- let year = nowDate.getFullYear();
932
- let mouth = nowDate.getMonth() + 1;
933
- let day = nowDate.getDate();
934
- openBillData.f_operate_date = year + "-" + mouth + "-" + day;
935
- openBillData.f_operator = this.$login.f.name;
936
- openBillData.outlets = this.$login.f.f_department_name;
937
- openBillData.hjse = "";
938
- openBillData.jshh = "";
939
- openBillData.tzdbh = "";
940
- openBillData.yfpdm = "";
941
- openBillData.yfphm = "";
942
-
943
- console.log("返回开票信息。。 ", openBillData);
944
- let billInfo = await this.$resetpost(
945
- "http://127.0.0.1:8003/Goldtax",
946
- openBillData,
947
- { resolveMsg: null, rejectMsg: "专用发票开具失败!" }
948
- );
949
- console.log("返回票据信息。。 ", JSON.parse(billInfo.data)); //保存发票明细
950
- if (!JSON.parse(billInfo.data).fphm) {
951
- this.charge.f_bill_state = "开票失败";
952
- data = {
953
- f_bill_id: this.charge.f_bill_id,
954
- id: this.charge.id,
955
- };
956
- res = await http.load(
957
- "POST",
958
- "rs/logic/updateChargeBill",
959
- { data: data },
960
- {
961
- resolveMsg: null,
962
- rejectMsg: "收费信息更新失败!!!",
963
- }
964
- );
965
- this.$showAlert("开票失败!!!", "warning", 3000);
966
- throw "开票失败!!";
967
- } else {
968
- data = {
969
- id: this.charge.f_bill_id,
970
- f_bill_number: JSON.parse(billInfo.data).fphm,
971
- f_bill_code: JSON.parse(billInfo.data).fpdm,
972
- f_filepath: JSON.parse(billInfo.data).dzpkex
973
- ? JSON.parse(billInfo.data).dzpkex
974
- : "",
975
- charge_id: this.charge.id,
976
- };
977
- res = await http.load(
978
- "POST",
979
- "rs/logic/updateEticketBill",
980
- { data: data },
981
- {
982
- resolveMsg: null,
983
- rejectMsg: "开票信息更新失败!!!",
984
- }
985
- );
986
-
987
- this.charge.f_bill_state = "开票成功";
988
- this.charge.f_bill_url = "";
989
- }
990
- }
991
- },
992
- showChongZhengModal(row) {
993
- this.charge = row;
994
- if (this.$login.f.rolesnames.includes("营业厅报装")) {
995
- this.detailGen(this, "发票作废信息", "确认作废", "cancel");
996
- } else {
997
- this.showChongZheng = false;
998
- this.$showAlert(
999
- `您现在没有权限进行冲正,请联系管理员进行授权!`,
1000
- "warning",
1001
- 3000
1002
- );
1003
- }
1004
- },
1005
- async detailGen(self, title, content, type) {
1006
- self.detail.title = title;
1007
- self.detail.confirmContent = content;
1008
- self.detail.type = type;
1009
-
1010
- let param = {
1011
- f_bill_code: self.charge.f_bill_code,
1012
- f_bill_number: self.charge.f_bill_number,
1013
- // f_bill_code: '061002101311',
1014
- // f_bill_number: '88682136'
1015
- };
1016
- let getDetail = await self.$resetpost(
1017
- "rs/logic/queryEticket",
1018
- { data: param },
1019
- { resolveMsg: null, rejectMsg: "获取发票明细失败!!!" }
1020
- );
1021
- console.log("详情", getDetail);
1022
- if (getDetail.data) {
1023
- self.detail = Object.assign({}, self.detail, getDetail.data);
1024
- console.log("获取票据明细信息", self.detail);
1025
- self.showChongZheng = true;
1026
- } else {
1027
- self.$showAlert(
1028
- "该发票号码和发票代码没有对应的收费详情,请确认发票信息",
1029
- "warning",
1030
- 3000
1031
- );
1032
- }
1033
- },
1034
- confirmBill() {
1035
- console.log("确认冲正");
1036
- this.cancelBillGen(this);
1037
- },
1038
- async cancelBillGen(self) {
1039
- try {
1040
- let param = {
1041
- type: "发票作废",
1042
- fplxdm: "电子票",
1043
- fpdm: self.charge.f_bill_code,
1044
- fphm: self.charge.f_bill_number,
1045
- zflx: "1",
1046
- kpzdbs: self.$login.f.taxnum,
1047
- zfr: self.$login.f.name,
1048
- };
1049
- console.log("发票作废参数,,", param);
1050
- let res = await self.$resetpost(
1051
- "http://127.0.0.1:8003/Goldtax",
1052
- param,
1053
- { resolveMsg: "发票作废成功", rejectMsg: "电子发票开具失败!!!" },
1054
- 0
1055
- );
1056
- console.log("发票冲正", res);
1057
- self.detailShow = false;
1058
- } catch (error) {
1059
- self.$showAlert("发票作废失败", "danger", 0);
1060
- self.detailShow = false;
1061
- }
1062
- this.$dispatch("breakControl", this.selectdata);
1063
- },
1064
- async invalidApplyCharge() {
1065
- let http = new HttpResetClass();
1066
- let data = {
1067
- apply: this.selectdata,
1068
- user: this.$login.f,
1069
- charge: this.charge,
1070
- };
1071
- let res = await http.load(
1072
- "POST",
1073
- "rs/logic/invalidApplyCharge",
1074
- { data: data },
1075
- {
1076
- resolveMsg: null,
1077
- rejectMsg: "作废失败!!!",
1078
- }
1079
- );
1080
- this.selectdata = res.data;
1081
-
1082
- this.confirmBill();
1083
- },
1084
- },
1085
- computed: {
1086
- getCondition() {
1087
- return {
1088
- condition: this.$refs.cp.$refs.cri.condition,
1089
- data: {
1090
- orgid: this.$login.f.orgid,
1091
- },
1092
- };
1093
- },
1094
- getUserRolesname() {
1095
- return this.$login.f.rolesnames.includes("营业厅报装");
1096
- },
1097
- },
1098
- };
1099
- </script>
1100
-
1101
- <style scoped></style>
1
+ <template>
2
+ <!-- 收费明细 -->
3
+ <criteria-paged :model="model" v-ref:cp>
4
+ <criteria
5
+ partial="criteria"
6
+ @condition-changed="$parent.searchCondition"
7
+ v-ref:cri
8
+ >
9
+ <div
10
+ class="form-horizontal select-overspread container-fluid auto"
11
+ partial
12
+ >
13
+ <div class="row">
14
+ <div class="form-group col-sm-3">
15
+ <label class="font_normal_body"><strong>报建编号:</strong></label>
16
+ <input
17
+ type="text"
18
+ class="input_search"
19
+ style="width: 60%"
20
+ v-model="model.f_apply_num"
21
+ v-on:keyup.enter="$parent.$parent.search()"
22
+ condition="a.f_apply_num like '%{}%'"
23
+ placeholder="报建编号"
24
+ />
25
+ </div>
26
+ <div class="form-group col-sm-3">
27
+ <label class="font_normal_body"><strong>用户名称:</strong></label>
28
+ <input
29
+ type="text"
30
+ class="input_search"
31
+ style="width: 60%"
32
+ v-model="model.f_user_name"
33
+ v-on:keyup.enter="$parent.$parent.search()"
34
+ condition="a.f_user_name like '%{}%'"
35
+ placeholder="用户名称"
36
+ />
37
+ </div>
38
+ <div class="form-group col-sm-3">
39
+ <label class="font_normal_body"><strong>电&emsp;&emsp;话:</strong></label>
40
+ <input
41
+ type="text"
42
+ class="input_search"
43
+ style="width: 60%"
44
+ v-model="model.f_phone"
45
+ v-on:keyup.enter="$parent.$parent.search()"
46
+ condition="a.f_phone like '%{}%'"
47
+ placeholder="电话"
48
+ />
49
+ </div>
50
+ <div class="form-group col-sm-3 button-range">
51
+ <button
52
+ class="button_search button_spacing"
53
+ @click="$parent.$parent.updateshowStatus()"
54
+ v-el:cx
55
+ >
56
+ {{ $parent.$parent.showStatus ? "已作废" : "正常" }}
57
+ </button>
58
+ <button
59
+ class="button_search button_spacing"
60
+ @click="$parent.$parent.search()"
61
+ v-el:cx
62
+ >
63
+ 查询
64
+ </button>
65
+ <button
66
+ class="button_clear button_spacing"
67
+ @click="$parent.$parent.clear()"
68
+ >
69
+ 清空
70
+ </button>
71
+ <export-excel
72
+ :data="$parent.$parent.getCondition"
73
+ :field="$parent.$parent.getfield"
74
+ sqlurl="rs/logic/applyExportfile"
75
+ sql-name="getApplyCharge"
76
+ template-name="收费记录信息导出"
77
+ :choose-col="true"
78
+ ></export-excel>
79
+ <div
80
+ :class="{
81
+ button_shrink_top: $parent.$parent.criteriaShow,
82
+ button_shrink_bottom: !$parent.$parent.criteriaShow,
83
+ }"
84
+ @click="
85
+ $parent.$parent.criteriaShow = !$parent.$parent.criteriaShow
86
+ "
87
+ class="button_spacing"
88
+ style="float: right"
89
+ ></div>
90
+ </div>
91
+ </div>
92
+ <div class="row" v-show="$parent.$parent.criteriaShow">
93
+ <div class="form-group col-sm-3">
94
+ <label class="font_normal_body"><strong>报建类型:</strong></label>
95
+ <v-select
96
+ v-model="model.f_apply_type"
97
+ placeholder="请选择"
98
+ condition="a.f_apply_type = '{}'"
99
+ :value.sync="model.f_apply_type"
100
+ :options="$parent.$parent.applytype"
101
+ class="select select_list"
102
+ :value-single="true"
103
+ close-on-select
104
+ ></v-select>
105
+ </div>
106
+ <div class="form-group col-sm-3">
107
+ <label class="font_normal_body"><strong>票据类型:</strong></label>
108
+ <v-select
109
+ v-model="model.f_bill_style"
110
+ placeholder="请选择"
111
+ condition="cr.f_bill_style = '{}'"
112
+ :value.sync="model.f_bill_style"
113
+ :options="$parent.$parent.billStyles"
114
+ class="select select_list"
115
+ :value-single="true"
116
+ close-on-select
117
+ ></v-select>
118
+ </div>
119
+ <div class="form-group col-sm-3">
120
+ <label class="font_normal_body"><strong>收费人员:</strong></label>
121
+ <input
122
+ type="text"
123
+ class="input_search"
124
+ style="width: 60%"
125
+ placeholder="收费人员"
126
+ v-model="model.f_charge_collectors"
127
+ v-on:keyup.enter="$parent.$parent.search()"
128
+ condition="cr.f_charge_collectors like '%{}%'"
129
+ />
130
+ </div>
131
+ <div class="form-group col-sm-3">
132
+ <label class="font_normal_body"><strong>收费金额:</strong></label>
133
+ <input
134
+ type="text"
135
+ class="input_search"
136
+ style="width: 60%"
137
+ placeholder="收费金额"
138
+ v-model="model.f_charge_money"
139
+ v-on:keyup.enter="$parent.$parent.search()"
140
+ condition="cr.f_charge_money = '{}'"
141
+ />
142
+ </div>
143
+ <div class="form-group col-sm-3">
144
+ <label class="font_normal_body"><strong>流&ensp;水&ensp;号:</strong></label>
145
+ <input
146
+ type="text"
147
+ class="input_search"
148
+ style="width: 60%"
149
+ placeholder="流水号"
150
+ v-model="model.f_payer_number"
151
+ v-on:keyup.enter="$parent.$parent.search()"
152
+ condition="cr.f_payer_number like '%{}%'"
153
+ />
154
+ </div>
155
+ <div class="form-group col-sm-3">
156
+ <label class="font_normal_body"><strong>付款方式:</strong></label>
157
+ <v-select
158
+ v-model="model.f_payment_method"
159
+ placeholder="请选择"
160
+ condition="cr.f_payment_method = '{}'"
161
+ :value.sync="model.f_payment_method"
162
+ :options="$parent.$parent.paymentMethod"
163
+ class="select select_list"
164
+ :value-single="true"
165
+ close-on-select
166
+ ></v-select>
167
+ </div>
168
+ <div class="form-group col-sm-3">
169
+ <label class="font_normal_body"><strong>缴费状态:</strong></label>
170
+ <v-select
171
+ v-model="model.f_charge_status"
172
+ placeholder="请选择"
173
+ condition="cr.f_charge_status = '{}'"
174
+ :value.sync="model.f_charge_status"
175
+ :options="$parent.$parent.chargingStatus"
176
+ class="select select_list"
177
+ :value-single="true"
178
+ close-on-select
179
+ ></v-select>
180
+ </div>
181
+ <div class="form-group col-sm-3">
182
+ <label for="startDate" class="font_normal_body"><strong>开始时间:</strong></label>
183
+ <datepicker
184
+ id="startDate"
185
+ placeholder="开始日期"
186
+ style="width: 60% !important"
187
+ v-model="model.startDate"
188
+ :value.sync="model.startDate"
189
+ :format="'yyyy-MM-dd 00:00:00'"
190
+ :show-reset-button="true"
191
+ condition="cr.f_charge_date >= '{}'"
192
+ >
193
+ </datepicker>
194
+ </div>
195
+ <div class="form-group col-sm-3">
196
+ <label for="endDate" class="font_normal_body"><strong>结束时间:</strong></label>
197
+ <datepicker
198
+ id="endDate"
199
+ placeholder="结束日期"
200
+ style="width: 60% !important"
201
+ v-model="model.endDate"
202
+ :value.sync="model.endDate"
203
+ :format="'yyyy-MM-dd 23:59:59'"
204
+ :show-reset-button="true"
205
+ condition="cr.f_charge_date <= '{}'"
206
+ >
207
+ </datepicker>
208
+ </div>
209
+ <div class="form-group col-sm-3">
210
+ <label class="font_normal_body"><strong>新旧报建:</strong></label>
211
+ <v-select
212
+ v-model="model.f_house_type"
213
+ placeholder="保存状态"
214
+ condition="a.f_house_type {}"
215
+ :value.sync="model.f_house_type"
216
+ :options="$parent.$parent.houseType"
217
+ class="select select_list"
218
+ :value-single="true"
219
+ close-on-select
220
+ >
221
+ </v-select>
222
+ </div>
223
+ <div class="form-group col-sm-3">
224
+ <label class="font_normal_body"><strong>营业网点:</strong></label>
225
+ <v-select
226
+ v-model="model.f_depname"
227
+ placeholder="请选择"
228
+ condition="cr.f_depname = '{}'"
229
+ :value.sync="model.f_depname"
230
+ :options="$parent.$parent.Business"
231
+ class="select select_list"
232
+ :value-single="true"
233
+ close-on-select
234
+ ></v-select>
235
+ </div>
236
+ <div class="form-group col-sm-3">
237
+ <label class="font_normal_body"><strong>地&ensp;址&ensp;:</strong></label>
238
+ <input
239
+ type="text"
240
+ class="input_search"
241
+ style="width: 60%"
242
+ placeholder="地址"
243
+ v-model="model.f_address"
244
+ v-on:keyup.enter="$parent.$parent.search()"
245
+ condition="a.f_address like '%{}%'"
246
+ />
247
+ </div>
248
+ </div>
249
+ </div>
250
+ </criteria>
251
+ <data-grid
252
+ :model="model"
253
+ partial="list"
254
+ v-ref:grid
255
+ style="overflow: auto"
256
+ class="list_area table_sy"
257
+ >
258
+ <template partial="head">
259
+ <tr>
260
+ <th style="white-space: nowrap">序号</th>
261
+ <th style="white-space: nowrap">报建编号</th>
262
+ <th style="white-space: nowrap">用户名称</th>
263
+ <th style="white-space: nowrap">用户地址</th>
264
+ <th style="white-space: nowrap">电话</th>
265
+ <th style="white-space: nowrap">合同编号</th>
266
+ <th style="white-space: nowrap">报建类型</th>
267
+ <th style="white-space: nowrap">报建性质</th>
268
+ <th style="white-space: nowrap">收费金额</th>
269
+ <th style="white-space: nowrap">户数</th>
270
+ <th style="white-space: nowrap">付款方式</th>
271
+ <th style="white-space: nowrap">收费人员</th>
272
+ <th style="white-space: nowrap">收费日期</th>
273
+ <th style="white-space: nowrap">缴费状态</th>
274
+ <th
275
+ style="white-space: nowrap"
276
+ v-if="!$parent.$parent.$parent.showStatus"
277
+ >
278
+ 作废人员
279
+ </th>
280
+ <th
281
+ style="white-space: nowrap"
282
+ v-if="!$parent.$parent.$parent.showStatus"
283
+ >
284
+ 作废时间
285
+ </th>
286
+ <th
287
+ style="white-space: nowrap"
288
+ v-if="!$parent.$parent.$parent.showStatus"
289
+ >
290
+ 作废原因
291
+ </th>
292
+ <th style="white-space: nowrap">票据类型</th>
293
+ <th style="white-space: nowrap">发票代码</th>
294
+ <th style="white-space: nowrap">发票号码</th>
295
+ <th style="white-space: nowrap">票据状态</th>
296
+ <th style="white-space: nowrap">操作</th>
297
+ <th style="white-space: nowrap">流水号</th>
298
+ </tr>
299
+ </template>
300
+ <template partial="body">
301
+ <tr>
302
+ <td style="text-align: center">
303
+ <nobr
304
+ ><font>{{ $index + 1 }}</font></nobr
305
+ >
306
+ </td>
307
+ <td style="text-align: center">
308
+ <nobr
309
+ ><font>{{ row.f_apply_num }}</font></nobr
310
+ >
311
+ </td>
312
+ <td style="text-align: center">
313
+ <nobr
314
+ ><font>{{ row.f_user_name }}</font></nobr
315
+ >
316
+ </td>
317
+ <td style="text-align: center">
318
+ <nobr
319
+ ><font>{{ row.f_address}}</font></nobr
320
+ >
321
+ </td>
322
+ <td style="text-align: center">
323
+ <nobr
324
+ ><font>{{ row.f_phone }}</font></nobr
325
+ >
326
+ </td>
327
+ <td style="text-align: center">
328
+ <nobr
329
+ ><font>{{ row.f_contract_number }}</font></nobr
330
+ >
331
+ </td>
332
+ <td style="text-align: center">
333
+ <nobr
334
+ ><font>{{ row.f_apply_type }}</font></nobr
335
+ >
336
+ </td>
337
+ <td style="text-align: center">
338
+ <nobr
339
+ ><font>{{ row.f_apply_nature }}</font></nobr
340
+ >
341
+ </td>
342
+ <td style="text-align: center">
343
+ <nobr
344
+ ><font>{{ row.f_charge_money }}</font></nobr
345
+ >
346
+ </td>
347
+ <td style="text-align: center">
348
+ <nobr
349
+ ><font>{{ row.f_feecount }}</font></nobr
350
+ >
351
+ </td>
352
+ <td style="text-align: center">
353
+ <nobr
354
+ ><font>{{ row.f_payment_method }}</font></nobr
355
+ >
356
+ </td>
357
+ <td style="text-align: center">
358
+ <nobr
359
+ ><font>{{ row.f_charge_collectors }}</font></nobr
360
+ >
361
+ </td>
362
+ <td style="text-align: center">
363
+ <nobr
364
+ ><font>{{ row.f_charge_date }}</font></nobr
365
+ >
366
+ </td>
367
+ <td style="text-align: center">
368
+ <nobr
369
+ ><font>{{ row.f_charge_status }}</font></nobr
370
+ >
371
+ </td>
372
+ <td
373
+ style="text-align: center"
374
+ v-if="!$parent.$parent.$parent.showStatus"
375
+ >
376
+ <nobr
377
+ ><font>{{ row.f_void_staff }}</font></nobr
378
+ >
379
+ </td>
380
+ <td
381
+ style="text-align: center"
382
+ v-if="!$parent.$parent.$parent.showStatus"
383
+ >
384
+ <nobr
385
+ ><font>{{ row.f_void_date }}</font></nobr
386
+ >
387
+ </td>
388
+ <td
389
+ style="text-align: center"
390
+ v-if="!$parent.$parent.$parent.showStatus"
391
+ >
392
+ <nobr
393
+ ><font>{{ row.f_void_remarks }}</font></nobr
394
+ >
395
+ </td>
396
+ <td style="text-align: center">
397
+ <nobr
398
+ ><font>{{ row.f_bill_style }}</font></nobr
399
+ >
400
+ </td>
401
+ <td style="text-align: center">
402
+ <nobr
403
+ ><font>{{ row.f_bill_code }}</font></nobr
404
+ >
405
+ </td>
406
+ <td style="text-align: center">
407
+ <nobr
408
+ ><font>{{ row.f_bill_number }}</font></nobr
409
+ >
410
+ </td>
411
+ <td style="text-align: center">
412
+ <nobr
413
+ ><font>{{ row.f_bill_state }}</font></nobr
414
+ >
415
+ </td>
416
+ <td style="text-align: center">
417
+ <nobr v-if="row.f_charge_status !== '作废'">
418
+ <button
419
+ type="button"
420
+ name="button"
421
+ class="btn btn-link"
422
+ v-if="row.f_bill_state !== '开票成功'"
423
+ @click="$parent.$parent.$parent.openBill(row)"
424
+ >
425
+ 开票
426
+ </button>
427
+
428
+ <button
429
+ type="button"
430
+ name="button"
431
+ class="btn btn-link"
432
+ v-else
433
+ @click="$parent.$parent.$parent.showPrintModal(row)"
434
+ >
435
+ 查看发票
436
+ </button>
437
+ <button
438
+ type="button"
439
+ name="button"
440
+ class="btn btn-link"
441
+ v-if="
442
+ $parent.$parent.$parent.getUserRolesname &&
443
+ row.f_charge_money > 0
444
+ "
445
+ @click="$parent.$parent.$parent.showChongZhengModal(row)"
446
+ >
447
+ 作废
448
+ </button>
449
+ </nobr>
450
+ </td>
451
+ <td style="text-align: center">
452
+ <nobr
453
+ ><font>{{ row.f_payer_number }}</font></nobr
454
+ >
455
+ </td>
456
+ </tr>
457
+ </template>
458
+ </data-grid>
459
+ </criteria-paged>
460
+
461
+ <modal
462
+ v-if="showPrint"
463
+ :show.sync="showPrint"
464
+ v-ref:modal
465
+ :large="true"
466
+ :backdrop="false"
467
+ >
468
+ <header slot="modal-header" class="modal-header">
469
+ <button type="button" class="close" @click="showPrint = !showPrint">
470
+ <span>&times;</span>
471
+ </button>
472
+ <h4 class="modal-title">票据信息</h4>
473
+ </header>
474
+ <article slot="modal-body" class="modal-body clearfix">
475
+ <iframe
476
+ width="100%"
477
+ height="500px"
478
+ :src="charge.f_bill_link"
479
+ v-if="charge.f_bill_link"
480
+ ></iframe>
481
+ </article>
482
+ <footer slot="modal-footer" class="modal-footer"></footer>
483
+ </modal>
484
+ <modal
485
+ v-if="showChongZheng"
486
+ :show.sync="showChongZheng"
487
+ v-ref:modal
488
+ :large="true"
489
+ :backdrop="false"
490
+ style="overflow: auto"
491
+ >
492
+ <header slot="modal-header" class="modal-header">
493
+ <button
494
+ type="button"
495
+ class="close"
496
+ @click="showChongZheng = !showChongZheng"
497
+ >
498
+ <span>&times;</span>
499
+ </button>
500
+ <h4 class="modal-title">冲正信息</h4>
501
+ </header>
502
+ <article slot="modal-body" class="modal-body clearfix">
503
+ <div class="form-group col-sm-5">
504
+ <label class="col-sm-4 control-label">收费金额:</label>
505
+ <div class="col-sm-8">
506
+ <input
507
+ type="text"
508
+ class="form-control input_view"
509
+ style="width: 100%"
510
+ readonly
511
+ v-model="charge.f_charge_money"
512
+ />
513
+ </div>
514
+ </div>
515
+ <div class="form-group col-sm-5">
516
+ <label class="col-sm-4 control-label">金额大写:</label>
517
+ <div class="col-sm-8">
518
+ <input
519
+ type="text"
520
+ class="form-control input_view"
521
+ style="width: 100%"
522
+ readonly
523
+ v-model="charge.f_amount_words"
524
+ />
525
+ </div>
526
+ </div>
527
+ <div class="form-group col-sm-5">
528
+ <label class="col-sm-4 control-label">付款方式:</label>
529
+ <div class="col-sm-8">
530
+ <input
531
+ type="text"
532
+ class="form-control input_view"
533
+ style="width: 100%"
534
+ readonly
535
+ v-model="charge.f_payment_method"
536
+ />
537
+ </div>
538
+ </div>
539
+ <div class="form-group col-sm-5">
540
+ <label class="col-sm-4 control-label">收费人员:</label>
541
+ <div class="col-sm-8">
542
+ <input
543
+ type="text"
544
+ class="form-control input_view"
545
+ style="width: 100%"
546
+ readonly
547
+ v-model="charge.f_charge_collectors"
548
+ />
549
+ </div>
550
+ </div>
551
+ <div class="form-group col-sm-5">
552
+ <label class="col-sm-4 control-label">发票代码:</label>
553
+ <div class="col-sm-8">
554
+ <input
555
+ type="text"
556
+ class="form-control input_view"
557
+ style="width: 100%"
558
+ readonly
559
+ v-model="detail.fpdm"
560
+ />
561
+ </div>
562
+ </div>
563
+ <div class="form-group col-sm-5">
564
+ <label class="col-sm-4 control-label">发票号码:</label>
565
+ <div class="col-sm-8">
566
+ <input
567
+ type="text"
568
+ class="form-control input_view"
569
+ style="width: 100%"
570
+ readonly
571
+ v-model="detail.fphm"
572
+ />
573
+ </div>
574
+ </div>
575
+ <div class="form-group col-sm-5">
576
+ <label class="col-sm-4 control-label">购方单位名称:</label>
577
+ <div class="col-sm-8">
578
+ <input
579
+ type="text"
580
+ class="form-control input_view"
581
+ style="width: 100%"
582
+ readonly
583
+ v-model="detail.ghdwmc"
584
+ />
585
+ </div>
586
+ </div>
587
+ <div class="form-group col-sm-5">
588
+ <label class="col-sm-4 control-label">开票人:</label>
589
+ <div class="col-sm-8">
590
+ <input
591
+ type="text"
592
+ class="form-control input_view"
593
+ style="width: 100%"
594
+ readonly
595
+ v-model="detail.kpr"
596
+ />
597
+ </div>
598
+ </div>
599
+ <div class="form-group col-sm-5">
600
+ <label class="col-sm-4 control-label">开票日期:</label>
601
+ <div class="col-sm-8">
602
+ <input
603
+ type="text"
604
+ class="form-control input_view"
605
+ style="width: 100%"
606
+ readonly
607
+ v-model="detail.kprq"
608
+ />
609
+ </div>
610
+ </div>
611
+ <div class="form-group col-sm-5">
612
+ <label class="col-sm-4 control-label">合计金额:</label>
613
+ <div class="col-sm-8">
614
+ <input
615
+ type="text"
616
+ class="form-control input_view"
617
+ style="width: 100%"
618
+ readonly
619
+ v-model="detail.hjje"
620
+ />
621
+ </div>
622
+ </div>
623
+ <div class="form-group col-sm-5">
624
+ <label class="col-sm-4 control-label">合计税额:</label>
625
+ <div class="col-sm-8">
626
+ <input
627
+ type="text"
628
+ class="form-control input_view"
629
+ style="width: 100%"
630
+ readonly
631
+ v-model="detail.hjse"
632
+ />
633
+ </div>
634
+ </div>
635
+ <div class="form-group col-sm-5">
636
+ <label class="col-sm-4 control-label">价税合计:</label>
637
+ <div class="col-sm-8">
638
+ <input
639
+ type="text"
640
+ class="form-control input_view"
641
+ style="width: 100%"
642
+ readonly
643
+ v-model="detail.jshj"
644
+ />
645
+ </div>
646
+ </div>
647
+ <div
648
+ class="form-group col-sm-10"
649
+ :class="charge.f_void_remarks ? '' : 'has-error'"
650
+ >
651
+ <label class="col-sm-2 control-label">作废原因:</label>
652
+ <div class="col-sm-10">
653
+ <input
654
+ type="text"
655
+ class="form-control input_view"
656
+ style="width: 100%"
657
+ v-model="charge.f_void_remarks"
658
+ />
659
+ </div>
660
+ </div>
661
+ <apply-upload
662
+ :blodid="charge.f_process_id"
663
+ :isupload="true"
664
+ :isdelete="true"
665
+ :isusetype="true"
666
+ :isremark="true"
667
+ :takeimg="false"
668
+ :issearch="false"
669
+ defname="冲正"
670
+ >
671
+ </apply-upload>
672
+ </article>
673
+ <footer slot="modal-footer" class="modal-footer">
674
+ <button
675
+ type="button"
676
+ class="btn btn-primary"
677
+ :disabled="!charge.f_void_remarks"
678
+ @click="invalidApplyCharge()"
679
+ >
680
+ 确认作废
681
+ </button>
682
+ <button
683
+ type="button"
684
+ class="btn btn-default"
685
+ @click="showChongZheng = !showChongZheng"
686
+ >
687
+ 取消
688
+ </button>
689
+ </footer>
690
+ </modal>
691
+ </template>
692
+
693
+ <script>
694
+ import { PagedList } from "vue-client";
695
+ import { HttpResetClass } from "vue-client";
696
+ import { isEmpty } from "../../Util";
697
+ import Vue from "vue";
698
+ export default {
699
+ title: "报建收费列表",
700
+ data() {
701
+ return {
702
+ model: new PagedList("rs/sql/getApplyCharge", 30, null, {
703
+ f_charge_money: 0,
704
+ }),
705
+ applytype: [
706
+ { label: "全部", value: "" },
707
+ ...this.$appdata.getParam("报建类型")?this.$appdata.getParam("报建类型"):[],
708
+ ],
709
+ paymentMethod: [
710
+ { label: "全部", value: "" },
711
+ ...this.$appdata.getParam("付款方式")?this.$appdata.getParam("付款方式"):[],
712
+ ],
713
+ billStyles: [
714
+ { label: "全部", value: "" },
715
+ { label: "电子票", value: "电子票" },
716
+ { label: "专票", value: "专票" },
717
+ ],
718
+ chargingStatus: [
719
+ { label: "全部", value: "" },
720
+ { label: "有效", value: "有效" },
721
+ { label: "作废", value: "作废" },
722
+ ],
723
+ Business: [
724
+ { label: "微信", value: "微信" },
725
+ { label: "各营业厅", value: "营业厅" },
726
+ ],
727
+ houseType: [
728
+ { label: "全部", value: "" },
729
+ { label: "旧报建", value: ` = '旧报导入'` },
730
+ { label: "新报建", value: " is null" },
731
+ ],
732
+ criteriaShow: false,
733
+ showStatus: true,
734
+ getfield: {
735
+ f_apply_num: "报建编号",
736
+ f_user_name: "用户名称",
737
+ f_phone: "电话",
738
+ f_contract_number: "合同编号",
739
+ f_apply_type: "报建类型",
740
+ f_apply_nature: "报建性质",
741
+ f_charge_money: "收费金额",
742
+ f_feecount: "收费户数",
743
+ f_payment_method: "付款方式",
744
+ f_charge_collectors: "收费人员",
745
+ f_charge_date: "收费日期",
746
+ f_charge_status: "缴费状态",
747
+ f_bill_style: "票据类型",
748
+ f_bill_code: "发票代码",
749
+ f_bill_number: "发票号码",
750
+ f_bill_state: "票据状态",
751
+ },
752
+ charge: null,
753
+ showPrint: false,
754
+ showChongZheng: false,
755
+ detailShow: false,
756
+ detail: {
757
+ title: "",
758
+ confirmContent: "",
759
+ type: "",
760
+ },
761
+ };
762
+ },
763
+ ready() {
764
+ // 调用查询
765
+ this.search();
766
+ },
767
+ methods: {
768
+ clear() {
769
+ Object.keys(this.$refs.cp.$refs.cri.model).forEach((key) => {
770
+ this.$refs.cp.$refs.cri.model[key] = [];
771
+ });
772
+ },
773
+ searchCondition(args) {
774
+ if (this.showStatus) {
775
+ args.condition = args.condition + ` and f_charge_status = '有效'`;
776
+ } else {
777
+ args.condition =
778
+ args.condition +
779
+ ` and (f_charge_status = '作废' or f_charge_money < 0)`;
780
+ }
781
+ console.log("args.condition", args.condition);
782
+ this.model.search(args.condition, args.model);
783
+ },
784
+ // 查询
785
+ search() {
786
+ this.$refs.cp.$refs.cri.search();
787
+ },
788
+ updateshowStatus() {
789
+ this.showStatus = !this.showStatus;
790
+ this.search();
791
+ },
792
+ // 查看发票
793
+ showPrintModal(row) {
794
+ this.charge = row;
795
+ if (!this.charge.f_bill_link && this.charge.f_filepath) {
796
+ let date = new Date(this.charge.f_charge_date);
797
+ let year = date.getFullYear();
798
+ let month = date.getMonth() + 1;
799
+ let month2 = month <= 9 ? "0" + month : month;
800
+ let day = date.getDate();
801
+ let day2 = day <= 9 ? "0" + day : day;
802
+ let chargedate = year + "-" + month2 + "-" + day2;
803
+ this.charge.f_bill_link =
804
+ `http://193.168.1.6:8082/eticket/` +
805
+ chargedate +
806
+ "/" +
807
+ this.charge.f_filepath +
808
+ ".pdf";
809
+ } else if (!this.charge.f_bill_link) {
810
+ this.charge.f_bill_link = this.charge.f_bill_url;
811
+ }
812
+ this.showPrint = true;
813
+ },
814
+ // 开票
815
+ async openBill(charge) {
816
+ this.charge = charge;
817
+ let data = null;
818
+ let res = null;
819
+
820
+ let http = new HttpResetClass();
821
+
822
+ if (isEmpty(this.charge.f_bill_id)) {
823
+ data = {
824
+ id: this.charge.id,
825
+ charge_type: "报装收费",
826
+ f_user_name: this.charge.f_user_name,
827
+ };
828
+ if (this.charge.f_apply_type === "改线业务") {
829
+ data.charge_type = "整改收费";
830
+ }
831
+ res = await http.load(
832
+ "POST",
833
+ "rs/logic/bjEticketCharge",
834
+ { data: data },
835
+ {
836
+ resolveMsg: null,
837
+ rejectMsg: "开票失败!!!",
838
+ }
839
+ );
840
+ this.charge.f_bill_id = res.data;
841
+ }
842
+
843
+ if (this.charge.f_bill_style === "电子票") {
844
+ data = {
845
+ id: this.charge.f_bill_id,
846
+ f_sell_id: this.charge.id,
847
+ };
848
+ try {
849
+ res = await http.load(
850
+ "POST",
851
+ "rs/logic/bjOpenEticket",
852
+ { data: data },
853
+ {
854
+ resolveMsg: null,
855
+ rejectMsg: "开票失败!!!",
856
+ }
857
+ );
858
+
859
+ // res.data.f_bill_url = 'https://dlj.51fapiao.cn/dlj/v7/de4c9b985021111ef1c722c2914e34d9273291'
860
+
861
+ if (res.data.f_bill_state !== "开票成功") {
862
+ throw "开票失败!!!";
863
+ } else {
864
+ let date = new Date();
865
+ let year = date.getFullYear();
866
+ let month = date.getMonth() + 1;
867
+ let day = date.getDate();
868
+ let month2 = month <= 9 ? "0" + month : month;
869
+ let day2 = day <= 9 ? "0" + day : day;
870
+ let chargedate = year + "-" + month2 + "-" + day2;
871
+ this.charge.f_bill_link =
872
+ `http://193.168.1.6:8082/eticket/` +
873
+ chargedate +
874
+ "/" +
875
+ res.data.f_filepath +
876
+ ".pdf";
877
+ let pram = {
878
+ f_bill_link: this.charge.f_bill_link,
879
+ f_sell_id: this.charge.id,
880
+ };
881
+ await http.load(
882
+ "POST",
883
+ "rs/logic/updataChargeRecord",
884
+ { data: pram },
885
+ {
886
+ resolveMsg: null,
887
+ rejectMsg: null,
888
+ }
889
+ );
890
+ }
891
+ this.charge.f_bill_state = res.data.f_bill_state;
892
+ this.charge.f_bill_url = res.data.f_bill_url;
893
+
894
+ this.showPrint = true;
895
+ } catch (e) {
896
+ console.error(e);
897
+ this.charge.f_bill_state = "开票失败";
898
+
899
+ data = {
900
+ f_bill_id: this.charge.f_bill_id,
901
+ id: this.charge.id,
902
+ };
903
+ res = await http.load(
904
+ "POST",
905
+ "rs/logic/updateChargeBill",
906
+ { data: data },
907
+ {
908
+ resolveMsg: null,
909
+ rejectMsg: "收费信息更新失败!!!",
910
+ }
911
+ );
912
+
913
+ throw e;
914
+ }
915
+ } else if (this.charge.f_bill_style === "专票") {
916
+ data = {
917
+ id: this.charge.f_bill_id,
918
+ };
919
+ res = await http.load(
920
+ "POST",
921
+ "rs/sql/getEticketData",
922
+ { data: data },
923
+ {
924
+ resolveMsg: null,
925
+ rejectMsg: "开票数据查询失败!!!",
926
+ }
927
+ );
928
+ let openBillData = JSON.parse(res.data[0].f_bill_data);
929
+ openBillData.kpzdbs = this.$login.f.taxnum;
930
+ const nowDate = new Date();
931
+ let year = nowDate.getFullYear();
932
+ let mouth = nowDate.getMonth() + 1;
933
+ let day = nowDate.getDate();
934
+ openBillData.f_operate_date = year + "-" + mouth + "-" + day;
935
+ openBillData.f_operator = this.$login.f.name;
936
+ openBillData.outlets = this.$login.f.f_parentname;
937
+ openBillData.hjse = "";
938
+ openBillData.jshh = "";
939
+ openBillData.tzdbh = "";
940
+ openBillData.yfpdm = "";
941
+ openBillData.yfphm = "";
942
+
943
+ console.log("返回开票信息。。 ", openBillData);
944
+ let billInfo = await this.$resetpost(
945
+ "http://127.0.0.1:8003/Goldtax",
946
+ openBillData,
947
+ { resolveMsg: null, rejectMsg: "专用发票开具失败!" }
948
+ );
949
+ console.log("返回票据信息。。 ", JSON.parse(billInfo.data)); //保存发票明细
950
+ if (!JSON.parse(billInfo.data).fphm) {
951
+ this.charge.f_bill_state = "开票失败";
952
+ data = {
953
+ f_bill_id: this.charge.f_bill_id,
954
+ id: this.charge.id,
955
+ };
956
+ res = await http.load(
957
+ "POST",
958
+ "rs/logic/updateChargeBill",
959
+ { data: data },
960
+ {
961
+ resolveMsg: null,
962
+ rejectMsg: "收费信息更新失败!!!",
963
+ }
964
+ );
965
+ this.$showAlert("开票失败!!!", "warning", 3000);
966
+ throw "开票失败!!";
967
+ } else {
968
+ data = {
969
+ id: this.charge.f_bill_id,
970
+ f_bill_number: JSON.parse(billInfo.data).fphm,
971
+ f_bill_code: JSON.parse(billInfo.data).fpdm,
972
+ f_filepath: JSON.parse(billInfo.data).dzpkex
973
+ ? JSON.parse(billInfo.data).dzpkex
974
+ : "",
975
+ charge_id: this.charge.id,
976
+ };
977
+ res = await http.load(
978
+ "POST",
979
+ "rs/logic/updateEticketBill",
980
+ { data: data },
981
+ {
982
+ resolveMsg: null,
983
+ rejectMsg: "开票信息更新失败!!!",
984
+ }
985
+ );
986
+
987
+ this.charge.f_bill_state = "开票成功";
988
+ this.charge.f_bill_url = "";
989
+ }
990
+ }
991
+ },
992
+ showChongZhengModal(row) {
993
+ this.charge = row;
994
+ if (this.$login.f.rolesnames.includes("营业厅报装")) {
995
+ this.detailGen(this, "发票作废信息", "确认作废", "cancel");
996
+ } else {
997
+ this.showChongZheng = false;
998
+ this.$showAlert(
999
+ `您现在没有权限进行冲正,请联系管理员进行授权!`,
1000
+ "warning",
1001
+ 3000
1002
+ );
1003
+ }
1004
+ },
1005
+ async detailGen(self, title, content, type) {
1006
+ self.detail.title = title;
1007
+ self.detail.confirmContent = content;
1008
+ self.detail.type = type;
1009
+
1010
+ let param = {
1011
+ f_bill_code: self.charge.f_bill_code,
1012
+ f_bill_number: self.charge.f_bill_number,
1013
+ // f_bill_code: '061002101311',
1014
+ // f_bill_number: '88682136'
1015
+ };
1016
+ let getDetail = await self.$resetpost(
1017
+ "rs/logic/queryEticket",
1018
+ { data: param },
1019
+ { resolveMsg: null, rejectMsg: "获取发票明细失败!!!" }
1020
+ );
1021
+ console.log("详情", getDetail);
1022
+ if (getDetail.data) {
1023
+ self.detail = Object.assign({}, self.detail, getDetail.data);
1024
+ console.log("获取票据明细信息", self.detail);
1025
+ self.showChongZheng = true;
1026
+ } else {
1027
+ self.$showAlert(
1028
+ "该发票号码和发票代码没有对应的收费详情,请确认发票信息",
1029
+ "warning",
1030
+ 3000
1031
+ );
1032
+ }
1033
+ },
1034
+ confirmBill() {
1035
+ console.log("确认冲正");
1036
+ this.cancelBillGen(this);
1037
+ },
1038
+ async cancelBillGen(self) {
1039
+ try {
1040
+ let param = {
1041
+ type: "发票作废",
1042
+ fplxdm: "电子票",
1043
+ fpdm: self.charge.f_bill_code,
1044
+ fphm: self.charge.f_bill_number,
1045
+ zflx: "1",
1046
+ kpzdbs: self.$login.f.taxnum,
1047
+ zfr: self.$login.f.name,
1048
+ };
1049
+ console.log("发票作废参数,,", param);
1050
+ let res = await self.$resetpost(
1051
+ "http://127.0.0.1:8003/Goldtax",
1052
+ param,
1053
+ { resolveMsg: "发票作废成功", rejectMsg: "电子发票开具失败!!!" },
1054
+ 0
1055
+ );
1056
+ console.log("发票冲正", res);
1057
+ self.detailShow = false;
1058
+ } catch (error) {
1059
+ self.$showAlert("发票作废失败", "danger", 0);
1060
+ self.detailShow = false;
1061
+ }
1062
+ this.$dispatch("breakControl", this.selectdata);
1063
+ },
1064
+ async invalidApplyCharge() {
1065
+ let http = new HttpResetClass();
1066
+ let data = {
1067
+ apply: this.selectdata,
1068
+ user: this.$login.f,
1069
+ charge: this.charge,
1070
+ };
1071
+ let res = await http.load(
1072
+ "POST",
1073
+ "rs/logic/invalidApplyCharge",
1074
+ { data: data },
1075
+ {
1076
+ resolveMsg: null,
1077
+ rejectMsg: "作废失败!!!",
1078
+ }
1079
+ );
1080
+ this.selectdata = res.data;
1081
+
1082
+ this.confirmBill();
1083
+ },
1084
+ },
1085
+ computed: {
1086
+ getCondition() {
1087
+ return {
1088
+ condition: this.$refs.cp.$refs.cri.condition,
1089
+ data: {
1090
+ orgid: this.$login.f.orgid,
1091
+ },
1092
+ };
1093
+ },
1094
+ getUserRolesname() {
1095
+ return this.$login.f.rolesnames.includes("营业厅报装");
1096
+ },
1097
+ },
1098
+ };
1099
+ </script>
1100
+
1101
+ <style scoped></style>