tplus-components-touch 3.20.4 → 3.22.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 (37) hide show
  1. package/dist/components/billSearch/index.js +64 -4
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/billSearch/index.less +12 -2
  4. package/dist/components/cloudPrint/api.js +1 -1
  5. package/dist/components/cloudPrint/api.js.map +1 -1
  6. package/dist/components/cloudPrint/index.js +57 -33
  7. package/dist/components/cloudPrint/index.js.map +1 -1
  8. package/dist/components/cloudPrint/printDispatch.js +223 -0
  9. package/dist/components/cloudPrint/printDispatch.js.map +1 -0
  10. package/dist/components/commonForm/addressPicker/index.js +4 -2
  11. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  12. package/dist/components/commonForm/formControl/index.js +3 -0
  13. package/dist/components/commonForm/formControl/index.js.map +1 -1
  14. package/dist/components/hotKey/localConfig.js +14 -1
  15. package/dist/components/hotKey/localConfig.js.map +1 -1
  16. package/dist/components/keyboard/index.js +1 -1
  17. package/dist/components/keyboard/index.js.map +1 -1
  18. package/dist/components/modalWraper/style.less +6 -0
  19. package/dist/components/settlement/settlement.js +106 -54
  20. package/dist/components/settlement/settlement.js.map +1 -1
  21. package/dist/components/settlement/settlement.less +62 -10
  22. package/dist/components/settlement/settlementStore.js +338 -144
  23. package/dist/components/settlement/settlementStore.js.map +1 -1
  24. package/dist/components/ticon/iconfont/demo.css +539 -539
  25. package/dist/components/ticon/iconfont/demo_index.html +256 -3
  26. package/dist/components/ticon/iconfont/iconfont.css +47 -3
  27. package/dist/components/ticon/iconfont/iconfont.js +1 -1
  28. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  29. package/dist/components/ticon/iconfont/iconfont.json +77 -0
  30. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  31. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  32. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  33. package/dist/components/touchTable/index.js +8 -0
  34. package/dist/components/touchTable/index.js.map +1 -1
  35. package/dist/index.js +17 -2
  36. package/dist/index.js.map +1 -1
  37. package/package.json +35 -35
@@ -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
 
106
+ var _tplusComponentsTouch = require('tplus-components-touch');
107
+
102
108
  var _moment = require('moment');
103
109
 
104
110
  var _moment2 = _interopRequireDefault(_moment);
105
111
 
106
- var _tplusComponentsTouch = require('tplus-components-touch');
107
-
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,7 +411,6 @@ 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;
401
- this.printUtil = new _tplusComponentsTouch.PrintUtil();
402
414
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
403
415
  }
404
416
 
@@ -482,8 +494,8 @@ var SettlementStore = (_class = function () {
482
494
  var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
483
495
  PayStyle = _enumController$getEn4.PayStyle;
484
496
 
485
- var _ref4 = _mutantsUtil.platform || {},
486
- isNewRetailBCPos = _ref4.isNewRetailBCPos;
497
+ var _ref5 = _mutantsUtil.platform || {},
498
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
487
499
 
488
500
  (0, _each3.default)(this.dto.RetailPaymentDetails, function (detail) {
489
501
  var themode = (0, _find3.default)(_this5.paymode.paymodes, { 'idSettleStyle': detail.IdsettleStyle });
@@ -506,19 +518,19 @@ var SettlementStore = (_class = function () {
506
518
  if (themode.paymentType == PayStyle.djq) {
507
519
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
508
520
  if (isNewRetailBCPos) {
509
- var _ref5 = djq || {},
510
- displayText = _ref5.displayText,
511
- promoRuleId = _ref5.promoRuleId,
512
- dateMount = _ref5.dateMount,
513
- promoMethodEnum = _ref5.promoMethodEnum,
514
- discountPct = _ref5.discountPct,
515
- promoId = _ref5.promoId,
516
- id = _ref5.id;
517
-
518
- _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);
521
+ var _ref6 = djq || {},
522
+ displayText = _ref6.displayText,
523
+ promoRuleId = _ref6.promoRuleId,
524
+ dateMount = _ref6.dateMount,
525
+ promoMethodEnum = _ref6.promoMethodEnum,
526
+ discountPct = _ref6.discountPct,
527
+ promoId = _ref6.promoId,
528
+ id = _ref6.id;
529
+
530
+ _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);
519
531
  return;
520
532
  }
521
- _this5.addDjq(djq.CouponCode, djq.CouponTitle, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
533
+ _this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false);
522
534
  });
523
535
  }
524
536
  _this5.paymode.thePaymodes.push(newmode);
@@ -595,9 +607,9 @@ var SettlementStore = (_class = function () {
595
607
  }, {
596
608
  key: 'getLoginInfo',
597
609
  value: function getLoginInfo() {
598
- var _ref6 = _mutantsMicrofx.localStore.get('user') || {},
599
- _ref6$loginInfo = _ref6.loginInfo,
600
- loginInfo = _ref6$loginInfo === undefined ? {} : _ref6$loginInfo;
610
+ var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
611
+ _ref7$loginInfo = _ref7.loginInfo,
612
+ loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
601
613
 
602
614
  return loginInfo;
603
615
  }
@@ -616,8 +628,8 @@ var SettlementStore = (_class = function () {
616
628
  var IdStore = this.storeInfo.storeID;
617
629
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
618
630
 
619
- var _ref7 = _mutantsUtil.platform || {},
620
- isNewRetailBCPos = _ref7.isNewRetailBCPos;
631
+ var _ref8 = _mutantsUtil.platform || {},
632
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
621
633
 
622
634
  var address = '';
623
635
  if (isNewRetailBCPos) {
@@ -627,8 +639,8 @@ var SettlementStore = (_class = function () {
627
639
  var data = result.data;
628
640
  var m = data;
629
641
 
630
- var _ref8 = _mutantsUtil.platform || {},
631
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
642
+ var _ref9 = _mutantsUtil.platform || {},
643
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
632
644
 
633
645
  if (isNewRetailBCPos) {
634
646
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -670,8 +682,8 @@ var SettlementStore = (_class = function () {
670
682
  var data = JSON.parse(result.Data);
671
683
  var m = data && data.length > 0 && data[0];
672
684
 
673
- var _ref9 = _mutantsUtil.platform || {},
674
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
685
+ var _ref10 = _mutantsUtil.platform || {},
686
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
675
687
 
676
688
  if (isNewRetailBCPos) {
677
689
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -711,10 +723,12 @@ var SettlementStore = (_class = function () {
711
723
  }
712
724
  }, {
713
725
  key: 'addDjq',
714
- value: function addDjq(code, name, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, id, unCheck) {
726
+ value: function addDjq(promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id, unCheck, count) {
715
727
  var djq = {
716
- code: code,
728
+ code: promoCouponCode,
729
+ promoCouponCode: promoCouponCode,
717
730
  name: name,
731
+ IsEnable: IsEnable,
718
732
  amount: amount,
719
733
  doorsill: doorsill, //:"无门槛"
720
734
  LastTS: LastTS,
@@ -727,9 +741,12 @@ var SettlementStore = (_class = function () {
727
741
  discountPct: discountPct,
728
742
  promoId: promoId,
729
743
  promoRuleId: promoRuleId,
730
- id: id
744
+ couponCategoryEnum: couponCategoryEnum,
745
+ id: id,
746
+ count: count === 1 && (couponCategoryEnum === 'RIGUP' || couponCategoryEnum === 'UN_MATCH' || couponCategoryEnum === "PREPARING" || couponCategoryEnum === 'PROMO_LIMITED' || couponCategoryEnum === 'COUPON_CONFLICT') ? 1 : null
731
747
  };
732
748
  this.paymode.currentMode.djqs.push(djq);
749
+ // let copyData = _clonedeep(this.data[targetIndex]);
733
750
  !unCheck && !this.boriginReturn && this.paymode.calcDjqValue(djq);
734
751
  }
735
752
  }, {
@@ -957,7 +974,7 @@ var SettlementStore = (_class = function () {
957
974
  }, {
958
975
  key: 'commit',
959
976
  value: function () {
960
- var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
977
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
961
978
  return _regenerator2.default.wrap(function _callee2$(_context2) {
962
979
  while (1) {
963
980
  switch (_context2.prev = _context2.next) {
@@ -1012,11 +1029,17 @@ var SettlementStore = (_class = function () {
1012
1029
  }));
1013
1030
 
1014
1031
  function commit(_x2) {
1015
- return _ref10.apply(this, arguments);
1032
+ return _ref11.apply(this, arguments);
1016
1033
  }
1017
1034
 
1018
1035
  return commit;
1019
1036
  }()
1037
+ }, {
1038
+ key: 'handlePrint',
1039
+ value: function handlePrint(resp) {
1040
+ // 储值打印
1041
+ return (0, _tplusComponentsTouch.printDispatch)(_tplusComponentsTouch.DoNameList.DO_STORAGE_PRINT, resp.ID, {});
1042
+ }
1020
1043
  }, {
1021
1044
  key: 'saveMember',
1022
1045
  value: function saveMember() {
@@ -1058,80 +1081,16 @@ var SettlementStore = (_class = function () {
1058
1081
  IPMSG = JSON.parse(window.localStorage.IPMSG);
1059
1082
  }
1060
1083
  return (0, _tplusApi.tApi)({ dto: this.dto }, 'chanjet.ME.INewRetailMemberStorage.Save', false, false).then(function (resp) {
1061
- var _ref11 = _mutantsUtil.platform || {},
1062
- isHorizontalPad = _ref11.isHorizontalPad,
1063
- isHorizontalSunMi = _ref11.isHorizontalSunMi;
1064
-
1065
- if (isHorizontalPad === true) {
1066
- // pad打印
1067
- //执行移动端云打印
1068
- if (_this10.cloudPrintArguments) {
1069
- var _ref12 = _this10.cloudPrintArguments || {},
1070
- Open = _ref12.Open,
1071
- Key = _ref12.Key,
1072
- Sign = _ref12.Sign,
1073
- Name = _ref12.Name,
1074
- Card = _ref12.Card;
1075
-
1076
- if (!Open) {
1077
- _message2.default.warn(t('云打印未启用,请设置。'));
1078
- return;
1079
- }
1080
- _this10.printUtil.doStoragePrint({ Key: Key, Sign: Sign, Name: Name, Card: Card }, resp.ID, function (s) {
1081
- var msg = s.msg,
1082
- ret = s.ret;
1083
-
1084
- if (ret === 0) {
1085
- _message2.default.success(t('打印储值小票成功。'));
1086
- } else if (ret === -1) {
1087
- _message2.default.error(t(msg));
1088
- } else {
1089
- _message2.default.error(t('打印储值小票失败。'));
1090
- }
1091
- });
1092
- } else {
1093
- _message2.default.warn(t('云打印未启用,请设置。'));
1094
- }
1095
- return;
1096
- } else if (isHorizontalSunMi === true) {
1097
- _this10.printUtil.doStoragePrint({}, resp.ID, function (s) {
1098
- var msg = s.msg,
1099
- ret = s.ret;
1100
-
1101
- if (ret === 0) {
1102
- _message2.default.success(t('打印储值小票成功。'));
1103
- } else if (ret === -1) {
1104
- _message2.default.error(t(msg));
1105
- } else {
1106
- _message2.default.error(t('打印储值小票失败。'));
1107
- }
1108
- });
1109
- return;
1110
- } else {
1111
- if (global.StoragePrintProcessBlock) {
1112
- var _ref13 = _mutantsUtil.platform || {},
1113
- isNewRetailBCPos = _ref13.isNewRetailBCPos;
1114
-
1115
- if (isNewRetailBCPos) {
1116
- global.StoragePrintProcessBlock.execute(resp);
1117
- } else {
1118
- global.StoragePrintProcessBlock.execute(resp.ID);
1119
- }
1120
- return;
1121
- } else {
1122
- _message2.default.warn(t('打印小票只能在客户端中执行'));
1123
- return;
1124
- }
1125
- }
1084
+ _this10.handlePrint(resp);
1126
1085
  });
1127
1086
  }
1128
1087
  }, {
1129
1088
  key: 'save',
1130
1089
  value: function () {
1131
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1090
+ var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1132
1091
  var _this11 = this;
1133
1092
 
1134
- var _enumController$getEn13, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1093
+ var _enumController$getEn13, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1135
1094
 
1136
1095
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1137
1096
  while (1) {
@@ -1213,8 +1172,8 @@ var SettlementStore = (_class = function () {
1213
1172
  }
1214
1173
  });
1215
1174
 
1216
- var _ref15 = _mutantsUtil.platform || {},
1217
- isNewRetailBCPos = _ref15.isNewRetailBCPos;
1175
+ var _ref13 = _mutantsUtil.platform || {},
1176
+ isNewRetailBCPos = _ref13.isNewRetailBCPos;
1218
1177
 
1219
1178
  if (_this11.dto.RetailStorageDetails.length > 0) {
1220
1179
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1248,7 +1207,7 @@ var SettlementStore = (_class = function () {
1248
1207
  _this11.dto.Idmember = Idmember;
1249
1208
  }
1250
1209
  });
1251
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1210
+ _ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
1252
1211
 
1253
1212
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1254
1213
 
@@ -1317,7 +1276,7 @@ var SettlementStore = (_class = function () {
1317
1276
  }));
1318
1277
 
1319
1278
  function save() {
1320
- return _ref14.apply(this, arguments);
1279
+ return _ref12.apply(this, arguments);
1321
1280
  }
1322
1281
 
1323
1282
  return save;
@@ -1330,7 +1289,7 @@ var SettlementStore = (_class = function () {
1330
1289
  }, {
1331
1290
  key: 'querySettleResult',
1332
1291
  value: function () {
1333
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1292
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1334
1293
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1335
1294
  while (1) {
1336
1295
  switch (_context4.prev = _context4.next) {
@@ -1358,7 +1317,7 @@ var SettlementStore = (_class = function () {
1358
1317
  }));
1359
1318
 
1360
1319
  function querySettleResult() {
1361
- return _ref17.apply(this, arguments);
1320
+ return _ref15.apply(this, arguments);
1362
1321
  }
1363
1322
 
1364
1323
  return querySettleResult;
@@ -1384,14 +1343,14 @@ var SettlementStore = (_class = function () {
1384
1343
  }, {
1385
1344
  key: 'validePwd',
1386
1345
  value: function () {
1387
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1388
- var _ref19, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1346
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1347
+ var _ref17, isNewRetailBCPos, cook1, cook2, message, result, count, _result;
1389
1348
 
1390
1349
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1391
1350
  while (1) {
1392
1351
  switch (_context5.prev = _context5.next) {
1393
1352
  case 0:
1394
- _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1353
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
1395
1354
  _context5.prev = 1;
1396
1355
 
1397
1356
  if (!isNewRetailBCPos) {
@@ -1475,7 +1434,7 @@ var SettlementStore = (_class = function () {
1475
1434
  }));
1476
1435
 
1477
1436
  function validePwd(_x3) {
1478
- return _ref18.apply(this, arguments);
1437
+ return _ref16.apply(this, arguments);
1479
1438
  }
1480
1439
 
1481
1440
  return validePwd;
@@ -1514,7 +1473,7 @@ var SettlementStore = (_class = function () {
1514
1473
  var _this13 = this;
1515
1474
 
1516
1475
  return function () {
1517
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1476
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1518
1477
  var _getLoginInfo, IdStore, StoreCode, resp;
1519
1478
 
1520
1479
  return _regenerator2.default.wrap(function _callee6$(_context6) {
@@ -1541,13 +1500,14 @@ var SettlementStore = (_class = function () {
1541
1500
  }));
1542
1501
 
1543
1502
  return function (_x4) {
1544
- return _ref20.apply(this, arguments);
1503
+ return _ref18.apply(this, arguments);
1545
1504
  };
1546
1505
  }();
1547
1506
  }
1548
1507
  }), _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);
1549
1508
  exports.default = SettlementStore;
1550
1509
  var PayMode = exports.PayMode = (_class3 = function () {
1510
+ //应收
1551
1511
  function PayMode() {
1552
1512
  // this.amount=getFixedNumber(amount);
1553
1513
  // this.calcReserved();
@@ -1569,11 +1529,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
1569
1529
  _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1570
1530
 
1571
1531
  this.currentMode = null;
1532
+ this.checkList = [];
1572
1533
  this.settle = {
1573
1534
  name: "复合结算",
1574
1535
  hotKey: "Ctrl+M"
1575
1536
  };
1576
- } //应收
1537
+
1538
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1539
+
1540
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1541
+
1542
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1543
+ }
1544
+ // @observable store = null;
1577
1545
 
1578
1546
 
1579
1547
  (0, _createClass3.default)(PayMode, [{
@@ -1608,14 +1576,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1608
1576
  this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
1609
1577
  }
1610
1578
  }, {
1611
- key: 'calcDjqValue',
1612
- value: function calcDjqValue(q1) {
1579
+ key: 'calcDjqCheckValue',
1580
+ value: function calcDjqCheckValue(q1, dto) {
1613
1581
  var _this14 = this;
1614
1582
 
1615
- var _ref21 = _mutantsUtil.platform || {},
1616
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1583
+ var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1584
+ var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
1585
+ return djq.checked;
1586
+ });
1587
+ if (qList.length === useLimitPerOrder && !q1.checked) {
1588
+ _message2.default.warn('本单最多可用' + useLimitPerOrder + '张');
1589
+ return;
1590
+ }
1591
+
1592
+ var _ref19 = _mutantsUtil.platform || {},
1593
+ isNewRetailBCPos = _ref19.isNewRetailBCPos;
1617
1594
 
1618
1595
  var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1596
+ PayStyle = _enumController$getEn14.PayStyle,
1619
1597
  Differentiate = _enumController$getEn14.Differentiate;
1620
1598
 
1621
1599
  if (q1) {
@@ -1624,22 +1602,185 @@ var PayMode = exports.PayMode = (_class3 = function () {
1624
1602
  return;
1625
1603
  }
1626
1604
  var q = (0, _find3.default)(this.currentMode.djqs, function (djq) {
1627
- return djq.code == q1.code;
1605
+ return djq.promoCouponCode == q1.promoCouponCode;
1628
1606
  });
1629
1607
  if (q && !q.checked && parseFloat(this.amount) < parseFloat(q.doorsill)) {
1630
1608
  _message2.default.error("本单金额低于使用门槛,该券不可使用。");
1631
1609
  return;
1632
1610
  }
1633
1611
  //判断是否是选择优惠券 //CC优惠券只能使用一个
1634
- if (q1 && !q1.checked && isNewRetailBCPos) {
1635
- // 检查是否有已经选定优惠券 并且去除选定的优惠券
1636
- this.currentMode.djqs.forEach(function (djq, index) {
1637
- if (djq.checked) _this14.currentMode.djqs[index].checked = false;
1612
+ // if (q1 && !q1.checked && isNewRetailBCPos) {
1613
+ // // 检查是否有已经选定优惠券 并且去除选定的优惠券
1614
+ // this.currentMode.djqs.forEach((djq, index) => {
1615
+ // if (djq.checked) this.currentMode.djqs[index].checked = false;
1616
+ // })
1617
+ // }
1618
+ q && (q.checked = !q.checked);
1619
+ }
1620
+ var sum = 0;
1621
+ // console.log(this.store, 'stores-------');
1622
+ if (!q1.checked) {
1623
+ this.checkList.forEach(function (ele, i) {
1624
+ if (ele.id === q1.id) {
1625
+ _this14.checkList.splice(i, 1);
1626
+ }
1627
+ });
1628
+ } else {
1629
+ if (q1.discountPct > 0) {
1630
+ q1.amount = 0;
1631
+ }
1632
+ this.checkList.push(q1);
1633
+ }
1634
+ this.checkList.forEach(function (ele, i) {
1635
+ if (ele.discountPct > 0) {
1636
+ if (ele.amount === 0) {
1637
+ console.log(ele.amount, _this14.currentMode.receivable, 'amount2222222222');
1638
+ ele.amount = (1 - ele.discountPct) * _this14.currentMode.receivable;
1639
+ console.log(ele.amount, _this14.currentMode.receivable, 'amount1111111111');
1640
+ }
1641
+ }
1642
+ sum = Math.Add(sum, ele.amount);
1643
+ });
1644
+ this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1645
+ this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1646
+ this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1647
+ var promoVoucher = {};
1648
+ promoVoucher.boName = "Retail";
1649
+ // promoVoucher.promoLinks = _filter(this.currentMode.djqs,djq=>djq.checked);
1650
+ promoVoucher.meMemberId = this.currentMode.member.id;
1651
+ promoVoucher.storeFactorId = (0, _tplusPoslogin.PosInitData)('storeID');
1652
+ promoVoucher.voucherDetailList = [];
1653
+ dto.RetailDetails.forEach(function (item) {
1654
+ var detailDTO = {};
1655
+ detailDTO.uuid = item.Code;
1656
+ detailDTO.detailBoName = "RetailDetail";
1657
+ detailDTO.voucherDetailId = item.ID;
1658
+ detailDTO.productId = item.Idinventory;
1659
+ detailDTO.uomId = item.Idunit;
1660
+ detailDTO.productSpecId = item.ProductSpecId;
1661
+ detailDTO.isManualFreeGift = item.IsPresent;
1662
+ detailDTO.isListPriceIncludingTax = item.TaxFlag || true;
1663
+ detailDTO.IsManualChangePrice = item.IsManualChangePrice;
1664
+ if (detailDTO.IsManualChangePrice) //如果是手工改价
1665
+ {
1666
+ detailDTO.listPrice = item.TaxPrice;
1667
+ detailDTO.netAmountWithTax = item.TaxAmount;
1668
+ } else {
1669
+ var bookingQuantity = 0;
1670
+ if (item.BookingQuantity) {
1671
+ bookingQuantity = item.BookingQuantity;
1672
+ }
1673
+ detailDTO.listPrice = item.MemberPrice;
1674
+ detailDTO.netAmountWithTax = Math.Multiply(item.MemberPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1675
+ }
1676
+ detailDTO.taxRate = item.TaxRate;
1677
+ detailDTO.quantity = item.Quantity;
1678
+
1679
+ detailDTO.amountWithTax = item.RetailAmount;
1680
+ // 促销 start
1681
+ if (item.PromotionDetails && item.PromotionDetails.length != 0) {
1682
+ var promoLinks = [];
1683
+ item.PromotionDetails.forEach(function (promotion) {
1684
+ promoLinks.push({
1685
+ promoId: promotion.IdSalesPromotionDTO,
1686
+ promoRuleId: promotion.PromotionRuleId
1687
+ });
1688
+ });
1689
+ if (promoLinks.length != 0) detailDTO.promoLinks = promoLinks;
1690
+ }
1691
+ // 促销 end
1692
+ promoVoucher.voucherDetailList.push(detailDTO);
1693
+ });
1694
+ promoVoucher.promoLinks = this.checkList;
1695
+ return (0, _tplusApi.ccApi)((0, _extends3.default)({}, promoVoucher), 'promotion/PromoCalculate/findUsefulCouponPromoList', false, false, { method: 'post', timeout_skip: true }).then(function (result) {
1696
+ if (result && result.length != 0) {
1697
+ result.forEach(function (element) {
1698
+ var djq1 = (0, _filter3.default)(_this14.currentMode.djqs, function (djq) {
1699
+ return djq.id === element.id;
1700
+ });
1701
+
1702
+ var _ref20 = element || {},
1703
+ couponCode = _ref20.couponCode,
1704
+ name = _ref20.name,
1705
+ tieredAmountResult = _ref20.tieredAmountResult,
1706
+ fromDate = _ref20.fromDate,
1707
+ dateMount = _ref20.dateMount,
1708
+ promoMethodEnum = _ref20.promoMethodEnum,
1709
+ discountPct = _ref20.discountPct,
1710
+ nominalAmount = _ref20.nominalAmount,
1711
+ promoId = _ref20.promoId,
1712
+ id = _ref20.id,
1713
+ doorsill = _ref20.doorsill;
1714
+
1715
+ var condValue = tieredAmountResult.condValue,
1716
+ promoDiscount = tieredAmountResult.promoDiscount,
1717
+ displayText = tieredAmountResult.displayText,
1718
+ promoRuleId = tieredAmountResult.promoRuleId,
1719
+ couponCategoryEnum = tieredAmountResult.couponCategoryEnum;
1720
+
1721
+ if (!djq1.length) {
1722
+ // this.currentMode.djqs.push({
1723
+ // promoCouponCode: element.CouponCode,
1724
+ // name: element.CouponTitle,
1725
+ // IsEnable: true,
1726
+ // amount: element.ReductionAmount,
1727
+ // doorsill: element.EnableAmount,
1728
+ // LastTS: element.LastTS,
1729
+ // checked: false,
1730
+ // IsRepelWithPoints: true,
1731
+ // UMemberID: dto.Idmember,
1732
+ // expired: null,
1733
+ // displayText,
1734
+ // promoMethodEnum,
1735
+ // discountPct,
1736
+ // promoId,
1737
+ // promoRuleId,
1738
+ // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1739
+ // id
1740
+ // })
1741
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1742
+ } else {
1743
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum);
1744
+ // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1745
+ // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1746
+ }
1638
1747
  });
1639
1748
  }
1749
+ });
1750
+ //this.receivable = getFixedNumber(this.receivable - sum);
1751
+ }
1752
+ }, {
1753
+ key: 'calcDjqValue',
1754
+ value: function calcDjqValue(q1) {
1755
+ var _ref21 = _mutantsUtil.platform || {},
1756
+ isNewRetailBCPos = _ref21.isNewRetailBCPos;
1757
+
1758
+ var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1759
+ Differentiate = _enumController$getEn15.Differentiate;
1760
+
1761
+ if (q1) {
1762
+ if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
1763
+ _message2.default.error('\u672C\u5355\u6CA1\u6709' + Differentiate.COUPON + '\u53EF\u7528\u91D1\u989D\uFF0C\u8BE5\u5238\u4E0D\u53EF\u4F7F\u7528\u3002');
1764
+ return;
1765
+ }
1766
+ var q = (0, _find3.default)(this.currentMode.djqs, function (djq) {
1767
+ return djq.code == q1.code;
1768
+ });
1769
+ if (q && !q.checked && parseFloat(this.amount) < parseFloat(q.doorsill)) {
1770
+ _message2.default.error("本单金额低于使用门槛,该券不可使用。");
1771
+ return;
1772
+ }
1773
+ //判断是否是选择优惠券 //CC优惠券只能使用一个
1774
+ // if (q1 && !q1.checked && isNewRetailBCPos) {
1775
+ // // 检查是否有已经选定优惠券 并且去除选定的优惠券
1776
+ // this.currentMode.djqs.forEach((djq, index) => {
1777
+ // if (djq.checked) this.currentMode.djqs[index].checked = false;
1778
+ // })
1779
+ // }
1640
1780
  q && (q.checked = !q.checked);
1641
1781
  }
1642
1782
  var sum = 0;
1783
+ // console.log(this.store, 'stores-------');
1643
1784
  (0, _each3.default)((0, _filter3.default)(this.currentMode.djqs, function (djq) {
1644
1785
  return djq.checked;
1645
1786
  }), function (q) {
@@ -1648,6 +1789,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1648
1789
  this.currentMode.value = (0, _utils.getFixedNumber)(Math.min(this.receivable, sum, this.currentMode.maxamount));
1649
1790
  this.currentMode.receivable = (0, _utils.getFixedNumber)(this.receivable - this.currentMode.value);
1650
1791
  this.currentMode.overchargesAmount = (0, _utils.getFixedNumber)(sum - this.currentMode.value);
1792
+
1651
1793
  //this.receivable = getFixedNumber(this.receivable - sum);
1652
1794
  }
1653
1795
  }, {
@@ -1693,13 +1835,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1693
1835
  var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1694
1836
  var _this15 = this;
1695
1837
 
1696
- var _enumController$getEn15, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1838
+ var _enumController$getEn16, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1697
1839
 
1698
1840
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1699
1841
  while (1) {
1700
1842
  switch (_context7.prev = _context7.next) {
1701
1843
  case 0:
1702
- _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn15.settleStyleType, PayStyle = _enumController$getEn15.PayStyle;
1844
+ _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn16.settleStyleType, PayStyle = _enumController$getEn16.PayStyle;
1703
1845
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1704
1846
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1705
1847
  _context7.next = 5;
@@ -1786,22 +1928,74 @@ var PayMode = exports.PayMode = (_class3 = function () {
1786
1928
  initializer: function initializer() {
1787
1929
  return [];
1788
1930
  }
1789
- }), _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);
1931
+ }), _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], {
1932
+ enumerable: true,
1933
+ initializer: function initializer() {
1934
+ var _this16 = this;
1935
+
1936
+ return function () {
1937
+ _this16.checkList = [];
1938
+ };
1939
+ }
1940
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1941
+ enumerable: true,
1942
+ initializer: function initializer() {
1943
+ var _this17 = this;
1944
+
1945
+ return function (id, couponNum, code) {
1946
+ _this17.currentMode.djqs.forEach(function (ele) {
1947
+ if (ele.id === id) {
1948
+ ele.couponCategoryEnum = couponNum;
1949
+ var IsEnable = ele.couponCategoryEnum === 'RIGUP' || ele.couponCategoryEnum === 'UN_MATCH' || ele.couponCategoryEnum === "PREPARING" || ele.couponCategoryEnum === 'PROMO_LIMITED' || ele.couponCategoryEnum === 'COUPON_CONFLICT' ? false : true;
1950
+ ele.IsEnable = IsEnable;
1951
+ }
1952
+ });
1953
+ };
1954
+ }
1955
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
1956
+ enumerable: true,
1957
+ initializer: function initializer() {
1958
+ var _this18 = this;
1959
+
1960
+ return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
1961
+ var djq = {
1962
+ promoCouponCode: promoCouponCode,
1963
+ name: name,
1964
+ IsEnable: IsEnable,
1965
+ amount: amount,
1966
+ doorsill: doorsill,
1967
+ LastTS: LastTS,
1968
+ checked: checked,
1969
+ IsRepelWithPoints: IsRepelWithPoints,
1970
+ UMemberID: UMemberID,
1971
+ expired: expired,
1972
+ displayText: displayText,
1973
+ promoMethodEnum: promoMethodEnum,
1974
+ discountPct: discountPct,
1975
+ promoId: promoId,
1976
+ promoRuleId: promoRuleId,
1977
+ couponCategoryEnum: couponCategoryEnum,
1978
+ id: id
1979
+ };
1980
+ _this18.currentMode.djqs.push(djq);
1981
+ };
1982
+ }
1983
+ }), _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);
1790
1984
  var Member = exports.Member = (_class5 = function () {
1791
1985
  function Member(m) {
1792
- var _this16 = this;
1986
+ var _this19 = this;
1793
1987
 
1794
1988
  (0, _classCallCheck3.default)(this, Member);
1795
1989
 
1796
- _initDefineProp(this, 'cardNo', _descriptor8, this);
1990
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
1797
1991
 
1798
- _initDefineProp(this, 'balance', _descriptor9, this);
1992
+ _initDefineProp(this, 'balance', _descriptor12, this);
1799
1993
 
1800
- _initDefineProp(this, 'exchangable', _descriptor10, this);
1994
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
1801
1995
 
1802
- _initDefineProp(this, 'MeStorageCardId', _descriptor11, this);
1996
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
1803
1997
 
1804
- _initDefineProp(this, 'StorageCardNo', _descriptor12, this);
1998
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
1805
1999
 
1806
2000
  if (m) {
1807
2001
  this.id = m.ID;
@@ -1818,11 +2012,11 @@ var Member = exports.Member = (_class5 = function () {
1818
2012
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
1819
2013
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
1820
2014
  (0, _mobx.runInAction)(function () {
1821
- _this16.cardNo = m.CardCode;
2015
+ _this19.cardNo = m.CardCode;
1822
2016
  if (index >= 0) {
1823
- _this16.balance = parseFloat(m.DynamicPropertyValues[index]);
2017
+ _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
1824
2018
  } else {
1825
- _this16.balance = _this16.rawbalance;
2019
+ _this19.balance = _this19.rawbalance;
1826
2020
  }
1827
2021
  });
1828
2022
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -1854,19 +2048,19 @@ var Member = exports.Member = (_class5 = function () {
1854
2048
  }
1855
2049
  }]);
1856
2050
  return Member;
1857
- }(), (_descriptor8 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2051
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
1858
2052
  enumerable: true,
1859
2053
  initializer: null
1860
- }), _descriptor9 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2054
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
1861
2055
  enumerable: true,
1862
2056
  initializer: null
1863
- }), _descriptor10 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2057
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
1864
2058
  enumerable: true,
1865
2059
  initializer: null
1866
- }), _descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2060
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
1867
2061
  enumerable: true,
1868
2062
  initializer: null
1869
- }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2063
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
1870
2064
  enumerable: true,
1871
2065
  initializer: null
1872
2066
  }), _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);