tplus-components-touch 3.27.37 → 3.27.41

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.
@@ -161,18 +161,20 @@ 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
 
168
168
  (0, _classCallCheck3.default)(this, SettlementStore);
169
169
  this.paymode = null;
170
170
  this.dto = null;
171
+ this.dtoParams = null;
171
172
  this.member = null;
172
173
  this.brefund = false;
173
174
  this.bquick = false;
174
175
  this.boriginReturn = false;
175
176
  this.newStyle = true;
177
+ this.isFull = true;
176
178
 
177
179
  _initDefineProp(this, 'queryPwd', _descriptor, this);
178
180
 
@@ -233,8 +235,6 @@ var SettlementStore = (_class = function () {
233
235
  var promoVoucher = {};
234
236
  _this2.paymode.clearDjqs();
235
237
  _this2.paymode.reCalculationDjqs();
236
- // promoVoucher.bizDate = dto.VoucherDate;
237
- // promoVoucher.bizDate = new Date().getTime();
238
238
  promoVoucher.coupon_code = coupon_code || "";
239
239
  promoVoucher.boName = "Retail";
240
240
  promoVoucher.voucherId = dto.ID;
@@ -321,11 +321,7 @@ var SettlementStore = (_class = function () {
321
321
  _message2.default.error(Differentiate.COUPON + '\uFF08' + result.SN + '\uFF09\u4E0D\u53EF\u4E0E\u79EF\u5206\u4E00\u8D77\u4F7F\u7528');
322
322
  } else {
323
323
  var IsEnable = couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
324
-
325
- var _ref2 = _mutantsUtil.platform || {},
326
- isNewRetailBCPos = _ref2.isNewRetailBCPos;
327
-
328
- _this2.addDjq(couponCode, name, IsEnable, promoMethodEnum == "CASH_COUPON" ? nominalAmount : promoDiscount, condValue, null, false, !result.IsRepelWithPoints, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, true, 1);
324
+ _this2.addDjq(couponCode, name, IsEnable, promoMethodEnum == "CASH_COUPON" && nominalAmount, promoDiscount, condValue, null, false, !result.IsRepelWithPoints, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, true, 1);
329
325
  }
330
326
  });
331
327
  if (promoVoucher.coupon_code) {
@@ -352,14 +348,14 @@ var SettlementStore = (_class = function () {
352
348
  };
353
349
 
354
350
  this.checkCoupon = function () {
355
- var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
356
- var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
351
+ var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
352
+ var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
357
353
 
358
354
  return _regenerator2.default.wrap(function _callee$(_context) {
359
355
  while (1) {
360
356
  switch (_context.prev = _context.next) {
361
357
  case 0:
362
- _ref4 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref4.isNewRetailBCPos;
358
+ _ref3 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref3.isNewRetailBCPos;
363
359
 
364
360
  if (!isNewRetailBCPos) {
365
361
  _context.next = 7;
@@ -427,10 +423,56 @@ var SettlementStore = (_class = function () {
427
423
  }));
428
424
 
429
425
  return function (_x) {
430
- return _ref3.apply(this, arguments);
426
+ return _ref2.apply(this, arguments);
431
427
  };
432
428
  }();
433
429
 
430
+ this.repeatStorageModal = function (content) {
431
+ return new _promise2.default(function (resolve, reject) {
432
+ _tplusComponentsTouch.ModalWraper.confirm({
433
+ title: '',
434
+ okText: '继续储值',
435
+ className: 'repeat-modal',
436
+ zIndex: 1007,
437
+ content: content,
438
+ onOk: function () {
439
+ var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
440
+ var ret;
441
+ return _regenerator2.default.wrap(function _callee2$(_context2) {
442
+ while (1) {
443
+ switch (_context2.prev = _context2.next) {
444
+ case 0:
445
+ _context2.next = 2;
446
+ return _this2.saveMember();
447
+
448
+ case 2:
449
+ ret = _context2.sent;
450
+
451
+ if (ret === false) {
452
+ resolve(false);
453
+ } else {
454
+ resolve(true);
455
+ }
456
+
457
+ case 4:
458
+ case 'end':
459
+ return _context2.stop();
460
+ }
461
+ }
462
+ }, _callee2, _this2);
463
+ }));
464
+
465
+ return function onOk() {
466
+ return _ref4.apply(this, arguments);
467
+ };
468
+ }(),
469
+ onCancel: function onCancel() {
470
+ resolve(false);
471
+ }
472
+ });
473
+ });
474
+ };
475
+
434
476
  this.checkIntegralExchangeReturn = function (id) {
435
477
  return new _promise2.default(function (resolve, reject) {
436
478
  (0, _tplusApi.tApi)({ param: { refVoucherId: id } }, 'chanjet.RE.NewPos.GetNewIntegralExchange', false, false, { timeout_skip: true }).then(function (resp) {
@@ -458,7 +500,8 @@ var SettlementStore = (_class = function () {
458
500
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
459
501
  if (params) this.cloudPrintArguments = params;
460
502
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
461
- }
503
+ } //type==2
504
+
462
505
 
463
506
  (0, _createClass3.default)(SettlementStore, [{
464
507
  key: 'initPaymodes',
@@ -604,7 +647,8 @@ var SettlementStore = (_class = function () {
604
647
  authCode: detail.PaymentCode,
605
648
  steadCashIntegral: detail.SteadCashIntegral,
606
649
  overchargesAmount: detail.OverchargesAmount,
607
- boriginReturn: true
650
+ boriginReturn: true,
651
+ thirdPaymentReturnInfo: detail.ThirdPaymentReturnInfo
608
652
  });
609
653
  _this5.paymode.currentMode = newmode;
610
654
  if (themode.paymentType == PayStyle.djq) {
@@ -619,10 +663,10 @@ var SettlementStore = (_class = function () {
619
663
  promoId = _ref7.promoId,
620
664
  id = _ref7.id;
621
665
 
622
- _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
666
+ _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);
623
667
  return;
624
668
  }
625
- _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
669
+ _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, null, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
626
670
  });
627
671
  }
628
672
  _this5.paymode.thePaymodes.push(newmode);
@@ -733,36 +777,36 @@ var SettlementStore = (_class = function () {
733
777
  // address = '/member/memberProfile/FindByStorageCode/'+v;
734
778
  address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
735
779
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
736
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
780
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(result) {
737
781
  var data, m;
738
- return _regenerator2.default.wrap(function _callee2$(_context2) {
782
+ return _regenerator2.default.wrap(function _callee3$(_context3) {
739
783
  while (1) {
740
- switch (_context2.prev = _context2.next) {
784
+ switch (_context3.prev = _context3.next) {
741
785
  case 0:
742
786
  data = result.data;
743
787
  m = data && data.length && data[0];
744
788
 
745
789
  if (!(result && result.data.length)) {
746
- _context2.next = 25;
790
+ _context3.next = 25;
747
791
  break;
748
792
  }
749
793
 
750
794
  if (!(result.data.length === 1)) {
751
- _context2.next = 14;
795
+ _context3.next = 14;
752
796
  break;
753
797
  }
754
798
 
755
799
  if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
756
- _context2.next = 10;
800
+ _context3.next = 10;
757
801
  break;
758
802
  }
759
803
 
760
804
  _this7.paymode.updateCardInfo(m);
761
805
  _this7.handleCzkData(m);
762
- return _context2.abrupt('return', result.data);
806
+ return _context3.abrupt('return', result.data);
763
807
 
764
808
  case 10:
765
- _context2.next = 12;
809
+ _context3.next = 12;
766
810
  return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
767
811
  var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
768
812
  if (data1.enable) {
@@ -775,36 +819,36 @@ var SettlementStore = (_class = function () {
775
819
  });
776
820
 
777
821
  case 12:
778
- _context2.next = 25;
822
+ _context3.next = 25;
779
823
  break;
780
824
 
781
825
  case 14:
782
826
  if (!(result.data && result.data.length === 1)) {
783
- _context2.next = 19;
827
+ _context3.next = 19;
784
828
  break;
785
829
  }
786
830
 
787
831
  _this7.paymode.updateCardInfo(result.data[0]);
788
- return _context2.abrupt('return', result.data);
832
+ return _context3.abrupt('return', result.data);
789
833
 
790
834
  case 19:
791
835
  if (!(result.data && result.data.length > 1)) {
792
- _context2.next = 23;
836
+ _context3.next = 23;
793
837
  break;
794
838
  }
795
839
 
796
- return _context2.abrupt('return', result.data);
840
+ return _context3.abrupt('return', result.data);
797
841
 
798
842
  case 23:
799
843
  _message2.default.warn('没有可用储值卡!');
800
- return _context2.abrupt('return', false);
844
+ return _context3.abrupt('return', false);
801
845
 
802
846
  case 25:
803
847
  case 'end':
804
- return _context2.stop();
848
+ return _context3.stop();
805
849
  }
806
850
  }
807
- }, _callee2, _this7);
851
+ }, _callee3, _this7);
808
852
  }));
809
853
 
810
854
  return function (_x2) {
@@ -855,12 +899,13 @@ var SettlementStore = (_class = function () {
855
899
  }
856
900
  }, {
857
901
  key: 'addDjq',
858
- value: function addDjq(promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
902
+ value: function addDjq(promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
859
903
  var djq = {
860
904
  code: promoCouponCode,
861
905
  promoCouponCode: promoCouponCode,
862
906
  name: name,
863
907
  IsEnable: IsEnable,
908
+ nominalAmount: nominalAmount,
864
909
  amount: amount,
865
910
  doorsill: doorsill, //:"无门槛"
866
911
  LastTS: LastTS,
@@ -920,9 +965,18 @@ var SettlementStore = (_class = function () {
920
965
  //积分抵现不包含运费
921
966
  var BuyerPayFreight = this.dto.BuyerPayFreight;
922
967
  var DistributionMode = this.dto.DistributionMode;
968
+ var IdbusiType = this.dto.IdbusiType;
969
+
970
+ var _getLoginInfo2 = this.getLoginInfo(),
971
+ PreSellOrBook = _getLoginInfo2.PreSellOrBook,
972
+ PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
973
+
923
974
  var value = 0;
924
975
  if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0) {
925
976
  value = (0, _utils.getFixedNumber)(Math.Minus(this.paymode.amount, BuyerPayFreight));
977
+ } else if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
978
+ //预订场景下:现场提货,且订金比例非100%时,积分抵现按全款计算(因为只有全款才能使用积分抵现)
979
+ value = this.paymode.bookMaxValue;
926
980
  } else {
927
981
  value = this.paymode.amount;
928
982
  }
@@ -961,6 +1015,7 @@ var SettlementStore = (_class = function () {
961
1015
  name: themode.name,
962
1016
  exchangeRate: themode.exchangeRate,
963
1017
  calDirection: themode.calDirection,
1018
+ thridPayment: themode.thridPayment,
964
1019
  value: value,
965
1020
  value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
966
1021
  value3: value,
@@ -990,7 +1045,7 @@ var SettlementStore = (_class = function () {
990
1045
  if (type == PayStyle.hyczk || type == PayStyle.jfdx || type == PayStyle.djq) {
991
1046
  this.setMaxAmount(type, mode);
992
1047
  }
993
- console.log(mode);
1048
+ console.log('\u5F53\u524D\u64CD\u4F5C\u7ED3\u7B97\u65B9\u5F0F\u4FE1\u606F:' + mode);
994
1049
  return mode;
995
1050
  }
996
1051
  }, {
@@ -1023,7 +1078,7 @@ var SettlementStore = (_class = function () {
1023
1078
  var BuyerPayFreight = _this9.dto.BuyerPayFreight;
1024
1079
  var DistributionMode = _this9.dto.DistributionMode;
1025
1080
  var value = 0;
1026
- if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type != PayStyle.jfdx) {
1081
+ if ((DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 && type == PayStyle.hyczk) {
1027
1082
  value = (0, _utils.getFixedNumber)(parseFloat(_this9.context.viewModel.getViewItem('Voucher').availableAmount) + parseFloat(BuyerPayFreight));
1028
1083
  } else {
1029
1084
  value = _this9.context.viewModel.getViewItem('Voucher').availableAmount;
@@ -1037,15 +1092,6 @@ var SettlementStore = (_class = function () {
1037
1092
  key: 'changeFocusOnly',
1038
1093
  value: function changeFocusOnly(type) {
1039
1094
  this.paymode.currentFocus = type;
1040
- // 获取焦点时带入剩余的值
1041
- // let mode=_find(this.paymode.thePaymodes,{'paymentType':type});
1042
- // if(mode && this.isIntegralExchange){
1043
- // const shouldSetValue =getFixedNumber(parseFloat(this.paymode.receivable) + parseFloat(mode.value));
1044
- // mode.value = shouldSetValue;
1045
- // mode.value2 = getFixedNumber(mode.calDirection=="88"?shouldSetValue / mode.exchangeRate:(shouldSetValue * mode.exchangeRate));
1046
- // mode.value3 = shouldSetValue;
1047
- // this.paymode.calcReserved();
1048
- // }
1049
1095
  }
1050
1096
  }, {
1051
1097
  key: 'changeClickFocusOnly',
@@ -1114,8 +1160,6 @@ var SettlementStore = (_class = function () {
1114
1160
  });
1115
1161
  pos = index == -1 ? pos : index + 1;
1116
1162
  }
1117
- // this.paymode.thePaymodes.push(this.genNewMode(type) );
1118
-
1119
1163
  this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
1120
1164
  this.paymode.calcReserved(bookType);
1121
1165
  }
@@ -1131,79 +1175,175 @@ var SettlementStore = (_class = function () {
1131
1175
  this.paymode.currentFocus = -1;
1132
1176
  this.paymode.calcReserved(bookType);
1133
1177
  }
1178
+
1179
+ // 获取储值是否重复, 在commit方法中使用
1180
+
1181
+ }, {
1182
+ key: 'findStorageBillValidate',
1183
+ value: function findStorageBillValidate() {
1184
+ var _this10 = this;
1185
+
1186
+ var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1187
+ PayStyle = _enumController$getEn14.PayStyle;
1188
+
1189
+ (0, _mobx.runInAction)(function () {
1190
+ _this10.dto.StorageMutiSettleDetails = [];
1191
+ var thePaymodes = _this10.newStyle ? (0, _filter3.default)(_this10.paymode.thePaymodes, function (mode) {
1192
+ return parseFloat(mode.value) != 0;
1193
+ }) : _this10.paymode.thePaymodes;
1194
+ (0, _each3.default)(thePaymodes, function (mode) {
1195
+ var themode = (0, _find3.default)(_this10.paymode.paymodes, { 'paymentType': mode.paymentType });
1196
+
1197
+ var value = parseFloat(mode.value);
1198
+ var giveChange = null;
1199
+ if (mode.paymentType == PayStyle.xianjin && _this10.paymode.receivable < 0 && value > Math.abs(_this10.paymode.receivable)) {
1200
+ value = Math.Add(value, _this10.paymode.receivable);
1201
+ giveChange = Math.abs(_this10.paymode.receivable);
1202
+ }
1203
+ _this10.dto.StorageMutiSettleDetails.push({
1204
+ Code: mode.paymethodId,
1205
+ StorageAmount: value,
1206
+ GiveChange: giveChange,
1207
+ IdsettleStyle: themode.idSettleStyle,
1208
+ IdbankAccount: themode.idBankAccount,
1209
+ PaymentCode: mode.authCode,
1210
+ DynamicPropertyKeys: [],
1211
+ DynamicPropertyValues: [],
1212
+ DataSource: { Id: _this10.dataSource }
1213
+ });
1214
+ });
1215
+ });
1216
+ return (0, _tplusApi.ccApi)((0, _extends3.default)({}, this.dto), '/marketingtool/Storage/findStorageBillValidate', false, false);
1217
+ }
1218
+
1219
+ //判断是否重复弹框
1220
+
1134
1221
  }, {
1135
1222
  key: 'commit',
1136
1223
  value: function () {
1137
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
1138
- var _ref11, isNewRetailBCPos;
1224
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4(bTest) {
1225
+ var status, paylist, ret, _ref11, _ref11$data, code, returnMsg, state, ret1, ret2;
1139
1226
 
1140
- return _regenerator2.default.wrap(function _callee3$(_context3) {
1227
+ return _regenerator2.default.wrap(function _callee4$(_context4) {
1141
1228
  while (1) {
1142
- switch (_context3.prev = _context3.next) {
1229
+ switch (_context4.prev = _context4.next) {
1143
1230
  case 0:
1144
1231
  console.log('settlementStore.commit开始,参数:' + bTest);
1145
1232
 
1146
1233
  if (!bTest) {
1147
- _context3.next = 3;
1234
+ _context4.next = 3;
1148
1235
  break;
1149
1236
  }
1150
1237
 
1151
- return _context3.abrupt('return', _promise2.default.resolve(true));
1238
+ return _context4.abrupt('return', _promise2.default.resolve(true));
1152
1239
 
1153
1240
  case 3:
1154
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1155
- _context3.prev = 4;
1241
+ status = this.type;
1242
+ _context4.prev = 4;
1243
+ paylist = this.paymode.thePaymodes.filter(function (v) {
1244
+ return !!v.thridPayment && Math.abs(v.value) > 0;
1245
+ }) || [];
1246
+
1247
+ if (!(paylist && paylist.length > 1)) {
1248
+ _context4.next = 9;
1249
+ break;
1250
+ }
1251
+
1252
+ _message2.default.warn('二开支付目前仅支持单一结算方式。');
1253
+ return _context4.abrupt('return', _promise2.default.resolve(false));
1254
+
1255
+ case 9:
1256
+ if (!(status == 1)) {
1257
+ _context4.next = 30;
1258
+ break;
1259
+ }
1260
+
1261
+ _context4.next = 12;
1262
+ return this.findStorageBillValidate();
1263
+
1264
+ case 12:
1265
+ ret = _context4.sent;
1266
+ _ref11 = ret || {}, _ref11$data = _ref11.data;
1267
+ _ref11$data = _ref11$data === undefined ? {} : _ref11$data;
1268
+ code = _ref11$data.code, returnMsg = _ref11$data.returnMsg;
1156
1269
 
1157
- if (!(this.type == 1)) {
1158
- _context3.next = 10;
1270
+ if (!(code && code == 10001)) {
1271
+ _context4.next = 24;
1159
1272
  break;
1160
1273
  }
1161
1274
 
1162
- _context3.next = 8;
1163
- return this.saveMember();
1275
+ _context4.next = 19;
1276
+ return this.repeatStorageModal(returnMsg);
1164
1277
 
1165
- case 8:
1166
- _context3.next = 18;
1167
- break;
1278
+ case 19:
1279
+ state = _context4.sent;
1168
1280
 
1169
- case 10:
1170
- if (!isNewRetailBCPos) {
1171
- _context3.next = 13;
1281
+ if (!(state === false)) {
1282
+ _context4.next = 22;
1172
1283
  break;
1173
1284
  }
1174
1285
 
1175
- _context3.next = 13;
1286
+ return _context4.abrupt('return', _promise2.default.resolve(false));
1287
+
1288
+ case 22:
1289
+ _context4.next = 28;
1290
+ break;
1291
+
1292
+ case 24:
1293
+ _context4.next = 26;
1294
+ return this.saveMember();
1295
+
1296
+ case 26:
1297
+ ret1 = _context4.sent;
1298
+
1299
+ if (ret1 === false) {
1300
+ _promise2.default.resolve(false);
1301
+ }
1302
+
1303
+ case 28:
1304
+ _context4.next = 39;
1305
+ break;
1306
+
1307
+ case 30:
1308
+ _context4.next = 32;
1176
1309
  return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1177
1310
 
1178
- case 13:
1179
- _context3.next = 15;
1311
+ case 32:
1312
+ _context4.next = 34;
1180
1313
  return this.save();
1181
1314
 
1182
- case 15:
1183
- if (!isNewRetailBCPos) {
1184
- _context3.next = 18;
1315
+ case 34:
1316
+ ret2 = _context4.sent;
1317
+
1318
+ if (!(ret2 === false)) {
1319
+ _context4.next = 37;
1185
1320
  break;
1186
1321
  }
1187
1322
 
1188
- _context3.next = 18;
1323
+ return _context4.abrupt('return', _promise2.default.resolve(false));
1324
+
1325
+ case 37:
1326
+ _context4.next = 39;
1189
1327
  return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1190
1328
 
1191
- case 18:
1192
- return _context3.abrupt('return', _promise2.default.resolve(true));
1329
+ case 39:
1330
+ return _context4.abrupt('return', _promise2.default.resolve(true));
1193
1331
 
1194
- case 21:
1195
- _context3.prev = 21;
1196
- _context3.t0 = _context3['catch'](4);
1332
+ case 42:
1333
+ _context4.prev = 42;
1334
+ _context4.t0 = _context4['catch'](4);
1197
1335
 
1198
- console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
1199
- return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
1336
+ console.error('settlementStore.commit失败,错误信息:' + _context4.t0);
1337
+ //其他支付失败时,处理二开支付情况。
1338
+ this.thirdPayRefund(status == 1 ? 2 : 1);
1339
+ return _context4.abrupt('return', _promise2.default.resolve(_context4.t0));
1200
1340
 
1201
- case 25:
1341
+ case 47:
1202
1342
  case 'end':
1203
- return _context3.stop();
1343
+ return _context4.stop();
1204
1344
  }
1205
1345
  }
1206
- }, _callee3, this, [[4, 21]]);
1346
+ }, _callee4, this, [[4, 42]]);
1207
1347
  }));
1208
1348
 
1209
1349
  function commit(_x3) {
@@ -1220,76 +1360,136 @@ var SettlementStore = (_class = function () {
1220
1360
  }
1221
1361
  }, {
1222
1362
  key: 'saveMember',
1223
- value: function saveMember() {
1224
- var _this10 = this;
1363
+ value: function () {
1364
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1365
+ var _this11 = this;
1225
1366
 
1226
- var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1227
- PayStyle = _enumController$getEn14.PayStyle;
1367
+ var _enumController$getEn15, PayStyle, TradeType, IPMSG, dtoParams, payList, payment, tradeType, ret, _ref13, type, data, msg, code;
1228
1368
 
1229
- (0, _mobx.runInAction)(function () {
1230
- _this10.dto.StorageMutiSettleDetails = [];
1231
- var thePaymodes = _this10.newStyle ? (0, _filter3.default)(_this10.paymode.thePaymodes, function (mode) {
1232
- return parseFloat(mode.value) != 0;
1233
- }) : _this10.paymode.thePaymodes;
1234
- (0, _each3.default)(thePaymodes, function (mode) {
1235
- var themode = (0, _find3.default)(_this10.paymode.paymodes, { 'paymentType': mode.paymentType });
1369
+ return _regenerator2.default.wrap(function _callee5$(_context5) {
1370
+ while (1) {
1371
+ switch (_context5.prev = _context5.next) {
1372
+ case 0:
1373
+ _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle, TradeType = _enumController$getEn15.TradeType;
1236
1374
 
1237
- var value = parseFloat(mode.value);
1238
- var giveChange = null;
1239
- if (mode.paymentType == PayStyle.xianjin && _this10.paymode.receivable < 0 && value > Math.abs(_this10.paymode.receivable)) {
1240
- value = Math.Add(value, _this10.paymode.receivable);
1241
- giveChange = Math.abs(_this10.paymode.receivable);
1375
+ (0, _mobx.runInAction)(function () {
1376
+ _this11.dto.StorageMutiSettleDetails = [];
1377
+ var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1378
+ return parseFloat(mode.value) != 0;
1379
+ }) : _this11.paymode.thePaymodes;
1380
+ (0, _each3.default)(thePaymodes, function (mode) {
1381
+ var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1382
+
1383
+ var value = parseFloat(mode.value);
1384
+ var giveChange = null;
1385
+ if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
1386
+ value = Math.Add(value, _this11.paymode.receivable);
1387
+ giveChange = Math.abs(_this11.paymode.receivable);
1388
+ }
1389
+ _this11.dto.StorageMutiSettleDetails.push({
1390
+ Code: mode.paymethodId,
1391
+ StorageAmount: value,
1392
+ GiveChange: giveChange,
1393
+ IdsettleStyle: themode.idSettleStyle,
1394
+ IdbankAccount: themode.idBankAccount,
1395
+ PaymentCode: mode.authCode,
1396
+ DynamicPropertyKeys: [],
1397
+ DynamicPropertyValues: [],
1398
+ DataSource: { Id: _this11.dataSource },
1399
+ ThirdPaymentInfo: themode.thridPayment || null,
1400
+ ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
1401
+ });
1402
+ });
1403
+ });
1404
+ // cc结算调用
1405
+ IPMSG = {};
1406
+
1407
+ if (!!window.localStorage.IPMSG) {
1408
+ IPMSG = JSON.parse(window.localStorage.IPMSG);
1409
+ }
1410
+ dtoParams = this.dto;
1411
+ //处理存在二开支付情况
1412
+
1413
+ payList = dtoParams.StorageMutiSettleDetails.filter(function (v) {
1414
+ return v.ThirdPaymentInfo;
1415
+ });
1416
+
1417
+ if (!(payList && payList.length > 0)) {
1418
+ _context5.next = 19;
1419
+ break;
1420
+ }
1421
+
1422
+ payment = payList[0];
1423
+ tradeType = payment && payment.StorageAmount > 0 ? TradeType.PAY : TradeType.REFUND;
1424
+ _context5.next = 11;
1425
+ return this.thirdPay(2, payment, tradeType, dtoParams);
1426
+
1427
+ case 11:
1428
+ ret = _context5.sent;
1429
+ _ref13 = ret || {}, type = _ref13.type, data = _ref13.data, msg = _ref13.msg, code = _ref13.code;
1430
+
1431
+ if (!(type === true)) {
1432
+ _context5.next = 17;
1433
+ break;
1434
+ }
1435
+
1436
+ dtoParams = data;
1437
+ _context5.next = 19;
1438
+ break;
1439
+
1440
+ case 17:
1441
+ _message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
1442
+ return _context5.abrupt('return', false);
1443
+
1444
+ case 19:
1445
+ this.dtoParams = dtoParams;
1446
+ console.log('储值结算信息:', dtoParams);
1447
+ return _context5.abrupt('return', (0, _tplusApi.tApi)({ dto: dtoParams }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
1448
+ _this11.handlePrint(resp);
1449
+ }));
1450
+
1451
+ case 22:
1452
+ case 'end':
1453
+ return _context5.stop();
1454
+ }
1242
1455
  }
1243
- _this10.dto.StorageMutiSettleDetails.push({
1244
- Code: mode.paymethodId,
1245
- StorageAmount: value,
1246
- GiveChange: giveChange,
1247
- IdsettleStyle: themode.idSettleStyle,
1248
- IdbankAccount: themode.idBankAccount,
1249
- PaymentCode: mode.authCode,
1250
- DynamicPropertyKeys: [],
1251
- DynamicPropertyValues: [],
1252
- DataSource: { Id: _this10.dataSource }
1253
- });
1254
- });
1255
- });
1256
- // cc结算调用
1257
- var IPMSG = {};
1258
- if (!!window.localStorage.IPMSG) {
1259
- IPMSG = JSON.parse(window.localStorage.IPMSG);
1456
+ }, _callee5, this);
1457
+ }));
1458
+
1459
+ function saveMember() {
1460
+ return _ref12.apply(this, arguments);
1260
1461
  }
1261
- return (0, _tplusApi.tApi)({ dto: this.dto }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
1262
- _this10.handlePrint(resp);
1263
- });
1264
- }
1462
+
1463
+ return saveMember;
1464
+ }()
1265
1465
  }, {
1266
1466
  key: 'save',
1267
1467
  value: function () {
1268
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1269
- var _this11 = this;
1468
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
1469
+ var _this12 = this;
1270
1470
 
1271
- var _enumController$getEn15, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum, _getLoginInfo2, PreSellOrBook, PercentageWhenBook, _ref15, IdbusiType, DistributionMode, prepaidAmount;
1471
+ 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;
1272
1472
 
1273
- return _regenerator2.default.wrap(function _callee4$(_context4) {
1473
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
1274
1474
  while (1) {
1275
- switch (_context4.prev = _context4.next) {
1475
+ switch (_context6.prev = _context6.next) {
1276
1476
  case 0:
1277
- _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
1477
+ _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn16.PayStyle, TradeType = _enumController$getEn16.TradeType;
1278
1478
 
1279
1479
  (0, _mobx.runInAction)(function () {
1280
- _this11.dto.RetailPaymentDetails = [];
1281
- _this11.dto.RetailStorageDetails = [];
1282
- _this11.dto.RetailCouponDetails = [];
1480
+ _this12.dto.RetailPaymentDetails = [];
1481
+ _this12.dto.RetailStorageDetails = [];
1482
+ _this12.dto.RetailCouponDetails = [];
1283
1483
  var czkSum = 0;
1284
1484
  var count = 0;
1285
- var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1485
+ var thePaymodes = _this12.newStyle ? (0, _filter3.default)(_this12.paymode.thePaymodes, function (mode) {
1286
1486
  return parseFloat(mode.value) != 0;
1287
- }) : _this11.paymode.thePaymodes;
1487
+ }) : _this12.paymode.thePaymodes;
1288
1488
  (0, _each3.default)(thePaymodes, function (mode, index) {
1289
- var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1489
+ var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': mode.paymentType });
1290
1490
  if (mode.paymentType == PayStyle.hyczk) {
1291
1491
  czkSum = Math.Add(czkSum, mode.value);
1292
- _this11.dto.RetailStorageDetails.push({
1492
+ _this12.dto.RetailStorageDetails.push({
1293
1493
  Code: mode.paymethodId,
1294
1494
  MeStorageCardId: mode.meStorageCardId,
1295
1495
  StoragePaymentAmount: mode.value,
@@ -1298,17 +1498,17 @@ var SettlementStore = (_class = function () {
1298
1498
  Idmember: mode.memberId,
1299
1499
  DynamicPropertyKeys: [],
1300
1500
  DynamicPropertyValues: [],
1301
- DataSource: { Id: _this11.dataSource },
1501
+ DataSource: { Id: _this12.dataSource },
1302
1502
  Password: mode.authCode
1303
1503
  });
1304
1504
  } else {
1305
1505
  var value = parseFloat(mode.value);
1306
1506
  var giveChange = null;
1307
- if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
1308
- value = Math.Add(value, _this11.paymode.receivable);
1309
- giveChange = Math.abs(_this11.paymode.receivable);
1507
+ if (mode.paymentType == PayStyle.xianjin && _this12.paymode.receivable < 0 && value > Math.abs(_this12.paymode.receivable)) {
1508
+ value = Math.Add(value, _this12.paymode.receivable);
1509
+ giveChange = Math.abs(_this12.paymode.receivable);
1310
1510
  }
1311
- _this11.dto.RetailPaymentDetails.push({
1511
+ _this12.dto.RetailPaymentDetails.push({
1312
1512
  Code: mode.paymethodId,
1313
1513
  OrigAmount: mode.exchangeRate != 1 ? mode.value2 : value,
1314
1514
  Amount: value,
@@ -1322,11 +1522,13 @@ var SettlementStore = (_class = function () {
1322
1522
  OverchargesAmount: mode.overchargesAmount,
1323
1523
  DynamicPropertyKeys: [],
1324
1524
  DynamicPropertyValues: [],
1325
- DataSource: { Id: _this11.dataSource }
1525
+ DataSource: { Id: _this12.dataSource },
1526
+ ThirdPaymentInfo: themode.thridPayment || null,
1527
+ ThirdPaymentReturnInfo: mode.thirdPaymentReturnInfo || null
1326
1528
  });
1327
1529
  if (mode.paymentType == PayStyle.djq) {
1328
- (0, _each3.default)(_this11.paymode.checkList && _this11.paymode.checkList.length ? _this11.paymode.checkList : mode.djqs, function (djq) {
1329
- _this11.dto.RetailCouponDetails.push({
1530
+ (0, _each3.default)(_this12.paymode.checkList && _this12.paymode.checkList.length ? _this12.paymode.checkList : mode.djqs, function (djq) {
1531
+ _this12.dto.RetailCouponDetails.push({
1330
1532
  CouponCode: djq.promoCouponCode,
1331
1533
  ReductionAmount: djq.amount,
1332
1534
  EnableAmount: djq.doorsill,
@@ -1336,53 +1538,28 @@ var SettlementStore = (_class = function () {
1336
1538
  PromotionId: djq.promoId,
1337
1539
  PromotionRuleId: djq.promoRuleId,
1338
1540
  PromoCouponAllocatedId: djq.id,
1339
- DataSource: { Id: _this11.dataSource }
1541
+ DataSource: { Id: _this12.dataSource }
1340
1542
  });
1341
1543
  });
1342
1544
  }
1343
1545
  }
1344
1546
  });
1345
-
1346
- var _ref13 = _mutantsUtil.platform || {},
1347
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1348
-
1349
- if (_this11.dto.RetailStorageDetails.length > 0) {
1350
- var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1351
- if (isNewRetailBCPos) {
1352
- _this11.dto.RetailPaymentDetails.push({
1353
- Code: _this11.paymode.counter,
1354
- OrigAmount: czkSum,
1355
- Amount: czkSum,
1356
- IdsettleStyle: themode.idSettleStyle,
1357
- IdbankAccount: themode.idBankAccount,
1358
- DynamicPropertyKeys: [],
1359
- DynamicPropertyValues: [],
1360
- DataSource: { Id: _this11.dataSource },
1361
- RetailStorageDetails: _this11.dto.RetailStorageDetails
1362
- });
1363
- } else {
1364
- _this11.dto.RetailPaymentDetails.push({
1365
- Code: _this11.paymode.counter,
1366
- OrigAmount: czkSum,
1367
- Amount: czkSum,
1368
- IdsettleStyle: themode.idSettleStyle,
1369
- IdbankAccount: themode.idBankAccount,
1370
- DynamicPropertyKeys: [],
1371
- DynamicPropertyValues: [],
1372
- DataSource: { Id: _this11.dataSource }
1373
- });
1374
- }
1547
+ if (_this12.dto.RetailStorageDetails.length > 0) {
1548
+ var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1549
+ _this12.dto.RetailPaymentDetails.push({
1550
+ Code: _this12.paymode.counter,
1551
+ OrigAmount: czkSum,
1552
+ Amount: czkSum,
1553
+ IdsettleStyle: themode.idSettleStyle,
1554
+ IdbankAccount: themode.idBankAccount,
1555
+ DynamicPropertyKeys: [],
1556
+ DynamicPropertyValues: [],
1557
+ DataSource: { Id: _this12.dataSource },
1558
+ RetailStorageDetails: _this12.dto.RetailStorageDetails
1559
+ });
1375
1560
  }
1376
1561
  });
1377
- _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1378
-
1379
- console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1380
-
1381
- if (!isNewRetailBCPos) {
1382
- _context4.next = 23;
1383
- break;
1384
- }
1385
-
1562
+ console.log('\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1386
1563
  // cc结算调用
1387
1564
  IPMSG = {};
1388
1565
 
@@ -1390,77 +1567,287 @@ var SettlementStore = (_class = function () {
1390
1567
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1391
1568
  }
1392
1569
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1393
- _getLoginInfo2 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo2.PreSellOrBook, PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
1570
+ _getLoginInfo3 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo3.PreSellOrBook, PercentageWhenBook = _getLoginInfo3.PercentageWhenBook;
1394
1571
  _ref15 = this.dto || {}, IdbusiType = _ref15.IdbusiType, DistributionMode = _ref15.DistributionMode;
1395
1572
 
1396
1573
  if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
1397
1574
  prepaidAmount = (0, _utils.getFixedNumber)(this.dto.RetailPaymentDetails.reduce(function (c, item) {
1398
1575
  return c + (item.Amount || 0);
1399
1576
  }, 0));
1577
+ fullPayment = (0, _utils.getFixedNumber)(this.dto.RetailDetails.reduce(function (c, item) {
1578
+ return c + (item.TaxAmount || 0);
1579
+ }, 0));
1400
1580
 
1581
+ this.isFull = fullPayment == prepaidAmount; // 是否全款
1401
1582
  (0, _mobx.runInAction)(function () {
1402
- _this11.dto.PrepaidAmount = prepaidAmount;
1583
+ _this12.dto.PrepaidAmount = prepaidAmount;
1403
1584
  });
1404
1585
  }
1405
- _context4.t1 = this.dto.IdbusiType == 37;
1586
+ _context6.t1 = this.dto.IdbusiType == 37;
1406
1587
 
1407
- if (!_context4.t1) {
1408
- _context4.next = 16;
1588
+ if (!_context6.t1) {
1589
+ _context6.next = 14;
1409
1590
  break;
1410
1591
  }
1411
1592
 
1412
- _context4.next = 15;
1593
+ _context6.next = 13;
1413
1594
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1414
1595
 
1415
- case 15:
1416
- _context4.t1 = _context4.sent;
1596
+ case 13:
1597
+ _context6.t1 = _context6.sent;
1417
1598
 
1418
- case 16:
1419
- _context4.t0 = _context4.t1;
1599
+ case 14:
1600
+ _context6.t0 = _context6.t1;
1420
1601
 
1421
- if (_context4.t0) {
1422
- _context4.next = 19;
1602
+ if (_context6.t0) {
1603
+ _context6.next = 17;
1423
1604
  break;
1424
1605
  }
1425
1606
 
1426
- _context4.t0 = this.dto.IdbusiType != 37;
1607
+ _context6.t0 = this.dto.IdbusiType != 37;
1427
1608
 
1428
- case 19:
1429
- if (!_context4.t0) {
1430
- _context4.next = 21;
1609
+ case 17:
1610
+ if (!_context6.t0) {
1611
+ _context6.next = 36;
1431
1612
  break;
1432
1613
  }
1433
1614
 
1434
- return _context4.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1435
- _this11.setDtoID(resp.ID);
1436
- _this11.paymode.checkList = [];
1437
- _this11.billID = resp.ID;
1438
- }));
1615
+ dtoParams = (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } });
1616
+ //处理存在二开支付情况
1617
+
1618
+ payList = dtoParams.RetailPaymentDetails.filter(function (v) {
1619
+ return v.ThirdPaymentInfo;
1620
+ });
1439
1621
 
1440
- case 21:
1441
- _context4.next = 24;
1622
+ if (!(payList && payList.length > 0)) {
1623
+ _context6.next = 33;
1624
+ break;
1625
+ }
1626
+
1627
+ payment = payList[0];
1628
+ tradeType = payment && payment.Amount > 0 ? TradeType.PAY : TradeType.REFUND;
1629
+ _context6.next = 25;
1630
+ return this.thirdPay(1, payment, tradeType, dtoParams);
1631
+
1632
+ case 25:
1633
+ ret = _context6.sent;
1634
+ _ref16 = ret || {}, type = _ref16.type, data = _ref16.data, msg = _ref16.msg, code = _ref16.code;
1635
+
1636
+ if (!(type === true)) {
1637
+ _context6.next = 31;
1638
+ break;
1639
+ }
1640
+
1641
+ dtoParams = data;
1642
+ _context6.next = 33;
1442
1643
  break;
1443
1644
 
1444
- case 23:
1445
- return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1446
- _this11.setDtoID(resp.ID);
1447
- _this11.billID = resp.ID;
1645
+ case 31:
1646
+ _message2.default.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
1647
+ return _context6.abrupt('return', false);
1648
+
1649
+ case 33:
1650
+ this.dtoParams = dtoParams;
1651
+ console.log('结算信息:', dtoParams);
1652
+ 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) {
1653
+ var _ref17 = resp || {},
1654
+ ID = _ref17.ID;
1655
+
1656
+ _this12.setDtoID(ID);
1657
+ _this12.billID = ID;
1658
+ _this12.paymode.checkList = [];
1448
1659
  }));
1449
1660
 
1450
- case 24:
1661
+ case 36:
1451
1662
  case 'end':
1452
- return _context4.stop();
1663
+ return _context6.stop();
1453
1664
  }
1454
1665
  }
1455
- }, _callee4, this);
1666
+ }, _callee6, this);
1456
1667
  }));
1457
1668
 
1458
1669
  function save() {
1459
- return _ref12.apply(this, arguments);
1670
+ return _ref14.apply(this, arguments);
1460
1671
  }
1461
1672
 
1462
1673
  return save;
1463
1674
  }()
1675
+
1676
+ //裁剪二开支付数据
1677
+
1678
+ }, {
1679
+ key: 'removeThirdPayDto',
1680
+ value: function removeThirdPayDto(dto) {
1681
+ var data = (0, _extends3.default)({}, dto);
1682
+ delete data['DynamicPropertyKeys'];
1683
+ delete data['DynamicPropertyValues'];
1684
+ return data;
1685
+ }
1686
+
1687
+ /**
1688
+ * 二开支付
1689
+ * vType:1零售单、2储值单
1690
+ * payment:结算方式
1691
+ * trade:00表示结算、02表示退款
1692
+ * dto:结算数据集合
1693
+ */
1694
+
1695
+ }, {
1696
+ key: 'thirdPay',
1697
+ value: function () {
1698
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(vType, payment, trade, dto) {
1699
+ var cto, params, ret, _ref19, Code, _Message, Result, _ref20, ThirdPaymentReturnInfo;
1700
+
1701
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
1702
+ while (1) {
1703
+ switch (_context7.prev = _context7.next) {
1704
+ case 0:
1705
+ _context7.prev = 0;
1706
+ cto = this.removeThirdPayDto(dto);
1707
+ params = { VoucherType: vType, Payment: payment, TradeType: trade, dto: cto };
1708
+
1709
+ console.log('刷卡信息:', (0, _stringify2.default)(params));
1710
+ _context7.next = 6;
1711
+ return new _promise2.default(function (resolve, reject) {
1712
+ _mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, params), function (res) {
1713
+ return resolve(res);
1714
+ });
1715
+ });
1716
+
1717
+ case 6:
1718
+ ret = _context7.sent;
1719
+
1720
+ console.log('刷卡返回信息:', ret);
1721
+ ret = JSON.parse(ret);
1722
+ _ref19 = ret || {}, Code = _ref19.Code, _Message = _ref19.Message, Result = _ref19.Result;
1723
+
1724
+ if (!(Code > 0)) {
1725
+ _context7.next = 14;
1726
+ break;
1727
+ }
1728
+
1729
+ return _context7.abrupt('return', { type: false, data: null, msg: _Message, code: Code });
1730
+
1731
+ case 14:
1732
+ if (!(trade == '00')) {
1733
+ _context7.next = 20;
1734
+ break;
1735
+ }
1736
+
1737
+ _ref20 = Result || {}, ThirdPaymentReturnInfo = _ref20.ThirdPaymentReturnInfo;
1738
+
1739
+ if (vType == 1) {
1740
+ dto.RetailPaymentDetails.forEach(function (v) {
1741
+ if (v.ThirdPaymentInfo != null && Math.abs(v.Amount) > 0) {
1742
+ v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1743
+ }
1744
+ });
1745
+ } else if (vType == 2) {
1746
+ dto.StorageMutiSettleDetails.forEach(function (v) {
1747
+ if (v.ThirdPaymentInfo != null && Math.abs(v.StorageAmount) > 0) {
1748
+ v.ThirdPaymentReturnInfo = ThirdPaymentReturnInfo;
1749
+ }
1750
+ });
1751
+ }
1752
+ return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
1753
+
1754
+ case 20:
1755
+ if (!(trade == '02')) {
1756
+ _context7.next = 22;
1757
+ break;
1758
+ }
1759
+
1760
+ return _context7.abrupt('return', { type: true, data: dto, msg: _Message, code: Code });
1761
+
1762
+ case 22:
1763
+ _context7.next = 27;
1764
+ break;
1765
+
1766
+ case 24:
1767
+ _context7.prev = 24;
1768
+ _context7.t0 = _context7['catch'](0);
1769
+ return _context7.abrupt('return', { type: false, data: null, msg: _context7.t0, code: '9999' });
1770
+
1771
+ case 27:
1772
+ case 'end':
1773
+ return _context7.stop();
1774
+ }
1775
+ }
1776
+ }, _callee7, this, [[0, 24]]);
1777
+ }));
1778
+
1779
+ function thirdPay(_x4, _x5, _x6, _x7) {
1780
+ return _ref18.apply(this, arguments);
1781
+ }
1782
+
1783
+ return thirdPay;
1784
+ }()
1785
+
1786
+ //二开支付强制退款情况
1787
+
1788
+ }, {
1789
+ key: 'thirdPayRefund',
1790
+ value: function () {
1791
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type) {
1792
+ var _this13 = this;
1793
+
1794
+ var dto, pay, payment, _enumController$getEn17, TradeType;
1795
+
1796
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1797
+ while (1) {
1798
+ switch (_context9.prev = _context9.next) {
1799
+ case 0:
1800
+ dto = type == 1 ? this.dtoParams.RetailPaymentDetails : this.dtoParams.StorageMutiSettleDetails;
1801
+ pay = dto && dto.filter(function (v) {
1802
+ return v.ThirdPaymentInfo;
1803
+ });
1804
+
1805
+ if (pay && pay.length > 0) {
1806
+ setTimeout(function () {
1807
+ _message2.default.warn("支付出现异常,将发起刷卡退款。", { duration: 4.5 });
1808
+ }, 1000);
1809
+ payment = pay[0];
1810
+ _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn17.TradeType;
1811
+
1812
+ setTimeout((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1813
+ var ret, _ref23, msg;
1814
+
1815
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
1816
+ while (1) {
1817
+ switch (_context8.prev = _context8.next) {
1818
+ case 0:
1819
+ _context8.next = 2;
1820
+ return _this13.thirdPay(type, payment, TradeType.REFUND, dto);
1821
+
1822
+ case 2:
1823
+ ret = _context8.sent;
1824
+ _ref23 = ret || {}, msg = _ref23.msg;
1825
+
1826
+ console.log('\u5237\u5361\u652F\u4ED8\u9000\u6B3E:' + msg);
1827
+
1828
+ case 5:
1829
+ case 'end':
1830
+ return _context8.stop();
1831
+ }
1832
+ }
1833
+ }, _callee8, _this13);
1834
+ })), 4500);
1835
+ }
1836
+
1837
+ case 3:
1838
+ case 'end':
1839
+ return _context9.stop();
1840
+ }
1841
+ }
1842
+ }, _callee9, this);
1843
+ }));
1844
+
1845
+ function thirdPayRefund(_x8) {
1846
+ return _ref21.apply(this, arguments);
1847
+ }
1848
+
1849
+ return thirdPayRefund;
1850
+ }()
1464
1851
  }, {
1465
1852
  key: 'setDtoID',
1466
1853
  value: function setDtoID(id) {
@@ -1469,35 +1856,35 @@ var SettlementStore = (_class = function () {
1469
1856
  }, {
1470
1857
  key: 'querySettleResult',
1471
1858
  value: function () {
1472
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1473
- return _regenerator2.default.wrap(function _callee5$(_context5) {
1859
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1860
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1474
1861
  while (1) {
1475
- switch (_context5.prev = _context5.next) {
1862
+ switch (_context10.prev = _context10.next) {
1476
1863
  case 0:
1477
- _context5.prev = 0;
1478
- _context5.t0 = _promise2.default;
1479
- _context5.next = 4;
1864
+ _context10.prev = 0;
1865
+ _context10.t0 = _promise2.default;
1866
+ _context10.next = 4;
1480
1867
  return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
1481
1868
 
1482
1869
  case 4:
1483
- _context5.t1 = _context5.sent;
1484
- return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
1870
+ _context10.t1 = _context10.sent;
1871
+ return _context10.abrupt('return', _context10.t0.resolve.call(_context10.t0, _context10.t1));
1485
1872
 
1486
1873
  case 8:
1487
- _context5.prev = 8;
1488
- _context5.t2 = _context5['catch'](0);
1489
- return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1874
+ _context10.prev = 8;
1875
+ _context10.t2 = _context10['catch'](0);
1876
+ return _context10.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1490
1877
 
1491
1878
  case 11:
1492
1879
  case 'end':
1493
- return _context5.stop();
1880
+ return _context10.stop();
1494
1881
  }
1495
1882
  }
1496
- }, _callee5, this, [[0, 8]]);
1883
+ }, _callee10, this, [[0, 8]]);
1497
1884
  }));
1498
1885
 
1499
1886
  function querySettleResult() {
1500
- return _ref16.apply(this, arguments);
1887
+ return _ref24.apply(this, arguments);
1501
1888
  }
1502
1889
 
1503
1890
  return querySettleResult;
@@ -1523,18 +1910,18 @@ var SettlementStore = (_class = function () {
1523
1910
  }, {
1524
1911
  key: 'validePwd',
1525
1912
  value: function () {
1526
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
1527
- var _ref18, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1913
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(value) {
1914
+ var _ref26, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1528
1915
 
1529
- return _regenerator2.default.wrap(function _callee6$(_context6) {
1916
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1530
1917
  while (1) {
1531
- switch (_context6.prev = _context6.next) {
1918
+ switch (_context11.prev = _context11.next) {
1532
1919
  case 0:
1533
- _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1534
- _context6.prev = 1;
1920
+ _ref26 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref26.isNewRetailBCPos;
1921
+ _context11.prev = 1;
1535
1922
 
1536
1923
  if (!isNewRetailBCPos) {
1537
- _context6.next = 33;
1924
+ _context11.next = 33;
1538
1925
  break;
1539
1926
  }
1540
1927
 
@@ -1544,60 +1931,60 @@ var SettlementStore = (_class = function () {
1544
1931
  memberStorageId = this.paymode.currentMode.meStorageCardId;
1545
1932
 
1546
1933
  if (!cook2) {
1547
- _context6.next = 12;
1934
+ _context11.next = 12;
1548
1935
  break;
1549
1936
  }
1550
1937
 
1551
1938
  if (!cook2.hasOwnProperty(memberStorageId + "")) {
1552
- _context6.next = 12;
1939
+ _context11.next = 12;
1553
1940
  break;
1554
1941
  }
1555
1942
 
1556
1943
  if (!(cook2[memberStorageId] > 3)) {
1557
- _context6.next = 12;
1944
+ _context11.next = 12;
1558
1945
  break;
1559
1946
  }
1560
1947
 
1561
1948
  message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
1562
- return _context6.abrupt('return', _promise2.default.resolve(message));
1949
+ return _context11.abrupt('return', _promise2.default.resolve(message));
1563
1950
 
1564
1951
  case 12:
1565
1952
  _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
1566
1953
  result = null;
1567
1954
 
1568
1955
  if (!(cardTypeEnum === 'BALANCE_CARD')) {
1569
- _context6.next = 20;
1956
+ _context11.next = 20;
1570
1957
  break;
1571
1958
  }
1572
1959
 
1573
- _context6.next = 17;
1960
+ _context11.next = 17;
1574
1961
  return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1575
1962
 
1576
1963
  case 17:
1577
- result = _context6.sent;
1578
- _context6.next = 29;
1964
+ result = _context11.sent;
1965
+ _context11.next = 29;
1579
1966
  break;
1580
1967
 
1581
1968
  case 20:
1582
1969
  if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
1583
- _context6.next = 26;
1970
+ _context11.next = 26;
1584
1971
  break;
1585
1972
  }
1586
1973
 
1587
- _context6.next = 23;
1974
+ _context11.next = 23;
1588
1975
  return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1589
1976
 
1590
1977
  case 23:
1591
- result = _context6.sent;
1592
- _context6.next = 29;
1978
+ result = _context11.sent;
1979
+ _context11.next = 29;
1593
1980
  break;
1594
1981
 
1595
1982
  case 26:
1596
- _context6.next = 28;
1983
+ _context11.next = 28;
1597
1984
  return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1598
1985
 
1599
1986
  case 28:
1600
- result = _context6.sent;
1987
+ result = _context11.sent;
1601
1988
 
1602
1989
  case 29:
1603
1990
  if (!result.data) {
@@ -1616,38 +2003,38 @@ var SettlementStore = (_class = function () {
1616
2003
  this.setCookie('errorPwd', '', -1);
1617
2004
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1618
2005
  }
1619
- return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
2006
+ return _context11.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1620
2007
 
1621
2008
  case 33:
1622
- _context6.next = 35;
2009
+ _context11.next = 35;
1623
2010
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1624
2011
  "Idmember": value.id,
1625
2012
  "Password": value.pwd
1626
2013
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1627
2014
 
1628
2015
  case 35:
1629
- _result = _context6.sent;
1630
- return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
2016
+ _result = _context11.sent;
2017
+ return _context11.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1631
2018
 
1632
2019
  case 37:
1633
- _context6.next = 42;
2020
+ _context11.next = 42;
1634
2021
  break;
1635
2022
 
1636
2023
  case 39:
1637
- _context6.prev = 39;
1638
- _context6.t0 = _context6['catch'](1);
1639
- return _context6.abrupt('return', "failed");
2024
+ _context11.prev = 39;
2025
+ _context11.t0 = _context11['catch'](1);
2026
+ return _context11.abrupt('return', "failed");
1640
2027
 
1641
2028
  case 42:
1642
2029
  case 'end':
1643
- return _context6.stop();
2030
+ return _context11.stop();
1644
2031
  }
1645
2032
  }
1646
- }, _callee6, this, [[1, 39]]);
2033
+ }, _callee11, this, [[1, 39]]);
1647
2034
  }));
1648
2035
 
1649
- function validePwd(_x4) {
1650
- return _ref17.apply(this, arguments);
2036
+ function validePwd(_x9) {
2037
+ return _ref25.apply(this, arguments);
1651
2038
  }
1652
2039
 
1653
2040
  return validePwd;
@@ -1657,7 +2044,7 @@ var SettlementStore = (_class = function () {
1657
2044
  }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
1658
2045
  enumerable: true,
1659
2046
  initializer: function initializer() {
1660
- var _this12 = this;
2047
+ var _this14 = this;
1661
2048
 
1662
2049
  return function (newPass, newPassConfirm) {
1663
2050
  if (!newPass || !newPassConfirm) {
@@ -1669,7 +2056,7 @@ var SettlementStore = (_class = function () {
1669
2056
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1670
2057
  return (0, _tplusApi.ccApi)({
1671
2058
  Idstore: idstore,
1672
- meMemberId: _this12.paymode.currentMode.memberId,
2059
+ meMemberId: _this14.paymode.currentMode.memberId,
1673
2060
  oldPassword: null,
1674
2061
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1675
2062
  dataSource: "POS"
@@ -1683,137 +2070,137 @@ var SettlementStore = (_class = function () {
1683
2070
  }), _applyDecoratedDescriptor(_class.prototype, 'initByOriginReturn', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'initByOriginReturn'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'quickSettle', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'quickSettle'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusAndAddPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusAndAddPay'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
1684
2071
  enumerable: true,
1685
2072
  initializer: function initializer() {
1686
- var _this13 = this;
2073
+ var _this15 = this;
1687
2074
 
1688
2075
  return function () {
1689
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
1690
- var _getLoginInfo3, IdStore, StoreCode, resp;
2076
+ var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(_this) {
2077
+ var _getLoginInfo4, IdStore, StoreCode, resp;
1691
2078
 
1692
- return _regenerator2.default.wrap(function _callee7$(_context7) {
2079
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
1693
2080
  while (1) {
1694
- switch (_context7.prev = _context7.next) {
2081
+ switch (_context12.prev = _context12.next) {
1695
2082
  case 0:
1696
- _getLoginInfo3 = _this13.getLoginInfo(), IdStore = _getLoginInfo3.IdStore, StoreCode = _getLoginInfo3.StoreCode;
1697
- _context7.next = 3;
1698
- return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
2083
+ _getLoginInfo4 = _this15.getLoginInfo(), IdStore = _getLoginInfo4.IdStore, StoreCode = _getLoginInfo4.StoreCode;
2084
+ _context12.next = 3;
2085
+ return (0, _tplusApi.tApi)({ Idmember: _this15.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1699
2086
 
1700
2087
  case 3:
1701
- resp = _context7.sent;
2088
+ resp = _context12.sent;
1702
2089
 
1703
2090
  _this.member = resp;
1704
2091
  _this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
1705
- return _context7.abrupt('return', _promise2.default.resolve(resp));
2092
+ return _context12.abrupt('return', _promise2.default.resolve(resp));
1706
2093
 
1707
2094
  case 7:
1708
2095
  case 'end':
1709
- return _context7.stop();
2096
+ return _context12.stop();
1710
2097
  }
1711
2098
  }
1712
- }, _callee7, _this13);
2099
+ }, _callee12, _this15);
1713
2100
  }));
1714
2101
 
1715
- return function (_x5) {
1716
- return _ref19.apply(this, arguments);
2102
+ return function (_x10) {
2103
+ return _ref27.apply(this, arguments);
1717
2104
  };
1718
2105
  }();
1719
2106
  }
1720
2107
  }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
1721
2108
  enumerable: true,
1722
2109
  initializer: function initializer() {
1723
- var _this14 = this;
2110
+ var _this16 = this;
1724
2111
 
1725
2112
  return function () {
1726
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
2113
+ var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(memberId) {
1727
2114
  var result;
1728
- return _regenerator2.default.wrap(function _callee8$(_context8) {
2115
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
1729
2116
  while (1) {
1730
- switch (_context8.prev = _context8.next) {
2117
+ switch (_context13.prev = _context13.next) {
1731
2118
  case 0:
1732
- _context8.next = 2;
2119
+ _context13.next = 2;
1733
2120
  return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
1734
2121
 
1735
2122
  case 2:
1736
- result = _context8.sent;
2123
+ result = _context13.sent;
1737
2124
 
1738
2125
  if (!(result && result.data.length)) {
1739
- _context8.next = 20;
2126
+ _context13.next = 20;
1740
2127
  break;
1741
2128
  }
1742
2129
 
1743
2130
  if (!(result.data.length === 1)) {
1744
- _context8.next = 9;
2131
+ _context13.next = 9;
1745
2132
  break;
1746
2133
  }
1747
2134
 
1748
- _this14.paymode.updateCardInfo(result.data[0]);
1749
- return _context8.abrupt('return', result.data);
2135
+ _this16.paymode.updateCardInfo(result.data[0]);
2136
+ return _context13.abrupt('return', result.data);
1750
2137
 
1751
2138
  case 9:
1752
2139
  if (!(result.data && result.data.length === 1)) {
1753
- _context8.next = 14;
2140
+ _context13.next = 14;
1754
2141
  break;
1755
2142
  }
1756
2143
 
1757
- _this14.paymode.updateCardInfo(result.data[0]);
1758
- return _context8.abrupt('return', result.data);
2144
+ _this16.paymode.updateCardInfo(result.data[0]);
2145
+ return _context13.abrupt('return', result.data);
1759
2146
 
1760
2147
  case 14:
1761
2148
  if (!(result.data && result.data.length > 1)) {
1762
- _context8.next = 18;
2149
+ _context13.next = 18;
1763
2150
  break;
1764
2151
  }
1765
2152
 
1766
- return _context8.abrupt('return', result.data);
2153
+ return _context13.abrupt('return', result.data);
1767
2154
 
1768
2155
  case 18:
1769
2156
  _message2.default.warn('没有可用储值卡!');
1770
- return _context8.abrupt('return', false);
2157
+ return _context13.abrupt('return', false);
1771
2158
 
1772
2159
  case 20:
1773
2160
  case 'end':
1774
- return _context8.stop();
2161
+ return _context13.stop();
1775
2162
  }
1776
2163
  }
1777
- }, _callee8, _this14);
2164
+ }, _callee13, _this16);
1778
2165
  }));
1779
2166
 
1780
- return function (_x6) {
1781
- return _ref20.apply(this, arguments);
2167
+ return function (_x11) {
2168
+ return _ref28.apply(this, arguments);
1782
2169
  };
1783
2170
  }();
1784
2171
  }
1785
2172
  }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
1786
2173
  enumerable: true,
1787
2174
  initializer: function initializer() {
1788
- var _this15 = this;
2175
+ var _this17 = this;
1789
2176
 
1790
- return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
2177
+ return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1791
2178
  var address, result;
1792
- return _regenerator2.default.wrap(function _callee9$(_context9) {
2179
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
1793
2180
  while (1) {
1794
- switch (_context9.prev = _context9.next) {
2181
+ switch (_context14.prev = _context14.next) {
1795
2182
  case 0:
1796
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
1797
- _context9.next = 3;
2183
+ address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this17.paymode.currentMode.storageCardNo;
2184
+ _context14.next = 3;
1798
2185
  return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1799
2186
 
1800
2187
  case 3:
1801
- result = _context9.sent;
2188
+ result = _context14.sent;
1802
2189
 
1803
- _this15.paymode.updateCardInfo(result.data);
2190
+ _this17.paymode.updateCardInfo(result.data);
1804
2191
 
1805
2192
  case 5:
1806
2193
  case 'end':
1807
- return _context9.stop();
2194
+ return _context14.stop();
1808
2195
  }
1809
2196
  }
1810
- }, _callee9, _this15);
2197
+ }, _callee14, _this17);
1811
2198
  }));
1812
2199
  }
1813
2200
  }), _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);
1814
2201
  exports.default = SettlementStore;
1815
2202
  var PayMode = exports.PayMode = (_class3 = function () {
1816
- //预订非全款 or 取货最大补款数大于0时 为 true
2203
+ //预订场景下,现场提货,且选项设置订金比例非100% or 取货最大补款数大于0时 为 true
1817
2204
  function PayMode() {
1818
2205
  // this.amount=getFixedNumber(amount);
1819
2206
  // this.calcReserved();
@@ -1856,7 +2243,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1856
2243
  _initDefineProp(this, 'addDjqs', _descriptor14, this);
1857
2244
  }
1858
2245
  // @observable store = null;
1859
- //只是预订非全款时为true
2246
+ //只是预订场景下,现场提货,且选项设置订金比例非100%时 为 true
1860
2247
  //应收
1861
2248
 
1862
2249
 
@@ -1926,7 +2313,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1926
2313
  }, {
1927
2314
  key: 'calcDjqCheckValue',
1928
2315
  value: function calcDjqCheckValue(q1, dto, params) {
1929
- var _this16 = this;
2316
+ var _this18 = this;
1930
2317
 
1931
2318
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1932
2319
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1940,12 +2327,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
1940
2327
  this.checkList = [];
1941
2328
  }
1942
2329
 
1943
- var _ref22 = _mutantsUtil.platform || {},
1944
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
2330
+ var _ref30 = _mutantsUtil.platform || {},
2331
+ isNewRetailBCPos = _ref30.isNewRetailBCPos;
1945
2332
 
1946
- var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1947
- PayStyle = _enumController$getEn16.PayStyle,
1948
- Differentiate = _enumController$getEn16.Differentiate;
2333
+ var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2334
+ PayStyle = _enumController$getEn18.PayStyle,
2335
+ Differentiate = _enumController$getEn18.Differentiate;
1949
2336
 
1950
2337
  if (q1) {
1951
2338
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -1973,7 +2360,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1973
2360
  if (!q1.checked) {
1974
2361
  this.checkList.forEach(function (ele, i) {
1975
2362
  if (ele.id === q1.id) {
1976
- _this16.checkList.splice(i, 1);
2363
+ _this18.checkList.splice(i, 1);
1977
2364
  }
1978
2365
  });
1979
2366
  } else {
@@ -2045,24 +2432,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
2045
2432
  if (result && result.length != 0) {
2046
2433
  result.forEach(function (element, index) {
2047
2434
  var djq1 = false;
2048
- _this16.currentMode.djqs.forEach(function (djq) {
2435
+ _this18.currentMode.djqs.forEach(function (djq) {
2049
2436
  if (element.id === djq.id) {
2050
2437
  djq1 = true;
2051
2438
  }
2052
2439
  });
2053
2440
 
2054
- var _ref23 = element || {},
2055
- couponCode = _ref23.couponCode,
2056
- name = _ref23.name,
2057
- tieredAmountResult = _ref23.tieredAmountResult,
2058
- fromDate = _ref23.fromDate,
2059
- dateMount = _ref23.dateMount,
2060
- promoMethodEnum = _ref23.promoMethodEnum,
2061
- discountPct = _ref23.discountPct,
2062
- nominalAmount = _ref23.nominalAmount,
2063
- promoId = _ref23.promoId,
2064
- id = _ref23.id,
2065
- doorsill = _ref23.doorsill;
2441
+ var _ref31 = element || {},
2442
+ couponCode = _ref31.couponCode,
2443
+ name = _ref31.name,
2444
+ tieredAmountResult = _ref31.tieredAmountResult,
2445
+ fromDate = _ref31.fromDate,
2446
+ dateMount = _ref31.dateMount,
2447
+ promoMethodEnum = _ref31.promoMethodEnum,
2448
+ discountPct = _ref31.discountPct,
2449
+ nominalAmount = _ref31.nominalAmount,
2450
+ promoId = _ref31.promoId,
2451
+ id = _ref31.id,
2452
+ doorsill = _ref31.doorsill;
2066
2453
 
2067
2454
  var condValue = tieredAmountResult.condValue,
2068
2455
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -2090,10 +2477,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2090
2477
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
2091
2478
  // id
2092
2479
  // })
2093
- _this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
2480
+ _this18.addDjqs(couponCode, name, true, nominalAmount, promoDiscount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
2094
2481
  djq1 = false;
2095
2482
  } else {
2096
- _this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
2483
+ _this18.setCouponNum(element.id, couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
2097
2484
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
2098
2485
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
2099
2486
  }
@@ -2106,11 +2493,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
2106
2493
  }, {
2107
2494
  key: 'calcDjqValue',
2108
2495
  value: function calcDjqValue(q1) {
2109
- var _ref24 = _mutantsUtil.platform || {},
2110
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2496
+ var _ref32 = _mutantsUtil.platform || {},
2497
+ isNewRetailBCPos = _ref32.isNewRetailBCPos;
2111
2498
 
2112
- var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
2113
- Differentiate = _enumController$getEn17.Differentiate;
2499
+ var _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(),
2500
+ Differentiate = _enumController$getEn19.Differentiate;
2114
2501
 
2115
2502
  if (q1) {
2116
2503
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -2172,8 +2559,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
2172
2559
  this.currentMode.errinfo = '';
2173
2560
  var sum = this.amount;
2174
2561
 
2175
- var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2176
- PayStyle = _enumController$getEn18.PayStyle;
2562
+ var _enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(),
2563
+ PayStyle = _enumController$getEn20.PayStyle;
2177
2564
 
2178
2565
  this.thePaymodes && this.thePaymodes.forEach(function (mode) {
2179
2566
  if (mode.paymentType === PayStyle.hyczk) {
@@ -2197,30 +2584,36 @@ var PayMode = exports.PayMode = (_class3 = function () {
2197
2584
  }, {
2198
2585
  key: 'setPaymodes',
2199
2586
  value: function () {
2200
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
2201
- var _this17 = this;
2587
+ var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(type, isIntegralExchange) {
2588
+ var _this19 = this;
2202
2589
 
2203
- var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2590
+ var _ref34, isHorizontalPad, isHorizontalSunMi, isMobileEnvironment, _enumController$getEn21, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2204
2591
 
2205
- return _regenerator2.default.wrap(function _callee10$(_context10) {
2592
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2206
2593
  while (1) {
2207
- switch (_context10.prev = _context10.next) {
2594
+ switch (_context15.prev = _context15.next) {
2208
2595
  case 0:
2209
- _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
2596
+ // 是否移动端判断
2597
+ _ref34 = _mutantsUtil.platform || {}, isHorizontalPad = _ref34.isHorizontalPad, isHorizontalSunMi = _ref34.isHorizontalSunMi;
2598
+ isMobileEnvironment = !!isHorizontalPad || !!isHorizontalSunMi;
2599
+ _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn21.settleStyleType, PayStyle = _enumController$getEn21.PayStyle;
2210
2600
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2211
2601
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2212
- _context10.next = 5;
2602
+ _context15.next = 7;
2213
2603
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2214
2604
 
2215
- case 5:
2216
- modes = _context10.sent;
2605
+ case 7:
2606
+ modes = _context15.sent;
2217
2607
 
2218
2608
  if (modes) {
2219
2609
  (0, _mobx.runInAction)(function () {
2220
2610
  var paymodes = [];
2221
- (0, _each3.default)(modes.SettleStyles, function (mode, index) {
2611
+ var settleLists = modes.SettleStyles;
2612
+ settleLists = isMobileEnvironment ? settleLists.filter(function (v) {
2613
+ return !v.ThirdPaymentInfo;
2614
+ }) : settleLists;
2615
+ (0, _each3.default)(settleLists, function (mode, index) {
2222
2616
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
2223
-
2224
2617
  if (mode.Code == PayStyle.hyczk) {
2225
2618
  mode.Name = '储值卡';
2226
2619
  }
@@ -2236,24 +2629,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
2236
2629
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
2237
2630
  idCurrency: mode.Currency ? mode.Currency.ID : -1,
2238
2631
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88",
2239
- virtualPay: mode.VirtualPay
2632
+ virtualPay: mode.VirtualPay,
2633
+ thridPayment: mode.ThirdPaymentInfo
2240
2634
  });
2241
2635
  });
2242
- _this17.paymodes = paymodes;
2243
- //modes.QuickSettleStyles
2636
+ _this19.paymodes = paymodes;
2244
2637
  });
2245
2638
  }
2246
2639
 
2247
- case 7:
2640
+ case 9:
2248
2641
  case 'end':
2249
- return _context10.stop();
2642
+ return _context15.stop();
2250
2643
  }
2251
2644
  }
2252
- }, _callee10, this);
2645
+ }, _callee15, this);
2253
2646
  }));
2254
2647
 
2255
- function setPaymodes(_x7, _x8) {
2256
- return _ref25.apply(this, arguments);
2648
+ function setPaymodes(_x12, _x13) {
2649
+ return _ref33.apply(this, arguments);
2257
2650
  }
2258
2651
 
2259
2652
  return setPaymodes;
@@ -2308,21 +2701,22 @@ var PayMode = exports.PayMode = (_class3 = function () {
2308
2701
  }), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
2309
2702
  enumerable: true,
2310
2703
  initializer: function initializer() {
2311
- var _this18 = this;
2704
+ var _this20 = this;
2312
2705
 
2313
2706
  return function () {
2314
- _this18.checkList = [];
2707
+ _this20.checkList = [];
2315
2708
  };
2316
2709
  }
2317
2710
  }), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2318
2711
  enumerable: true,
2319
2712
  initializer: function initializer() {
2320
- var _this19 = this;
2713
+ var _this21 = this;
2321
2714
 
2322
2715
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
2323
- _this19.currentMode.djqs.forEach(function (ele) {
2716
+ _this21.currentMode.djqs.forEach(function (ele) {
2324
2717
  if (ele.id === id) {
2325
- promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
2718
+ ele.amount = promoDiscount;
2719
+ promoMethodEnum == "CASH_COUPON" && (ele.nominalAmount = nominalAmount);
2326
2720
  ele.couponCategoryEnum = couponNum;
2327
2721
  var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
2328
2722
  ele.IsEnable = IsEnable;
@@ -2333,13 +2727,14 @@ var PayMode = exports.PayMode = (_class3 = function () {
2333
2727
  }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2334
2728
  enumerable: true,
2335
2729
  initializer: function initializer() {
2336
- var _this20 = this;
2730
+ var _this22 = this;
2337
2731
 
2338
- return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2732
+ return function (promoCouponCode, name, IsEnable, nominalAmount, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2339
2733
  var djq = {
2340
2734
  promoCouponCode: promoCouponCode,
2341
2735
  name: name,
2342
2736
  IsEnable: IsEnable,
2737
+ nominalAmount: nominalAmount,
2343
2738
  amount: amount,
2344
2739
  doorsill: doorsill,
2345
2740
  LastTS: LastTS,
@@ -2355,13 +2750,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
2355
2750
  couponCategoryEnum: couponCategoryEnum,
2356
2751
  id: id
2357
2752
  };
2358
- _this20.currentMode.djqs.push(djq);
2753
+ _this22.currentMode.djqs.push(djq);
2359
2754
  };
2360
2755
  }
2361
2756
  }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
2362
2757
  var Member = exports.Member = (_class5 = function () {
2363
2758
  function Member(m) {
2364
- var _this21 = this;
2759
+ var _this23 = this;
2365
2760
 
2366
2761
  (0, _classCallCheck3.default)(this, Member);
2367
2762
 
@@ -2384,15 +2779,15 @@ var Member = exports.Member = (_class5 = function () {
2384
2779
  return key == 'canusedbalancestorage';
2385
2780
  });
2386
2781
 
2387
- var _ref26 = _mutantsUtil.platform || {},
2388
- isNewRetailBCPos = _ref26.isNewRetailBCPos;
2782
+ var _ref35 = _mutantsUtil.platform || {},
2783
+ isNewRetailBCPos = _ref35.isNewRetailBCPos;
2389
2784
 
2390
2785
  (0, _mobx.runInAction)(function () {
2391
- _this21.cardNo = m.CardCode;
2786
+ _this23.cardNo = m.CardCode;
2392
2787
  if (index >= 0) {
2393
- _this21.balance = parseFloat(m.DynamicPropertyValues[index]);
2788
+ _this23.balance = parseFloat(m.DynamicPropertyValues[index]);
2394
2789
  } else {
2395
- _this21.balance = _this21.rawbalance;
2790
+ _this23.balance = _this23.rawbalance;
2396
2791
  }
2397
2792
  });
2398
2793
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;