tplus-components-touch 3.38.6 → 3.39.2

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