tplus-components-touch 3.19.1 → 3.21.2

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 (35) hide show
  1. package/dist/components/cloudPrint/api.js +1 -1
  2. package/dist/components/cloudPrint/api.js.map +1 -1
  3. package/dist/components/cloudPrint/index.js +24 -48
  4. package/dist/components/cloudPrint/index.js.map +1 -1
  5. package/dist/components/inventorySearch/index.js +12 -3
  6. package/dist/components/inventorySearch/index.js.map +1 -1
  7. package/dist/components/inventorySearch/index.less +6 -2
  8. package/dist/components/keyboard/index.js +1 -1
  9. package/dist/components/keyboard/index.js.map +1 -1
  10. package/dist/components/settlement/asyncModal.js +4 -0
  11. package/dist/components/settlement/asyncModal.js.map +1 -1
  12. package/dist/components/settlement/prototypeTable/index.js +349 -0
  13. package/dist/components/settlement/prototypeTable/index.js.map +1 -0
  14. package/dist/components/settlement/prototypeTable/style.less +59 -0
  15. package/dist/components/settlement/prototypeTable/utils.js +14 -0
  16. package/dist/components/settlement/prototypeTable/utils.js.map +1 -0
  17. package/dist/components/settlement/settlement.js +505 -164
  18. package/dist/components/settlement/settlement.js.map +1 -1
  19. package/dist/components/settlement/settlement.less +110 -13
  20. package/dist/components/settlement/settlementStore.js +398 -87
  21. package/dist/components/settlement/settlementStore.js.map +1 -1
  22. package/dist/components/ticon/iconfont/demo.css +539 -539
  23. package/dist/components/ticon/iconfont/demo_index.html +417 -3
  24. package/dist/components/ticon/iconfont/iconfont.css +75 -3
  25. package/dist/components/ticon/iconfont/iconfont.js +12 -10
  26. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  27. package/dist/components/ticon/iconfont/iconfont.json +126 -0
  28. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  29. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  30. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  31. package/dist/index.js +2 -17
  32. package/dist/index.js.map +1 -1
  33. package/package.json +2 -2
  34. package/dist/components/cloudPrint/printDispatch.js +0 -223
  35. package/dist/components/cloudPrint/printDispatch.js.map +0 -1
@@ -41,7 +41,7 @@ var _createClass2 = require('babel-runtime/helpers/createClass');
41
41
 
42
42
  var _createClass3 = _interopRequireDefault(_createClass2);
43
43
 
44
- var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _desc3, _value3, _class5, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12;
44
+ var _desc, _value, _class, _descriptor, _descriptor2, _desc2, _value2, _class3, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _desc3, _value3, _class5, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15;
45
45
 
46
46
  var _mobx = require('mobx');
47
47
 
@@ -93,18 +93,22 @@ var _utils = require('./utils');
93
93
 
94
94
  var _tplusApi = require('tplus-api');
95
95
 
96
+ var _cloneDeep = require('lodash/cloneDeep');
97
+
98
+ var _cloneDeep2 = _interopRequireDefault(_cloneDeep);
99
+
96
100
  var _message = require('../message');
97
101
 
98
102
  var _message2 = _interopRequireDefault(_message);
99
103
 
100
104
  var _mutantsUtil = require('mutants-util');
101
105
 
102
- var _tplusComponentsTouch = require('tplus-components-touch');
103
-
104
106
  var _moment = require('moment');
105
107
 
106
108
  var _moment2 = _interopRequireDefault(_moment);
107
109
 
110
+ var _tplusComponentsTouch = require('tplus-components-touch');
111
+
108
112
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
109
113
 
110
114
  function _initDefineProp(target, property, descriptor, context) {
@@ -194,6 +198,9 @@ var SettlementStore = (_class = function () {
194
198
  if (dto.OnlinePaymentAmount) {
195
199
  onlinePaymentAmount = dto.OnlinePaymentAmount;
196
200
  }
201
+ promoVoucher.promoLinks = (0, _filter3.default)(_this2.paymode.currentMode.djqs, function (djq) {
202
+ return djq.checked;
203
+ });
197
204
  promoVoucher.totalAmountWithTax = Math.Minus(dto.TotalTaxAmount, onlinePaymentAmount);
198
205
  promoVoucher.redBlueFlagEnum = "BLUE";
199
206
  promoVoucher.meMemberId = dto.Idmember;
@@ -209,7 +216,7 @@ var SettlementStore = (_class = function () {
209
216
  detailDTO.productSpecId = item.ProductSpecId;
210
217
  detailDTO.isManualFreeGift = item.IsPresent;
211
218
  detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
212
-
219
+ detailDTO.IsManualChangePrice = item.IsManualChangePrice;
213
220
  if (detailDTO.IsManualChangePrice) //如果是手工改价
214
221
  {
215
222
  detailDTO.listPrice = item.TaxPrice;
@@ -259,7 +266,8 @@ var SettlementStore = (_class = function () {
259
266
  var condValue = tieredAmountResult.condValue,
260
267
  promoDiscount = tieredAmountResult.promoDiscount,
261
268
  displayText = tieredAmountResult.displayText,
262
- promoRuleId = tieredAmountResult.promoRuleId;
269
+ promoRuleId = tieredAmountResult.promoRuleId,
270
+ couponCategoryEnum = tieredAmountResult.couponCategoryEnum;
263
271
 
264
272
  if ((0, _find3.default)(_this2.paymode.currentMode.djqs, function (djq) {
265
273
  return djq.code == couponCode;
@@ -270,7 +278,12 @@ var SettlementStore = (_class = function () {
270
278
  })) {
271
279
  _message2.default.error(Differentiate.COUPON + '\uFF08' + result.SN + '\uFF09\u4E0D\u53EF\u4E0E\u79EF\u5206\u4E00\u8D77\u4F7F\u7528');
272
280
  } else {
273
- _this2.addDjq(couponCode, name, promoMethodEnum == "CASH_COUPON" ? nominalAmount : promoDiscount, condValue, null, false, !result.IsRepelWithPoints, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, id, true);
281
+ var IsEnable = couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
282
+
283
+ var _ref2 = _mutantsUtil.platform || {},
284
+ isNewRetailBCPos = _ref2.isNewRetailBCPos;
285
+
286
+ _this2.addDjq(couponCode, name, IsEnable, promoMethodEnum == "CASH_COUPON" ? nominalAmount : isNewRetailBCPos && discountPct > 0 ? 0 : promoDiscount, condValue, null, false, !result.IsRepelWithPoints, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, true, 1);
274
287
  }
275
288
  });
276
289
  if (promoVoucher.coupon_code) {
@@ -293,14 +306,14 @@ var SettlementStore = (_class = function () {
293
306
  };
294
307
 
295
308
  this.checkCoupon = function () {
296
- var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
297
- var _ref3, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
309
+ var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
310
+ var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
298
311
 
299
312
  return _regenerator2.default.wrap(function _callee$(_context) {
300
313
  while (1) {
301
314
  switch (_context.prev = _context.next) {
302
315
  case 0:
303
- _ref3 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref3.isNewRetailBCPos;
316
+ _ref4 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref4.isNewRetailBCPos;
304
317
 
305
318
  if (!isNewRetailBCPos) {
306
319
  _context.next = 7;
@@ -368,7 +381,7 @@ var SettlementStore = (_class = function () {
368
381
  }));
369
382
 
370
383
  return function (_x) {
371
- return _ref2.apply(this, arguments);
384
+ return _ref3.apply(this, arguments);
372
385
  };
373
386
  }();
374
387
 
@@ -398,6 +411,7 @@ var SettlementStore = (_class = function () {
398
411
  this.paymode = new PayMode();
399
412
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
400
413
  if (params) this.cloudPrintArguments = params;
414
+ this.printUtil = new _tplusComponentsTouch.PrintUtil();
401
415
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
402
416
  }
403
417
 
@@ -481,8 +495,8 @@ var SettlementStore = (_class = function () {
481
495
  var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
482
496
  PayStyle = _enumController$getEn4.PayStyle;
483
497
 
484
- var _ref4 = _mutantsUtil.platform || {},
485
- isNewRetailBCPos = _ref4.isNewRetailBCPos;
498
+ var _ref5 = _mutantsUtil.platform || {},
499
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
486
500
 
487
501
  (0, _each3.default)(this.dto.RetailPaymentDetails, function (detail) {
488
502
  var themode = (0, _find3.default)(_this5.paymode.paymodes, { 'idSettleStyle': detail.IdsettleStyle });
@@ -505,19 +519,19 @@ var SettlementStore = (_class = function () {
505
519
  if (themode.paymentType == PayStyle.djq) {
506
520
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
507
521
  if (isNewRetailBCPos) {
508
- var _ref5 = djq || {},
509
- displayText = _ref5.displayText,
510
- promoRuleId = _ref5.promoRuleId,
511
- dateMount = _ref5.dateMount,
512
- promoMethodEnum = _ref5.promoMethodEnum,
513
- discountPct = _ref5.discountPct,
514
- promoId = _ref5.promoId,
515
- id = _ref5.id;
516
-
517
- _this5.addDjq(djq.CouponCode, djq.CouponTitle, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, id, true);
522
+ var _ref6 = djq || {},
523
+ displayText = _ref6.displayText,
524
+ promoRuleId = _ref6.promoRuleId,
525
+ dateMount = _ref6.dateMount,
526
+ promoMethodEnum = _ref6.promoMethodEnum,
527
+ discountPct = _ref6.discountPct,
528
+ promoId = _ref6.promoId,
529
+ id = _ref6.id;
530
+
531
+ _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
518
532
  return;
519
533
  }
520
- _this5.addDjq(djq.CouponCode, djq.CouponTitle, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
534
+ _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
521
535
  });
522
536
  }
523
537
  _this5.paymode.thePaymodes.push(newmode);
@@ -594,9 +608,9 @@ var SettlementStore = (_class = function () {
594
608
  }, {
595
609
  key: 'getLoginInfo',
596
610
  value: function getLoginInfo() {
597
- var _ref6 = _mutantsMicrofx.localStore.get('user') || {},
598
- _ref6$loginInfo = _ref6.loginInfo,
599
- loginInfo = _ref6$loginInfo === undefined ? {} : _ref6$loginInfo;
611
+ var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
612
+ _ref7$loginInfo = _ref7.loginInfo,
613
+ loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
600
614
 
601
615
  return loginInfo;
602
616
  }
@@ -615,8 +629,8 @@ var SettlementStore = (_class = function () {
615
629
  var IdStore = this.storeInfo.storeID;
616
630
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
617
631
 
618
- var _ref7 = _mutantsUtil.platform || {},
619
- isNewRetailBCPos = _ref7.isNewRetailBCPos;
632
+ var _ref8 = _mutantsUtil.platform || {},
633
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
620
634
 
621
635
  var address = '';
622
636
  if (isNewRetailBCPos) {
@@ -628,8 +642,8 @@ var SettlementStore = (_class = function () {
628
642
  var data = JSON.parse(result.Data);
629
643
  var m = data && data.length > 0 && data[0];
630
644
 
631
- var _ref8 = _mutantsUtil.platform || {},
632
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
645
+ var _ref9 = _mutantsUtil.platform || {},
646
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
633
647
 
634
648
  if (isNewRetailBCPos) {
635
649
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -666,10 +680,12 @@ var SettlementStore = (_class = function () {
666
680
  }
667
681
  }, {
668
682
  key: 'addDjq',
669
- value: function addDjq(code, name, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, id, unCheck) {
683
+ value: function addDjq(promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
670
684
  var djq = {
671
- code: code,
685
+ code: promoCouponCode,
686
+ promoCouponCode: promoCouponCode,
672
687
  name: name,
688
+ IsEnable: IsEnable,
673
689
  amount: amount,
674
690
  doorsill: doorsill, //:"无门槛"
675
691
  LastTS: LastTS,
@@ -682,9 +698,12 @@ var SettlementStore = (_class = function () {
682
698
  discountPct: discountPct,
683
699
  promoId: promoId,
684
700
  promoRuleId: promoRuleId,
685
- id: id
701
+ couponCategoryEnum: couponCategoryEnum,
702
+ id: id,
703
+ count: count === 1 && (couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT') ? 1 : null
686
704
  };
687
705
  this.paymode.currentMode.djqs.push(djq);
706
+ // let copyData = _clonedeep(this.data[targetIndex]);
688
707
  !unCheck && !this.boriginReturn && this.paymode.calcDjqValue(djq);
689
708
  }
690
709
  }, {
@@ -912,7 +931,7 @@ var SettlementStore = (_class = function () {
912
931
  }, {
913
932
  key: 'commit',
914
933
  value: function () {
915
- var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
934
+ var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
916
935
  return _regenerator2.default.wrap(function _callee2$(_context2) {
917
936
  while (1) {
918
937
  switch (_context2.prev = _context2.next) {
@@ -967,17 +986,11 @@ var SettlementStore = (_class = function () {
967
986
  }));
968
987
 
969
988
  function commit(_x2) {
970
- return _ref9.apply(this, arguments);
989
+ return _ref10.apply(this, arguments);
971
990
  }
972
991
 
973
992
  return commit;
974
993
  }()
975
- }, {
976
- key: 'handlePrint',
977
- value: function handlePrint(resp) {
978
- // 储值打印
979
- return (0, _tplusComponentsTouch.printDispatch)(_tplusComponentsTouch.DoNameList.DO_STORAGE_PRINT, resp.ID, {});
980
- }
981
994
  }, {
982
995
  key: 'saveMember',
983
996
  value: function saveMember() {
@@ -1019,16 +1032,80 @@ var SettlementStore = (_class = function () {
1019
1032
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1020
1033
  }
1021
1034
  return (0, _tplusApi.tApi)({ dto: this.dto }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
1022
- _this10.handlePrint(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
+ }
1023
1100
  });
1024
1101
  }
1025
1102
  }, {
1026
1103
  key: 'save',
1027
1104
  value: function () {
1028
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1105
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1029
1106
  var _this11 = this;
1030
1107
 
1031
- var _enumController$getEn13, PayStyle, _ref12, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1108
+ var _enumController$getEn13, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1032
1109
 
1033
1110
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1034
1111
  while (1) {
@@ -1108,8 +1185,8 @@ var SettlementStore = (_class = function () {
1108
1185
  }
1109
1186
  });
1110
1187
 
1111
- var _ref11 = _mutantsUtil.platform || {},
1112
- isNewRetailBCPos = _ref11.isNewRetailBCPos;
1188
+ var _ref15 = _mutantsUtil.platform || {},
1189
+ isNewRetailBCPos = _ref15.isNewRetailBCPos;
1113
1190
 
1114
1191
  if (_this11.dto.RetailStorageDetails.length > 0) {
1115
1192
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1143,7 +1220,7 @@ var SettlementStore = (_class = function () {
1143
1220
  _this11.dto.Idmember = Idmember;
1144
1221
  }
1145
1222
  });
1146
- _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
1223
+ _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1147
1224
 
1148
1225
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1149
1226
 
@@ -1212,7 +1289,7 @@ var SettlementStore = (_class = function () {
1212
1289
  }));
1213
1290
 
1214
1291
  function save() {
1215
- return _ref10.apply(this, arguments);
1292
+ return _ref14.apply(this, arguments);
1216
1293
  }
1217
1294
 
1218
1295
  return save;
@@ -1225,7 +1302,7 @@ var SettlementStore = (_class = function () {
1225
1302
  }, {
1226
1303
  key: 'querySettleResult',
1227
1304
  value: function () {
1228
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1305
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1229
1306
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1230
1307
  while (1) {
1231
1308
  switch (_context4.prev = _context4.next) {
@@ -1253,7 +1330,7 @@ var SettlementStore = (_class = function () {
1253
1330
  }));
1254
1331
 
1255
1332
  function querySettleResult() {
1256
- return _ref13.apply(this, arguments);
1333
+ return _ref17.apply(this, arguments);
1257
1334
  }
1258
1335
 
1259
1336
  return querySettleResult;
@@ -1279,14 +1356,14 @@ var SettlementStore = (_class = function () {
1279
1356
  }, {
1280
1357
  key: 'validePwd',
1281
1358
  value: function () {
1282
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1283
- var _ref15, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1359
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1360
+ var _ref19, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1284
1361
 
1285
1362
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1286
1363
  while (1) {
1287
1364
  switch (_context5.prev = _context5.next) {
1288
1365
  case 0:
1289
- _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1366
+ _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1290
1367
  _context5.prev = 1;
1291
1368
 
1292
1369
  if (!isNewRetailBCPos) {
@@ -1370,7 +1447,7 @@ var SettlementStore = (_class = function () {
1370
1447
  }));
1371
1448
 
1372
1449
  function validePwd(_x3) {
1373
- return _ref14.apply(this, arguments);
1450
+ return _ref18.apply(this, arguments);
1374
1451
  }
1375
1452
 
1376
1453
  return validePwd;
@@ -1409,7 +1486,7 @@ var SettlementStore = (_class = function () {
1409
1486
  var _this13 = this;
1410
1487
 
1411
1488
  return function () {
1412
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1489
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1413
1490
  var _getLoginInfo, IdStore, StoreCode, resp;
1414
1491
 
1415
1492
  return _regenerator2.default.wrap(function _callee6$(_context6) {
@@ -1436,13 +1513,14 @@ var SettlementStore = (_class = function () {
1436
1513
  }));
1437
1514
 
1438
1515
  return function (_x4) {
1439
- return _ref16.apply(this, arguments);
1516
+ return _ref20.apply(this, arguments);
1440
1517
  };
1441
1518
  }();
1442
1519
  }
1443
1520
  }), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
1444
1521
  exports.default = SettlementStore;
1445
1522
  var PayMode = exports.PayMode = (_class3 = function () {
1523
+ //应收
1446
1524
  function PayMode() {
1447
1525
  // this.amount=getFixedNumber(amount);
1448
1526
  // this.calcReserved();
@@ -1464,11 +1542,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
1464
1542
  _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1465
1543
 
1466
1544
  this.currentMode = null;
1545
+ this.checkList = [];
1467
1546
  this.settle = {
1468
1547
  name: "复合结算",
1469
1548
  hotKey: "Ctrl+M"
1470
1549
  };
1471
- } //应收
1550
+
1551
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1552
+
1553
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1554
+
1555
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1556
+ }
1557
+ // @observable store = null;
1472
1558
 
1473
1559
 
1474
1560
  (0, _createClass3.default)(PayMode, [{
@@ -1503,14 +1589,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1503
1589
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1504
1590
  }
1505
1591
  }, {
1506
- key: 'calcDjqValue',
1507
- value: function calcDjqValue(q1) {
1592
+ key: 'calcDjqCheckValue',
1593
+ value: function calcDjqCheckValue(q1, dto) {
1508
1594
  var _this14 = this;
1509
1595
 
1510
- var _ref17 = _mutantsUtil.platform || {},
1511
- isNewRetailBCPos = _ref17.isNewRetailBCPos;
1596
+ var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1597
+ var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
1598
+ return djq.checked;
1599
+ });
1600
+ if (qList.length === useLimitPerOrder && !q1.checked) {
1601
+ _message2.default.warn('本单最多可用' + useLimitPerOrder + '张');
1602
+ return;
1603
+ }
1604
+
1605
+ var _ref21 = _mutantsUtil.platform || {},
1606
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1512
1607
 
1513
1608
  var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1609
+ PayStyle = _enumController$getEn14.PayStyle,
1514
1610
  Differentiate = _enumController$getEn14.Differentiate;
1515
1611
 
1516
1612
  if (q1) {
@@ -1519,22 +1615,184 @@ var PayMode = exports.PayMode = (_class3 = function () {
1519
1615
  return;
1520
1616
  }
1521
1617
  var q = (0, _find3.default)(this.currentMode.djqs, function (djq) {
1522
- return djq.code == q1.code;
1618
+ return djq.promoCouponCode == q1.promoCouponCode;
1523
1619
  });
1524
1620
  if (q && !q.checked && parseFloat(this.amount) < parseFloat(q.doorsill)) {
1525
1621
  _message2.default.error("本单金额低于使用门槛,该券不可使用。");
1526
1622
  return;
1527
1623
  }
1528
1624
  //判断是否是选择优惠券 //CC优惠券只能使用一个
1529
- if (q1 && !q1.checked && isNewRetailBCPos) {
1530
- // 检查是否有已经选定优惠券 并且去除选定的优惠券
1531
- this.currentMode.djqs.forEach(function (djq, index) {
1532
- if (djq.checked) _this14.currentMode.djqs[index].checked = false;
1625
+ // if (q1 && !q1.checked && isNewRetailBCPos) {
1626
+ // // 检查是否有已经选定优惠券 并且去除选定的优惠券
1627
+ // this.currentMode.djqs.forEach((djq, index) => {
1628
+ // if (djq.checked) this.currentMode.djqs[index].checked = false;
1629
+ // })
1630
+ // }
1631
+ q && (q.checked = !q.checked);
1632
+ }
1633
+ var sum = 0;
1634
+ // 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
+ if (!q1.checked) {
1651
+ this.checkList.forEach(function (ele, i) {
1652
+ if (ele.id === q1.id) {
1653
+ _this14.checkList.splice(i, 1);
1654
+ }
1655
+ });
1656
+ return;
1657
+ }
1658
+ var promoVoucher = {};
1659
+ promoVoucher.boName = "Retail";
1660
+ this.checkList.push(q1);
1661
+ // promoVoucher.promoLinks = _filter(this.currentMode.djqs,djq=>djq.checked);
1662
+ promoVoucher.meMemberId = this.currentMode.member.id;
1663
+ promoVoucher.storeFactorId = (0, _tplusPoslogin.PosInitData)('storeID');
1664
+ promoVoucher.voucherDetailList = [];
1665
+ dto.RetailDetails.forEach(function (item) {
1666
+ var detailDTO = {};
1667
+ detailDTO.uuid = item.Code;
1668
+ detailDTO.detailBoName = "RetailDetail";
1669
+ detailDTO.voucherDetailId = item.ID;
1670
+ detailDTO.productId = item.Idinventory;
1671
+ detailDTO.uomId = item.Idunit;
1672
+ detailDTO.productSpecId = item.ProductSpecId;
1673
+ detailDTO.isManualFreeGift = item.IsPresent;
1674
+ detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
1675
+ detailDTO.IsManualChangePrice = item.IsManualChangePrice;
1676
+ if (detailDTO.IsManualChangePrice) //如果是手工改价
1677
+ {
1678
+ detailDTO.listPrice = item.TaxPrice;
1679
+ detailDTO.netAmountWithTax = item.TaxAmount;
1680
+ } else {
1681
+ var bookingQuantity = 0;
1682
+ if (item.BookingQuantity) {
1683
+ bookingQuantity = item.BookingQuantity;
1684
+ }
1685
+ detailDTO.listPrice = item.MemberPrice;
1686
+ detailDTO.netAmountWithTax = Math.Multiply(item.MemberPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1687
+ }
1688
+ detailDTO.taxRate = item.TaxRate;
1689
+ detailDTO.quantity = item.Quantity;
1690
+
1691
+ detailDTO.amountWithTax = item.RetailAmount;
1692
+ // 促销 start
1693
+ if (item.PromotionDetails && item.PromotionDetails.length != 0) {
1694
+ var promoLinks = [];
1695
+ item.PromotionDetails.forEach(function (promotion) {
1696
+ promoLinks.push({
1697
+ promoId: promotion.IdSalesPromotionDTO,
1698
+ promoRuleId: promotion.PromotionRuleId
1699
+ });
1533
1700
  });
1701
+ if (promoLinks.length != 0) detailDTO.promoLinks = promoLinks;
1534
1702
  }
1703
+ // 促销 end
1704
+ promoVoucher.voucherDetailList.push(detailDTO);
1705
+ });
1706
+ promoVoucher.promoLinks = this.checkList;
1707
+ return (0, _tplusApi.ccApi)((0, _extends3.default)({}, promoVoucher), 'promotion/PromoCalculate/findUsefulCouponPromoList', false, false, { method: 'post', timeout_skip: true }).then(function (result) {
1708
+ if (result && result.length != 0) {
1709
+ result.forEach(function (element) {
1710
+ var djq1 = (0, _filter3.default)(_this14.currentMode.djqs, function (djq) {
1711
+ return djq.id === element.id;
1712
+ });
1713
+
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;
1726
+
1727
+ var condValue = tieredAmountResult.condValue,
1728
+ promoDiscount = tieredAmountResult.promoDiscount,
1729
+ displayText = tieredAmountResult.displayText,
1730
+ promoRuleId = tieredAmountResult.promoRuleId,
1731
+ couponCategoryEnum = tieredAmountResult.couponCategoryEnum;
1732
+
1733
+ if (!djq1.length) {
1734
+ // this.currentMode.djqs.push({
1735
+ // promoCouponCode: element.CouponCode,
1736
+ // name: element.CouponTitle,
1737
+ // IsEnable: true,
1738
+ // amount: element.ReductionAmount,
1739
+ // doorsill: element.EnableAmount,
1740
+ // LastTS: element.LastTS,
1741
+ // checked: false,
1742
+ // IsRepelWithPoints: true,
1743
+ // UMemberID: dto.Idmember,
1744
+ // expired: null,
1745
+ // displayText,
1746
+ // promoMethodEnum,
1747
+ // discountPct,
1748
+ // promoId,
1749
+ // promoRuleId,
1750
+ // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1751
+ // id
1752
+ // })
1753
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1754
+ } else {
1755
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum);
1756
+ // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1757
+ // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1758
+ }
1759
+ });
1760
+ }
1761
+ });
1762
+ //this.receivable = getFixedNumber(this.receivable - sum);
1763
+ }
1764
+ }, {
1765
+ key: 'calcDjqValue',
1766
+ value: function calcDjqValue(q1) {
1767
+ var _ref23 = _mutantsUtil.platform || {},
1768
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
1769
+
1770
+ var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1771
+ Differentiate = _enumController$getEn15.Differentiate;
1772
+
1773
+ if (q1) {
1774
+ if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
1775
+ _message2.default.error('\u672C\u5355\u6CA1\u6709' + Differentiate.COUPON + '\u53EF\u7528\u91D1\u989D\uFF0C\u8BE5\u5238\u4E0D\u53EF\u4F7F\u7528\u3002');
1776
+ return;
1777
+ }
1778
+ var q = (0, _find3.default)(this.currentMode.djqs, function (djq) {
1779
+ return djq.code == q1.code;
1780
+ });
1781
+ if (q && !q.checked && parseFloat(this.amount) < parseFloat(q.doorsill)) {
1782
+ _message2.default.error("本单金额低于使用门槛,该券不可使用。");
1783
+ return;
1784
+ }
1785
+ //判断是否是选择优惠券 //CC优惠券只能使用一个
1786
+ // if (q1 && !q1.checked && isNewRetailBCPos) {
1787
+ // // 检查是否有已经选定优惠券 并且去除选定的优惠券
1788
+ // this.currentMode.djqs.forEach((djq, index) => {
1789
+ // if (djq.checked) this.currentMode.djqs[index].checked = false;
1790
+ // })
1791
+ // }
1535
1792
  q && (q.checked = !q.checked);
1536
1793
  }
1537
1794
  var sum = 0;
1795
+ // console.log(this.store, 'stores-------');
1538
1796
  (0, _each3.default)((0, _filter3.default)(this.currentMode.djqs, function (djq) {
1539
1797
  return djq.checked;
1540
1798
  }), function (q) {
@@ -1543,6 +1801,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1543
1801
  this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1544
1802
  this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1545
1803
  this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1804
+
1546
1805
  //this.receivable = getFixedNumber(this.receivable - sum);
1547
1806
  }
1548
1807
  }, {
@@ -1585,16 +1844,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
1585
1844
  }, {
1586
1845
  key: 'setPaymodes',
1587
1846
  value: function () {
1588
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1847
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1589
1848
  var _this15 = this;
1590
1849
 
1591
- var _enumController$getEn15, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1850
+ var _enumController$getEn16, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1592
1851
 
1593
1852
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1594
1853
  while (1) {
1595
1854
  switch (_context7.prev = _context7.next) {
1596
1855
  case 0:
1597
- _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn15.settleStyleType, PayStyle = _enumController$getEn15.PayStyle;
1856
+ _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn16.settleStyleType, PayStyle = _enumController$getEn16.PayStyle;
1598
1857
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1599
1858
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1600
1859
  _context7.next = 5;
@@ -1639,7 +1898,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1639
1898
  }));
1640
1899
 
1641
1900
  function setPaymodes(_x5, _x6) {
1642
- return _ref18.apply(this, arguments);
1901
+ return _ref24.apply(this, arguments);
1643
1902
  }
1644
1903
 
1645
1904
  return setPaymodes;
@@ -1681,22 +1940,74 @@ var PayMode = exports.PayMode = (_class3 = function () {
1681
1940
  initializer: function initializer() {
1682
1941
  return [];
1683
1942
  }
1684
- }), _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), _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);
1943
+ }), _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
+ enumerable: true,
1945
+ initializer: function initializer() {
1946
+ var _this16 = this;
1947
+
1948
+ return function () {
1949
+ _this16.checkList = [];
1950
+ };
1951
+ }
1952
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1953
+ enumerable: true,
1954
+ initializer: function initializer() {
1955
+ var _this17 = this;
1956
+
1957
+ return function (id, couponNum, code) {
1958
+ _this17.currentMode.djqs.forEach(function (ele) {
1959
+ if (ele.id === id) {
1960
+ ele.couponCategoryEnum = couponNum;
1961
+ var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
1962
+ ele.IsEnable = IsEnable;
1963
+ }
1964
+ });
1965
+ };
1966
+ }
1967
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1968
+ enumerable: true,
1969
+ initializer: function initializer() {
1970
+ var _this18 = this;
1971
+
1972
+ return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
1973
+ var djq = {
1974
+ promoCouponCode: promoCouponCode,
1975
+ name: name,
1976
+ IsEnable: IsEnable,
1977
+ amount: amount,
1978
+ doorsill: doorsill,
1979
+ LastTS: LastTS,
1980
+ checked: checked,
1981
+ IsRepelWithPoints: IsRepelWithPoints,
1982
+ UMemberID: UMemberID,
1983
+ expired: expired,
1984
+ displayText: displayText,
1985
+ promoMethodEnum: promoMethodEnum,
1986
+ discountPct: discountPct,
1987
+ promoId: promoId,
1988
+ promoRuleId: promoRuleId,
1989
+ couponCategoryEnum: couponCategoryEnum,
1990
+ id: id
1991
+ };
1992
+ _this18.currentMode.djqs.push(djq);
1993
+ };
1994
+ }
1995
+ }), _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);
1685
1996
  var Member = exports.Member = (_class5 = function () {
1686
1997
  function Member(m) {
1687
- var _this16 = this;
1998
+ var _this19 = this;
1688
1999
 
1689
2000
  (0, _classCallCheck3.default)(this, Member);
1690
2001
 
1691
- _initDefineProp(this, 'cardNo', _descriptor8, this);
2002
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
1692
2003
 
1693
- _initDefineProp(this, 'balance', _descriptor9, this);
2004
+ _initDefineProp(this, 'balance', _descriptor12, this);
1694
2005
 
1695
- _initDefineProp(this, 'exchangable', _descriptor10, this);
2006
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
1696
2007
 
1697
- _initDefineProp(this, 'meStorageCardId', _descriptor11, this);
2008
+ _initDefineProp(this, 'meStorageCardId', _descriptor14, this);
1698
2009
 
1699
- _initDefineProp(this, 'StorageCardNo', _descriptor12, this);
2010
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
1700
2011
 
1701
2012
  if (m) {
1702
2013
  this.id = m.ID;
@@ -1707,16 +2018,16 @@ var Member = exports.Member = (_class5 = function () {
1707
2018
  return key == 'canusedbalancestorage';
1708
2019
  });
1709
2020
 
1710
- var _ref19 = _mutantsUtil.platform || {},
1711
- isNewRetailBCPos = _ref19.isNewRetailBCPos;
2021
+ var _ref25 = _mutantsUtil.platform || {},
2022
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
1712
2023
 
1713
2024
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
1714
2025
  (0, _mobx.runInAction)(function () {
1715
- _this16.cardNo = m.CardCode;
2026
+ _this19.cardNo = m.CardCode;
1716
2027
  if (index >= 0) {
1717
- _this16.balance = parseFloat(m.DynamicPropertyValues[index]);
2028
+ _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
1718
2029
  } else {
1719
- _this16.balance = _this16.rawbalance;
2030
+ _this19.balance = _this19.rawbalance;
1720
2031
  }
1721
2032
  });
1722
2033
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -1748,19 +2059,19 @@ var Member = exports.Member = (_class5 = function () {
1748
2059
  }
1749
2060
  }]);
1750
2061
  return Member;
1751
- }(), (_descriptor8 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2062
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
1752
2063
  enumerable: true,
1753
2064
  initializer: null
1754
- }), _descriptor9 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2065
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
1755
2066
  enumerable: true,
1756
2067
  initializer: null
1757
- }), _descriptor10 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2068
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
1758
2069
  enumerable: true,
1759
2070
  initializer: null
1760
- }), _descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
2071
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
1761
2072
  enumerable: true,
1762
2073
  initializer: null
1763
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2074
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
1764
2075
  enumerable: true,
1765
2076
  initializer: null
1766
2077
  }), _applyDecoratedDescriptor(_class5.prototype, 'setExchangable', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setExchangable'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setCardNo'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setMeStorageCardId', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setMeStorageCardId'), _class5.prototype), _applyDecoratedDescriptor(_class5.prototype, 'setStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class5.prototype, 'setStorageCardNo'), _class5.prototype)), _class5);