tplus-components-touch 3.26.4 → 3.26.8

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.
@@ -182,6 +182,40 @@ var SettlementStore = (_class = function () {
182
182
 
183
183
  _initDefineProp(this, 'updateCardInfo', _descriptor4, this);
184
184
 
185
+ this.handleCzkData = function (m) {
186
+ if (!m || !m.StorageCardNo) {
187
+ (0, _mobx.runInAction)(function () {
188
+ _this2.paymode.currentMode.errinfo = "无效的会员卡号";
189
+ });
190
+ } else {
191
+ (0, _mobx.runInAction)(function () {
192
+ _this2.paymode.currentMode.errinfo = "";
193
+ _this2.paymode.currentMode.memberId = m.ID;
194
+ _this2.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this2.brefund ? _this2.paymode.receivable : Math.max(_this2.paymode.receivable, 0));
195
+ _this2.updateEvent();
196
+ var message = '';
197
+ var sum = (0, _reduce3.default)(_this2.paymode.thePaymodes, function (total, cur) {
198
+ return total + cur.value;
199
+ }, 0);
200
+ // 对于卡不用判断会员的一些信息
201
+ // if (global.CheckMemberStorageProcessorBlock ) {
202
+ // message= CheckMemberStorageProcessorBlock.execute(m);
203
+ // }
204
+ if (!String.isNullOrEmpty(message)) {
205
+ _this2.paymode.currentMode.errinfo = message;
206
+ } else if (_this2.checkReceived(_this2.paymode.currentMode, "balance")) {
207
+ _this2.paymode.currentMode.errinfo = "余额不足";
208
+ } else if (_this2.paymode.amount > 0 && parseFloat(_this2.paymode.amount) !== sum && _this2.paymode.currentMode.value == 0) {
209
+ _this2.paymode.currentMode.errinfo = "实收金额必须录入";
210
+ } else {
211
+ // 查询成功后将焦点移入下一个输入框
212
+ var nextInput = document.querySelector('.czk .received .input');
213
+ nextInput && nextInput.select();
214
+ }
215
+ });
216
+ }
217
+ };
218
+
185
219
  this.getCouponList = function (coupon_code) {
186
220
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
187
221
  PayStyle = _enumController$getEn.PayStyle,
@@ -546,17 +580,22 @@ var SettlementStore = (_class = function () {
546
580
  });
547
581
  (0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
548
582
  var balanceAmount = null;
549
- if (detail.Member) {
550
- balanceAmount = detail.Member && detail.Member.BalanceStorage;
551
- balanceAmount = balanceAmount - detail.StoragePaymentAmount;
552
- } else {
553
- // balanceAmount =
554
- }
583
+ var storageCardNo = null;
584
+ var meStorageCardId = null;
585
+ detail.DynamicPropertyKeys.forEach(function (ele, index) {
586
+ if (ele === "mestoragecard") {
587
+ balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
588
+ storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
589
+ meStorageCardId = detail.DynamicPropertyValues[index].MeStorageCardId;
590
+ }
591
+ });
555
592
  var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
556
- member: new Member(detail.Member),
557
- authCode: detail.Password,
593
+ member: new Member(detail.Member ? detail.Member : null),
594
+ authCode: detail.Password ? detail.Password : null,
558
595
  balance: balanceAmount,
559
- boriginReturn: true
596
+ boriginReturn: true,
597
+ meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
598
+ storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
560
599
  });
561
600
  _this5.paymode.thePaymodes.push(newmode);
562
601
  });
@@ -647,42 +686,50 @@ var SettlementStore = (_class = function () {
647
686
  if (isNewRetailBCPos) {
648
687
  // address = '/member/memberProfile/FindByStorageCode/'+v;
649
688
  address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
650
- return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
651
- var data = result.data;
652
- var m = data && data.length && data[0];
653
- _this7.paymode.updateCardInfo(m);
654
- if (!m || !m.StorageCardNo) {
655
- (0, _mobx.runInAction)(function () {
656
- _this7.paymode.currentMode.errinfo = "无效的会员卡号";
657
- });
658
- } else {
659
- (0, _mobx.runInAction)(function () {
660
- _this7.paymode.currentMode.errinfo = "";
661
- _this7.paymode.currentMode.memberId = m.ID;
662
- _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
663
- _this7.updateEvent();
664
- var message = '';
665
- var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
666
- return total + cur.value;
667
- }, 0);
668
- // 对于卡不用判断会员的一些信息
669
- // if (global.CheckMemberStorageProcessorBlock ) {
670
- // message= CheckMemberStorageProcessorBlock.execute(m);
671
- // }
672
- if (!String.isNullOrEmpty(message)) {
673
- _this7.paymode.currentMode.errinfo = message;
674
- } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
675
- _this7.paymode.currentMode.errinfo = "余额不足";
676
- } else if (_this7.paymode.amount > 0 && parseFloat(_this7.paymode.amount) !== sum && _this7.paymode.currentMode.value == 0) {
677
- _this7.paymode.currentMode.errinfo = "实收金额必须录入";
678
- } else {
679
- // 查询成功后将焦点移入下一个输入框
680
- var nextInput = document.querySelector('.czk .received .input');
681
- nextInput && nextInput.select();
689
+ return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
690
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
691
+ var data, m;
692
+ return _regenerator2.default.wrap(function _callee2$(_context2) {
693
+ while (1) {
694
+ switch (_context2.prev = _context2.next) {
695
+ case 0:
696
+ data = result.data;
697
+ m = data && data.length && data[0];
698
+
699
+ if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
700
+ _context2.next = 7;
701
+ break;
702
+ }
703
+
704
+ _this7.paymode.updateCardInfo(m);
705
+ _this7.handleCzkData(m);
706
+ _context2.next = 9;
707
+ break;
708
+
709
+ case 7:
710
+ _context2.next = 9;
711
+ return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
712
+ var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
713
+ if (data1.enable) {
714
+ _this7.paymode.updateCardInfo(m);
715
+ _this7.handleCzkData(m);
716
+ } else {
717
+ _message2.default.warn(data1.disableReason);
718
+ }
719
+ });
720
+
721
+ case 9:
722
+ case 'end':
723
+ return _context2.stop();
724
+ }
682
725
  }
683
- });
684
- }
685
- });
726
+ }, _callee2, _this7);
727
+ }));
728
+
729
+ return function (_x2) {
730
+ return _ref9.apply(this, arguments);
731
+ };
732
+ }());
686
733
  } else {
687
734
  address = 'AA.DR.newRetailMember.SearchMember';
688
735
  return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
@@ -998,80 +1045,80 @@ var SettlementStore = (_class = function () {
998
1045
  }, {
999
1046
  key: 'commit',
1000
1047
  value: function () {
1001
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1002
- var _ref10, isNewRetailBCPos;
1048
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
1049
+ var _ref11, isNewRetailBCPos;
1003
1050
 
1004
- return _regenerator2.default.wrap(function _callee2$(_context2) {
1051
+ return _regenerator2.default.wrap(function _callee3$(_context3) {
1005
1052
  while (1) {
1006
- switch (_context2.prev = _context2.next) {
1053
+ switch (_context3.prev = _context3.next) {
1007
1054
  case 0:
1008
1055
  console.log('settlementStore.commit开始,参数:' + bTest);
1009
1056
 
1010
1057
  if (!bTest) {
1011
- _context2.next = 3;
1058
+ _context3.next = 3;
1012
1059
  break;
1013
1060
  }
1014
1061
 
1015
- return _context2.abrupt('return', _promise2.default.resolve(true));
1062
+ return _context3.abrupt('return', _promise2.default.resolve(true));
1016
1063
 
1017
1064
  case 3:
1018
- _ref10 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref10.isNewRetailBCPos;
1019
- _context2.prev = 4;
1065
+ _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1066
+ _context3.prev = 4;
1020
1067
 
1021
1068
  if (!(this.type == 1)) {
1022
- _context2.next = 10;
1069
+ _context3.next = 10;
1023
1070
  break;
1024
1071
  }
1025
1072
 
1026
- _context2.next = 8;
1073
+ _context3.next = 8;
1027
1074
  return this.saveMember();
1028
1075
 
1029
1076
  case 8:
1030
- _context2.next = 18;
1077
+ _context3.next = 18;
1031
1078
  break;
1032
1079
 
1033
1080
  case 10:
1034
1081
  if (!isNewRetailBCPos) {
1035
- _context2.next = 13;
1082
+ _context3.next = 13;
1036
1083
  break;
1037
1084
  }
1038
1085
 
1039
- _context2.next = 13;
1086
+ _context3.next = 13;
1040
1087
  return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1041
1088
 
1042
1089
  case 13:
1043
- _context2.next = 15;
1090
+ _context3.next = 15;
1044
1091
  return this.save();
1045
1092
 
1046
1093
  case 15:
1047
1094
  if (!isNewRetailBCPos) {
1048
- _context2.next = 18;
1095
+ _context3.next = 18;
1049
1096
  break;
1050
1097
  }
1051
1098
 
1052
- _context2.next = 18;
1099
+ _context3.next = 18;
1053
1100
  return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1054
1101
 
1055
1102
  case 18:
1056
- return _context2.abrupt('return', _promise2.default.resolve(true));
1103
+ return _context3.abrupt('return', _promise2.default.resolve(true));
1057
1104
 
1058
1105
  case 21:
1059
- _context2.prev = 21;
1060
- _context2.t0 = _context2['catch'](4);
1106
+ _context3.prev = 21;
1107
+ _context3.t0 = _context3['catch'](4);
1061
1108
 
1062
- console.error('settlementStore.commit失败,错误信息:' + _context2.t0);
1063
- return _context2.abrupt('return', _promise2.default.resolve(_context2.t0));
1109
+ console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
1110
+ return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
1064
1111
 
1065
1112
  case 25:
1066
1113
  case 'end':
1067
- return _context2.stop();
1114
+ return _context3.stop();
1068
1115
  }
1069
1116
  }
1070
- }, _callee2, this, [[4, 21]]);
1117
+ }, _callee3, this, [[4, 21]]);
1071
1118
  }));
1072
1119
 
1073
- function commit(_x2) {
1074
- return _ref9.apply(this, arguments);
1120
+ function commit(_x3) {
1121
+ return _ref10.apply(this, arguments);
1075
1122
  }
1076
1123
 
1077
1124
  return commit;
@@ -1129,14 +1176,14 @@ var SettlementStore = (_class = function () {
1129
1176
  }, {
1130
1177
  key: 'save',
1131
1178
  value: function () {
1132
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1179
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1133
1180
  var _this11 = this;
1134
1181
 
1135
- var _enumController$getEn14, PayStyle, _ref13, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1182
+ var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1136
1183
 
1137
- return _regenerator2.default.wrap(function _callee3$(_context3) {
1184
+ return _regenerator2.default.wrap(function _callee4$(_context4) {
1138
1185
  while (1) {
1139
- switch (_context3.prev = _context3.next) {
1186
+ switch (_context4.prev = _context4.next) {
1140
1187
  case 0:
1141
1188
  _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
1142
1189
 
@@ -1145,7 +1192,6 @@ var SettlementStore = (_class = function () {
1145
1192
  _this11.dto.RetailStorageDetails = [];
1146
1193
  _this11.dto.RetailCouponDetails = [];
1147
1194
  var czkSum = 0;
1148
- var Idmember = _this11.dto.Idmember;
1149
1195
  var count = 0;
1150
1196
  var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1151
1197
  return parseFloat(mode.value) != 0;
@@ -1153,9 +1199,6 @@ var SettlementStore = (_class = function () {
1153
1199
  (0, _each3.default)(thePaymodes, function (mode, index) {
1154
1200
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1155
1201
  if (mode.paymentType == PayStyle.hyczk) {
1156
- if (!Idmember) {
1157
- Idmember = mode.memberId;
1158
- }
1159
1202
  czkSum = Math.Add(czkSum, mode.value);
1160
1203
  _this11.dto.RetailStorageDetails.push({
1161
1204
  Code: mode.paymethodId,
@@ -1211,8 +1254,8 @@ var SettlementStore = (_class = function () {
1211
1254
  }
1212
1255
  });
1213
1256
 
1214
- var _ref12 = _mutantsUtil.platform || {},
1215
- isNewRetailBCPos = _ref12.isNewRetailBCPos;
1257
+ var _ref13 = _mutantsUtil.platform || {},
1258
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1216
1259
 
1217
1260
  if (_this11.dto.RetailStorageDetails.length > 0) {
1218
1261
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1240,15 +1283,14 @@ var SettlementStore = (_class = function () {
1240
1283
  DataSource: { Id: _this11.dataSource }
1241
1284
  });
1242
1285
  }
1243
- _this11.dto.Idmember = Idmember;
1244
1286
  }
1245
1287
  });
1246
- _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1288
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1247
1289
 
1248
1290
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1249
1291
 
1250
1292
  if (!isNewRetailBCPos) {
1251
- _context3.next = 20;
1293
+ _context4.next = 20;
1252
1294
  break;
1253
1295
  }
1254
1296
 
@@ -1259,61 +1301,61 @@ var SettlementStore = (_class = function () {
1259
1301
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1260
1302
  }
1261
1303
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1262
- _context3.t1 = this.dto.IdbusiType == 37;
1304
+ _context4.t1 = this.dto.IdbusiType == 37;
1263
1305
 
1264
- if (!_context3.t1) {
1265
- _context3.next = 13;
1306
+ if (!_context4.t1) {
1307
+ _context4.next = 13;
1266
1308
  break;
1267
1309
  }
1268
1310
 
1269
- _context3.next = 12;
1311
+ _context4.next = 12;
1270
1312
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1271
1313
 
1272
1314
  case 12:
1273
- _context3.t1 = _context3.sent;
1315
+ _context4.t1 = _context4.sent;
1274
1316
 
1275
1317
  case 13:
1276
- _context3.t0 = _context3.t1;
1318
+ _context4.t0 = _context4.t1;
1277
1319
 
1278
- if (_context3.t0) {
1279
- _context3.next = 16;
1320
+ if (_context4.t0) {
1321
+ _context4.next = 16;
1280
1322
  break;
1281
1323
  }
1282
1324
 
1283
- _context3.t0 = this.dto.IdbusiType != 37;
1325
+ _context4.t0 = this.dto.IdbusiType != 37;
1284
1326
 
1285
1327
  case 16:
1286
- if (!_context3.t0) {
1287
- _context3.next = 18;
1328
+ if (!_context4.t0) {
1329
+ _context4.next = 18;
1288
1330
  break;
1289
1331
  }
1290
1332
 
1291
- return _context3.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) {
1333
+ 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) {
1292
1334
  _this11.setDtoID(resp.ID);
1293
1335
  _this11.paymode.checkList = [];
1294
1336
  _this11.billID = resp.ID;
1295
1337
  }));
1296
1338
 
1297
1339
  case 18:
1298
- _context3.next = 21;
1340
+ _context4.next = 21;
1299
1341
  break;
1300
1342
 
1301
1343
  case 20:
1302
- return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1344
+ return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1303
1345
  _this11.setDtoID(resp.ID);
1304
1346
  _this11.billID = resp.ID;
1305
1347
  }));
1306
1348
 
1307
1349
  case 21:
1308
1350
  case 'end':
1309
- return _context3.stop();
1351
+ return _context4.stop();
1310
1352
  }
1311
1353
  }
1312
- }, _callee3, this);
1354
+ }, _callee4, this);
1313
1355
  }));
1314
1356
 
1315
1357
  function save() {
1316
- return _ref11.apply(this, arguments);
1358
+ return _ref12.apply(this, arguments);
1317
1359
  }
1318
1360
 
1319
1361
  return save;
@@ -1326,35 +1368,35 @@ var SettlementStore = (_class = function () {
1326
1368
  }, {
1327
1369
  key: 'querySettleResult',
1328
1370
  value: function () {
1329
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1330
- return _regenerator2.default.wrap(function _callee4$(_context4) {
1371
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1372
+ return _regenerator2.default.wrap(function _callee5$(_context5) {
1331
1373
  while (1) {
1332
- switch (_context4.prev = _context4.next) {
1374
+ switch (_context5.prev = _context5.next) {
1333
1375
  case 0:
1334
- _context4.prev = 0;
1335
- _context4.t0 = _promise2.default;
1336
- _context4.next = 4;
1376
+ _context5.prev = 0;
1377
+ _context5.t0 = _promise2.default;
1378
+ _context5.next = 4;
1337
1379
  return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
1338
1380
 
1339
1381
  case 4:
1340
- _context4.t1 = _context4.sent;
1341
- return _context4.abrupt('return', _context4.t0.resolve.call(_context4.t0, _context4.t1));
1382
+ _context5.t1 = _context5.sent;
1383
+ return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
1342
1384
 
1343
1385
  case 8:
1344
- _context4.prev = 8;
1345
- _context4.t2 = _context4['catch'](0);
1346
- return _context4.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1386
+ _context5.prev = 8;
1387
+ _context5.t2 = _context5['catch'](0);
1388
+ return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1347
1389
 
1348
1390
  case 11:
1349
1391
  case 'end':
1350
- return _context4.stop();
1392
+ return _context5.stop();
1351
1393
  }
1352
1394
  }
1353
- }, _callee4, this, [[0, 8]]);
1395
+ }, _callee5, this, [[0, 8]]);
1354
1396
  }));
1355
1397
 
1356
1398
  function querySettleResult() {
1357
- return _ref14.apply(this, arguments);
1399
+ return _ref15.apply(this, arguments);
1358
1400
  }
1359
1401
 
1360
1402
  return querySettleResult;
@@ -1380,18 +1422,18 @@ var SettlementStore = (_class = function () {
1380
1422
  }, {
1381
1423
  key: 'validePwd',
1382
1424
  value: function () {
1383
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1384
- var _ref16, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, result, count, _result;
1425
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
1426
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, result, count, _result;
1385
1427
 
1386
- return _regenerator2.default.wrap(function _callee5$(_context5) {
1428
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
1387
1429
  while (1) {
1388
- switch (_context5.prev = _context5.next) {
1430
+ switch (_context6.prev = _context6.next) {
1389
1431
  case 0:
1390
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1391
- _context5.prev = 1;
1432
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1433
+ _context6.prev = 1;
1392
1434
 
1393
1435
  if (!isNewRetailBCPos) {
1394
- _context5.next = 27;
1436
+ _context6.next = 27;
1395
1437
  break;
1396
1438
  }
1397
1439
 
@@ -1401,46 +1443,46 @@ var SettlementStore = (_class = function () {
1401
1443
  memberStorageId = this.paymode.currentMode.meStorageCardId;
1402
1444
 
1403
1445
  if (!cook2) {
1404
- _context5.next = 12;
1446
+ _context6.next = 12;
1405
1447
  break;
1406
1448
  }
1407
1449
 
1408
1450
  if (!cook2.hasOwnProperty(memberStorageId + "")) {
1409
- _context5.next = 12;
1451
+ _context6.next = 12;
1410
1452
  break;
1411
1453
  }
1412
1454
 
1413
1455
  if (!(cook2[memberStorageId] > 3)) {
1414
- _context5.next = 12;
1456
+ _context6.next = 12;
1415
1457
  break;
1416
1458
  }
1417
1459
 
1418
1460
  message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
1419
- return _context5.abrupt('return', _promise2.default.resolve(message));
1461
+ return _context6.abrupt('return', _promise2.default.resolve(message));
1420
1462
 
1421
1463
  case 12:
1422
1464
  _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId;
1423
1465
  result = null;
1424
1466
 
1425
1467
  if (!(cardTypeEnum === 'BALANCE_CARD')) {
1426
- _context5.next = 20;
1468
+ _context6.next = 20;
1427
1469
  break;
1428
1470
  }
1429
1471
 
1430
- _context5.next = 17;
1472
+ _context6.next = 17;
1431
1473
  return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1432
1474
 
1433
1475
  case 17:
1434
- result = _context5.sent;
1435
- _context5.next = 23;
1476
+ result = _context6.sent;
1477
+ _context6.next = 23;
1436
1478
  break;
1437
1479
 
1438
1480
  case 20:
1439
- _context5.next = 22;
1481
+ _context6.next = 22;
1440
1482
  return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1441
1483
 
1442
1484
  case 22:
1443
- result = _context5.sent;
1485
+ result = _context6.sent;
1444
1486
 
1445
1487
  case 23:
1446
1488
  if (!result.data) {
@@ -1459,38 +1501,38 @@ var SettlementStore = (_class = function () {
1459
1501
  this.setCookie('errorPwd', '', -1);
1460
1502
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1461
1503
  }
1462
- return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1504
+ return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1463
1505
 
1464
1506
  case 27:
1465
- _context5.next = 29;
1507
+ _context6.next = 29;
1466
1508
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1467
1509
  "Idmember": value.id,
1468
1510
  "Password": value.pwd
1469
1511
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1470
1512
 
1471
1513
  case 29:
1472
- _result = _context5.sent;
1473
- return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1514
+ _result = _context6.sent;
1515
+ return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1474
1516
 
1475
1517
  case 31:
1476
- _context5.next = 36;
1518
+ _context6.next = 36;
1477
1519
  break;
1478
1520
 
1479
1521
  case 33:
1480
- _context5.prev = 33;
1481
- _context5.t0 = _context5['catch'](1);
1482
- return _context5.abrupt('return', "failed");
1522
+ _context6.prev = 33;
1523
+ _context6.t0 = _context6['catch'](1);
1524
+ return _context6.abrupt('return', "failed");
1483
1525
 
1484
1526
  case 36:
1485
1527
  case 'end':
1486
- return _context5.stop();
1528
+ return _context6.stop();
1487
1529
  }
1488
1530
  }
1489
- }, _callee5, this, [[1, 33]]);
1531
+ }, _callee6, this, [[1, 33]]);
1490
1532
  }));
1491
1533
 
1492
- function validePwd(_x3) {
1493
- return _ref15.apply(this, arguments);
1534
+ function validePwd(_x4) {
1535
+ return _ref16.apply(this, arguments);
1494
1536
  }
1495
1537
 
1496
1538
  return validePwd;
@@ -1529,34 +1571,34 @@ var SettlementStore = (_class = function () {
1529
1571
  var _this13 = this;
1530
1572
 
1531
1573
  return function () {
1532
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1574
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
1533
1575
  var _getLoginInfo, IdStore, StoreCode, resp;
1534
1576
 
1535
- return _regenerator2.default.wrap(function _callee6$(_context6) {
1577
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
1536
1578
  while (1) {
1537
- switch (_context6.prev = _context6.next) {
1579
+ switch (_context7.prev = _context7.next) {
1538
1580
  case 0:
1539
1581
  _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1540
- _context6.next = 3;
1582
+ _context7.next = 3;
1541
1583
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1542
1584
 
1543
1585
  case 3:
1544
- resp = _context6.sent;
1586
+ resp = _context7.sent;
1545
1587
 
1546
1588
  _this.member = resp;
1547
1589
  _this.paymode.currentMode.storageCardNo = resp.StorageCardNo;
1548
- return _context6.abrupt('return', _promise2.default.resolve(resp));
1590
+ return _context7.abrupt('return', _promise2.default.resolve(resp));
1549
1591
 
1550
1592
  case 7:
1551
1593
  case 'end':
1552
- return _context6.stop();
1594
+ return _context7.stop();
1553
1595
  }
1554
1596
  }
1555
- }, _callee6, _this13);
1597
+ }, _callee7, _this13);
1556
1598
  }));
1557
1599
 
1558
- return function (_x4) {
1559
- return _ref17.apply(this, arguments);
1600
+ return function (_x5) {
1601
+ return _ref18.apply(this, arguments);
1560
1602
  };
1561
1603
  }();
1562
1604
  }
@@ -1566,17 +1608,17 @@ var SettlementStore = (_class = function () {
1566
1608
  var _this14 = this;
1567
1609
 
1568
1610
  return function () {
1569
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(memberId) {
1611
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
1570
1612
  var result;
1571
- return _regenerator2.default.wrap(function _callee7$(_context7) {
1613
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
1572
1614
  while (1) {
1573
- switch (_context7.prev = _context7.next) {
1615
+ switch (_context8.prev = _context8.next) {
1574
1616
  case 0:
1575
- _context7.next = 2;
1617
+ _context8.next = 2;
1576
1618
  return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId, false, false, { method: 'get' });
1577
1619
 
1578
1620
  case 2:
1579
- result = _context7.sent;
1621
+ result = _context8.sent;
1580
1622
 
1581
1623
  if (result && result.data.length) {
1582
1624
  result.data.forEach(function (m) {
@@ -1589,14 +1631,14 @@ var SettlementStore = (_class = function () {
1589
1631
 
1590
1632
  case 4:
1591
1633
  case 'end':
1592
- return _context7.stop();
1634
+ return _context8.stop();
1593
1635
  }
1594
1636
  }
1595
- }, _callee7, _this14);
1637
+ }, _callee8, _this14);
1596
1638
  }));
1597
1639
 
1598
- return function (_x5) {
1599
- return _ref18.apply(this, arguments);
1640
+ return function (_x6) {
1641
+ return _ref19.apply(this, arguments);
1600
1642
  };
1601
1643
  }();
1602
1644
  }
@@ -1605,27 +1647,27 @@ var SettlementStore = (_class = function () {
1605
1647
  initializer: function initializer() {
1606
1648
  var _this15 = this;
1607
1649
 
1608
- return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1650
+ return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1609
1651
  var address, result;
1610
- return _regenerator2.default.wrap(function _callee8$(_context8) {
1652
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1611
1653
  while (1) {
1612
- switch (_context8.prev = _context8.next) {
1654
+ switch (_context9.prev = _context9.next) {
1613
1655
  case 0:
1614
1656
  address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
1615
- _context8.next = 3;
1657
+ _context9.next = 3;
1616
1658
  return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1617
1659
 
1618
1660
  case 3:
1619
- result = _context8.sent;
1661
+ result = _context9.sent;
1620
1662
 
1621
1663
  _this15.paymode.updateCardInfo(result.data);
1622
1664
 
1623
1665
  case 5:
1624
1666
  case 'end':
1625
- return _context8.stop();
1667
+ return _context9.stop();
1626
1668
  }
1627
1669
  }
1628
- }, _callee8, _this15);
1670
+ }, _callee9, _this15);
1629
1671
  }));
1630
1672
  }
1631
1673
  }), _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);
@@ -1732,8 +1774,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1732
1774
  this.checkList = [];
1733
1775
  }
1734
1776
 
1735
- var _ref20 = _mutantsUtil.platform || {},
1736
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1777
+ var _ref21 = _mutantsUtil.platform || {},
1778
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1737
1779
 
1738
1780
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1739
1781
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1843,18 +1885,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
1843
1885
  }
1844
1886
  });
1845
1887
 
1846
- var _ref21 = element || {},
1847
- couponCode = _ref21.couponCode,
1848
- name = _ref21.name,
1849
- tieredAmountResult = _ref21.tieredAmountResult,
1850
- fromDate = _ref21.fromDate,
1851
- dateMount = _ref21.dateMount,
1852
- promoMethodEnum = _ref21.promoMethodEnum,
1853
- discountPct = _ref21.discountPct,
1854
- nominalAmount = _ref21.nominalAmount,
1855
- promoId = _ref21.promoId,
1856
- id = _ref21.id,
1857
- doorsill = _ref21.doorsill;
1888
+ var _ref22 = element || {},
1889
+ couponCode = _ref22.couponCode,
1890
+ name = _ref22.name,
1891
+ tieredAmountResult = _ref22.tieredAmountResult,
1892
+ fromDate = _ref22.fromDate,
1893
+ dateMount = _ref22.dateMount,
1894
+ promoMethodEnum = _ref22.promoMethodEnum,
1895
+ discountPct = _ref22.discountPct,
1896
+ nominalAmount = _ref22.nominalAmount,
1897
+ promoId = _ref22.promoId,
1898
+ id = _ref22.id,
1899
+ doorsill = _ref22.doorsill;
1858
1900
 
1859
1901
  var condValue = tieredAmountResult.condValue,
1860
1902
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1898,8 +1940,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1898
1940
  }, {
1899
1941
  key: 'calcDjqValue',
1900
1942
  value: function calcDjqValue(q1) {
1901
- var _ref22 = _mutantsUtil.platform || {},
1902
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1943
+ var _ref23 = _mutantsUtil.platform || {},
1944
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1903
1945
 
1904
1946
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1905
1947
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1989,23 +2031,23 @@ var PayMode = exports.PayMode = (_class3 = function () {
1989
2031
  }, {
1990
2032
  key: 'setPaymodes',
1991
2033
  value: function () {
1992
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type, isIntegralExchange) {
2034
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
1993
2035
  var _this17 = this;
1994
2036
 
1995
2037
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1996
2038
 
1997
- return _regenerator2.default.wrap(function _callee9$(_context9) {
2039
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1998
2040
  while (1) {
1999
- switch (_context9.prev = _context9.next) {
2041
+ switch (_context10.prev = _context10.next) {
2000
2042
  case 0:
2001
2043
  _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
2002
2044
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2003
2045
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2004
- _context9.next = 5;
2046
+ _context10.next = 5;
2005
2047
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2006
2048
 
2007
2049
  case 5:
2008
- modes = _context9.sent;
2050
+ modes = _context10.sent;
2009
2051
 
2010
2052
  if (modes) {
2011
2053
  (0, _mobx.runInAction)(function () {
@@ -2037,14 +2079,14 @@ var PayMode = exports.PayMode = (_class3 = function () {
2037
2079
 
2038
2080
  case 7:
2039
2081
  case 'end':
2040
- return _context9.stop();
2082
+ return _context10.stop();
2041
2083
  }
2042
2084
  }
2043
- }, _callee9, this);
2085
+ }, _callee10, this);
2044
2086
  }));
2045
2087
 
2046
- function setPaymodes(_x6, _x7) {
2047
- return _ref23.apply(this, arguments);
2088
+ function setPaymodes(_x7, _x8) {
2089
+ return _ref24.apply(this, arguments);
2048
2090
  }
2049
2091
 
2050
2092
  return setPaymodes;
@@ -2175,8 +2217,8 @@ var Member = exports.Member = (_class5 = function () {
2175
2217
  return key == 'canusedbalancestorage';
2176
2218
  });
2177
2219
 
2178
- var _ref24 = _mutantsUtil.platform || {},
2179
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2220
+ var _ref25 = _mutantsUtil.platform || {},
2221
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2180
2222
 
2181
2223
  (0, _mobx.runInAction)(function () {
2182
2224
  _this21.cardNo = m.CardCode;