sale-client 3.7.45 → 3.7.47

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.7.45",
3
+ "version": "3.7.47",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -228,8 +228,8 @@
228
228
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
229
229
  }
230
230
  self.model.f_meter_type = self.row.f_meter_type
231
- // 判断限购
232
- if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
231
+ // 限购检查只检查购气量(不含补气量),限购值限制的是额外购买的气量
232
+ if ((self.model.f_pregasBuy - 0) - (self.maxgas - 0) <= 0) {
233
233
  if ((self.model.f_fill_gas - 0) < (self.model.f_pregas - 0)) {
234
234
  // 超出【补气气量不符】部分走划价
235
235
  let gas = self.model.f_pregas - self.model.f_fill_gas
@@ -250,6 +250,13 @@
250
250
  self.model.f_collection = 0
251
251
  }
252
252
  self.remstrgas()
253
+ } else {
254
+ self.$showAlert(`购气量不能超过限购值${self.maxgas}方`, 'warning', 3000)
255
+ self.model.f_preamount = 0
256
+ self.model.f_totalcost = 0
257
+ self.model.f_collection = 0
258
+ self.model.f_pregasBuy = 0
259
+ self.model.f_pregas = self.model.f_fill_gas
253
260
  }
254
261
  }
255
262
 
@@ -329,590 +329,555 @@
329
329
  f_blobid: writeid
330
330
  }
331
331
 
332
- await self.$resetpost('rs/logic/updatefiles', data)
333
- // 开始打票
334
- if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
335
- if (!['电子发票', '数电普票', '数电专票'].includes(self.model.f_print[0])) {
336
- if (self.config.hasBillManage) {
337
- // 启用发票管理,获取票据管理中的票号并存储记录
338
- self.row.id = res
339
- self.row.f_bill_type = '卡表收费'
340
- self.row.f_bill_style = self.model.f_print[0]
341
- self.print = true
342
- } else {
343
- self.row.id = res
344
- self.print = true
345
- }
346
- } else {
347
- if (['数电普票', '数电专票'].includes(self.model.f_print[0])) {
348
- self.row.f_paper_type = self.model.f_print[0]
349
- // self.eticket_show = true
350
- self.$refs.asynceticket.openETicketNoModal(res, self.row, '卡表收费').then(
351
- (_res) => {
352
- if (self.config.hasBillManage) {
353
- // 启用发票管理,获取票据管理中的票号并存储记录
354
- self.row.id = res
355
- self.row.f_bill_type = '卡表收费'
356
- self.row.f_bill_style = self.model.f_print[0]
357
- self.print = true
358
- } else {
359
- self.row.id = res
360
- self.print = true
361
- }
362
- }
363
- ).catch((error) => {
364
- console.log('捕获到异常', error)
365
- if (error instanceof Object) {
366
- self.$showAlert(error.data, 'danger', 0)
367
- } else {
368
- self.$showAlert('收费成功,电子票开具失败,' + error + ',请在自定义开票页面补开发票。', 'danger', 0)
369
- }
370
- if (self.config.hasBillManage) {
371
- // 启用发票管理,获取票据管理中的票号并存储记录
372
- self.row.id = res
373
- self.row.f_bill_type = '卡表收费'
374
- self.row.f_bill_style = self.model.f_print[0]
375
- self.print = true
376
- } else {
377
- self.row.id = res
378
- self.print = true
379
- }
380
- })
381
- }
382
- }
332
+ await self.$resetpost('rs/logic/updatefiles', data)
333
+ // 开始打票
334
+ if (self.config.hasPrint && !self.$login.r.includes('不打印发票')) {
335
+ if (self.config.hasBillManage) {
336
+ // 启用发票管理,获取票据管理中的票号并存储记录
337
+ self.row.id = res
338
+ self.row.f_bill_type = '卡表收费'
339
+ self.row.f_bill_style = self.model.f_print[0]
340
+ self.print = true
383
341
  } else {
384
- self.$dispatch('success')
342
+ self.row.id = res
343
+ self.print = true
385
344
  }
386
- self.clickConfirm = false
387
- } catch (error) {
388
- console.log('捕获到异常', error)
389
- if (error instanceof Object) {
390
- self.$showAlert(error.data, 'danger', 0)
391
- } else {
392
- self.$showAlert(error, 'danger', 0)
393
- }
394
- self.$dispatch('refresh')
395
- self.clickConfirm = false
345
+ } else {
346
+ self.$dispatch('success')
396
347
  }
397
- }
398
-
399
- let asyncCardMeterCenter = async function (self) {
400
- await self.$getConfig(self, 'CardMeterCenter')
401
- console.log('卡表收费config', self.config)
402
- console.log('row', self.row)
403
- // 默认打印格式
404
- if (self.row.f_paper_type) {
405
- self.model.f_print = self.row.f_paper_type instanceof Array ? self.row.f_paper_type : [self.row.f_paper_type ]
348
+ self.clickConfirm = false
349
+ } catch (error) {
350
+ console.log('捕获到异常', error)
351
+ if (error instanceof Object) {
352
+ self.$showAlert(error.data, 'danger', 0)
406
353
  } else {
407
- self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
354
+ self.$showAlert(error, 'danger', 0)
408
355
  }
409
- // self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
410
- self.model.f_payment = [self.config.payment]
411
- self.mulPrint = self.config.printType instanceof Array
356
+ self.$dispatch('refresh')
357
+ self.clickConfirm = false
358
+ }
359
+ }
412
360
 
413
- // 获取当前票号用
414
- self.model.f_use_type = self.config.billType
415
- self.model.f_bill_type = self.model.f_print
416
- self.hasValidateBill = self.config.hasBillManage
361
+ let asyncCardMeterCenter = async function (self) {
362
+ await self.$getConfig(self, 'CardMeterCenter')
363
+ console.log('卡表收费config', self.config)
364
+ console.log('row', self.row)
365
+ // 默认打印格式
366
+ if (self.row.f_paper_type) {
367
+ self.model.f_print = self.row.f_paper_type instanceof Array ? self.row.f_paper_type : [self.row.f_paper_type]
368
+ } else {
369
+ self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
370
+ }
371
+ // self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
372
+ self.model.f_payment = [self.config.payment]
373
+ self.mulPrint = self.config.printType instanceof Array
417
374
 
418
- // 判断限购
419
- let limit_param = {
420
- f_userinfo_id: self.row.f_userinfo_id,
421
- f_user_id: self.row.f_user_id,
422
- f_stairprice_id: self.row.f_stairprice_id
423
- }
424
- let getLimit = await self.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {
425
- resolveMsg: null,
426
- rejectMsg: '获取限购值失败!!'
427
- })
428
- console.log('获取限购值', getLimit)
429
- self.hasLimit = getLimit.data.hasLimit
430
- if (self.hasLimit) {
431
- if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
432
- if (getLimit.data.f_limit_value < 0 && getLimit.data.f_limit_amount < 0) {
433
- self.$showAlert(`${getLimit.data.msg}`, 'warning', 3000)
434
- self.$dispatch('refresh')
435
- } else {
436
- if (getLimit.data.f_limit_value) {
437
- self.maxgas = (getLimit.data.f_limit_value - 0)
438
- self.limitgas = true
439
- }
440
- if (getLimit.data.f_limit_amount) {
441
- self.maxmoney = (getLimit.data.f_limit_amount - 0)
442
- self.limitmoney = true
443
- }
375
+ // 获取当前票号用
376
+ self.model.f_use_type = self.config.billType
377
+ self.model.f_bill_type = self.model.f_print
378
+ self.hasValidateBill = self.config.hasBillManage
379
+
380
+ // 判断限购
381
+ let limit_param = {
382
+ f_userinfo_id: self.row.f_userinfo_id,
383
+ f_user_id: self.row.f_user_id,
384
+ f_stairprice_id: self.row.f_stairprice_id
385
+ }
386
+ let getLimit = await self.$resetpost('rs/logic/sale_getLimitGas', {data: limit_param}, {
387
+ resolveMsg: null,
388
+ rejectMsg: '获取限购值失败!!'
389
+ })
390
+ console.log('获取限购值', getLimit)
391
+ self.hasLimit = getLimit.data.hasLimit
392
+ if (self.hasLimit) {
393
+ if (getLimit.data.f_limit_value || getLimit.data.f_limit_amount) {
394
+ if (getLimit.data.f_limit_value < 0 && getLimit.data.f_limit_amount < 0) {
395
+ self.$showAlert(`${getLimit.data.msg}`, 'warning', 3000)
396
+ self.$dispatch('refresh')
397
+ } else {
398
+ if (getLimit.data.f_limit_value) {
399
+ self.maxgas = (getLimit.data.f_limit_value - 0)
400
+ self.limitgas = true
401
+ }
402
+ if (getLimit.data.f_limit_amount) {
403
+ self.maxmoney = (getLimit.data.f_limit_amount - 0)
404
+ self.limitmoney = true
444
405
  }
445
406
  }
446
407
  }
447
- let nowrite_param = {
448
- f_userfiles_id: self.row.f_userfiles_id
449
- }
450
- let getNoWriteCard = await self.$resetpost('rs/sql/getnowritecard', {data: nowrite_param}, {
451
- resolveMsg: null,
452
- rejectMsg: '获取限购值失败!!'
453
- })
454
- if (getNoWriteCard.data.length > 0) {
455
- self.$showMessage(`三小时内存在写卡失败的记录,是否重新写卡?`, ['confirm', 'cancel']).then(async (res) => {
456
- if (res === 'confirm') {
457
- let url = 'http://127.0.0.1:8003/' + getNoWriteCard.data[0].f_cardpost
458
- let param = JSON.parse(getNoWriteCard.data[0].f_cardparam)
459
- let cardRes = await self.$resetpost(url, param, {resolveMsg: null, rejectMsg: '重新写卡失败'})
460
- if (cardRes.data.Err || cardRes.data.Exception) {
461
- self.$showAlert(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`, 'danger', 3000)
462
- self.$dispatch('refresh', self.row)
463
- } else {
464
- self.$resetpost('rs/logic/writeCardAgin', getNoWriteCard.data[0], {resolveMsg: '重新写卡成功', rejectMsg: '重新写卡失败'})
465
- self.$dispatch('success')
466
- }
467
- } else {
408
+ }
409
+ let nowrite_param = {
410
+ f_userfiles_id: self.row.f_userfiles_id
411
+ }
412
+ let getNoWriteCard = await self.$resetpost('rs/sql/getnowritecard', {data: nowrite_param}, {
413
+ resolveMsg: null,
414
+ rejectMsg: '获取限购值失败!!'
415
+ })
416
+ if (getNoWriteCard.data.length > 0) {
417
+ self.$showMessage(`三小时内存在写卡失败的记录,是否重新写卡?`, ['confirm', 'cancel']).then(async (res) => {
418
+ if (res === 'confirm') {
419
+ let url = 'http://127.0.0.1:8003/' + getNoWriteCard.data[0].f_cardpost
420
+ let param = JSON.parse(getNoWriteCard.data[0].f_cardparam)
421
+ let cardRes = await self.$resetpost(url, param, {resolveMsg: null, rejectMsg: '重新写卡失败'})
422
+ if (cardRes.data.Err || cardRes.data.Exception) {
423
+ self.$showAlert(`卡服务错误:${cardRes.data.Err}${cardRes.data.Exception},请联系开发人员处理!!`, 'danger', 3000)
468
424
  self.$dispatch('refresh', self.row)
425
+ } else {
426
+ self.$resetpost('rs/logic/writeCardAgin', getNoWriteCard.data[0], {
427
+ resolveMsg: '重新写卡成功',
428
+ rejectMsg: '重新写卡失败'
429
+ })
430
+ self.$dispatch('success')
469
431
  }
470
- })
471
- }
432
+ } else {
433
+ self.$dispatch('refresh', self.row)
434
+ }
435
+ })
472
436
  }
473
- export default {
474
- title: '卡表收费',
475
- data () {
476
- return {
477
- // 发票相关
478
- eticket_msg: false,
479
- eticket_show: false,
480
- mjshow: false,
481
- serialShow: false,
482
- resid: [], // 存放新增的f_files表中id
483
- config: {
484
- showupload: true, // 显示上传
485
- hasPrint: false, // 默认打票
486
- hasBillManage: false, // 默认不启用发票管理
487
- billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
488
- printType: '普通收据', // 收据/电子票/专用发票/国税发票
489
- payment: '现金缴费'
490
- },
491
- resetShow: false,
492
- preDisable: false,
493
- model: {
494
- f_purchase: 0,
495
- f_payment: [],
496
- f_pregas: '',
497
- f_preamount: 0,
498
- f_totalcost: 0,
499
- f_curbalance: 0,
500
- f_collection: '',
501
- f_balance: 0,
502
- f_print: [],
503
- f_meter_type: '',
504
- f_voucher_number: '',
505
- f_banktransfer_person: '',
506
- f_banktransfer_date: '',
507
- f_privilege_id: 0,
508
- f_privilege_money: 0,
509
- f_privilege_gas: 0,
510
- f_after_discount: 0,
511
- f_comments: ''
512
- },
513
- calculatedetail: '',
437
+ }
438
+ export default {
439
+ title: '卡表收费',
440
+ data() {
441
+ return {
442
+ // 发票相关
443
+ eticket_msg: false,
444
+ eticket_show: false,
445
+ mjshow: false,
446
+ serialShow: false,
447
+ resid: [], // 存放新增的f_files表中id
448
+ config: {
449
+ showupload: true, // 显示上传
450
+ hasPrint: false, // 默认打票
451
+ hasBillManage: false, // 默认不启用发票管理
452
+ billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
453
+ printType: '普通收据', // 收据/电子票/专用发票/国税发票
454
+ payment: '现金缴费'
455
+ },
456
+ resetShow: false,
457
+ preDisable: false,
458
+ model: {
459
+ f_purchase: 0,
460
+ f_payment: [],
461
+ f_pregas: '',
462
+ f_preamount: 0,
463
+ f_totalcost: 0,
464
+ f_curbalance: 0,
465
+ f_collection: '',
466
+ f_balance: 0,
467
+ f_print: [],
468
+ f_meter_type: '',
469
+ f_voucher_number: '',
470
+ f_banktransfer_person: '',
471
+ f_banktransfer_date: '',
472
+ f_privilege_id: 0,
473
+ f_privilege_money: 0,
474
+ f_privilege_gas: 0,
475
+ f_after_discount: 0,
476
+ f_comments: ''
477
+ },
478
+ calculatedetail: '',
514
479
 
515
- // 启用发票管理需要对票号进行验证
516
- hasValidateBill: false,
517
- validateOk: false,
480
+ // 启用发票管理需要对票号进行验证
481
+ hasValidateBill: false,
482
+ validateOk: false,
518
483
 
519
- print: false,
520
- billData: {
521
- url: 'rs/report/card_bill',
522
- billnumber: ''
523
- },
524
- hasLimit: false,
525
- maxgas: 99999999, // 限购
526
- maxmoney: 99999999,
527
- limitmoney: false,
528
- limitgas: false,
484
+ print: false,
485
+ billData: {
486
+ url: 'rs/report/card_bill',
487
+ billnumber: ''
488
+ },
489
+ hasLimit: false,
490
+ maxgas: 99999999, // 限购
491
+ maxmoney: 99999999,
492
+ limitmoney: false,
493
+ limitgas: false,
529
494
 
530
- paymentModel: [], // 多笔付款方式
495
+ paymentModel: [], // 多笔付款方式
531
496
 
532
- mulPrint: false,
533
- clickConfirm: false, // 控制确认按钮只能点击一次
534
- // 下拉框值
535
- paytype: [],
536
- privilegeList: [{label: '无优惠', value: '0'}],
537
- BankTransfer: false,
538
- // 小数是否支持,导致划价产生的多余气量,金额
539
- dymoney: 0
497
+ mulPrint: false,
498
+ clickConfirm: false, // 控制确认按钮只能点击一次
499
+ // 下拉框值
500
+ paytype: [],
501
+ privilegeList: [{label: '无优惠', value: '0'}],
502
+ BankTransfer: false,
503
+ // 小数是否支持,导致划价产生的多余气量,金额
504
+ dymoney: 0
505
+ }
506
+ },
507
+ props: ['row', 'cardData'],
508
+ async ready() {
509
+ if (this.authArr.includes('余额写卡限定')) {
510
+ this.paytype = [{label: '余额写卡', value: '余额写卡'}]
511
+ } else {
512
+ this.paytype = await this.$appdata.getParam('付款方式') ? await this.$appdata.getParam('付款方式') : []
513
+ if (!this.$login.r.includes('免交充值付款')) {
514
+ this.paytype = this.paytype.filter((item) => {
515
+ return item.label != '免交'
516
+ })
540
517
  }
541
- },
542
- props: ['row', 'cardData'],
543
- async ready () {
544
- if (this.authArr.includes('余额写卡限定')) {
545
- this.paytype = [{label: '余额写卡', value: '余额写卡'}]
518
+ }
519
+ // this.getPurchase()
520
+ this.model.f_price_id = this.row.f_price_id
521
+ this.model.f_user_id = this.row.f_user_id
522
+ this.model.f_userfiles_id = this.row.f_userfiles_id
523
+ this.model.f_userinfo_id = this.row.f_userinfo_id
524
+ this.model.f_balance = this.row.f_alias === 'QiaoSong' ? Math.trunc(this.row.f_balance) : this.row.f_balance
525
+ if (this.row.f_collection_type == '按金额') {
526
+ this.model.f_preamount = ''
527
+ this.model.f_pregas = 0
528
+ }
529
+ asyncCardMeterCenter(this)
530
+ },
531
+ watch: {
532
+ 'model.f_payment.length'(val) {
533
+ console.log('付款方式多选。。', val)
534
+ if (val > 1 && !this.model.f_preamount) {
535
+ this.model.f_payment = ['现金缴费']
536
+ this.$showAlert('请先计算付款金额', 'warning', 2000)
546
537
  } else {
547
- this.paytype = await this.$appdata.getParam('付款方式') ? await this.$appdata.getParam('付款方式') : []
548
- if (!this.$login.r.includes('免交充值付款')) {
549
- this.paytype = this.paytype.filter((item) => {
550
- return item.label != '免交'
551
- })
552
- }
553
- }
554
- // this.getPurchase()
555
- this.model.f_price_id = this.row.f_price_id
556
- this.model.f_user_id = this.row.f_user_id
557
- this.model.f_userfiles_id = this.row.f_userfiles_id
558
- this.model.f_userinfo_id = this.row.f_userinfo_id
559
- this.model.f_balance = this.row.f_alias === 'QiaoSong' ? Math.trunc(this.row.f_balance) : this.row.f_balance
560
- if (this.row.f_collection_type == '按金额') {
561
- this.model.f_preamount = ''
562
- this.model.f_pregas = 0
563
- }
564
- asyncCardMeterCenter(this)
565
- },
566
- watch: {
567
- 'model.f_payment.length' (val) {
568
- console.log('付款方式多选。。', val)
569
- if (val > 1 && !this.model.f_preamount) {
570
- this.model.f_payment = ['现金缴费']
571
- this.$showAlert('请先计算付款金额', 'warning', 2000)
572
- } else {
573
- this.paymentModel = []
574
-
575
- this.model.f_payment.forEach((res) => {
576
- let temp = {
577
- f_payment: res,
578
- f_money: 0
579
- }
580
- this.paymentModel.push(temp)
581
- })
582
- this.$resetValidation()
538
+ this.paymentModel = []
583
539
 
584
- // 获取计算优惠
585
- this.getPrivilegeList()
586
- }
587
- },
588
- 'model.f_payment' (val) {
589
- if (val == '免交') {
590
- this.mjshow = true
591
- } else if (val == '赠气' && (this.model.f_preamount || this.model.f_preamount != '')) {
592
- if (this.row.f_collection_type == '按气量') {
593
- this.pregas()
594
- } else {
595
- this.preamount()
540
+ this.model.f_payment.forEach((res) => {
541
+ let temp = {
542
+ f_payment: res,
543
+ f_money: 0
596
544
  }
597
- } else {
598
- this.mjshow = false
599
- }
600
- // if(this.row.f_collection_type == '按气量'){
601
- // this.pregas();
602
- // }else{
603
- // this.preamount();
604
- // }
605
- },
606
- 'model.f_collection' (val) {
545
+ this.paymentModel.push(temp)
546
+ })
547
+ this.$resetValidation()
548
+
607
549
  // 获取计算优惠
608
550
  this.getPrivilegeList()
609
551
  }
610
552
  },
611
- events: {
612
- // 删除Resid数组元素
613
- 'delResid' (val) {
614
- this.resid.$remove({id: val, f_biobid: ''})
615
- // this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
616
- },
617
- // 增加Resid数组元素
618
- 'resid' (val) {
619
- this.resid.push({id: val, f_biobid: ''})
553
+ 'model.f_payment'(val) {
554
+ if (val == '免交') {
555
+ this.mjshow = true
556
+ } else if (val == '赠气' && (this.model.f_preamount || this.model.f_preamount != '')) {
557
+ if (this.row.f_collection_type == '按气量') {
558
+ this.pregas()
559
+ } else {
560
+ this.preamount()
561
+ }
562
+ } else {
563
+ this.mjshow = false
620
564
  }
565
+ // if(this.row.f_collection_type == '按气量'){
566
+ // this.pregas();
567
+ // }else{
568
+ // this.preamount();
569
+ // }
621
570
  },
622
- methods: {
623
- onHoverOut () {
624
- this.resetShow = false
625
- },
626
- onHover () {
627
- this.resetShow = true
628
- },
629
- resetParam () {
630
- this.model.f_preamount = 0
631
- this.model.f_pregas = 0
632
- this.model.f_collection = 0
633
- this.model.f_totalcost = 0
634
- this.dymoney = 0
635
- this.preDisable = false
636
- this.pregas()
637
- this.preamount()
638
- },
639
- checkInvoiceMsg () {
640
- if (['电子发票', '数电普票', '数电专票'].includes(this.model.f_print[0])) {
641
- if (!this.row.f_taxpayer_id) {
642
- this.row.f_taxpayer_id = this.row.f_idnumber
643
- }
644
- if (!this.row.f_paper_name) {
645
- this.row.f_paper_name = this.row.f_user_name
646
- }
647
- if (!this.row.f_address_phone) {
648
- this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
649
- }
650
- if (!this.row.f_buy_phone) {
651
- this.row.f_buy_phone = this.row.f_user_phone
652
- }
653
- this.confirm()
654
- } else {
655
- this.confirm()
571
+ 'model.f_collection'(val) {
572
+ // 获取计算优惠
573
+ this.getPrivilegeList()
574
+ }
575
+ },
576
+ events: {
577
+ // 删除Resid数组元素
578
+ 'delResid'(val) {
579
+ this.resid.$remove({id: val, f_biobid: ''})
580
+ // this.resid.splice(this.resid.indexOf({id:val,f_biobid:''}),1);
581
+ },
582
+ // 增加Resid数组元素
583
+ 'resid'(val) {
584
+ this.resid.push({id: val, f_biobid: ''})
585
+ }
586
+ },
587
+ methods: {
588
+ onHoverOut() {
589
+ this.resetShow = false
590
+ },
591
+ onHover() {
592
+ this.resetShow = true
593
+ },
594
+ resetParam() {
595
+ this.model.f_preamount = 0
596
+ this.model.f_pregas = 0
597
+ this.model.f_collection = 0
598
+ this.model.f_totalcost = 0
599
+ this.dymoney = 0
600
+ this.preDisable = false
601
+ this.pregas()
602
+ this.preamount()
603
+ },
604
+ checkInvoiceMsg() {
605
+ if (['电子发票', '数电普票', '数电专票'].includes(this.model.f_print[0])) {
606
+ if (!this.row.f_taxpayer_id) {
607
+ this.row.f_taxpayer_id = this.row.f_idnumber
608
+ }
609
+ if (!this.row.f_paper_name) {
610
+ this.row.f_paper_name = this.row.f_user_name
611
+ }
612
+ if (!this.row.f_address_phone) {
613
+ this.row.f_address_phone = this.row.f_address + ' ' + this.row.f_user_phone
614
+ }
615
+ if (!this.row.f_buy_phone) {
616
+ this.row.f_buy_phone = this.row.f_user_phone
617
+ }
618
+ this.confirm()
619
+ } else {
620
+ this.confirm()
621
+ }
622
+ },
623
+ eticket_toggle() {
624
+ this.eticket_show = false
625
+ this.$dispatch('success')
626
+ },
627
+ confirm() {
628
+ this.eticket_msg = false
629
+ if (this.model.f_payment.length > 0 && this.model.f_payment.includes('余额写卡')) {
630
+ if (this.model.f_collection > this.row.f_balance) {
631
+ this.$showAlert('请注意!您的账户余额小于当前写卡金额,无法进行余额写卡,请修改后重试', 'warning', 2000)
632
+ return
656
633
  }
657
- },
658
- eticket_toggle () {
659
- this.eticket_show = false
660
- this.$dispatch('success')
661
- },
662
- confirm () {
663
- this.eticket_msg = false
664
- if (this.model.f_payment.length > 0 && this.model.f_payment.includes('余额写卡')) {
665
- if (this.model.f_collection > this.row.f_balance) {
666
- this.$showAlert('请注意!您的账户余额小于当前写卡金额,无法进行余额写卡,请修改后重试', 'warning', 2000)
667
- return
668
- }
669
634
 
670
- if (this.model.f_collection > 0) {
671
- this.$showAlert('请注意!进行余额写卡,收款不能大于0', 'warning', 1000)
672
- return
673
- }
635
+ if (this.model.f_collection > 0) {
636
+ this.$showAlert('请注意!进行余额写卡,收款不能大于0', 'warning', 1000)
637
+ return
674
638
  }
675
- this.$showMessage(`确定对用户${this.row.f_user_name}进行卡表收费吗?`, ['confirm', 'cancel']).then(async (res) => {
676
- if (res === 'confirm') {
677
- // 先调用付款码支付组件流程
678
- let ss = await this.$refs.paymentcode.flowPath()
679
- this.$refs.paymentcode.paymentCodeShow = false
680
- console.log('付款码操作返回', ss)
681
- if (!ss.result) return
639
+ }
640
+ this.$showMessage(`确定对用户${this.row.f_user_name}进行卡表收费吗?`, ['confirm', 'cancel']).then(async (res) => {
641
+ if (res === 'confirm') {
642
+ // 先调用付款码支付组件流程
643
+ let ss = await this.$refs.paymentcode.flowPath()
644
+ this.$refs.paymentcode.paymentCodeShow = false
645
+ console.log('付款码操作返回', ss)
646
+ if (!ss.result) return
682
647
 
683
- this.clickConfirm = true
684
- this.model.f_curbalance = this.curbalance
685
- this.$dispatch('no-button')
686
- sellgasGen(this)
687
- }
688
- })
689
- },
690
- clean () {
691
- this.$info('取消操作')
692
- this.$dispatch('refresh', this.row)
693
- },
694
- validateBill (val) {
695
- this.validateOk = !val.isOk
696
- this.billData.bill = val.bill
697
- },
698
- printok () {
699
- // 收据打完,判断是否还有其他票据进行请求
700
- for (let i = 0; i < this.model.f_print.length; i++) {
701
- if (this.model.f_print[i] === '电子发票') {
702
- this.$CommonService.openEticket(this.row.id, '售气收费')
703
- }
648
+ this.clickConfirm = true
649
+ this.model.f_curbalance = this.curbalance
650
+ this.$dispatch('no-button')
651
+ sellgasGen(this)
704
652
  }
705
- this.$dispatch('success')
706
- },
707
- pregas () {
708
- this.dymoney = 0
709
- if (this.model.f_pregas && this.model.f_pregas > 0) {
710
- try {
711
- // 对气量进行验证
712
- if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
713
- this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
714
- this.model.f_pregas = null
715
- } else {
716
- pregasGen(this)
717
- this.preDisable = true
718
- }
719
- } catch (error) {
720
- this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
721
- this.$dispatch('error', '发卡售气', this.model, error)
722
- }
723
- } else {
724
- this.model.f_pregas = null
653
+ })
654
+ },
655
+ clean() {
656
+ this.$info('取消操作')
657
+ this.$dispatch('refresh', this.row)
658
+ },
659
+ validateBill(val) {
660
+ this.validateOk = !val.isOk
661
+ this.billData.bill = val.bill
662
+ },
663
+ printok() {
664
+ // 收据打完,判断是否还有其他票据进行请求
665
+ for (let i = 0; i < this.model.f_print.length; i++) {
666
+ if (this.model.f_print[i] === '电子发票') {
667
+ this.$CommonService.openEticket(this.row.id, '售气收费')
725
668
  }
726
- },
727
- preamount () {
728
- this.model.f_price_id = this.row.f_price_id
729
- this.model.f_user_id = this.row.f_user_id
730
- this.model.f_userfiles_id = this.row.f_userfiles_id
731
- this.model.f_userinfo_id = this.row.f_userinfo_id
669
+ }
670
+ this.$dispatch('success')
671
+ },
672
+ pregas() {
673
+ this.dymoney = 0
674
+ if (this.model.f_pregas && this.model.f_pregas > 0) {
732
675
  try {
733
- preamountGen(this)
734
- if (this.model.f_preamount > 0 && this.model.f_preamount) {
676
+ // 对气量进行验证
677
+ if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
678
+ this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
679
+ this.model.f_pregas = null
680
+ } else {
681
+ pregasGen(this)
735
682
  this.preDisable = true
736
683
  }
737
684
  } catch (error) {
738
685
  this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
739
686
  this.$dispatch('error', '发卡售气', this.model, error)
740
687
  }
741
- },
742
- calText (val) {
743
- let str = ''
744
- let num = 0
745
- val.forEach((item) => {
746
- if (item.f_gas > 0) {
747
- num = num + 1
748
- }
749
- if (this.row.f_isdecimal === '是') {
750
- str = str + item.f_price + ' x ' + item.f_gas + '+'
751
- } else {
752
- str = str + item.f_price + ' x ' + Math.floor(item.f_gas) + '+'
753
- }
754
- })
755
- str = str.slice(0, str.length - 1)
756
- this.calculatedetail = str
757
- if (num > 1) {
758
- this.$showAlert('友好提示:本次购气已跨阶梯', 'warning', 3000)
688
+ } else {
689
+ this.model.f_pregas = null
690
+ }
691
+ },
692
+ preamount() {
693
+ this.model.f_price_id = this.row.f_price_id
694
+ this.model.f_user_id = this.row.f_user_id
695
+ this.model.f_userfiles_id = this.row.f_userfiles_id
696
+ this.model.f_userinfo_id = this.row.f_userinfo_id
697
+ try {
698
+ preamountGen(this)
699
+ if (this.model.f_preamount > 0 && this.model.f_preamount) {
700
+ this.preDisable = true
759
701
  }
760
- },
761
- close () {
762
- this.print = false
763
- this.clean()
764
- },
765
- paymentchange () {
766
- console.log('model.f_payment', this.model.f_payment[0])
767
- if (JSON.stringify(this.model.f_payment).indexOf('转账') !== -1) {
768
- // 进入转账筛选条件
769
- this.model.f_banktransfer_person = ''
770
- this.model.f_banktransfer_date = ''
771
- this.BankTransfer = true
702
+ } catch (error) {
703
+ this.$showAlert(`发卡售气划价错误,错误类型:${error}`, 'danger', 0)
704
+ this.$dispatch('error', '发卡售气', this.model, error)
705
+ }
706
+ },
707
+ calText(val) {
708
+ let str = ''
709
+ let num = 0
710
+ val.forEach((item) => {
711
+ if (item.f_gas > 0) {
712
+ num = num + 1
713
+ }
714
+ if (this.row.f_isdecimal === '是') {
715
+ str = str + item.f_price + ' x ' + item.f_gas + '+'
772
716
  } else {
773
- this.model.f_banktransfer_person = ''
774
- this.model.f_banktransfer_date = ''
775
- this.BankTransfer = false
717
+ str = str + item.f_price + ' x ' + Math.floor(item.f_gas) + '+'
776
718
  }
777
- },
778
- // 根据选择的付款方式 获取优惠列表
779
- async getPrivilegeList () {
780
- // 初始化下拉选择列表
781
- this.privilegeList = [{label: '无优惠', value: '0'}]
782
- // 初始为无优惠
783
- this.model.f_privilege_id = '0'
784
- if (this.model.f_payment && this.model.f_payment.length) {
785
- // 查询条件
786
- let payments = JSON.stringify(this.model.f_payment)
787
- payments = payments.replace('[', '(').replace(']', ')').replace(/"/g, '\'')
788
- let HttpReset = new HttpResetClass()
789
- let privilege = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
790
- data: {
791
- items: 'id,f_privilege_name,f_privilege_type',
792
- tablename: 't_privilege',
793
- condition: `f_payment in ${payments} and f_gasproperties = '${this.row.f_gasproperties}' and f_user_type = '${this.row.f_user_type}' and f_perform_date <= GETDATE() and f_end_date >= GETDATE() and f_state = '有效'`,
794
- orderitem: 'id'
795
- }
796
- }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
797
- // 查询结果放到下拉列表
798
- for (let p of privilege.data) {
799
- this.privilegeList.push({label: p.f_privilege_name, value: p.id, type: p.f_privilege_type})
719
+ })
720
+ str = str.slice(0, str.length - 1)
721
+ this.calculatedetail = str
722
+ if (num > 1) {
723
+ this.$showAlert('友好提示:本次购气已跨阶梯', 'warning', 3000)
724
+ }
725
+ },
726
+ close() {
727
+ this.print = false
728
+ this.clean()
729
+ },
730
+ paymentchange() {
731
+ console.log('model.f_payment', this.model.f_payment[0])
732
+ if (JSON.stringify(this.model.f_payment).indexOf('转账') !== -1) {
733
+ // 进入转账筛选条件
734
+ this.model.f_banktransfer_person = ''
735
+ this.model.f_banktransfer_date = ''
736
+ this.BankTransfer = true
737
+ } else {
738
+ this.model.f_banktransfer_person = ''
739
+ this.model.f_banktransfer_date = ''
740
+ this.BankTransfer = false
741
+ }
742
+ },
743
+ // 根据选择的付款方式 获取优惠列表
744
+ async getPrivilegeList() {
745
+ // 初始化下拉选择列表
746
+ this.privilegeList = [{label: '无优惠', value: '0'}]
747
+ // 初始为无优惠
748
+ this.model.f_privilege_id = '0'
749
+ if (this.model.f_payment && this.model.f_payment.length) {
750
+ // 查询条件
751
+ let payments = JSON.stringify(this.model.f_payment)
752
+ payments = payments.replace('[', '(').replace(']', ')').replace(/"/g, '\'')
753
+ let HttpReset = new HttpResetClass()
754
+ let privilege = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
755
+ data: {
756
+ items: 'id,f_privilege_name,f_privilege_type',
757
+ tablename: 't_privilege',
758
+ condition: `f_payment in ${payments} and f_gasproperties = '${this.row.f_gasproperties}' and f_user_type = '${this.row.f_user_type}' and f_perform_date <= GETDATE() and f_end_date >= GETDATE() and f_state = '有效'`,
759
+ orderitem: 'id'
800
760
  }
801
- this.privilegeCalculate()
761
+ }, {resolveMsg: null, rejectMsg: '查询优惠信息失败'})
762
+ // 查询结果放到下拉列表
763
+ for (let p of privilege.data) {
764
+ this.privilegeList.push({label: p.f_privilege_name, value: p.id, type: p.f_privilege_type})
802
765
  }
803
- },
804
- // 优惠计算
805
- async privilegeCalculate () {
806
- // 初始化减免金额
807
- this.model.f_privilege_money = 0
808
- this.model.f_after_discount = this.model.f_collection
809
- // 判断是否是自定义优惠
810
- if (this.model.f_privilege_id != null && parseInt(this.model.f_privilege_id)) {
811
- for (let p of this.privilegeList) {
812
- if (p.value == this.model.f_privilege_id && p.type == '自定义') {
813
- this.model.f_privilege_money = window.prompt('请输入你想优惠的金额')
814
- if (!(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money) || !(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money)) {
815
- this.$showMessage('金额输入格式不正确!')
816
- this.model.f_privilege_money = 0
817
- return
818
- }
819
- if ((this.model.f_privilege_money - 0) >= this.model.f_collection) {
820
- this.$showMessage('减免金额不能大于等于收款金额')
821
- this.model.f_privilege_money = 0
822
- return
823
- }
824
- this.model.f_comments = this.model.f_comments + ' 优惠金额:' + this.model.f_privilege_money
766
+ this.privilegeCalculate()
767
+ }
768
+ },
769
+ // 优惠计算
770
+ async privilegeCalculate() {
771
+ // 初始化减免金额
772
+ this.model.f_privilege_money = 0
773
+ this.model.f_after_discount = this.model.f_collection
774
+ // 判断是否是自定义优惠
775
+ if (this.model.f_privilege_id != null && parseInt(this.model.f_privilege_id)) {
776
+ for (let p of this.privilegeList) {
777
+ if (p.value == this.model.f_privilege_id && p.type == '自定义') {
778
+ this.model.f_privilege_money = window.prompt('请输入你想优惠的金额')
779
+ if (!(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money) || !(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_money)) {
780
+ this.$showMessage('金额输入格式不正确!')
781
+ this.model.f_privilege_money = 0
782
+ return
825
783
  }
826
- if (p.value == this.model.f_privilege_id && p.type == '自定义气量') {
827
- this.model.f_privilege_gas = window.prompt('请输入你想优惠的气量')
828
- if (!(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_gas) || !(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_gas)) {
829
- this.$showMessage('金额输入格式不正确!')
830
- this.model.f_privilege_gas = 0
831
- return
832
- }
833
- let f_price = 0
834
- let param = {
835
- tablename: 't_detailprice',
836
- condition: `f_price_name = '1' and f_stairprice_id = '${this.row.f_stairprice_id}'`
837
- }
838
- let res = await this.$resetpost('rs/sql/saleSingleTable', {
839
- data: param
840
- }, {
841
- resolveMsg: null,
842
- rejectMsg: '获取一阶单价!!'
843
- })
844
- if (res.data.length > 0) {
845
- f_price = res.data[0].f_price
846
- }
847
- this.model.f_privilege_money = (this.model.f_privilege_gas - 0) * (f_price - 0)
848
- if ((this.model.f_privilege_money - 0) >= this.model.f_collection) {
849
- this.$showMessage('减免金额不能大于等于收款金额')
850
- this.model.f_privilege_money = 0
851
- this.model.f_privilege_gas = 0
852
- return
853
- }
854
- this.model.f_comments = this.model.f_comments + ' 优惠气量:' + this.model.f_privilege_gas
784
+ if ((this.model.f_privilege_money - 0) >= this.model.f_collection) {
785
+ this.$showMessage('减免金额不能大于等于收款金额')
786
+ this.model.f_privilege_money = 0
787
+ return
855
788
  }
789
+ this.model.f_comments = this.model.f_comments + ' 优惠金额:' + this.model.f_privilege_money
856
790
  }
857
- }
858
- // 优惠方式, 收款 缺一不计算
859
- if (this.model.f_payment && this.model.f_payment.length && parseInt(this.model.f_privilege_id) && this.model.f_collection) {
860
- let c = {
861
- f_privilege_id: this.model.f_privilege_id,
862
- f_collection: this.model.f_collection,
863
- f_privilege_money: this.model.f_privilege_money
791
+ if (p.value == this.model.f_privilege_id && p.type == '自定义气量') {
792
+ this.model.f_privilege_gas = window.prompt('请输入你想优惠的气量')
793
+ if (!(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_gas) || !(/^[1-9]\d*(\.\d+)?$/).test(this.model.f_privilege_gas)) {
794
+ this.$showMessage('金额输入格式不正确!')
795
+ this.model.f_privilege_gas = 0
796
+ return
797
+ }
798
+ let f_price = 0
799
+ let param = {
800
+ tablename: 't_detailprice',
801
+ condition: `f_price_name = '1' and f_stairprice_id = '${this.row.f_stairprice_id}'`
802
+ }
803
+ let res = await this.$resetpost('rs/sql/saleSingleTable', {
804
+ data: param
805
+ }, {
806
+ resolveMsg: null,
807
+ rejectMsg: '获取一阶单价!!'
808
+ })
809
+ if (res.data.length > 0) {
810
+ f_price = res.data[0].f_price
811
+ }
812
+ this.model.f_privilege_money = (this.model.f_privilege_gas - 0) * (f_price - 0)
813
+ if ((this.model.f_privilege_money - 0) >= this.model.f_collection) {
814
+ this.$showMessage('减免金额不能大于等于收款金额')
815
+ this.model.f_privilege_money = 0
816
+ this.model.f_privilege_gas = 0
817
+ return
818
+ }
819
+ this.model.f_comments = this.model.f_comments + ' 优惠气量:' + this.model.f_privilege_gas
864
820
  }
865
- let privilegeData = await this.$resetpost('rs/logic/calculatePrivilege', c, {
866
- resolveMsg: null,
867
- rejectMsg: '计算优惠金额出错'
868
- })
869
- // 减免金额
870
- this.model.f_privilege_money = privilegeData.data.f_privilege_money
871
- // 减免后收款金额
872
- this.model.f_after_discount = privilegeData.data.f_collection
873
821
  }
874
822
  }
875
- },
876
- computed: {
877
- printstyle () {
878
- return this.row.f_filialeid === '33520' ? this.$appdata.getParam('打印格式') : this.$appdata.getParam('打印格式').filter(item => item.label !== '电子发票')
879
- },
880
- authArr () {
881
- return this.$login.r ? this.$login.r : []
882
- },
883
- 'curbalance' () {
884
- if (this.model.f_payment == '赠气') {
885
- return this.model.f_balance
823
+ // 优惠方式, 收款 缺一不计算
824
+ if (this.model.f_payment && this.model.f_payment.length && parseInt(this.model.f_privilege_id) && this.model.f_collection) {
825
+ let c = {
826
+ f_privilege_id: this.model.f_privilege_id,
827
+ f_collection: this.model.f_collection,
828
+ f_privilege_money: this.model.f_privilege_money
886
829
  }
887
- if (this.model.f_preamount) {
888
- if (this.row.f_collection_type === '按金额') {
889
- return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
890
- } else {
891
- // if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
892
- // return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0) ).toFixed(4)
893
- // } else {
894
- // return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - (this.model.f_totalcost - 0)).toFixed(4)
895
- // }
896
- return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
897
- }
898
- } else {
899
- return 0
900
- }
901
- },
902
- 'islegal' () {
903
- console.log('支付分离。。。', this.paymentModel.length, this.model.f_collection)
904
- if (this.paymentModel.length > 1 && this.model.f_collection) {
905
- let sum = 0
906
- this.paymentModel.forEach((res) => {
907
- sum += (res.f_money - 0)
908
- })
909
- return (this.model.f_collection - 0) === (sum - 0)
830
+ let privilegeData = await this.$resetpost('rs/logic/calculatePrivilege', c, {
831
+ resolveMsg: null,
832
+ rejectMsg: '计算优惠金额出错'
833
+ })
834
+ // 减免金额
835
+ this.model.f_privilege_money = privilegeData.data.f_privilege_money
836
+ // 减免后收款金额
837
+ this.model.f_after_discount = privilegeData.data.f_collection
838
+ }
839
+ }
840
+ },
841
+ computed: {
842
+ printstyle() {
843
+ return this.row.f_filialeid === '33520' ? this.$appdata.getParam('打印格式') : this.$appdata.getParam('打印格式').filter(item => item.label !== '电子发票')
844
+ },
845
+ authArr() {
846
+ return this.$login.r ? this.$login.r : []
847
+ },
848
+ 'curbalance'() {
849
+ if (this.model.f_payment == '赠气') {
850
+ return this.model.f_balance
851
+ }
852
+ if (this.model.f_preamount) {
853
+ if (this.row.f_collection_type === '按金额') {
854
+ return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
910
855
  } else {
911
- return true
856
+ // if ((this.row.f_balance - 0) > (this.model.f_preamount - 0)) {
857
+ // return ((this.row.f_balance - 0) - (this.model.f_preamount - 0) + (this.model.f_collection - 0) ).toFixed(4)
858
+ // } else {
859
+ // return ((this.model.f_collection - 0) + (this.row.f_balance - 0) - (this.model.f_totalcost - 0)).toFixed(4)
860
+ // }
861
+ return ((this.model.f_collection - 0) - (this.model.f_totalcost - 0)).toFixed(4)
912
862
  }
863
+ } else {
864
+ return 0
865
+ }
866
+ },
867
+ 'islegal'() {
868
+ console.log('支付分离。。。', this.paymentModel.length, this.model.f_collection)
869
+ if (this.paymentModel.length > 1 && this.model.f_collection) {
870
+ let sum = 0
871
+ this.paymentModel.forEach((res) => {
872
+ sum += (res.f_money - 0)
873
+ })
874
+ return (this.model.f_collection - 0) === (sum - 0)
875
+ } else {
876
+ return true
913
877
  }
914
878
  }
915
879
  }
880
+ }
916
881
  </script>
917
882
 
918
883
  <style>
@@ -323,7 +323,6 @@
323
323
  console.log('开始打票', self.config, self.model.f_print)
324
324
 
325
325
  if (self.config.hasPrint) {
326
- if (!['电子发票', '数电普票', '数电专票'].includes(self.model.f_print[0])) {
327
326
  console.log('self.config.hasBillManage', self.config.hasBillManage)
328
327
  if (self.config.hasBillManage) {
329
328
  // 启用发票管理,获取票据管理中的票号并存储记录
@@ -335,44 +334,6 @@
335
334
  self.row.id = res.data.id
336
335
  self.print = true
337
336
  }
338
- } else if (self.config.printType === '国税发票') {
339
- // TODO
340
- } else if (['数电普票', '数电专票'].includes(self.model.f_print[0])) {
341
- self.row.f_paper_type = self.model.f_print[0]
342
- // self.eticket_show = true
343
- await self.$refs.asynceticket.openETicketNoModal(res.data.id, self.row, '物联网收费').then(
344
- (_res) => {
345
- if (self.config.hasBillManage) {
346
- // 启用发票管理,获取票据管理中的票号并存储记录
347
- self.row.id = res.data.id
348
- self.row.f_bill_type = '物联网收费'
349
- self.row.f_bill_style = self.model.f_print
350
- self.print = true
351
- } else {
352
- self.row.id = res.data.id
353
- self.print = true
354
- }
355
- }
356
- ).catch((error) => {
357
- if (error.status === 301) {
358
- self.$dispatch('refresh')
359
- } else {
360
- if (error) {
361
- self.$showAlert('收费成功,电子票开具失败,' + error + ',请在自定义开票页面补开发票。', 'danger', 0)
362
- }
363
- }
364
- if (self.config.hasBillManage) {
365
- // 启用发票管理,获取票据管理中的票号并存储记录
366
- self.row.id = res.data.id
367
- self.row.f_bill_type = '物联网收费'
368
- self.row.f_bill_style = self.model.f_print
369
- self.print = true
370
- } else {
371
- self.row.id = res.data.id
372
- self.print = true
373
- }
374
- })
375
- }
376
337
  } else {
377
338
  self.$dispatch('success')
378
339
  }
File without changes
File without changes
File without changes
@@ -1,2 +0,0 @@
1
- #Wed Mar 18 10:18:57 CST 2026
2
- gradle.version=5.2.1
Binary file
File without changes