tplus-components-touch 3.25.9 → 3.26.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/dist/components/billSearch/index.js +14 -14
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/cloudPrint/index.js +4 -57
  4. package/dist/components/cloudPrint/index.js.map +1 -1
  5. package/dist/components/deliverySearch/index.js +8 -12
  6. package/dist/components/deliverySearch/index.js.map +1 -1
  7. package/dist/components/hotKey/localConfig.js +133 -14
  8. package/dist/components/hotKey/localConfig.js.map +1 -1
  9. package/dist/components/inventorySearch/store.js +12 -31
  10. package/dist/components/inventorySearch/store.js.map +1 -1
  11. package/dist/components/inventorySearch/tab.js +2 -9
  12. package/dist/components/inventorySearch/tab.js.map +1 -1
  13. package/dist/components/loading/loadingContent.js +4 -13
  14. package/dist/components/loading/loadingContent.js.map +1 -1
  15. package/dist/components/loading/style.less +4 -13
  16. package/dist/components/message/index.js +5 -8
  17. package/dist/components/message/index.js.map +1 -1
  18. package/dist/components/settlement/settlement.js +592 -466
  19. package/dist/components/settlement/settlement.js.map +1 -1
  20. package/dist/components/settlement/settlement.less +57 -5
  21. package/dist/components/settlement/settlementStore.js +284 -170
  22. package/dist/components/settlement/settlementStore.js.map +1 -1
  23. package/dist/components/socket/index.js +5 -6
  24. package/dist/components/socket/index.js.map +1 -1
  25. package/dist/components/ticon/iconfont/demo_index.html +49 -3
  26. package/dist/components/ticon/iconfont/iconfont.css +11 -3
  27. package/dist/components/ticon/iconfont/iconfont.js +6 -6
  28. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  29. package/dist/components/ticon/iconfont/iconfont.json +14 -0
  30. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  31. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  32. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  33. package/dist/index.js +1 -6
  34. package/dist/index.js.map +1 -1
  35. package/dist/util/tools.js +7 -5
  36. package/dist/util/tools.js.map +1 -1
  37. package/package.json +2 -2
  38. package/dist/components/input/scanInput.js +0 -98
  39. package/dist/components/input/scanInput.js.map +0 -1
  40. package/dist/components/input/scanInput.less +0 -28
@@ -41,7 +41,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
41
41
 
42
42
  var _createClass3 = _interopRequireDefault(_createClass2);
43
43
 
44
- var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _desc3, _value3, _class5, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
44
+ var _desc, _value, _class, _descriptor, _descriptor2, _descriptor3, _descriptor4, _desc2, _value2, _class3, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _desc3, _value3, _class5, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -178,6 +178,10 @@ var SettlementStore = (_class = function () {
178
178
 
179
179
  _initDefineProp(this, 'updateMemberInfo', _descriptor2, this);
180
180
 
181
+ _initDefineProp(this, 'updateCurrentMode', _descriptor3, this);
182
+
183
+ _initDefineProp(this, 'updateCardInfo', _descriptor4, this);
184
+
181
185
  this.getCouponList = function (coupon_code) {
182
186
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
183
187
  PayStyle = _enumController$getEn.PayStyle,
@@ -541,8 +545,13 @@ var SettlementStore = (_class = function () {
541
545
  }
542
546
  });
543
547
  (0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
544
- var balanceAmount = detail.Member.BalanceStorage;
545
- balanceAmount = balanceAmount - detail.StoragePaymentAmount;
548
+ var balanceAmount = null;
549
+ if (detail.Member) {
550
+ balanceAmount = detail.Member && detail.Member.BalanceStorage;
551
+ balanceAmount = balanceAmount - detail.StoragePaymentAmount;
552
+ } else {
553
+ // balanceAmount =
554
+ }
546
555
  var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
547
556
  member: new Member(detail.Member),
548
557
  authCode: detail.Password,
@@ -591,7 +600,7 @@ var SettlementStore = (_class = function () {
591
600
 
592
601
  //抵现积分
593
602
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
594
- Idmember: this.paymode.currentMode.member.id,
603
+ Idmember: this.paymode.currentMode.memberId,
595
604
  TotalTaxAmount: this.paymode.amount,
596
605
  BalanceTaxAmount: this.paymode.currentMode.value
597
606
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -611,7 +620,11 @@ var SettlementStore = (_class = function () {
611
620
  }, {
612
621
  key: 'getLoginInfo',
613
622
  value: function getLoginInfo() {
614
- return _mutantsMicrofx.stores.user.options.get('loginInfo');
623
+ var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
624
+ _ref7$loginInfo = _ref7.loginInfo,
625
+ loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
626
+
627
+ return loginInfo;
615
628
  }
616
629
  }, {
617
630
  key: 'loadCzk',
@@ -620,7 +633,6 @@ var SettlementStore = (_class = function () {
620
633
 
621
634
  if ((0, _trim3.default)(v) === "") {
622
635
  (0, _mobx.runInAction)(function () {
623
- _this7.paymode.currentMode.member = new Member(null);
624
636
  _this7.paymode.currentMode.errinfo = "请输入储值卡";
625
637
  });
626
638
  return;
@@ -628,43 +640,35 @@ var SettlementStore = (_class = function () {
628
640
  var IdStore = this.storeInfo.storeID;
629
641
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
630
642
 
631
- var _ref7 = _mutantsUtil.platform || {},
632
- isNewRetailBCPos = _ref7.isNewRetailBCPos;
643
+ var _ref8 = _mutantsUtil.platform || {},
644
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
633
645
 
634
646
  var address = '';
635
647
  if (isNewRetailBCPos) {
636
648
  // address = '/member/memberProfile/FindByStorageCode/'+v;
637
- address = '/member/MeMemberWallet/FindByStorageCode';
649
+ address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
638
650
  return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
639
651
  var data = result.data;
640
- var m = data;
641
-
642
- var _ref8 = _mutantsUtil.platform || {},
643
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
644
-
645
- if (isNewRetailBCPos) {
646
- _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
647
- _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
648
- _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
649
- _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
650
- }
651
- if (!m || !m.ID) {
652
+ var m = data && data.length && data[0];
653
+ _this7.paymode.updateCardInfo(m);
654
+ if (!m || !m.StorageCardNo) {
652
655
  (0, _mobx.runInAction)(function () {
653
656
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
654
657
  });
655
658
  } else {
656
659
  (0, _mobx.runInAction)(function () {
657
660
  _this7.paymode.currentMode.errinfo = "";
658
- _this7.paymode.currentMode.member = new Member(m);
661
+ _this7.paymode.currentMode.memberId = m.ID;
659
662
  _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
660
663
  _this7.updateEvent();
661
664
  var message = '';
662
665
  var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
663
666
  return total + cur.value;
664
667
  }, 0);
665
- if (global.CheckMemberStorageProcessorBlock) {
666
- message = CheckMemberStorageProcessorBlock.execute(m);
667
- }
668
+ // 对于卡不用判断会员的一些信息
669
+ // if (global.CheckMemberStorageProcessorBlock ) {
670
+ // message= CheckMemberStorageProcessorBlock.execute(m);
671
+ // }
668
672
  if (!String.isNullOrEmpty(message)) {
669
673
  _this7.paymode.currentMode.errinfo = message;
670
674
  } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
@@ -684,16 +688,6 @@ var SettlementStore = (_class = function () {
684
688
  return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
685
689
  var data = JSON.parse(result.Data);
686
690
  var m = data && data.length > 0 && data[0];
687
-
688
- var _ref9 = _mutantsUtil.platform || {},
689
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
690
-
691
- if (isNewRetailBCPos) {
692
- _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
693
- _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
694
- _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
695
- _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
696
- }
697
691
  if (!m || !m.ID) {
698
692
  (0, _mobx.runInAction)(function () {
699
693
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
@@ -789,7 +783,7 @@ var SettlementStore = (_class = function () {
789
783
  }
790
784
 
791
785
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
792
- Idmember: this.paymode.currentMode.member.id,
786
+ Idmember: this.paymode.currentMode.memberId,
793
787
  TotalTaxAmount: this.paymode.amount,
794
788
  BalanceTaxAmount: this.paymode.amount
795
789
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -816,6 +810,22 @@ var SettlementStore = (_class = function () {
816
810
 
817
811
  var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
818
812
  var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
813
+ var balance = null;
814
+ var rawbalance = null;
815
+ var storageCardNo = null;
816
+ var memberId = this.member && this.member.ID ? this.member.ID : null;
817
+ var cardTypeEnum = null;
818
+ var walletEnabled = null;
819
+ var meStorageCardId = null;
820
+ if (type === PayStyle.hyczk) {
821
+ // 会员概念改为卡,把这些字段都放开
822
+ cardTypeEnum = this.member.CardTypeEnum ? this.member.CardTypeEnum : null;
823
+ walletEnabled = this.member.WalletEnabled ? this.member.WalletEnabled : null;
824
+ storageCardNo = this.member.StorageCardNo ? this.member.StorageCardNo : null;
825
+ balance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
826
+ rawbalance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
827
+ meStorageCardId = this.member.MeStorageCardId ? this.member.MeStorageCardId : null;
828
+ }
819
829
  var mode = (0, _mobx.observable)({
820
830
  paymethodId: this.paymode.counter,
821
831
  name: themode.name,
@@ -827,6 +837,14 @@ var SettlementStore = (_class = function () {
827
837
  order: this.paymode.thePaymodes.length + 1,
828
838
  paymentType: type,
829
839
  djqs: [],
840
+ card: null,
841
+ cardTypeEnum: !notwithm ? cardTypeEnum : null,
842
+ walletEnabled: !notwithm ? walletEnabled : null,
843
+ memberId: !notwithm ? memberId : null,
844
+ meStorageCardId: !notwithm ? meStorageCardId : null,
845
+ storageCardNo: !notwithm ? storageCardNo : null,
846
+ balance: !notwithm ? balance : null,
847
+ rawbalance: !notwithm ? rawbalance : null,
830
848
  member: new Member(!notwithm ? this.member : null),
831
849
  authCode: '',
832
850
  steadCashIntegral: null,
@@ -834,7 +852,7 @@ var SettlementStore = (_class = function () {
834
852
  maxamount: this.paymode.amount
835
853
  });
836
854
  if (type == PayStyle.hyczk) {
837
- if (!mode.member.id || !mode.member.StorageCardNo) {
855
+ if (!mode.storageCardNo) {
838
856
  (0, _mobx.runInAction)(function () {
839
857
  mode.errinfo = '未录入储值卡';
840
858
  });
@@ -980,8 +998,8 @@ var SettlementStore = (_class = function () {
980
998
  }, {
981
999
  key: 'commit',
982
1000
  value: function () {
983
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
984
- var _ref11, isNewRetailBCPos;
1001
+ var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1002
+ var _ref10, isNewRetailBCPos;
985
1003
 
986
1004
  return _regenerator2.default.wrap(function _callee2$(_context2) {
987
1005
  while (1) {
@@ -997,7 +1015,7 @@ var SettlementStore = (_class = function () {
997
1015
  return _context2.abrupt('return', _promise2.default.resolve(true));
998
1016
 
999
1017
  case 3:
1000
- _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1018
+ _ref10 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref10.isNewRetailBCPos;
1001
1019
  _context2.prev = 4;
1002
1020
 
1003
1021
  if (!(this.type == 1)) {
@@ -1053,7 +1071,7 @@ var SettlementStore = (_class = function () {
1053
1071
  }));
1054
1072
 
1055
1073
  function commit(_x2) {
1056
- return _ref10.apply(this, arguments);
1074
+ return _ref9.apply(this, arguments);
1057
1075
  }
1058
1076
 
1059
1077
  return commit;
@@ -1111,10 +1129,10 @@ var SettlementStore = (_class = function () {
1111
1129
  }, {
1112
1130
  key: 'save',
1113
1131
  value: function () {
1114
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1132
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1115
1133
  var _this11 = this;
1116
1134
 
1117
- var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1135
+ var _enumController$getEn14, PayStyle, _ref13, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1118
1136
 
1119
1137
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1120
1138
  while (1) {
@@ -1136,17 +1154,16 @@ var SettlementStore = (_class = function () {
1136
1154
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1137
1155
  if (mode.paymentType == PayStyle.hyczk) {
1138
1156
  if (!Idmember) {
1139
- Idmember = mode.member.id;
1157
+ Idmember = mode.memberId;
1140
1158
  }
1141
1159
  czkSum = Math.Add(czkSum, mode.value);
1142
- var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
1143
1160
  _this11.dto.RetailStorageDetails.push({
1144
1161
  Code: mode.paymethodId,
1145
- MeStorageCardId: MeStorageCardId,
1162
+ MeStorageCardId: mode.meStorageCardId,
1146
1163
  StoragePaymentAmount: mode.value,
1147
1164
  IsOrigReturn: false,
1148
1165
  BalanceStorage: mode.balance,
1149
- Idmember: mode.member.id,
1166
+ Idmember: mode.memberId,
1150
1167
  DynamicPropertyKeys: [],
1151
1168
  DynamicPropertyValues: [],
1152
1169
  DataSource: { Id: _this11.dataSource },
@@ -1182,7 +1199,7 @@ var SettlementStore = (_class = function () {
1182
1199
  ReductionAmount: djq.amount,
1183
1200
  EnableAmount: djq.doorsill,
1184
1201
  CouponTitle: djq.name,
1185
- IdMember: djq.UMemberID ? mode.member.id : null,
1202
+ IdMember: djq.UMemberID ? mode.memberId : null,
1186
1203
  LastTS: djq.LastTS,
1187
1204
  PromotionId: djq.promoId,
1188
1205
  PromotionRuleId: djq.promoRuleId,
@@ -1194,15 +1211,12 @@ var SettlementStore = (_class = function () {
1194
1211
  }
1195
1212
  });
1196
1213
 
1197
- var _ref13 = _mutantsUtil.platform || {},
1198
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1214
+ var _ref12 = _mutantsUtil.platform || {},
1215
+ isNewRetailBCPos = _ref12.isNewRetailBCPos;
1199
1216
 
1200
1217
  if (_this11.dto.RetailStorageDetails.length > 0) {
1201
1218
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1202
1219
  if (isNewRetailBCPos) {
1203
- // this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
1204
- // value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
1205
- // })
1206
1220
  _this11.dto.RetailPaymentDetails.push({
1207
1221
  Code: _this11.paymode.counter,
1208
1222
  OrigAmount: czkSum,
@@ -1229,7 +1243,7 @@ var SettlementStore = (_class = function () {
1229
1243
  _this11.dto.Idmember = Idmember;
1230
1244
  }
1231
1245
  });
1232
- _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1246
+ _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1233
1247
 
1234
1248
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1235
1249
 
@@ -1299,7 +1313,7 @@ var SettlementStore = (_class = function () {
1299
1313
  }));
1300
1314
 
1301
1315
  function save() {
1302
- return _ref12.apply(this, arguments);
1316
+ return _ref11.apply(this, arguments);
1303
1317
  }
1304
1318
 
1305
1319
  return save;
@@ -1312,7 +1326,7 @@ var SettlementStore = (_class = function () {
1312
1326
  }, {
1313
1327
  key: 'querySettleResult',
1314
1328
  value: function () {
1315
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1329
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1316
1330
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1317
1331
  while (1) {
1318
1332
  switch (_context4.prev = _context4.next) {
@@ -1340,7 +1354,7 @@ var SettlementStore = (_class = function () {
1340
1354
  }));
1341
1355
 
1342
1356
  function querySettleResult() {
1343
- return _ref15.apply(this, arguments);
1357
+ return _ref14.apply(this, arguments);
1344
1358
  }
1345
1359
 
1346
1360
  return querySettleResult;
@@ -1366,37 +1380,37 @@ var SettlementStore = (_class = function () {
1366
1380
  }, {
1367
1381
  key: 'validePwd',
1368
1382
  value: function () {
1369
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1370
- var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
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;
1371
1385
 
1372
1386
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1373
1387
  while (1) {
1374
1388
  switch (_context5.prev = _context5.next) {
1375
1389
  case 0:
1376
- _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1390
+ _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1377
1391
  _context5.prev = 1;
1378
1392
 
1379
1393
  if (!isNewRetailBCPos) {
1380
- _context5.next = 19;
1394
+ _context5.next = 27;
1381
1395
  break;
1382
1396
  }
1383
1397
 
1384
1398
  cook1 = this.getAllCookies()['errorPwd'];
1385
1399
  cook2 = cook1 && JSON.parse(cook1);
1386
1400
  message = '密码输入错误';
1387
- memberId = this.paymode.currentMode.member.MeStorageCardId;
1401
+ memberStorageId = this.paymode.currentMode.meStorageCardId;
1388
1402
 
1389
1403
  if (!cook2) {
1390
1404
  _context5.next = 12;
1391
1405
  break;
1392
1406
  }
1393
1407
 
1394
- if (!cook2.hasOwnProperty(memberId + "")) {
1408
+ if (!cook2.hasOwnProperty(memberStorageId + "")) {
1395
1409
  _context5.next = 12;
1396
1410
  break;
1397
1411
  }
1398
1412
 
1399
- if (!(cook2[memberId] > 3)) {
1413
+ if (!(cook2[memberStorageId] > 3)) {
1400
1414
  _context5.next = 12;
1401
1415
  break;
1402
1416
  }
@@ -1405,60 +1419,78 @@ var SettlementStore = (_class = function () {
1405
1419
  return _context5.abrupt('return', _promise2.default.resolve(message));
1406
1420
 
1407
1421
  case 12:
1408
- _context5.next = 14;
1409
- return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + value.id, false, false);
1422
+ _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId;
1423
+ result = null;
1424
+
1425
+ if (!(cardTypeEnum === 'BALANCE_CARD')) {
1426
+ _context5.next = 20;
1427
+ break;
1428
+ }
1429
+
1430
+ _context5.next = 17;
1431
+ return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1410
1432
 
1411
- case 14:
1433
+ case 17:
1434
+ result = _context5.sent;
1435
+ _context5.next = 23;
1436
+ break;
1437
+
1438
+ case 20:
1439
+ _context5.next = 22;
1440
+ return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1441
+
1442
+ case 22:
1412
1443
  result = _context5.sent;
1413
1444
 
1445
+ case 23:
1414
1446
  if (!result.data) {
1415
1447
  if (cook2) {
1416
- if (cook2.hasOwnProperty(memberId + "")) {
1417
- count = cook2[memberId];
1448
+ if (cook2.hasOwnProperty(memberStorageId + "")) {
1449
+ count = cook2[memberStorageId];
1418
1450
 
1419
- cook2[memberId] = count + 1;
1451
+ cook2[memberStorageId] = count + 1;
1420
1452
  } else {
1421
- cook2[memberId] = 1;
1453
+ cook2[memberStorageId] = 1;
1422
1454
  }
1423
1455
  } else {
1424
1456
  cook2 = {};
1425
- cook2[memberId] = 1;
1457
+ cook2[memberStorageId] = 1;
1426
1458
  }
1427
1459
  this.setCookie('errorPwd', '', -1);
1428
1460
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1429
1461
  }
1430
1462
  return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1431
1463
 
1432
- case 19:
1433
- _context5.next = 21;
1464
+ case 27:
1465
+ _context5.next = 29;
1434
1466
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1435
1467
  "Idmember": value.id,
1436
1468
  "Password": value.pwd
1437
1469
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1438
1470
 
1439
- case 21:
1471
+ case 29:
1440
1472
  _result = _context5.sent;
1441
1473
  return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1442
1474
 
1443
- case 23:
1444
- _context5.next = 28;
1475
+ case 31:
1476
+ _context5.next = 36;
1445
1477
  break;
1446
1478
 
1447
- case 25:
1448
- _context5.prev = 25;
1479
+ case 33:
1480
+ _context5.prev = 33;
1449
1481
  _context5.t0 = _context5['catch'](1);
1450
1482
  return _context5.abrupt('return', "failed");
1451
1483
 
1452
- case 28:
1484
+ case 36:
1453
1485
  case 'end':
1454
1486
  return _context5.stop();
1455
1487
  }
1456
1488
  }
1457
- }, _callee5, this, [[1, 25]]);
1489
+ }, _callee5, this, [[1, 33]]);
1458
1490
  }));
1459
1491
 
1460
1492
  function validePwd(_x3) {
1461
- return _ref16.apply(this, arguments);
1493
+ return _ref15.apply(this, arguments);
1462
1494
  }
1463
1495
 
1464
1496
  return validePwd;
@@ -1480,7 +1512,7 @@ var SettlementStore = (_class = function () {
1480
1512
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1481
1513
  return (0, _tplusApi.ccApi)({
1482
1514
  Idstore: idstore,
1483
- meMemberId: _this12.member.ID,
1515
+ meMemberId: _this12.paymode.currentMode.memberId,
1484
1516
  oldPassword: null,
1485
1517
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1486
1518
  dataSource: "POS"
@@ -1497,7 +1529,7 @@ var SettlementStore = (_class = function () {
1497
1529
  var _this13 = this;
1498
1530
 
1499
1531
  return function () {
1500
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1532
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1501
1533
  var _getLoginInfo, IdStore, StoreCode, resp;
1502
1534
 
1503
1535
  return _regenerator2.default.wrap(function _callee6$(_context6) {
@@ -1512,7 +1544,7 @@ var SettlementStore = (_class = function () {
1512
1544
  resp = _context6.sent;
1513
1545
 
1514
1546
  _this.member = resp;
1515
- _this.paymode.currentMode.member.setStorageCardNo(resp.StorageCardNo);
1547
+ _this.paymode.currentMode.storageCardNo = resp.StorageCardNo;
1516
1548
  return _context6.abrupt('return', _promise2.default.resolve(resp));
1517
1549
 
1518
1550
  case 7:
@@ -1524,10 +1556,78 @@ var SettlementStore = (_class = function () {
1524
1556
  }));
1525
1557
 
1526
1558
  return function (_x4) {
1559
+ return _ref17.apply(this, arguments);
1560
+ };
1561
+ }();
1562
+ }
1563
+ }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
1564
+ enumerable: true,
1565
+ initializer: function initializer() {
1566
+ var _this14 = this;
1567
+
1568
+ return function () {
1569
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(memberId) {
1570
+ var result;
1571
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
1572
+ while (1) {
1573
+ switch (_context7.prev = _context7.next) {
1574
+ case 0:
1575
+ _context7.next = 2;
1576
+ return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId, false, false, { method: 'get' });
1577
+
1578
+ case 2:
1579
+ result = _context7.sent;
1580
+
1581
+ if (result && result.data.length) {
1582
+ result.data.forEach(function (m) {
1583
+ if (m.CardTypeEnum === 'BALANCE_CARD') {
1584
+ // 会员概念改为卡,把这些字段都放开
1585
+ _this14.paymode.updateCardInfo(m);
1586
+ }
1587
+ });
1588
+ }
1589
+
1590
+ case 4:
1591
+ case 'end':
1592
+ return _context7.stop();
1593
+ }
1594
+ }
1595
+ }, _callee7, _this14);
1596
+ }));
1597
+
1598
+ return function (_x5) {
1527
1599
  return _ref18.apply(this, arguments);
1528
1600
  };
1529
1601
  }();
1530
1602
  }
1603
+ }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
1604
+ enumerable: true,
1605
+ initializer: function initializer() {
1606
+ var _this15 = this;
1607
+
1608
+ return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1609
+ var address, result;
1610
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
1611
+ while (1) {
1612
+ switch (_context8.prev = _context8.next) {
1613
+ case 0:
1614
+ address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
1615
+ _context8.next = 3;
1616
+ return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1617
+
1618
+ case 3:
1619
+ result = _context8.sent;
1620
+
1621
+ _this15.paymode.updateCardInfo(result.data);
1622
+
1623
+ case 5:
1624
+ case 'end':
1625
+ return _context8.stop();
1626
+ }
1627
+ }
1628
+ }, _callee8, _this15);
1629
+ }));
1630
+ }
1531
1631
  }), _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);
1532
1632
  exports.default = SettlementStore;
1533
1633
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1542,15 +1642,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
1542
1642
  this.onlineamount = 0;
1543
1643
  this.maxamount = 0;
1544
1644
 
1545
- _initDefineProp(this, 'currentFocus', _descriptor3, this);
1645
+ _initDefineProp(this, 'currentFocus', _descriptor5, this);
1646
+
1647
+ _initDefineProp(this, 'received', _descriptor6, this);
1546
1648
 
1547
- _initDefineProp(this, 'received', _descriptor4, this);
1649
+ _initDefineProp(this, 'receivable', _descriptor7, this);
1548
1650
 
1549
- _initDefineProp(this, 'receivable', _descriptor5, this);
1651
+ _initDefineProp(this, 'paymodes', _descriptor8, this);
1550
1652
 
1551
- _initDefineProp(this, 'paymodes', _descriptor6, this);
1653
+ _initDefineProp(this, 'thePaymodes', _descriptor9, this);
1552
1654
 
1553
- _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1655
+ _initDefineProp(this, 'storageCardNo', _descriptor10, this);
1656
+
1657
+ _initDefineProp(this, 'balance', _descriptor11, this);
1554
1658
 
1555
1659
  this.currentMode = null;
1556
1660
  this.checkList = [];
@@ -1559,11 +1663,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1559
1663
  hotKey: "Ctrl+M"
1560
1664
  };
1561
1665
 
1562
- _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1666
+ _initDefineProp(this, 'calcCheckList', _descriptor12, this);
1563
1667
 
1564
- _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1668
+ _initDefineProp(this, 'setCouponNum', _descriptor13, this);
1565
1669
 
1566
- _initDefineProp(this, 'addDjqs', _descriptor10, this);
1670
+ _initDefineProp(this, 'addDjqs', _descriptor14, this);
1567
1671
  }
1568
1672
  // @observable store = null;
1569
1673
 
@@ -1599,10 +1703,22 @@ var PayMode = exports.PayMode = (_class3 = function () {
1599
1703
  this.received = (0, _utils.getFixedNumber)(sum);
1600
1704
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1601
1705
  }
1706
+ }, {
1707
+ key: 'updateCardInfo',
1708
+ value: function updateCardInfo(m) {
1709
+ this.currentMode.isNeedPassword = m.IsNeedPassword;
1710
+ this.currentMode.meStorageCardId = m.MeStorageCardId;
1711
+ this.currentMode.storageCardNo = m.StorageCardNo;
1712
+ this.currentMode.balance = m.BalanceStorage;
1713
+ this.currentMode.rawbalance = m.BalanceStorage;
1714
+ this.currentMode.cardTypeEnum = m.CardTypeEnum;
1715
+ this.currentMode.walletEnabled = m.WalletEnabled;
1716
+ this.currentMode.memberId = m.ID;
1717
+ }
1602
1718
  }, {
1603
1719
  key: 'calcDjqCheckValue',
1604
1720
  value: function calcDjqCheckValue(q1, dto, params) {
1605
- var _this14 = this;
1721
+ var _this16 = this;
1606
1722
 
1607
1723
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1608
1724
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1616,8 +1732,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1616
1732
  this.checkList = [];
1617
1733
  }
1618
1734
 
1619
- var _ref19 = _mutantsUtil.platform || {},
1620
- isNewRetailBCPos = _ref19.isNewRetailBCPos;
1735
+ var _ref20 = _mutantsUtil.platform || {},
1736
+ isNewRetailBCPos = _ref20.isNewRetailBCPos;
1621
1737
 
1622
1738
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1623
1739
  PayStyle = _enumController$getEn15.PayStyle,
@@ -1649,7 +1765,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1649
1765
  if (!q1.checked) {
1650
1766
  this.checkList.forEach(function (ele, i) {
1651
1767
  if (ele.id === q1.id) {
1652
- _this14.checkList.splice(i, 1);
1768
+ _this16.checkList.splice(i, 1);
1653
1769
  }
1654
1770
  });
1655
1771
  } else {
@@ -1721,24 +1837,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1721
1837
  if (result && result.length != 0) {
1722
1838
  result.forEach(function (element, index) {
1723
1839
  var djq1 = false;
1724
- _this14.currentMode.djqs.forEach(function (djq) {
1840
+ _this16.currentMode.djqs.forEach(function (djq) {
1725
1841
  if (element.id === djq.id) {
1726
1842
  djq1 = true;
1727
1843
  }
1728
1844
  });
1729
1845
 
1730
- var _ref20 = element || {},
1731
- couponCode = _ref20.couponCode,
1732
- name = _ref20.name,
1733
- tieredAmountResult = _ref20.tieredAmountResult,
1734
- fromDate = _ref20.fromDate,
1735
- dateMount = _ref20.dateMount,
1736
- promoMethodEnum = _ref20.promoMethodEnum,
1737
- discountPct = _ref20.discountPct,
1738
- nominalAmount = _ref20.nominalAmount,
1739
- promoId = _ref20.promoId,
1740
- id = _ref20.id,
1741
- doorsill = _ref20.doorsill;
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;
1742
1858
 
1743
1859
  var condValue = tieredAmountResult.condValue,
1744
1860
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1766,10 +1882,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1766
1882
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1767
1883
  // id
1768
1884
  // })
1769
- _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1885
+ _this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1770
1886
  djq1 = false;
1771
1887
  } else {
1772
- _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1888
+ _this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1773
1889
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1774
1890
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1775
1891
  }
@@ -1782,8 +1898,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1782
1898
  }, {
1783
1899
  key: 'calcDjqValue',
1784
1900
  value: function calcDjqValue(q1) {
1785
- var _ref21 = _mutantsUtil.platform || {},
1786
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1901
+ var _ref22 = _mutantsUtil.platform || {},
1902
+ isNewRetailBCPos = _ref22.isNewRetailBCPos;
1787
1903
 
1788
1904
  var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1789
1905
  Differentiate = _enumController$getEn16.Differentiate;
@@ -1868,28 +1984,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
1868
1984
  }, {
1869
1985
  key: 'calcMemberBalance',
1870
1986
  value: function calcMemberBalance() {
1871
- this.currentMode.balance = this.currentMode.member.rawbalance - this.currentMode.value;
1987
+ this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
1872
1988
  }
1873
1989
  }, {
1874
1990
  key: 'setPaymodes',
1875
1991
  value: function () {
1876
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1877
- var _this15 = this;
1992
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(type, isIntegralExchange) {
1993
+ var _this17 = this;
1878
1994
 
1879
1995
  var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1880
1996
 
1881
- return _regenerator2.default.wrap(function _callee7$(_context7) {
1997
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1882
1998
  while (1) {
1883
- switch (_context7.prev = _context7.next) {
1999
+ switch (_context9.prev = _context9.next) {
1884
2000
  case 0:
1885
2001
  _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
1886
2002
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1887
2003
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1888
- _context7.next = 5;
2004
+ _context9.next = 5;
1889
2005
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
1890
2006
 
1891
2007
  case 5:
1892
- modes = _context7.sent;
2008
+ modes = _context9.sent;
1893
2009
 
1894
2010
  if (modes) {
1895
2011
  (0, _mobx.runInAction)(function () {
@@ -1898,7 +2014,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1898
2014
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
1899
2015
 
1900
2016
  if (mode.Code == PayStyle.hyczk) {
1901
- mode.Name = '储值余额';
2017
+ mode.Name = '储值卡';
1902
2018
  }
1903
2019
  paymodes.push({
1904
2020
  name: mode.Name,
@@ -1914,21 +2030,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
1914
2030
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1915
2031
  });
1916
2032
  });
1917
- _this15.paymodes = paymodes;
2033
+ _this17.paymodes = paymodes;
1918
2034
  //modes.QuickSettleStyles
1919
2035
  });
1920
2036
  }
1921
2037
 
1922
2038
  case 7:
1923
2039
  case 'end':
1924
- return _context7.stop();
2040
+ return _context9.stop();
1925
2041
  }
1926
2042
  }
1927
- }, _callee7, this);
2043
+ }, _callee9, this);
1928
2044
  }));
1929
2045
 
1930
- function setPaymodes(_x5, _x6) {
1931
- return _ref22.apply(this, arguments);
2046
+ function setPaymodes(_x6, _x7) {
2047
+ return _ref23.apply(this, arguments);
1932
2048
  }
1933
2049
 
1934
2050
  return setPaymodes;
@@ -1945,47 +2061,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
1945
2061
  }
1946
2062
  }]);
1947
2063
  return PayMode;
1948
- }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
2064
+ }(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1949
2065
  enumerable: true,
1950
2066
  initializer: function initializer() {
1951
2067
  return "";
1952
2068
  }
1953
- }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2069
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1954
2070
  enumerable: true,
1955
2071
  initializer: function initializer() {
1956
2072
  return 0;
1957
2073
  }
1958
- }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2074
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1959
2075
  enumerable: true,
1960
2076
  initializer: function initializer() {
1961
2077
  return 0;
1962
2078
  }
1963
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2079
+ }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
1964
2080
  enumerable: true,
1965
2081
  initializer: function initializer() {
1966
2082
  return [];
1967
2083
  }
1968
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2084
+ }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
1969
2085
  enumerable: true,
1970
2086
  initializer: function initializer() {
1971
2087
  return [];
1972
2088
  }
1973
- }), _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), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
2089
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
2090
+ enumerable: true,
2091
+ initializer: function initializer() {
2092
+ return null;
2093
+ }
2094
+ }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
2095
+ enumerable: true,
2096
+ initializer: function initializer() {
2097
+ return null;
2098
+ }
2099
+ }), _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], {
1974
2100
  enumerable: true,
1975
2101
  initializer: function initializer() {
1976
- var _this16 = this;
2102
+ var _this18 = this;
1977
2103
 
1978
2104
  return function () {
1979
- _this16.checkList = [];
2105
+ _this18.checkList = [];
1980
2106
  };
1981
2107
  }
1982
- }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2108
+ }), _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], {
1983
2109
  enumerable: true,
1984
2110
  initializer: function initializer() {
1985
- var _this17 = this;
2111
+ var _this19 = this;
1986
2112
 
1987
2113
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
1988
- _this17.currentMode.djqs.forEach(function (ele) {
2114
+ _this19.currentMode.djqs.forEach(function (ele) {
1989
2115
  if (ele.id === id) {
1990
2116
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
1991
2117
  ele.couponCategoryEnum = couponNum;
@@ -1995,10 +2121,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1995
2121
  });
1996
2122
  };
1997
2123
  }
1998
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2124
+ }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1999
2125
  enumerable: true,
2000
2126
  initializer: function initializer() {
2001
- var _this18 = this;
2127
+ var _this20 = this;
2002
2128
 
2003
2129
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2004
2130
  var djq = {
@@ -2020,25 +2146,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2020
2146
  couponCategoryEnum: couponCategoryEnum,
2021
2147
  id: id
2022
2148
  };
2023
- _this18.currentMode.djqs.push(djq);
2149
+ _this20.currentMode.djqs.push(djq);
2024
2150
  };
2025
2151
  }
2026
2152
  }), _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);
2027
2153
  var Member = exports.Member = (_class5 = function () {
2028
2154
  function Member(m) {
2029
- var _this19 = this;
2155
+ var _this21 = this;
2030
2156
 
2031
2157
  (0, _classCallCheck3.default)(this, Member);
2032
2158
 
2033
- _initDefineProp(this, 'cardNo', _descriptor11, this);
2159
+ _initDefineProp(this, 'cardNo', _descriptor15, this);
2034
2160
 
2035
- _initDefineProp(this, 'balance', _descriptor12, this);
2161
+ _initDefineProp(this, 'balance', _descriptor16, this);
2036
2162
 
2037
- _initDefineProp(this, 'exchangable', _descriptor13, this);
2163
+ _initDefineProp(this, 'exchangable', _descriptor17, this);
2038
2164
 
2039
- _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2165
+ _initDefineProp(this, 'meStorageCardId', _descriptor18, this);
2040
2166
 
2041
- _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2167
+ _initDefineProp(this, 'storageCardNo', _descriptor19, this);
2042
2168
 
2043
2169
  if (m) {
2044
2170
  this.id = m.ID;
@@ -2049,17 +2175,15 @@ var Member = exports.Member = (_class5 = function () {
2049
2175
  return key == 'canusedbalancestorage';
2050
2176
  });
2051
2177
 
2052
- var _ref23 = _mutantsUtil.platform || {},
2053
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
2178
+ var _ref24 = _mutantsUtil.platform || {},
2179
+ isNewRetailBCPos = _ref24.isNewRetailBCPos;
2054
2180
 
2055
- m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2056
- m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2057
2181
  (0, _mobx.runInAction)(function () {
2058
- _this19.cardNo = m.CardCode;
2182
+ _this21.cardNo = m.CardCode;
2059
2183
  if (index >= 0) {
2060
- _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2184
+ _this21.balance = parseFloat(m.DynamicPropertyValues[index]);
2061
2185
  } else {
2062
- _this19.balance = _this19.rawbalance;
2186
+ _this21.balance = _this21.rawbalance;
2063
2187
  }
2064
2188
  });
2065
2189
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2079,32 +2203,22 @@ var Member = exports.Member = (_class5 = function () {
2079
2203
  this.cardNo = v;
2080
2204
  this.id = null;
2081
2205
  }
2082
- }, {
2083
- key: 'setMeStorageCardId',
2084
- value: function setMeStorageCardId(v) {
2085
- this.MeStorageCardId = v;
2086
- }
2087
- }, {
2088
- key: 'setStorageCardNo',
2089
- value: function setStorageCardNo(v) {
2090
- this.StorageCardNo = v;
2091
- }
2092
2206
  }]);
2093
2207
  return Member;
2094
- }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2208
+ }(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2095
2209
  enumerable: true,
2096
2210
  initializer: null
2097
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2211
+ }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2098
2212
  enumerable: true,
2099
2213
  initializer: null
2100
- }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2214
+ }), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2101
2215
  enumerable: true,
2102
2216
  initializer: null
2103
- }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2217
+ }), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2104
2218
  enumerable: true,
2105
2219
  initializer: null
2106
- }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2220
+ }), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
2107
2221
  enumerable: true,
2108
2222
  initializer: null
2109
- }), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setMeStorageCardId', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setMeStorageCardId'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setStorageCardNo'), _class5.prototype)), _class5);
2223
+ }), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype)), _class5);
2110
2224
  //# sourceMappingURL=settlementStore.js.map