tplus-components-touch 3.33.15 → 3.33.18

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.
@@ -1167,7 +1167,7 @@ var SettlementStore = (_class = function () {
1167
1167
  status = this.type;
1168
1168
  _context4.prev = 4;
1169
1169
  paylist = this.paymode.thePaymodes.filter(function (v) {
1170
- return !!v.thridPayment && v.value > 0;
1170
+ return !!v.thridPayment && Math.abs(v.value) > 0;
1171
1171
  }) || [];
1172
1172
 
1173
1173
  if (!(paylist && paylist.length > 1)) {
@@ -1648,13 +1648,13 @@ var SettlementStore = (_class = function () {
1648
1648
 
1649
1649
  if (vType == 1) {
1650
1650
  dto.RetailPaymentDetails.forEach(function (v) {
1651
- if (v.ThirdPaymentInfo != null) {
1651
+ if (v.ThirdPaymentInfo != null && Math.abs(v.Amount) > 0) {
1652
1652
  v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1653
1653
  }
1654
1654
  });
1655
1655
  } else if (vType == 2) {
1656
1656
  dto.StorageMutiSettleDetails.forEach(function (v) {
1657
- if (v.ThirdPaymentInfo != null) {
1657
+ if (v.ThirdPaymentInfo != null && Math.abs(v.StorageAmount) > 0) {
1658
1658
  v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1659
1659
  }
1660
1660
  });
@@ -1676,7 +1676,7 @@ var SettlementStore = (_class = function () {
1676
1676
  case 24:
1677
1677
  _context7.prev = 24;
1678
1678
  _context7.t0 = _context7['catch'](0);
1679
- return _context7.abrupt('return', { type: false, data: null, msg: _context7.t0 });
1679
+ return _context7.abrupt('return', { type: false, data: null, msg: _context7.t0, code: '9999' });
1680
1680
 
1681
1681
  case 27:
1682
1682
  case 'end':
@@ -2479,29 +2479,32 @@ var PayMode = exports.PayMode = (_class3 = function () {
2479
2479
  var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2480
2480
  var _this19 = this;
2481
2481
 
2482
- var _ref32, isHorizontalPad, isHorizontalSunMi, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2482
+ var _ref32, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2483
2483
 
2484
2484
  return _regenerator2.default.wrap(function _callee15$(_context15) {
2485
2485
  while (1) {
2486
2486
  switch (_context15.prev = _context15.next) {
2487
2487
  case 0:
2488
+ // 是否移动端判断
2488
2489
  _ref32 = _mutantsUtil.platform || {}, isHorizontalPad = _ref32.isHorizontalPad, isHorizontalSunMi = _ref32.isHorizontalSunMi;
2490
+ isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
2489
2491
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
2490
2492
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2491
2493
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2492
- _context15.next = 6;
2494
+ _context15.next = 7;
2493
2495
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2494
2496
 
2495
- case 6:
2497
+ case 7:
2496
2498
  modes = _context15.sent;
2497
2499
 
2498
- modes = !(!!isHorizontalPad || !!isHorizontalSunMi) ? modes : modes.filter(function (v) {
2499
- return !!v.ThirdPaymentInfo;
2500
- });
2501
2500
  if (modes) {
2502
2501
  (0, _mobx.runInAction)(function () {
2503
2502
  var paymodes = [];
2504
- (0, _each3.default)(modes.SettleStyles, function (mode, index) {
2503
+ var settleLists = modes.SettleStyles;
2504
+ settleLists = isMobileEnvironment ? settleLists.filter(function (v) {
2505
+ return !v.ThirdPaymentInfo;
2506
+ }) : settleLists;
2507
+ (0, _each3.default)(settleLists, function (mode, index) {
2505
2508
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
2506
2509
  if (mode.Code == PayStyle.hyczk) {
2507
2510
  mode.Name = '储值卡';