tplus-components-touch 3.27.1 → 3.28.1

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 (34) hide show
  1. package/dist/components/billSearch/api.js +13 -74
  2. package/dist/components/billSearch/api.js.map +1 -1
  3. package/dist/components/billSearch/index.js +141 -3
  4. package/dist/components/billSearch/index.js.map +1 -1
  5. package/dist/components/billSearch/index.less +6 -3
  6. package/dist/components/cloudPrint/api.js +85 -43
  7. package/dist/components/cloudPrint/api.js.map +1 -1
  8. package/dist/components/cloudPrint/printDispatch.js +209 -108
  9. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  10. package/dist/components/hotKey/localConfig.js +0 -52
  11. package/dist/components/hotKey/localConfig.js.map +1 -1
  12. package/dist/components/inventorySearch/tab.js +80 -63
  13. package/dist/components/inventorySearch/tab.js.map +1 -1
  14. package/dist/components/settlement/settlement.js +69 -208
  15. package/dist/components/settlement/settlement.js.map +1 -1
  16. package/dist/components/settlement/settlementStore.js +154 -193
  17. package/dist/components/settlement/settlementStore.js.map +1 -1
  18. package/dist/components/ticon/iconfont/demo.css +539 -539
  19. package/dist/components/ticon/iconfont/demo_index.html +3 -26
  20. package/dist/components/ticon/iconfont/iconfont.css +3 -7
  21. package/dist/components/ticon/iconfont/iconfont.js +1 -1
  22. package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
  23. package/dist/components/ticon/iconfont/iconfont.json +0 -7
  24. package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
  25. package/dist/components/ticon/iconfont/iconfont.woff +0 -0
  26. package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
  27. package/dist/components/touchTable/index.js +0 -4
  28. package/dist/components/touchTable/index.js.map +1 -1
  29. package/dist/index.js +16 -9
  30. package/dist/index.js.map +1 -1
  31. package/package.json +2 -2
  32. package/dist/components/presale/pickup.js +0 -419
  33. package/dist/components/presale/pickup.js.map +0 -1
  34. package/dist/components/presale/style.less +0 -48
@@ -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, _descriptor3, _desc2, _value2, _class3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _desc3, _value3, _class5, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16;
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
 
@@ -161,6 +161,7 @@ function _initializerWarningHelper(descriptor, context) {
161
161
  var t = _mutantsMicrofx.i18n.getFixedT(null, 'newretail');
162
162
 
163
163
  var SettlementStore = (_class = function () {
164
+ //type==2
164
165
  function SettlementStore() {
165
166
  var _this2 = this;
166
167
 
@@ -172,7 +173,6 @@ var SettlementStore = (_class = function () {
172
173
  this.bquick = false;
173
174
  this.boriginReturn = false;
174
175
  this.newStyle = true;
175
- this.freight = 0;
176
176
 
177
177
  _initDefineProp(this, 'queryPwd', _descriptor, this);
178
178
 
@@ -234,7 +234,7 @@ var SettlementStore = (_class = function () {
234
234
  }
235
235
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
236
236
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
237
- //}
237
+ //}
238
238
  detailDTO.taxRate = item.TaxRate;
239
239
  detailDTO.quantity = item.Quantity;
240
240
 
@@ -307,20 +307,6 @@ var SettlementStore = (_class = function () {
307
307
  return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
308
308
  };
309
309
 
310
- this.getRefWareHouseList = function () {
311
- return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
312
- };
313
-
314
- this.getPerformanceDistributionValue = function (data) {
315
- return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPerformanceDistributionValue', false, false);
316
- };
317
-
318
- this.getPosFreight = function (data) {
319
- return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPosFreight', false, false);
320
- };
321
-
322
- _initDefineProp(this, 'updataFreight', _descriptor3, this);
323
-
324
310
  this.checkCoupon = function () {
325
311
  var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
326
312
  var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
@@ -428,8 +414,7 @@ var SettlementStore = (_class = function () {
428
414
  var params = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('cloudPrintArguments');
429
415
  if (params) this.cloudPrintArguments = params;
430
416
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
431
- } //type==2
432
-
417
+ }
433
418
 
434
419
  (0, _createClass3.default)(SettlementStore, [{
435
420
  key: 'initPaymodes',
@@ -440,7 +425,7 @@ var SettlementStore = (_class = function () {
440
425
  }
441
426
  }, {
442
427
  key: 'init',
443
- value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
428
+ value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
444
429
  var _this3 = this;
445
430
 
446
431
  this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
@@ -456,36 +441,20 @@ var SettlementStore = (_class = function () {
456
441
  if (global.DealSingleRowAmountSettingProcessorBlock) {
457
442
  global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
458
443
  }
444
+
445
+ var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
446
+ PayStyle = _enumController$getEn4.PayStyle;
447
+
448
+ var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
449
+
459
450
  // 成交金额抹零
460
451
  if (global.DealAmountSettingProcessorBlock) {
461
- global.DealAmountSettingProcessorBlock.execute(_this3.dto);
452
+ global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
462
453
  }
463
454
  });
464
455
  // this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
465
456
  this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
466
-
467
- //预订按比例收取订金处理
468
- var value = this.dto.TotalTaxAmount;
469
-
470
- var _getLoginInfo = this.getLoginInfo(),
471
- Book = _getLoginInfo.Book,
472
- PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
473
-
474
- var _ref5 = this.dto || {},
475
- IdbusiType = _ref5.IdbusiType,
476
- DistributionMode = _ref5.DistributionMode;
477
-
478
- if (IdbusiType == 38 && Book && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
479
- value = value * PercentageWhenBook / 100;
480
- }
481
- if (IdbusiType == 38 && Book && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
482
- value += this.freight;
483
- }
484
- if (IdbusiType == 39) {
485
- value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
486
- }
487
-
488
- this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
457
+ this.brefund = this.paymode.setAmount(this.dto.TotalTaxAmount, this.dto.OnlinePaymentAmount);
489
458
  } else {
490
459
  this.brefund = this.paymode.setAmount(amount, 0);
491
460
  this.dto = data;
@@ -530,11 +499,11 @@ var SettlementStore = (_class = function () {
530
499
  value: function initByOriginReturn() {
531
500
  var _this5 = this;
532
501
 
533
- var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
534
- PayStyle = _enumController$getEn4.PayStyle;
502
+ var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
503
+ PayStyle = _enumController$getEn5.PayStyle;
535
504
 
536
- var _ref6 = _mutantsUtil.platform || {},
537
- isNewRetailBCPos = _ref6.isNewRetailBCPos;
505
+ var _ref5 = _mutantsUtil.platform || {},
506
+ isNewRetailBCPos = _ref5.isNewRetailBCPos;
538
507
 
539
508
  console.log(this.dto, 'dto==========');
540
509
  this.paymode.checkList = [];
@@ -559,14 +528,14 @@ var SettlementStore = (_class = function () {
559
528
  if (themode.paymentType == PayStyle.djq) {
560
529
  (0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
561
530
  if (isNewRetailBCPos) {
562
- var _ref7 = djq || {},
563
- displayText = _ref7.displayText,
564
- promoRuleId = _ref7.promoRuleId,
565
- dateMount = _ref7.dateMount,
566
- promoMethodEnum = _ref7.promoMethodEnum,
567
- discountPct = _ref7.discountPct,
568
- promoId = _ref7.promoId,
569
- id = _ref7.id;
531
+ var _ref6 = djq || {},
532
+ displayText = _ref6.displayText,
533
+ promoRuleId = _ref6.promoRuleId,
534
+ dateMount = _ref6.dateMount,
535
+ promoMethodEnum = _ref6.promoMethodEnum,
536
+ discountPct = _ref6.discountPct,
537
+ promoId = _ref6.promoId,
538
+ id = _ref6.id;
570
539
 
571
540
  _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);
572
541
  return;
@@ -599,7 +568,7 @@ var SettlementStore = (_class = function () {
599
568
  }, {
600
569
  key: 'quickSettle',
601
570
  value: function quickSettle(key) {
602
- this.addPay(key);
571
+ this.addPay(key, true);
603
572
  }
604
573
 
605
574
  //outer call
@@ -610,8 +579,8 @@ var SettlementStore = (_class = function () {
610
579
  value: function changeFocusAndAddPay(type) {
611
580
  var _this6 = this;
612
581
 
613
- var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
614
- PayStyle = _enumController$getEn5.PayStyle;
582
+ var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
583
+ PayStyle = _enumController$getEn6.PayStyle;
615
584
 
616
585
  this.paymode.currentFocus = type;
617
586
  if (this.paymode.currentMode) {
@@ -648,9 +617,9 @@ var SettlementStore = (_class = function () {
648
617
  }, {
649
618
  key: 'getLoginInfo',
650
619
  value: function getLoginInfo() {
651
- var _ref8 = _mutantsMicrofx.localStore.get('user') || {},
652
- _ref8$loginInfo = _ref8.loginInfo,
653
- loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
620
+ var _ref7 = _mutantsMicrofx.localStore.get('user') || {},
621
+ _ref7$loginInfo = _ref7.loginInfo,
622
+ loginInfo = _ref7$loginInfo === undefined ? {} : _ref7$loginInfo;
654
623
 
655
624
  return loginInfo;
656
625
  }
@@ -669,8 +638,8 @@ var SettlementStore = (_class = function () {
669
638
  var IdStore = this.storeInfo.storeID;
670
639
  var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
671
640
 
672
- var _ref9 = _mutantsUtil.platform || {},
673
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
641
+ var _ref8 = _mutantsUtil.platform || {},
642
+ isNewRetailBCPos = _ref8.isNewRetailBCPos;
674
643
 
675
644
  var address = '';
676
645
  if (isNewRetailBCPos) {
@@ -680,8 +649,8 @@ var SettlementStore = (_class = function () {
680
649
  var data = result.data;
681
650
  var m = data;
682
651
 
683
- var _ref10 = _mutantsUtil.platform || {},
684
- isNewRetailBCPos = _ref10.isNewRetailBCPos;
652
+ var _ref9 = _mutantsUtil.platform || {},
653
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
685
654
 
686
655
  if (isNewRetailBCPos) {
687
656
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -726,8 +695,8 @@ var SettlementStore = (_class = function () {
726
695
  var data = JSON.parse(result.Data);
727
696
  var m = data && data.length > 0 && data[0];
728
697
 
729
- var _ref11 = _mutantsUtil.platform || {},
730
- isNewRetailBCPos = _ref11.isNewRetailBCPos;
698
+ var _ref10 = _mutantsUtil.platform || {},
699
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
731
700
 
732
701
  if (isNewRetailBCPos) {
733
702
  _this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
@@ -796,8 +765,8 @@ var SettlementStore = (_class = function () {
796
765
  }, {
797
766
  key: 'setCurrentMode',
798
767
  value: function setCurrentMode(id, type, append) {
799
- var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
800
- PayStyle = _enumController$getEn6.PayStyle;
768
+ var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
769
+ PayStyle = _enumController$getEn7.PayStyle;
801
770
 
802
771
  var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
803
772
  if (mode) {
@@ -815,8 +784,8 @@ var SettlementStore = (_class = function () {
815
784
  value: function afterSetCurrentMode(type) {
816
785
  var _this8 = this;
817
786
 
818
- var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
819
- PayStyle = _enumController$getEn7.PayStyle;
787
+ var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
788
+ PayStyle = _enumController$getEn8.PayStyle;
820
789
 
821
790
  if (type == PayStyle.djq) {
822
791
  this.paymode.calcDjqValue();
@@ -851,9 +820,9 @@ var SettlementStore = (_class = function () {
851
820
  }
852
821
  }, {
853
822
  key: 'genNewMode',
854
- value: function genNewMode(type, notwithm, v) {
855
- var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
856
- PayStyle = _enumController$getEn8.PayStyle;
823
+ value: function genNewMode(type, notwithm, v, isQuick) {
824
+ var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
825
+ PayStyle = _enumController$getEn9.PayStyle;
857
826
 
858
827
  var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
859
828
  var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
@@ -862,9 +831,9 @@ var SettlementStore = (_class = function () {
862
831
  name: themode.name,
863
832
  exchangeRate: themode.exchangeRate,
864
833
  calDirection: themode.calDirection,
865
- value: value,
866
- value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
867
- value3: value,
834
+ value: !isQuick ? 0 : value,
835
+ value2: !isQuick ? 0 : (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
836
+ value3: !isQuick ? 0 : value,
868
837
  order: this.paymode.thePaymodes.length + 1,
869
838
  paymentType: type,
870
839
  djqs: [],
@@ -896,8 +865,8 @@ var SettlementStore = (_class = function () {
896
865
  value: function setMaxAmount(type, mode) {
897
866
  var _this9 = this;
898
867
 
899
- var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
900
- PayStyle = _enumController$getEn9.PayStyle;
868
+ var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
869
+ PayStyle = _enumController$getEn10.PayStyle;
901
870
 
902
871
  var sum = 0;
903
872
  if (type == PayStyle.hyczk) {
@@ -973,8 +942,8 @@ var SettlementStore = (_class = function () {
973
942
  }, {
974
943
  key: 'addPayDirectly',
975
944
  value: function addPayDirectly(pay) {
976
- var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
977
- PayStyle = _enumController$getEn10.PayStyle;
945
+ var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
946
+ PayStyle = _enumController$getEn11.PayStyle;
978
947
 
979
948
  if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
980
949
  var pos = this.paymode.thePaymodes.length;
@@ -991,9 +960,9 @@ var SettlementStore = (_class = function () {
991
960
  }
992
961
  }, {
993
962
  key: 'addPay',
994
- value: function addPay(type) {
995
- var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
996
- PayStyle = _enumController$getEn11.PayStyle;
963
+ value: function addPay(type, isQuick) {
964
+ var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
965
+ PayStyle = _enumController$getEn12.PayStyle;
997
966
 
998
967
  var pos = this.paymode.thePaymodes.length;
999
968
  if (type == PayStyle.hyczk) {
@@ -1003,14 +972,15 @@ var SettlementStore = (_class = function () {
1003
972
  pos = index == -1 ? pos : index + 1;
1004
973
  }
1005
974
  // this.paymode.thePaymodes.push(this.genNewMode(type) );
1006
- this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
975
+
976
+ this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
1007
977
  this.paymode.calcReserved();
1008
978
  }
1009
979
  }, {
1010
980
  key: 'delPay',
1011
981
  value: function delPay(index) {
1012
- var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
1013
- PayStyle = _enumController$getEn12.PayStyle;
982
+ var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
983
+ PayStyle = _enumController$getEn13.PayStyle;
1014
984
 
1015
985
  (0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
1016
986
  return mode.paymethodId === index;
@@ -1021,8 +991,8 @@ var SettlementStore = (_class = function () {
1021
991
  }, {
1022
992
  key: 'commit',
1023
993
  value: function () {
1024
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
1025
- var _ref13, isNewRetailBCPos;
994
+ var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
995
+ var _ref12, isNewRetailBCPos;
1026
996
 
1027
997
  return _regenerator2.default.wrap(function _callee2$(_context2) {
1028
998
  while (1) {
@@ -1038,7 +1008,7 @@ var SettlementStore = (_class = function () {
1038
1008
  return _context2.abrupt('return', _promise2.default.resolve(true));
1039
1009
 
1040
1010
  case 3:
1041
- _ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
1011
+ _ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
1042
1012
  _context2.prev = 4;
1043
1013
 
1044
1014
  if (!(this.type == 1)) {
@@ -1094,7 +1064,7 @@ var SettlementStore = (_class = function () {
1094
1064
  }));
1095
1065
 
1096
1066
  function commit(_x2) {
1097
- return _ref12.apply(this, arguments);
1067
+ return _ref11.apply(this, arguments);
1098
1068
  }
1099
1069
 
1100
1070
  return commit;
@@ -1110,8 +1080,8 @@ var SettlementStore = (_class = function () {
1110
1080
  value: function saveMember() {
1111
1081
  var _this10 = this;
1112
1082
 
1113
- var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1114
- PayStyle = _enumController$getEn13.PayStyle;
1083
+ var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
1084
+ PayStyle = _enumController$getEn14.PayStyle;
1115
1085
 
1116
1086
  (0, _mobx.runInAction)(function () {
1117
1087
  _this10.dto.StorageMutiSettleDetails = [];
@@ -1152,16 +1122,16 @@ var SettlementStore = (_class = function () {
1152
1122
  }, {
1153
1123
  key: 'save',
1154
1124
  value: function () {
1155
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1125
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
1156
1126
  var _this11 = this;
1157
1127
 
1158
- var _enumController$getEn14, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1128
+ var _enumController$getEn15, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
1159
1129
 
1160
1130
  return _regenerator2.default.wrap(function _callee3$(_context3) {
1161
1131
  while (1) {
1162
1132
  switch (_context3.prev = _context3.next) {
1163
1133
  case 0:
1164
- _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
1134
+ _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
1165
1135
 
1166
1136
  (0, _mobx.runInAction)(function () {
1167
1137
  _this11.dto.RetailPaymentDetails = [];
@@ -1235,8 +1205,8 @@ var SettlementStore = (_class = function () {
1235
1205
  }
1236
1206
  });
1237
1207
 
1238
- var _ref15 = _mutantsUtil.platform || {},
1239
- isNewRetailBCPos = _ref15.isNewRetailBCPos;
1208
+ var _ref14 = _mutantsUtil.platform || {},
1209
+ isNewRetailBCPos = _ref14.isNewRetailBCPos;
1240
1210
 
1241
1211
  if (_this11.dto.RetailStorageDetails.length > 0) {
1242
1212
  var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
@@ -1270,7 +1240,7 @@ var SettlementStore = (_class = function () {
1270
1240
  _this11.dto.Idmember = Idmember;
1271
1241
  }
1272
1242
  });
1273
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
1243
+ _ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
1274
1244
 
1275
1245
  console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
1276
1246
 
@@ -1340,7 +1310,7 @@ var SettlementStore = (_class = function () {
1340
1310
  }));
1341
1311
 
1342
1312
  function save() {
1343
- return _ref14.apply(this, arguments);
1313
+ return _ref13.apply(this, arguments);
1344
1314
  }
1345
1315
 
1346
1316
  return save;
@@ -1353,7 +1323,7 @@ var SettlementStore = (_class = function () {
1353
1323
  }, {
1354
1324
  key: 'querySettleResult',
1355
1325
  value: function () {
1356
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1326
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
1357
1327
  return _regenerator2.default.wrap(function _callee4$(_context4) {
1358
1328
  while (1) {
1359
1329
  switch (_context4.prev = _context4.next) {
@@ -1381,7 +1351,7 @@ var SettlementStore = (_class = function () {
1381
1351
  }));
1382
1352
 
1383
1353
  function querySettleResult() {
1384
- return _ref17.apply(this, arguments);
1354
+ return _ref16.apply(this, arguments);
1385
1355
  }
1386
1356
 
1387
1357
  return querySettleResult;
@@ -1407,14 +1377,14 @@ var SettlementStore = (_class = function () {
1407
1377
  }, {
1408
1378
  key: 'validePwd',
1409
1379
  value: function () {
1410
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1411
- var _ref19, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1380
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
1381
+ var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
1412
1382
 
1413
1383
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1414
1384
  while (1) {
1415
1385
  switch (_context5.prev = _context5.next) {
1416
1386
  case 0:
1417
- _ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
1387
+ _ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
1418
1388
  _context5.prev = 1;
1419
1389
 
1420
1390
  if (!isNewRetailBCPos) {
@@ -1499,7 +1469,7 @@ var SettlementStore = (_class = function () {
1499
1469
  }));
1500
1470
 
1501
1471
  function validePwd(_x3) {
1502
- return _ref18.apply(this, arguments);
1472
+ return _ref17.apply(this, arguments);
1503
1473
  }
1504
1474
 
1505
1475
  return validePwd;
@@ -1538,14 +1508,14 @@ var SettlementStore = (_class = function () {
1538
1508
  var _this13 = this;
1539
1509
 
1540
1510
  return function () {
1541
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1542
- var _getLoginInfo2, IdStore, StoreCode, resp;
1511
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
1512
+ var _getLoginInfo, IdStore, StoreCode, resp;
1543
1513
 
1544
1514
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1545
1515
  while (1) {
1546
1516
  switch (_context6.prev = _context6.next) {
1547
1517
  case 0:
1548
- _getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
1518
+ _getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
1549
1519
  _context6.next = 3;
1550
1520
  return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
1551
1521
 
@@ -1565,19 +1535,10 @@ var SettlementStore = (_class = function () {
1565
1535
  }));
1566
1536
 
1567
1537
  return function (_x4) {
1568
- return _ref20.apply(this, arguments);
1538
+ return _ref19.apply(this, arguments);
1569
1539
  };
1570
1540
  }();
1571
1541
  }
1572
- }), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updataFreight', [_mobx.action], {
1573
- enumerable: true,
1574
- initializer: function initializer() {
1575
- var _this14 = this;
1576
-
1577
- return function (freight) {
1578
- _this14.freight = freight;
1579
- };
1580
- }
1581
1542
  }), _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);
1582
1543
  exports.default = SettlementStore;
1583
1544
  var PayMode = exports.PayMode = (_class3 = function () {
@@ -1592,15 +1553,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
1592
1553
  this.onlineamount = 0;
1593
1554
  this.maxamount = 0;
1594
1555
 
1595
- _initDefineProp(this, 'currentFocus', _descriptor4, this);
1556
+ _initDefineProp(this, 'currentFocus', _descriptor3, this);
1596
1557
 
1597
- _initDefineProp(this, 'received', _descriptor5, this);
1558
+ _initDefineProp(this, 'received', _descriptor4, this);
1598
1559
 
1599
- _initDefineProp(this, 'receivable', _descriptor6, this);
1560
+ _initDefineProp(this, 'receivable', _descriptor5, this);
1600
1561
 
1601
- _initDefineProp(this, 'paymodes', _descriptor7, this);
1562
+ _initDefineProp(this, 'paymodes', _descriptor6, this);
1602
1563
 
1603
- _initDefineProp(this, 'thePaymodes', _descriptor8, this);
1564
+ _initDefineProp(this, 'thePaymodes', _descriptor7, this);
1604
1565
 
1605
1566
  this.currentMode = null;
1606
1567
  this.checkList = [];
@@ -1609,11 +1570,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1609
1570
  hotKey: "Ctrl+M"
1610
1571
  };
1611
1572
 
1612
- _initDefineProp(this, 'calcCheckList', _descriptor9, this);
1573
+ _initDefineProp(this, 'calcCheckList', _descriptor8, this);
1613
1574
 
1614
- _initDefineProp(this, 'setCouponNum', _descriptor10, this);
1575
+ _initDefineProp(this, 'setCouponNum', _descriptor9, this);
1615
1576
 
1616
- _initDefineProp(this, 'addDjqs', _descriptor11, this);
1577
+ _initDefineProp(this, 'addDjqs', _descriptor10, this);
1617
1578
  }
1618
1579
  // @observable store = null;
1619
1580
 
@@ -1652,7 +1613,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1652
1613
  }, {
1653
1614
  key: 'calcDjqCheckValue',
1654
1615
  value: function calcDjqCheckValue(q1, dto, params) {
1655
- var _this15 = this;
1616
+ var _this14 = this;
1656
1617
 
1657
1618
  var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
1658
1619
  var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
@@ -1666,12 +1627,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
1666
1627
  this.checkList = [];
1667
1628
  }
1668
1629
 
1669
- var _ref21 = _mutantsUtil.platform || {},
1670
- isNewRetailBCPos = _ref21.isNewRetailBCPos;
1630
+ var _ref20 = _mutantsUtil.platform || {},
1631
+ isNewRetailBCPos = _ref20.isNewRetailBCPos;
1671
1632
 
1672
- var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
1673
- PayStyle = _enumController$getEn15.PayStyle,
1674
- Differentiate = _enumController$getEn15.Differentiate;
1633
+ var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1634
+ PayStyle = _enumController$getEn16.PayStyle,
1635
+ Differentiate = _enumController$getEn16.Differentiate;
1675
1636
 
1676
1637
  if (q1) {
1677
1638
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -1699,7 +1660,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1699
1660
  if (!q1.checked) {
1700
1661
  this.checkList.forEach(function (ele, i) {
1701
1662
  if (ele.id === q1.id) {
1702
- _this15.checkList.splice(i, 1);
1663
+ _this14.checkList.splice(i, 1);
1703
1664
  }
1704
1665
  });
1705
1666
  } else {
@@ -1741,13 +1702,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
1741
1702
  // }
1742
1703
  // else
1743
1704
  // {
1744
-
1745
1705
  var bookingQuantity = 0;
1746
1706
  if (item.BookingQuantity) {
1747
1707
  bookingQuantity = item.BookingQuantity;
1748
1708
  }
1749
1709
  detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
1750
1710
  detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
1711
+ //}
1751
1712
  detailDTO.taxRate = item.TaxRate;
1752
1713
  detailDTO.quantity = item.Quantity;
1753
1714
 
@@ -1771,24 +1732,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
1771
1732
  if (result && result.length != 0) {
1772
1733
  result.forEach(function (element, index) {
1773
1734
  var djq1 = false;
1774
- _this15.currentMode.djqs.forEach(function (djq) {
1735
+ _this14.currentMode.djqs.forEach(function (djq) {
1775
1736
  if (element.id === djq.id) {
1776
1737
  djq1 = true;
1777
1738
  }
1778
1739
  });
1779
1740
 
1780
- var _ref22 = element || {},
1781
- couponCode = _ref22.couponCode,
1782
- name = _ref22.name,
1783
- tieredAmountResult = _ref22.tieredAmountResult,
1784
- fromDate = _ref22.fromDate,
1785
- dateMount = _ref22.dateMount,
1786
- promoMethodEnum = _ref22.promoMethodEnum,
1787
- discountPct = _ref22.discountPct,
1788
- nominalAmount = _ref22.nominalAmount,
1789
- promoId = _ref22.promoId,
1790
- id = _ref22.id,
1791
- doorsill = _ref22.doorsill;
1741
+ var _ref21 = element || {},
1742
+ couponCode = _ref21.couponCode,
1743
+ name = _ref21.name,
1744
+ tieredAmountResult = _ref21.tieredAmountResult,
1745
+ fromDate = _ref21.fromDate,
1746
+ dateMount = _ref21.dateMount,
1747
+ promoMethodEnum = _ref21.promoMethodEnum,
1748
+ discountPct = _ref21.discountPct,
1749
+ nominalAmount = _ref21.nominalAmount,
1750
+ promoId = _ref21.promoId,
1751
+ id = _ref21.id,
1752
+ doorsill = _ref21.doorsill;
1792
1753
 
1793
1754
  var condValue = tieredAmountResult.condValue,
1794
1755
  promoDiscount = tieredAmountResult.promoDiscount,
@@ -1816,10 +1777,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
1816
1777
  // couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
1817
1778
  // id
1818
1779
  // })
1819
- _this15.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1780
+ _this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
1820
1781
  djq1 = false;
1821
1782
  } else {
1822
- _this15.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1783
+ _this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
1823
1784
  // this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
1824
1785
  // djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
1825
1786
  }
@@ -1832,11 +1793,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
1832
1793
  }, {
1833
1794
  key: 'calcDjqValue',
1834
1795
  value: function calcDjqValue(q1) {
1835
- var _ref23 = _mutantsUtil.platform || {},
1836
- isNewRetailBCPos = _ref23.isNewRetailBCPos;
1796
+ var _ref22 = _mutantsUtil.platform || {},
1797
+ isNewRetailBCPos = _ref22.isNewRetailBCPos;
1837
1798
 
1838
- var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
1839
- Differentiate = _enumController$getEn16.Differentiate;
1799
+ var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
1800
+ Differentiate = _enumController$getEn17.Differentiate;
1840
1801
 
1841
1802
  if (q1) {
1842
1803
  if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
@@ -1898,8 +1859,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
1898
1859
  this.currentMode.errinfo = '';
1899
1860
  var sum = this.amount;
1900
1861
 
1901
- var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
1902
- PayStyle = _enumController$getEn17.PayStyle;
1862
+ var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
1863
+ PayStyle = _enumController$getEn18.PayStyle;
1903
1864
 
1904
1865
  this.thePaymodes && this.thePaymodes.forEach(function (mode) {
1905
1866
  if (mode.paymentType === PayStyle.hyczk) {
@@ -1923,16 +1884,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
1923
1884
  }, {
1924
1885
  key: 'setPaymodes',
1925
1886
  value: function () {
1926
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1927
- var _this16 = this;
1887
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
1888
+ var _this15 = this;
1928
1889
 
1929
- var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1890
+ var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
1930
1891
 
1931
1892
  return _regenerator2.default.wrap(function _callee7$(_context7) {
1932
1893
  while (1) {
1933
1894
  switch (_context7.prev = _context7.next) {
1934
1895
  case 0:
1935
- _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
1896
+ _enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
1936
1897
  memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
1937
1898
  param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
1938
1899
  _context7.next = 5;
@@ -1964,7 +1925,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1964
1925
  calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
1965
1926
  });
1966
1927
  });
1967
- _this16.paymodes = paymodes;
1928
+ _this15.paymodes = paymodes;
1968
1929
  //modes.QuickSettleStyles
1969
1930
  });
1970
1931
  }
@@ -1978,7 +1939,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
1978
1939
  }));
1979
1940
 
1980
1941
  function setPaymodes(_x5, _x6) {
1981
- return _ref24.apply(this, arguments);
1942
+ return _ref23.apply(this, arguments);
1982
1943
  }
1983
1944
 
1984
1945
  return setPaymodes;
@@ -1995,47 +1956,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
1995
1956
  }
1996
1957
  }]);
1997
1958
  return PayMode;
1998
- }(), (_descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1959
+ }(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
1999
1960
  enumerable: true,
2000
1961
  initializer: function initializer() {
2001
1962
  return "";
2002
1963
  }
2003
- }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
1964
+ }), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
2004
1965
  enumerable: true,
2005
1966
  initializer: function initializer() {
2006
1967
  return 0;
2007
1968
  }
2008
- }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
1969
+ }), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
2009
1970
  enumerable: true,
2010
1971
  initializer: function initializer() {
2011
1972
  return 0;
2012
1973
  }
2013
- }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
1974
+ }), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
2014
1975
  enumerable: true,
2015
1976
  initializer: function initializer() {
2016
1977
  return [];
2017
1978
  }
2018
- }), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
1979
+ }), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
2019
1980
  enumerable: true,
2020
1981
  initializer: function initializer() {
2021
1982
  return [];
2022
1983
  }
2023
- }), _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), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
1984
+ }), _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], {
2024
1985
  enumerable: true,
2025
1986
  initializer: function initializer() {
2026
- var _this17 = this;
1987
+ var _this16 = this;
2027
1988
 
2028
1989
  return function () {
2029
- _this17.checkList = [];
1990
+ _this16.checkList = [];
2030
1991
  };
2031
1992
  }
2032
- }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
1993
+ }), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
2033
1994
  enumerable: true,
2034
1995
  initializer: function initializer() {
2035
- var _this18 = this;
1996
+ var _this17 = this;
2036
1997
 
2037
1998
  return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
2038
- _this18.currentMode.djqs.forEach(function (ele) {
1999
+ _this17.currentMode.djqs.forEach(function (ele) {
2039
2000
  if (ele.id === id) {
2040
2001
  promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
2041
2002
  ele.couponCategoryEnum = couponNum;
@@ -2045,10 +2006,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
2045
2006
  });
2046
2007
  };
2047
2008
  }
2048
- }), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2009
+ }), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
2049
2010
  enumerable: true,
2050
2011
  initializer: function initializer() {
2051
- var _this19 = this;
2012
+ var _this18 = this;
2052
2013
 
2053
2014
  return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
2054
2015
  var djq = {
@@ -2070,25 +2031,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
2070
2031
  couponCategoryEnum: couponCategoryEnum,
2071
2032
  id: id
2072
2033
  };
2073
- _this19.currentMode.djqs.push(djq);
2034
+ _this18.currentMode.djqs.push(djq);
2074
2035
  };
2075
2036
  }
2076
2037
  }), _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);
2077
2038
  var Member = exports.Member = (_class5 = function () {
2078
2039
  function Member(m) {
2079
- var _this20 = this;
2040
+ var _this19 = this;
2080
2041
 
2081
2042
  (0, _classCallCheck3.default)(this, Member);
2082
2043
 
2083
- _initDefineProp(this, 'cardNo', _descriptor12, this);
2044
+ _initDefineProp(this, 'cardNo', _descriptor11, this);
2084
2045
 
2085
- _initDefineProp(this, 'balance', _descriptor13, this);
2046
+ _initDefineProp(this, 'balance', _descriptor12, this);
2086
2047
 
2087
- _initDefineProp(this, 'exchangable', _descriptor14, this);
2048
+ _initDefineProp(this, 'exchangable', _descriptor13, this);
2088
2049
 
2089
- _initDefineProp(this, 'MeStorageCardId', _descriptor15, this);
2050
+ _initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
2090
2051
 
2091
- _initDefineProp(this, 'StorageCardNo', _descriptor16, this);
2052
+ _initDefineProp(this, 'StorageCardNo', _descriptor15, this);
2092
2053
 
2093
2054
  if (m) {
2094
2055
  this.id = m.ID;
@@ -2099,17 +2060,17 @@ var Member = exports.Member = (_class5 = function () {
2099
2060
  return key == 'canusedbalancestorage';
2100
2061
  });
2101
2062
 
2102
- var _ref25 = _mutantsUtil.platform || {},
2103
- isNewRetailBCPos = _ref25.isNewRetailBCPos;
2063
+ var _ref24 = _mutantsUtil.platform || {},
2064
+ isNewRetailBCPos = _ref24.isNewRetailBCPos;
2104
2065
 
2105
2066
  m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
2106
2067
  m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
2107
2068
  (0, _mobx.runInAction)(function () {
2108
- _this20.cardNo = m.CardCode;
2069
+ _this19.cardNo = m.CardCode;
2109
2070
  if (index >= 0) {
2110
- _this20.balance = parseFloat(m.DynamicPropertyValues[index]);
2071
+ _this19.balance = parseFloat(m.DynamicPropertyValues[index]);
2111
2072
  } else {
2112
- _this20.balance = _this20.rawbalance;
2073
+ _this19.balance = _this19.rawbalance;
2113
2074
  }
2114
2075
  });
2115
2076
  this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
@@ -2141,19 +2102,19 @@ var Member = exports.Member = (_class5 = function () {
2141
2102
  }
2142
2103
  }]);
2143
2104
  return Member;
2144
- }(), (_descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2105
+ }(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
2145
2106
  enumerable: true,
2146
2107
  initializer: null
2147
- }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2108
+ }), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
2148
2109
  enumerable: true,
2149
2110
  initializer: null
2150
- }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2111
+ }), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
2151
2112
  enumerable: true,
2152
2113
  initializer: null
2153
- }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2114
+ }), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
2154
2115
  enumerable: true,
2155
2116
  initializer: null
2156
- }), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2117
+ }), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
2157
2118
  enumerable: true,
2158
2119
  initializer: null
2159
2120
  }), _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);