sale-client 3.6.213 → 3.6.214
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/build/dev-server.js +2 -3
- package/package.json +1 -1
- package/src/components/revenue/comprehen/Bill/Eticket/EticketOpenCard.vue +33 -12
- package/src/components/revenue/comprehen/Bill/Eticket/EticketOpenPage.vue +31 -10
- package/src/filiale/tongchuan/CardMeterCenter.vue +5 -4
- package/src/filiale/tongchuan/EticketOpenJBPage.vue +23 -15
- package/src/filiale/tongchuan/IOTMeterCenter.vue +14 -12
- package/src/filiale/tongchuan/bill/CustQueryEticket.vue +41 -13
- package/src/filiale/tongchuan/bill/EticketModal.vue +9 -4
- package/src/filiale/tongchuan/bill/EticketPrint.vue +15 -5
- package/src/filiale/tongchuan/bill/EticketRecordList.vue +7 -3
- package/src/main.js +1 -1
package/build/dev-server.js
CHANGED
|
@@ -10,7 +10,7 @@ var devConfig = {
|
|
|
10
10
|
historyApiFallback: true,
|
|
11
11
|
host: '127.0.0.1',
|
|
12
12
|
port: 8089,
|
|
13
|
-
open:
|
|
13
|
+
open: false,
|
|
14
14
|
stats: {
|
|
15
15
|
colors: false, // 配置控制台输出彩色日志
|
|
16
16
|
chunks: false, // 不输出构建 chunk 信息
|
|
@@ -18,8 +18,7 @@ var devConfig = {
|
|
|
18
18
|
},
|
|
19
19
|
proxy: {
|
|
20
20
|
'/invoice/rs/logic/getInvoice': {
|
|
21
|
-
|
|
22
|
-
target: 'http://127.0.0.1:4523'
|
|
21
|
+
target: serverRul
|
|
23
22
|
},
|
|
24
23
|
'/rs/file': {
|
|
25
24
|
target: serverRul
|
package/package.json
CHANGED
|
@@ -121,6 +121,18 @@
|
|
|
121
121
|
:options='is_pax' clear-button>
|
|
122
122
|
</v-select>
|
|
123
123
|
</div>
|
|
124
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
|
|
125
|
+
<nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
|
|
126
|
+
<v-select v-model="invoice_type"
|
|
127
|
+
placeholder='请选择'
|
|
128
|
+
:value.sync="invoice_type"
|
|
129
|
+
close-on-select
|
|
130
|
+
:width="60"
|
|
131
|
+
:value-single="true"
|
|
132
|
+
:search="false"
|
|
133
|
+
:options='invoice_types' clear-button>
|
|
134
|
+
</v-select>
|
|
135
|
+
</div>
|
|
124
136
|
<div class="col-sm-12 form-group form-input-group">
|
|
125
137
|
<label class="control-label">开户行及账号:</label>
|
|
126
138
|
<input class="form-control col-sm-2"
|
|
@@ -129,12 +141,17 @@
|
|
|
129
141
|
<div class="col-sm-12 form-group form-input-group" >
|
|
130
142
|
<label class="control-label">纳税人识别号:</label>
|
|
131
143
|
<input class="form-control col-sm-2"
|
|
132
|
-
|
|
144
|
+
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
145
|
+
</div>
|
|
146
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
147
|
+
<label class="control-label">开票地址:</label>
|
|
148
|
+
<input class="form-control col-sm-2"
|
|
149
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
133
150
|
</div>
|
|
134
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.
|
|
135
|
-
<label class="control-label"
|
|
151
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
152
|
+
<label class="control-label">开票电话:</label>
|
|
136
153
|
<input class="form-control col-sm-2"
|
|
137
|
-
v-model="row.
|
|
154
|
+
v-model="row.f_buy_phone" placeholder="开票电话">
|
|
138
155
|
</div>
|
|
139
156
|
<div class="col-sm-12 form-group form-input-group">
|
|
140
157
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -146,7 +163,7 @@
|
|
|
146
163
|
</article>
|
|
147
164
|
<footer slot="modal-footer" class="modal-footer">
|
|
148
165
|
<button type="button" class="btn button_search"
|
|
149
|
-
:disabled="!(row.f_paper_name&&row.
|
|
166
|
+
:disabled="!(row.f_paper_name&&row.f_buy_phone&&row.f_buy_address &&invoice_type)"
|
|
150
167
|
@click='confirm'>确认收费
|
|
151
168
|
</button>
|
|
152
169
|
</footer>
|
|
@@ -174,6 +191,8 @@ export default {
|
|
|
174
191
|
f_orgid: '',
|
|
175
192
|
other: [],
|
|
176
193
|
footer: [],
|
|
194
|
+
invoice_types: this.$appdata.getParam('发票种类'),
|
|
195
|
+
invoice_type: '',
|
|
177
196
|
invoice_is_pax: '征税',
|
|
178
197
|
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
179
198
|
initres: {
|
|
@@ -196,7 +215,10 @@ export default {
|
|
|
196
215
|
eticket_msg: false,
|
|
197
216
|
invoice_show_gas: '否',
|
|
198
217
|
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
199
|
-
row: {
|
|
218
|
+
row: {
|
|
219
|
+
f_buy_address: '',
|
|
220
|
+
f_buy_phone: ''
|
|
221
|
+
},
|
|
200
222
|
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}]
|
|
201
223
|
}
|
|
202
224
|
},
|
|
@@ -228,7 +250,7 @@ export default {
|
|
|
228
250
|
condition: `f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}'`
|
|
229
251
|
}
|
|
230
252
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
231
|
-
this.row = row.data[0]
|
|
253
|
+
this.row = Object.assign(row.data[0], this.row)
|
|
232
254
|
this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
|
|
233
255
|
if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
|
|
234
256
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
@@ -236,10 +258,9 @@ export default {
|
|
|
236
258
|
if (!this.row.f_paper_name) {
|
|
237
259
|
this.row.f_paper_name = this.row.f_user_name
|
|
238
260
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
if(!this.row.f_email){
|
|
261
|
+
this.row.f_buy_address = this.row.f_address
|
|
262
|
+
this.row.f_buy_phone = this.row.f_user_phone
|
|
263
|
+
if (!this.row.f_email) {
|
|
243
264
|
this.row.f_email = this.row.f_email
|
|
244
265
|
}
|
|
245
266
|
this.eticket_msg = true
|
|
@@ -247,7 +268,7 @@ export default {
|
|
|
247
268
|
confirm () {
|
|
248
269
|
this.eticket_msg = false
|
|
249
270
|
this.eticket_show = true
|
|
250
|
-
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '是',this.invoice_is_pax, '结算收费')
|
|
271
|
+
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, '是',this.invoice_is_pax, '结算收费', this.invoice_type)
|
|
251
272
|
},
|
|
252
273
|
selfSearch (args) {
|
|
253
274
|
this.selecteds = []
|
|
@@ -121,6 +121,18 @@
|
|
|
121
121
|
:options='is_pax' clear-button>
|
|
122
122
|
</v-select>
|
|
123
123
|
</div>
|
|
124
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
|
|
125
|
+
<nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
|
|
126
|
+
<v-select v-model="invoice_type"
|
|
127
|
+
placeholder='请选择'
|
|
128
|
+
:value.sync="invoice_type"
|
|
129
|
+
close-on-select
|
|
130
|
+
:width="60"
|
|
131
|
+
:value-single="true"
|
|
132
|
+
:search="false"
|
|
133
|
+
:options='invoice_types' clear-button>
|
|
134
|
+
</v-select>
|
|
135
|
+
</div>
|
|
124
136
|
<div class="col-sm-12 form-group form-input-group">
|
|
125
137
|
<label class="control-label">开户行及账号:</label>
|
|
126
138
|
<input class="form-control col-sm-2"
|
|
@@ -131,10 +143,15 @@
|
|
|
131
143
|
<input class="form-control col-sm-2"
|
|
132
144
|
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
133
145
|
</div>
|
|
134
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.
|
|
135
|
-
<label class="control-label"
|
|
146
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
147
|
+
<label class="control-label">开票地址:</label>
|
|
148
|
+
<input class="form-control col-sm-2"
|
|
149
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
150
|
+
</div>
|
|
151
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
152
|
+
<label class="control-label">开票电话:</label>
|
|
136
153
|
<input class="form-control col-sm-2"
|
|
137
|
-
v-model="row.
|
|
154
|
+
v-model="row.f_buy_phone" placeholder="开票地址">
|
|
138
155
|
</div>
|
|
139
156
|
<div class="col-sm-12 form-group form-input-group">
|
|
140
157
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -146,7 +163,7 @@
|
|
|
146
163
|
</article>
|
|
147
164
|
<footer slot="modal-footer" class="modal-footer">
|
|
148
165
|
<button type="button" class="btn button_search"
|
|
149
|
-
:disabled="!(row.f_paper_name&&row.
|
|
166
|
+
:disabled="!(row.f_paper_name&&row.f_buy_phone&&row.f_buy_address&&invoice_type)"
|
|
150
167
|
@click='confirm'>确认收费
|
|
151
168
|
</button>
|
|
152
169
|
</footer>
|
|
@@ -173,6 +190,8 @@ export default {
|
|
|
173
190
|
f_orgid: '',
|
|
174
191
|
other: [],
|
|
175
192
|
footer: [],
|
|
193
|
+
invoice_types: this.$appdata.getParam('发票种类'),
|
|
194
|
+
invoice_type: '',
|
|
176
195
|
invoice_is_pax: '征税',
|
|
177
196
|
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
178
197
|
config: {
|
|
@@ -195,7 +214,10 @@ export default {
|
|
|
195
214
|
eticket_msg: false,
|
|
196
215
|
invoice_show_gas: '否',
|
|
197
216
|
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
198
|
-
row: {
|
|
217
|
+
row: {
|
|
218
|
+
f_buy_address: '',
|
|
219
|
+
f_buy_phone: ''
|
|
220
|
+
},
|
|
199
221
|
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}]
|
|
200
222
|
}
|
|
201
223
|
},
|
|
@@ -227,7 +249,7 @@ export default {
|
|
|
227
249
|
condition: `f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}'`
|
|
228
250
|
}
|
|
229
251
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
230
|
-
this.row = row.data[0]
|
|
252
|
+
this.row = Object.assign(row.data[0], this.row)
|
|
231
253
|
this.invoice_show_gas = this.row.f_collection_type == '按气量' ? '是' : '否'
|
|
232
254
|
if (!this.row.f_taxpayer_id && this.config.taxforidnumber) {
|
|
233
255
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
@@ -235,9 +257,8 @@ export default {
|
|
|
235
257
|
if (!this.row.f_paper_name) {
|
|
236
258
|
this.row.f_paper_name = this.row.f_user_name
|
|
237
259
|
}
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
}
|
|
260
|
+
this.row.f_buy_address = this.row.f_address
|
|
261
|
+
this.row.f_buy_phone = this.row.f_user_phone
|
|
241
262
|
if (!this.row.f_email) {
|
|
242
263
|
this.row.f_email = this.row.f_email
|
|
243
264
|
}
|
|
@@ -246,7 +267,7 @@ export default {
|
|
|
246
267
|
confirm () {
|
|
247
268
|
this.eticket_msg = false
|
|
248
269
|
this.eticket_show = true
|
|
249
|
-
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, '结算收费')
|
|
270
|
+
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, '结算收费', this.invoice_type)
|
|
250
271
|
},
|
|
251
272
|
selfSearch (args) {
|
|
252
273
|
this.selecteds = []
|
|
@@ -358,7 +358,7 @@ let sellgasGen = async function (self) {
|
|
|
358
358
|
console.log(self.config, self.config.hasPrint && !self.$login.r.includes('不打印发票'))
|
|
359
359
|
// 开始打票
|
|
360
360
|
if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
|
|
361
|
-
if (self.model.f_print
|
|
361
|
+
if (self.printInvoiceType.indexOf(self.model.f_print[0]) == -1) {
|
|
362
362
|
if (self.$login.r.includes('非民用纸质票据拆分')) {
|
|
363
363
|
if (self.row.f_user_type === '非民用') {
|
|
364
364
|
self.billData.url = 'rs/report/fmy_card_bill'
|
|
@@ -671,9 +671,10 @@ export default {
|
|
|
671
671
|
if (!this.row.f_paper_name) {
|
|
672
672
|
this.row.f_paper_name = this.row.f_user_name
|
|
673
673
|
}
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
674
|
+
this.row = Object.assign({}, this.row, {
|
|
675
|
+
f_buy_phone: this.row.f_user_phone,
|
|
676
|
+
f_buy_address: this.row.f_address
|
|
677
|
+
})
|
|
677
678
|
if (!this.row.f_email) {
|
|
678
679
|
this.row.f_email = this.row.f_email
|
|
679
680
|
}
|
|
@@ -132,16 +132,16 @@
|
|
|
132
132
|
<input class="form-control col-sm-2"
|
|
133
133
|
v-model="row.f_paper_name" placeholder="开票名称">
|
|
134
134
|
</div>
|
|
135
|
-
<div class="col-sm-6 form-group form-input-group">
|
|
136
|
-
<nobr class="col-sm-4"><label class="control-label"
|
|
137
|
-
<v-select v-model="
|
|
135
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
|
|
136
|
+
<nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
|
|
137
|
+
<v-select v-model="invoice_type"
|
|
138
138
|
placeholder='请选择'
|
|
139
|
-
:value.sync="
|
|
139
|
+
:value.sync="invoice_type"
|
|
140
140
|
close-on-select
|
|
141
141
|
:width="60"
|
|
142
142
|
:value-single="true"
|
|
143
143
|
:search="false"
|
|
144
|
-
:options='
|
|
144
|
+
:options='invoice_types' clear-button>
|
|
145
145
|
</v-select>
|
|
146
146
|
</div>
|
|
147
147
|
<div class="col-sm-12 form-group form-input-group">
|
|
@@ -154,10 +154,15 @@
|
|
|
154
154
|
<input class="form-control col-sm-2"
|
|
155
155
|
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
156
156
|
</div>
|
|
157
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.
|
|
158
|
-
<label class="control-label"
|
|
157
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
158
|
+
<label class="control-label">开票地址:</label>
|
|
159
159
|
<input class="form-control col-sm-2"
|
|
160
|
-
v-model="row.
|
|
160
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
161
|
+
</div>
|
|
162
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
163
|
+
<label class="control-label">开票电话:</label>
|
|
164
|
+
<input class="form-control col-sm-2"
|
|
165
|
+
v-model="row.f_buy_phone" placeholder="开票地址">
|
|
161
166
|
</div>
|
|
162
167
|
<div class="col-sm-12 form-group form-input-group">
|
|
163
168
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -169,7 +174,7 @@
|
|
|
169
174
|
</article>
|
|
170
175
|
<footer slot="modal-footer" class="modal-footer">
|
|
171
176
|
<button type="button" class="btn button_search"
|
|
172
|
-
:disabled="!(row.f_paper_name&&row.
|
|
177
|
+
:disabled="!(row.f_paper_name&&row.f_buy_phone&&row.f_buy_address&&invoice_type)"
|
|
173
178
|
@click='confirm'>确认收费
|
|
174
179
|
</button>
|
|
175
180
|
</footer>
|
|
@@ -220,7 +225,8 @@ export default {
|
|
|
220
225
|
f_orgid: '',
|
|
221
226
|
other: [],
|
|
222
227
|
footer: [],
|
|
223
|
-
|
|
228
|
+
invoice_types: this.$appdata.getParam('发票种类'),
|
|
229
|
+
invoice_type: '',
|
|
224
230
|
is_pax: [{label: '征税', value: '征税'}, {label: '不征税', value: '不征税'}],
|
|
225
231
|
initres: {
|
|
226
232
|
org: [this.$login.f.orgid],
|
|
@@ -240,7 +246,10 @@ export default {
|
|
|
240
246
|
eticket_msg: false,
|
|
241
247
|
invoice_show_gas: '否',
|
|
242
248
|
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
243
|
-
row: {
|
|
249
|
+
row: {
|
|
250
|
+
f_buy_address: '',
|
|
251
|
+
f_buy_phone: ''
|
|
252
|
+
},
|
|
244
253
|
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}],
|
|
245
254
|
reissue_data: null,
|
|
246
255
|
reissue_show: false
|
|
@@ -290,7 +299,7 @@ export default {
|
|
|
290
299
|
condition: `f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}'`
|
|
291
300
|
}
|
|
292
301
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
293
|
-
this.row = row.data[0]
|
|
302
|
+
this.row = Object.assign(row.data[0], this.row)
|
|
294
303
|
this.invoice_show_gas = this.row.f_collection_type === '按气量' ? '是' : '否'
|
|
295
304
|
if (!this.row.f_taxpayer_id) {
|
|
296
305
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
@@ -298,9 +307,8 @@ export default {
|
|
|
298
307
|
if (!this.row.f_paper_name) {
|
|
299
308
|
this.row.f_paper_name = this.row.f_user_name
|
|
300
309
|
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
}
|
|
310
|
+
this.row.f_buy_address = this.row.f_address
|
|
311
|
+
this.row.f_buy_phone = this.row.f_user_phone
|
|
304
312
|
this.eticket_msg = true
|
|
305
313
|
},
|
|
306
314
|
async open_report () {
|
|
@@ -225,10 +225,15 @@
|
|
|
225
225
|
<input class="form-control col-sm-2"
|
|
226
226
|
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
227
227
|
</div>
|
|
228
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.
|
|
229
|
-
<label class="control-label"
|
|
228
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
229
|
+
<label class="control-label">开票地址:</label>
|
|
230
230
|
<input class="form-control col-sm-2"
|
|
231
|
-
v-model="row.
|
|
231
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
232
|
+
</div>
|
|
233
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
234
|
+
<label class="control-label">开票电话:</label>
|
|
235
|
+
<input class="form-control col-sm-2"
|
|
236
|
+
v-model="row.f_buy_phone" placeholder="开票地址">
|
|
232
237
|
</div>
|
|
233
238
|
<div class="col-sm-12 form-group form-input-group">
|
|
234
239
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -240,7 +245,7 @@
|
|
|
240
245
|
</article>
|
|
241
246
|
<footer slot="modal-footer" class="modal-footer">
|
|
242
247
|
<button type="button" class="btn button_search"
|
|
243
|
-
:disabled="!(row.f_paper_name&&row.
|
|
248
|
+
:disabled="!(row.f_paper_name&&row.f_buy_phone&&row.f_buy_address)"
|
|
244
249
|
@click='confirm'>确认收费
|
|
245
250
|
</button>
|
|
246
251
|
</footer>
|
|
@@ -372,7 +377,7 @@
|
|
|
372
377
|
// 开始打票
|
|
373
378
|
console.log('开始打票', self.config)
|
|
374
379
|
if (true) {
|
|
375
|
-
if (self.model.f_print
|
|
380
|
+
if (self.printInvoiceType.indexOf(self.model.f_print[0]) == -1) {
|
|
376
381
|
console.log('self.config.hasBillManage', self.config.hasBillManage)
|
|
377
382
|
if (self.config.hasBillManage) {
|
|
378
383
|
// 启用发票管理,获取票据管理中的票号并存储记录
|
|
@@ -626,7 +631,6 @@
|
|
|
626
631
|
}
|
|
627
632
|
this.model.f_sys_balance = curSysBalance
|
|
628
633
|
}
|
|
629
|
-
|
|
630
634
|
if (this.printInvoiceType.indexOf(this.model.f_print[0]) !== -1) {
|
|
631
635
|
if (!this.row.f_taxpayer_id) {
|
|
632
636
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
@@ -634,12 +638,10 @@
|
|
|
634
638
|
if (!this.row.f_paper_name) {
|
|
635
639
|
this.row.f_paper_name = this.row.f_user_name
|
|
636
640
|
}
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
this.row.f_email = this.row.f_email
|
|
642
|
-
}
|
|
641
|
+
this.row = Object.assign({}, this.row, {
|
|
642
|
+
f_buy_phone: this.row.f_user_phone,
|
|
643
|
+
f_buy_address: this.row.f_address
|
|
644
|
+
})
|
|
643
645
|
this.eticket_msg = true
|
|
644
646
|
} else {
|
|
645
647
|
this.confirm()
|
|
@@ -170,6 +170,18 @@
|
|
|
170
170
|
:options='is_pax' clear-button>
|
|
171
171
|
</v-select>
|
|
172
172
|
</div>
|
|
173
|
+
<div class="col-sm-6 form-group form-input-group" :class="[!invoice_type ? 'has-error' : '']">
|
|
174
|
+
<nobr class="col-sm-4"><label class="control-label">发票种类:</label></nobr>
|
|
175
|
+
<v-select v-model="invoice_type"
|
|
176
|
+
placeholder='请选择'
|
|
177
|
+
:value.sync="invoice_type"
|
|
178
|
+
close-on-select
|
|
179
|
+
:width="60"
|
|
180
|
+
:value-single="true"
|
|
181
|
+
:search="false"
|
|
182
|
+
:options='invoice_types' clear-button>
|
|
183
|
+
</v-select>
|
|
184
|
+
</div>
|
|
173
185
|
<div class="col-sm-12 form-group form-input-group">
|
|
174
186
|
<label class="control-label">开户行及账号:</label>
|
|
175
187
|
<input class="form-control col-sm-2" :disabled="diytick"
|
|
@@ -180,10 +192,22 @@
|
|
|
180
192
|
<input class="form-control col-sm-2" :disabled="diytick"
|
|
181
193
|
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
182
194
|
</div>
|
|
183
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']"
|
|
184
|
-
<label class="control-label">开票地址电话:</label
|
|
185
|
-
<input class="form-control col-sm-2" :disabled="diytick"
|
|
186
|
-
v-model="row.f_address_phone" placeholder="开票地址"
|
|
195
|
+
<!-- <div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">-->
|
|
196
|
+
<!-- <label class="control-label">开票地址电话:</label>-->
|
|
197
|
+
<!-- <input class="form-control col-sm-2" :disabled="diytick"-->
|
|
198
|
+
<!-- v-model="row.f_address_phone" placeholder="开票地址">-->
|
|
199
|
+
<!-- </div>-->
|
|
200
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
201
|
+
<label class="control-label">开票地址:</label>
|
|
202
|
+
<input class="form-control col-sm-2"
|
|
203
|
+
:disabled="diytick"
|
|
204
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
205
|
+
</div>
|
|
206
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
207
|
+
<label class="control-label">开票电话:</label>
|
|
208
|
+
<input class="form-control col-sm-2"
|
|
209
|
+
:disabled="diytick"
|
|
210
|
+
v-model="row.f_buy_phone" placeholder="开票地址">
|
|
187
211
|
</div>
|
|
188
212
|
<div class="col-sm-12 form-group form-input-group">
|
|
189
213
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -201,7 +225,7 @@
|
|
|
201
225
|
</button>
|
|
202
226
|
<button type="button" class="btn button_search"
|
|
203
227
|
v-if="diytick"
|
|
204
|
-
:disabled="diytick && !(row.f_paper_name&&row.name&&row.money&&row.f_address_phone)"
|
|
228
|
+
:disabled="diytick && !(row.f_paper_name&&row.name&&row.money&&row.f_address_phone&&invoice_type)"
|
|
205
229
|
@click='openCustETicket'>确认收费
|
|
206
230
|
</button>
|
|
207
231
|
</footer>
|
|
@@ -223,6 +247,8 @@
|
|
|
223
247
|
disabled: false,
|
|
224
248
|
diytick: false,
|
|
225
249
|
last_money: 0,
|
|
250
|
+
invoice_types: this.$appdata.getParam('发票种类'),
|
|
251
|
+
invoice_type: '',
|
|
226
252
|
model: new PagedList('rs/sql/openSellelent', 50, {}),
|
|
227
253
|
f_outlets: Vue.$login.f.f_parentname,
|
|
228
254
|
f_filiale: Vue.$login.f.f_fengongsi,
|
|
@@ -237,7 +263,10 @@
|
|
|
237
263
|
invoice_show_gas: '否',
|
|
238
264
|
billNull: [{label: '否', value: '否'}, {label: '是', value: '是'}],
|
|
239
265
|
show_gas: [{label: '是', value: '是'}, {label: '否', value: '否'}],
|
|
240
|
-
row: {
|
|
266
|
+
row: {
|
|
267
|
+
f_buy_address: '',
|
|
268
|
+
f_buy_phone: ''
|
|
269
|
+
},
|
|
241
270
|
mid: [{label: '全部', value: ''}, {label: '是', value: ' > 0 '}, {label: '否', value: ' is null'}],
|
|
242
271
|
custModel: {
|
|
243
272
|
|
|
@@ -267,16 +296,15 @@
|
|
|
267
296
|
condition: `f_userinfo_code = '${[...new Set(this.selecteds.map(item => item.f_userinfo_code))][0]}'`
|
|
268
297
|
}
|
|
269
298
|
}, {resolveMsg: null, rejectMsg: '获取地址失败!'})
|
|
270
|
-
this.row = row.data[0]
|
|
299
|
+
this.row = Object.assign(row.data[0], this.row)
|
|
271
300
|
this.invoice_show_gas = this.row.f_collection_type = '按气量' ? '是' : '否'
|
|
272
301
|
if (!this.row.f_taxpayer_id) {
|
|
273
302
|
this.row.f_taxpayer_id = this.row.f_idnumber
|
|
274
303
|
}
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
304
|
+
this.row.f_paper_name = this.row.f_user_name
|
|
305
|
+
this.row.f_buy_address = this.row.f_address
|
|
306
|
+
if (!this.row.f_buy_phone) {
|
|
307
|
+
this.row.f_buy_phone = this.row.f_phone
|
|
280
308
|
}
|
|
281
309
|
if (!this.row.f_email) {
|
|
282
310
|
this.row.f_email = this.row.f_email
|
|
@@ -342,7 +370,7 @@
|
|
|
342
370
|
if (this.selecteds.map(item => item.f_type).toString() == '其他收费' || this.selecteds.map(item => item.f_type).toString() == '卡表收费' || this.selecteds.map(item => item.f_type).toString() == '发卡售气') {
|
|
343
371
|
this.invoice_show_gas = '是'
|
|
344
372
|
}
|
|
345
|
-
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, this.selecteds.map(item => item.f_type).
|
|
373
|
+
this.$refs.eticketbill.openETicket(this.selecteds.map(item => item.id), this.row, this.invoice_show_gas, this.invoice_is_pax, this.selecteds.map(item => item.f_type)[0], this.invoice_type)
|
|
346
374
|
},
|
|
347
375
|
eticket_toggle () {
|
|
348
376
|
this.eticket_show = false
|
|
@@ -35,10 +35,15 @@
|
|
|
35
35
|
<input class="form-control col-sm-2"
|
|
36
36
|
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
37
37
|
</div>
|
|
38
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.
|
|
39
|
-
<label class="control-label"
|
|
38
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_address ? 'has-error' : '']">
|
|
39
|
+
<label class="control-label">开票地址:</label>
|
|
40
40
|
<input class="form-control col-sm-2"
|
|
41
|
-
v-model="row.
|
|
41
|
+
v-model="row.f_buy_address" placeholder="开票地址">
|
|
42
|
+
</div>
|
|
43
|
+
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_buy_phone ? 'has-error' : '']">
|
|
44
|
+
<label class="control-label">开票电话:</label>
|
|
45
|
+
<input class="form-control col-sm-2"
|
|
46
|
+
v-model="row.f_buy_phone" placeholder="开票地址">
|
|
42
47
|
</div>
|
|
43
48
|
<div class="col-sm-12 form-group form-input-group">
|
|
44
49
|
<label class="control-label">邮箱推送:</label>
|
|
@@ -50,7 +55,7 @@
|
|
|
50
55
|
</article>
|
|
51
56
|
<footer slot="modal-footer" class="modal-footer">
|
|
52
57
|
<button type="button" class="btn button_search"
|
|
53
|
-
:disabled="!(row.f_paper_name&&row.
|
|
58
|
+
:disabled="!(row.f_paper_name&&row.f_buy_phone&&row.f_buy_address)"
|
|
54
59
|
@click='confirm'>确认收费
|
|
55
60
|
</button>
|
|
56
61
|
</footer>
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
</template>
|
|
20
20
|
<script>
|
|
21
21
|
import {HttpResetClass} from 'vue-client'
|
|
22
|
+
import Vue from "vue";
|
|
22
23
|
|
|
23
24
|
export default {
|
|
24
25
|
title: '电子发票',
|
|
@@ -54,13 +55,14 @@ export default {
|
|
|
54
55
|
}
|
|
55
56
|
await this.$resetpost('rs/entity/t_eticket', model, {resolveMsg: null, rejectMsg: '保存发票记录失败'})
|
|
56
57
|
},
|
|
57
|
-
async openETicket (sellId, row, show_gas, is_pax, type, invoice_kind = '电子发票') {
|
|
58
|
+
async openETicket (sellId, row, show_gas, is_pax, type, invoice_kind = '电子发票', retry = false) {
|
|
58
59
|
try {
|
|
59
60
|
let model = {
|
|
60
61
|
id: sellId[0],
|
|
61
62
|
charge_item: type,
|
|
62
63
|
invoice_type: 0,
|
|
63
64
|
invoice_kind,
|
|
65
|
+
retry,
|
|
64
66
|
f_dept_id: this.$login.f.depids,
|
|
65
67
|
f_operator: this.$login.f.name,
|
|
66
68
|
f_orgid: this.$login.f.orgid,
|
|
@@ -71,16 +73,25 @@ export default {
|
|
|
71
73
|
f_filialeids: this.$login.f.f_orgids,
|
|
72
74
|
f_buy_name: row.f_paper_name,
|
|
73
75
|
f_pay_id: row.f_taxpayer_id,
|
|
74
|
-
f_buy_address: row.
|
|
76
|
+
f_buy_address: row.f_buy_address,
|
|
77
|
+
f_buy_phone: row.f_buy_phone,
|
|
75
78
|
f_mail_push: row.f_email,
|
|
76
79
|
f_buy_openbank: row.f_paper_account,
|
|
77
80
|
invoice_show_gas: show_gas === '是',
|
|
78
81
|
is_pax: is_pax === '征税',
|
|
79
|
-
isTax: is_pax === '征税' ? 1 : 0
|
|
82
|
+
isTax: is_pax === '征税' ? 1 : 0,
|
|
83
|
+
loginInfo: {
|
|
84
|
+
operator: this.$login.f.name,
|
|
85
|
+
operator_id: this.$login.f.id,
|
|
86
|
+
org_id: this.$login.f.orgid,
|
|
87
|
+
orgname: this.$login.f.orgs,
|
|
88
|
+
dep_id: this.$login.f.depids,
|
|
89
|
+
depname: this.$login.f.deps
|
|
90
|
+
}
|
|
80
91
|
}
|
|
81
92
|
// TODO 组织开票数据并保存
|
|
82
93
|
const res = await this.$resetpost('/invoice/rs/logic/getInvoice', model, {resolveMsg: null, rejectMsg: '开票请求失败'})
|
|
83
|
-
if (res.data.code == '0000') {
|
|
94
|
+
if (res.data.code === 200 && res.data.data.code == '0000') {
|
|
84
95
|
this.return_msg = '发票开具成功,请稍后到发票管理页面查看或打印'
|
|
85
96
|
} else {
|
|
86
97
|
this.return_msg = '发票开具失败,请稍后到发票管理页面补打或重开'
|
|
@@ -92,7 +103,6 @@ export default {
|
|
|
92
103
|
async rushRedInvoice (sellId, eticket_id, row, type, invoice_kind = '电子发票') {
|
|
93
104
|
try {
|
|
94
105
|
let model = {
|
|
95
|
-
id: sellId[0],
|
|
96
106
|
eticket_id,
|
|
97
107
|
charge_item: type,
|
|
98
108
|
invoice_type: 1,
|
|
@@ -120,7 +120,7 @@
|
|
|
120
120
|
<th style="text-align:center">{{ row.f_buy_address_phone }}</th>
|
|
121
121
|
<th style="text-align:center">{{ row.f_total_money }}</th>
|
|
122
122
|
<th style="text-align:center">{{ row.f_tax_money }}</th>
|
|
123
|
-
<th style="text-align:center">{{ row.
|
|
123
|
+
<th style="text-align:center">{{ row.f_invoice_category }}</th>
|
|
124
124
|
<th style="text-align:center">{{ row.f_bill_code }}</th>
|
|
125
125
|
<th style="text-align:center">{{ row.f_fpqqlsh }}</th>
|
|
126
126
|
<th style="text-align:center">{{ row.f_bill_number }}</th>
|
|
@@ -128,8 +128,12 @@
|
|
|
128
128
|
<th style="text-align:center">{{ row.f_charge_type }}</th>
|
|
129
129
|
<th style="text-align:center">{{ row.f_operate_date }}</th>
|
|
130
130
|
<th style="text-align:center">
|
|
131
|
-
<button class="btn btn-link" v-if="row.f_local_bill_url || row.f_bill_url"
|
|
132
|
-
@click="$parent.$parent.$parent.watch_ch(row.f_local_bill_url || row.f_bill_url)"
|
|
131
|
+
<!-- <button class="btn btn-link" v-if="row.f_local_bill_url || row.f_bill_url"-->
|
|
132
|
+
<!-- @click="$parent.$parent.$parent.watch_ch(row.f_local_bill_url || row.f_bill_url)">-->
|
|
133
|
+
<!-- 查看发票-->
|
|
134
|
+
<!-- </button>-->
|
|
135
|
+
<button class="btn btn-link" v-if="row.f_bill_url"
|
|
136
|
+
@click="$parent.$parent.$parent.watch_ch( row.f_bill_url)">
|
|
133
137
|
查看发票
|
|
134
138
|
</button>
|
|
135
139
|
</th>
|
package/src/main.js
CHANGED
|
@@ -3,7 +3,7 @@ import all from 'vue-client/src/all'
|
|
|
3
3
|
import App from './App'
|
|
4
4
|
import system from 'system-clients/src/system'
|
|
5
5
|
import sale from './sale'
|
|
6
|
-
import FilialeSale from './filiale/
|
|
6
|
+
import FilialeSale from './filiale/tongchuan/sale'
|
|
7
7
|
import address from 'address-client/src/address'
|
|
8
8
|
import ldap from 'ldap-clients/src/ldap'
|
|
9
9
|
import VueClipboard from 'vue-clipboard2'
|