tplus-components-touch 3.22.4 → 3.22.5

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.
@@ -287,7 +287,7 @@ var SettlementStore = (_class = function () {
287
287
  }
288
288
  });
289
289
  if (promoVoucher.coupon_code) {
290
- _this2.paymode.calcDjqValue(_this2.paymode.currentMode.djqs[0]);
290
+ _this2.paymode.calcDjqCheckValue(_this2.paymode.currentMode.djqs[0], _this2.dto, 'single');
291
291
  }
292
292
  } else {
293
293
  if (promoVoucher.coupon_code) {
@@ -321,7 +321,7 @@ var SettlementStore = (_class = function () {
321
321
  }
322
322
 
323
323
  _context.next = 4;
324
- return _this2.getCouponList(sn);
324
+ return _this2.getCouponList(sn, 'sinlge');
325
325
 
326
326
  case 4:
327
327
  return _context.abrupt('return', _context.sent);
@@ -1600,7 +1600,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1600
1600
  }
1601
1601
  }, {
1602
1602
  key: 'calcDjqCheckValue',
1603
- value: function calcDjqCheckValue(q1, dto) {
1603
+ value: function calcDjqCheckValue(q1, dto, params) {
1604
1604
  var _this15 = this;
1605
1605
 
1606
1606
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
@@ -1611,6 +1611,9 @@ var PayMode = exports.PayMode = (_class3 = function () {
1611
1611
  _message2.default.warn('本单最多可用' + useLimitPerOrder + '张');
1612
1612
  return;
1613
1613
  }
1614
+ if (params === 'single') {
1615
+ this.checkList = [];
1616
+ }
1614
1617
 
1615
1618
  var _ref20 = _mutantsUtil.platform || {},
1616
1619
  isNewRetailBCPos = _ref20.isNewRetailBCPos;
@@ -1665,6 +1668,9 @@ var PayMode = exports.PayMode = (_class3 = function () {
1665
1668
  this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1666
1669
  this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1667
1670
  this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1671
+ if (params === 'single') {
1672
+ return;
1673
+ }
1668
1674
  var promoVoucher = {};
1669
1675
  promoVoucher.boName = "Retail";
1670
1676
  // promoVoucher.promoLinks = _filter(this.currentMode.djqs,djq=>djq.checked);