tplus-member 3.32.3 → 3.33.3

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