sale-client 3.6.354 → 3.6.356

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.
File without changes
@@ -0,0 +1,2 @@
1
+ #Wed Jul 31 10:14:59 CST 2024
2
+ gradle.version=5.2.1
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sale-client",
3
- "version": "3.6.354",
3
+ "version": "3.6.356",
4
4
  "description": "收费模块前台组件",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -70,7 +70,10 @@
70
70
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
71
71
  v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
72
72
  </div>
73
- <div class="col-sm-4" v-if="!hasLimit">
73
+ <div class="col-sm-4" v-if="mingas > 0 ">
74
+ <label class="font_normal_body">&ensp;购气下限</label>
75
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="mingas"
76
+ v-scale="[mingas, 4]" placeholder='最低购气量' disabled>
74
77
  </div>
75
78
 
76
79
  <div class="col-sm-4"
@@ -302,7 +305,7 @@
302
305
  } else {
303
306
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
304
307
  }
305
- if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
308
+ if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0 || (self.model.f_pregas - 0) - (self.mingas - 0) >= 0) {
306
309
  self.model.f_meter_type = self.row.f_meter_type
307
310
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
308
311
  self.model.getDeduct = 0
@@ -454,7 +457,7 @@
454
457
  self.model.f_use_type = self.config.billType
455
458
  self.model.f_bill_type = self.model.f_print
456
459
  self.hasValidateBill = self.config.hasBillManage
457
-
460
+ self.mingas = self.config.MinSellGas
458
461
  // 判断限购
459
462
  let limit_param = {
460
463
  f_userinfo_id: self.row.f_userinfo_id,
@@ -525,6 +528,7 @@
525
528
  quickSale: false,
526
529
  showupload: true, // 显示上传
527
530
  hasPrint: true, // 默认打票
531
+ MinSellGas: 0,
528
532
  hasBillManage: false, // 默认不启用发票管理
529
533
  taxforidnumber: true, // 身份证号同步到纳税人识别号
530
534
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
@@ -533,6 +537,7 @@
533
537
  floor: false,
534
538
  overdraftBalance: false // 是否支持系统余额透支
535
539
  },
540
+ mingas: 0,
536
541
  eticket_msg: false,
537
542
  eticket_show: false,
538
543
  invoice_is_pax: '不征税',
@@ -790,6 +795,8 @@
790
795
  if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
791
796
  this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
792
797
  this.model.f_pregas = null
798
+ } else if ((this.model.f_pregas - 0) - (this.mingas - 0) < 0) {
799
+ this.$showAlert(`注意:购气量最少为:${this.mingas}m³`, 'warning', 3000)
793
800
  } else {
794
801
  pregasGen(this)
795
802
  if (this.config.quickSale) {
@@ -68,7 +68,10 @@
68
68
  <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="maxmoney"
69
69
  v-scale="[maxmoney, 2]" placeholder='限购金额' disabled>
70
70
  </div>
71
- <div class="col-sm-4" v-if="!hasLimit">
71
+ <div class="col-sm-4" v-if="mingas > 0 ">
72
+ <label class="font_normal_body">&ensp;购气下限</label>
73
+ <input class="input_search" style="width:60%" style="width:60%" type="number" v-model="mingas"
74
+ v-scale="[mingas, 4]" placeholder='最低购气量' disabled>
72
75
  </div>
73
76
 
74
77
  <div class="col-sm-4"
@@ -272,7 +275,7 @@
272
275
  } else {
273
276
  self.model.f_pregas = (self.model.f_pregas - 0).toFixed(0)
274
277
  }
275
- if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0) {
278
+ if ((self.model.f_pregas - 0) - (self.maxgas - 0) <= 0 || (self.model.f_pregas - 0) - (self.mingas - 0) >= 0) {
276
279
  self.model.f_meter_type = self.row.f_meter_type
277
280
  let getAmount = await self.$CommonService.gasCalculate(self.model, self.model.f_pregas)
278
281
  self.model.f_preamount = getAmount.data.chargenum
@@ -295,7 +298,6 @@
295
298
  let sellgasGen = async function (self) {
296
299
  try {
297
300
  self.row.cardInfo = self.cardData
298
-
299
301
  if (self.paymentModel.length === 0) {
300
302
  self.paymentModel = [{
301
303
  f_payment: self.model.f_payment[0],
@@ -307,7 +309,6 @@
307
309
  self.model.xiekamoney = (self.model.f_pregas * self.model.chargeprice[0].f_price)
308
310
  self.model.xiekamoney = self.model.xiekamoney.toFixed(4)
309
311
  }
310
-
311
312
  self.model.payments = self.paymentModel
312
313
  // 加入扫码盒付款码支付流水号
313
314
  self.model.f_serial_id = self.$refs.paymentcode.paymentCodeReturnData.f_out_trade_no
@@ -380,38 +381,37 @@
380
381
 
381
382
  let asyncCardMeterCenter = async function (self) {
382
383
  await self.$getConfig(self, 'CardMeterCenter')
383
- console.log('卡表收费config', self.config)
384
-
384
+ console.log('卡表收费1config', self.config)
385
385
  // 添加 “系统余额透支” 付款方式
386
386
  let i = -1
387
387
  for (const index in self.paytype) {
388
- if (self.paytype[index].value == "系统余额透支"){
388
+ if (self.paytype[index].value == '系统余额透支') {
389
389
  i = index
390
390
  break
391
391
  }
392
392
  }
393
- if (self.canOverdraftBalance()){
394
- if (i == -1){
393
+ if (self.canOverdraftBalance()) {
394
+ if (i == -1) {
395
395
  self.paytype.push({
396
- label: "系统余额透支",
397
- value: "系统余额透支"
396
+ label: '系统余额透支',
397
+ value: '系统余额透支'
398
398
  })
399
399
  }
400
- }else {
401
- if (i != -1){
400
+ } else {
401
+ if (i != -1) {
402
402
  self.paytype.splice(i, 1)
403
403
  }
404
404
  }
405
-
406
405
  // 默认打印格式
407
406
  self.model.f_print = self.config.printType instanceof Array ? self.config.printType : [self.config.printType]
408
407
  self.model.f_payment = [self.config.payment]
409
408
  self.mulPrint = self.config.printType instanceof Array
410
-
411
409
  // 获取当前票号用
412
410
  self.model.f_use_type = self.config.billType
413
411
  self.model.f_bill_type = self.model.f_print
414
412
  self.hasValidateBill = self.config.hasBillManage
413
+ self.mingas = self.config.MinSellGas
414
+ console.log('获取最小购气量', self.mingas)
415
415
 
416
416
  // 判断限购
417
417
  let limit_param = {
@@ -480,6 +480,7 @@
480
480
  autoCollection: true, // 自动填写收款
481
481
  showupload: true, // 显示上传
482
482
  hasPrint: true, // 默认打票
483
+ MinSellGas: 0,
483
484
  hasBillManage: false, // 默认不启用发票管理
484
485
  billType: '燃气费', // 票据类型(燃气费,其他费用,调用的发票代码不同)
485
486
  printType: '普通收据', // 收据/电子票/专用发票/国税发票
@@ -487,6 +488,7 @@
487
488
  floor: false,
488
489
  overdraftBalance: false // 是否支持系统余额透支
489
490
  },
491
+ mingas: 0,
490
492
  eticket_msg: false,
491
493
  eticket_show: false,
492
494
  invoice_is_pax: '不征税',
@@ -541,6 +543,7 @@
541
543
  },
542
544
  props: ['row', 'cardData'],
543
545
  async ready () {
546
+ console.log('看看走不走这个', this.authArr)
544
547
  if (this.authArr.includes('余额写卡限定')) {
545
548
  this.paytype = [{label: '余额写卡', value: '余额写卡'}]
546
549
  } else {
@@ -561,7 +564,7 @@
561
564
  this.model.f_preamount = ''
562
565
  this.model.f_pregas = 0
563
566
  }
564
- this.$els.fpregas.focus()
567
+ // this.$els.fpregas.focus()
565
568
  asyncCardMeterCenter(this)
566
569
  },
567
570
  watch: {
@@ -712,6 +715,8 @@
712
715
  if ((this.row.f_topup_ceil - 0) > 0 && (this.model.f_pregas - 0) > (this.row.f_topup_ceil - 0)) {
713
716
  this.$showAlert(`您输入的气量不能大于该表的充值上限: ${this.row.f_topup_ceil}`, 'warning', 5000)
714
717
  this.model.f_pregas = null
718
+ } else if ((this.model.f_pregas - 0) - (this.mingas - 0) < 0) {
719
+ this.$showAlert(`注意:购气量最少为:${this.mingas}m³`, 'warning', 3000)
715
720
  } else {
716
721
  pregasGen(this)
717
722
  }