sale-client 3.4.190 → 3.4.193
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 +5 -4
- package/package.json +1 -1
- package/src/components/FilesManage/UserGeneralInfoTest.vue +1 -1
- package/src/components/charge/business/CardMeterCenter.vue +15 -70
- package/src/components/charge/business/IOTMeterCenter.vue +10 -59
- package/src/components/charge/business/OtherChargeNew.vue +1 -56
- package/src/components/charge/business/machine/MachineMeterCenter.vue +7 -59
- package/src/components/common/userinfo_detail/UserBaseInfoNew.vue +1 -1
- package/src/components/revenue/Common/EticketPrint.vue +29 -3
- package/src/components/revenue/HandManager/MbpeopleList.vue +2 -2
- package/src/components/revenue/base/leftview/meterinfodetail.vue +9 -0
- package/src/components/revenue/base/rightview/CardList.vue +38 -22
- package/src/components/revenue/comprehen/ComprehenOperation/BankPayment/BankPayment.vue +27 -1
- package/src/components/revenue/comprehen/ComprehenOperation/ChangeAccount/TransferRecords.vue +218 -0
- package/src/components/revenue/comprehen/batch/batchEditHistory.vue +2 -2
- package/src/components/webMeter/MeterManage/WebMeterBatchOperate.vue +1 -1
- package/src/filiale/liaoyuan/deductionManage.vue +25 -0
- package/src/filiale/liaoyuan/feeDeduction.vue +162 -0
- package/src/filiale/liaoyuan/feeMachine.vue +138 -0
- package/src/filiale/liaoyuan/sale.js +3 -1
- package/src/filiale/qingtongxia/MachineMeterCenter.vue +2 -0
- package/src/filiale/shaoguan/Message/AllUser.vue +1 -1
- package/src/filiale/tongchuan/bill/CustQueryEticket.vue +113 -39
- package/src/filiale/tongchuan/bill/EticketModal.vue +90 -0
- package/src/filiale/tongchuan/common/userinfo_detail/ic_detail/ChargeQueryUser.vue +21 -5
- package/src/filiale/tongchuan/sale.js +7 -5
- package/src/sale.js +2 -0
package/build/dev-server.js
CHANGED
|
@@ -10,9 +10,10 @@ var compiler = webpack(config)
|
|
|
10
10
|
|
|
11
11
|
// Define HTTP proxies to your custom API backend
|
|
12
12
|
// https://github.com/chimurai/http-proxy-middleware
|
|
13
|
-
var bendi = 'http://
|
|
13
|
+
var bendi = 'http://127.0.0.1:8080',bendi1 = 'http://121.36.106.17:8400/'
|
|
14
14
|
// 公司测试服务
|
|
15
|
-
var fuwu = 'http://
|
|
15
|
+
var fuwu = 'http://192.168.50.4:8400'
|
|
16
|
+
// var fuwu = 'http://121.36.106.17:8400/'
|
|
16
17
|
//铜川正式
|
|
17
18
|
// var fuwu = 'http://61.134.55.234:9999/'
|
|
18
19
|
//铜川测试
|
|
@@ -98,8 +99,8 @@ var proxyTable = {
|
|
|
98
99
|
},
|
|
99
100
|
'/rs': {
|
|
100
101
|
// target: 'http://192.168.30.63:8081/'
|
|
101
|
-
target: 'http://121.36.106.17:8400/'
|
|
102
|
-
|
|
102
|
+
// target: 'http://121.36.106.17:8400/'
|
|
103
|
+
target: bendi
|
|
103
104
|
}
|
|
104
105
|
}
|
|
105
106
|
|
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
</div>
|
|
94
94
|
<div class="row">
|
|
95
95
|
<div class="col-sm-2"></div>
|
|
96
|
-
<input v-if="fileSaveData.reason==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
96
|
+
<input v-if="fileSaveData.reason ==='其他'" class="input_search" style="width:60%" placeholder='修改原因' v-model="fileSaveData.modifyReason"/>
|
|
97
97
|
</div>
|
|
98
98
|
</article>
|
|
99
99
|
<footer slot="modal-footer" class="modal-footer">
|
|
@@ -204,61 +204,7 @@
|
|
|
204
204
|
<button class="button_clear btn-gn" @click="clean()">取消</button>
|
|
205
205
|
</div>
|
|
206
206
|
</validator>
|
|
207
|
-
<modal :show
|
|
208
|
-
<header slot="modal-header" class="modal-header">
|
|
209
|
-
<button type="button" class="close" @click="eticket_msg = false"><span>×</span></button>
|
|
210
|
-
<h4 class="modal-title">发票信息</h4>
|
|
211
|
-
</header>
|
|
212
|
-
<article slot="modal-body" class="modal-body">
|
|
213
|
-
<div class="auto select-overspread form-horizontal">
|
|
214
|
-
<div class="row auto">
|
|
215
|
-
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
|
|
216
|
-
<label class="control-label">开票名称:</label>
|
|
217
|
-
<input class="form-control col-sm-2"
|
|
218
|
-
v-model="row.f_paper_name" placeholder="开票名称">
|
|
219
|
-
</div>
|
|
220
|
-
<div class="col-sm-6 form-group form-input-group">
|
|
221
|
-
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
222
|
-
<v-select v-model="invoice_is_pax"
|
|
223
|
-
placeholder='请选择'
|
|
224
|
-
:value.sync="invoice_is_pax"
|
|
225
|
-
close-on-select
|
|
226
|
-
:width="60"
|
|
227
|
-
:value-single="true"
|
|
228
|
-
:search="false"
|
|
229
|
-
:options='is_pax' clear-button>
|
|
230
|
-
</v-select>
|
|
231
|
-
</div>
|
|
232
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
233
|
-
<label class="control-label">开户行及账号:</label>
|
|
234
|
-
<input class="form-control col-sm-2"
|
|
235
|
-
v-model="row.f_paper_account" placeholder="购方开户行及账号">
|
|
236
|
-
</div>
|
|
237
|
-
<div class="col-sm-12 form-group form-input-group" >
|
|
238
|
-
<label class="control-label">纳税人识别号:</label>
|
|
239
|
-
<input class="form-control col-sm-2"
|
|
240
|
-
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
241
|
-
</div>
|
|
242
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
|
|
243
|
-
<label class="control-label">开票地址电话:</label>
|
|
244
|
-
<input class="form-control col-sm-2"
|
|
245
|
-
v-model="row.f_address_phone" placeholder="开票地址">
|
|
246
|
-
</div>
|
|
247
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
248
|
-
<label class="control-label">邮箱推送:</label>
|
|
249
|
-
<input class="form-control col-sm-2"
|
|
250
|
-
v-model="row.f_email" placeholder="邮箱推送">
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
</div>
|
|
254
|
-
</article>
|
|
255
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
256
|
-
<button type="button" class="btn button_search"
|
|
257
|
-
:disabled="!(row.f_paper_name&&row.f_address_phone)"
|
|
258
|
-
@click='confirm'>确认收费
|
|
259
|
-
</button>
|
|
260
|
-
</footer>
|
|
261
|
-
</modal>
|
|
207
|
+
<eticket-modal :show="eticket_msg" @close-modal-show="eticket_msg = false" :row="row" @confirm="confirm"></eticket-modal>
|
|
262
208
|
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
263
209
|
<payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="model.f_after_discount"></payment-code>
|
|
264
210
|
</div>
|
|
@@ -337,8 +283,8 @@
|
|
|
337
283
|
self.model.f_collection = 0
|
|
338
284
|
} else {
|
|
339
285
|
self.model.f_collection = self.config.autoCollection ? self.model.f_totalcost : 0
|
|
340
|
-
if(self.config.floor){
|
|
341
|
-
self.model.f_collection=Math.ceil(self.model.f_collection)
|
|
286
|
+
if (self.config.floor) {
|
|
287
|
+
self.model.f_collection = Math.ceil(self.model.f_collection)
|
|
342
288
|
}
|
|
343
289
|
}
|
|
344
290
|
self.calText(getAmount.data.chargeprice)
|
|
@@ -390,8 +336,8 @@
|
|
|
390
336
|
// 开始打票
|
|
391
337
|
if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
|
|
392
338
|
if (self.model.f_print.indexOf('电子发票') == -1) {
|
|
393
|
-
if(self.$login.r.includes('非民用纸质票据拆分')){
|
|
394
|
-
if(self.row.f_user_type === '非民用'){
|
|
339
|
+
if (self.$login.r.includes('非民用纸质票据拆分')) {
|
|
340
|
+
if (self.row.f_user_type === '非民用') {
|
|
395
341
|
self.billData.url = 'rs/report/fmy_card_bill'
|
|
396
342
|
}
|
|
397
343
|
}
|
|
@@ -409,7 +355,7 @@
|
|
|
409
355
|
if (self.model.f_print[0] === '电子发票') {
|
|
410
356
|
self.row.id = res
|
|
411
357
|
self.eticket_show = true
|
|
412
|
-
|
|
358
|
+
// 应铜川需要卡表显示
|
|
413
359
|
await self.$refs.eticketbill.openETicket([res], self.row, '是', self.invoice_is_pax, '卡表收费')
|
|
414
360
|
// await self.$CommonService.openEticket(res, '售气收费')
|
|
415
361
|
// self.print = true
|
|
@@ -474,16 +420,16 @@
|
|
|
474
420
|
}
|
|
475
421
|
}
|
|
476
422
|
let nowrite_param = {
|
|
477
|
-
f_userfiles_id: self.row.f_userfiles_id
|
|
423
|
+
f_userfiles_id: self.row.f_userfiles_id
|
|
478
424
|
}
|
|
479
425
|
let getNoWriteCard = await self.$resetpost('rs/sql/getnowritecard', {data: nowrite_param}, {
|
|
480
426
|
resolveMsg: null,
|
|
481
427
|
rejectMsg: '获取最近卡表收费记录失败!!'
|
|
482
428
|
})
|
|
483
|
-
if(getNoWriteCard.data.length >0){
|
|
429
|
+
if (getNoWriteCard.data.length > 0) {
|
|
484
430
|
self.$showMessage(`三小时内存在写卡失败的记录,是否重新写卡?`, ['confirm', 'cancel']).then(async (res) => {
|
|
485
431
|
if (res === 'confirm') {
|
|
486
|
-
let url = 'http://127.0.0.1:8003/'+ getNoWriteCard.data[0].f_cardpost
|
|
432
|
+
let url = 'http://127.0.0.1:8003/' + getNoWriteCard.data[0].f_cardpost
|
|
487
433
|
let param = JSON.parse(getNoWriteCard.data[0].f_cardparam)
|
|
488
434
|
let cardRes = await self.$resetpost(url, param, {resolveMsg: null, rejectMsg: '重新写卡失败'})
|
|
489
435
|
if (cardRes.data.Err || cardRes.data.Exception) {
|
|
@@ -493,12 +439,11 @@
|
|
|
493
439
|
self.$resetpost('rs/logic/writeCardAgin', getNoWriteCard.data[0], {resolveMsg: '重新写卡成功', rejectMsg: '重新写卡失败'})
|
|
494
440
|
self.$dispatch('success')
|
|
495
441
|
}
|
|
496
|
-
}else{
|
|
442
|
+
} else {
|
|
497
443
|
self.$dispatch('refresh', self.row)
|
|
498
444
|
}
|
|
499
445
|
})
|
|
500
446
|
}
|
|
501
|
-
|
|
502
447
|
}
|
|
503
448
|
export default {
|
|
504
449
|
title: '卡表收费',
|
|
@@ -511,7 +456,7 @@
|
|
|
511
456
|
notShowFormula: false, // 不显示计算公式,默认显示
|
|
512
457
|
autoCollection: true, // 自动填写收款
|
|
513
458
|
showupload: true, // 显示上传
|
|
514
|
-
hasPrint:
|
|
459
|
+
hasPrint: true, // 默认打票
|
|
515
460
|
hasBillManage: false, // 默认不启用发票管理
|
|
516
461
|
billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
|
|
517
462
|
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
@@ -667,7 +612,7 @@
|
|
|
667
612
|
if (!this.row.f_address_phone) {
|
|
668
613
|
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
669
614
|
}
|
|
670
|
-
if(!this.row.f_email){
|
|
615
|
+
if (!this.row.f_email) {
|
|
671
616
|
this.row.f_email = this.row.f_email
|
|
672
617
|
}
|
|
673
618
|
this.eticket_msg = true
|
|
@@ -772,10 +717,10 @@
|
|
|
772
717
|
str = str.slice(0, str.length - 1)
|
|
773
718
|
this.calculatedetail = str
|
|
774
719
|
if (num > 1) {
|
|
775
|
-
if(this.$login.r.find(item=>item=='阶梯提示无按钮')){
|
|
720
|
+
if (this.$login.r.find(item => item == '阶梯提示无按钮')) {
|
|
776
721
|
this.$showAlert('友好提示:本次购气已跨阶梯', 'warning', 3000)
|
|
777
|
-
}else{
|
|
778
|
-
this.$showMessage('友好提示:本次购气已跨阶梯',['confirm','cancel'])
|
|
722
|
+
} else {
|
|
723
|
+
this.$showMessage('友好提示:本次购气已跨阶梯', ['confirm', 'cancel'])
|
|
779
724
|
}
|
|
780
725
|
}
|
|
781
726
|
},
|
|
@@ -190,56 +190,7 @@
|
|
|
190
190
|
</div>
|
|
191
191
|
<payment-code v-ref:paymentcode :payment="model.f_payment" :row="row" :money="model.f_after_discount"></payment-code>
|
|
192
192
|
</div>
|
|
193
|
-
<modal :show
|
|
194
|
-
<header slot="modal-header" class="modal-header">
|
|
195
|
-
<button type="button" class="close" @click="eticket_msg = false"><span>×</span></button>
|
|
196
|
-
<h4 class="modal-title">发票信息</h4>
|
|
197
|
-
</header>
|
|
198
|
-
<article slot="modal-body" class="modal-body">
|
|
199
|
-
<div class="auto select-overspread form-horizontal">
|
|
200
|
-
<div class="row auto">
|
|
201
|
-
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
|
|
202
|
-
<label class="control-label">开票名称:</label>
|
|
203
|
-
<input class="form-control col-sm-2"
|
|
204
|
-
v-model="row.f_paper_name" placeholder="开票名称">
|
|
205
|
-
</div>
|
|
206
|
-
<div class="col-sm-6 form-group form-input-group">
|
|
207
|
-
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
208
|
-
<v-select v-model="invoice_is_pax"
|
|
209
|
-
placeholder='请选择'
|
|
210
|
-
:value.sync="invoice_is_pax"
|
|
211
|
-
close-on-select
|
|
212
|
-
:width="60"
|
|
213
|
-
:value-single="true"
|
|
214
|
-
:search="false"
|
|
215
|
-
:options='is_pax' clear-button>
|
|
216
|
-
</v-select>
|
|
217
|
-
</div>
|
|
218
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
219
|
-
<label class="control-label">开户行及账号:</label>
|
|
220
|
-
<input class="form-control col-sm-2"
|
|
221
|
-
v-model="row.f_paper_account" placeholder="购方开户行及账号">
|
|
222
|
-
</div>
|
|
223
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_taxpayer_id ? 'has-error' : '']">
|
|
224
|
-
<label class="control-label">纳税人识别号:</label>
|
|
225
|
-
<input class="form-control col-sm-2"
|
|
226
|
-
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
227
|
-
</div>
|
|
228
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
|
|
229
|
-
<label class="control-label">开票地址电话:</label>
|
|
230
|
-
<input class="form-control col-sm-2"
|
|
231
|
-
v-model="row.f_address_phone" placeholder="开票地址">
|
|
232
|
-
</div>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
</article>
|
|
236
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
237
|
-
<button type="button" class="btn button_search"
|
|
238
|
-
:disabled="!(row.f_taxpayer_id&&row.f_paper_name&&row.f_address_phone)"
|
|
239
|
-
@click='confirm'>确认收费
|
|
240
|
-
</button>
|
|
241
|
-
</footer>
|
|
242
|
-
</modal>
|
|
193
|
+
<eticket-modal :show="eticket_msg" @close-modal-show="eticket_msg = false" :row="row" @confirm="confirm"></eticket-modal>
|
|
243
194
|
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
244
195
|
<upload :blodid="row.f_userinfo_id" v-if="config.showupload" isremark="true" fusetype="物联网表收费"></upload>
|
|
245
196
|
<!-- <modal :show.sync="showfiles" width="80%"style="width:auto;" v-ref:modal middle backdrop="false">-->
|
|
@@ -300,8 +251,8 @@
|
|
|
300
251
|
self.model.chargeprice = getGas.data.chargeprice
|
|
301
252
|
Object.assign(self.model, self.model, getGas.data)
|
|
302
253
|
self.model.f_totalcost = ((self.model.f_totalcost - 0) - (self.dymoney - 0)).toFixed(2)
|
|
303
|
-
if(self.config.floor){
|
|
304
|
-
self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
254
|
+
if (self.config.floor) {
|
|
255
|
+
self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
305
256
|
}
|
|
306
257
|
// self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
307
258
|
self.model.f_collection = self.model.f_totalcost
|
|
@@ -326,8 +277,8 @@
|
|
|
326
277
|
self.model.f_totalcost = (self.row.f_balance - 0) > (getAmount.data.chargenum - 0) ? 0 : ((getAmount.data.chargenum - 0) - (self.row.f_balance - 0)).toFixed(4)
|
|
327
278
|
Object.assign(self.model, self.model, getAmount.data)
|
|
328
279
|
self.model.chargeprice = getAmount.data.chargeprice
|
|
329
|
-
if(self.config.floor){
|
|
330
|
-
self.model.f_totalcost=Math.ceil(self.model.f_totalcost)
|
|
280
|
+
if (self.config.floor) {
|
|
281
|
+
self.model.f_totalcost = Math.ceil(self.model.f_totalcost)
|
|
331
282
|
}
|
|
332
283
|
self.model.f_collection = self.model.f_totalcost
|
|
333
284
|
if (self.model.f_payment == '赠气') {
|
|
@@ -379,8 +330,8 @@
|
|
|
379
330
|
if (self.config.hasPrint) {
|
|
380
331
|
if (self.model.f_print.indexOf('电子发票') == -1) {
|
|
381
332
|
console.log('self.config.hasBillManage', self.config.hasBillManage)
|
|
382
|
-
if(self.$login.r.includes('非民用纸质票据拆分')){
|
|
383
|
-
if(self.row.f_user_type === '非民用'){
|
|
333
|
+
if (self.$login.r.includes('非民用纸质票据拆分')) {
|
|
334
|
+
if (self.row.f_user_type === '非民用') {
|
|
384
335
|
self.billData.url = 'rs/report/fmy_iot_bill'
|
|
385
336
|
}
|
|
386
337
|
}
|
|
@@ -468,7 +419,7 @@
|
|
|
468
419
|
priceCalculation: false, // 划气量控制
|
|
469
420
|
showupload: true, // 默认显示附件上传组件
|
|
470
421
|
hasPrint: false, // 默认打票
|
|
471
|
-
floor: true,
|
|
422
|
+
floor: true, // 是否取整收费
|
|
472
423
|
hasBillManage: false, // 默认不启用发票管理
|
|
473
424
|
billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
|
|
474
425
|
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
@@ -526,8 +477,8 @@
|
|
|
526
477
|
}
|
|
527
478
|
},
|
|
528
479
|
props: ['row'],
|
|
529
|
-
mounted() {
|
|
530
|
-
|
|
480
|
+
mounted () {
|
|
481
|
+
this.$refs.email.focus()
|
|
531
482
|
},
|
|
532
483
|
ready () {
|
|
533
484
|
this.paytype = this.$appdata.getParam('付款方式')
|
|
@@ -149,62 +149,7 @@
|
|
|
149
149
|
<print-bill :show="print" :data='row' :bill-config='config' :bill-data='billData' v-on:toggle="close"
|
|
150
150
|
@printok="printok" v-ref:printbill></print-bill>
|
|
151
151
|
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
152
|
-
<modal :show
|
|
153
|
-
<header slot="modal-header" class="modal-header">
|
|
154
|
-
<button type="button" class="close" @click="eticket_msg = false"><span>×</span></button>
|
|
155
|
-
<h4 class="modal-title">发票信息</h4>
|
|
156
|
-
</header>
|
|
157
|
-
<article slot="modal-body" class="modal-body">
|
|
158
|
-
<div class="auto select-overspread form-horizontal">
|
|
159
|
-
<div class="row auto">
|
|
160
|
-
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
|
|
161
|
-
<label class="control-label">开票名称:</label>
|
|
162
|
-
<input class="form-control col-sm-2"
|
|
163
|
-
v-model="row.f_paper_name" placeholder="开票名称">
|
|
164
|
-
</div>
|
|
165
|
-
<div class="col-sm-6 form-group form-input-group">
|
|
166
|
-
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
167
|
-
<v-select v-model="invoice_is_pax"
|
|
168
|
-
placeholder='请选择'
|
|
169
|
-
:value.sync="invoice_is_pax"
|
|
170
|
-
close-on-select
|
|
171
|
-
:width="60"
|
|
172
|
-
:value-single="true"
|
|
173
|
-
:search="false"
|
|
174
|
-
disabled
|
|
175
|
-
:options='is_pax' clear-button>
|
|
176
|
-
</v-select>
|
|
177
|
-
</div>
|
|
178
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
179
|
-
<label class="control-label">开户行及账号:</label>
|
|
180
|
-
<input class="form-control col-sm-2"
|
|
181
|
-
v-model="row.f_paper_account" placeholder="购方开户行及账号">
|
|
182
|
-
</div>
|
|
183
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
184
|
-
<label class="control-label">纳税人识别号:</label>
|
|
185
|
-
<input class="form-control col-sm-2"
|
|
186
|
-
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
187
|
-
</div>
|
|
188
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
|
|
189
|
-
<label class="control-label">开票地址电话:</label>
|
|
190
|
-
<input class="form-control col-sm-2"
|
|
191
|
-
v-model="row.f_address_phone" placeholder="开票地址">
|
|
192
|
-
</div>
|
|
193
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
194
|
-
<label class="control-label">邮箱推送:</label>
|
|
195
|
-
<input class="form-control col-sm-2"
|
|
196
|
-
v-model="row.f_email" placeholder="邮箱推送">
|
|
197
|
-
</div>
|
|
198
|
-
</div>
|
|
199
|
-
</div>
|
|
200
|
-
</article>
|
|
201
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
202
|
-
<button type="button" class="btn button_search"
|
|
203
|
-
:disabled="!(row.f_paper_name&&row.f_address_phone)"
|
|
204
|
-
@click='confirm'>确认收费
|
|
205
|
-
</button>
|
|
206
|
-
</footer>
|
|
207
|
-
</modal>
|
|
152
|
+
<eticket-modal :show="eticket_msg" @close-modal-show="eticket_msg = false" :row="row" @confirm="confirm"></eticket-modal>
|
|
208
153
|
<!-- <print-other-charge-bill :show="print" v-ref:printbill :row='row' :logic='model' v-on:success="close" v-on:toggle="close"></print-other-charge-bill> -->
|
|
209
154
|
<!-- <tax-other-bill :show="taxprint" v-ref:taxprintbill :row='row' :logic='model' v-on:success="close" v-on:toggle="close"></tax-other-bill> -->
|
|
210
155
|
<div style="text-align:right;height: 25%;">
|
|
@@ -135,61 +135,7 @@
|
|
|
135
135
|
<validate-bill v-if="hasValidateBill" :data="data" @validate-bill="validateBill"></validate-bill>
|
|
136
136
|
<print-bill :show="print" :bill-config='config' :bill-data='billData' v-on:toggle="close" :data='data' @printok="printok" v-ref:printbill></print-bill>
|
|
137
137
|
<ticket-print :show="eticket_show" @toggle="eticket_toggle" v-ref:eticketbill></ticket-print>
|
|
138
|
-
<modal :show
|
|
139
|
-
<header slot="modal-header" class="modal-header">
|
|
140
|
-
<button type="button" class="close" @click="eticket_msg = false"><span>×</span></button>
|
|
141
|
-
<h4 class="modal-title">发票信息</h4>
|
|
142
|
-
</header>
|
|
143
|
-
<article slot="modal-body" class="modal-body">
|
|
144
|
-
<div class="auto select-overspread form-horizontal">
|
|
145
|
-
<div class="row auto">
|
|
146
|
-
<div class="col-sm-6 form-group form-input-group" :class="[!row.f_paper_name ? 'has-error' : '']">
|
|
147
|
-
<label class="control-label">开票名称:</label>
|
|
148
|
-
<input class="form-control col-sm-2"
|
|
149
|
-
v-model="row.f_paper_name" placeholder="开票名称">
|
|
150
|
-
</div>
|
|
151
|
-
<div class="col-sm-6 form-group form-input-group">
|
|
152
|
-
<nobr class="col-sm-4"><label class="control-label">是否征税:</label></nobr>
|
|
153
|
-
<v-select v-model="invoice_is_pax"
|
|
154
|
-
placeholder='请选择'
|
|
155
|
-
:value.sync="invoice_is_pax"
|
|
156
|
-
close-on-select
|
|
157
|
-
:width="60"
|
|
158
|
-
:value-single="true"
|
|
159
|
-
:search="false"
|
|
160
|
-
:options='is_pax' clear-button>
|
|
161
|
-
</v-select>
|
|
162
|
-
</div>
|
|
163
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
164
|
-
<label class="control-label">开户行及账号:</label>
|
|
165
|
-
<input class="form-control col-sm-2"
|
|
166
|
-
v-model="row.f_paper_account" placeholder="购方开户行及账号">
|
|
167
|
-
</div>
|
|
168
|
-
<div class="col-sm-12 form-group form-input-group" >
|
|
169
|
-
<label class="control-label">纳税人识别号:</label>
|
|
170
|
-
<input class="form-control col-sm-2"
|
|
171
|
-
v-model="row.f_taxpayer_id" placeholder="纳税人识别号">
|
|
172
|
-
</div>
|
|
173
|
-
<div class="col-sm-12 form-group form-input-group" :class="[!row.f_address_phone ? 'has-error' : '']">
|
|
174
|
-
<label class="control-label">开票地址电话:</label>
|
|
175
|
-
<input class="form-control col-sm-2"
|
|
176
|
-
v-model="row.f_address_phone" placeholder="开票地址">
|
|
177
|
-
</div>
|
|
178
|
-
<div class="col-sm-12 form-group form-input-group">
|
|
179
|
-
<label class="control-label">邮箱推送:</label>
|
|
180
|
-
<input class="form-control col-sm-2"
|
|
181
|
-
v-model="row.f_email" placeholder="邮箱推送">
|
|
182
|
-
</div>
|
|
183
|
-
</div>
|
|
184
|
-
</div>
|
|
185
|
-
</article>
|
|
186
|
-
<footer slot="modal-footer" class="modal-footer">
|
|
187
|
-
<button type="button" class="btn button_search"
|
|
188
|
-
:disabled="!(row.f_paper_name&&row.f_address_phone)"
|
|
189
|
-
@click='confirm'>确认收费
|
|
190
|
-
</button>
|
|
191
|
-
</footer>
|
|
192
|
-
</modal>
|
|
138
|
+
<eticket-modal :show="eticket_msg" @close-modal-show="eticket_msg = false" :row="row" @confirm="confirm"></eticket-modal>
|
|
193
139
|
<div class="text-right" style="margin-top: 1%">
|
|
194
140
|
<strong style="color:red;margin-right: 5px">{{ $refs.givechange.promptText }}</strong>
|
|
195
141
|
<payment-code-button :clickable="!$v.valid || validateOk"
|
|
@@ -278,8 +224,8 @@ let asyncMachineMeterCenter = async function (self) {
|
|
|
278
224
|
// 开始打票
|
|
279
225
|
if (self.config.hasPrint) {
|
|
280
226
|
if (self.data.f_print.indexOf('电子发票') == -1) {
|
|
281
|
-
if(self.$login.r.includes('非民用纸质票据拆分')){
|
|
282
|
-
if(self.row.f_user_type === '非民用'){
|
|
227
|
+
if (self.$login.r.includes('非民用纸质票据拆分')) {
|
|
228
|
+
if (self.row.f_user_type === '非民用') {
|
|
283
229
|
self.billData.url = 'rs/report/fmy_machine_bill'
|
|
284
230
|
}
|
|
285
231
|
}
|
|
@@ -352,7 +298,7 @@ let asyncMachineMeterCenter = async function (self) {
|
|
|
352
298
|
showupload: true, // 显示上传
|
|
353
299
|
hasPrint: true, // 默认打票
|
|
354
300
|
hasBillManage: false, // 默认不启用发票管理
|
|
355
|
-
hasfindaReail:
|
|
301
|
+
hasfindaReail: true, // 默认开启找零功能
|
|
356
302
|
billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
|
|
357
303
|
printType: '普通收据', // 收据/电子票/专用发票/国税发票
|
|
358
304
|
payment: '现金缴费'
|
|
@@ -439,7 +385,7 @@ let asyncMachineMeterCenter = async function (self) {
|
|
|
439
385
|
if (!this.row.f_address_phone) {
|
|
440
386
|
this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
|
|
441
387
|
}
|
|
442
|
-
if(!this.row.f_email){
|
|
388
|
+
if (!this.row.f_email) {
|
|
443
389
|
this.row.f_email = this.row.f_email
|
|
444
390
|
}
|
|
445
391
|
this.eticket_msg = true
|
|
@@ -706,6 +652,8 @@ let asyncMachineMeterCenter = async function (self) {
|
|
|
706
652
|
await this.speckText('请注意,当前收款小于欠费')
|
|
707
653
|
}
|
|
708
654
|
}
|
|
655
|
+
// 没获取优惠之前默认和收款一样,防止获取优惠太慢导致收款金额与实际收款不符
|
|
656
|
+
this.data.f_after_discount = this.data.f_collection
|
|
709
657
|
// 获取计算优惠
|
|
710
658
|
this.getPrivilegeList()
|
|
711
659
|
}
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
</div>
|
|
144
144
|
<div class="auto" style="float: right;">
|
|
145
145
|
<button class="button_clear " @click="cancelmain()" >返回</button>
|
|
146
|
-
<button v-if="row.f_meter_brand.includes('西美')"
|
|
146
|
+
<button v-if="row.f_meter_brand.includes('西美')&&row.f_meter_type.includes('物联网表')"
|
|
147
147
|
class="button_search" type="button" @click="clearBarrier">清除障碍</button>
|
|
148
148
|
<button v-if="row.f_meter_type.includes('物联网表')"
|
|
149
149
|
class="button_search" type="button" @click="openUser">开户</button>
|
|
@@ -34,7 +34,7 @@ export default {
|
|
|
34
34
|
},
|
|
35
35
|
methods: {
|
|
36
36
|
cancel () {
|
|
37
|
-
console.log(
|
|
37
|
+
console.log('电子哈哈哈,你走了没')
|
|
38
38
|
this.eticket_src = ''
|
|
39
39
|
this.return_msg = '正在查询中,请稍后'
|
|
40
40
|
this.$dispatch('toggle')
|
|
@@ -69,12 +69,12 @@ export default {
|
|
|
69
69
|
f_buy_name: row.f_paper_name,
|
|
70
70
|
f_pay_id: row.f_taxpayer_id,
|
|
71
71
|
f_buy_address: row.f_address_phone,
|
|
72
|
-
f_mail_push:row.f_email,
|
|
72
|
+
f_mail_push: row.f_email,
|
|
73
73
|
f_buy_openbank: row.f_paper_account,
|
|
74
74
|
invoice_show_gas: show_gas === '是',
|
|
75
75
|
is_pax: is_pax === '征税'
|
|
76
76
|
}
|
|
77
|
-
console.log('组织开票数据并保存',model)
|
|
77
|
+
console.log('组织开票数据并保存', model)
|
|
78
78
|
// TODO 组织开票数据并保存
|
|
79
79
|
let ticket_id = await this.$resetpost('rs/logic/TCcombineData', model, {resolveMsg: null, rejectMsg: '保存开票信息失败'})
|
|
80
80
|
return this.openEticketGen(ticket_id.data)
|
|
@@ -82,6 +82,32 @@ export default {
|
|
|
82
82
|
this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
+
async openCustETicket (custModel, invoice_is_pax) {
|
|
86
|
+
try {
|
|
87
|
+
let model = Object.assign({
|
|
88
|
+
f_dept_id: this.$login.f.depids,
|
|
89
|
+
f_operator: this.$login.f.name,
|
|
90
|
+
f_orgid: this.$login.f.orgid,
|
|
91
|
+
f_orgname: this.$login.f.orgs,
|
|
92
|
+
f_depname: this.$login.f.deps,
|
|
93
|
+
f_operatorid: this.$login.f.id,
|
|
94
|
+
f_filialeids: this.$login.f.f_orgids,
|
|
95
|
+
f_buy_name: custModel.f_paper_name,
|
|
96
|
+
f_pay_id: custModel.f_taxpayer_id,
|
|
97
|
+
f_buy_address: custModel.f_address_phone,
|
|
98
|
+
f_mail_push: custModel.f_email,
|
|
99
|
+
f_buy_openbank: custModel.f_paper_account,
|
|
100
|
+
invoice_show_gas: !!(custModel.amount && custModel.price),
|
|
101
|
+
detail_price: {amount: custModel.amount, price: custModel.price, name: custModel.name, money: custModel.money},
|
|
102
|
+
is_pax: invoice_is_pax === '征税'
|
|
103
|
+
}, custModel)
|
|
104
|
+
// TODO 组织开票数据并保存
|
|
105
|
+
let ticket_id = await this.$resetpost('rs/logic/TCcombineCustData', model, {resolveMsg: null, rejectMsg: '保存开票信息失败'})
|
|
106
|
+
return this.openEticketGen(ticket_id.data)
|
|
107
|
+
} catch (error) {
|
|
108
|
+
this.$showAlert(`电子发票开票失败!!请到发票管理重新开票。错误原因: ${JSON.stringify(error)}。`, 'danger', 0)
|
|
109
|
+
}
|
|
110
|
+
},
|
|
85
111
|
/**
|
|
86
112
|
* src赋值 外部调用
|
|
87
113
|
* */
|
|
@@ -205,10 +205,10 @@ import Vue from 'vue'
|
|
|
205
205
|
let loadParamGem = async function (self) {
|
|
206
206
|
await self.$LoadParams.loadParam()
|
|
207
207
|
self.getfield = self.config.excelHeaders
|
|
208
|
-
self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
|
|
208
|
+
// self.$refs.paged.$refs.cri.model.f_meter_classify = ['机表']
|
|
209
209
|
self.$refs.paged.$refs.cri.model.f_book_name = ['is null']
|
|
210
210
|
await self.initAdjustables()
|
|
211
|
-
await self.search()
|
|
211
|
+
// await self.search()
|
|
212
212
|
}
|
|
213
213
|
export default {
|
|
214
214
|
name: 'MbpeopleList',
|
|
@@ -53,6 +53,14 @@
|
|
|
53
53
|
<label class = "col-sm-5 ">物联网次数</label>
|
|
54
54
|
<span class = "col-sm-7" >{{data?data.f_iot_times:dafault.f_iot_times}}</span>
|
|
55
55
|
</div>
|
|
56
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
57
|
+
<label class = "col-sm-5 ">表累购金额</label>
|
|
58
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee:dafault.f_total_fee}}</span>
|
|
59
|
+
</div>
|
|
60
|
+
<div class="row" v-if="data.f_meter_type.includes('物联网')">
|
|
61
|
+
<label class = "col-sm-5 ">户累购金额</label>
|
|
62
|
+
<span class = "col-sm-7" >{{data?data.f_total_fee_all:dafault.f_total_fee_all}}</span>
|
|
63
|
+
</div>
|
|
56
64
|
<div class="row" v-if="(data.f_meter_type === '机表' || data.f_meter_type === '物联网表') && data.f_deduction_gas > 0">
|
|
57
65
|
<label class = "col-sm-5 " >剩余抵扣量</label>
|
|
58
66
|
<span class = "col-sm-7" >{{data?data.f_deduction_gas:dafault.f_deduction_gas}}</span>
|
|
@@ -161,6 +169,7 @@
|
|
|
161
169
|
return {
|
|
162
170
|
dafault: {
|
|
163
171
|
f_total_gas_all: 0,
|
|
172
|
+
f_total_fee_all:0,
|
|
164
173
|
f_balance_amount: 0,
|
|
165
174
|
f_balance_gas: 0,
|
|
166
175
|
f_initial_base: 0,
|