sale-client 3.6.21 → 3.6.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (88) hide show
  1. package/build/dev-server.js +1 -1
  2. package/package.json +2 -2
  3. package/src/components/FilesManage/FileUserFiles.vue +1014 -1014
  4. package/src/components/FilesManage/FileUserMerge.vue +203 -203
  5. package/src/components/FilesManage/UserPaperInfoTest.vue +58 -51
  6. package/src/components/FilesManageNew/FileUserFiles.vue +756 -756
  7. package/src/components/FilesManageNew/FileUserMerge.vue +202 -202
  8. package/src/components/charge/business/CardMeterCenter.vue +944 -944
  9. package/src/components/charge/business/IOTMeterCenter.vue +793 -793
  10. package/src/components/charge/business/OtherChargeNew.vue +550 -550
  11. package/src/components/charge/business/machine/MachineMeterCenter.vue +676 -676
  12. package/src/components/charge/gasloss/gasLossOperate.vue +383 -383
  13. package/src/components/newBill/CardMeterCenter.vue +902 -902
  14. package/src/components/newBill/IOTMeterCenter.vue +797 -797
  15. package/src/components/revenue/Common/EticketModal.vue +95 -90
  16. package/src/components/revenue/comprehen/Maintenance/T+MoneyDocking/moneyDocking.vue +202 -202
  17. package/src/components/revenue/comprehen/SpecialUser/BasicLiving/BasicLivingList.vue +280 -280
  18. package/src/filiale/alashan/business/CardMeterCenter.vue +897 -897
  19. package/src/filiale/ancheng/FilesManage/FileUserFiles.vue +1010 -1010
  20. package/src/filiale/ancheng/FilesManageNew/FileUserFiles.vue +763 -763
  21. package/src/filiale/chengtou/components/FilesManage/FileUserFiles.vue +1019 -1019
  22. package/src/filiale/chengtou/components/OtherChargeNew.vue +549 -549
  23. package/src/filiale/dongguan/components/FilesManage/FileUserFiles.vue +1037 -1037
  24. package/src/filiale/gaomi/components/FilesManage/FileUserFiles.vue +934 -934
  25. package/src/filiale/gehua/CardMeterCenter.vue +898 -898
  26. package/src/filiale/gehua/FileManageNew/FileUserFiles.vue +769 -769
  27. package/src/filiale/gehua/FileUserFiles.vue +1007 -1007
  28. package/src/filiale/gehua/IOTMeterCenter.vue +791 -791
  29. package/src/filiale/gehua/MachineMeterCenter.vue +685 -685
  30. package/src/filiale/gehua/OtherChargeNew.vue +558 -558
  31. package/src/filiale/guangxi/CardMeterCenter.vue +891 -891
  32. package/src/filiale/guangxi/IOTMeterCenter.vue +774 -774
  33. package/src/filiale/guangxi/MachineMeterCenter.vue +622 -622
  34. package/src/filiale/haile/MachineMeterCenter.vue +762 -762
  35. package/src/filiale/huayin/CardMeterCenter.vue +903 -903
  36. package/src/filiale/huayin/FileUserFiles.vue +1007 -1007
  37. package/src/filiale/huayin/IOTMeterCenter.vue +796 -796
  38. package/src/filiale/huayin/MachineMeterCenter.vue +680 -680
  39. package/src/filiale/jingwei/CardMeterCenter.vue +870 -870
  40. package/src/filiale/jingwei/FileUserFiles.vue +905 -905
  41. package/src/filiale/jingwei/ShowCardSellGas.vue +903 -903
  42. package/src/filiale/kelai/CardMeterCenter.vue +934 -934
  43. package/src/filiale/kelai/FileUserFiles.vue +762 -762
  44. package/src/filiale/kelai/IOTMeterCenter.vue +833 -833
  45. package/src/filiale/kelai/MachineMeterCenter.vue +705 -705
  46. package/src/filiale/konggang/FileUserFiles.vue +990 -990
  47. package/src/filiale/liaoyuan/FileUserFiles.vue +844 -844
  48. package/src/filiale/macheng/CardMeterCenter.vue +939 -939
  49. package/src/filiale/macheng/FileUserFiles.vue +930 -930
  50. package/src/filiale/meihekou/FileUserFiles.vue +995 -995
  51. package/src/filiale/ningjin/FileUserFiles.vue +1020 -1020
  52. package/src/filiale/qianneng/OtherChargeNew.vue +544 -544
  53. package/src/filiale/qianneng/eticket/EticketModal.vue +96 -91
  54. package/src/filiale/qianneng/eticket/EticketPrint.vue +377 -376
  55. package/src/filiale/qianneng/eticket/EticketRecordList.vue +309 -289
  56. package/src/filiale/qianneng/machine/MachineMeterCenter.vue +676 -676
  57. package/src/filiale/rizhao/FileUserFiles.vue +984 -984
  58. package/src/filiale/rizhao/IOTMeterCenter.vue +795 -795
  59. package/src/filiale/rongcheng/FileUserFiles.vue +881 -881
  60. package/src/filiale/rongcheng/FilesManageNew/FileUserFiles.vue +732 -732
  61. package/src/filiale/rongcheng/FilesManageNew/FileUserMerge.vue +202 -202
  62. package/src/filiale/shanggao/FileUserFiles.vue +995 -995
  63. package/src/filiale/shangluo/CardMeterCenter.vue +892 -892
  64. package/src/filiale/shangluo/IOTMeterCenter.vue +797 -797
  65. package/src/filiale/shangluo/MachineMeterCenter.vue +734 -734
  66. package/src/filiale/shanxian/OtherChargeNew.vue +561 -561
  67. package/src/filiale/shanxian/components/FilesManage/FileUserFiles.vue +1004 -1004
  68. package/src/filiale/shanxian/components/FilesManageNew/FileUserFiles.vue +756 -756
  69. package/src/filiale/shanxian/components/revenue/CardMeterCenter.vue +944 -944
  70. package/src/filiale/shaoguan/FilesManage/FileUserFiles.vue +881 -881
  71. package/src/filiale/shaoguan/FilesManageNew/FileUserFiles.vue +734 -734
  72. package/src/filiale/shexian/FilesManage/FileUserFiles.vue +991 -991
  73. package/src/filiale/tongchuan/BasicLivingList.vue +253 -253
  74. package/src/filiale/tongchuan/CardMeterCenter.vue +923 -923
  75. package/src/filiale/tongchuan/FileUserFiles.vue +1206 -1206
  76. package/src/filiale/tongchuan/bill/EticketModal.vue +90 -90
  77. package/src/filiale/tongchuan/filemanagenew/FileUserFiles.vue +842 -842
  78. package/src/filiale/wenxi/CardMeterCenter.vue +942 -942
  79. package/src/filiale/wenxi/FileUserFiles.vue +1032 -1032
  80. package/src/filiale/wenxi/IOTMeterCenter.vue +774 -774
  81. package/src/filiale/wuan/FileUserFiles.vue +1006 -1006
  82. package/src/filiale/wuhai/CardMeterCenter.vue +945 -945
  83. package/src/filiale/wuhai/IOTMeterCenter.vue +757 -757
  84. package/src/filiale/yuansheng/CardMeterCenter.vue +950 -950
  85. package/src/filiale/yuansheng/IOTMeterCenter.vue +788 -788
  86. package/src/filiale/zhongsheng/FilesManage/FileUserFiles.vue +1038 -1038
  87. package/src/filiale/zhongyi/FileUserFiles.vue +1020 -1020
  88. package/src/main.js +27 -27
@@ -1,289 +1,309 @@
1
- <template>
2
- <div class="auto basic-main" style="height:95%">
3
- <criteria-paged :model="model" v-ref:paged>
4
- <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
- <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
- <div class="row">
7
- <div class="form-group col-sm-2">
8
- <label class="font_normal_body">客户编号</label>
9
- <input type="text" class="form-control" v-model="model.f_userinfo_code" style="width:60%"
10
- condition="f_userinfo_code = '{}' " placeholder="客户编号"
11
- >
12
- </div>
13
- <div class="form-group col-sm-2">
14
- <label class="font_normal_body">用户姓名</label>
15
- <input type="text" class="form-control" v-model="model.f_user_name" style="width:60%"
16
- condition="f_user_name = '{}'" placeholder="用户姓名"
17
- >
18
- </div>
19
- <div class="form-group col-sm-2">
20
- <label class="font_normal_body">票据状态</label>
21
- <v-select id="f_bill_state"
22
- style="width:60%"
23
- v-model="model.f_bill_state"
24
- placeholder='票据状态'
25
- condition="f_bill_state ='{}'"
26
- :value.sync="model.f_bill_state"
27
- :options='$parent.$parent.eticktypes'
28
- :search="false"
29
- close-on-select clear-button>
30
- </v-select>
31
- </div>
32
- <div style="float: right">
33
- <button class="button_search" @click="search()">查 询</button>
34
- <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
35
- <div
36
- :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
37
- @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
38
- class="button_spacing"
39
- style="float: right"></div>
40
- </div>
41
- </div>
42
- <div class="row" v-show="$parent.$parent.criteriaShow">
43
- <!-- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"-->
44
- <!-- :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes"-->
45
- <!-- v-ref:sel></res-select-group>-->
46
- <div class="form-group col-sm-2">
47
- <label class="font_normal_body">操作日期</label>
48
- <datepicker id="f_operate_datestarthate" placeholder="开始日期"
49
- v-model="model.f_operate_datestarthate"
50
- :value.sync="model.f_operate_datestarthate"
51
- format="yyyy-MM-dd"
52
- condition="f_operate_date >= '{}'"
53
- style="width:60%">
54
- </datepicker>
55
- </div>
56
- <div class="form-group col-sm-2">
57
- <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
58
- <datepicker id="f_operate_dateendDate" placeholder="结束日期"
59
- v-model="model.f_operate_dateendDate"
60
- :value.sync="model.f_operate_dateendDate"
61
- format="yyyy-MM-dd"
62
- condition=" f_operate_date <= '{}'"
63
- style="width:60%">
64
- </datepicker>
65
- </div>
66
- </div>
67
- </div>
68
- </criteria>
69
- <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
70
- <template partial='head'>
71
- <tr>
72
- <th>
73
- <nobr>客户编号</nobr>
74
- </th>
75
- <th>
76
- <nobr>客户姓名</nobr>
77
- </th>
78
- <th>
79
- <nobr>客户地址电话</nobr>
80
- </th>
81
- <th>
82
- <nobr>实收金额</nobr>
83
- </th>
84
- <th>
85
- <nobr>不含税金额</nobr>
86
- </th>
87
- <th>
88
- <nobr>发票类型</nobr>
89
- </th>
90
- <th>
91
- <nobr>发票代码</nobr>
92
- </th>
93
- <th>
94
- <nobr>发票流水号</nobr>
95
- </th>
96
- <th>
97
- <nobr>发票号码</nobr>
98
- </th>
99
- <th>
100
- <nobr>发票状态</nobr>
101
- </th>
102
- <th>
103
- <nobr>发票类型</nobr>
104
- </th>
105
- <th>
106
- <nobr>开票时间</nobr>
107
- </th>
108
- <th>
109
- <nobr>查看发票</nobr>
110
- </th>
111
- <th>
112
- <nobr>操作</nobr>
113
- </th>
114
- </tr>
115
- </template>
116
- <template partial='body' :model="model">
117
- <tr>
118
- <th style="text-align:center">{{ row.f_userinfo_code }}</th>
119
- <th style="text-align:center">{{ row.f_user_name }}</th>
120
- <th style="text-align:center">{{ row.f_buy_address_phone }}</th>
121
- <th style="text-align:center">{{ row.f_total_money }}</th>
122
- <th style="text-align:center">{{ row.f_tax_money }}</th>
123
- <th style="text-align:center">{{ row.f_invoice_type }}</th>
124
- <th style="text-align:center">{{ row.f_bill_code }}</th>
125
- <th style="text-align:center">{{ row.f_fpqqlsh }}</th>
126
- <th style="text-align:center">{{ row.f_bill_number }}</th>
127
- <th style="text-align:center">{{ row.f_bill_state }}</th>
128
- <th style="text-align:center">{{ row.f_charge_type }}</th>
129
- <th style="text-align:center">{{ row.f_operate_date }}</th>
130
- <th style="text-align:center">
131
- <button class="btn btn-link" v-if="row.f_bill_url"
132
- @click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
133
- 查看发票
134
- </button>
135
- </th>
136
- <th style="text-align:center">
137
- <template v-if="row.f_invoice_source !== '外部录入'">
138
- <button class="btn btn-link" v-if="row.f_bill_state==='开票成功' && row.f_tax_money > 0"
139
- @click="$parent.$parent.$parent.fp_ch(row)">发票冲红
140
- </button>
141
- <button class="btn btn-link" v-if="row.f_bill_state==='待开票'"
142
- @click="$parent.$parent.$parent.kp(row)">开票
143
- </button>
144
- <button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
145
- @click="$parent.$parent.$parent.kp(row)">重新开票
146
- </button>
147
- <button class="btn btn-link" v-if="row.f_bill_state==='冲红失败'"
148
- @click="$parent.$parent.$parent.kp(row)">重新冲红
149
- </button>
150
- <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"
151
- @click="$parent.$parent.$parent.fp_search(row)">电票查询
152
- </button>
153
- </template>
154
- </th>
155
- </tr>
156
- </template>
157
- </data-grid>
158
- </criteria-paged>
159
- </div>
160
- <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
161
- <header slot="modal-header" class="modal-header">
162
- <h4 class="modal-title">撤销原因</h4>
163
- </header>
164
- <article slot="modal-body" class="modal-body">
165
- <validator name='v'>
166
- <form class="form-horizontal select-overspread">
167
- <div class="form-group" :class="[$v.f_cancel_reason.required ? 'has-error' : 'has-success']">
168
- <label class=" col-sm-3 control-label">冲红备注:</label>
169
- <div class="col-sm-8">
170
- <textarea class="form-control" v-model="bz" rows="3"
171
- placeholder="请填写冲红备注" v-validate:bz='{required: true}'></textarea>
172
- </div>
173
- </div>
174
- </form>
175
- </validator>
176
- </article>
177
- <footer slot="modal-footer" class="modal-footer">
178
- <button v-show="show" type="button" class="button_search" @click='confirm()' :disabled="!$v.valid ">确认</button>
179
- <button v-show="show" type="button" class="button_clear" @click='close'>取消</button>
180
- </footer>
181
- </modal>
182
- <ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
183
- </template>
184
- <script>
185
-
186
- import {PagedList} from 'vue-client'
187
-
188
- export default {
189
- title: '发票管理',
190
- data () {
191
- return {
192
- model: new PagedList('rs/sql/eticket_query', 20),
193
- criteriaShow: false,
194
- eticket_show: false,
195
- orgCondtionStr: '',
196
- showsum_show: false,
197
- invoiceTypes: [{label: '专用发票', value: '专用发票'}, {label: '普通发票', value: '普通发票'}, {label: '国税发票', value: '国税发票'}],
198
- eticktypes: [{label: '开票成功', value: '开票成功'}, {label: '等待查询', value: '等待查询'}, {
199
- label: '开票失败',
200
- value: '开票失败'
201
- }, {
202
- label: '冲红失败',
203
- value: '冲红失败'
204
- }, {label: '冲红', value: '冲红'}, {label: '撤销', value: '撤销'}],
205
- show: false,
206
- bz: '',
207
- row: {},
208
- install_show: false
209
- }
210
- },
211
- ready () {
212
- },
213
- methods: {
214
- search () {
215
- this.$refs.paged.$refs.cri.search()
216
- },
217
- selfSearch (args) {
218
- this.model.search(args.condition, args.model)
219
- },
220
- async confirm () {
221
- // 修改发票状态
222
- let res = await this.$resetpost('rs/logic/correctEticket', {id: this.row.id,
223
- bz: this.bz,
224
- f_dept_id: this.$login.f.depids,
225
- f_operator: this.$login.f.name,
226
- f_orgid: this.$login.f.orgid,
227
- f_orgname: this.$login.f.orgs,
228
- f_depname: this.$login.f.deps,
229
- f_operatorid: this.$login.f.id,
230
- f_filialeids: this.$login.f.f_orgids}, {
231
- resolveMsg: null,
232
- rejectMsg: '保存开票信息失败'
233
- })
234
- this.eticket_show = true
235
- await this.$refs.eticketbill.rushRedInvoice(res.data)
236
- },
237
- async fp_search (row) {
238
- this.eticket_show = true
239
- await this.$refs.eticketbill.fp_search(row, row.id)
240
- },
241
- watch_ch (src) {
242
- this.eticket_show = true
243
- this.$refs.eticketbill.watch_ch(src)
244
- },
245
- fp_ch (row) {
246
- this.row = row
247
- this.show = true
248
- this.bz = `对应正数发票代码:${row.f_bill_code},号码:${row.f_bill_number}。`
249
- },
250
- close () {
251
- this.show = false
252
- this.install_show = false
253
- },
254
- kp (row) {
255
- this.eticket_show = true
256
- this.$refs.eticketbill.openEticketGen(row.id)
257
- },
258
- ch (row) {
259
- this.eticket_show = true
260
- this.$refs.eticketbill.rushRedInvoice(row.id)
261
- },
262
- eticket_toggle () {
263
- this.eticket_show = false
264
- this.show = false
265
- this.row = {}
266
- this.bz = ''
267
- }
268
- },
269
- computed: {
270
- },
271
- events: {
272
- 'search' () {
273
- this.search()
274
- }
275
- },
276
- watch: {}
277
- }
278
- </script>
279
- <style scoped>
280
- th {
281
- text-align: center;
282
- padding: 2px;
283
- }
284
-
285
- td {
286
- text-align: center;
287
- padding: 2px;
288
- }
289
- </style>
1
+ <template>
2
+ <div class="auto basic-main" style="height:95%">
3
+ <criteria-paged :model="model" v-ref:paged>
4
+ <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
5
+ <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
6
+ <div class="row">
7
+ <div class="form-group col-sm-3" >
8
+ <label class="font_normal_body">组织机构</label>
9
+ <res-select :initresid='$parent.$parent.curorgid'
10
+ @res-select="$parent.$parent.getorg"
11
+ class="select select_list"
12
+ restype='organization'
13
+ style="width: 60%">
14
+ </res-select>
15
+ </div>
16
+ <div class="form-group col-sm-2">
17
+ <label class="font_normal_body">客户编号</label>
18
+ <input type="text" class="form-control" v-model="model.f_userinfo_code" style="width:60%"
19
+ condition="f_userinfo_code = '{}' " placeholder="客户编号"
20
+ >
21
+ </div>
22
+ <div class="form-group col-sm-2">
23
+ <label class="font_normal_body">用户姓名</label>
24
+ <input type="text" class="form-control" v-model="model.f_user_name" style="width:60%"
25
+ condition="f_user_name = '{}'" placeholder="用户姓名"
26
+ >
27
+ </div>
28
+ <div class="form-group col-sm-2">
29
+ <label class="font_normal_body">票据状态</label>
30
+ <v-select id="f_bill_state"
31
+ style="width:60%"
32
+ v-model="model.f_bill_state"
33
+ placeholder='票据状态'
34
+ condition="f_bill_state ='{}'"
35
+ :value.sync="model.f_bill_state"
36
+ :options='$parent.$parent.eticktypes'
37
+ :search="false"
38
+ close-on-select clear-button>
39
+ </v-select>
40
+ </div>
41
+ <div style="float: right">
42
+ <button class="button_search" @click="search()">查 询</button>
43
+ <button class="button_clear button_spacing" @click="$parent.$parent.clear()">清空</button>
44
+ <div
45
+ :class="{'button_shrink_top':$parent.$parent.criteriaShow,'button_shrink_bottom':!$parent.$parent.criteriaShow}"
46
+ @click="$parent.$parent.criteriaShow=!$parent.$parent.criteriaShow"
47
+ class="button_spacing"
48
+ style="float: right"></div>
49
+ </div>
50
+ </div>
51
+ <div class="row" v-show="$parent.$parent.criteriaShow">
52
+ <!-- <res-select-group style="col-sm-2 form-group" :initres="$parent.$parent.initres"-->
53
+ <!-- :show-component="['company','department','operator']" @re-res="$parent.$parent.getRes"-->
54
+ <!-- v-ref:sel></res-select-group>-->
55
+ <div class="form-group col-sm-2">
56
+ <label class="font_normal_body">操作日期</label>
57
+ <datepicker id="f_operate_datestarthate" placeholder="开始日期"
58
+ v-model="model.f_operate_datestarthate"
59
+ :value.sync="model.f_operate_datestarthate"
60
+ format="yyyy-MM-dd"
61
+ condition="f_operate_date >= '{}'"
62
+ style="width:60%">
63
+ </datepicker>
64
+ </div>
65
+ <div class="form-group col-sm-2">
66
+ <label class="font_normal_body">&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label>
67
+ <datepicker id="f_operate_dateendDate" placeholder="结束日期"
68
+ v-model="model.f_operate_dateendDate"
69
+ :value.sync="model.f_operate_dateendDate"
70
+ format="yyyy-MM-dd"
71
+ condition=" f_operate_date <= '{}'"
72
+ style="width:60%">
73
+ </datepicker>
74
+ </div>
75
+ </div>
76
+ </div>
77
+ </criteria>
78
+ <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid>
79
+ <template partial='head'>
80
+ <tr>
81
+ <th>
82
+ <nobr>客户编号</nobr>
83
+ </th>
84
+ <th>
85
+ <nobr>客户姓名</nobr>
86
+ </th>
87
+ <th>
88
+ <nobr>客户地址电话</nobr>
89
+ </th>
90
+ <th>
91
+ <nobr>实收金额</nobr>
92
+ </th>
93
+ <th>
94
+ <nobr>不含税金额</nobr>
95
+ </th>
96
+ <th>
97
+ <nobr>发票类型</nobr>
98
+ </th>
99
+ <th>
100
+ <nobr>发票代码</nobr>
101
+ </th>
102
+ <th>
103
+ <nobr>发票流水号</nobr>
104
+ </th>
105
+ <th>
106
+ <nobr>发票号码</nobr>
107
+ </th>
108
+ <th>
109
+ <nobr>发票状态</nobr>
110
+ </th>
111
+ <th>
112
+ <nobr>发票类型</nobr>
113
+ </th>
114
+ <th>
115
+ <nobr>开票时间</nobr>
116
+ </th>
117
+ <th>
118
+ <nobr>查看发票</nobr>
119
+ </th>
120
+ <th>
121
+ <nobr>操作</nobr>
122
+ </th>
123
+ </tr>
124
+ </template>
125
+ <template partial='body' :model="model">
126
+ <tr>
127
+ <th style="text-align:center">{{ row.f_userinfo_code }}</th>
128
+ <th style="text-align:center">{{ row.f_user_name }}</th>
129
+ <th style="text-align:center">{{ row.f_buy_address_phone }}</th>
130
+ <th style="text-align:center">{{ row.f_total_money }}</th>
131
+ <th style="text-align:center">{{ row.f_tax_money }}</th>
132
+ <th style="text-align:center">{{ row.f_invoice_type }}</th>
133
+ <th style="text-align:center">{{ row.f_bill_code }}</th>
134
+ <th style="text-align:center">{{ row.f_fpqqlsh }}</th>
135
+ <th style="text-align:center">{{ row.f_bill_number }}</th>
136
+ <th style="text-align:center">{{ row.f_bill_state }}</th>
137
+ <th style="text-align:center">{{ row.f_charge_type }}</th>
138
+ <th style="text-align:center">{{ row.f_operate_date }}</th>
139
+ <th style="text-align:center">
140
+ <button class="btn btn-link" v-if="row.f_bill_url"
141
+ @click="$parent.$parent.$parent.watch_ch(row.f_bill_url)">
142
+ 查看发票
143
+ </button>
144
+ </th>
145
+ <th style="text-align:center">
146
+ <template v-if="row.f_invoice_source !== '外部录入'">
147
+ <button class="btn btn-link" v-if="row.f_bill_state==='开票成功' && row.f_tax_money > 0"
148
+ @click="$parent.$parent.$parent.fp_ch(row)">发票冲红
149
+ </button>
150
+ <button class="btn btn-link" v-if="row.f_bill_state==='待开票'"
151
+ @click="$parent.$parent.$parent.kp(row)">开票
152
+ </button>
153
+ <button class="btn btn-link" v-if="row.f_bill_state==='开票失败'"
154
+ @click="$parent.$parent.$parent.kp(row)">重新开票
155
+ </button>
156
+ <button class="btn btn-link" v-if="row.f_bill_state==='冲红失败'"
157
+ @click="$parent.$parent.$parent.kp(row)">重新冲红
158
+ </button>
159
+ <button class="btn btn-link" v-if="['查询失败','等待查询'].includes(row.f_bill_state)"
160
+ @click="$parent.$parent.$parent.fp_search(row)">电票查询
161
+ </button>
162
+ </template>
163
+ </th>
164
+ </tr>
165
+ </template>
166
+ </data-grid>
167
+ </criteria-paged>
168
+ </div>
169
+ <modal v-if="show" :show.sync="show" v-ref:modal backdrop="false">
170
+ <header slot="modal-header" class="modal-header">
171
+ <h4 class="modal-title">撤销原因</h4>
172
+ </header>
173
+ <article slot="modal-body" class="modal-body">
174
+ <validator name='v'>
175
+ <form class="form-horizontal select-overspread">
176
+ <div class="form-group" :class="[$v.f_cancel_reason.required ? 'has-error' : 'has-success']">
177
+ <label class=" col-sm-3 control-label">冲红备注:</label>
178
+ <div class="col-sm-8">
179
+ <textarea class="form-control" v-model="bz" rows="3"
180
+ placeholder="请填写冲红备注" v-validate:bz='{required: true}'></textarea>
181
+ </div>
182
+ </div>
183
+ </form>
184
+ </validator>
185
+ </article>
186
+ <footer slot="modal-footer" class="modal-footer">
187
+ <button v-show="show" type="button" class="button_search" @click='confirm()' :disabled="!$v.valid ">确认</button>
188
+ <button v-show="show" type="button" class="button_clear" @click='close'>取消</button>
189
+ </footer>
190
+ </modal>
191
+ <ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
192
+ </template>
193
+ <script>
194
+
195
+ import {PagedList} from 'vue-client'
196
+
197
+ export default {
198
+ title: '发票管理',
199
+ data () {
200
+ return {
201
+ model: new PagedList('rs/sql/eticket_query', 20),
202
+ curorgid: [this.$login.f.orgid],
203
+ criteriaShow: false,
204
+ eticket_show: false,
205
+ orgCondtionStr: '',
206
+ showsum_show: false,
207
+ invoiceTypes: [{label: '专用发票', value: '专用发票'}, {label: '普通发票', value: '普通发票'}, {label: '国税发票', value: '国税发票'}],
208
+ eticktypes: [{label: '开票成功', value: '开票成功'}, {label: '等待查询', value: '等待查询'}, {
209
+ label: '开票失败',
210
+ value: '开票失败'
211
+ }, {
212
+ label: '冲红失败',
213
+ value: '冲红失败'
214
+ }, {label: '冲红', value: '冲红'}, {label: '撤销', value: '撤销'}],
215
+ show: false,
216
+ bz: '',
217
+ row: {},
218
+ install_show: false,
219
+ f_orgid: ''
220
+ }
221
+ },
222
+ ready () {
223
+ },
224
+ methods: {
225
+ getorg (val) {
226
+ this.f_orgid = this.$login.convertToIn(val)
227
+ },
228
+ search () {
229
+ this.$refs.paged.$refs.cri.search()
230
+ },
231
+ selfSearch (args) {
232
+ if (!this.f_orgid) {
233
+ this.getorg([this.$login.f.orgid])
234
+ }
235
+ if (this.f_orgid) {
236
+ args.condition = `uf.f_filialeid in ${this.f_orgid} and ${args.condition}`
237
+ }
238
+ this.model.search(args.condition, args.model)
239
+ },
240
+ async confirm () {
241
+ // 修改发票状态
242
+ let res = await this.$resetpost('rs/logic/correctEticket', {id: this.row.id,
243
+ bz: this.bz,
244
+ f_dept_id: this.$login.f.depids,
245
+ f_operator: this.$login.f.name,
246
+ f_orgid: this.$login.f.orgid,
247
+ f_orgname: this.$login.f.orgs,
248
+ f_depname: this.$login.f.deps,
249
+ f_operatorid: this.$login.f.id,
250
+ f_filialeids: this.$login.f.f_orgids}, {
251
+ resolveMsg: null,
252
+ rejectMsg: '保存开票信息失败'
253
+ })
254
+ this.eticket_show = true
255
+ await this.$refs.eticketbill.rushRedInvoice(res.data)
256
+ },
257
+ async fp_search (row) {
258
+ this.eticket_show = true
259
+ await this.$refs.eticketbill.fp_search(row, row.id)
260
+ },
261
+ watch_ch (src) {
262
+ this.eticket_show = true
263
+ this.$refs.eticketbill.watch_ch(src)
264
+ },
265
+ fp_ch (row) {
266
+ this.row = row
267
+ this.show = true
268
+ this.bz = `对应正数发票代码:${row.f_bill_code},号码:${row.f_bill_number}。`
269
+ },
270
+ close () {
271
+ this.show = false
272
+ this.install_show = false
273
+ },
274
+ kp (row) {
275
+ this.eticket_show = true
276
+ this.$refs.eticketbill.openEticketGen(row.id)
277
+ },
278
+ ch (row) {
279
+ this.eticket_show = true
280
+ this.$refs.eticketbill.rushRedInvoice(row.id)
281
+ },
282
+ eticket_toggle () {
283
+ this.eticket_show = false
284
+ this.show = false
285
+ this.row = {}
286
+ this.bz = ''
287
+ }
288
+ },
289
+ computed: {
290
+ },
291
+ events: {
292
+ 'search' () {
293
+ this.search()
294
+ }
295
+ },
296
+ watch: {}
297
+ }
298
+ </script>
299
+ <style scoped>
300
+ th {
301
+ text-align: center;
302
+ padding: 2px;
303
+ }
304
+
305
+ td {
306
+ text-align: center;
307
+ padding: 2px;
308
+ }
309
+ </style>