tplus-components-touch 3.27.34 → 3.27.38

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.
@@ -917,10 +917,20 @@ var SettlementStore = (_class = function () {
917
917
  }
918
918
  }
919
919
 
920
+ //积分抵现不包含运费
921
+ var BuyerPayFreight = this.dto.BuyerPayFreight;
922
+ var DistributionMode = this.dto.DistributionMode;
923
+ var value = 0;
924
+ if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
925
+ value = (0, _utils.getFixedNumber)(Math.Minus(this.paymode.amount, BuyerPayFreight));
926
+ } else {
927
+ value = this.paymode.amount;
928
+ }
929
+
920
930
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
921
931
  Idmember: this.paymode.currentMode.memberId,
922
- TotalTaxAmount: this.paymode.amount,
923
- BalanceTaxAmount: this.paymode.amount
932
+ TotalTaxAmount: value,
933
+ BalanceTaxAmount: value
924
934
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
925
935
  _this8.paymode.currentMode.member.setExchangable(result.MaxAmount);
926
936
  _this8.updateEvent();
@@ -1013,7 +1023,7 @@ var SettlementStore = (_class = function () {
1013
1023
  var BuyerPayFreight = _this9.dto.BuyerPayFreight;
1014
1024
  var DistributionMode = _this9.dto.DistributionMode;
1015
1025
  var value = 0;
1016
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
1026
+ if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type != PayStyle.jfdx) {
1017
1027
  value = (0, _utils.getFixedNumber)(parseFloat(_this9.context.viewModel.getViewItem('Voucher').availableAmount) + parseFloat(BuyerPayFreight));
1018
1028
  } else {
1019
1029
  value = _this9.context.viewModel.getViewItem('Voucher').availableAmount;
@@ -1369,7 +1379,7 @@ var SettlementStore = (_class = function () {
1369
1379
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1370
1380
 
1371
1381
  if (!isNewRetailBCPos) {
1372
- _context4.next = 24;
1382
+ _context4.next = 23;
1373
1383
  break;
1374
1384
  }
1375
1385
 
@@ -1392,40 +1402,32 @@ var SettlementStore = (_class = function () {
1392
1402
  _this11.dto.PrepaidAmount = prepaidAmount;
1393
1403
  });
1394
1404
  }
1395
- this.dto.RetailDetails.forEach(function (o) {
1396
- if (o.BaseQuantity != o.Quantity && !o.Idunit2) {
1397
- (0, _mobx.runInAction)(function () {
1398
- o.BaseQuantity = o.Quantity;
1399
- });
1400
- _tplusComponentsTouch.ModalWraper.confirm({ content: '请回想该订单下单时的操作步骤,复现退货时提示"退货数量大于可退数量的问题",联系赵录方' });
1401
- }
1402
- });
1403
1405
  _context4.t1 = this.dto.IdbusiType == 37;
1404
1406
 
1405
1407
  if (!_context4.t1) {
1406
- _context4.next = 17;
1408
+ _context4.next = 16;
1407
1409
  break;
1408
1410
  }
1409
1411
 
1410
- _context4.next = 16;
1412
+ _context4.next = 15;
1411
1413
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1412
1414
 
1413
- case 16:
1415
+ case 15:
1414
1416
  _context4.t1 = _context4.sent;
1415
1417
 
1416
- case 17:
1418
+ case 16:
1417
1419
  _context4.t0 = _context4.t1;
1418
1420
 
1419
1421
  if (_context4.t0) {
1420
- _context4.next = 20;
1422
+ _context4.next = 19;
1421
1423
  break;
1422
1424
  }
1423
1425
 
1424
1426
  _context4.t0 = this.dto.IdbusiType != 37;
1425
1427
 
1426
- case 20:
1428
+ case 19:
1427
1429
  if (!_context4.t0) {
1428
- _context4.next = 22;
1430
+ _context4.next = 21;
1429
1431
  break;
1430
1432
  }
1431
1433
 
@@ -1435,17 +1437,17 @@ var SettlementStore = (_class = function () {
1435
1437
  _this11.billID = resp.ID;
1436
1438
  }));
1437
1439
 
1438
- case 22:
1439
- _context4.next = 25;
1440
+ case 21:
1441
+ _context4.next = 24;
1440
1442
  break;
1441
1443
 
1442
- case 24:
1444
+ case 23:
1443
1445
  return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1444
1446
  _this11.setDtoID(resp.ID);
1445
1447
  _this11.billID = resp.ID;
1446
1448
  }));
1447
1449
 
1448
- case 25:
1450
+ case 24:
1449
1451
  case 'end':
1450
1452
  return _context4.stop();
1451
1453
  }