tplus-components-touch 3.39.2 → 3.40.1

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.
Files changed (48) hide show
  1. package/dist/components/billSearch/api.js +13 -74
  2. package/dist/components/billSearch/api.js.map +1 -1
  3. package/dist/components/billSearch/index.js +41 -76
  4. package/dist/components/billSearch/index.js.map +1 -1
  5. package/dist/components/commonForm/addressPicker/index.js +7 -16
  6. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  7. package/dist/components/commonForm/datePicker/index.js +3 -6
  8. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  9. package/dist/components/commonForm/formControl/index.js +1 -2
  10. package/dist/components/commonForm/formControl/index.js.map +1 -1
  11. package/dist/components/commonForm/index.js +3 -9
  12. package/dist/components/commonForm/index.js.map +1 -1
  13. package/dist/components/deliverySearch/index.js +5 -1
  14. package/dist/components/deliverySearch/index.js.map +1 -1
  15. package/dist/components/hotKey/localConfig.js +0 -52
  16. package/dist/components/hotKey/localConfig.js.map +1 -1
  17. package/dist/components/input/style.less +0 -7
  18. package/dist/components/inventorySearch/tab.js +6 -1
  19. package/dist/components/inventorySearch/tab.js.map +1 -1
  20. package/dist/components/loading/loadingContent.js +5 -2
  21. package/dist/components/loading/loadingContent.js.map +1 -1
  22. package/dist/components/message/index.js +4 -5
  23. package/dist/components/message/index.js.map +1 -1
  24. package/dist/components/notification/index.js +11 -12
  25. package/dist/components/notification/index.js.map +1 -1
  26. package/dist/components/progressState/EmptyAndErrorView.js +5 -7
  27. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  28. package/dist/components/settlement/settlement.js +155 -404
  29. package/dist/components/settlement/settlement.js.map +1 -1
  30. package/dist/components/settlement/settlement.less +4 -20
  31. package/dist/components/settlement/settlementStore.js +105 -225
  32. package/dist/components/settlement/settlementStore.js.map +1 -1
  33. package/dist/components/settlement/utils.js +2 -2
  34. package/dist/components/settlement/utils.js.map +1 -1
  35. package/dist/components/ticon/iconfont/demo.css +539 -539
  36. package/dist/components/ticon/iconfont/demo_index.html +3 -3
  37. package/dist/components/ticon/iconfont/iconfont.css +3 -3
  38. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  39. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  40. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  41. package/dist/components/touchTable/index.js +5 -15
  42. package/dist/components/touchTable/index.js.map +1 -1
  43. package/dist/index.js +3 -8
  44. package/dist/index.js.map +1 -1
  45. package/package.json +35 -35
  46. package/dist/components/presale/pickup.js +0 -479
  47. package/dist/components/presale/pickup.js.map +0 -1
  48. package/dist/components/presale/style.less +0 -59
@@ -161,7 +161,7 @@ function _initializerWarningHelper(descriptor, context) {
161
161
  var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
162
162
 
163
163
  var SettlementStore = (_class = function () {
164
- // 预售都是全款;预订是否全款,在点击确认支付时计算订金和商品金额计算得出
164
+ //type==2
165
165
  function SettlementStore() {
166
166
  var _this2 = this;
167
167
 
@@ -176,8 +176,6 @@ var SettlementStore = (_class = function () {
176
176
 
177
177
  _initDefineProp(this, 'newStyle', _descriptor, this);
178
178
 
179
- this.isFull = true;
180
-
181
179
  _initDefineProp(this, 'setNewStyle', _descriptor2, this);
182
180
 
183
181
  _initDefineProp(this, 'queryPwd', _descriptor3, this);
@@ -278,7 +276,7 @@ var SettlementStore = (_class = function () {
278
276
  }
279
277
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
280
278
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
281
- //}
279
+ //}
282
280
  detailDTO.taxRate = item.TaxRate;
283
281
  detailDTO.quantity = item.Quantity;
284
282
 
@@ -347,10 +345,6 @@ var SettlementStore = (_class = function () {
347
345
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
348
346
  };
349
347
 
350
- this.getRefWareHouseList = function () {
351
- return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
352
- };
353
-
354
348
  this.checkCoupon = function () {
355
349
  var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
356
350
  var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -504,8 +498,7 @@ var SettlementStore = (_class = function () {
504
498
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
505
499
  if (params) this.cloudPrintArguments = params;
506
500
  this.setNewStyle();
507
- } //type==2
508
-
501
+ }
509
502
 
510
503
  (0, _createClass3.default)(SettlementStore, [{
511
504
  key: 'initPaymodes',
@@ -545,45 +538,7 @@ var SettlementStore = (_class = function () {
545
538
  });
546
539
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
547
540
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
548
-
549
- this.paymode.isNotFullBook = false;
550
- this.paymode.isNotFullOnlyBook = false;
551
- //预订按比例收取订金处理
552
- var value = this.dto.TotalTaxAmount;
553
-
554
- var _getLoginInfo = this.getLoginInfo(),
555
- PreSellOrBook = _getLoginInfo.PreSellOrBook,
556
- PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
557
-
558
- var _ref5 = this.dto || {},
559
- IdbusiType = _ref5.IdbusiType,
560
- DistributionMode = _ref5.DistributionMode;
561
-
562
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
563
- this.paymode.bookMaxValue = value;
564
- this.paymode.isNotFullBook = true;
565
- this.paymode.isNotFullOnlyBook = true;
566
- value = value * PercentageWhenBook / 100;
567
- }
568
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
569
- (0, _mobx.runInAction)(function () {
570
- _this3.dto.PrepaidAmount = value;
571
- });
572
- }
573
- //预订计算快递或同城配送运费
574
- if (IdbusiType == 38 && PreSellOrBook != 'DISABLED' && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
575
- value += this.dto.BuyerPayFreight || 0;
576
- }
577
- //预订取货应补款金额
578
- if (IdbusiType == 39) {
579
- value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
580
- if (_mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount > 0) {
581
- this.paymode.isNotFullBook = true;
582
- this.paymode.bookMaxValue = _mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount;
583
- }
584
- }
585
-
586
- this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
541
+ this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
587
542
  } else {
588
543
  this.brefund = this.paymode.setAmount(amount, 0);
589
544
  this.dto = data;
@@ -631,8 +586,8 @@ var SettlementStore = (_class = function () {
631
586
  var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
632
587
  PayStyle = _enumController$getEn5.PayStyle;
633
588
 
634
- var _ref6 = _mutantsUtil.platform || {},
635
- isNewRetailBCPos = _ref6.isNewRetailBCPos;
589
+ var _ref5 = _mutantsUtil.platform || {},
590
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
636
591
 
637
592
  console.log(this.dto, 'dto==========');
638
593
  this.paymode.checkList = [];
@@ -658,14 +613,14 @@ var SettlementStore = (_class = function () {
658
613
  if (themode.paymentType == PayStyle.djq) {
659
614
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
660
615
  if (isNewRetailBCPos) {
661
- var _ref7 = djq || {},
662
- displayText = _ref7.displayText,
663
- promoRuleId = _ref7.promoRuleId,
664
- dateMount = _ref7.dateMount,
665
- promoMethodEnum = _ref7.promoMethodEnum,
666
- discountPct = _ref7.discountPct,
667
- promoId = _ref7.promoId,
668
- id = _ref7.id;
616
+ var _ref6 = djq || {},
617
+ displayText = _ref6.displayText,
618
+ promoRuleId = _ref6.promoRuleId,
619
+ dateMount = _ref6.dateMount,
620
+ promoMethodEnum = _ref6.promoMethodEnum,
621
+ discountPct = _ref6.discountPct,
622
+ promoId = _ref6.promoId,
623
+ id = _ref6.id;
669
624
 
670
625
  _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, null, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
671
626
  return;
@@ -708,7 +663,7 @@ var SettlementStore = (_class = function () {
708
663
  }, {
709
664
  key: 'quickSettle',
710
665
  value: function quickSettle(key) {
711
- this.addPay(key, null, true);
666
+ this.addPay(key, true);
712
667
  }
713
668
 
714
669
  //outer call
@@ -716,7 +671,7 @@ var SettlementStore = (_class = function () {
716
671
 
717
672
  }, {
718
673
  key: 'changeFocusAndAddPay',
719
- value: function changeFocusAndAddPay(type, bookType) {
674
+ value: function changeFocusAndAddPay(type) {
720
675
  var _this6 = this;
721
676
 
722
677
  var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
@@ -748,7 +703,7 @@ var SettlementStore = (_class = function () {
748
703
  this.addPayDirectly(this.paymode.currentMode);
749
704
  }
750
705
  } else {
751
- this.addPay(type, bookType);
706
+ this.addPay(type);
752
707
  }
753
708
  }
754
709
 
@@ -773,15 +728,15 @@ var SettlementStore = (_class = function () {
773
728
  var IdStore = this.storeInfo.storeID;
774
729
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
775
730
 
776
- var _ref8 = _mutantsUtil.platform || {},
777
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
731
+ var _ref7 = _mutantsUtil.platform || {},
732
+ isNewRetailBCPos = _ref7.isNewRetailBCPos;
778
733
 
779
734
  var address = '';
780
735
  if (isNewRetailBCPos) {
781
736
  // address = '/member/memberProfile/FindByStorageCode/'+v;
782
737
  address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
783
738
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
784
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
739
+ var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
785
740
  var data, m;
786
741
  return _regenerator2.default.wrap(function _callee3$(_context3) {
787
742
  while (1) {
@@ -856,7 +811,7 @@ var SettlementStore = (_class = function () {
856
811
  }));
857
812
 
858
813
  return function (_x2) {
859
- return _ref9.apply(this, arguments);
814
+ return _ref8.apply(this, arguments);
860
815
  };
861
816
  }()
862
817
  // result.data.forEach((m) => {
@@ -966,29 +921,10 @@ var SettlementStore = (_class = function () {
966
921
  }
967
922
  }
968
923
 
969
- //积分抵现不包含运费
970
- var BuyerPayFreight = this.dto.BuyerPayFreight;
971
- var DistributionMode = this.dto.DistributionMode;
972
- var IdbusiType = this.dto.IdbusiType;
973
-
974
- var _getLoginInfo2 = this.getLoginInfo(),
975
- PreSellOrBook = _getLoginInfo2.PreSellOrBook,
976
- PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
977
-
978
- var value = 0;
979
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
980
- value = (0, _utils.getFixedNumber)(Math.Minus(this.paymode.amount, BuyerPayFreight));
981
- } else if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
982
- //预订场景下:现场提货,且订金比例非100%时,积分抵现按全款计算(因为只有全款才能使用积分抵现)
983
- value = this.paymode.bookMaxValue;
984
- } else {
985
- value = this.paymode.amount;
986
- }
987
-
988
924
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
989
925
  Idmember: this.paymode.currentMode.memberId,
990
- TotalTaxAmount: value,
991
- BalanceTaxAmount: value
926
+ TotalTaxAmount: this.paymode.amount,
927
+ BalanceTaxAmount: this.paymode.amount
992
928
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
993
929
  _this8.paymode.currentMode.member.setExchangable(result.MaxAmount);
994
930
  _this8.updateEvent();
@@ -1032,8 +968,7 @@ var SettlementStore = (_class = function () {
1032
968
  authCode: '',
1033
969
  steadCashIntegral: null,
1034
970
  errinfo: '',
1035
- maxamount: this.paymode.amount,
1036
- virtualPay: themode.virtualPay
971
+ maxamount: this.paymode.amount
1037
972
  });
1038
973
  if (type == PayStyle.hyczk) {
1039
974
  if (!mode.storageCardNo) {
@@ -1077,17 +1012,7 @@ var SettlementStore = (_class = function () {
1077
1012
 
1078
1013
  this.amountHandler && this.amountHandler(type).then(function () {
1079
1014
  (0, _mobx.runInAction)(function () {
1080
-
1081
- //预售储值结算应包含运费
1082
- var BuyerPayFreight = _this9.dto.BuyerPayFreight;
1083
- var DistributionMode = _this9.dto.DistributionMode;
1084
- var value = 0;
1085
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type == PayStyle.hyczk) {
1086
- value = (0, _utils.getFixedNumber)(parseFloat(_this9.context.viewModel.getViewItem('Voucher').availableAmount) + parseFloat(BuyerPayFreight));
1087
- } else {
1088
- value = _this9.context.viewModel.getViewItem('Voucher').availableAmount;
1089
- }
1090
- mode.maxamount = (0, _utils.getFixedNumber)(Math.Minus(value, sum));
1015
+ mode.maxamount = (0, _utils.getFixedNumber)(Math.Minus(_this9.context.viewModel.getViewItem('Voucher').availableAmount, sum));
1091
1016
  _this9.updateEvent();
1092
1017
  });
1093
1018
  });
@@ -1108,12 +1033,12 @@ var SettlementStore = (_class = function () {
1108
1033
  mode.value = shouldSetValue;
1109
1034
  mode.value2 = (0, _utils.getFixedNumber)(mode.calDirection == "88" ? shouldSetValue / mode.exchangeRate : shouldSetValue * mode.exchangeRate);
1110
1035
  mode.value3 = shouldSetValue;
1111
- this.paymode.calcReserved('bookPay'); //参数multiPay代表复合结算
1036
+ this.paymode.calcReserved();
1112
1037
  }
1113
1038
  }
1114
1039
  }, {
1115
1040
  key: 'changeValue',
1116
- value: function changeValue(index, value, blur, type) {
1041
+ value: function changeValue(index, value, blur) {
1117
1042
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { 'paymethodId': index });
1118
1043
  var v = blur ? (0, _utils.getFixedNumber)(value) : isNaN(value) && value != '-' ? 0.00 : value;
1119
1044
  if (mode) {
@@ -1129,7 +1054,7 @@ var SettlementStore = (_class = function () {
1129
1054
  mode.value2 = v;
1130
1055
  }
1131
1056
 
1132
- this.paymode.calcReserved(type);
1057
+ this.paymode.calcReserved();
1133
1058
  }
1134
1059
  }
1135
1060
  }, {
@@ -1153,7 +1078,7 @@ var SettlementStore = (_class = function () {
1153
1078
  }
1154
1079
  }, {
1155
1080
  key: 'addPay',
1156
- value: function addPay(type, bookType, isQuick) {
1081
+ value: function addPay(type, isQuick) {
1157
1082
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1158
1083
  PayStyle = _enumController$getEn12.PayStyle;
1159
1084
 
@@ -1165,11 +1090,11 @@ var SettlementStore = (_class = function () {
1165
1090
  pos = index == -1 ? pos : index + 1;
1166
1091
  }
1167
1092
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
1168
- this.paymode.calcReserved(bookType);
1093
+ this.paymode.calcReserved();
1169
1094
  }
1170
1095
  }, {
1171
1096
  key: 'delPay',
1172
- value: function delPay(index, bookType) {
1097
+ value: function delPay(index) {
1173
1098
  var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1174
1099
  PayStyle = _enumController$getEn13.PayStyle;
1175
1100
 
@@ -1177,7 +1102,7 @@ var SettlementStore = (_class = function () {
1177
1102
  return mode.paymethodId === index;
1178
1103
  });
1179
1104
  this.paymode.currentFocus = -1;
1180
- this.paymode.calcReserved(bookType);
1105
+ this.paymode.calcReserved();
1181
1106
  }
1182
1107
 
1183
1108
  // 获取储值是否重复, 在commit方法中使用
@@ -1225,8 +1150,8 @@ var SettlementStore = (_class = function () {
1225
1150
  }, {
1226
1151
  key: 'commit',
1227
1152
  value: function () {
1228
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1229
- var status, paylist, ret, _ref11, _ref11$data, code, returnMsg, state, ret1, ret2;
1153
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1154
+ var status, paylist, ret, _ref10, _ref10$data, code, returnMsg, state, ret1, ret2;
1230
1155
 
1231
1156
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1232
1157
  while (1) {
@@ -1267,9 +1192,9 @@ var SettlementStore = (_class = function () {
1267
1192
 
1268
1193
  case 12:
1269
1194
  ret = _context4.sent;
1270
- _ref11 = ret || {}, _ref11$data = _ref11.data;
1271
- _ref11$data = _ref11$data === undefined ? {} : _ref11$data;
1272
- code = _ref11$data.code, returnMsg = _ref11$data.returnMsg;
1195
+ _ref10 = ret || {}, _ref10$data = _ref10.data;
1196
+ _ref10$data = _ref10$data === undefined ? {} : _ref10$data;
1197
+ code = _ref10$data.code, returnMsg = _ref10$data.returnMsg;
1273
1198
 
1274
1199
  if (!(code && code == 10001)) {
1275
1200
  _context4.next = 24;
@@ -1351,7 +1276,7 @@ var SettlementStore = (_class = function () {
1351
1276
  }));
1352
1277
 
1353
1278
  function commit(_x3) {
1354
- return _ref10.apply(this, arguments);
1279
+ return _ref9.apply(this, arguments);
1355
1280
  }
1356
1281
 
1357
1282
  return commit;
@@ -1365,10 +1290,10 @@ var SettlementStore = (_class = function () {
1365
1290
  }, {
1366
1291
  key: 'saveMember',
1367
1292
  value: function () {
1368
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1293
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1369
1294
  var _this11 = this;
1370
1295
 
1371
- var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref13, type, data, msg, code;
1296
+ var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref12, type, data, msg, code;
1372
1297
 
1373
1298
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1374
1299
  while (1) {
@@ -1430,7 +1355,7 @@ var SettlementStore = (_class = function () {
1430
1355
 
1431
1356
  case 11:
1432
1357
  ret = _context5.sent;
1433
- _ref13 = ret || {}, type = _ref13.type, data = _ref13.data, msg = _ref13.msg, code = _ref13.code;
1358
+ _ref12 = ret || {}, type = _ref12.type, data = _ref12.data, msg = _ref12.msg, code = _ref12.code;
1434
1359
 
1435
1360
  if (!(type === true)) {
1436
1361
  _context5.next = 17;
@@ -1461,7 +1386,7 @@ var SettlementStore = (_class = function () {
1461
1386
  }));
1462
1387
 
1463
1388
  function saveMember() {
1464
- return _ref12.apply(this, arguments);
1389
+ return _ref11.apply(this, arguments);
1465
1390
  }
1466
1391
 
1467
1392
  return saveMember;
@@ -1469,10 +1394,10 @@ var SettlementStore = (_class = function () {
1469
1394
  }, {
1470
1395
  key: 'save',
1471
1396
  value: function () {
1472
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1397
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1473
1398
  var _this12 = this;
1474
1399
 
1475
- var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, _getLoginInfo3, PreSellOrBook, PercentageWhenBook, _ref15, IdbusiType, DistributionMode, prepaidAmount, fullPayment, dtoParams, payList, payment, tradeType, ret, _ref16, type, data, msg, code;
1400
+ var _enumController$getEn16, PayStyle, TradeType, IPMSG, RetailTypeEnum, dtoParams, payList, payment, tradeType, ret, _ref14, type, data, msg, code;
1476
1401
 
1477
1402
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1478
1403
  while (1) {
@@ -1571,48 +1496,32 @@ var SettlementStore = (_class = function () {
1571
1496
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1572
1497
  }
1573
1498
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1574
- _getLoginInfo3 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo3.PreSellOrBook, PercentageWhenBook = _getLoginInfo3.PercentageWhenBook;
1575
- _ref15 = this.dto || {}, IdbusiType = _ref15.IdbusiType, DistributionMode = _ref15.DistributionMode;
1576
-
1577
- if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
1578
- prepaidAmount = (0, _utils.getFixedNumber)(this.dto.RetailPaymentDetails.reduce(function (c, item) {
1579
- return c + (item.Amount || 0);
1580
- }, 0));
1581
- fullPayment = (0, _utils.getFixedNumber)(this.dto.RetailDetails.reduce(function (c, item) {
1582
- return c + (item.TaxAmount || 0);
1583
- }, 0));
1584
-
1585
- this.isFull = fullPayment == prepaidAmount; // 是否全款
1586
- (0, _mobx.runInAction)(function () {
1587
- _this12.dto.PrepaidAmount = prepaidAmount;
1588
- });
1589
- }
1590
1499
  _context6.t1 = this.dto.IdbusiType == 37;
1591
1500
 
1592
1501
  if (!_context6.t1) {
1593
- _context6.next = 14;
1502
+ _context6.next = 11;
1594
1503
  break;
1595
1504
  }
1596
1505
 
1597
- _context6.next = 13;
1506
+ _context6.next = 10;
1598
1507
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1599
1508
 
1600
- case 13:
1509
+ case 10:
1601
1510
  _context6.t1 = _context6.sent;
1602
1511
 
1603
- case 14:
1512
+ case 11:
1604
1513
  _context6.t0 = _context6.t1;
1605
1514
 
1606
1515
  if (_context6.t0) {
1607
- _context6.next = 17;
1516
+ _context6.next = 14;
1608
1517
  break;
1609
1518
  }
1610
1519
 
1611
1520
  _context6.t0 = this.dto.IdbusiType != 37;
1612
1521
 
1613
- case 17:
1522
+ case 14:
1614
1523
  if (!_context6.t0) {
1615
- _context6.next = 36;
1524
+ _context6.next = 33;
1616
1525
  break;
1617
1526
  }
1618
1527
 
@@ -1624,45 +1533,45 @@ var SettlementStore = (_class = function () {
1624
1533
  });
1625
1534
 
1626
1535
  if (!(payList && payList.length > 0)) {
1627
- _context6.next = 33;
1536
+ _context6.next = 30;
1628
1537
  break;
1629
1538
  }
1630
1539
 
1631
1540
  payment = payList[0];
1632
1541
  tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
1633
- _context6.next = 25;
1542
+ _context6.next = 22;
1634
1543
  return this.thirdPay(1, payment, tradeType, dtoParams);
1635
1544
 
1636
- case 25:
1545
+ case 22:
1637
1546
  ret = _context6.sent;
1638
- _ref16 = ret || {}, type = _ref16.type, data = _ref16.data, msg = _ref16.msg, code = _ref16.code;
1547
+ _ref14 = ret || {}, type = _ref14.type, data = _ref14.data, msg = _ref14.msg, code = _ref14.code;
1639
1548
 
1640
1549
  if (!(type === true)) {
1641
- _context6.next = 31;
1550
+ _context6.next = 28;
1642
1551
  break;
1643
1552
  }
1644
1553
 
1645
1554
  dtoParams = data;
1646
- _context6.next = 33;
1555
+ _context6.next = 30;
1647
1556
  break;
1648
1557
 
1649
- case 31:
1558
+ case 28:
1650
1559
  _message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
1651
1560
  return _context6.abrupt('return', false);
1652
1561
 
1653
- case 33:
1562
+ case 30:
1654
1563
  this.dtoParams = dtoParams;
1655
1564
  console.log('结算信息:', dtoParams);
1656
1565
  return _context6.abrupt('return', (0, _tplusApi.ccApi)({ dto: dtoParams, cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1657
- var _ref17 = resp || {},
1658
- ID = _ref17.ID;
1566
+ var _ref15 = resp || {},
1567
+ ID = _ref15.ID;
1659
1568
 
1660
1569
  _this12.setDtoID(ID);
1661
1570
  _this12.billID = ID;
1662
1571
  _this12.paymode.checkList = [];
1663
1572
  }));
1664
1573
 
1665
- case 36:
1574
+ case 33:
1666
1575
  case 'end':
1667
1576
  return _context6.stop();
1668
1577
  }
@@ -1671,7 +1580,7 @@ var SettlementStore = (_class = function () {
1671
1580
  }));
1672
1581
 
1673
1582
  function save() {
1674
- return _ref14.apply(this, arguments);
1583
+ return _ref13.apply(this, arguments);
1675
1584
  }
1676
1585
 
1677
1586
  return save;
@@ -1688,7 +1597,7 @@ var SettlementStore = (_class = function () {
1688
1597
  return data;
1689
1598
  }
1690
1599
 
1691
- /**
1600
+ /**
1692
1601
  * 二开支付
1693
1602
  * vType:1零售单、2储值单
1694
1603
  * payment:结算方式
@@ -1699,8 +1608,8 @@ var SettlementStore = (_class = function () {
1699
1608
  }, {
1700
1609
  key: 'thirdPay',
1701
1610
  value: function () {
1702
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
1703
- var cto, params, ret, _ref19, Code, _Message, Result, _ref20, ThirdPaymentReturnInfo;
1611
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
1612
+ var cto, params, ret, _ref17, Code, _Message, Result, _ref18, ThirdPaymentReturnInfo;
1704
1613
 
1705
1614
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1706
1615
  while (1) {
@@ -1723,7 +1632,7 @@ var SettlementStore = (_class = function () {
1723
1632
 
1724
1633
  console.log('刷卡返回信息:', ret);
1725
1634
  ret = JSON.parse(ret);
1726
- _ref19 = ret || {}, Code = _ref19.Code, _Message = _ref19.Message, Result = _ref19.Result;
1635
+ _ref17 = ret || {}, Code = _ref17.Code, _Message = _ref17.Message, Result = _ref17.Result;
1727
1636
 
1728
1637
  if (!(Code > 0)) {
1729
1638
  _context7.next = 14;
@@ -1738,7 +1647,7 @@ var SettlementStore = (_class = function () {
1738
1647
  break;
1739
1648
  }
1740
1649
 
1741
- _ref20 = Result || {}, ThirdPaymentReturnInfo = _ref20.ThirdPaymentReturnInfo;
1650
+ _ref18 = Result || {}, ThirdPaymentReturnInfo = _ref18.ThirdPaymentReturnInfo;
1742
1651
 
1743
1652
  if (vType == 1) {
1744
1653
  dto.RetailPaymentDetails.forEach(function (v) {
@@ -1781,7 +1690,7 @@ var SettlementStore = (_class = function () {
1781
1690
  }));
1782
1691
 
1783
1692
  function thirdPay(_x4, _x5, _x6, _x7) {
1784
- return _ref18.apply(this, arguments);
1693
+ return _ref16.apply(this, arguments);
1785
1694
  }
1786
1695
 
1787
1696
  return thirdPay;
@@ -1792,7 +1701,7 @@ var SettlementStore = (_class = function () {
1792
1701
  }, {
1793
1702
  key: 'thirdPayRefund',
1794
1703
  value: function () {
1795
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
1704
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
1796
1705
  var _this13 = this;
1797
1706
 
1798
1707
  var dto, pay, payment, _enumController$getEn17, TradeType;
@@ -1814,7 +1723,7 @@ var SettlementStore = (_class = function () {
1814
1723
  _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
1815
1724
 
1816
1725
  setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1817
- var ret, _ref23, msg;
1726
+ var ret, _ref21, msg;
1818
1727
 
1819
1728
  return _regenerator2.default.wrap(function _callee8$(_context8) {
1820
1729
  while (1) {
@@ -1825,7 +1734,7 @@ var SettlementStore = (_class = function () {
1825
1734
 
1826
1735
  case 2:
1827
1736
  ret = _context8.sent;
1828
- _ref23 = ret || {}, msg = _ref23.msg;
1737
+ _ref21 = ret || {}, msg = _ref21.msg;
1829
1738
 
1830
1739
  console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
1831
1740
 
@@ -1847,7 +1756,7 @@ var SettlementStore = (_class = function () {
1847
1756
  }));
1848
1757
 
1849
1758
  function thirdPayRefund(_x8) {
1850
- return _ref21.apply(this, arguments);
1759
+ return _ref19.apply(this, arguments);
1851
1760
  }
1852
1761
 
1853
1762
  return thirdPayRefund;
@@ -1860,7 +1769,7 @@ var SettlementStore = (_class = function () {
1860
1769
  }, {
1861
1770
  key: 'querySettleResult',
1862
1771
  value: function () {
1863
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1772
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1864
1773
  return _regenerator2.default.wrap(function _callee10$(_context10) {
1865
1774
  while (1) {
1866
1775
  switch (_context10.prev = _context10.next) {
@@ -1888,7 +1797,7 @@ var SettlementStore = (_class = function () {
1888
1797
  }));
1889
1798
 
1890
1799
  function querySettleResult() {
1891
- return _ref24.apply(this, arguments);
1800
+ return _ref22.apply(this, arguments);
1892
1801
  }
1893
1802
 
1894
1803
  return querySettleResult;
@@ -1914,14 +1823,14 @@ var SettlementStore = (_class = function () {
1914
1823
  }, {
1915
1824
  key: 'validePwd',
1916
1825
  value: function () {
1917
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
1918
- var _ref26, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1826
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
1827
+ var _ref24, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1919
1828
 
1920
1829
  return _regenerator2.default.wrap(function _callee11$(_context11) {
1921
1830
  while (1) {
1922
1831
  switch (_context11.prev = _context11.next) {
1923
1832
  case 0:
1924
- _ref26 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref26.isNewRetailBCPos;
1833
+ _ref24 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref24.isNewRetailBCPos;
1925
1834
  _context11.prev = 1;
1926
1835
 
1927
1836
  if (!isNewRetailBCPos) {
@@ -2038,7 +1947,7 @@ var SettlementStore = (_class = function () {
2038
1947
  }));
2039
1948
 
2040
1949
  function validePwd(_x9) {
2041
- return _ref25.apply(this, arguments);
1950
+ return _ref23.apply(this, arguments);
2042
1951
  }
2043
1952
 
2044
1953
  return validePwd;
@@ -2091,14 +2000,14 @@ var SettlementStore = (_class = function () {
2091
2000
  var _this16 = this;
2092
2001
 
2093
2002
  return function () {
2094
- var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
2095
- var _getLoginInfo4, IdStore, StoreCode, resp;
2003
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
2004
+ var _getLoginInfo, IdStore, StoreCode, resp;
2096
2005
 
2097
2006
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2098
2007
  while (1) {
2099
2008
  switch (_context12.prev = _context12.next) {
2100
2009
  case 0:
2101
- _getLoginInfo4 = _this16.getLoginInfo(), IdStore = _getLoginInfo4.IdStore, StoreCode = _getLoginInfo4.StoreCode;
2010
+ _getLoginInfo = _this16.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
2102
2011
  _context12.next = 3;
2103
2012
  return (0, _tplusApi.tApi)({ Idmember: _this16.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
2104
2013
 
@@ -2118,7 +2027,7 @@ var SettlementStore = (_class = function () {
2118
2027
  }));
2119
2028
 
2120
2029
  return function (_x10) {
2121
- return _ref27.apply(this, arguments);
2030
+ return _ref25.apply(this, arguments);
2122
2031
  };
2123
2032
  }();
2124
2033
  }
@@ -2128,7 +2037,7 @@ var SettlementStore = (_class = function () {
2128
2037
  var _this17 = this;
2129
2038
 
2130
2039
  return function () {
2131
- var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
2040
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
2132
2041
  var result;
2133
2042
  return _regenerator2.default.wrap(function _callee13$(_context13) {
2134
2043
  while (1) {
@@ -2183,7 +2092,7 @@ var SettlementStore = (_class = function () {
2183
2092
  }));
2184
2093
 
2185
2094
  return function (_x11) {
2186
- return _ref28.apply(this, arguments);
2095
+ return _ref26.apply(this, arguments);
2187
2096
  };
2188
2097
  }();
2189
2098
  }
@@ -2218,7 +2127,7 @@ var SettlementStore = (_class = function () {
2218
2127
  }), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
2219
2128
  exports.default = SettlementStore;
2220
2129
  var PayMode = exports.PayMode = (_class3 = function () {
2221
- //预订场景下,现场提货,且选项设置订金比例非100% or 取货最大补款数大于0时 为 true
2130
+ //应收
2222
2131
  function PayMode() {
2223
2132
  // this.amount=getFixedNumber(amount);
2224
2133
  // this.calcReserved();
@@ -2239,10 +2148,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2239
2148
 
2240
2149
  _initDefineProp(this, 'thePaymodes', _descriptor11, this);
2241
2150
 
2242
- this.bookMaxValue = 0;
2243
- this.isNotFullBook = false;
2244
- this.isNotFullOnlyBook = false;
2245
-
2246
2151
  _initDefineProp(this, 'storageCardNo', _descriptor12, this);
2247
2152
 
2248
2153
  _initDefineProp(this, 'balance', _descriptor13, this);
@@ -2261,8 +2166,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2261
2166
  _initDefineProp(this, 'addDjqs', _descriptor16, this);
2262
2167
  }
2263
2168
  // @observable store = null;
2264
- //只是预订场景下,现场提货,且选项设置订金比例非100%时 为 true
2265
- //应收
2266
2169
 
2267
2170
 
2268
2171
  (0, _createClass3.default)(PayMode, [{
@@ -2288,25 +2191,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
2288
2191
  }
2289
2192
  }, {
2290
2193
  key: 'calcReserved',
2291
- value: function calcReserved(type) {
2194
+ value: function calcReserved() {
2292
2195
  var sum = 0;
2293
2196
  (0, _each3.default)(this.thePaymodes, function (mode) {
2294
2197
  sum = Math.Add(sum, mode.value == "" ? 0 : mode.value);
2295
2198
  });
2296
2199
  this.received = (0, _utils.getFixedNumber)(sum);
2297
- if (type === 'bookPay' && this.isNotFullBook) {
2298
- if (this.amount <= sum && sum <= this.bookMaxValue) {
2299
- this.receivable = (0, _utils.getFixedNumber)(0);
2300
- }
2301
- if (sum < this.amount) {
2302
- this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2303
- }
2304
- if (sum > this.bookMaxValue) {
2305
- this.receivable = (0, _utils.getFixedNumber)(this.bookMaxValue - sum);
2306
- }
2307
- } else {
2308
- this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2309
- }
2200
+ this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
2310
2201
  }
2311
2202
  }, {
2312
2203
  key: 'updateMemberStorageCardNo',
@@ -2345,9 +2236,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2345
2236
  this.checkList = [];
2346
2237
  }
2347
2238
 
2348
- var _ref30 = _mutantsUtil.platform || {},
2349
- isNewRetailBCPos = _ref30.isNewRetailBCPos;
2350
-
2351
2239
  var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2352
2240
  PayStyle = _enumController$getEn18.PayStyle,
2353
2241
  Differentiate = _enumController$getEn18.Differentiate;
@@ -2420,13 +2308,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
2420
2308
  // }
2421
2309
  // else
2422
2310
  // {
2423
-
2424
2311
  var bookingQuantity = 0;
2425
2312
  if (item.BookingQuantity) {
2426
2313
  bookingQuantity = item.BookingQuantity;
2427
2314
  }
2428
2315
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
2429
2316
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
2317
+ //}
2430
2318
  detailDTO.taxRate = item.TaxRate;
2431
2319
  detailDTO.quantity = item.Quantity;
2432
2320
 
@@ -2456,18 +2344,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
2456
2344
  }
2457
2345
  });
2458
2346
 
2459
- var _ref31 = element || {},
2460
- couponCode = _ref31.couponCode,
2461
- name = _ref31.name,
2462
- tieredAmountResult = _ref31.tieredAmountResult,
2463
- fromDate = _ref31.fromDate,
2464
- dateMount = _ref31.dateMount,
2465
- promoMethodEnum = _ref31.promoMethodEnum,
2466
- discountPct = _ref31.discountPct,
2467
- nominalAmount = _ref31.nominalAmount,
2468
- promoId = _ref31.promoId,
2469
- id = _ref31.id,
2470
- doorsill = _ref31.doorsill;
2347
+ var _ref28 = element || {},
2348
+ couponCode = _ref28.couponCode,
2349
+ name = _ref28.name,
2350
+ tieredAmountResult = _ref28.tieredAmountResult,
2351
+ fromDate = _ref28.fromDate,
2352
+ dateMount = _ref28.dateMount,
2353
+ promoMethodEnum = _ref28.promoMethodEnum,
2354
+ discountPct = _ref28.discountPct,
2355
+ nominalAmount = _ref28.nominalAmount,
2356
+ promoId = _ref28.promoId,
2357
+ id = _ref28.id,
2358
+ doorsill = _ref28.doorsill;
2471
2359
 
2472
2360
  var condValue = tieredAmountResult.condValue,
2473
2361
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -2511,9 +2399,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2511
2399
  }, {
2512
2400
  key: 'calcDjqValue',
2513
2401
  value: function calcDjqValue(q1) {
2514
- var _ref32 = _mutantsUtil.platform || {},
2515
- isNewRetailBCPos = _ref32.isNewRetailBCPos;
2516
-
2517
2402
  var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
2518
2403
  Differentiate = _enumController$getEn19.Differentiate;
2519
2404
 
@@ -2602,17 +2487,17 @@ var PayMode = exports.PayMode = (_class3 = function () {
2602
2487
  }, {
2603
2488
  key: 'setPaymodes',
2604
2489
  value: function () {
2605
- var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2490
+ var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2606
2491
  var _this20 = this;
2607
2492
 
2608
- var _ref34, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2493
+ var _ref30, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2609
2494
 
2610
2495
  return _regenerator2.default.wrap(function _callee15$(_context15) {
2611
2496
  while (1) {
2612
2497
  switch (_context15.prev = _context15.next) {
2613
2498
  case 0:
2614
2499
  // 是否移动端判断
2615
- _ref34 = _mutantsUtil.platform || {}, isHorizontalPad = _ref34.isHorizontalPad, isHorizontalSunMi = _ref34.isHorizontalSunMi;
2500
+ _ref30 = _mutantsUtil.platform || {}, isHorizontalPad = _ref30.isHorizontalPad, isHorizontalSunMi = _ref30.isHorizontalSunMi;
2616
2501
  isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
2617
2502
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
2618
2503
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
@@ -2647,7 +2532,6 @@ var PayMode = exports.PayMode = (_class3 = function () {
2647
2532
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
2648
2533
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
2649
2534
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
2650
- virtualPay: mode.VirtualPay,
2651
2535
  thridPayment: mode.ThirdPaymentInfo
2652
2536
  });
2653
2537
  });
@@ -2664,7 +2548,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
2664
2548
  }));
2665
2549
 
2666
2550
  function setPaymodes(_x12, _x13) {
2667
- return _ref33.apply(this, arguments);
2551
+ return _ref29.apply(this, arguments);
2668
2552
  }
2669
2553
 
2670
2554
  return setPaymodes;
@@ -2796,10 +2680,6 @@ var Member = exports.Member = (_class5 = function () {
2796
2680
  var index = (0, _findIndex3.default)(m.DynamicPropertyKeys, function (key) {
2797
2681
  return key == 'canusedbalancestorage';
2798
2682
  });
2799
-
2800
- var _ref35 = _mutantsUtil.platform || {},
2801
- isNewRetailBCPos = _ref35.isNewRetailBCPos;
2802
-
2803
2683
  (0, _mobx.runInAction)(function () {
2804
2684
  _this24.cardNo = m.CardCode;
2805
2685
  if (index >= 0) {