tplus-member 3.34.1 → 3.36.2

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, _ret, _ref21, isSuccess, ex;
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,50 +777,68 @@ 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;
812
+ // 二开支付处理
813
+ _context8.next = 15;
814
+ return this.thirdPayRefund(params);
815
+
816
+ case 15:
817
+ ret = _context8.sent;
818
+ _ref20 = ret || {}, type = _ref20.type, code = _ref20.code;
819
+
820
+ if (!(type === false)) {
821
+ _context8.next = 20;
822
+ break;
823
+ }
824
+
825
+ _tplusComponentsTouch.Message.warn('\u5237\u5361\u652F\u4ED8\u5931\u8D25,\u9519\u8BEF\u7801:' + code);
826
+ return _context8.abrupt('return');
827
+
828
+ case 20:
829
+ _context8.next = 22;
723
830
  return this.setState({
724
831
  refundBtnDisabled: true
725
832
  });
726
833
 
727
- case 15:
728
- _context7.prev = 15;
729
- _context7.next = 18;
834
+ case 22:
835
+ _context8.prev = 22;
836
+ _context8.next = 25;
730
837
  return this.api.ReturnedStorage(params);
731
838
 
732
- case 18:
733
- ret = _context7.sent;
734
- _ref17 = ret.data || {}, isSuccess = _ref17.isSuccess, ex = _ref17.ex;
839
+ case 25:
840
+ _ret = _context8.sent;
841
+ _ref21 = _ret.data || {}, isSuccess = _ref21.isSuccess, ex = _ref21.ex;
735
842
 
736
843
  if (isSuccess === true || isSuccess === 'true') {
737
844
  if (!!isSelectedMember && dtMember.ID === ID) {
@@ -743,34 +850,34 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
743
850
  this.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
744
851
  }
745
852
 
746
- _context7.next = 23;
853
+ _context8.next = 30;
747
854
  return this.setState({
748
855
  refundBtnDisabled: false,
749
856
  refundShow: false
750
857
  });
751
858
 
752
- case 23:
753
- _context7.next = 29;
859
+ case 30:
860
+ _context8.next = 36;
754
861
  break;
755
862
 
756
- case 25:
757
- _context7.prev = 25;
758
- _context7.t0 = _context7['catch'](15);
759
- _context7.next = 29;
863
+ case 32:
864
+ _context8.prev = 32;
865
+ _context8.t0 = _context8['catch'](22);
866
+ _context8.next = 36;
760
867
  return this.setState({
761
868
  refundBtnDisabled: false
762
869
  });
763
870
 
764
- case 29:
871
+ case 36:
765
872
  case 'end':
766
- return _context7.stop();
873
+ return _context8.stop();
767
874
  }
768
875
  }
769
- }, _callee7, this, [[15, 25]]);
876
+ }, _callee8, this, [[22, 32]]);
770
877
  }));
771
878
 
772
879
  function submitRefundStorage() {
773
- return _ref13.apply(this, arguments);
880
+ return _ref15.apply(this, arguments);
774
881
  }
775
882
 
776
883
  return submitRefundStorage;
@@ -805,44 +912,44 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
805
912
  }, {
806
913
  key: 'click',
807
914
  value: function click(key, auth, name) {
808
- var _this3 = this;
915
+ var _this4 = this;
809
916
 
810
917
  this.setState({
811
918
  warnContent: ''
812
919
  });
813
920
  this.handleEvent(auth).then(function (ret) {
814
921
  if (key === 'storage') {
815
- _this3.setState({
922
+ _this4.setState({
816
923
  menuKey: 'storage'
817
924
  });
818
925
  } else {
819
- _this3.setState({
926
+ _this4.setState({
820
927
  menuKey: null
821
928
  });
822
929
  }
823
930
  if (ret === true) {
824
- var _ref18 = _mutantsUtil.platform || {},
825
- isHorizontalSunMi = _ref18.isHorizontalSunMi;
931
+ var _ref22 = _mutantsUtil.platform || {},
932
+ isHorizontalSunMi = _ref22.isHorizontalSunMi;
826
933
 
827
934
  switch (key) {
828
935
  case 'storage':
829
- _this3.storage();break;
936
+ _this4.storage();break;
830
937
  case 'changePassword':
831
- _this3.changePassword();break;
938
+ _this4.changePassword();break;
832
939
  case 'reportLoss':
833
- _this3.reportLoss();break;
940
+ _this4.reportLoss();break;
834
941
  case 'cancelLoss':
835
- _this3.cancelLoss();break;
942
+ _this4.cancelLoss();break;
836
943
  case 'openCard':
837
- _this3.openCard();break;
944
+ _this4.openCard();break;
838
945
  case 'resetPassword':
839
- _this3.resetPassword();break;
946
+ _this4.resetPassword();break;
840
947
  case 'memberBindCard':
841
- _this3.bindCard(key, name);break;
948
+ _this4.bindCard(key, name);break;
842
949
  case 'memberUnBindCard':
843
- _this3.memberUnBindCard();break;
950
+ _this4.memberUnBindCard();break;
844
951
  case 'returnedStorage':
845
- _this3.returnedStorage();break;
952
+ _this4.returnedStorage();break;
846
953
  }
847
954
  }
848
955
  });
@@ -850,7 +957,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
850
957
  }, {
851
958
  key: 'render',
852
959
  value: function render() {
853
- var _this4 = this;
960
+ var _this5 = this;
854
961
 
855
962
  var _state = this.state,
856
963
  menus = _state.menus,
@@ -875,16 +982,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
875
982
  _props11$cardList = _props11.cardList,
876
983
  cardList = _props11$cardList === undefined ? [] : _props11$cardList;
877
984
 
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;
985
+ var _ref23 = cardList.length && cardList[selected] || {},
986
+ Id = _ref23.Id,
987
+ _ref23$BalanceStorage = _ref23.BalanceStorage,
988
+ BalanceStorage = _ref23$BalanceStorage === undefined ? 0 : _ref23$BalanceStorage,
989
+ _ref23$PresentAmount = _ref23.PresentAmount,
990
+ PresentAmount = _ref23$PresentAmount === undefined ? 0 : _ref23$PresentAmount,
991
+ WalletEnabled = _ref23.WalletEnabled,
992
+ CardTypeEnum = _ref23.CardTypeEnum,
993
+ CardStatusEnum = _ref23.CardStatusEnum,
994
+ StorageCardNo = _ref23.StorageCardNo;
888
995
 
889
996
  var canReturnAmount = lastesStorageResult.canReturnAmount,
890
997
  usedPresentAmount = lastesStorageResult.usedPresentAmount;
@@ -898,19 +1005,19 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
898
1005
  if (status) {
899
1006
  if (menu.auth === 'BindStorageCard') {
900
1007
  if (menu.key === 'memberBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'UNBINDING') {
901
- return _this4.getMenuItem(index, menu);
1008
+ return _this5.getMenuItem(index, menu);
902
1009
  }
903
1010
  if (menu.key === 'memberUnBindCard' && CardTypeEnum !== 'BALANCE_CARD' && CardStatusEnum && CardStatusEnum === 'BINDING') {
904
- return _this4.getMenuItem(index, menu);
1011
+ return _this5.getMenuItem(index, menu);
905
1012
  }
906
1013
  } else {
907
- return _this4.getMenuItem(index, menu);
1014
+ return _this5.getMenuItem(index, menu);
908
1015
  }
909
1016
  } else {
910
1017
  if (menu.auth === 'ModifyPassword') {
911
- return _this4.getMenuItem(index, menu);
1018
+ return _this5.getMenuItem(index, menu);
912
1019
  } else if (menu.auth === 'returnedStorage') {
913
- return _this4.getMenuItem(index, menu);
1020
+ return _this5.getMenuItem(index, menu);
914
1021
  } else {
915
1022
  return '';
916
1023
  }
@@ -929,10 +1036,10 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
929
1036
  cancel: this.changePasswordCancel,
930
1037
  btnDissabled: btnDissabled
931
1038
  },
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;
1039
+ passwordTitle === '换卡' ? _react2.default.createElement(_changeMemberCard2.default, { cardList: cardList && cardList.length && cardList[selected], modifyMember: modifyMember, member: member, ref: function ref(_ref24) {
1040
+ return _this5.modifyPass = _ref24;
1041
+ }, 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(_ref25) {
1042
+ return _this5.modifyPass = _ref25;
936
1043
  }, member: member, cancelModal: this.changePasswordCancel })
937
1044
  ),
938
1045
  _react2.default.createElement(
@@ -947,8 +1054,8 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
947
1054
  btnDissabled: bindCardBtnDisabled
948
1055
  },
949
1056
  _react2.default.createElement(_bindCard2.default, {
950
- ref: function ref(_ref22) {
951
- return _this4.bindCardRef = _ref22;
1057
+ ref: function ref(_ref26) {
1058
+ return _this5.bindCardRef = _ref26;
952
1059
  },
953
1060
  bindCardClick: this.bindCardClick,
954
1061
  changeBindCardBtnDisabled: this.changeBindCardBtnDisabled
@@ -1045,10 +1152,10 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1045
1152
  viewModel: _propTypes.PropTypes.object,
1046
1153
  stores: _propTypes.PropTypes.object
1047
1154
  }, _initialiseProps = function _initialiseProps() {
1048
- var _this5 = this;
1155
+ var _this6 = this;
1049
1156
 
1050
1157
  this.filterMenus = function (tags) {
1051
- var _props12 = _this5.props,
1158
+ var _props12 = _this6.props,
1052
1159
  title = _props12.title,
1053
1160
  storeKey = _props12.storeKey;
1054
1161
 
@@ -1059,11 +1166,11 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1059
1166
  };
1060
1167
 
1061
1168
  this.controllerEvent = function (methodName, methodArgs) {
1062
- return _this5.context.onEvent({ 'controllerEvent': _mutantsAppfx.Action.fromJS(_this5.context.viewModel, methodName) }, 'controllerEvent', methodArgs);
1169
+ return _this6.context.onEvent({ 'controllerEvent': _mutantsAppfx.Action.fromJS(_this6.context.viewModel, methodName) }, 'controllerEvent', methodArgs);
1063
1170
  };
1064
1171
 
1065
1172
  this.storageInit = function () {
1066
- var _props13 = _this5.props,
1173
+ var _props13 = _this6.props,
1067
1174
  _props13$cardList = _props13.cardList,
1068
1175
  cardList = _props13$cardList === undefined ? [] : _props13$cardList,
1069
1176
  getCardList = _props13.getCardList,
@@ -1071,16 +1178,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1071
1178
  selected = _props13$selected === undefined ? 0 : _props13$selected,
1072
1179
  loadUserInfo = _props13.loadUserInfo;
1073
1180
 
1074
- var _ref23 = cardList[selected] || {},
1075
- StorageCardNo = _ref23.StorageCardNo,
1076
- ID = _ref23.ID;
1181
+ var _ref27 = cardList[selected] || {},
1182
+ StorageCardNo = _ref27.StorageCardNo,
1183
+ ID = _ref27.ID;
1077
1184
 
1078
- var _ref24 = _this5.context.viewModel || {},
1079
- _ref24$data = _ref24.data;
1185
+ var _ref28 = _this6.context.viewModel || {},
1186
+ _ref28$data = _ref28.data;
1080
1187
 
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;
1188
+ _ref28$data = _ref28$data === undefined ? {} : _ref28$data;
1189
+ var _ref28$data$Member = _ref28$data.Member,
1190
+ dtMember = _ref28$data$Member === undefined ? {} : _ref28$data$Member;
1084
1191
 
1085
1192
  var isSelectedMember = !!dtMember.ID;
1086
1193
  _mutantsMicrofx.stores.memberStore.init({
@@ -1109,16 +1216,16 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1109
1216
  };
1110
1217
 
1111
1218
  this.changePasswordClick = function () {
1112
- if (_this5.modifyPass) _this5.modifyPass.handleOk();
1219
+ if (_this6.modifyPass) _this6.modifyPass.handleOk();
1113
1220
  };
1114
1221
 
1115
1222
  this.changePasswordCancel = function () {
1116
- _this5.setState({ modifyPass: false });
1117
- _this5.modifyPass.handleCancel();
1223
+ _this6.setState({ modifyPass: false });
1224
+ _this6.modifyPass.handleCancel();
1118
1225
  };
1119
1226
 
1120
1227
  this.reportLoss = function () {
1121
- var _props14 = _this5.props,
1228
+ var _props14 = _this6.props,
1122
1229
  member = _props14.member,
1123
1230
  handleChange = _props14.handleChange,
1124
1231
  memberEnumState = _props14.memberEnumState;
@@ -1127,12 +1234,12 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1127
1234
  title: '提示',
1128
1235
  content: '确定要挂失该会员卡吗?',
1129
1236
  onOk: function () {
1130
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1131
- return _regenerator2.default.wrap(function _callee8$(_context8) {
1237
+ var _ref29 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1238
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1132
1239
  while (1) {
1133
- switch (_context8.prev = _context8.next) {
1240
+ switch (_context9.prev = _context9.next) {
1134
1241
  case 0:
1135
- _this5.api.RecordLoss(member).then(function (ret) {
1242
+ _this6.api.RecordLoss(member).then(function (ret) {
1136
1243
  var Success = ret.Success,
1137
1244
  Msg = ret.Msg,
1138
1245
  Data = ret.Data;
@@ -1152,14 +1259,14 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1152
1259
 
1153
1260
  case 1:
1154
1261
  case 'end':
1155
- return _context8.stop();
1262
+ return _context9.stop();
1156
1263
  }
1157
1264
  }
1158
- }, _callee8, _this5);
1265
+ }, _callee9, _this6);
1159
1266
  }));
1160
1267
 
1161
1268
  return function onOk() {
1162
- return _ref25.apply(this, arguments);
1269
+ return _ref29.apply(this, arguments);
1163
1270
  };
1164
1271
  }(),
1165
1272
  onCancel: function onCancel() {},
@@ -1169,8 +1276,8 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1169
1276
  };
1170
1277
 
1171
1278
  this.cancelLoss = function () {
1172
- if (!_this5.api) return;
1173
- var _props15 = _this5.props,
1279
+ if (!_this6.api) return;
1280
+ var _props15 = _this6.props,
1174
1281
  member = _props15.member,
1175
1282
  handleChange = _props15.handleChange,
1176
1283
  memberEnumState = _props15.memberEnumState;
@@ -1179,12 +1286,12 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1179
1286
  title: '提示',
1180
1287
  content: '确定要取消挂失该会员卡吗?',
1181
1288
  onOk: function () {
1182
- var _ref26 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1183
- return _regenerator2.default.wrap(function _callee9$(_context9) {
1289
+ var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1290
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1184
1291
  while (1) {
1185
- switch (_context9.prev = _context9.next) {
1292
+ switch (_context10.prev = _context10.next) {
1186
1293
  case 0:
1187
- _this5.api.UnRecordLoss(member).then(function (ret) {
1294
+ _this6.api.UnRecordLoss(member).then(function (ret) {
1188
1295
  var Success = ret.Success,
1189
1296
  Msg = ret.Msg,
1190
1297
  Data = ret.Data;
@@ -1204,14 +1311,14 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1204
1311
 
1205
1312
  case 1:
1206
1313
  case 'end':
1207
- return _context9.stop();
1314
+ return _context10.stop();
1208
1315
  }
1209
1316
  }
1210
- }, _callee9, _this5);
1317
+ }, _callee10, _this6);
1211
1318
  }));
1212
1319
 
1213
1320
  return function onOk() {
1214
- return _ref26.apply(this, arguments);
1321
+ return _ref30.apply(this, arguments);
1215
1322
  };
1216
1323
  }(),
1217
1324
  onCancel: function onCancel() {},
@@ -1221,18 +1328,18 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1221
1328
  };
1222
1329
 
1223
1330
  this.openCard = function () {
1224
- var _props16 = _this5.props,
1331
+ var _props16 = _this6.props,
1225
1332
  member = _props16.member,
1226
1333
  _props16$selected = _props16.selected,
1227
1334
  selected = _props16$selected === undefined ? 0 : _props16$selected,
1228
1335
  memberEnumState = _props16.memberEnumState;
1229
1336
 
1230
- var _ref27 = member || {},
1231
- ID = _ref27.ID,
1232
- _ref27$MemberType = _ref27.MemberType;
1337
+ var _ref31 = member || {},
1338
+ ID = _ref31.ID,
1339
+ _ref31$MemberType = _ref31.MemberType;
1233
1340
 
1234
- _ref27$MemberType = _ref27$MemberType === undefined ? {} : _ref27$MemberType;
1235
- var IsStorage = _ref27$MemberType.IsStorage;
1341
+ _ref31$MemberType = _ref31$MemberType === undefined ? {} : _ref31$MemberType;
1342
+ var IsStorage = _ref31$MemberType.IsStorage;
1236
1343
 
1237
1344
  memberStore.GetMemberDTO(ID, false).then(function (ret) {
1238
1345
  _mutantsMicrofx.stores.selectMemberStore.setCurMemberInfo(ret);
@@ -1267,132 +1374,132 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1267
1374
  _tplusComponentsTouch.Loading.hide();
1268
1375
  };
1269
1376
 
1270
- this.bindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10() {
1271
- var data, _props17, _props17$cardList, cardList, _props17$selected, selected, _ref29, ID;
1377
+ this.bindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
1378
+ var data, _props17, _props17$cardList, cardList, _props17$selected, selected, _ref33, ID;
1272
1379
 
1273
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1380
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1274
1381
  while (1) {
1275
- switch (_context10.prev = _context10.next) {
1382
+ switch (_context11.prev = _context11.next) {
1276
1383
  case 0:
1277
- _context10.next = 2;
1278
- return _this5.justifyAuthority();
1384
+ _context11.next = 2;
1385
+ return _this6.justifyAuthority();
1279
1386
 
1280
1387
  case 2:
1281
- data = _context10.sent;
1388
+ data = _context11.sent;
1282
1389
 
1283
1390
  if (!(data === false)) {
1284
- _context10.next = 5;
1391
+ _context11.next = 5;
1285
1392
  break;
1286
1393
  }
1287
1394
 
1288
- return _context10.abrupt('return');
1395
+ return _context11.abrupt('return');
1289
1396
 
1290
1397
  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;
1398
+ _props17 = _this6.props, _props17$cardList = _props17.cardList, cardList = _props17$cardList === undefined ? [] : _props17$cardList, _props17$selected = _props17.selected, selected = _props17$selected === undefined ? 0 : _props17$selected;
1399
+ _ref33 = cardList[selected] || {}, ID = _ref33.ID;
1293
1400
 
1294
1401
  if (!ID) {
1295
- _context10.next = 10;
1402
+ _context11.next = 10;
1296
1403
  break;
1297
1404
  }
1298
1405
 
1299
1406
  _tplusComponentsTouch.Message.error('该储值卡已经绑定,不能再次进行绑定');
1300
- return _context10.abrupt('return');
1407
+ return _context11.abrupt('return');
1301
1408
 
1302
1409
  case 10:
1303
- _this5.setState({ bindCardShow: true });
1410
+ _this6.setState({ bindCardShow: true });
1304
1411
 
1305
1412
  case 11:
1306
1413
  case 'end':
1307
- return _context10.stop();
1414
+ return _context11.stop();
1308
1415
  }
1309
1416
  }
1310
- }, _callee10, _this5);
1417
+ }, _callee11, _this6);
1311
1418
  }));
1312
- this.changeBindCardCancel = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
1419
+ this.changeBindCardCancel = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12() {
1313
1420
  var data;
1314
- return _regenerator2.default.wrap(function _callee11$(_context11) {
1421
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
1315
1422
  while (1) {
1316
- switch (_context11.prev = _context11.next) {
1423
+ switch (_context12.prev = _context12.next) {
1317
1424
  case 0:
1318
- _context11.next = 2;
1319
- return _this5.justifyAuthority();
1425
+ _context12.next = 2;
1426
+ return _this6.justifyAuthority();
1320
1427
 
1321
1428
  case 2:
1322
- data = _context11.sent;
1429
+ data = _context12.sent;
1323
1430
 
1324
1431
  if (!(data === false)) {
1325
- _context11.next = 5;
1432
+ _context12.next = 5;
1326
1433
  break;
1327
1434
  }
1328
1435
 
1329
- return _context11.abrupt('return');
1436
+ return _context12.abrupt('return');
1330
1437
 
1331
1438
  case 5:
1332
- _this5.setState({
1439
+ _this6.setState({
1333
1440
  bindCardShow: false,
1334
1441
  bindCardBtnDisabled: true
1335
1442
  });
1336
1443
 
1337
1444
  case 6:
1338
1445
  case 'end':
1339
- return _context11.stop();
1446
+ return _context12.stop();
1340
1447
  }
1341
1448
  }
1342
- }, _callee11, _this5);
1449
+ }, _callee12, _this6);
1343
1450
  }));
1344
1451
 
1345
1452
  this.changeBindCardBtnDisabled = function (disabled) {
1346
- _this5.setState({
1453
+ _this6.setState({
1347
1454
  bindCardBtnDisabled: disabled
1348
1455
  });
1349
1456
  };
1350
1457
 
1351
1458
  this.bindCardClick = function () {
1352
- if (_this5.bindCardRef) {
1353
- var storeKey = _this5.props.storeKey;
1459
+ if (_this6.bindCardRef) {
1460
+ var storeKey = _this6.props.storeKey;
1354
1461
 
1355
- _this5.bindCardFn(_this5.bindCardRef.state);
1462
+ _this6.bindCardFn(_this6.bindCardRef.state);
1356
1463
  }
1357
1464
  };
1358
1465
 
1359
1466
  this.changeRefundCancel = function () {
1360
- _this5.setState({
1467
+ _this6.setState({
1361
1468
  refundShow: false
1362
1469
  });
1363
1470
  };
1364
1471
 
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;
1472
+ this.changeRefundOk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13() {
1473
+ var _props18, _props18$cardList, cardList, _props18$selected, selected, _ref36, MeStorageCardId, _ref36$BalanceStorage, BalanceStorage, _ref36$PresentAmount, PresentAmount, StorageCardNo, ID, _ref37, _ref37$isCanRefund, isCanRefund, _ref37$canReturnAmoun, canReturnAmount, _ref37$storageInfos, storageInfos, refundable, storageAmount, latestStorageAmount;
1367
1474
 
1368
- return _regenerator2.default.wrap(function _callee12$(_context12) {
1475
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
1369
1476
  while (1) {
1370
- switch (_context12.prev = _context12.next) {
1477
+ switch (_context13.prev = _context13.next) {
1371
1478
  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;
1479
+ _props18 = _this6.props, _props18$cardList = _props18.cardList, cardList = _props18$cardList === undefined ? [] : _props18$cardList, _props18$selected = _props18.selected, selected = _props18$selected === undefined ? 0 : _props18$selected;
1480
+ _ref36 = cardList.length && cardList[selected] || {}, MeStorageCardId = _ref36.MeStorageCardId, _ref36$BalanceStorage = _ref36.BalanceStorage, BalanceStorage = _ref36$BalanceStorage === undefined ? 0 : _ref36$BalanceStorage, _ref36$PresentAmount = _ref36.PresentAmount, PresentAmount = _ref36$PresentAmount === undefined ? 0 : _ref36$PresentAmount, StorageCardNo = _ref36.StorageCardNo, ID = _ref36.ID;
1481
+ _ref37 = _this6.state.lastesStorageResult || {}, _ref37$isCanRefund = _ref37.isCanRefund, isCanRefund = _ref37$isCanRefund === undefined ? false : _ref37$isCanRefund, _ref37$canReturnAmoun = _ref37.canReturnAmount, canReturnAmount = _ref37$canReturnAmoun === undefined ? 0 : _ref37$canReturnAmoun, _ref37$storageInfos = _ref37.storageInfos, storageInfos = _ref37$storageInfos === undefined ? [] : _ref37$storageInfos;
1375
1482
  refundable = parseFloat((0, _utils.getFixedNumber)(canReturnAmount));
1376
1483
  storageAmount = (0, _utils.getFixedNumber)(0 - canReturnAmount);
1377
1484
 
1378
1485
  // 退款金额小于等于0,不允许退款
1379
1486
 
1380
1487
  if (!(Number(canReturnAmount) <= 0)) {
1381
- _context12.next = 8;
1488
+ _context13.next = 8;
1382
1489
  break;
1383
1490
  }
1384
1491
 
1385
1492
  _tplusComponentsTouch.Message.error('无可退金额,不支持退款!');
1386
- return _context12.abrupt('return');
1493
+ return _context13.abrupt('return');
1387
1494
 
1388
1495
  case 8:
1389
1496
  if (isCanRefund) {
1390
- _context12.next = 11;
1497
+ _context13.next = 11;
1391
1498
  break;
1392
1499
  }
1393
1500
 
1394
- _this5.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
1395
- return _context12.abrupt('return');
1501
+ _this6.returnedCash('\u53EA\u80FD\u9000\u73B0\u91D1\uFF0C\u662F\u5426\u7EE7\u7EED', storageAmount);
1502
+ return _context13.abrupt('return');
1396
1503
 
1397
1504
  case 11:
1398
1505
 
@@ -1403,58 +1510,78 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1403
1510
  // 退款只支持退最后一次储值的金额,如果最后一次储值的金额小于可退金额,弹出提示。
1404
1511
 
1405
1512
  if (!(latestStorageAmount && latestStorageAmount < refundable)) {
1406
- _context12.next = 15;
1513
+ _context13.next = 15;
1407
1514
  break;
1408
1515
  }
1409
1516
 
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');
1517
+ _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);
1518
+ return _context13.abrupt('return');
1412
1519
 
1413
1520
  case 15:
1414
1521
 
1415
- _this5.submitRefundStorage(cardList[selected], storageAmount);
1522
+ _this6.submitRefundStorage(cardList[selected], storageAmount);
1416
1523
 
1417
1524
  case 16:
1418
1525
  case 'end':
1419
- return _context12.stop();
1526
+ return _context13.stop();
1420
1527
  }
1421
1528
  }
1422
- }, _callee12, _this5);
1529
+ }, _callee13, _this6);
1423
1530
  }));
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
1531
 
1427
- return _regenerator2.default.wrap(function _callee13$(_context13) {
1532
+ this.getThirdPaymentInfo = function (item, settlementStore) {
1533
+ var _ref38 = item || {},
1534
+ paymentTypeId = _ref38.paymentTypeId,
1535
+ thirdPaymentReturnInfo = _ref38.thirdPaymentReturnInfo;
1536
+
1537
+ var obj = {};
1538
+ var paymode = settlementStore && settlementStore.paymode;
1539
+ if (paymode) {
1540
+ var mode = paymode && paymode.paymodes.find(function (v) {
1541
+ return v.idSettleStyle == paymentTypeId;
1542
+ });
1543
+ obj = thirdPaymentReturnInfo ? {
1544
+ ThirdPaymentInfo: mode && mode.thridPayment || null,
1545
+ ThirdPaymentReturnInfo: thirdPaymentReturnInfo
1546
+ } : {};
1547
+ }
1548
+ return obj;
1549
+ };
1550
+
1551
+ this.returnedStorage = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1552
+ var data, _props19, _props19$cardList, cardList, _props19$selected, selected, _ref40, Id, MeStorageCardId, _ref40$BalanceStorage, BalanceStorage, _ref40$PresentAmount, PresentAmount, refundable, lastesStorageResult;
1553
+
1554
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
1428
1555
  while (1) {
1429
- switch (_context13.prev = _context13.next) {
1556
+ switch (_context14.prev = _context14.next) {
1430
1557
  case 0:
1431
- _context13.next = 2;
1432
- return _this5.justifyAuthority();
1558
+ _context14.next = 2;
1559
+ return _this6.justifyAuthority();
1433
1560
 
1434
1561
  case 2:
1435
- data = _context13.sent;
1562
+ data = _context14.sent;
1436
1563
 
1437
1564
  if (!(data === false)) {
1438
- _context13.next = 5;
1565
+ _context14.next = 5;
1439
1566
  break;
1440
1567
  }
1441
1568
 
1442
- return _context13.abrupt('return');
1569
+ return _context14.abrupt('return');
1443
1570
 
1444
1571
  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;
1572
+ _props19 = _this6.props, _props19$cardList = _props19.cardList, cardList = _props19$cardList === undefined ? [] : _props19$cardList, _props19$selected = _props19.selected, selected = _props19$selected === undefined ? 0 : _props19$selected;
1573
+ _ref40 = cardList[selected] || {}, Id = _ref40.Id, MeStorageCardId = _ref40.MeStorageCardId, _ref40$BalanceStorage = _ref40.BalanceStorage, BalanceStorage = _ref40$BalanceStorage === undefined ? 0 : _ref40$BalanceStorage, _ref40$PresentAmount = _ref40.PresentAmount, PresentAmount = _ref40$PresentAmount === undefined ? 0 : _ref40$PresentAmount;
1447
1574
 
1448
1575
  // 获取最后一次储值信息
1449
1576
 
1450
1577
  refundable = parseFloat((0, _utils.getFixedNumber)(BalanceStorage - PresentAmount));
1451
- _context13.next = 10;
1452
- return _this5.api.getLatestStorageAmount({ cardId: MeStorageCardId, inputRefundAmount: refundable });
1578
+ _context14.next = 10;
1579
+ return _this6.api.getLatestStorageAmount({ cardId: MeStorageCardId, inputRefundAmount: refundable });
1453
1580
 
1454
1581
  case 10:
1455
- lastesStorageResult = _context13.sent;
1582
+ lastesStorageResult = _context14.sent;
1456
1583
 
1457
- _this5.setState({
1584
+ _this6.setState({
1458
1585
  lastesStorageResult: lastesStorageResult.data || {}
1459
1586
  });
1460
1587
 
@@ -1464,7 +1591,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1464
1591
  cardInfo: cardList[selected],
1465
1592
  settlementControlEvent: {},
1466
1593
  callback: function callback() {
1467
- _this5.setState({
1594
+ _this6.setState({
1468
1595
  refundShow: true
1469
1596
  });
1470
1597
  }
@@ -1472,115 +1599,115 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1472
1599
 
1473
1600
  case 15:
1474
1601
  case 'end':
1475
- return _context13.stop();
1602
+ return _context14.stop();
1476
1603
  }
1477
1604
  }
1478
- }, _callee13, _this5);
1605
+ }, _callee14, _this6);
1479
1606
  }));
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;
1607
+ this.memberUnBindCard = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16() {
1608
+ var data, _props20, _props20$cardList, cardList, _props20$selected, selected, _ref42, StorageCardNo, MemberMobile, MemberName, ID;
1482
1609
 
1483
- return _regenerator2.default.wrap(function _callee15$(_context15) {
1610
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
1484
1611
  while (1) {
1485
- switch (_context15.prev = _context15.next) {
1612
+ switch (_context16.prev = _context16.next) {
1486
1613
  case 0:
1487
- _context15.next = 2;
1488
- return _this5.justifyAuthority();
1614
+ _context16.next = 2;
1615
+ return _this6.justifyAuthority();
1489
1616
 
1490
1617
  case 2:
1491
- data = _context15.sent;
1618
+ data = _context16.sent;
1492
1619
 
1493
1620
  if (!(data === false)) {
1494
- _context15.next = 5;
1621
+ _context16.next = 5;
1495
1622
  break;
1496
1623
  }
1497
1624
 
1498
- return _context15.abrupt('return');
1625
+ return _context16.abrupt('return');
1499
1626
 
1500
1627
  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;
1628
+ _props20 = _this6.props, _props20$cardList = _props20.cardList, cardList = _props20$cardList === undefined ? [] : _props20$cardList, _props20$selected = _props20.selected, selected = _props20$selected === undefined ? 0 : _props20$selected;
1629
+ _ref42 = cardList[selected] || {}, StorageCardNo = _ref42.StorageCardNo, MemberMobile = _ref42.MemberMobile, MemberName = _ref42.MemberName, ID = _ref42.ID;
1503
1630
 
1504
1631
  if (ID) {
1505
- _context15.next = 10;
1632
+ _context16.next = 10;
1506
1633
  break;
1507
1634
  }
1508
1635
 
1509
1636
  _tplusComponentsTouch.Message.error('该卡未绑定会员');
1510
- return _context15.abrupt('return');
1637
+ return _context16.abrupt('return');
1511
1638
 
1512
1639
  case 10:
1513
1640
  _tplusComponentsTouch.ModalWraper.confirm({
1514
1641
  title: '提示',
1515
1642
  content: '\u6B64\u5361\u5C5E\u4E8E' + (MemberName || MemberMobile) + '\u4F1A\u5458\uFF0C\u786E\u8BA4\u89E3\u7ED1\u5417\uFF1F',
1516
- confirmLoading: _this5.state.memberUnBindCardLoading,
1643
+ confirmLoading: _this6.state.memberUnBindCardLoading,
1517
1644
  onOk: function () {
1518
- var _ref38 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
1519
- return _regenerator2.default.wrap(function _callee14$(_context14) {
1645
+ var _ref43 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
1646
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
1520
1647
  while (1) {
1521
- switch (_context14.prev = _context14.next) {
1648
+ switch (_context15.prev = _context15.next) {
1522
1649
  case 0:
1523
- _this5.setState({
1650
+ _this6.setState({
1524
1651
  memberUnBindCardLoading: true
1525
1652
  });
1526
- _this5.api.MeStorageCardUnbind({ StorageCardNo: StorageCardNo }).then(function (res) {
1527
- var getCardList = _this5.props.getCardList;
1653
+ _this6.api.MeStorageCardUnbind({ StorageCardNo: StorageCardNo }).then(function (res) {
1654
+ var getCardList = _this6.props.getCardList;
1528
1655
 
1529
1656
  _tplusComponentsTouch.Message.success('解绑成功');
1530
1657
  getCardList(cardList && cardList.length > 1 ? cardList[0].MemberMobile : StorageCardNo);
1531
- _this5.setState({
1658
+ _this6.setState({
1532
1659
  memberUnBindCardLoading: false
1533
1660
  });
1534
1661
  }).catch(function () {
1535
- _this5.setState({
1662
+ _this6.setState({
1536
1663
  memberUnBindCardLoading: false
1537
1664
  });
1538
1665
  });
1539
1666
 
1540
1667
  case 2:
1541
1668
  case 'end':
1542
- return _context14.stop();
1669
+ return _context15.stop();
1543
1670
  }
1544
1671
  }
1545
- }, _callee14, _this5);
1672
+ }, _callee15, _this6);
1546
1673
  }));
1547
1674
 
1548
1675
  return function onOk() {
1549
- return _ref38.apply(this, arguments);
1676
+ return _ref43.apply(this, arguments);
1550
1677
  };
1551
1678
  }()
1552
1679
  });
1553
1680
 
1554
1681
  case 11:
1555
1682
  case 'end':
1556
- return _context15.stop();
1683
+ return _context16.stop();
1557
1684
  }
1558
1685
  }
1559
- }, _callee15, _this5);
1686
+ }, _callee16, _this6);
1560
1687
  }));
1561
1688
 
1562
1689
  this.changeBtnDisabled = function (value) {
1563
- _this5.setState({
1690
+ _this6.setState({
1564
1691
  btnDissabled: value
1565
1692
  });
1566
1693
  };
1567
1694
 
1568
1695
  this.getMenuItem = function (index, menu) {
1569
- var _props21 = _this5.props,
1696
+ var _props21 = _this6.props,
1570
1697
  loadingBtn = _props21.loadingBtn,
1571
1698
  _props21$cardList = _props21.cardList,
1572
1699
  cardList = _props21$cardList === undefined ? [] : _props21$cardList,
1573
1700
  _props21$selected = _props21.selected,
1574
1701
  selected = _props21$selected === undefined ? 0 : _props21$selected;
1575
1702
 
1576
- var _ref39 = _this5.state || {},
1577
- setPwdShortKey = _ref39.setPwdShortKey;
1703
+ var _ref44 = _this6.state || {},
1704
+ setPwdShortKey = _ref44.setPwdShortKey;
1578
1705
 
1579
1706
  var newStyle = _mutantsUtil.localStore && _mutantsUtil.localStore.get('voucherDefaultPosMode') == 'voucher';
1580
1707
 
1581
- var _ref40 = cardList && cardList.length && cardList[selected] || {},
1582
- WalletEnabled = _ref40.WalletEnabled,
1583
- CardTypeEnum = _ref40.CardTypeEnum;
1708
+ var _ref45 = cardList && cardList.length && cardList[selected] || {},
1709
+ WalletEnabled = _ref45.WalletEnabled,
1710
+ CardTypeEnum = _ref45.CardTypeEnum;
1584
1711
  // 控制显示修改密码还是设置密码
1585
1712
 
1586
1713
 
@@ -1590,7 +1717,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1590
1717
  'div',
1591
1718
  { 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
1719
  onClick: function onClick() {
1593
- if (loadingBtn === false) _this5.click(menu.key, menu.auth);
1720
+ if (loadingBtn === false) _this6.click(menu.key, menu.auth);
1594
1721
  }
1595
1722
  },
1596
1723
  WalletEnabled ? _react2.default.createElement(
@@ -1628,7 +1755,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1628
1755
  'div',
1629
1756
  { 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
1757
  onClick: function onClick() {
1631
- if (loadingBtn === false) _this5.click(menu.key, menu.auth);
1758
+ if (loadingBtn === false) _this6.click(menu.key, menu.auth);
1632
1759
  }
1633
1760
  },
1634
1761
  _react2.default.createElement(
@@ -1657,7 +1784,7 @@ var _default = (0, _mutantsMicrofx.observer)(_class = (_temp = _class2 = functio
1657
1784
  key: index,
1658
1785
  className: 'primary-color b-theme ' + ('hot-' + menu.auth) + ' ' + (loadingBtn === false ? 'member-menu-el' : 'member-menu-el disabled-member-select-btn ') + ' ' + (newStyle && 'memberHeight'),
1659
1786
  onClick: function onClick() {
1660
- if (loadingBtn === false) _this5.click(menu.key, menu.auth, menu.name);
1787
+ if (loadingBtn === false) _this6.click(menu.key, menu.auth, menu.name);
1661
1788
  }
1662
1789
  },
1663
1790
  _react2.default.createElement(_tplusComponentsTouch.Ticon, { icon: menu.icon }),