tplus-components-touch 3.21.2 → 3.22.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/dist/components/addLog/AddLogProcessor.js +1 -5
  2. package/dist/components/addLog/AddLogProcessor.js.map +1 -1
  3. package/dist/components/addLog/OperationLogApi.js +6 -45
  4. package/dist/components/addLog/OperationLogApi.js.map +1 -1
  5. package/dist/components/billSearch/index.js +64 -4
  6. package/dist/components/billSearch/index.js.map +1 -1
  7. package/dist/components/billSearch/index.less +12 -2
  8. package/dist/components/cloudPrint/api.js +1 -1
  9. package/dist/components/cloudPrint/api.js.map +1 -1
  10. package/dist/components/cloudPrint/index.js +57 -33
  11. package/dist/components/cloudPrint/index.js.map +1 -1
  12. package/dist/components/cloudPrint/printDispatch.js +223 -0
  13. package/dist/components/cloudPrint/printDispatch.js.map +1 -0
  14. package/dist/components/commonForm/addressPicker/index.js +4 -2
  15. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  16. package/dist/components/commonForm/formControl/index.js +3 -0
  17. package/dist/components/commonForm/formControl/index.js.map +1 -1
  18. package/dist/components/hotKey/localConfig.js +14 -1
  19. package/dist/components/hotKey/localConfig.js.map +1 -1
  20. package/dist/components/keyboard/index.js +1 -1
  21. package/dist/components/keyboard/index.js.map +1 -1
  22. package/dist/components/loading/index.js +5 -0
  23. package/dist/components/loading/index.js.map +1 -1
  24. package/dist/components/loading/loadingContent.js +23 -6
  25. package/dist/components/loading/loadingContent.js.map +1 -1
  26. package/dist/components/loading/style.less +12 -2
  27. package/dist/components/message/index.js +11 -0
  28. package/dist/components/message/index.js.map +1 -1
  29. package/dist/components/message/index.less +16 -1
  30. package/dist/components/modalWraper/style.less +6 -0
  31. package/dist/components/settlement/settlement.js +178 -126
  32. package/dist/components/settlement/settlement.js.map +1 -1
  33. package/dist/components/settlement/settlement.less +12 -2
  34. package/dist/components/settlement/settlementStore.js +274 -252
  35. package/dist/components/settlement/settlementStore.js.map +1 -1
  36. package/dist/components/ticon/iconfont/demo.css +539 -539
  37. package/dist/components/ticon/iconfont/demo_index.html +5202 -5041
  38. package/dist/components/ticon/iconfont/iconfont.css +887 -859
  39. package/dist/components/ticon/iconfont/iconfont.js +4 -4
  40. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  41. package/dist/components/ticon/iconfont/iconfont.json +1535 -1486
  42. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  43. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  44. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  45. package/dist/components/touchTable/index.js +8 -0
  46. package/dist/components/touchTable/index.js.map +1 -1
  47. package/dist/index.js +17 -2
  48. package/dist/index.js.map +1 -1
  49. package/package.json +35 -35
@@ -103,12 +103,12 @@ var _message2 = _interopRequireDefault(_message);
103
103
 
104
104
  var _mutantsUtil = require('mutants-util');
105
105
 
106
+ var _tplusComponentsTouch = require('tplus-components-touch');
107
+
106
108
  var _moment = require('moment');
107
109
 
108
110
  var _moment2 = _interopRequireDefault(_moment);
109
111
 
110
- var _tplusComponentsTouch = require('tplus-components-touch');
111
-
112
112
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
113
113
 
114
114
  function _initDefineProp(target, property, descriptor, context) {
@@ -411,7 +411,6 @@ var SettlementStore = (_class = function () {
411
411
  this.paymode = new PayMode();
412
412
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
413
413
  if (params) this.cloudPrintArguments = params;
414
- this.printUtil = new _tplusComponentsTouch.PrintUtil();
415
414
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
416
415
  }
417
416
 
@@ -634,49 +633,93 @@ var SettlementStore = (_class = function () {
634
633
 
635
634
  var address = '';
636
635
  if (isNewRetailBCPos) {
637
- address = 'chanjet.AA.DR.INewRetailMember.SearchMember';
636
+ // address = '/member/memberProfile/FindByStorageCode/'+v;
637
+ address = '/member/MeMemberWallet/FindByStorageCode';
638
+ return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
639
+ var data = result.data;
640
+ var m = data;
641
+
642
+ var _ref9 = _mutantsUtil.platform || {},
643
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
644
+
645
+ if (isNewRetailBCPos) {
646
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
647
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
648
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
649
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
650
+ }
651
+ if (!m || !m.ID) {
652
+ (0, _mobx.runInAction)(function () {
653
+ _this7.paymode.currentMode.errinfo = "无效的会员卡号";
654
+ });
655
+ } else {
656
+ (0, _mobx.runInAction)(function () {
657
+ _this7.paymode.currentMode.errinfo = "";
658
+ _this7.paymode.currentMode.member = new Member(m);
659
+ _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
660
+ _this7.updateEvent();
661
+ var message = '';
662
+ if (global.CheckMemberStorageProcessorBlock) {
663
+ message = CheckMemberStorageProcessorBlock.execute(m);
664
+ }
665
+ if (!String.isNullOrEmpty(message)) {
666
+ _this7.paymode.currentMode.errinfo = message;
667
+ } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
668
+ _this7.paymode.currentMode.errinfo = "余额不足";
669
+ } else if (_this7.paymode.amount > 0 && _this7.paymode.currentMode.value == 0) {
670
+ _this7.paymode.currentMode.errinfo = "实收金额必须录入";
671
+ } else {
672
+ // 查询成功后将焦点移入下一个输入框
673
+ var nextInput = document.querySelector('.czk .received .input');
674
+ nextInput && nextInput.focus();
675
+ }
676
+ });
677
+ }
678
+ });
638
679
  } else {
639
680
  address = 'AA.DR.newRetailMember.SearchMember';
681
+ return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
682
+ var data = JSON.parse(result.Data);
683
+ var m = data && data.length > 0 && data[0];
684
+
685
+ var _ref10 = _mutantsUtil.platform || {},
686
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
687
+
688
+ if (isNewRetailBCPos) {
689
+ _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
690
+ _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
691
+ _this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
692
+ _this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
693
+ }
694
+ if (!m || !m.ID) {
695
+ (0, _mobx.runInAction)(function () {
696
+ _this7.paymode.currentMode.errinfo = "无效的会员卡号";
697
+ });
698
+ } else {
699
+ (0, _mobx.runInAction)(function () {
700
+ _this7.paymode.currentMode.errinfo = "";
701
+ _this7.paymode.currentMode.member = new Member(m);
702
+ _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
703
+ _this7.updateEvent();
704
+ var message = '';
705
+ if (global.CheckMemberStorageProcessorBlock) {
706
+ message = CheckMemberStorageProcessorBlock.execute(data[0]);
707
+ }
708
+ if (!String.isNullOrEmpty(message)) {
709
+ _this7.paymode.currentMode.errinfo = message;
710
+ } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
711
+ _this7.paymode.currentMode.errinfo = "余额不足";
712
+ } else if (_this7.paymode.amount > 0 && _this7.paymode.currentMode.value == 0) {
713
+ _this7.paymode.currentMode.errinfo = "实收金额必须录入";
714
+ } else {
715
+ // 查询成功后将焦点移入下一个输入框
716
+ var nextInput = document.querySelector('.czk .received .input');
717
+ nextInput && nextInput.focus();
718
+ }
719
+ });
720
+ }
721
+ });
640
722
  }
641
- return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
642
- var data = JSON.parse(result.Data);
643
- var m = data && data.length > 0 && data[0];
644
-
645
- var _ref9 = _mutantsUtil.platform || {},
646
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
647
-
648
- if (isNewRetailBCPos) {
649
- _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
650
- _this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
651
- }
652
- if (!m || !m.ID) {
653
- (0, _mobx.runInAction)(function () {
654
- _this7.paymode.currentMode.errinfo = "无效的会员卡号";
655
- });
656
- } else {
657
- (0, _mobx.runInAction)(function () {
658
- _this7.paymode.currentMode.errinfo = "";
659
- _this7.paymode.currentMode.member = new Member(m);
660
- _this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
661
- _this7.updateEvent();
662
- var message = '';
663
- if (global.CheckMemberStorageProcessorBlock) {
664
- message = CheckMemberStorageProcessorBlock.execute(data[0]);
665
- }
666
- if (!String.isNullOrEmpty(message)) {
667
- _this7.paymode.currentMode.errinfo = message;
668
- } else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
669
- _this7.paymode.currentMode.errinfo = "余额不足";
670
- } else if (_this7.paymode.amount > 0 && _this7.paymode.currentMode.value == 0) {
671
- _this7.paymode.currentMode.errinfo = "实收金额必须录入";
672
- } else {
673
- // 查询成功后将焦点移入下一个输入框
674
- var nextInput = document.querySelector('.czk .received .input');
675
- nextInput && nextInput.focus();
676
- }
677
- });
678
- }
679
- });
680
723
  }
681
724
  }, {
682
725
  key: 'addDjq',
@@ -922,7 +965,12 @@ var SettlementStore = (_class = function () {
922
965
  }, {
923
966
  key: 'delPay',
924
967
  value: function delPay(index) {
968
+ var _this10 = this;
969
+
925
970
  (0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
971
+ if (mode.paymethodId === index) {
972
+ _this10.paymode.amount = _this10.paymode.amount + mode.value;
973
+ }
926
974
  return mode.paymethodId === index;
927
975
  });
928
976
  this.paymode.currentFocus = -1;
@@ -931,7 +979,9 @@ var SettlementStore = (_class = function () {
931
979
  }, {
932
980
  key: 'commit',
933
981
  value: function () {
934
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
982
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
983
+ var _ref12, isNewRetailBCPos;
984
+
935
985
  return _regenerator2.default.wrap(function _callee2$(_context2) {
936
986
  while (1) {
937
987
  switch (_context2.prev = _context2.next) {
@@ -946,74 +996,96 @@ var SettlementStore = (_class = function () {
946
996
  return _context2.abrupt('return', _promise2.default.resolve(true));
947
997
 
948
998
  case 3:
949
- _context2.prev = 3;
999
+ _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
1000
+ _context2.prev = 4;
950
1001
 
951
1002
  if (!(this.type == 1)) {
952
- _context2.next = 9;
1003
+ _context2.next = 10;
953
1004
  break;
954
1005
  }
955
1006
 
956
- _context2.next = 7;
1007
+ _context2.next = 8;
957
1008
  return this.saveMember();
958
1009
 
959
- case 7:
960
- _context2.next = 11;
1010
+ case 8:
1011
+ _context2.next = 18;
961
1012
  break;
962
1013
 
963
- case 9:
964
- _context2.next = 11;
1014
+ case 10:
1015
+ if (!isNewRetailBCPos) {
1016
+ _context2.next = 13;
1017
+ break;
1018
+ }
1019
+
1020
+ _context2.next = 13;
1021
+ return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
1022
+
1023
+ case 13:
1024
+ _context2.next = 15;
965
1025
  return this.save();
966
1026
 
967
- case 11:
1027
+ case 15:
1028
+ if (!isNewRetailBCPos) {
1029
+ _context2.next = 18;
1030
+ break;
1031
+ }
1032
+
1033
+ _context2.next = 18;
1034
+ return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
1035
+
1036
+ case 18:
968
1037
  return _context2.abrupt('return', _promise2.default.resolve(true));
969
1038
 
970
- case 14:
971
- _context2.prev = 14;
972
- _context2.t0 = _context2['catch'](3);
1039
+ case 21:
1040
+ _context2.prev = 21;
1041
+ _context2.t0 = _context2['catch'](4);
973
1042
 
974
1043
  console.error('settlementStore.commit失败,错误信息:' + _context2.t0);
975
1044
  return _context2.abrupt('return', _promise2.default.resolve(_context2.t0));
976
1045
 
977
- case 18:
978
- console.error('settlementStore.commit失败,错误信息:' + err);
979
-
980
- case 19:
1046
+ case 25:
981
1047
  case 'end':
982
1048
  return _context2.stop();
983
1049
  }
984
1050
  }
985
- }, _callee2, this, [[3, 14]]);
1051
+ }, _callee2, this, [[4, 21]]);
986
1052
  }));
987
1053
 
988
1054
  function commit(_x2) {
989
- return _ref10.apply(this, arguments);
1055
+ return _ref11.apply(this, arguments);
990
1056
  }
991
1057
 
992
1058
  return commit;
993
1059
  }()
1060
+ }, {
1061
+ key: 'handlePrint',
1062
+ value: function handlePrint(resp) {
1063
+ // 储值打印
1064
+ return (0, _tplusComponentsTouch.printDispatch)(_tplusComponentsTouch.DoNameList.DO_STORAGE_PRINT, resp.ID, {});
1065
+ }
994
1066
  }, {
995
1067
  key: 'saveMember',
996
1068
  value: function saveMember() {
997
- var _this10 = this;
1069
+ var _this11 = this;
998
1070
 
999
1071
  var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1000
1072
  PayStyle = _enumController$getEn12.PayStyle;
1001
1073
 
1002
1074
  (0, _mobx.runInAction)(function () {
1003
- _this10.dto.StorageMutiSettleDetails = [];
1004
- var thePaymodes = _this10.newStyle ? (0, _filter3.default)(_this10.paymode.thePaymodes, function (mode) {
1075
+ _this11.dto.StorageMutiSettleDetails = [];
1076
+ var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1005
1077
  return parseFloat(mode.value) != 0;
1006
- }) : _this10.paymode.thePaymodes;
1078
+ }) : _this11.paymode.thePaymodes;
1007
1079
  (0, _each3.default)(thePaymodes, function (mode) {
1008
- var themode = (0, _find3.default)(_this10.paymode.paymodes, { 'paymentType': mode.paymentType });
1080
+ var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1009
1081
 
1010
1082
  var value = parseFloat(mode.value);
1011
1083
  var giveChange = null;
1012
- if (mode.paymentType == PayStyle.xianjin && _this10.paymode.receivable < 0 && value > Math.abs(_this10.paymode.receivable)) {
1013
- value = Math.Add(value, _this10.paymode.receivable);
1014
- giveChange = Math.abs(_this10.paymode.receivable);
1084
+ if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
1085
+ value = Math.Add(value, _this11.paymode.receivable);
1086
+ giveChange = Math.abs(_this11.paymode.receivable);
1015
1087
  }
1016
- _this10.dto.StorageMutiSettleDetails.push({
1088
+ _this11.dto.StorageMutiSettleDetails.push({
1017
1089
  Code: mode.paymethodId,
1018
1090
  StorageAmount: value,
1019
1091
  GiveChange: giveChange,
@@ -1022,7 +1094,7 @@ var SettlementStore = (_class = function () {
1022
1094
  PaymentCode: mode.authCode,
1023
1095
  DynamicPropertyKeys: [],
1024
1096
  DynamicPropertyValues: [],
1025
- DataSource: { Id: _this10.dataSource }
1097
+ DataSource: { Id: _this11.dataSource }
1026
1098
  });
1027
1099
  });
1028
1100
  });
@@ -1032,80 +1104,16 @@ var SettlementStore = (_class = function () {
1032
1104
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1033
1105
  }
1034
1106
  return (0, _tplusApi.tApi)({ dto: this.dto }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
1035
- var _ref11 = _mutantsUtil.platform || {},
1036
- isHorizontalPad = _ref11.isHorizontalPad,
1037
- isHorizontalSunMi = _ref11.isHorizontalSunMi;
1038
-
1039
- if (isHorizontalPad === true) {
1040
- // pad打印
1041
- //执行移动端云打印
1042
- if (_this10.cloudPrintArguments) {
1043
- var _ref12 = _this10.cloudPrintArguments || {},
1044
- Open = _ref12.Open,
1045
- Key = _ref12.Key,
1046
- Sign = _ref12.Sign,
1047
- Name = _ref12.Name,
1048
- Card = _ref12.Card;
1049
-
1050
- if (!Open) {
1051
- _message2.default.warn(t('云打印未启用,请设置。'));
1052
- return;
1053
- }
1054
- _this10.printUtil.doStoragePrint({ Key: Key, Sign: Sign, Name: Name, Card: Card }, resp.ID, function (s) {
1055
- var msg = s.msg,
1056
- ret = s.ret;
1057
-
1058
- if (ret === 0) {
1059
- _message2.default.success(t('打印储值小票成功。'));
1060
- } else if (ret === -1) {
1061
- _message2.default.error(t(msg));
1062
- } else {
1063
- _message2.default.error(t('打印储值小票失败。'));
1064
- }
1065
- });
1066
- } else {
1067
- _message2.default.warn(t('云打印未启用,请设置。'));
1068
- }
1069
- return;
1070
- } else if (isHorizontalSunMi === true) {
1071
- _this10.printUtil.doStoragePrint({}, resp.ID, function (s) {
1072
- var msg = s.msg,
1073
- ret = s.ret;
1074
-
1075
- if (ret === 0) {
1076
- _message2.default.success(t('打印储值小票成功。'));
1077
- } else if (ret === -1) {
1078
- _message2.default.error(t(msg));
1079
- } else {
1080
- _message2.default.error(t('打印储值小票失败。'));
1081
- }
1082
- });
1083
- return;
1084
- } else {
1085
- if (global.StoragePrintProcessBlock) {
1086
- var _ref13 = _mutantsUtil.platform || {},
1087
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1088
-
1089
- if (isNewRetailBCPos) {
1090
- global.StoragePrintProcessBlock.execute(resp);
1091
- } else {
1092
- global.StoragePrintProcessBlock.execute(resp.ID);
1093
- }
1094
- return;
1095
- } else {
1096
- _message2.default.warn(t('打印小票只能在客户端中执行'));
1097
- return;
1098
- }
1099
- }
1107
+ _this11.handlePrint(resp);
1100
1108
  });
1101
1109
  }
1102
1110
  }, {
1103
1111
  key: 'save',
1104
1112
  value: function () {
1105
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1106
- var _this11 = this;
1113
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1114
+ var _this12 = this;
1107
1115
 
1108
- var _enumController$getEn13, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1116
+ var _enumController$getEn13, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1109
1117
 
1110
1118
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1111
1119
  while (1) {
@@ -1114,41 +1122,43 @@ var SettlementStore = (_class = function () {
1114
1122
  _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn13.PayStyle;
1115
1123
 
1116
1124
  (0, _mobx.runInAction)(function () {
1117
- _this11.dto.RetailPaymentDetails = [];
1118
- _this11.dto.RetailStorageDetails = [];
1119
- _this11.dto.RetailCouponDetails = [];
1125
+ _this12.dto.RetailPaymentDetails = [];
1126
+ _this12.dto.RetailStorageDetails = [];
1127
+ _this12.dto.RetailCouponDetails = [];
1120
1128
  var czkSum = 0;
1121
- var Idmember = _this11.dto.Idmember;
1122
- var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
1129
+ var Idmember = _this12.dto.Idmember;
1130
+ var count = 0;
1131
+ var thePaymodes = _this12.newStyle ? (0, _filter3.default)(_this12.paymode.thePaymodes, function (mode) {
1123
1132
  return parseFloat(mode.value) != 0;
1124
- }) : _this11.paymode.thePaymodes;
1125
- (0, _each3.default)(thePaymodes, function (mode) {
1126
- var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
1133
+ }) : _this12.paymode.thePaymodes;
1134
+ (0, _each3.default)(thePaymodes, function (mode, index) {
1135
+ var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': mode.paymentType });
1127
1136
  if (mode.paymentType == PayStyle.hyczk) {
1128
1137
  if (!Idmember) {
1129
1138
  Idmember = mode.member.id;
1130
1139
  }
1131
1140
  czkSum = Math.Add(czkSum, mode.value);
1132
-
1133
- _this11.dto.RetailStorageDetails.push({
1141
+ var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this12.member.MeStorageCardId;
1142
+ _this12.dto.RetailStorageDetails.push({
1134
1143
  Code: mode.paymethodId,
1144
+ MeStorageCardId: MeStorageCardId,
1135
1145
  StoragePaymentAmount: mode.value,
1136
1146
  IsOrigReturn: false,
1137
1147
  BalanceStorage: mode.balance,
1138
1148
  Idmember: mode.member.id,
1139
1149
  DynamicPropertyKeys: [],
1140
1150
  DynamicPropertyValues: [],
1141
- DataSource: { Id: _this11.dataSource },
1151
+ DataSource: { Id: _this12.dataSource },
1142
1152
  Password: mode.authCode
1143
1153
  });
1144
1154
  } else {
1145
1155
  var value = parseFloat(mode.value);
1146
1156
  var giveChange = null;
1147
- if (mode.paymentType == PayStyle.xianjin && _this11.paymode.receivable < 0 && value > Math.abs(_this11.paymode.receivable)) {
1148
- value = Math.Add(value, _this11.paymode.receivable);
1149
- giveChange = Math.abs(_this11.paymode.receivable);
1157
+ if (mode.paymentType == PayStyle.xianjin && _this12.paymode.receivable < 0 && value > Math.abs(_this12.paymode.receivable)) {
1158
+ value = Math.Add(value, _this12.paymode.receivable);
1159
+ giveChange = Math.abs(_this12.paymode.receivable);
1150
1160
  }
1151
- _this11.dto.RetailPaymentDetails.push({
1161
+ _this12.dto.RetailPaymentDetails.push({
1152
1162
  Code: mode.paymethodId,
1153
1163
  OrigAmount: mode.exchangeRate != 1 ? mode.value2 : value,
1154
1164
  Amount: value,
@@ -1162,12 +1172,12 @@ var SettlementStore = (_class = function () {
1162
1172
  OverchargesAmount: mode.overchargesAmount,
1163
1173
  DynamicPropertyKeys: [],
1164
1174
  DynamicPropertyValues: [],
1165
- DataSource: { Id: _this11.dataSource }
1175
+ DataSource: { Id: _this12.dataSource }
1166
1176
  });
1167
1177
  if (mode.paymentType == PayStyle.djq) {
1168
1178
  (0, _each3.default)(mode.djqs, function (djq) {
1169
1179
  if (djq.checked) {
1170
- _this11.dto.RetailCouponDetails.push({
1180
+ _this12.dto.RetailCouponDetails.push({
1171
1181
  CouponCode: djq.code,
1172
1182
  ReductionAmount: djq.amount,
1173
1183
  EnableAmount: djq.doorsill,
@@ -1177,7 +1187,7 @@ var SettlementStore = (_class = function () {
1177
1187
  PromotionId: djq.promoId,
1178
1188
  PromotionRuleId: djq.promoRuleId,
1179
1189
  PromoCouponAllocatedId: djq.id,
1180
- DataSource: { Id: _this11.dataSource }
1190
+ DataSource: { Id: _this12.dataSource }
1181
1191
  });
1182
1192
  }
1183
1193
  });
@@ -1185,42 +1195,42 @@ var SettlementStore = (_class = function () {
1185
1195
  }
1186
1196
  });
1187
1197
 
1188
- var _ref15 = _mutantsUtil.platform || {},
1189
- isNewRetailBCPos = _ref15.isNewRetailBCPos;
1198
+ var _ref14 = _mutantsUtil.platform || {},
1199
+ isNewRetailBCPos = _ref14.isNewRetailBCPos;
1190
1200
 
1191
- if (_this11.dto.RetailStorageDetails.length > 0) {
1192
- var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1201
+ if (_this12.dto.RetailStorageDetails.length > 0) {
1202
+ var themode = (0, _find3.default)(_this12.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
1193
1203
  if (isNewRetailBCPos) {
1194
- _this11.dto.RetailStorageDetails && _this11.dto.RetailStorageDetails.forEach(function (value) {
1195
- value.MeStorageCardId = _this11.member.MeStorageCardId;
1196
- });
1197
- _this11.dto.RetailPaymentDetails.push({
1198
- Code: _this11.paymode.counter,
1204
+ // this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
1205
+ // value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
1206
+ // })
1207
+ _this12.dto.RetailPaymentDetails.push({
1208
+ Code: _this12.paymode.counter,
1199
1209
  OrigAmount: czkSum,
1200
1210
  Amount: czkSum,
1201
1211
  IdsettleStyle: themode.idSettleStyle,
1202
1212
  IdbankAccount: themode.idBankAccount,
1203
1213
  DynamicPropertyKeys: [],
1204
1214
  DynamicPropertyValues: [],
1205
- DataSource: { Id: _this11.dataSource },
1206
- RetailStorageDetails: _this11.dto.RetailStorageDetails
1215
+ DataSource: { Id: _this12.dataSource },
1216
+ RetailStorageDetails: _this12.dto.RetailStorageDetails
1207
1217
  });
1208
1218
  } else {
1209
- _this11.dto.RetailPaymentDetails.push({
1210
- Code: _this11.paymode.counter,
1219
+ _this12.dto.RetailPaymentDetails.push({
1220
+ Code: _this12.paymode.counter,
1211
1221
  OrigAmount: czkSum,
1212
1222
  Amount: czkSum,
1213
1223
  IdsettleStyle: themode.idSettleStyle,
1214
1224
  IdbankAccount: themode.idBankAccount,
1215
1225
  DynamicPropertyKeys: [],
1216
1226
  DynamicPropertyValues: [],
1217
- DataSource: { Id: _this11.dataSource }
1227
+ DataSource: { Id: _this12.dataSource }
1218
1228
  });
1219
1229
  }
1220
- _this11.dto.Idmember = Idmember;
1230
+ _this12.dto.Idmember = Idmember;
1221
1231
  }
1222
1232
  });
1223
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1233
+ _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1224
1234
 
1225
1235
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1226
1236
 
@@ -1266,8 +1276,8 @@ var SettlementStore = (_class = function () {
1266
1276
  }
1267
1277
 
1268
1278
  return _context3.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
1269
- _this11.setDtoID(resp.ID);
1270
- _this11.billID = resp.ID;
1279
+ _this12.setDtoID(resp.ID);
1280
+ _this12.billID = resp.ID;
1271
1281
  }));
1272
1282
 
1273
1283
  case 18:
@@ -1276,8 +1286,8 @@ var SettlementStore = (_class = function () {
1276
1286
 
1277
1287
  case 20:
1278
1288
  return _context3.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
1279
- _this11.setDtoID(resp.ID);
1280
- _this11.billID = resp.ID;
1289
+ _this12.setDtoID(resp.ID);
1290
+ _this12.billID = resp.ID;
1281
1291
  }));
1282
1292
 
1283
1293
  case 21:
@@ -1289,7 +1299,7 @@ var SettlementStore = (_class = function () {
1289
1299
  }));
1290
1300
 
1291
1301
  function save() {
1292
- return _ref14.apply(this, arguments);
1302
+ return _ref13.apply(this, arguments);
1293
1303
  }
1294
1304
 
1295
1305
  return save;
@@ -1302,7 +1312,7 @@ var SettlementStore = (_class = function () {
1302
1312
  }, {
1303
1313
  key: 'querySettleResult',
1304
1314
  value: function () {
1305
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1315
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1306
1316
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1307
1317
  while (1) {
1308
1318
  switch (_context4.prev = _context4.next) {
@@ -1330,7 +1340,7 @@ var SettlementStore = (_class = function () {
1330
1340
  }));
1331
1341
 
1332
1342
  function querySettleResult() {
1333
- return _ref17.apply(this, arguments);
1343
+ return _ref16.apply(this, arguments);
1334
1344
  }
1335
1345
 
1336
1346
  return querySettleResult;
@@ -1356,14 +1366,14 @@ var SettlementStore = (_class = function () {
1356
1366
  }, {
1357
1367
  key: 'validePwd',
1358
1368
  value: function () {
1359
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1360
- var _ref19, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1369
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1370
+ var _ref18, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1361
1371
 
1362
1372
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1363
1373
  while (1) {
1364
1374
  switch (_context5.prev = _context5.next) {
1365
1375
  case 0:
1366
- _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1376
+ _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1367
1377
  _context5.prev = 1;
1368
1378
 
1369
1379
  if (!isNewRetailBCPos) {
@@ -1447,7 +1457,7 @@ var SettlementStore = (_class = function () {
1447
1457
  }));
1448
1458
 
1449
1459
  function validePwd(_x3) {
1450
- return _ref18.apply(this, arguments);
1460
+ return _ref17.apply(this, arguments);
1451
1461
  }
1452
1462
 
1453
1463
  return validePwd;
@@ -1457,7 +1467,7 @@ var SettlementStore = (_class = function () {
1457
1467
  }(), (_descriptor = _applyDecoratedDescriptor(_class.prototype, 'queryPwd', [_mobx.action], {
1458
1468
  enumerable: true,
1459
1469
  initializer: function initializer() {
1460
- var _this12 = this;
1470
+ var _this13 = this;
1461
1471
 
1462
1472
  return function (newPass, newPassConfirm) {
1463
1473
  if (!newPass || !newPassConfirm) {
@@ -1469,7 +1479,7 @@ var SettlementStore = (_class = function () {
1469
1479
  var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
1470
1480
  return (0, _tplusApi.ccApi)({
1471
1481
  Idstore: idstore,
1472
- meMemberId: _this12.member.ID,
1482
+ meMemberId: _this13.member.ID,
1473
1483
  oldPassword: null,
1474
1484
  newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
1475
1485
  dataSource: "POS"
@@ -1483,19 +1493,19 @@ var SettlementStore = (_class = function () {
1483
1493
  }), _applyDecoratedDescriptor(_class.prototype, 'initByOriginReturn', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'initByOriginReturn'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'quickSettle', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'quickSettle'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusAndAddPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusAndAddPay'), _class.prototype), _descriptor2 = _applyDecoratedDescriptor(_class.prototype, 'updateMemberInfo', [_mobx.action], {
1484
1494
  enumerable: true,
1485
1495
  initializer: function initializer() {
1486
- var _this13 = this;
1496
+ var _this14 = this;
1487
1497
 
1488
1498
  return function () {
1489
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1499
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1490
1500
  var _getLoginInfo, IdStore, StoreCode, resp;
1491
1501
 
1492
1502
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1493
1503
  while (1) {
1494
1504
  switch (_context6.prev = _context6.next) {
1495
1505
  case 0:
1496
- _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1506
+ _getLoginInfo = _this14.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1497
1507
  _context6.next = 3;
1498
- return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1508
+ return (0, _tplusApi.tApi)({ Idmember: _this14.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1499
1509
 
1500
1510
  case 3:
1501
1511
  resp = _context6.sent;
@@ -1509,11 +1519,11 @@ var SettlementStore = (_class = function () {
1509
1519
  return _context6.stop();
1510
1520
  }
1511
1521
  }
1512
- }, _callee6, _this13);
1522
+ }, _callee6, _this14);
1513
1523
  }));
1514
1524
 
1515
1525
  return function (_x4) {
1516
- return _ref20.apply(this, arguments);
1526
+ return _ref19.apply(this, arguments);
1517
1527
  };
1518
1528
  }();
1519
1529
  }
@@ -1591,7 +1601,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1591
1601
  }, {
1592
1602
  key: 'calcDjqCheckValue',
1593
1603
  value: function calcDjqCheckValue(q1, dto) {
1594
- var _this14 = this;
1604
+ var _this15 = this;
1595
1605
 
1596
1606
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1597
1607
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1602,8 +1612,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1602
1612
  return;
1603
1613
  }
1604
1614
 
1605
- var _ref21 = _mutantsUtil.platform || {},
1606
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1615
+ var _ref20 = _mutantsUtil.platform || {},
1616
+ isNewRetailBCPos = _ref20.isNewRetailBCPos;
1607
1617
 
1608
1618
  var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1609
1619
  PayStyle = _enumController$getEn14.PayStyle,
@@ -1632,32 +1642,31 @@ var PayMode = exports.PayMode = (_class3 = function () {
1632
1642
  }
1633
1643
  var sum = 0;
1634
1644
  // console.log(this.store, 'stores-------');
1635
- (0, _each3.default)((0, _filter3.default)(this.currentMode.djqs, function (djq) {
1636
- return djq.checked;
1637
- }), function (q) {
1638
- if (q.discountPct > 0) {
1639
- if (q.amount === 0) {
1640
- q.amount = (1 - q.discountPct) * _this14.currentMode.receivable;
1641
- console.log(q.amount, _this14.currentMode.receivable, 'amount111111111');
1642
- }
1643
- }
1644
- sum = Math.Add(sum, q.amount);
1645
- });
1646
- console.log(this.receivable, sum, this.currentMode.maxamount, 'amount3333333333');
1647
- this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1648
- this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1649
- this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1650
1645
  if (!q1.checked) {
1651
1646
  this.checkList.forEach(function (ele, i) {
1652
1647
  if (ele.id === q1.id) {
1653
- _this14.checkList.splice(i, 1);
1648
+ _this15.checkList.splice(i, 1);
1654
1649
  }
1655
1650
  });
1656
- return;
1651
+ } else {
1652
+ if (q1.discountPct > 0) {
1653
+ q1.amount = 0;
1654
+ }
1655
+ this.checkList.push(q1);
1657
1656
  }
1657
+ this.checkList.forEach(function (ele, i) {
1658
+ if (ele.discountPct > 0) {
1659
+ if (ele.amount === 0) {
1660
+ ele.amount = (1 - ele.discountPct) * _this15.currentMode.receivable;
1661
+ }
1662
+ }
1663
+ sum = Math.Add(sum, ele.amount);
1664
+ });
1665
+ this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1666
+ this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1667
+ this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1658
1668
  var promoVoucher = {};
1659
1669
  promoVoucher.boName = "Retail";
1660
- this.checkList.push(q1);
1661
1670
  // promoVoucher.promoLinks = _filter(this.currentMode.djqs,djq=>djq.checked);
1662
1671
  promoVoucher.meMemberId = this.currentMode.member.id;
1663
1672
  promoVoucher.storeFactorId = (0, _tplusPoslogin.PosInitData)('storeID');
@@ -1707,22 +1716,22 @@ var PayMode = exports.PayMode = (_class3 = function () {
1707
1716
  return (0, _tplusApi.ccApi)((0, _extends3.default)({}, promoVoucher), 'promotion/PromoCalculate/findUsefulCouponPromoList', false, false, { method: 'post', timeout_skip: true }).then(function (result) {
1708
1717
  if (result && result.length != 0) {
1709
1718
  result.forEach(function (element) {
1710
- var djq1 = (0, _filter3.default)(_this14.currentMode.djqs, function (djq) {
1719
+ var djq1 = (0, _filter3.default)(_this15.currentMode.djqs, function (djq) {
1711
1720
  return djq.id === element.id;
1712
1721
  });
1713
1722
 
1714
- var _ref22 = element || {},
1715
- couponCode = _ref22.couponCode,
1716
- name = _ref22.name,
1717
- tieredAmountResult = _ref22.tieredAmountResult,
1718
- fromDate = _ref22.fromDate,
1719
- dateMount = _ref22.dateMount,
1720
- promoMethodEnum = _ref22.promoMethodEnum,
1721
- discountPct = _ref22.discountPct,
1722
- nominalAmount = _ref22.nominalAmount,
1723
- promoId = _ref22.promoId,
1724
- id = _ref22.id,
1725
- doorsill = _ref22.doorsill;
1723
+ var _ref21 = element || {},
1724
+ couponCode = _ref21.couponCode,
1725
+ name = _ref21.name,
1726
+ tieredAmountResult = _ref21.tieredAmountResult,
1727
+ fromDate = _ref21.fromDate,
1728
+ dateMount = _ref21.dateMount,
1729
+ promoMethodEnum = _ref21.promoMethodEnum,
1730
+ discountPct = _ref21.discountPct,
1731
+ nominalAmount = _ref21.nominalAmount,
1732
+ promoId = _ref21.promoId,
1733
+ id = _ref21.id,
1734
+ doorsill = _ref21.doorsill;
1726
1735
 
1727
1736
  var condValue = tieredAmountResult.condValue,
1728
1737
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1750,9 +1759,9 @@ var PayMode = exports.PayMode = (_class3 = function () {
1750
1759
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1751
1760
  // id
1752
1761
  // })
1753
- _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1762
+ _this15.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1754
1763
  } else {
1755
- _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum);
1764
+ _this15.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum);
1756
1765
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1757
1766
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1758
1767
  }
@@ -1764,8 +1773,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1764
1773
  }, {
1765
1774
  key: 'calcDjqValue',
1766
1775
  value: function calcDjqValue(q1) {
1767
- var _ref23 = _mutantsUtil.platform || {},
1768
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
1776
+ var _ref22 = _mutantsUtil.platform || {},
1777
+ isNewRetailBCPos = _ref22.isNewRetailBCPos;
1769
1778
 
1770
1779
  var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1771
1780
  Differentiate = _enumController$getEn15.Differentiate;
@@ -1828,9 +1837,20 @@ var PayMode = exports.PayMode = (_class3 = function () {
1828
1837
  value: function setCurrentModeValue(v, max) {
1829
1838
  this.currentMode.value = parseFloat(v) || 0;
1830
1839
  this.currentMode.errinfo = '';
1840
+ var sum = this.amount;
1841
+
1842
+ var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1843
+ PayStyle = _enumController$getEn16.PayStyle;
1844
+
1845
+ this.paymodes.thePaymodes && this.paymodes.thePaymodes.forEach(function (mode) {
1846
+ if (mode.paymentType === PayStyle.hyczk) {
1847
+ sum -= mode.value;
1848
+ }
1849
+ });
1850
+
1831
1851
  if (this.amount > 0 && (v === '' || v === '0.00')) {
1832
1852
  this.currentMode.errinfo = "实收金额必须录入";
1833
- } else if (Math.abs(parseFloat(v)) > Math.abs(this.amount)) {
1853
+ } else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
1834
1854
  this.currentMode.errinfo = "实收不应大于应收";
1835
1855
  } else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
1836
1856
  this.currentMode.errinfo = "余额不足";
@@ -1844,16 +1864,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
1844
1864
  }, {
1845
1865
  key: 'setPaymodes',
1846
1866
  value: function () {
1847
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1848
- var _this15 = this;
1867
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1868
+ var _this16 = this;
1849
1869
 
1850
- var _enumController$getEn16, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1870
+ var _enumController$getEn17, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1851
1871
 
1852
1872
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1853
1873
  while (1) {
1854
1874
  switch (_context7.prev = _context7.next) {
1855
1875
  case 0:
1856
- _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn16.settleStyleType, PayStyle = _enumController$getEn16.PayStyle;
1876
+ _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn17.settleStyleType, PayStyle = _enumController$getEn17.PayStyle;
1857
1877
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1858
1878
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1859
1879
  _context7.next = 5;
@@ -1877,6 +1897,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1877
1897
  isQuick: (0, _findIndex3.default)(modes.QuickSettleStyles, { 'Code': mode.Code }) >= 0,
1878
1898
  orderBy: 1,
1879
1899
  paymentType: mode.Code,
1900
+ offlineDisable: mode.offlineDisable,
1880
1901
  idSettleStyle: mode.IdSettleStyle,
1881
1902
  idBankAccount: mode.IdBankAccount,
1882
1903
  exchangeRate: mode.Currency ? mode.Currency.ExchangeRate : 1,
@@ -1884,7 +1905,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1884
1905
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1885
1906
  });
1886
1907
  });
1887
- _this15.paymodes = paymodes;
1908
+ _this16.paymodes = paymodes;
1888
1909
  //modes.QuickSettleStyles
1889
1910
  });
1890
1911
  }
@@ -1898,7 +1919,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1898
1919
  }));
1899
1920
 
1900
1921
  function setPaymodes(_x5, _x6) {
1901
- return _ref24.apply(this, arguments);
1922
+ return _ref23.apply(this, arguments);
1902
1923
  }
1903
1924
 
1904
1925
  return setPaymodes;
@@ -1943,19 +1964,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
1943
1964
  }), _applyDecoratedDescriptor(_class3.prototype, 'clean', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clean'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clear', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clear'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcReserved', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcReserved'), _class3.prototype), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
1944
1965
  enumerable: true,
1945
1966
  initializer: function initializer() {
1946
- var _this16 = this;
1967
+ var _this17 = this;
1947
1968
 
1948
1969
  return function () {
1949
- _this16.checkList = [];
1970
+ _this17.checkList = [];
1950
1971
  };
1951
1972
  }
1952
1973
  }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1953
1974
  enumerable: true,
1954
1975
  initializer: function initializer() {
1955
- var _this17 = this;
1976
+ var _this18 = this;
1956
1977
 
1957
1978
  return function (id, couponNum, code) {
1958
- _this17.currentMode.djqs.forEach(function (ele) {
1979
+ _this18.currentMode.djqs.forEach(function (ele) {
1959
1980
  if (ele.id === id) {
1960
1981
  ele.couponCategoryEnum = couponNum;
1961
1982
  var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
@@ -1967,7 +1988,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1967
1988
  }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1968
1989
  enumerable: true,
1969
1990
  initializer: function initializer() {
1970
- var _this18 = this;
1991
+ var _this19 = this;
1971
1992
 
1972
1993
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
1973
1994
  var djq = {
@@ -1989,13 +2010,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1989
2010
  couponCategoryEnum: couponCategoryEnum,
1990
2011
  id: id
1991
2012
  };
1992
- _this18.currentMode.djqs.push(djq);
2013
+ _this19.currentMode.djqs.push(djq);
1993
2014
  };
1994
2015
  }
1995
2016
  }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'reCalculationDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'reCalculationDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'clearDjqs', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'clearDjqs'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'setCurrentModeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'setCurrentModeValue'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcMemberBalance', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcMemberBalance'), _class3.prototype)), _class3);
1996
2017
  var Member = exports.Member = (_class5 = function () {
1997
2018
  function Member(m) {
1998
- var _this19 = this;
2019
+ var _this20 = this;
1999
2020
 
2000
2021
  (0, _classCallCheck3.default)(this, Member);
2001
2022
 
@@ -2005,7 +2026,7 @@ var Member = exports.Member = (_class5 = function () {
2005
2026
 
2006
2027
  _initDefineProp(this, 'exchangable', _descriptor13, this);
2007
2028
 
2008
- _initDefineProp(this, 'meStorageCardId', _descriptor14, this);
2029
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2009
2030
 
2010
2031
  _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2011
2032
 
@@ -2018,16 +2039,17 @@ var Member = exports.Member = (_class5 = function () {
2018
2039
  return key == 'canusedbalancestorage';
2019
2040
  });
2020
2041
 
2021
- var _ref25 = _mutantsUtil.platform || {},
2022
- isNewRetailBCPos = _ref25.isNewRetailBCPos;
2042
+ var _ref24 = _mutantsUtil.platform || {},
2043
+ isNewRetailBCPos = _ref24.isNewRetailBCPos;
2023
2044
 
2024
2045
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2046
+ m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2025
2047
  (0, _mobx.runInAction)(function () {
2026
- _this19.cardNo = m.CardCode;
2048
+ _this20.cardNo = m.CardCode;
2027
2049
  if (index >= 0) {
2028
- _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2050
+ _this20.balance = parseFloat(m.DynamicPropertyValues[index]);
2029
2051
  } else {
2030
- _this19.balance = _this19.rawbalance;
2052
+ _this20.balance = _this20.rawbalance;
2031
2053
  }
2032
2054
  });
2033
2055
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2050,7 +2072,7 @@ var Member = exports.Member = (_class5 = function () {
2050
2072
  }, {
2051
2073
  key: 'setMeStorageCardId',
2052
2074
  value: function setMeStorageCardId(v) {
2053
- this.meStorageCardId = v;
2075
+ this.MeStorageCardId = v;
2054
2076
  }
2055
2077
  }, {
2056
2078
  key: 'setStorageCardNo',
@@ -2068,7 +2090,7 @@ var Member = exports.Member = (_class5 = function () {
2068
2090
  }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2069
2091
  enumerable: true,
2070
2092
  initializer: null
2071
- }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2093
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2072
2094
  enumerable: true,
2073
2095
  initializer: null
2074
2096
  }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {