tplus-member 3.33.3 → 3.34.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,14 +13,6 @@ var _extends2 = require('babel-runtime/helpers/extends');
13
13
 
14
14
  var _extends3 = _interopRequireDefault(_extends2);
15
15
 
16
- var _promise = require('babel-runtime/core-js/promise');
17
-
18
- var _promise2 = _interopRequireDefault(_promise);
19
-
20
- var _stringify = require('babel-runtime/core-js/json/stringify');
21
-
22
- var _stringify2 = _interopRequireDefault(_stringify);
23
-
24
16
  var _regenerator = require('babel-runtime/regenerator');
25
17
 
26
18
  var _regenerator2 = _interopRequireDefault(_regenerator);
@@ -648,118 +640,37 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
648
640
 
649
641
  // 点击退储值的确定按钮
650
642
 
651
-
652
- // 获取二开支付信息,如果有的话返回。
653
-
654
643
  }, {
655
- key: 'thirdPayRefund',
656
-
657
-
658
- // 执行储值退款
659
- value: function () {
660
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(params) {
661
- var _enumController$getEn, TradeType, dto, pay, payment, _params, ret, _ref14, Code, _Message;
662
-
663
- return _regenerator2.default.wrap(function _callee7$(_context7) {
664
- while (1) {
665
- switch (_context7.prev = _context7.next) {
666
- case 0:
667
- _context7.prev = 0;
668
- _enumController$getEn = _mutantsUtil.enumController.getEnumOj(), TradeType = _enumController$getEn.TradeType;
669
- dto = params.StorageMutiSettleDetails;
670
- pay = dto && dto.filter(function (v) {
671
- return v.ThirdPaymentInfo;
672
- });
673
-
674
- if (!(pay && pay.length > 0)) {
675
- _context7.next = 19;
676
- break;
677
- }
678
-
679
- payment = pay[0];
680
- _params = { VoucherType: 2, Payment: payment, TradeType: TradeType.REFUND, dto: dto };
681
-
682
- console.log('退储值刷卡参数:', (0, _stringify2.default)(_params));
683
- _context7.next = 10;
684
- return new _promise2.default(function (resolve, reject) {
685
- _mutantsMicrofx.nativeMs.setIpcRendererMethod('ThirdPayment', (0, _extends3.default)({}, _params), function (res) {
686
- return resolve(res);
687
- });
688
- });
689
-
690
- case 10:
691
- ret = _context7.sent;
692
-
693
- console.log('退储值刷卡返回:', ret);
694
- ret = JSON.parse(ret);
695
- _ref14 = ret || {}, Code = _ref14.Code, _Message = _ref14.Message;
696
-
697
- if (!(Code > 0)) {
698
- _context7.next = 18;
699
- break;
700
- }
701
-
702
- return _context7.abrupt('return', { type: false, msg: _Message, code: Code });
703
-
704
- case 18:
705
- return _context7.abrupt('return', { type: true, msg: _Message, code: Code });
706
-
707
- case 19:
708
- return _context7.abrupt('return', { type: true });
709
-
710
- case 22:
711
- _context7.prev = 22;
712
- _context7.t0 = _context7['catch'](0);
713
- return _context7.abrupt('return', { type: false, msg: _context7.t0, code: '9999' });
714
-
715
- case 25:
716
- case 'end':
717
- return _context7.stop();
718
- }
719
- }
720
- }, _callee7, this, [[0, 22]]);
721
- }));
722
-
723
- function thirdPayRefund(_x4) {
724
- return _ref13.apply(this, arguments);
725
- }
726
-
727
- return thirdPayRefund;
728
- }()
644
+ key: 'submitRefundStorage',
729
645
 
730
646
  // 点击退储值确定或者退现金之后,请求数据 isCash, 是否是现金结算
731
-
732
- }, {
733
- key: 'submitRefundStorage',
734
647
  value: function () {
735
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
736
- var _this3 = this;
737
-
648
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
738
649
  var cardInfo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
739
650
  var storageAmount = arguments[1];
740
651
 
741
- var _ref16, memberStore, settlementStore, _memberStore$data, data, MeStorageCardId, StorageCardNo, ID, _cardInfo$PresentAmou, PresentAmount, _cardInfo$BalanceStor, BalanceStorage, _props10, getCardList, _props10$cardList, cardList, loadUserInfo, _ref17, _ref17$isCanRefund, isCanRefund, _ref17$canReturnAmoun, canReturnAmount, _ref17$storageInfos, storageInfos, _ref18, _ref18$data, _ref18$data$Member, dtMember, isSelectedMember, params, _ref19, finAccountId, paymentTypeId, latestStorageAmount, outTradeNo, ret, _ref20, type, code;
652
+ var store, _store$data, data, MeStorageCardId, StorageCardNo, ID, _cardInfo$PresentAmou, PresentAmount, _cardInfo$BalanceStor, BalanceStorage, _props10, getCardList, _props10$cardList, cardList, loadUserInfo, _ref14, _ref14$isCanRefund, isCanRefund, _ref14$canReturnAmoun, canReturnAmount, _ref14$storageInfos, storageInfos, _ref15, _ref15$data, _ref15$data$Member, dtMember, isSelectedMember, params, _ref16, finAccountId, paymentTypeId, latestStorageAmount, outTradeNo, ret, _ref17, isSuccess, ex;
742
653
 
743
- return _regenerator2.default.wrap(function _callee8$(_context8) {
654
+ return _regenerator2.default.wrap(function _callee7$(_context7) {
744
655
  while (1) {
745
- switch (_context8.prev = _context8.next) {
656
+ switch (_context7.prev = _context7.next) {
746
657
  case 0:
747
658
  if (cardInfo) {
748
- _context8.next = 2;
659
+ _context7.next = 2;
749
660
  break;
750
661
  }
751
662
 
752
- return _context8.abrupt('return');
663
+ return _context7.abrupt('return');
753
664
 
754
665
  case 2:
755
- _ref16 = _mutantsMicrofx.stores || {}, memberStore = _ref16.memberStore, settlementStore = _ref16.settlementStore;
756
- _memberStore$data = memberStore.data, data = _memberStore$data === undefined ? {} : _memberStore$data;
666
+ store = _mutantsMicrofx.stores.memberStore;
667
+ _store$data = store.data, data = _store$data === undefined ? {} : _store$data;
757
668
  MeStorageCardId = cardInfo.MeStorageCardId, StorageCardNo = cardInfo.StorageCardNo, ID = cardInfo.ID, _cardInfo$PresentAmou = cardInfo.PresentAmount, PresentAmount = _cardInfo$PresentAmou === undefined ? 0 : _cardInfo$PresentAmou, _cardInfo$BalanceStor = cardInfo.BalanceStorage, BalanceStorage = _cardInfo$BalanceStor === undefined ? 0 : _cardInfo$BalanceStor;
758
669
  _props10 = this.props, getCardList = _props10.getCardList, _props10$cardList = _props10.cardList, cardList = _props10$cardList === undefined ? [] : _props10$cardList, loadUserInfo = _props10.loadUserInfo;
759
- _ref17 = this.state.lastesStorageResult || {}, _ref17$isCanRefund = _ref17.isCanRefund, isCanRefund = _ref17$isCanRefund === undefined ? false : _ref17$isCanRefund, _ref17$canReturnAmoun = _ref17.canReturnAmount, canReturnAmount = _ref17$canReturnAmoun === undefined ? 0 : _ref17$canReturnAmoun, _ref17$storageInfos = _ref17.storageInfos, storageInfos = _ref17$storageInfos === undefined ? [] : _ref17$storageInfos;
760
- _ref18 = this.context.viewModel || {}, _ref18$data = _ref18.data;
761
- _ref18$data = _ref18$data === undefined ? {} : _ref18$data;
762
- _ref18$data$Member = _ref18$data.Member, dtMember = _ref18$data$Member === undefined ? {} : _ref18$data$Member;
670
+ _ref14 = this.state.lastesStorageResult || {}, _ref14$isCanRefund = _ref14.isCanRefund, isCanRefund = _ref14$isCanRefund === undefined ? false : _ref14$isCanRefund, _ref14$canReturnAmoun = _ref14.canReturnAmount, canReturnAmount = _ref14$canReturnAmoun === undefined ? 0 : _ref14$canReturnAmoun, _ref14$storageInfos = _ref14.storageInfos, storageInfos = _ref14$storageInfos === undefined ? [] : _ref14$storageInfos;
671
+ _ref15 = this.context.viewModel || {}, _ref15$data = _ref15.data;
672
+ _ref15$data = _ref15$data === undefined ? {} : _ref15$data;
673
+ _ref15$data$Member = _ref15$data.Member, dtMember = _ref15$data$Member === undefined ? {} : _ref15$data$Member;
763
674
  isSelectedMember = !!dtMember.ID;
764
675
  params = (0, _extends3.default)({}, data, {
765
676
  StorageDetails: [{
@@ -777,70 +688,89 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
777
688
  // 如果isCanRefund是false的话,说明是需要退现金,入参的计算方式明细金额是需要退的总金额
778
689
  });
779
690
  if (!isCanRefund) {
780
- _ref19 = storageInfos[0] || {}, finAccountId = _ref19.finAccountId, paymentTypeId = _ref19.paymentTypeId, latestStorageAmount = _ref19.latestStorageAmount, outTradeNo = _ref19.outTradeNo;
691
+ _ref16 = storageInfos[0] || {}, finAccountId = _ref16.finAccountId, paymentTypeId = _ref16.paymentTypeId, latestStorageAmount = _ref16.latestStorageAmount, outTradeNo = _ref16.outTradeNo;
781
692
 
782
693
  params.StorageMutiSettleDetails = [{
783
- StorageAmount: storageAmount,
784
- PaymentCode: "",
785
- DynamicPropertyValues: [],
786
- IdbankAccount: finAccountId,
787
- Code: 1,
788
- IdsettleStyle: paymentTypeId,
789
- DynamicPropertyKeys: [],
790
- DataSource: {},
791
- OrigPayAmount: latestStorageAmount,
792
- OrigTradeNo: outTradeNo
694
+ "StorageAmount": storageAmount,
695
+ "PaymentCode": "",
696
+ "DynamicPropertyValues": [],
697
+ "IdbankAccount": finAccountId,
698
+ "Code": 1,
699
+ "IdsettleStyle": paymentTypeId,
700
+ "DynamicPropertyKeys": [],
701
+ "DataSource": {},
702
+ "OrigPayAmount": latestStorageAmount,
703
+ "OrigTradeNo": outTradeNo
793
704
  }];
794
705
  } else {
795
706
  params.StorageMutiSettleDetails = storageInfos.map(function (item) {
796
- var dynamic = item.thirdPaymentReturnInfo ? _this3.getThirdPaymentInfo(item, settlementStore) : {};
797
- return (0, _extends3.default)({
798
- StorageAmount: '-' + item.latestStorageAmount,
799
- PaymentCode: "",
800
- DynamicPropertyValues: [],
801
- IdbankAccount: item.finAccountId,
802
- Code: 1,
803
- IdsettleStyle: item.paymentTypeId,
804
- DynamicPropertyKeys: [],
805
- DataSource: {},
806
- OrigPayAmount: item.latestStorageAmount,
807
- OrigTradeNo: item.outTradeNo
808
- }, dynamic);
707
+ return {
708
+ "StorageAmount": '-' + item.latestStorageAmount,
709
+ "PaymentCode": "",
710
+ "DynamicPropertyValues": [],
711
+ "IdbankAccount": item.finAccountId,
712
+ "Code": 1,
713
+ "IdsettleStyle": item.paymentTypeId,
714
+ "DynamicPropertyKeys": [],
715
+ "DataSource": {},
716
+ "OrigPayAmount": item.latestStorageAmount,
717
+ "OrigTradeNo": item.outTradeNo
718
+ };
809
719
  });
810
720
  }
811
721
 
812
- // 二开支付处理
813
- _context8.next = 15;
814
- return this.thirdPayRefund(params);
722
+ _context7.next = 15;
723
+ return this.setState({
724
+ refundBtnDisabled: true
725
+ });
815
726
 
816
727
  case 15:
817
- ret = _context8.sent;
818
- _ref20 = ret || {}, type = _ref20.type, code = _ref20.code;
728
+ _context7.prev = 15;
729
+ _context7.next = 18;
730
+ return this.api.ReturnedStorage(params);
819
731
 
820
- if (!(type === false)) {
821
- _context8.next = 20;
822
- break;
732
+ case 18:
733
+ ret = _context7.sent;
734
+ _ref17 = ret.data || {}, isSuccess = _ref17.isSuccess, ex = _ref17.ex;
735
+
736
+ if (isSuccess === true || isSuccess === 'true') {
737
+ if (!!isSelectedMember && dtMember.ID === ID) {
738
+ loadUserInfo(ID);
739
+ }
740
+ getCardList && getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo);
741
+ _tplusComponentsTouch.Message.success('退储值成功!');
742
+ } else {
743
+ this.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
823
744
  }
824
745
 
825
- _tplusComponentsTouch.Message.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
826
- return _context8.abrupt('return');
746
+ _context7.next = 23;
747
+ return this.setState({
748
+ refundBtnDisabled: false,
749
+ refundShow: false
750
+ });
751
+
752
+ case 23:
753
+ _context7.next = 29;
754
+ break;
827
755
 
828
- case 20:
829
- _context8.next = 22;
756
+ case 25:
757
+ _context7.prev = 25;
758
+ _context7.t0 = _context7['catch'](15);
759
+ _context7.next = 29;
830
760
  return this.setState({
831
- refundBtnDisabled: true
761
+ refundBtnDisabled: false
832
762
  });
833
763
 
834
- case 22:
764
+ case 29:
835
765
  case 'end':
836
- return _context8.stop();
766
+ return _context7.stop();
837
767
  }
838
768
  }
839
- }, _callee8, this);
769
+ }, _callee7, this, [[15, 25]]);
840
770
  }));
841
771
 
842
772
  function submitRefundStorage() {
843
- return _ref15.apply(this, arguments);
773
+ return _ref13.apply(this, arguments);
844
774
  }
845
775
 
846
776
  return submitRefundStorage;
@@ -875,44 +805,44 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
875
805
  }, {
876
806
  key: 'click',
877
807
  value: function click(key, auth, name) {
878
- var _this4 = this;
808
+ var _this3 = this;
879
809
 
880
810
  this.setState({
881
811
  warnContent: ''
882
812
  });
883
813
  this.handleEvent(auth).then(function (ret) {
884
814
  if (key === 'storage') {
885
- _this4.setState({
815
+ _this3.setState({
886
816
  menuKey: 'storage'
887
817
  });
888
818
  } else {
889
- _this4.setState({
819
+ _this3.setState({
890
820
  menuKey: null
891
821
  });
892
822
  }
893
823
  if (ret === true) {
894
- var _ref21 = _mutantsUtil.platform || {},
895
- isHorizontalSunMi = _ref21.isHorizontalSunMi;
824
+ var _ref18 = _mutantsUtil.platform || {},
825
+ isHorizontalSunMi = _ref18.isHorizontalSunMi;
896
826
 
897
827
  switch (key) {
898
828
  case 'storage':
899
- _this4.storage();break;
829
+ _this3.storage();break;
900
830
  case 'changePassword':
901
- _this4.changePassword();break;
831
+ _this3.changePassword();break;
902
832
  case 'reportLoss':
903
- _this4.reportLoss();break;
833
+ _this3.reportLoss();break;
904
834
  case 'cancelLoss':
905
- _this4.cancelLoss();break;
835
+ _this3.cancelLoss();break;
906
836
  case 'openCard':
907
- _this4.openCard();break;
837
+ _this3.openCard();break;
908
838
  case 'resetPassword':
909
- _this4.resetPassword();break;
839
+ _this3.resetPassword();break;
910
840
  case 'memberBindCard':
911
- _this4.bindCard(key, name);break;
841
+ _this3.bindCard(key, name);break;
912
842
  case 'memberUnBindCard':
913
- _this4.memberUnBindCard();break;
843
+ _this3.memberUnBindCard();break;
914
844
  case 'returnedStorage':
915
- _this4.returnedStorage();break;
845
+ _this3.returnedStorage();break;
916
846
  }
917
847
  }
918
848
  });
@@ -920,7 +850,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
920
850
  }, {
921
851
  key: 'render',
922
852
  value: function render() {
923
- var _this5 = this;
853
+ var _this4 = this;
924
854
 
925
855
  var _state = this.state,
926
856
  menus = _state.menus,
@@ -945,16 +875,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
945
875
  _props11$cardList = _props11.cardList,
946
876
  cardList = _props11$cardList === undefined ? [] : _props11$cardList;
947
877
 
948
- var _ref22 = cardList.length && cardList[selected] || {},
949
- Id = _ref22.Id,
950
- _ref22$BalanceStorage = _ref22.BalanceStorage,
951
- BalanceStorage = _ref22$BalanceStorage === undefined ? 0 : _ref22$BalanceStorage,
952
- _ref22$PresentAmount = _ref22.PresentAmount,
953
- PresentAmount = _ref22$PresentAmount === undefined ? 0 : _ref22$PresentAmount,
954
- WalletEnabled = _ref22.WalletEnabled,
955
- CardTypeEnum = _ref22.CardTypeEnum,
956
- CardStatusEnum = _ref22.CardStatusEnum,
957
- StorageCardNo = _ref22.StorageCardNo;
878
+ var _ref19 = cardList.length && cardList[selected] || {},
879
+ Id = _ref19.Id,
880
+ _ref19$BalanceStorage = _ref19.BalanceStorage,
881
+ BalanceStorage = _ref19$BalanceStorage === undefined ? 0 : _ref19$BalanceStorage,
882
+ _ref19$PresentAmount = _ref19.PresentAmount,
883
+ PresentAmount = _ref19$PresentAmount === undefined ? 0 : _ref19$PresentAmount,
884
+ WalletEnabled = _ref19.WalletEnabled,
885
+ CardTypeEnum = _ref19.CardTypeEnum,
886
+ CardStatusEnum = _ref19.CardStatusEnum,
887
+ StorageCardNo = _ref19.StorageCardNo;
958
888
 
959
889
  var canReturnAmount = lastesStorageResult.canReturnAmount,
960
890
  usedPresentAmount = lastesStorageResult.usedPresentAmount;
@@ -968,19 +898,19 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
968
898
  if (status) {
969
899
  if (menu.auth === 'BindStorageCard') {
970
900
  if (menu.key === 'memberBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'UNBINDING') {
971
- return _this5.getMenuItem(index, menu);
901
+ return _this4.getMenuItem(index, menu);
972
902
  }
973
903
  if (menu.key === 'memberUnBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'BINDING') {
974
- return _this5.getMenuItem(index, menu);
904
+ return _this4.getMenuItem(index, menu);
975
905
  }
976
906
  } else {
977
- return _this5.getMenuItem(index, menu);
907
+ return _this4.getMenuItem(index, menu);
978
908
  }
979
909
  } else {
980
910
  if (menu.auth === 'ModifyPassword') {
981
- return _this5.getMenuItem(index, menu);
911
+ return _this4.getMenuItem(index, menu);
982
912
  } else if (menu.auth === 'returnedStorage') {
983
- return _this5.getMenuItem(index, menu);
913
+ return _this4.getMenuItem(index, menu);
984
914
  } else {
985
915
  return '';
986
916
  }
@@ -999,10 +929,10 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
999
929
  cancel: this.changePasswordCancel,
1000
930
  btnDissabled: btnDissabled
1001
931
  },
1002
- passwordTitle === '换卡' ? _react2.default.createElement(_changeMemberCard2.default, { cardList: cardList && cardList.length && cardList[selected], modifyMember: modifyMember, member: member, ref: function ref(_ref23) {
1003
- return _this5.modifyPass = _ref23;
1004
- }, cancelModal: this.changePasswordCancel }) : _react2.default.createElement(_modifyPass2.default, { menuKey: menuKey, cardListCopy: cardList, cardList: cardList && cardList.length && cardList[selected], changeBtnDisabled: this.changeBtnDisabled, getCardList: getCardList, selected: selected, storageInit: this.storageInit, passwordTitle: CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle, modifyMember: modifyMember, ref: function ref(_ref24) {
1005
- return _this5.modifyPass = _ref24;
932
+ passwordTitle === '换卡' ? _react2.default.createElement(_changeMemberCard2.default, { cardList: cardList && cardList.length && cardList[selected], modifyMember: modifyMember, member: member, ref: function ref(_ref20) {
933
+ return _this4.modifyPass = _ref20;
934
+ }, cancelModal: this.changePasswordCancel }) : _react2.default.createElement(_modifyPass2.default, { menuKey: menuKey, cardListCopy: cardList, cardList: cardList && cardList.length && cardList[selected], changeBtnDisabled: this.changeBtnDisabled, getCardList: getCardList, selected: selected, storageInit: this.storageInit, passwordTitle: CardTypeEnum === 'BALANCE_CARD' && !WalletEnabled ? '设置密码' : passwordTitle, modifyMember: modifyMember, ref: function ref(_ref21) {
935
+ return _this4.modifyPass = _ref21;
1006
936
  }, member: member, cancelModal: this.changePasswordCancel })
1007
937
  ),
1008
938
  _react2.default.createElement(
@@ -1017,8 +947,8 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1017
947
  btnDissabled: bindCardBtnDisabled
1018
948
  },
1019
949
  _react2.default.createElement(_bindCard2.default, {
1020
- ref: function ref(_ref25) {
1021
- return _this5.bindCardRef = _ref25;
950
+ ref: function ref(_ref22) {
951
+ return _this4.bindCardRef = _ref22;
1022
952
  },
1023
953
  bindCardClick: this.bindCardClick,
1024
954
  changeBindCardBtnDisabled: this.changeBindCardBtnDisabled
@@ -1115,10 +1045,10 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1115
1045
  viewModel: _propTypes.PropTypes.object,
1116
1046
  stores: _propTypes.PropTypes.object
1117
1047
  }, _initialiseProps = function _initialiseProps() {
1118
- var _this6 = this;
1048
+ var _this5 = this;
1119
1049
 
1120
1050
  this.filterMenus = function (tags) {
1121
- var _props12 = _this6.props,
1051
+ var _props12 = _this5.props,
1122
1052
  title = _props12.title,
1123
1053
  storeKey = _props12.storeKey;
1124
1054
 
@@ -1129,11 +1059,11 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1129
1059
  };
1130
1060
 
1131
1061
  this.controllerEvent = function (methodName, methodArgs) {
1132
- return _this6.context.onEvent({ 'controllerEvent': _mutantsAppfx.Action.fromJS(_this6.context.viewModel, methodName) }, 'controllerEvent', methodArgs);
1062
+ return _this5.context.onEvent({ 'controllerEvent': _mutantsAppfx.Action.fromJS(_this5.context.viewModel, methodName) }, 'controllerEvent', methodArgs);
1133
1063
  };
1134
1064
 
1135
1065
  this.storageInit = function () {
1136
- var _props13 = _this6.props,
1066
+ var _props13 = _this5.props,
1137
1067
  _props13$cardList = _props13.cardList,
1138
1068
  cardList = _props13$cardList === undefined ? [] : _props13$cardList,
1139
1069
  getCardList = _props13.getCardList,
@@ -1141,16 +1071,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1141
1071
  selected = _props13$selected === undefined ? 0 : _props13$selected,
1142
1072
  loadUserInfo = _props13.loadUserInfo;
1143
1073
 
1144
- var _ref26 = cardList[selected] || {},
1145
- StorageCardNo = _ref26.StorageCardNo,
1146
- ID = _ref26.ID;
1074
+ var _ref23 = cardList[selected] || {},
1075
+ StorageCardNo = _ref23.StorageCardNo,
1076
+ ID = _ref23.ID;
1147
1077
 
1148
- var _ref27 = _this6.context.viewModel || {},
1149
- _ref27$data = _ref27.data;
1078
+ var _ref24 = _this5.context.viewModel || {},
1079
+ _ref24$data = _ref24.data;
1150
1080
 
1151
- _ref27$data = _ref27$data === undefined ? {} : _ref27$data;
1152
- var _ref27$data$Member = _ref27$data.Member,
1153
- dtMember = _ref27$data$Member === undefined ? {} : _ref27$data$Member;
1081
+ _ref24$data = _ref24$data === undefined ? {} : _ref24$data;
1082
+ var _ref24$data$Member = _ref24$data.Member,
1083
+ dtMember = _ref24$data$Member === undefined ? {} : _ref24$data$Member;
1154
1084
 
1155
1085
  var isSelectedMember = !!dtMember.ID;
1156
1086
  _mutantsMicrofx.stores.memberStore.init({
@@ -1179,16 +1109,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1179
1109
  };
1180
1110
 
1181
1111
  this.changePasswordClick = function () {
1182
- if (_this6.modifyPass) _this6.modifyPass.handleOk();
1112
+ if (_this5.modifyPass) _this5.modifyPass.handleOk();
1183
1113
  };
1184
1114
 
1185
1115
  this.changePasswordCancel = function () {
1186
- _this6.setState({ modifyPass: false });
1187
- _this6.modifyPass.handleCancel();
1116
+ _this5.setState({ modifyPass: false });
1117
+ _this5.modifyPass.handleCancel();
1188
1118
  };
1189
1119
 
1190
1120
  this.reportLoss = function () {
1191
- var _props14 = _this6.props,
1121
+ var _props14 = _this5.props,
1192
1122
  member = _props14.member,
1193
1123
  handleChange = _props14.handleChange,
1194
1124
  memberEnumState = _props14.memberEnumState;
@@ -1197,12 +1127,12 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1197
1127
  title: '提示',
1198
1128
  content: '确定要挂失该会员卡吗?',
1199
1129
  onOk: function () {
1200
- var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1201
- return _regenerator2.default.wrap(function _callee9$(_context9) {
1130
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1131
+ return _regenerator2.default.wrap(function _callee8$(_context8) {
1202
1132
  while (1) {
1203
- switch (_context9.prev = _context9.next) {
1133
+ switch (_context8.prev = _context8.next) {
1204
1134
  case 0:
1205
- _this6.api.RecordLoss(member).then(function (ret) {
1135
+ _this5.api.RecordLoss(member).then(function (ret) {
1206
1136
  var Success = ret.Success,
1207
1137
  Msg = ret.Msg,
1208
1138
  Data = ret.Data;
@@ -1222,14 +1152,14 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1222
1152
 
1223
1153
  case 1:
1224
1154
  case 'end':
1225
- return _context9.stop();
1155
+ return _context8.stop();
1226
1156
  }
1227
1157
  }
1228
- }, _callee9, _this6);
1158
+ }, _callee8, _this5);
1229
1159
  }));
1230
1160
 
1231
1161
  return function onOk() {
1232
- return _ref28.apply(this, arguments);
1162
+ return _ref25.apply(this, arguments);
1233
1163
  };
1234
1164
  }(),
1235
1165
  onCancel: function onCancel() {},
@@ -1239,8 +1169,8 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1239
1169
  };
1240
1170
 
1241
1171
  this.cancelLoss = function () {
1242
- if (!_this6.api) return;
1243
- var _props15 = _this6.props,
1172
+ if (!_this5.api) return;
1173
+ var _props15 = _this5.props,
1244
1174
  member = _props15.member,
1245
1175
  handleChange = _props15.handleChange,
1246
1176
  memberEnumState = _props15.memberEnumState;
@@ -1249,12 +1179,12 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1249
1179
  title: '提示',
1250
1180
  content: '确定要取消挂失该会员卡吗?',
1251
1181
  onOk: function () {
1252
- var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1253
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1182
+ var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1183
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1254
1184
  while (1) {
1255
- switch (_context10.prev = _context10.next) {
1185
+ switch (_context9.prev = _context9.next) {
1256
1186
  case 0:
1257
- _this6.api.UnRecordLoss(member).then(function (ret) {
1187
+ _this5.api.UnRecordLoss(member).then(function (ret) {
1258
1188
  var Success = ret.Success,
1259
1189
  Msg = ret.Msg,
1260
1190
  Data = ret.Data;
@@ -1274,14 +1204,14 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1274
1204
 
1275
1205
  case 1:
1276
1206
  case 'end':
1277
- return _context10.stop();
1207
+ return _context9.stop();
1278
1208
  }
1279
1209
  }
1280
- }, _callee10, _this6);
1210
+ }, _callee9, _this5);
1281
1211
  }));
1282
1212
 
1283
1213
  return function onOk() {
1284
- return _ref29.apply(this, arguments);
1214
+ return _ref26.apply(this, arguments);
1285
1215
  };
1286
1216
  }(),
1287
1217
  onCancel: function onCancel() {},
@@ -1291,18 +1221,18 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1291
1221
  };
1292
1222
 
1293
1223
  this.openCard = function () {
1294
- var _props16 = _this6.props,
1224
+ var _props16 = _this5.props,
1295
1225
  member = _props16.member,
1296
1226
  _props16$selected = _props16.selected,
1297
1227
  selected = _props16$selected === undefined ? 0 : _props16$selected,
1298
1228
  memberEnumState = _props16.memberEnumState;
1299
1229
 
1300
- var _ref30 = member || {},
1301
- ID = _ref30.ID,
1302
- _ref30$MemberType = _ref30.MemberType;
1230
+ var _ref27 = member || {},
1231
+ ID = _ref27.ID,
1232
+ _ref27$MemberType = _ref27.MemberType;
1303
1233
 
1304
- _ref30$MemberType = _ref30$MemberType === undefined ? {} : _ref30$MemberType;
1305
- var IsStorage = _ref30$MemberType.IsStorage;
1234
+ _ref27$MemberType = _ref27$MemberType === undefined ? {} : _ref27$MemberType;
1235
+ var IsStorage = _ref27$MemberType.IsStorage;
1306
1236
 
1307
1237
  memberStore.GetMemberDTO(ID, false).then(function (ret) {
1308
1238
  _mutantsMicrofx.stores.selectMemberStore.setCurMemberInfo(ret);
@@ -1337,132 +1267,132 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1337
1267
  _tplusComponentsTouch.Loading.hide();
1338
1268
  };
1339
1269
 
1340
- this.bindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
1341
- var data, _props17, _props17$cardList, cardList, _props17$selected, selected, _ref32, ID;
1270
+ this.bindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1271
+ var data, _props17, _props17$cardList, cardList, _props17$selected, selected, _ref29, ID;
1342
1272
 
1343
- return _regenerator2.default.wrap(function _callee11$(_context11) {
1273
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1344
1274
  while (1) {
1345
- switch (_context11.prev = _context11.next) {
1275
+ switch (_context10.prev = _context10.next) {
1346
1276
  case 0:
1347
- _context11.next = 2;
1348
- return _this6.justifyAuthority();
1277
+ _context10.next = 2;
1278
+ return _this5.justifyAuthority();
1349
1279
 
1350
1280
  case 2:
1351
- data = _context11.sent;
1281
+ data = _context10.sent;
1352
1282
 
1353
1283
  if (!(data === false)) {
1354
- _context11.next = 5;
1284
+ _context10.next = 5;
1355
1285
  break;
1356
1286
  }
1357
1287
 
1358
- return _context11.abrupt('return');
1288
+ return _context10.abrupt('return');
1359
1289
 
1360
1290
  case 5:
1361
- _props17 = _this6.props, _props17$cardList = _props17.cardList, cardList = _props17$cardList === undefined ? [] : _props17$cardList, _props17$selected = _props17.selected, selected = _props17$selected === undefined ? 0 : _props17$selected;
1362
- _ref32 = cardList[selected] || {}, ID = _ref32.ID;
1291
+ _props17 = _this5.props, _props17$cardList = _props17.cardList, cardList = _props17$cardList === undefined ? [] : _props17$cardList, _props17$selected = _props17.selected, selected = _props17$selected === undefined ? 0 : _props17$selected;
1292
+ _ref29 = cardList[selected] || {}, ID = _ref29.ID;
1363
1293
 
1364
1294
  if (!ID) {
1365
- _context11.next = 10;
1295
+ _context10.next = 10;
1366
1296
  break;
1367
1297
  }
1368
1298
 
1369
1299
  _tplusComponentsTouch.Message.error('该储值卡已经绑定,不能再次进行绑定');
1370
- return _context11.abrupt('return');
1300
+ return _context10.abrupt('return');
1371
1301
 
1372
1302
  case 10:
1373
- _this6.setState({ bindCardShow: true });
1303
+ _this5.setState({ bindCardShow: true });
1374
1304
 
1375
1305
  case 11:
1376
1306
  case 'end':
1377
- return _context11.stop();
1307
+ return _context10.stop();
1378
1308
  }
1379
1309
  }
1380
- }, _callee11, _this6);
1310
+ }, _callee10, _this5);
1381
1311
  }));
1382
- this.changeBindCardCancel = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
1312
+ this.changeBindCardCancel = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
1383
1313
  var data;
1384
- return _regenerator2.default.wrap(function _callee12$(_context12) {
1314
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1385
1315
  while (1) {
1386
- switch (_context12.prev = _context12.next) {
1316
+ switch (_context11.prev = _context11.next) {
1387
1317
  case 0:
1388
- _context12.next = 2;
1389
- return _this6.justifyAuthority();
1318
+ _context11.next = 2;
1319
+ return _this5.justifyAuthority();
1390
1320
 
1391
1321
  case 2:
1392
- data = _context12.sent;
1322
+ data = _context11.sent;
1393
1323
 
1394
1324
  if (!(data === false)) {
1395
- _context12.next = 5;
1325
+ _context11.next = 5;
1396
1326
  break;
1397
1327
  }
1398
1328
 
1399
- return _context12.abrupt('return');
1329
+ return _context11.abrupt('return');
1400
1330
 
1401
1331
  case 5:
1402
- _this6.setState({
1332
+ _this5.setState({
1403
1333
  bindCardShow: false,
1404
1334
  bindCardBtnDisabled: true
1405
1335
  });
1406
1336
 
1407
1337
  case 6:
1408
1338
  case 'end':
1409
- return _context12.stop();
1339
+ return _context11.stop();
1410
1340
  }
1411
1341
  }
1412
- }, _callee12, _this6);
1342
+ }, _callee11, _this5);
1413
1343
  }));
1414
1344
 
1415
1345
  this.changeBindCardBtnDisabled = function (disabled) {
1416
- _this6.setState({
1346
+ _this5.setState({
1417
1347
  bindCardBtnDisabled: disabled
1418
1348
  });
1419
1349
  };
1420
1350
 
1421
1351
  this.bindCardClick = function () {
1422
- if (_this6.bindCardRef) {
1423
- var storeKey = _this6.props.storeKey;
1352
+ if (_this5.bindCardRef) {
1353
+ var storeKey = _this5.props.storeKey;
1424
1354
 
1425
- _this6.bindCardFn(_this6.bindCardRef.state);
1355
+ _this5.bindCardFn(_this5.bindCardRef.state);
1426
1356
  }
1427
1357
  };
1428
1358
 
1429
1359
  this.changeRefundCancel = function () {
1430
- _this6.setState({
1360
+ _this5.setState({
1431
1361
  refundShow: false
1432
1362
  });
1433
1363
  };
1434
1364
 
1435
- this.changeRefundOk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
1436
- var _props18, _props18$cardList, cardList, _props18$selected, selected, _ref35, MeStorageCardId, _ref35$BalanceStorage, BalanceStorage, _ref35$PresentAmount, PresentAmount, StorageCardNo, ID, _ref36, _ref36$isCanRefund, isCanRefund, _ref36$canReturnAmoun, canReturnAmount, _ref36$storageInfos, storageInfos, refundable, storageAmount, latestStorageAmount;
1365
+ this.changeRefundOk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
1366
+ var _props18, _props18$cardList, cardList, _props18$selected, selected, _ref32, MeStorageCardId, _ref32$BalanceStorage, BalanceStorage, _ref32$PresentAmount, PresentAmount, StorageCardNo, ID, _ref33, _ref33$isCanRefund, isCanRefund, _ref33$canReturnAmoun, canReturnAmount, _ref33$storageInfos, storageInfos, refundable, storageAmount, latestStorageAmount;
1437
1367
 
1438
- return _regenerator2.default.wrap(function _callee13$(_context13) {
1368
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
1439
1369
  while (1) {
1440
- switch (_context13.prev = _context13.next) {
1370
+ switch (_context12.prev = _context12.next) {
1441
1371
  case 0:
1442
- _props18 = _this6.props, _props18$cardList = _props18.cardList, cardList = _props18$cardList === undefined ? [] : _props18$cardList, _props18$selected = _props18.selected, selected = _props18$selected === undefined ? 0 : _props18$selected;
1443
- _ref35 = cardList.length && cardList[selected] || {}, MeStorageCardId = _ref35.MeStorageCardId, _ref35$BalanceStorage = _ref35.BalanceStorage, BalanceStorage = _ref35$BalanceStorage === undefined ? 0 : _ref35$BalanceStorage, _ref35$PresentAmount = _ref35.PresentAmount, PresentAmount = _ref35$PresentAmount === undefined ? 0 : _ref35$PresentAmount, StorageCardNo = _ref35.StorageCardNo, ID = _ref35.ID;
1444
- _ref36 = _this6.state.lastesStorageResult || {}, _ref36$isCanRefund = _ref36.isCanRefund, isCanRefund = _ref36$isCanRefund === undefined ? false : _ref36$isCanRefund, _ref36$canReturnAmoun = _ref36.canReturnAmount, canReturnAmount = _ref36$canReturnAmoun === undefined ? 0 : _ref36$canReturnAmoun, _ref36$storageInfos = _ref36.storageInfos, storageInfos = _ref36$storageInfos === undefined ? [] : _ref36$storageInfos;
1372
+ _props18 = _this5.props, _props18$cardList = _props18.cardList, cardList = _props18$cardList === undefined ? [] : _props18$cardList, _props18$selected = _props18.selected, selected = _props18$selected === undefined ? 0 : _props18$selected;
1373
+ _ref32 = cardList.length && cardList[selected] || {}, MeStorageCardId = _ref32.MeStorageCardId, _ref32$BalanceStorage = _ref32.BalanceStorage, BalanceStorage = _ref32$BalanceStorage === undefined ? 0 : _ref32$BalanceStorage, _ref32$PresentAmount = _ref32.PresentAmount, PresentAmount = _ref32$PresentAmount === undefined ? 0 : _ref32$PresentAmount, StorageCardNo = _ref32.StorageCardNo, ID = _ref32.ID;
1374
+ _ref33 = _this5.state.lastesStorageResult || {}, _ref33$isCanRefund = _ref33.isCanRefund, isCanRefund = _ref33$isCanRefund === undefined ? false : _ref33$isCanRefund, _ref33$canReturnAmoun = _ref33.canReturnAmount, canReturnAmount = _ref33$canReturnAmoun === undefined ? 0 : _ref33$canReturnAmoun, _ref33$storageInfos = _ref33.storageInfos, storageInfos = _ref33$storageInfos === undefined ? [] : _ref33$storageInfos;
1445
1375
  refundable = parseFloat((0, _utils.getFixedNumber)(canReturnAmount));
1446
1376
  storageAmount = (0, _utils.getFixedNumber)(0 - canReturnAmount);
1447
1377
 
1448
1378
  // 退款金额小于等于0,不允许退款
1449
1379
 
1450
1380
  if (!(Number(canReturnAmount) <= 0)) {
1451
- _context13.next = 8;
1381
+ _context12.next = 8;
1452
1382
  break;
1453
1383
  }
1454
1384
 
1455
1385
  _tplusComponentsTouch.Message.error('无可退金额,不支持退款!');
1456
- return _context13.abrupt('return');
1386
+ return _context12.abrupt('return');
1457
1387
 
1458
1388
  case 8:
1459
1389
  if (isCanRefund) {
1460
- _context13.next = 11;
1390
+ _context12.next = 11;
1461
1391
  break;
1462
1392
  }
1463
1393
 
1464
- _this6.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
1465
- return _context13.abrupt('return');
1394
+ _this5.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
1395
+ return _context12.abrupt('return');
1466
1396
 
1467
1397
  case 11:
1468
1398
 
@@ -1473,78 +1403,58 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1473
1403
  // 退款只支持退最后一次储值的金额,如果最后一次储值的金额小于可退金额,弹出提示。
1474
1404
 
1475
1405
  if (!(latestStorageAmount && latestStorageAmount < refundable)) {
1476
- _context13.next = 15;
1406
+ _context12.next = 15;
1477
1407
  break;
1478
1408
  }
1479
1409
 
1480
- _this6.returnedCash('\u9000\u6B3E\u5927\u4E8E\u6700\u540E\u4E00\u6B21\u50A8\u503C\u91D1\u989D\uFF0C\u65E0\u6CD5\u539F\u8DEF\u9000\u56DE\uFF0C\u53EA\u53EF\u9000\u73B0\u91D1\uFF01\u662F\u5426\u9000\u6B3E\uFF1F', storageAmount);
1481
- return _context13.abrupt('return');
1410
+ _this5.returnedCash('\u9000\u6B3E\u5927\u4E8E\u6700\u540E\u4E00\u6B21\u50A8\u503C\u91D1\u989D\uFF0C\u65E0\u6CD5\u539F\u8DEF\u9000\u56DE\uFF0C\u53EA\u53EF\u9000\u73B0\u91D1\uFF01\u662F\u5426\u9000\u6B3E\uFF1F', storageAmount);
1411
+ return _context12.abrupt('return');
1482
1412
 
1483
1413
  case 15:
1484
1414
 
1485
- _this6.submitRefundStorage(cardList[selected], storageAmount);
1415
+ _this5.submitRefundStorage(cardList[selected], storageAmount);
1486
1416
 
1487
1417
  case 16:
1488
1418
  case 'end':
1489
- return _context13.stop();
1419
+ return _context12.stop();
1490
1420
  }
1491
1421
  }
1492
- }, _callee13, _this6);
1422
+ }, _callee12, _this5);
1493
1423
  }));
1424
+ this.returnedStorage = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
1425
+ var data, _props19, _props19$cardList, cardList, _props19$selected, selected, _ref35, Id, MeStorageCardId, _ref35$BalanceStorage, BalanceStorage, _ref35$PresentAmount, PresentAmount, refundable, lastesStorageResult;
1494
1426
 
1495
- this.getThirdPaymentInfo = function (item, settlementStore) {
1496
- var _ref37 = item || {},
1497
- paymentTypeId = _ref37.paymentTypeId,
1498
- thirdPaymentReturnInfo = _ref37.thirdPaymentReturnInfo;
1499
-
1500
- var obj = {};
1501
- var paymode = settlementStore && settlementStore.paymode;
1502
- if (paymode) {
1503
- var mode = paymode && paymode.paymodes.find(function (v) {
1504
- return v.idSettleStyle == paymentTypeId;
1505
- });
1506
- obj = thirdPaymentReturnInfo ? {
1507
- ThirdPaymentInfo: mode && mode.thridPayment || null,
1508
- ThirdPaymentReturnInfo: thirdPaymentReturnInfo
1509
- } : {};
1510
- }
1511
- return obj;
1512
- };
1513
-
1514
- this.returnedStorage = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1515
- var data, _props19, _props19$cardList, cardList, _props19$selected, selected, _ref39, Id, MeStorageCardId, _ref39$BalanceStorage, BalanceStorage, _ref39$PresentAmount, PresentAmount, refundable, lastesStorageResult;
1516
-
1517
- return _regenerator2.default.wrap(function _callee14$(_context14) {
1427
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
1518
1428
  while (1) {
1519
- switch (_context14.prev = _context14.next) {
1429
+ switch (_context13.prev = _context13.next) {
1520
1430
  case 0:
1521
- _context14.next = 2;
1522
- return _this6.justifyAuthority();
1431
+ _context13.next = 2;
1432
+ return _this5.justifyAuthority();
1523
1433
 
1524
1434
  case 2:
1525
- data = _context14.sent;
1435
+ data = _context13.sent;
1526
1436
 
1527
1437
  if (!(data === false)) {
1528
- _context14.next = 5;
1438
+ _context13.next = 5;
1529
1439
  break;
1530
1440
  }
1531
1441
 
1532
- return _context14.abrupt('return');
1442
+ return _context13.abrupt('return');
1533
1443
 
1534
1444
  case 5:
1535
- _props19 = _this6.props, _props19$cardList = _props19.cardList, cardList = _props19$cardList === undefined ? [] : _props19$cardList, _props19$selected = _props19.selected, selected = _props19$selected === undefined ? 0 : _props19$selected;
1536
- _ref39 = cardList[selected] || {}, Id = _ref39.Id, MeStorageCardId = _ref39.MeStorageCardId, _ref39$BalanceStorage = _ref39.BalanceStorage, BalanceStorage = _ref39$BalanceStorage === undefined ? 0 : _ref39$BalanceStorage, _ref39$PresentAmount = _ref39.PresentAmount, PresentAmount = _ref39$PresentAmount === undefined ? 0 : _ref39$PresentAmount;
1445
+ _props19 = _this5.props, _props19$cardList = _props19.cardList, cardList = _props19$cardList === undefined ? [] : _props19$cardList, _props19$selected = _props19.selected, selected = _props19$selected === undefined ? 0 : _props19$selected;
1446
+ _ref35 = cardList[selected] || {}, Id = _ref35.Id, MeStorageCardId = _ref35.MeStorageCardId, _ref35$BalanceStorage = _ref35.BalanceStorage, BalanceStorage = _ref35$BalanceStorage === undefined ? 0 : _ref35$BalanceStorage, _ref35$PresentAmount = _ref35.PresentAmount, PresentAmount = _ref35$PresentAmount === undefined ? 0 : _ref35$PresentAmount;
1537
1447
 
1538
1448
  // 获取最后一次储值信息
1539
1449
 
1540
1450
  refundable = parseFloat((0, _utils.getFixedNumber)(BalanceStorage - PresentAmount));
1541
- _context14.next = 10;
1542
- return _this6.api.getLatestStorageAmount({ cardId: MeStorageCardId, inputRefundAmount: refundable });
1451
+ _context13.next = 10;
1452
+ return _this5.api.getLatestStorageAmount({ cardId: MeStorageCardId, inputRefundAmount: refundable });
1543
1453
 
1544
1454
  case 10:
1545
- lastesStorageResult = _context14.sent;
1455
+ lastesStorageResult = _context13.sent;
1546
1456
 
1547
- _this6.setState({
1457
+ _this5.setState({
1548
1458
  lastesStorageResult: lastesStorageResult.data || {}
1549
1459
  });
1550
1460
 
@@ -1554,7 +1464,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1554
1464
  cardInfo: cardList[selected],
1555
1465
  settlementControlEvent: {},
1556
1466
  callback: function callback() {
1557
- _this6.setState({
1467
+ _this5.setState({
1558
1468
  refundShow: true
1559
1469
  });
1560
1470
  }
@@ -1562,115 +1472,115 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1562
1472
 
1563
1473
  case 15:
1564
1474
  case 'end':
1565
- return _context14.stop();
1475
+ return _context13.stop();
1566
1476
  }
1567
1477
  }
1568
- }, _callee14, _this6);
1478
+ }, _callee13, _this5);
1569
1479
  }));
1570
- this.memberUnBindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
1571
- var data, _props20, _props20$cardList, cardList, _props20$selected, selected, _ref41, StorageCardNo, MemberMobile, MemberName, ID;
1480
+ this.memberUnBindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
1481
+ var data, _props20, _props20$cardList, cardList, _props20$selected, selected, _ref37, StorageCardNo, MemberMobile, MemberName, ID;
1572
1482
 
1573
- return _regenerator2.default.wrap(function _callee16$(_context16) {
1483
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
1574
1484
  while (1) {
1575
- switch (_context16.prev = _context16.next) {
1485
+ switch (_context15.prev = _context15.next) {
1576
1486
  case 0:
1577
- _context16.next = 2;
1578
- return _this6.justifyAuthority();
1487
+ _context15.next = 2;
1488
+ return _this5.justifyAuthority();
1579
1489
 
1580
1490
  case 2:
1581
- data = _context16.sent;
1491
+ data = _context15.sent;
1582
1492
 
1583
1493
  if (!(data === false)) {
1584
- _context16.next = 5;
1494
+ _context15.next = 5;
1585
1495
  break;
1586
1496
  }
1587
1497
 
1588
- return _context16.abrupt('return');
1498
+ return _context15.abrupt('return');
1589
1499
 
1590
1500
  case 5:
1591
- _props20 = _this6.props, _props20$cardList = _props20.cardList, cardList = _props20$cardList === undefined ? [] : _props20$cardList, _props20$selected = _props20.selected, selected = _props20$selected === undefined ? 0 : _props20$selected;
1592
- _ref41 = cardList[selected] || {}, StorageCardNo = _ref41.StorageCardNo, MemberMobile = _ref41.MemberMobile, MemberName = _ref41.MemberName, ID = _ref41.ID;
1501
+ _props20 = _this5.props, _props20$cardList = _props20.cardList, cardList = _props20$cardList === undefined ? [] : _props20$cardList, _props20$selected = _props20.selected, selected = _props20$selected === undefined ? 0 : _props20$selected;
1502
+ _ref37 = cardList[selected] || {}, StorageCardNo = _ref37.StorageCardNo, MemberMobile = _ref37.MemberMobile, MemberName = _ref37.MemberName, ID = _ref37.ID;
1593
1503
 
1594
1504
  if (ID) {
1595
- _context16.next = 10;
1505
+ _context15.next = 10;
1596
1506
  break;
1597
1507
  }
1598
1508
 
1599
1509
  _tplusComponentsTouch.Message.error('该卡未绑定会员');
1600
- return _context16.abrupt('return');
1510
+ return _context15.abrupt('return');
1601
1511
 
1602
1512
  case 10:
1603
1513
  _tplusComponentsTouch.ModalWraper.confirm({
1604
1514
  title: '提示',
1605
1515
  content: '\u6B64\u5361\u5C5E\u4E8E' + (MemberName || MemberMobile) + '\u4F1A\u5458\uFF0C\u786E\u8BA4\u89E3\u7ED1\u5417\uFF1F',
1606
- confirmLoading: _this6.state.memberUnBindCardLoading,
1516
+ confirmLoading: _this5.state.memberUnBindCardLoading,
1607
1517
  onOk: function () {
1608
- var _ref42 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
1609
- return _regenerator2.default.wrap(function _callee15$(_context15) {
1518
+ var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1519
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
1610
1520
  while (1) {
1611
- switch (_context15.prev = _context15.next) {
1521
+ switch (_context14.prev = _context14.next) {
1612
1522
  case 0:
1613
- _this6.setState({
1523
+ _this5.setState({
1614
1524
  memberUnBindCardLoading: true
1615
1525
  });
1616
- _this6.api.MeStorageCardUnbind({ StorageCardNo: StorageCardNo }).then(function (res) {
1617
- var getCardList = _this6.props.getCardList;
1526
+ _this5.api.MeStorageCardUnbind({ StorageCardNo: StorageCardNo }).then(function (res) {
1527
+ var getCardList = _this5.props.getCardList;
1618
1528
 
1619
1529
  _tplusComponentsTouch.Message.success('解绑成功');
1620
1530
  getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo);
1621
- _this6.setState({
1531
+ _this5.setState({
1622
1532
  memberUnBindCardLoading: false
1623
1533
  });
1624
1534
  }).catch(function () {
1625
- _this6.setState({
1535
+ _this5.setState({
1626
1536
  memberUnBindCardLoading: false
1627
1537
  });
1628
1538
  });
1629
1539
 
1630
1540
  case 2:
1631
1541
  case 'end':
1632
- return _context15.stop();
1542
+ return _context14.stop();
1633
1543
  }
1634
1544
  }
1635
- }, _callee15, _this6);
1545
+ }, _callee14, _this5);
1636
1546
  }));
1637
1547
 
1638
1548
  return function onOk() {
1639
- return _ref42.apply(this, arguments);
1549
+ return _ref38.apply(this, arguments);
1640
1550
  };
1641
1551
  }()
1642
1552
  });
1643
1553
 
1644
1554
  case 11:
1645
1555
  case 'end':
1646
- return _context16.stop();
1556
+ return _context15.stop();
1647
1557
  }
1648
1558
  }
1649
- }, _callee16, _this6);
1559
+ }, _callee15, _this5);
1650
1560
  }));
1651
1561
 
1652
1562
  this.changeBtnDisabled = function (value) {
1653
- _this6.setState({
1563
+ _this5.setState({
1654
1564
  btnDissabled: value
1655
1565
  });
1656
1566
  };
1657
1567
 
1658
1568
  this.getMenuItem = function (index, menu) {
1659
- var _props21 = _this6.props,
1569
+ var _props21 = _this5.props,
1660
1570
  loadingBtn = _props21.loadingBtn,
1661
1571
  _props21$cardList = _props21.cardList,
1662
1572
  cardList = _props21$cardList === undefined ? [] : _props21$cardList,
1663
1573
  _props21$selected = _props21.selected,
1664
1574
  selected = _props21$selected === undefined ? 0 : _props21$selected;
1665
1575
 
1666
- var _ref43 = _this6.state || {},
1667
- setPwdShortKey = _ref43.setPwdShortKey;
1576
+ var _ref39 = _this5.state || {},
1577
+ setPwdShortKey = _ref39.setPwdShortKey;
1668
1578
 
1669
1579
  var newStyle = _mutantsUtil.localStore && _mutantsUtil.localStore.get('voucherDefaultPosMode') == 'voucher';
1670
1580
 
1671
- var _ref44 = cardList && cardList.length && cardList[selected] || {},
1672
- WalletEnabled = _ref44.WalletEnabled,
1673
- CardTypeEnum = _ref44.CardTypeEnum;
1581
+ var _ref40 = cardList && cardList.length && cardList[selected] || {},
1582
+ WalletEnabled = _ref40.WalletEnabled,
1583
+ CardTypeEnum = _ref40.CardTypeEnum;
1674
1584
  // 控制显示修改密码还是设置密码
1675
1585
 
1676
1586
 
@@ -1680,7 +1590,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1680
1590
  'div',
1681
1591
  { key: index, className: 'primary-color b-theme ' + ('hot-' + menu.auth) + ' ' + (loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn ') + ' ' + (newStyle && 'memberHeight'),
1682
1592
  onClick: function onClick() {
1683
- if (loadingBtn === false) _this6.click(menu.key, menu.auth);
1593
+ if (loadingBtn === false) _this5.click(menu.key, menu.auth);
1684
1594
  }
1685
1595
  },
1686
1596
  WalletEnabled ? _react2.default.createElement(
@@ -1718,7 +1628,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1718
1628
  'div',
1719
1629
  { key: index, className: 'primary-color b-theme ' + ('hot-' + menu.auth) + ' ' + (loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn ') + ' ' + (newStyle && 'memberHeight'),
1720
1630
  onClick: function onClick() {
1721
- if (loadingBtn === false) _this6.click(menu.key, menu.auth);
1631
+ if (loadingBtn === false) _this5.click(menu.key, menu.auth);
1722
1632
  }
1723
1633
  },
1724
1634
  _react2.default.createElement(
@@ -1747,7 +1657,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1747
1657
  key: index,
1748
1658
  className: 'primary-color b-theme ' + ('hot-' + menu.auth) + ' ' + (loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn ') + ' ' + (newStyle && 'memberHeight'),
1749
1659
  onClick: function onClick() {
1750
- if (loadingBtn === false) _this6.click(menu.key, menu.auth, menu.name);
1660
+ if (loadingBtn === false) _this5.click(menu.key, menu.auth, menu.name);
1751
1661
  }
1752
1662
  },
1753
1663
  _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: menu.icon }),