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.
- package/dist/components/billSearch/api.js +13 -74
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +141 -3
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +6 -3
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +209 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +0 -52
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +80 -63
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/settlement/settlement.js +69 -208
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +154 -193
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +3 -26
- package/dist/components/ticon/iconfont/iconfont.css +3 -7
- package/dist/components/ticon/iconfont/iconfont.js +1 -1
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +0 -7
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/touchTable/index.js +0 -4
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/presale/pickup.js +0 -419
- package/dist/components/presale/pickup.js.map +0 -1
- 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,
|
|
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
|
-
}
|
|
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$
|
|
534
|
-
PayStyle = _enumController$
|
|
502
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
503
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
535
504
|
|
|
536
|
-
var
|
|
537
|
-
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
|
|
563
|
-
displayText =
|
|
564
|
-
promoRuleId =
|
|
565
|
-
dateMount =
|
|
566
|
-
promoMethodEnum =
|
|
567
|
-
discountPct =
|
|
568
|
-
promoId =
|
|
569
|
-
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$
|
|
614
|
-
PayStyle = _enumController$
|
|
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
|
|
652
|
-
|
|
653
|
-
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
|
|
673
|
-
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
|
|
684
|
-
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
|
|
730
|
-
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$
|
|
800
|
-
PayStyle = _enumController$
|
|
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$
|
|
819
|
-
PayStyle = _enumController$
|
|
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$
|
|
856
|
-
PayStyle = _enumController$
|
|
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$
|
|
900
|
-
PayStyle = _enumController$
|
|
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$
|
|
977
|
-
PayStyle = _enumController$
|
|
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$
|
|
996
|
-
PayStyle = _enumController$
|
|
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
|
-
|
|
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$
|
|
1013
|
-
PayStyle = _enumController$
|
|
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
|
|
1025
|
-
var
|
|
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
|
-
|
|
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
|
|
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$
|
|
1114
|
-
PayStyle = _enumController$
|
|
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
|
|
1125
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1156
1126
|
var _this11 = this;
|
|
1157
1127
|
|
|
1158
|
-
var _enumController$
|
|
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$
|
|
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
|
|
1239
|
-
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
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1411
|
-
var
|
|
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
|
-
|
|
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
|
|
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
|
|
1542
|
-
var
|
|
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
|
-
|
|
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
|
|
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',
|
|
1556
|
+
_initDefineProp(this, 'currentFocus', _descriptor3, this);
|
|
1596
1557
|
|
|
1597
|
-
_initDefineProp(this, 'received',
|
|
1558
|
+
_initDefineProp(this, 'received', _descriptor4, this);
|
|
1598
1559
|
|
|
1599
|
-
_initDefineProp(this, 'receivable',
|
|
1560
|
+
_initDefineProp(this, 'receivable', _descriptor5, this);
|
|
1600
1561
|
|
|
1601
|
-
_initDefineProp(this, 'paymodes',
|
|
1562
|
+
_initDefineProp(this, 'paymodes', _descriptor6, this);
|
|
1602
1563
|
|
|
1603
|
-
_initDefineProp(this, 'thePaymodes',
|
|
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',
|
|
1573
|
+
_initDefineProp(this, 'calcCheckList', _descriptor8, this);
|
|
1613
1574
|
|
|
1614
|
-
_initDefineProp(this, 'setCouponNum',
|
|
1575
|
+
_initDefineProp(this, 'setCouponNum', _descriptor9, this);
|
|
1615
1576
|
|
|
1616
|
-
_initDefineProp(this, 'addDjqs',
|
|
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
|
|
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
|
|
1670
|
-
isNewRetailBCPos =
|
|
1630
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1631
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1671
1632
|
|
|
1672
|
-
var _enumController$
|
|
1673
|
-
PayStyle = _enumController$
|
|
1674
|
-
Differentiate = _enumController$
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1781
|
-
couponCode =
|
|
1782
|
-
name =
|
|
1783
|
-
tieredAmountResult =
|
|
1784
|
-
fromDate =
|
|
1785
|
-
dateMount =
|
|
1786
|
-
promoMethodEnum =
|
|
1787
|
-
discountPct =
|
|
1788
|
-
nominalAmount =
|
|
1789
|
-
promoId =
|
|
1790
|
-
id =
|
|
1791
|
-
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
|
-
|
|
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
|
-
|
|
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
|
|
1836
|
-
isNewRetailBCPos =
|
|
1796
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1797
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1837
1798
|
|
|
1838
|
-
var _enumController$
|
|
1839
|
-
Differentiate = _enumController$
|
|
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$
|
|
1902
|
-
PayStyle = _enumController$
|
|
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
|
|
1927
|
-
var
|
|
1887
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1888
|
+
var _this15 = this;
|
|
1928
1889
|
|
|
1929
|
-
var _enumController$
|
|
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$
|
|
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
|
-
|
|
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
|
|
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
|
-
}(), (
|
|
1959
|
+
}(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
1999
1960
|
enumerable: true,
|
|
2000
1961
|
initializer: function initializer() {
|
|
2001
1962
|
return "";
|
|
2002
1963
|
}
|
|
2003
|
-
}),
|
|
1964
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2004
1965
|
enumerable: true,
|
|
2005
1966
|
initializer: function initializer() {
|
|
2006
1967
|
return 0;
|
|
2007
1968
|
}
|
|
2008
|
-
}),
|
|
1969
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2009
1970
|
enumerable: true,
|
|
2010
1971
|
initializer: function initializer() {
|
|
2011
1972
|
return 0;
|
|
2012
1973
|
}
|
|
2013
|
-
}),
|
|
1974
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2014
1975
|
enumerable: true,
|
|
2015
1976
|
initializer: function initializer() {
|
|
2016
1977
|
return [];
|
|
2017
1978
|
}
|
|
2018
|
-
}),
|
|
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),
|
|
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
|
|
1987
|
+
var _this16 = this;
|
|
2027
1988
|
|
|
2028
1989
|
return function () {
|
|
2029
|
-
|
|
1990
|
+
_this16.checkList = [];
|
|
2030
1991
|
};
|
|
2031
1992
|
}
|
|
2032
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype),
|
|
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
|
|
1996
|
+
var _this17 = this;
|
|
2036
1997
|
|
|
2037
1998
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2038
|
-
|
|
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
|
-
}),
|
|
2009
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2049
2010
|
enumerable: true,
|
|
2050
2011
|
initializer: function initializer() {
|
|
2051
|
-
var
|
|
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
|
-
|
|
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
|
|
2040
|
+
var _this19 = this;
|
|
2080
2041
|
|
|
2081
2042
|
(0, _classCallCheck3.default)(this, Member);
|
|
2082
2043
|
|
|
2083
|
-
_initDefineProp(this, 'cardNo',
|
|
2044
|
+
_initDefineProp(this, 'cardNo', _descriptor11, this);
|
|
2084
2045
|
|
|
2085
|
-
_initDefineProp(this, 'balance',
|
|
2046
|
+
_initDefineProp(this, 'balance', _descriptor12, this);
|
|
2086
2047
|
|
|
2087
|
-
_initDefineProp(this, 'exchangable',
|
|
2048
|
+
_initDefineProp(this, 'exchangable', _descriptor13, this);
|
|
2088
2049
|
|
|
2089
|
-
_initDefineProp(this, 'MeStorageCardId',
|
|
2050
|
+
_initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
|
|
2090
2051
|
|
|
2091
|
-
_initDefineProp(this, 'StorageCardNo',
|
|
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
|
|
2103
|
-
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
|
-
|
|
2069
|
+
_this19.cardNo = m.CardCode;
|
|
2109
2070
|
if (index >= 0) {
|
|
2110
|
-
|
|
2071
|
+
_this19.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2111
2072
|
} else {
|
|
2112
|
-
|
|
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
|
-
}(), (
|
|
2105
|
+
}(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2145
2106
|
enumerable: true,
|
|
2146
2107
|
initializer: null
|
|
2147
|
-
}),
|
|
2108
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2148
2109
|
enumerable: true,
|
|
2149
2110
|
initializer: null
|
|
2150
|
-
}),
|
|
2111
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2151
2112
|
enumerable: true,
|
|
2152
2113
|
initializer: null
|
|
2153
|
-
}),
|
|
2114
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
|
|
2154
2115
|
enumerable: true,
|
|
2155
2116
|
initializer: null
|
|
2156
|
-
}),
|
|
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);
|