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