tplus-components-touch 3.33.12 → 3.33.16

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.
@@ -1079,13 +1079,6 @@ var SettlementStore = (_class = function () {
1079
1079
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1080
1080
  PayStyle = _enumController$getEn12.PayStyle;
1081
1081
 
1082
- var hasThirdPay = this.paymode.thePaymodes.filter(function (v) {
1083
- return !!v.thridPayment && v.value > 0;
1084
- }) || [];
1085
- if (hasThirdPay && hasThirdPay.length > 0) {
1086
- _message2.default.warn('二开支付目前仅支持单一结算。');
1087
- return;
1088
- }
1089
1082
  var pos = this.paymode.thePaymodes.length;
1090
1083
  if (type == PayStyle.hyczk) {
1091
1084
  var index = (0, _findLastIndex3.default)(this.paymode.thePaymodes, function (m) {
@@ -1174,7 +1167,7 @@ var SettlementStore = (_class = function () {
1174
1167
  status = this.type;
1175
1168
  _context4.prev = 4;
1176
1169
  paylist = this.paymode.thePaymodes.filter(function (v) {
1177
- return !!v.thridPayment && v.value > 0;
1170
+ return !!v.thridPayment && Math.abs(v.value) > 0;
1178
1171
  }) || [];
1179
1172
 
1180
1173
  if (!(paylist && paylist.length > 1)) {
@@ -1329,7 +1322,8 @@ var SettlementStore = (_class = function () {
1329
1322
  DynamicPropertyKeys: [],
1330
1323
  DynamicPropertyValues: [],
1331
1324
  DataSource: { Id: _this11.dataSource },
1332
- ThirdPaymentInfo: themode.thridPayment || null
1325
+ ThirdPaymentInfo: themode.thridPayment || null,
1326
+ ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
1333
1327
  });
1334
1328
  });
1335
1329
  });
@@ -1645,7 +1639,7 @@ var SettlementStore = (_class = function () {
1645
1639
  return _context7.abrupt('return', { type: false, data: null, msg: _Message, code: Code });
1646
1640
 
1647
1641
  case 14:
1648
- if (!(status == '00')) {
1642
+ if (!(trade == '00')) {
1649
1643
  _context7.next = 20;
1650
1644
  break;
1651
1645
  }
@@ -1654,13 +1648,13 @@ var SettlementStore = (_class = function () {
1654
1648
 
1655
1649
  if (vType == 1) {
1656
1650
  dto.RetailPaymentDetails.forEach(function (v) {
1657
- if (v.ThirdPaymentInfo != null) {
1651
+ if (v.ThirdPaymentInfo != null && Math.abs(v.Amount) > 0) {
1658
1652
  v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1659
1653
  }
1660
1654
  });
1661
1655
  } else if (vType == 2) {
1662
1656
  dto.StorageMutiSettleDetails.forEach(function (v) {
1663
- if (v.ThirdPaymentInfo != null) {
1657
+ if (v.ThirdPaymentInfo != null && Math.abs(v.StorageAmount) > 0) {
1664
1658
  v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1665
1659
  }
1666
1660
  });
@@ -1668,7 +1662,7 @@ var SettlementStore = (_class = function () {
1668
1662
  return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
1669
1663
 
1670
1664
  case 20:
1671
- if (!(status == '02')) {
1665
+ if (!(trade == '02')) {
1672
1666
  _context7.next = 22;
1673
1667
  break;
1674
1668
  }
@@ -1682,7 +1676,7 @@ var SettlementStore = (_class = function () {
1682
1676
  case 24:
1683
1677
  _context7.prev = 24;
1684
1678
  _context7.t0 = _context7['catch'](0);
1685
- 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' });
1686
1680
 
1687
1681
  case 27:
1688
1682
  case 'end':