tplus-components-touch 3.35.1 → 3.36.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/dist/components/billSearch/index.js +19 -157
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/billSearch/index.less +3 -6
  4. package/dist/components/cloudPrint/api.js +43 -85
  5. package/dist/components/cloudPrint/api.js.map +1 -1
  6. package/dist/components/cloudPrint/printDispatch.js +108 -211
  7. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  8. package/dist/components/deliverySearch/index.js +1 -1
  9. package/dist/components/deliverySearch/index.js.map +1 -1
  10. package/dist/components/hotKey/localConfig.js +14 -133
  11. package/dist/components/hotKey/localConfig.js.map +1 -1
  12. package/dist/components/inventorySearch/tab.js +67 -77
  13. package/dist/components/inventorySearch/tab.js.map +1 -1
  14. package/dist/components/keyboard/numberButton_input.js +2 -4
  15. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  16. package/dist/components/keyboard/onlyLetterButton2.less +40 -35
  17. package/dist/components/loading/loadingContent.js +1 -1
  18. package/dist/components/loading/loadingContent.js.map +1 -1
  19. package/dist/components/loading/style.less +7 -7
  20. package/dist/components/progressState/EmptyAndErrorView.js +3 -4
  21. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  22. package/dist/components/progressState/ProgressState.js +1 -2
  23. package/dist/components/progressState/ProgressState.js.map +1 -1
  24. package/dist/components/settlement/settlement.js +481 -736
  25. package/dist/components/settlement/settlement.js.map +1 -1
  26. package/dist/components/settlement/settlement.less +7 -77
  27. package/dist/components/settlement/settlementStore.js +313 -542
  28. package/dist/components/settlement/settlementStore.js.map +1 -1
  29. package/dist/components/ticon/iconfont/demo_index.html +3 -49
  30. package/dist/components/ticon/iconfont/iconfont.css +3 -11
  31. package/dist/components/ticon/iconfont/iconfont.js +6 -6
  32. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  33. package/dist/components/ticon/iconfont/iconfont.json +0 -14
  34. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  35. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  36. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  37. package/dist/components/touchScroll/index.js +2 -6
  38. package/dist/components/touchScroll/index.js.map +1 -1
  39. package/dist/components/touchTable/index.js +4 -5
  40. package/dist/components/touchTable/index.js.map +1 -1
  41. package/dist/components/touchTable/index.less +13 -20
  42. package/dist/index.js +2 -14
  43. package/dist/index.js.map +1 -1
  44. package/package.json +2 -2
  45. package/dist/components/settlement/moreCzkTable/index.js +0 -156
  46. package/dist/components/settlement/moreCzkTable/index.js.map +0 -1
  47. package/dist/components/settlement/moreCzkTable/style.less +0 -7
@@ -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, _descriptor3, _descriptor4, _desc2, _value2, _class3, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _desc3, _value3, _class5, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
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;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -178,46 +178,6 @@ 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
-
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
- setTimeout(function () {
213
- var nextInput = document.querySelector('.czk .received .input');
214
- nextInput && nextInput.select();
215
- }, 300);
216
- }
217
- });
218
- }
219
- };
220
-
221
181
  this.getCouponList = function (coupon_code) {
222
182
  var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
223
183
  PayStyle = _enumController$getEn.PayStyle,
@@ -465,7 +425,7 @@ var SettlementStore = (_class = function () {
465
425
  }
466
426
  }, {
467
427
  key: 'init',
468
- value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
428
+ value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
469
429
  var _this3 = this;
470
430
 
471
431
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
@@ -481,15 +441,9 @@ var SettlementStore = (_class = function () {
481
441
  if (global.DealSingleRowAmountSettingProcessorBlock) {
482
442
  global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
483
443
  }
484
-
485
- var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
486
- PayStyle = _enumController$getEn4.PayStyle;
487
-
488
- var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
489
-
490
444
  // 成交金额抹零
491
445
  if (global.DealAmountSettingProcessorBlock) {
492
- global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
446
+ global.DealAmountSettingProcessorBlock.execute(_this3.dto);
493
447
  }
494
448
  });
495
449
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
@@ -539,8 +493,8 @@ var SettlementStore = (_class = function () {
539
493
  value: function initByOriginReturn() {
540
494
  var _this5 = this;
541
495
 
542
- var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
543
- PayStyle = _enumController$getEn5.PayStyle;
496
+ var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
497
+ PayStyle = _enumController$getEn4.PayStyle;
544
498
 
545
499
  var _ref5 = _mutantsUtil.platform || {},
546
500
  isNewRetailBCPos = _ref5.isNewRetailBCPos;
@@ -587,23 +541,13 @@ var SettlementStore = (_class = function () {
587
541
  }
588
542
  });
589
543
  (0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
590
- var balanceAmount = null;
591
- var storageCardNo = null;
592
- var meStorageCardId = null;
593
- detail.DynamicPropertyKeys.forEach(function (ele, index) {
594
- if (ele === "mestoragecard") {
595
- balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
596
- storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
597
- meStorageCardId = detail.DynamicPropertyValues[index].MeStorageCardId;
598
- }
599
- });
544
+ var balanceAmount = detail.Member.BalanceStorage;
545
+ balanceAmount = balanceAmount - detail.StoragePaymentAmount;
600
546
  var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
601
- member: new Member(detail.Member ? detail.Member : null),
602
- authCode: detail.Password ? detail.Password : null,
547
+ member: new Member(detail.Member),
548
+ authCode: detail.Password,
603
549
  balance: balanceAmount,
604
- boriginReturn: true,
605
- meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
606
- storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
550
+ boriginReturn: true
607
551
  });
608
552
  _this5.paymode.thePaymodes.push(newmode);
609
553
  });
@@ -618,7 +562,7 @@ var SettlementStore = (_class = function () {
618
562
  }, {
619
563
  key: 'quickSettle',
620
564
  value: function quickSettle(key) {
621
- this.addPay(key, true);
565
+ this.addPay(key);
622
566
  }
623
567
 
624
568
  //outer call
@@ -629,8 +573,8 @@ var SettlementStore = (_class = function () {
629
573
  value: function changeFocusAndAddPay(type) {
630
574
  var _this6 = this;
631
575
 
632
- var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
633
- PayStyle = _enumController$getEn6.PayStyle;
576
+ var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
577
+ PayStyle = _enumController$getEn5.PayStyle;
634
578
 
635
579
  this.paymode.currentFocus = type;
636
580
  if (this.paymode.currentMode) {
@@ -647,7 +591,7 @@ var SettlementStore = (_class = function () {
647
591
 
648
592
  //抵现积分
649
593
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
650
- Idmember: this.paymode.currentMode.memberId,
594
+ Idmember: this.paymode.currentMode.member.id,
651
595
  TotalTaxAmount: this.paymode.amount,
652
596
  BalanceTaxAmount: this.paymode.currentMode.value
653
597
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -676,6 +620,7 @@ var SettlementStore = (_class = function () {
676
620
 
677
621
  if ((0, _trim3.default)(v) === "") {
678
622
  (0, _mobx.runInAction)(function () {
623
+ _this7.paymode.currentMode.member = new Member(null);
679
624
  _this7.paymode.currentMode.errinfo = "请输入储值卡";
680
625
  });
681
626
  return;
@@ -689,98 +634,66 @@ var SettlementStore = (_class = function () {
689
634
  var address = '';
690
635
  if (isNewRetailBCPos) {
691
636
  // address = '/member/memberProfile/FindByStorageCode/'+v;
692
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
693
- return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
694
- var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
695
- var data, m;
696
- return _regenerator2.default.wrap(function _callee2$(_context2) {
697
- while (1) {
698
- switch (_context2.prev = _context2.next) {
699
- case 0:
700
- data = result.data;
701
- m = data && data.length && data[0];
702
-
703
- if (!(result && result.data.length)) {
704
- _context2.next = 25;
705
- break;
706
- }
707
-
708
- if (!(result.data.length === 1)) {
709
- _context2.next = 14;
710
- break;
711
- }
712
-
713
- if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
714
- _context2.next = 10;
715
- break;
716
- }
717
-
718
- _this7.paymode.updateCardInfo(m);
719
- _this7.handleCzkData(m);
720
- return _context2.abrupt('return', result.data);
721
-
722
- case 10:
723
- _context2.next = 12;
724
- return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
725
- var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
726
- if (data1.enable) {
727
- _this7.paymode.updateCardInfo(m);
728
- _this7.handleCzkData(m);
729
- return result1.data;
730
- } else {
731
- _message2.default.warn(data1.disableReason);
732
- }
733
- });
734
-
735
- case 12:
736
- _context2.next = 25;
737
- break;
738
-
739
- case 14:
740
- if (!(result.data && result.data.length === 1)) {
741
- _context2.next = 19;
742
- break;
743
- }
744
-
745
- _this7.paymode.updateCardInfo(result.data[0]);
746
- return _context2.abrupt('return', result.data);
747
-
748
- case 19:
749
- if (!(result.data && result.data.length > 1)) {
750
- _context2.next = 23;
751
- break;
752
- }
753
-
754
- return _context2.abrupt('return', result.data);
755
-
756
- case 23:
757
- _message2.default.warn('没有可用储值卡!');
758
- return _context2.abrupt('return', false);
759
-
760
- case 25:
761
- case 'end':
762
- return _context2.stop();
763
- }
637
+ address = '/member/MeMemberWallet/FindByStorageCode';
638
+ return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
639
+ 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
+ (0, _mobx.runInAction)(function () {
653
+ _this7.paymode.currentMode.errinfo = "无效的会员卡号";
654
+ });
655
+ } else {
656
+ (0, _mobx.runInAction)(function () {
657
+ _this7.paymode.currentMode.errinfo = "";
658
+ _this7.paymode.currentMode.member = new Member(m);
659
+ _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
660
+ _this7.updateEvent();
661
+ var message = '';
662
+ var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
663
+ return total + cur.value;
664
+ }, 0);
665
+ if (global.CheckMemberStorageProcessorBlock) {
666
+ message = CheckMemberStorageProcessorBlock.execute(m);
667
+ }
668
+ if (!String.isNullOrEmpty(message)) {
669
+ _this7.paymode.currentMode.errinfo = message;
670
+ } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
671
+ _this7.paymode.currentMode.errinfo = "余额不足";
672
+ } else if (_this7.paymode.amount > 0 && parseFloat(_this7.paymode.amount) !== sum && _this7.paymode.currentMode.value == 0) {
673
+ _this7.paymode.currentMode.errinfo = "实收金额必须录入";
674
+ } else {
675
+ // 查询成功后将焦点移入下一个输入框
676
+ var nextInput = document.querySelector('.czk .received .input');
677
+ nextInput && nextInput.select();
764
678
  }
765
- }, _callee2, _this7);
766
- }));
767
-
768
- return function (_x2) {
769
- return _ref8.apply(this, arguments);
770
- };
771
- }()
772
- // result.data.forEach((m) => {
773
- // if (m.CardTypeEnum === 'BALANCE_CARD') {
774
- // // 会员概念改为卡,把这些字段都放开
775
- // this.paymode.updateCardInfo(m);
776
- // }
777
- // })
778
- );
679
+ });
680
+ }
681
+ });
779
682
  } else {
780
683
  address = 'AA.DR.newRetailMember.SearchMember';
781
684
  return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
782
685
  var data = JSON.parse(result.Data);
783
686
  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
+ }
784
697
  if (!m || !m.ID) {
785
698
  (0, _mobx.runInAction)(function () {
786
699
  _this7.paymode.currentMode.errinfo = "无效的会员卡号";
@@ -842,8 +755,8 @@ var SettlementStore = (_class = function () {
842
755
  }, {
843
756
  key: 'setCurrentMode',
844
757
  value: function setCurrentMode(id, type, append) {
845
- var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
846
- PayStyle = _enumController$getEn7.PayStyle;
758
+ var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
759
+ PayStyle = _enumController$getEn6.PayStyle;
847
760
 
848
761
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
849
762
  if (mode) {
@@ -861,8 +774,8 @@ var SettlementStore = (_class = function () {
861
774
  value: function afterSetCurrentMode(type) {
862
775
  var _this8 = this;
863
776
 
864
- var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
865
- PayStyle = _enumController$getEn8.PayStyle;
777
+ var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
778
+ PayStyle = _enumController$getEn7.PayStyle;
866
779
 
867
780
  if (type == PayStyle.djq) {
868
781
  this.paymode.calcDjqValue();
@@ -876,7 +789,7 @@ var SettlementStore = (_class = function () {
876
789
  }
877
790
 
878
791
  (0, _tplusApi.tApi)({ IntegralSteadCashParams: {
879
- Idmember: this.paymode.currentMode.memberId,
792
+ Idmember: this.paymode.currentMode.member.id,
880
793
  TotalTaxAmount: this.paymode.amount,
881
794
  BalanceTaxAmount: this.paymode.amount
882
795
  } }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
@@ -897,13 +810,12 @@ var SettlementStore = (_class = function () {
897
810
  }
898
811
  }, {
899
812
  key: 'genNewMode',
900
- value: function genNewMode(type, notwithm, v, isQuick) {
901
- var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
902
- PayStyle = _enumController$getEn9.PayStyle;
813
+ value: function genNewMode(type, notwithm, v) {
814
+ var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
815
+ PayStyle = _enumController$getEn8.PayStyle;
903
816
 
904
817
  var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
905
818
  var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
906
- var memberId = this.member && this.member.ID ? this.member.ID : null;
907
819
  var mode = (0, _mobx.observable)({
908
820
  paymethodId: this.paymode.counter,
909
821
  name: themode.name,
@@ -915,8 +827,6 @@ var SettlementStore = (_class = function () {
915
827
  order: this.paymode.thePaymodes.length + 1,
916
828
  paymentType: type,
917
829
  djqs: [],
918
- card: null,
919
- memberId: !notwithm ? memberId : null,
920
830
  member: new Member(!notwithm ? this.member : null),
921
831
  authCode: '',
922
832
  steadCashIntegral: null,
@@ -924,9 +834,9 @@ var SettlementStore = (_class = function () {
924
834
  maxamount: this.paymode.amount
925
835
  });
926
836
  if (type == PayStyle.hyczk) {
927
- if (!mode.storageCardNo) {
837
+ if (!mode.member.id || !mode.member.StorageCardNo) {
928
838
  (0, _mobx.runInAction)(function () {
929
- mode.errinfo = '未录入手机号或储值卡号';
839
+ mode.errinfo = '未录入储值卡';
930
840
  });
931
841
  } else if (this.checkReceived(mode, "balance")) {
932
842
  (0, _mobx.runInAction)(function () {
@@ -945,8 +855,8 @@ var SettlementStore = (_class = function () {
945
855
  value: function setMaxAmount(type, mode) {
946
856
  var _this9 = this;
947
857
 
948
- var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
949
- PayStyle = _enumController$getEn10.PayStyle;
858
+ var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
859
+ PayStyle = _enumController$getEn9.PayStyle;
950
860
 
951
861
  var sum = 0;
952
862
  if (type == PayStyle.hyczk) {
@@ -1022,8 +932,8 @@ var SettlementStore = (_class = function () {
1022
932
  }, {
1023
933
  key: 'addPayDirectly',
1024
934
  value: function addPayDirectly(pay) {
1025
- var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
1026
- PayStyle = _enumController$getEn11.PayStyle;
935
+ var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
936
+ PayStyle = _enumController$getEn10.PayStyle;
1027
937
 
1028
938
  if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
1029
939
  var pos = this.paymode.thePaymodes.length;
@@ -1040,9 +950,9 @@ var SettlementStore = (_class = function () {
1040
950
  }
1041
951
  }, {
1042
952
  key: 'addPay',
1043
- value: function addPay(type, isQuick) {
1044
- var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1045
- PayStyle = _enumController$getEn12.PayStyle;
953
+ value: function addPay(type) {
954
+ var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
955
+ PayStyle = _enumController$getEn11.PayStyle;
1046
956
 
1047
957
  var pos = this.paymode.thePaymodes.length;
1048
958
  if (type == PayStyle.hyczk) {
@@ -1052,15 +962,14 @@ var SettlementStore = (_class = function () {
1052
962
  pos = index == -1 ? pos : index + 1;
1053
963
  }
1054
964
  // this.paymode.thePaymodes.push(this.genNewMode(type) );
1055
-
1056
- this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
965
+ this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
1057
966
  this.paymode.calcReserved();
1058
967
  }
1059
968
  }, {
1060
969
  key: 'delPay',
1061
970
  value: function delPay(index) {
1062
- var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1063
- PayStyle = _enumController$getEn13.PayStyle;
971
+ var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
972
+ PayStyle = _enumController$getEn12.PayStyle;
1064
973
 
1065
974
  (0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
1066
975
  return mode.paymethodId === index;
@@ -1071,80 +980,80 @@ var SettlementStore = (_class = function () {
1071
980
  }, {
1072
981
  key: 'commit',
1073
982
  value: function () {
1074
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
1075
- var _ref10, isNewRetailBCPos;
983
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
984
+ var _ref11, isNewRetailBCPos;
1076
985
 
1077
- return _regenerator2.default.wrap(function _callee3$(_context3) {
986
+ return _regenerator2.default.wrap(function _callee2$(_context2) {
1078
987
  while (1) {
1079
- switch (_context3.prev = _context3.next) {
988
+ switch (_context2.prev = _context2.next) {
1080
989
  case 0:
1081
990
  console.log('settlementStore.commit开始,参数:' + bTest);
1082
991
 
1083
992
  if (!bTest) {
1084
- _context3.next = 3;
993
+ _context2.next = 3;
1085
994
  break;
1086
995
  }
1087
996
 
1088
- return _context3.abrupt('return', _promise2.default.resolve(true));
997
+ return _context2.abrupt('return', _promise2.default.resolve(true));
1089
998
 
1090
999
  case 3:
1091
- _ref10 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref10.isNewRetailBCPos;
1092
- _context3.prev = 4;
1000
+ _ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
1001
+ _context2.prev = 4;
1093
1002
 
1094
1003
  if (!(this.type == 1)) {
1095
- _context3.next = 10;
1004
+ _context2.next = 10;
1096
1005
  break;
1097
1006
  }
1098
1007
 
1099
- _context3.next = 8;
1008
+ _context2.next = 8;
1100
1009
  return this.saveMember();
1101
1010
 
1102
1011
  case 8:
1103
- _context3.next = 18;
1012
+ _context2.next = 18;
1104
1013
  break;
1105
1014
 
1106
1015
  case 10:
1107
1016
  if (!isNewRetailBCPos) {
1108
- _context3.next = 13;
1017
+ _context2.next = 13;
1109
1018
  break;
1110
1019
  }
1111
1020
 
1112
- _context3.next = 13;
1021
+ _context2.next = 13;
1113
1022
  return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1114
1023
 
1115
1024
  case 13:
1116
- _context3.next = 15;
1025
+ _context2.next = 15;
1117
1026
  return this.save();
1118
1027
 
1119
1028
  case 15:
1120
1029
  if (!isNewRetailBCPos) {
1121
- _context3.next = 18;
1030
+ _context2.next = 18;
1122
1031
  break;
1123
1032
  }
1124
1033
 
1125
- _context3.next = 18;
1034
+ _context2.next = 18;
1126
1035
  return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1127
1036
 
1128
1037
  case 18:
1129
- return _context3.abrupt('return', _promise2.default.resolve(true));
1038
+ return _context2.abrupt('return', _promise2.default.resolve(true));
1130
1039
 
1131
1040
  case 21:
1132
- _context3.prev = 21;
1133
- _context3.t0 = _context3['catch'](4);
1041
+ _context2.prev = 21;
1042
+ _context2.t0 = _context2['catch'](4);
1134
1043
 
1135
- console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
1136
- return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
1044
+ console.error('settlementStore.commit失败,错误信息:' + _context2.t0);
1045
+ return _context2.abrupt('return', _promise2.default.resolve(_context2.t0));
1137
1046
 
1138
1047
  case 25:
1139
1048
  case 'end':
1140
- return _context3.stop();
1049
+ return _context2.stop();
1141
1050
  }
1142
1051
  }
1143
- }, _callee3, this, [[4, 21]]);
1052
+ }, _callee2, this, [[4, 21]]);
1144
1053
  }));
1145
1054
 
1146
- function commit(_x3) {
1147
- return _ref9.apply(this, arguments);
1055
+ function commit(_x2) {
1056
+ return _ref10.apply(this, arguments);
1148
1057
  }
1149
1058
 
1150
1059
  return commit;
@@ -1160,8 +1069,8 @@ var SettlementStore = (_class = function () {
1160
1069
  value: function saveMember() {
1161
1070
  var _this10 = this;
1162
1071
 
1163
- var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1164
- PayStyle = _enumController$getEn14.PayStyle;
1072
+ var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1073
+ PayStyle = _enumController$getEn13.PayStyle;
1165
1074
 
1166
1075
  (0, _mobx.runInAction)(function () {
1167
1076
  _this10.dto.StorageMutiSettleDetails = [];
@@ -1202,22 +1111,23 @@ var SettlementStore = (_class = function () {
1202
1111
  }, {
1203
1112
  key: 'save',
1204
1113
  value: function () {
1205
- var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1114
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1206
1115
  var _this11 = this;
1207
1116
 
1208
- var _enumController$getEn15, PayStyle, _ref13, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1117
+ var _enumController$getEn14, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1209
1118
 
1210
- return _regenerator2.default.wrap(function _callee4$(_context4) {
1119
+ return _regenerator2.default.wrap(function _callee3$(_context3) {
1211
1120
  while (1) {
1212
- switch (_context4.prev = _context4.next) {
1121
+ switch (_context3.prev = _context3.next) {
1213
1122
  case 0:
1214
- _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
1123
+ _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
1215
1124
 
1216
1125
  (0, _mobx.runInAction)(function () {
1217
1126
  _this11.dto.RetailPaymentDetails = [];
1218
1127
  _this11.dto.RetailStorageDetails = [];
1219
1128
  _this11.dto.RetailCouponDetails = [];
1220
1129
  var czkSum = 0;
1130
+ var Idmember = _this11.dto.Idmember;
1221
1131
  var count = 0;
1222
1132
  var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1223
1133
  return parseFloat(mode.value) != 0;
@@ -1225,14 +1135,18 @@ var SettlementStore = (_class = function () {
1225
1135
  (0, _each3.default)(thePaymodes, function (mode, index) {
1226
1136
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1227
1137
  if (mode.paymentType == PayStyle.hyczk) {
1138
+ if (!Idmember) {
1139
+ Idmember = mode.member.id;
1140
+ }
1228
1141
  czkSum = Math.Add(czkSum, mode.value);
1142
+ var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
1229
1143
  _this11.dto.RetailStorageDetails.push({
1230
1144
  Code: mode.paymethodId,
1231
- MeStorageCardId: mode.meStorageCardId,
1145
+ MeStorageCardId: MeStorageCardId,
1232
1146
  StoragePaymentAmount: mode.value,
1233
1147
  IsOrigReturn: false,
1234
1148
  BalanceStorage: mode.balance,
1235
- Idmember: mode.memberId,
1149
+ Idmember: mode.member.id,
1236
1150
  DynamicPropertyKeys: [],
1237
1151
  DynamicPropertyValues: [],
1238
1152
  DataSource: { Id: _this11.dataSource },
@@ -1268,7 +1182,7 @@ var SettlementStore = (_class = function () {
1268
1182
  ReductionAmount: djq.amount,
1269
1183
  EnableAmount: djq.doorsill,
1270
1184
  CouponTitle: djq.name,
1271
- IdMember: djq.UMemberID ? mode.memberId : null,
1185
+ IdMember: djq.UMemberID ? mode.member.id : null,
1272
1186
  LastTS: djq.LastTS,
1273
1187
  PromotionId: djq.promoId,
1274
1188
  PromotionRuleId: djq.promoRuleId,
@@ -1280,12 +1194,15 @@ var SettlementStore = (_class = function () {
1280
1194
  }
1281
1195
  });
1282
1196
 
1283
- var _ref12 = _mutantsUtil.platform || {},
1284
- isNewRetailBCPos = _ref12.isNewRetailBCPos;
1197
+ var _ref13 = _mutantsUtil.platform || {},
1198
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1285
1199
 
1286
1200
  if (_this11.dto.RetailStorageDetails.length > 0) {
1287
1201
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1288
1202
  if (isNewRetailBCPos) {
1203
+ // this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
1204
+ // value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
1205
+ // })
1289
1206
  _this11.dto.RetailPaymentDetails.push({
1290
1207
  Code: _this11.paymode.counter,
1291
1208
  OrigAmount: czkSum,
@@ -1309,14 +1226,15 @@ var SettlementStore = (_class = function () {
1309
1226
  DataSource: { Id: _this11.dataSource }
1310
1227
  });
1311
1228
  }
1229
+ _this11.dto.Idmember = Idmember;
1312
1230
  }
1313
1231
  });
1314
- _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1232
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1315
1233
 
1316
1234
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1317
1235
 
1318
1236
  if (!isNewRetailBCPos) {
1319
- _context4.next = 20;
1237
+ _context3.next = 20;
1320
1238
  break;
1321
1239
  }
1322
1240
 
@@ -1327,61 +1245,61 @@ var SettlementStore = (_class = function () {
1327
1245
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1328
1246
  }
1329
1247
  RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
1330
- _context4.t1 = this.dto.IdbusiType == 37;
1248
+ _context3.t1 = this.dto.IdbusiType == 37;
1331
1249
 
1332
- if (!_context4.t1) {
1333
- _context4.next = 13;
1250
+ if (!_context3.t1) {
1251
+ _context3.next = 13;
1334
1252
  break;
1335
1253
  }
1336
1254
 
1337
- _context4.next = 12;
1255
+ _context3.next = 12;
1338
1256
  return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
1339
1257
 
1340
1258
  case 12:
1341
- _context4.t1 = _context4.sent;
1259
+ _context3.t1 = _context3.sent;
1342
1260
 
1343
1261
  case 13:
1344
- _context4.t0 = _context4.t1;
1262
+ _context3.t0 = _context3.t1;
1345
1263
 
1346
- if (_context4.t0) {
1347
- _context4.next = 16;
1264
+ if (_context3.t0) {
1265
+ _context3.next = 16;
1348
1266
  break;
1349
1267
  }
1350
1268
 
1351
- _context4.t0 = this.dto.IdbusiType != 37;
1269
+ _context3.t0 = this.dto.IdbusiType != 37;
1352
1270
 
1353
1271
  case 16:
1354
- if (!_context4.t0) {
1355
- _context4.next = 18;
1272
+ if (!_context3.t0) {
1273
+ _context3.next = 18;
1356
1274
  break;
1357
1275
  }
1358
1276
 
1359
- 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) {
1277
+ 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) {
1360
1278
  _this11.setDtoID(resp.ID);
1361
1279
  _this11.paymode.checkList = [];
1362
1280
  _this11.billID = resp.ID;
1363
1281
  }));
1364
1282
 
1365
1283
  case 18:
1366
- _context4.next = 21;
1284
+ _context3.next = 21;
1367
1285
  break;
1368
1286
 
1369
1287
  case 20:
1370
- return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1288
+ return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1371
1289
  _this11.setDtoID(resp.ID);
1372
1290
  _this11.billID = resp.ID;
1373
1291
  }));
1374
1292
 
1375
1293
  case 21:
1376
1294
  case 'end':
1377
- return _context4.stop();
1295
+ return _context3.stop();
1378
1296
  }
1379
1297
  }
1380
- }, _callee4, this);
1298
+ }, _callee3, this);
1381
1299
  }));
1382
1300
 
1383
1301
  function save() {
1384
- return _ref11.apply(this, arguments);
1302
+ return _ref12.apply(this, arguments);
1385
1303
  }
1386
1304
 
1387
1305
  return save;
@@ -1394,35 +1312,35 @@ var SettlementStore = (_class = function () {
1394
1312
  }, {
1395
1313
  key: 'querySettleResult',
1396
1314
  value: function () {
1397
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1398
- return _regenerator2.default.wrap(function _callee5$(_context5) {
1315
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1316
+ return _regenerator2.default.wrap(function _callee4$(_context4) {
1399
1317
  while (1) {
1400
- switch (_context5.prev = _context5.next) {
1318
+ switch (_context4.prev = _context4.next) {
1401
1319
  case 0:
1402
- _context5.prev = 0;
1403
- _context5.t0 = _promise2.default;
1404
- _context5.next = 4;
1320
+ _context4.prev = 0;
1321
+ _context4.t0 = _promise2.default;
1322
+ _context4.next = 4;
1405
1323
  return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
1406
1324
 
1407
1325
  case 4:
1408
- _context5.t1 = _context5.sent;
1409
- return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
1326
+ _context4.t1 = _context4.sent;
1327
+ return _context4.abrupt('return', _context4.t0.resolve.call(_context4.t0, _context4.t1));
1410
1328
 
1411
1329
  case 8:
1412
- _context5.prev = 8;
1413
- _context5.t2 = _context5['catch'](0);
1414
- return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1330
+ _context4.prev = 8;
1331
+ _context4.t2 = _context4['catch'](0);
1332
+ return _context4.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
1415
1333
 
1416
1334
  case 11:
1417
1335
  case 'end':
1418
- return _context5.stop();
1336
+ return _context4.stop();
1419
1337
  }
1420
1338
  }
1421
- }, _callee5, this, [[0, 8]]);
1339
+ }, _callee4, this, [[0, 8]]);
1422
1340
  }));
1423
1341
 
1424
1342
  function querySettleResult() {
1425
- return _ref14.apply(this, arguments);
1343
+ return _ref15.apply(this, arguments);
1426
1344
  }
1427
1345
 
1428
1346
  return querySettleResult;
@@ -1448,131 +1366,99 @@ var SettlementStore = (_class = function () {
1448
1366
  }, {
1449
1367
  key: 'validePwd',
1450
1368
  value: function () {
1451
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
1452
- var _ref16, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
1369
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1370
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1453
1371
 
1454
- return _regenerator2.default.wrap(function _callee6$(_context6) {
1372
+ return _regenerator2.default.wrap(function _callee5$(_context5) {
1455
1373
  while (1) {
1456
- switch (_context6.prev = _context6.next) {
1374
+ switch (_context5.prev = _context5.next) {
1457
1375
  case 0:
1458
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1459
- _context6.prev = 1;
1376
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1377
+ _context5.prev = 1;
1460
1378
 
1461
1379
  if (!isNewRetailBCPos) {
1462
- _context6.next = 33;
1380
+ _context5.next = 19;
1463
1381
  break;
1464
1382
  }
1465
1383
 
1466
1384
  cook1 = this.getAllCookies()['errorPwd'];
1467
1385
  cook2 = cook1 && JSON.parse(cook1);
1468
1386
  message = '密码输入错误';
1469
- memberStorageId = this.paymode.currentMode.meStorageCardId;
1387
+ memberId = this.paymode.currentMode.member.MeStorageCardId;
1470
1388
 
1471
1389
  if (!cook2) {
1472
- _context6.next = 12;
1390
+ _context5.next = 12;
1473
1391
  break;
1474
1392
  }
1475
1393
 
1476
- if (!cook2.hasOwnProperty(memberStorageId + "")) {
1477
- _context6.next = 12;
1394
+ if (!cook2.hasOwnProperty(memberId + "")) {
1395
+ _context5.next = 12;
1478
1396
  break;
1479
1397
  }
1480
1398
 
1481
- if (!(cook2[memberStorageId] > 3)) {
1482
- _context6.next = 12;
1399
+ if (!(cook2[memberId] > 3)) {
1400
+ _context5.next = 12;
1483
1401
  break;
1484
1402
  }
1485
1403
 
1486
1404
  message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
1487
- return _context6.abrupt('return', _promise2.default.resolve(message));
1405
+ return _context5.abrupt('return', _promise2.default.resolve(message));
1488
1406
 
1489
1407
  case 12:
1490
- _paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
1491
- result = null;
1492
-
1493
- if (!(cardTypeEnum === 'BALANCE_CARD')) {
1494
- _context6.next = 20;
1495
- break;
1496
- }
1497
-
1498
- _context6.next = 17;
1499
- return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
1500
-
1501
- case 17:
1502
- result = _context6.sent;
1503
- _context6.next = 29;
1504
- break;
1505
-
1506
- case 20:
1507
- if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
1508
- _context6.next = 26;
1509
- break;
1510
- }
1511
-
1512
- _context6.next = 23;
1513
- return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1514
-
1515
- case 23:
1516
- result = _context6.sent;
1517
- _context6.next = 29;
1518
- break;
1519
-
1520
- case 26:
1521
- _context6.next = 28;
1522
- return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
1408
+ _context5.next = 14;
1409
+ return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + value.id, false, false);
1523
1410
 
1524
- case 28:
1525
- result = _context6.sent;
1411
+ case 14:
1412
+ result = _context5.sent;
1526
1413
 
1527
- case 29:
1528
1414
  if (!result.data) {
1529
1415
  if (cook2) {
1530
- if (cook2.hasOwnProperty(memberStorageId + "")) {
1531
- count = cook2[memberStorageId];
1416
+ if (cook2.hasOwnProperty(memberId + "")) {
1417
+ count = cook2[memberId];
1532
1418
 
1533
- cook2[memberStorageId] = count + 1;
1419
+ cook2[memberId] = count + 1;
1534
1420
  } else {
1535
- cook2[memberStorageId] = 1;
1421
+ cook2[memberId] = 1;
1536
1422
  }
1537
1423
  } else {
1538
1424
  cook2 = {};
1539
- cook2[memberStorageId] = 1;
1425
+ cook2[memberId] = 1;
1540
1426
  }
1541
1427
  this.setCookie('errorPwd', '', -1);
1542
1428
  this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
1543
1429
  }
1544
- return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1430
+ return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
1545
1431
 
1546
- case 33:
1547
- _context6.next = 35;
1432
+ case 19:
1433
+ _context5.next = 21;
1548
1434
  return (0, _tplusApi.tApi)({ "CheckoutParams": {
1549
1435
  "Idmember": value.id,
1550
1436
  "Password": value.pwd
1551
1437
  } }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
1552
1438
 
1553
- case 35:
1554
- _result = _context6.sent;
1555
- return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1439
+ case 21:
1440
+ _result = _context5.sent;
1441
+ return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
1556
1442
 
1557
- case 37:
1558
- _context6.next = 42;
1443
+ case 23:
1444
+ _context5.next = 28;
1559
1445
  break;
1560
1446
 
1561
- case 39:
1562
- _context6.prev = 39;
1563
- _context6.t0 = _context6['catch'](1);
1564
- return _context6.abrupt('return', "failed");
1447
+ case 25:
1448
+ _context5.prev = 25;
1449
+ _context5.t0 = _context5['catch'](1);
1450
+ return _context5.abrupt('return', "failed");
1565
1451
 
1566
- case 42:
1452
+ case 28:
1567
1453
  case 'end':
1568
- return _context6.stop();
1454
+ return _context5.stop();
1569
1455
  }
1570
1456
  }
1571
- }, _callee6, this, [[1, 39]]);
1457
+ }, _callee5, this, [[1, 25]]);
1572
1458
  }));
1573
1459
 
1574
- function validePwd(_x4) {
1575
- return _ref15.apply(this, arguments);
1460
+ function validePwd(_x3) {
1461
+ return _ref16.apply(this, arguments);
1576
1462
  }
1577
1463
 
1578
1464
  return validePwd;
@@ -1594,7 +1480,7 @@ var SettlementStore = (_class = function () {
1594
1480
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1595
1481
  return (0, _tplusApi.ccApi)({
1596
1482
  Idstore: idstore,
1597
- meMemberId: _this12.paymode.currentMode.memberId,
1483
+ meMemberId: _this12.member.ID,
1598
1484
  oldPassword: null,
1599
1485
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1600
1486
  dataSource: "POS"
@@ -1611,130 +1497,37 @@ var SettlementStore = (_class = function () {
1611
1497
  var _this13 = this;
1612
1498
 
1613
1499
  return function () {
1614
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
1500
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1615
1501
  var _getLoginInfo, IdStore, StoreCode, resp;
1616
1502
 
1617
- return _regenerator2.default.wrap(function _callee7$(_context7) {
1503
+ return _regenerator2.default.wrap(function _callee6$(_context6) {
1618
1504
  while (1) {
1619
- switch (_context7.prev = _context7.next) {
1505
+ switch (_context6.prev = _context6.next) {
1620
1506
  case 0:
1621
1507
  _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1622
- _context7.next = 3;
1508
+ _context6.next = 3;
1623
1509
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1624
1510
 
1625
1511
  case 3:
1626
- resp = _context7.sent;
1512
+ resp = _context6.sent;
1627
1513
 
1628
1514
  _this.member = resp;
1629
- _this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
1630
- return _context7.abrupt('return', _promise2.default.resolve(resp));
1515
+ _this.paymode.currentMode.member.setStorageCardNo(resp.StorageCardNo);
1516
+ return _context6.abrupt('return', _promise2.default.resolve(resp));
1631
1517
 
1632
1518
  case 7:
1633
1519
  case 'end':
1634
- return _context7.stop();
1635
- }
1636
- }
1637
- }, _callee7, _this13);
1638
- }));
1639
-
1640
- return function (_x5) {
1641
- return _ref17.apply(this, arguments);
1642
- };
1643
- }();
1644
- }
1645
- }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
1646
- enumerable: true,
1647
- initializer: function initializer() {
1648
- var _this14 = this;
1649
-
1650
- return function () {
1651
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
1652
- var result;
1653
- return _regenerator2.default.wrap(function _callee8$(_context8) {
1654
- while (1) {
1655
- switch (_context8.prev = _context8.next) {
1656
- case 0:
1657
- _context8.next = 2;
1658
- return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
1659
-
1660
- case 2:
1661
- result = _context8.sent;
1662
-
1663
- if (!(result && result.data.length)) {
1664
- _context8.next = 20;
1665
- break;
1666
- }
1667
-
1668
- if (!(result.data.length === 1)) {
1669
- _context8.next = 9;
1670
- break;
1671
- }
1672
-
1673
- _this14.paymode.updateCardInfo(result.data[0]);
1674
- return _context8.abrupt('return', result.data);
1675
-
1676
- case 9:
1677
- if (!(result.data && result.data.length === 1)) {
1678
- _context8.next = 14;
1679
- break;
1680
- }
1681
-
1682
- _this14.paymode.updateCardInfo(result.data[0]);
1683
- return _context8.abrupt('return', result.data);
1684
-
1685
- case 14:
1686
- if (!(result.data && result.data.length > 1)) {
1687
- _context8.next = 18;
1688
- break;
1689
- }
1690
-
1691
- return _context8.abrupt('return', result.data);
1692
-
1693
- case 18:
1694
- _message2.default.warn('没有可用储值卡!');
1695
- return _context8.abrupt('return', false);
1696
-
1697
- case 20:
1698
- case 'end':
1699
- return _context8.stop();
1520
+ return _context6.stop();
1700
1521
  }
1701
1522
  }
1702
- }, _callee8, _this14);
1523
+ }, _callee6, _this13);
1703
1524
  }));
1704
1525
 
1705
- return function (_x6) {
1526
+ return function (_x4) {
1706
1527
  return _ref18.apply(this, arguments);
1707
1528
  };
1708
1529
  }();
1709
1530
  }
1710
- }), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
1711
- enumerable: true,
1712
- initializer: function initializer() {
1713
- var _this15 = this;
1714
-
1715
- return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1716
- var address, result;
1717
- return _regenerator2.default.wrap(function _callee9$(_context9) {
1718
- while (1) {
1719
- switch (_context9.prev = _context9.next) {
1720
- case 0:
1721
- address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
1722
- _context9.next = 3;
1723
- return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
1724
-
1725
- case 3:
1726
- result = _context9.sent;
1727
-
1728
- _this15.paymode.updateCardInfo(result.data);
1729
-
1730
- case 5:
1731
- case 'end':
1732
- return _context9.stop();
1733
- }
1734
- }
1735
- }, _callee9, _this15);
1736
- }));
1737
- }
1738
1531
  }), _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);
1739
1532
  exports.default = SettlementStore;
1740
1533
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1749,19 +1542,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
1749
1542
  this.onlineamount = 0;
1750
1543
  this.maxamount = 0;
1751
1544
 
1752
- _initDefineProp(this, 'currentFocus', _descriptor5, this);
1753
-
1754
- _initDefineProp(this, 'received', _descriptor6, this);
1545
+ _initDefineProp(this, 'currentFocus', _descriptor3, this);
1755
1546
 
1756
- _initDefineProp(this, 'receivable', _descriptor7, this);
1547
+ _initDefineProp(this, 'received', _descriptor4, this);
1757
1548
 
1758
- _initDefineProp(this, 'paymodes', _descriptor8, this);
1549
+ _initDefineProp(this, 'receivable', _descriptor5, this);
1759
1550
 
1760
- _initDefineProp(this, 'thePaymodes', _descriptor9, this);
1551
+ _initDefineProp(this, 'paymodes', _descriptor6, this);
1761
1552
 
1762
- _initDefineProp(this, 'storageCardNo', _descriptor10, this);
1763
-
1764
- _initDefineProp(this, 'balance', _descriptor11, this);
1553
+ _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1765
1554
 
1766
1555
  this.currentMode = null;
1767
1556
  this.checkList = [];
@@ -1770,11 +1559,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1770
1559
  hotKey: "Ctrl+M"
1771
1560
  };
1772
1561
 
1773
- _initDefineProp(this, 'calcCheckList', _descriptor12, this);
1562
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1774
1563
 
1775
- _initDefineProp(this, 'setCouponNum', _descriptor13, this);
1564
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1776
1565
 
1777
- _initDefineProp(this, 'addDjqs', _descriptor14, this);
1566
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1778
1567
  }
1779
1568
  // @observable store = null;
1780
1569
 
@@ -1810,30 +1599,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1810
1599
  this.received = (0, _utils.getFixedNumber)(sum);
1811
1600
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1812
1601
  }
1813
- }, {
1814
- key: 'updateMemberStorageCardNo',
1815
- value: function updateMemberStorageCardNo(storageCardNo, walletEnabled) {
1816
- this.currentMode.storageCardNo = storageCardNo;
1817
- this.currentMode.walletEnabled = walletEnabled;
1818
- }
1819
- }, {
1820
- key: 'updateCardInfo',
1821
- value: function updateCardInfo(m) {
1822
- this.currentMode.cardStatusEnum = m.CardStatusEnum;
1823
- this.currentMode.isNeedPassword = m.IsNeedPassword;
1824
- this.currentMode.meStorageCardId = m.MeStorageCardId;
1825
- this.currentMode.storageCardNo = m.StorageCardNo;
1826
- this.currentMode.balance = m.BalanceStorage;
1827
- this.currentMode.rawbalance = m.BalanceStorage;
1828
- this.currentMode.cardTypeEnum = m.CardTypeEnum;
1829
- this.currentMode.walletEnabled = m.WalletEnabled;
1830
- this.currentMode.memberId = m.ID;
1831
- this.currentMode.freePaymentPasswordStore = m.FreePaymentPasswordStore;
1832
- }
1833
1602
  }, {
1834
1603
  key: 'calcDjqCheckValue',
1835
1604
  value: function calcDjqCheckValue(q1, dto, params) {
1836
- var _this16 = this;
1605
+ var _this14 = this;
1837
1606
 
1838
1607
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1839
1608
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1847,12 +1616,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
1847
1616
  this.checkList = [];
1848
1617
  }
1849
1618
 
1850
- var _ref20 = _mutantsUtil.platform || {},
1851
- isNewRetailBCPos = _ref20.isNewRetailBCPos;
1619
+ var _ref19 = _mutantsUtil.platform || {},
1620
+ isNewRetailBCPos = _ref19.isNewRetailBCPos;
1852
1621
 
1853
- var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1854
- PayStyle = _enumController$getEn16.PayStyle,
1855
- Differentiate = _enumController$getEn16.Differentiate;
1622
+ var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1623
+ PayStyle = _enumController$getEn15.PayStyle,
1624
+ Differentiate = _enumController$getEn15.Differentiate;
1856
1625
 
1857
1626
  if (q1) {
1858
1627
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -1880,7 +1649,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1880
1649
  if (!q1.checked) {
1881
1650
  this.checkList.forEach(function (ele, i) {
1882
1651
  if (ele.id === q1.id) {
1883
- _this16.checkList.splice(i, 1);
1652
+ _this14.checkList.splice(i, 1);
1884
1653
  }
1885
1654
  });
1886
1655
  } else {
@@ -1952,24 +1721,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1952
1721
  if (result && result.length != 0) {
1953
1722
  result.forEach(function (element, index) {
1954
1723
  var djq1 = false;
1955
- _this16.currentMode.djqs.forEach(function (djq) {
1724
+ _this14.currentMode.djqs.forEach(function (djq) {
1956
1725
  if (element.id === djq.id) {
1957
1726
  djq1 = true;
1958
1727
  }
1959
1728
  });
1960
1729
 
1961
- var _ref21 = element || {},
1962
- couponCode = _ref21.couponCode,
1963
- name = _ref21.name,
1964
- tieredAmountResult = _ref21.tieredAmountResult,
1965
- fromDate = _ref21.fromDate,
1966
- dateMount = _ref21.dateMount,
1967
- promoMethodEnum = _ref21.promoMethodEnum,
1968
- discountPct = _ref21.discountPct,
1969
- nominalAmount = _ref21.nominalAmount,
1970
- promoId = _ref21.promoId,
1971
- id = _ref21.id,
1972
- doorsill = _ref21.doorsill;
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;
1973
1742
 
1974
1743
  var condValue = tieredAmountResult.condValue,
1975
1744
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1997,10 +1766,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1997
1766
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1998
1767
  // id
1999
1768
  // })
2000
- _this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1769
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
2001
1770
  djq1 = false;
2002
1771
  } else {
2003
- _this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1772
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
2004
1773
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
2005
1774
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
2006
1775
  }
@@ -2013,11 +1782,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
2013
1782
  }, {
2014
1783
  key: 'calcDjqValue',
2015
1784
  value: function calcDjqValue(q1) {
2016
- var _ref22 = _mutantsUtil.platform || {},
2017
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
1785
+ var _ref21 = _mutantsUtil.platform || {},
1786
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
2018
1787
 
2019
- var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
2020
- Differentiate = _enumController$getEn17.Differentiate;
1788
+ var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1789
+ Differentiate = _enumController$getEn16.Differentiate;
2021
1790
 
2022
1791
  if (q1) {
2023
1792
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -2079,8 +1848,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
2079
1848
  this.currentMode.errinfo = '';
2080
1849
  var sum = this.amount;
2081
1850
 
2082
- var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
2083
- PayStyle = _enumController$getEn18.PayStyle;
1851
+ var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
1852
+ PayStyle = _enumController$getEn17.PayStyle;
2084
1853
 
2085
1854
  this.thePaymodes && this.thePaymodes.forEach(function (mode) {
2086
1855
  if (mode.paymentType === PayStyle.hyczk) {
@@ -2099,28 +1868,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
2099
1868
  }, {
2100
1869
  key: 'calcMemberBalance',
2101
1870
  value: function calcMemberBalance() {
2102
- this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
1871
+ this.currentMode.balance = this.currentMode.member.rawbalance - this.currentMode.value;
2103
1872
  }
2104
1873
  }, {
2105
1874
  key: 'setPaymodes',
2106
1875
  value: function () {
2107
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
2108
- var _this17 = this;
1876
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1877
+ var _this15 = this;
2109
1878
 
2110
- var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1879
+ var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
2111
1880
 
2112
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1881
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
2113
1882
  while (1) {
2114
- switch (_context10.prev = _context10.next) {
1883
+ switch (_context7.prev = _context7.next) {
2115
1884
  case 0:
2116
- _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
1885
+ _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
2117
1886
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
2118
1887
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
2119
- _context10.next = 5;
1888
+ _context7.next = 5;
2120
1889
  return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
2121
1890
 
2122
1891
  case 5:
2123
- modes = _context10.sent;
1892
+ modes = _context7.sent;
2124
1893
 
2125
1894
  if (modes) {
2126
1895
  (0, _mobx.runInAction)(function () {
@@ -2129,7 +1898,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
2129
1898
  //产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
2130
1899
 
2131
1900
  if (mode.Code == PayStyle.hyczk) {
2132
- mode.Name = '储值卡';
1901
+ mode.Name = '储值余额';
2133
1902
  }
2134
1903
  paymodes.push({
2135
1904
  name: mode.Name,
@@ -2145,21 +1914,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
2145
1914
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
2146
1915
  });
2147
1916
  });
2148
- _this17.paymodes = paymodes;
1917
+ _this15.paymodes = paymodes;
2149
1918
  //modes.QuickSettleStyles
2150
1919
  });
2151
1920
  }
2152
1921
 
2153
1922
  case 7:
2154
1923
  case 'end':
2155
- return _context10.stop();
1924
+ return _context7.stop();
2156
1925
  }
2157
1926
  }
2158
- }, _callee10, this);
1927
+ }, _callee7, this);
2159
1928
  }));
2160
1929
 
2161
- function setPaymodes(_x7, _x8) {
2162
- return _ref23.apply(this, arguments);
1930
+ function setPaymodes(_x5, _x6) {
1931
+ return _ref22.apply(this, arguments);
2163
1932
  }
2164
1933
 
2165
1934
  return setPaymodes;
@@ -2176,57 +1945,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
2176
1945
  }
2177
1946
  }]);
2178
1947
  return PayMode;
2179
- }(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1948
+ }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
2180
1949
  enumerable: true,
2181
1950
  initializer: function initializer() {
2182
1951
  return "";
2183
1952
  }
2184
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1953
+ }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2185
1954
  enumerable: true,
2186
1955
  initializer: function initializer() {
2187
1956
  return 0;
2188
1957
  }
2189
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1958
+ }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2190
1959
  enumerable: true,
2191
1960
  initializer: function initializer() {
2192
1961
  return 0;
2193
1962
  }
2194
- }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
1963
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2195
1964
  enumerable: true,
2196
1965
  initializer: function initializer() {
2197
1966
  return [];
2198
1967
  }
2199
- }), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
1968
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2200
1969
  enumerable: true,
2201
1970
  initializer: function initializer() {
2202
1971
  return [];
2203
1972
  }
2204
- }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
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], {
2205
1974
  enumerable: true,
2206
1975
  initializer: function initializer() {
2207
- return null;
2208
- }
2209
- }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
2210
- enumerable: true,
2211
- initializer: function initializer() {
2212
- return null;
2213
- }
2214
- }), _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], {
2215
- enumerable: true,
2216
- initializer: function initializer() {
2217
- var _this18 = this;
1976
+ var _this16 = this;
2218
1977
 
2219
1978
  return function () {
2220
- _this18.checkList = [];
1979
+ _this16.checkList = [];
2221
1980
  };
2222
1981
  }
2223
- }), _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], {
1982
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2224
1983
  enumerable: true,
2225
1984
  initializer: function initializer() {
2226
- var _this19 = this;
1985
+ var _this17 = this;
2227
1986
 
2228
1987
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
2229
- _this19.currentMode.djqs.forEach(function (ele) {
1988
+ _this17.currentMode.djqs.forEach(function (ele) {
2230
1989
  if (ele.id === id) {
2231
1990
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
2232
1991
  ele.couponCategoryEnum = couponNum;
@@ -2236,10 +1995,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2236
1995
  });
2237
1996
  };
2238
1997
  }
2239
- }), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1998
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2240
1999
  enumerable: true,
2241
2000
  initializer: function initializer() {
2242
- var _this20 = this;
2001
+ var _this18 = this;
2243
2002
 
2244
2003
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2245
2004
  var djq = {
@@ -2261,25 +2020,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2261
2020
  couponCategoryEnum: couponCategoryEnum,
2262
2021
  id: id
2263
2022
  };
2264
- _this20.currentMode.djqs.push(djq);
2023
+ _this18.currentMode.djqs.push(djq);
2265
2024
  };
2266
2025
  }
2267
2026
  }), _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);
2268
2027
  var Member = exports.Member = (_class5 = function () {
2269
2028
  function Member(m) {
2270
- var _this21 = this;
2029
+ var _this19 = this;
2271
2030
 
2272
2031
  (0, _classCallCheck3.default)(this, Member);
2273
2032
 
2274
- _initDefineProp(this, 'cardNo', _descriptor15, this);
2033
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
2275
2034
 
2276
- _initDefineProp(this, 'balance', _descriptor16, this);
2035
+ _initDefineProp(this, 'balance', _descriptor12, this);
2277
2036
 
2278
- _initDefineProp(this, 'exchangable', _descriptor17, this);
2037
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
2279
2038
 
2280
- _initDefineProp(this, 'meStorageCardId', _descriptor18, this);
2039
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2281
2040
 
2282
- _initDefineProp(this, 'storageCardNo', _descriptor19, this);
2041
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2283
2042
 
2284
2043
  if (m) {
2285
2044
  this.id = m.ID;
@@ -2290,15 +2049,17 @@ var Member = exports.Member = (_class5 = function () {
2290
2049
  return key == 'canusedbalancestorage';
2291
2050
  });
2292
2051
 
2293
- var _ref24 = _mutantsUtil.platform || {},
2294
- isNewRetailBCPos = _ref24.isNewRetailBCPos;
2052
+ var _ref23 = _mutantsUtil.platform || {},
2053
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
2295
2054
 
2055
+ m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2056
+ m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2296
2057
  (0, _mobx.runInAction)(function () {
2297
- _this21.cardNo = m.CardCode;
2058
+ _this19.cardNo = m.CardCode;
2298
2059
  if (index >= 0) {
2299
- _this21.balance = parseFloat(m.DynamicPropertyValues[index]);
2060
+ _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2300
2061
  } else {
2301
- _this21.balance = _this21.rawbalance;
2062
+ _this19.balance = _this19.rawbalance;
2302
2063
  }
2303
2064
  });
2304
2065
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2318,22 +2079,32 @@ var Member = exports.Member = (_class5 = function () {
2318
2079
  this.cardNo = v;
2319
2080
  this.id = null;
2320
2081
  }
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
+ }
2321
2092
  }]);
2322
2093
  return Member;
2323
- }(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2094
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2324
2095
  enumerable: true,
2325
2096
  initializer: null
2326
- }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2097
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2327
2098
  enumerable: true,
2328
2099
  initializer: null
2329
- }), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2100
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2330
2101
  enumerable: true,
2331
2102
  initializer: null
2332
- }), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2103
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2333
2104
  enumerable: true,
2334
2105
  initializer: null
2335
- }), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
2106
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2336
2107
  enumerable: true,
2337
2108
  initializer: null
2338
- }), _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);
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);
2339
2110
  //# sourceMappingURL=settlementStore.js.map