tplus-components-touch 3.26.3 → 3.27.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +98 -37
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +373 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +23 -14
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +13 -7
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +66 -133
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +161 -161
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +61 -61
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/presale/pickup.js +419 -0
- package/dist/components/presale/pickup.js.map +1 -0
- package/dist/components/presale/style.less +48 -0
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +617 -570
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1600 -1643
- package/dist/components/settlement/settlementStore.js +224 -292
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +5225 -5248
- package/dist/components/ticon/iconfont/iconfont.css +891 -895
- package/dist/components/ticon/iconfont/iconfont.js +6 -6
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +1542 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- 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/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +18 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +369 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +2 -2
- package/tsconfig.json +26 -26
|
@@ -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
|
|
|
@@ -178,10 +178,6 @@ var SettlementStore = (_class = function () {
|
|
|
178
178
|
|
|
179
179
|
_initDefineProp(this, 'updateMemberInfo', _descriptor2, this);
|
|
180
180
|
|
|
181
|
-
_initDefineProp(this, 'updateCurrentMode', _descriptor3, this);
|
|
182
|
-
|
|
183
|
-
_initDefineProp(this, 'updateCardInfo', _descriptor4, this);
|
|
184
|
-
|
|
185
181
|
this.getCouponList = function (coupon_code) {
|
|
186
182
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
187
183
|
PayStyle = _enumController$getEn.PayStyle,
|
|
@@ -238,7 +234,7 @@ var SettlementStore = (_class = function () {
|
|
|
238
234
|
}
|
|
239
235
|
detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
|
|
240
236
|
detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
|
|
241
|
-
//}
|
|
237
|
+
//}
|
|
242
238
|
detailDTO.taxRate = item.TaxRate;
|
|
243
239
|
detailDTO.quantity = item.Quantity;
|
|
244
240
|
|
|
@@ -311,6 +307,18 @@ var SettlementStore = (_class = function () {
|
|
|
311
307
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
|
|
312
308
|
};
|
|
313
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
|
+
|
|
314
322
|
this.checkCoupon = function () {
|
|
315
323
|
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
|
|
316
324
|
var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
|
|
@@ -452,7 +460,32 @@ var SettlementStore = (_class = function () {
|
|
|
452
460
|
});
|
|
453
461
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
454
462
|
this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
|
|
455
|
-
|
|
463
|
+
|
|
464
|
+
//预订按比例收取订金处理
|
|
465
|
+
var value = this.dto.TotalTaxAmount;
|
|
466
|
+
|
|
467
|
+
var _getLoginInfo = this.getLoginInfo(),
|
|
468
|
+
Book = _getLoginInfo.Book,
|
|
469
|
+
PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
|
|
470
|
+
|
|
471
|
+
var _ref5 = this.dto || {},
|
|
472
|
+
IdbusiType = _ref5.IdbusiType,
|
|
473
|
+
DistributionMode = _ref5.DistributionMode;
|
|
474
|
+
|
|
475
|
+
if (IdbusiType == 38 && Book && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
476
|
+
value = value * PercentageWhenBook / 100;
|
|
477
|
+
(0, _mobx.runInAction)(function () {
|
|
478
|
+
_this3.dto.PrepaidAmount = value;
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
if (IdbusiType == 38 && Book && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
482
|
+
value += this.dto.BuyerPayFreight || 0;
|
|
483
|
+
}
|
|
484
|
+
if (IdbusiType == 39) {
|
|
485
|
+
value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
|
|
456
489
|
} else {
|
|
457
490
|
this.brefund = this.paymode.setAmount(amount, 0);
|
|
458
491
|
this.dto = data;
|
|
@@ -500,8 +533,8 @@ var SettlementStore = (_class = function () {
|
|
|
500
533
|
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
501
534
|
PayStyle = _enumController$getEn4.PayStyle;
|
|
502
535
|
|
|
503
|
-
var
|
|
504
|
-
isNewRetailBCPos =
|
|
536
|
+
var _ref6 = _mutantsUtil.platform || {},
|
|
537
|
+
isNewRetailBCPos = _ref6.isNewRetailBCPos;
|
|
505
538
|
|
|
506
539
|
console.log(this.dto, 'dto==========');
|
|
507
540
|
this.paymode.checkList = [];
|
|
@@ -526,14 +559,14 @@ var SettlementStore = (_class = function () {
|
|
|
526
559
|
if (themode.paymentType == PayStyle.djq) {
|
|
527
560
|
(0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
|
|
528
561
|
if (isNewRetailBCPos) {
|
|
529
|
-
var
|
|
530
|
-
displayText =
|
|
531
|
-
promoRuleId =
|
|
532
|
-
dateMount =
|
|
533
|
-
promoMethodEnum =
|
|
534
|
-
discountPct =
|
|
535
|
-
promoId =
|
|
536
|
-
id =
|
|
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;
|
|
537
570
|
|
|
538
571
|
_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);
|
|
539
572
|
return;
|
|
@@ -595,7 +628,7 @@ var SettlementStore = (_class = function () {
|
|
|
595
628
|
|
|
596
629
|
//抵现积分
|
|
597
630
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
598
|
-
Idmember: this.paymode.currentMode.
|
|
631
|
+
Idmember: this.paymode.currentMode.member.id,
|
|
599
632
|
TotalTaxAmount: this.paymode.amount,
|
|
600
633
|
BalanceTaxAmount: this.paymode.currentMode.value
|
|
601
634
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -615,9 +648,9 @@ var SettlementStore = (_class = function () {
|
|
|
615
648
|
}, {
|
|
616
649
|
key: 'getLoginInfo',
|
|
617
650
|
value: function getLoginInfo() {
|
|
618
|
-
var
|
|
619
|
-
|
|
620
|
-
loginInfo =
|
|
651
|
+
var _ref8 = _mutantsMicrofx.localStore.get('user') || {},
|
|
652
|
+
_ref8$loginInfo = _ref8.loginInfo,
|
|
653
|
+
loginInfo = _ref8$loginInfo === undefined ? {} : _ref8$loginInfo;
|
|
621
654
|
|
|
622
655
|
return loginInfo;
|
|
623
656
|
}
|
|
@@ -628,6 +661,7 @@ var SettlementStore = (_class = function () {
|
|
|
628
661
|
|
|
629
662
|
if ((0, _trim3.default)(v) === "") {
|
|
630
663
|
(0, _mobx.runInAction)(function () {
|
|
664
|
+
_this7.paymode.currentMode.member = new Member(null);
|
|
631
665
|
_this7.paymode.currentMode.errinfo = "请输入储值卡";
|
|
632
666
|
});
|
|
633
667
|
return;
|
|
@@ -635,35 +669,43 @@ var SettlementStore = (_class = function () {
|
|
|
635
669
|
var IdStore = this.storeInfo.storeID;
|
|
636
670
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
637
671
|
|
|
638
|
-
var
|
|
639
|
-
isNewRetailBCPos =
|
|
672
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
673
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
640
674
|
|
|
641
675
|
var address = '';
|
|
642
676
|
if (isNewRetailBCPos) {
|
|
643
677
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
644
|
-
address = '/
|
|
678
|
+
address = '/member/MeMemberWallet/FindByStorageCode';
|
|
645
679
|
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (result) {
|
|
646
680
|
var data = result.data;
|
|
647
|
-
var m = data
|
|
648
|
-
|
|
649
|
-
|
|
681
|
+
var m = data;
|
|
682
|
+
|
|
683
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
684
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
685
|
+
|
|
686
|
+
if (isNewRetailBCPos) {
|
|
687
|
+
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
688
|
+
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
689
|
+
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
690
|
+
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
691
|
+
}
|
|
692
|
+
if (!m || !m.ID) {
|
|
650
693
|
(0, _mobx.runInAction)(function () {
|
|
651
694
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
652
695
|
});
|
|
653
696
|
} else {
|
|
654
697
|
(0, _mobx.runInAction)(function () {
|
|
655
698
|
_this7.paymode.currentMode.errinfo = "";
|
|
656
|
-
_this7.paymode.currentMode.
|
|
699
|
+
_this7.paymode.currentMode.member = new Member(m);
|
|
657
700
|
_this7.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this7.brefund ? _this7.paymode.receivable : Math.max(_this7.paymode.receivable, 0));
|
|
658
701
|
_this7.updateEvent();
|
|
659
702
|
var message = '';
|
|
660
703
|
var sum = (0, _reduce3.default)(_this7.paymode.thePaymodes, function (total, cur) {
|
|
661
704
|
return total + cur.value;
|
|
662
705
|
}, 0);
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
// }
|
|
706
|
+
if (global.CheckMemberStorageProcessorBlock) {
|
|
707
|
+
message = CheckMemberStorageProcessorBlock.execute(m);
|
|
708
|
+
}
|
|
667
709
|
if (!String.isNullOrEmpty(message)) {
|
|
668
710
|
_this7.paymode.currentMode.errinfo = message;
|
|
669
711
|
} else if (_this7.checkReceived(_this7.paymode.currentMode, "balance")) {
|
|
@@ -683,6 +725,16 @@ var SettlementStore = (_class = function () {
|
|
|
683
725
|
return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
|
|
684
726
|
var data = JSON.parse(result.Data);
|
|
685
727
|
var m = data && data.length > 0 && data[0];
|
|
728
|
+
|
|
729
|
+
var _ref11 = _mutantsUtil.platform || {},
|
|
730
|
+
isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
|
731
|
+
|
|
732
|
+
if (isNewRetailBCPos) {
|
|
733
|
+
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
734
|
+
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
735
|
+
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
736
|
+
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
737
|
+
}
|
|
686
738
|
if (!m || !m.ID) {
|
|
687
739
|
(0, _mobx.runInAction)(function () {
|
|
688
740
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
@@ -778,7 +830,7 @@ var SettlementStore = (_class = function () {
|
|
|
778
830
|
}
|
|
779
831
|
|
|
780
832
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
781
|
-
Idmember: this.paymode.currentMode.
|
|
833
|
+
Idmember: this.paymode.currentMode.member.id,
|
|
782
834
|
TotalTaxAmount: this.paymode.amount,
|
|
783
835
|
BalanceTaxAmount: this.paymode.amount
|
|
784
836
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -805,22 +857,6 @@ var SettlementStore = (_class = function () {
|
|
|
805
857
|
|
|
806
858
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
807
859
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
808
|
-
var balance = null;
|
|
809
|
-
var rawbalance = null;
|
|
810
|
-
var storageCardNo = null;
|
|
811
|
-
var memberId = this.member && this.member.ID ? this.member.ID : null;
|
|
812
|
-
var cardTypeEnum = null;
|
|
813
|
-
var walletEnabled = null;
|
|
814
|
-
var meStorageCardId = null;
|
|
815
|
-
if (type === PayStyle.hyczk) {
|
|
816
|
-
// 会员概念改为卡,把这些字段都放开
|
|
817
|
-
cardTypeEnum = this.member.CardTypeEnum ? this.member.CardTypeEnum : null;
|
|
818
|
-
walletEnabled = this.member.WalletEnabled ? this.member.WalletEnabled : null;
|
|
819
|
-
storageCardNo = this.member.StorageCardNo ? this.member.StorageCardNo : null;
|
|
820
|
-
balance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
|
|
821
|
-
rawbalance = this.member.BalanceStorage ? this.member.BalanceStorage : null;
|
|
822
|
-
meStorageCardId = this.member.MeStorageCardId ? this.member.MeStorageCardId : null;
|
|
823
|
-
}
|
|
824
860
|
var mode = (0, _mobx.observable)({
|
|
825
861
|
paymethodId: this.paymode.counter,
|
|
826
862
|
name: themode.name,
|
|
@@ -832,14 +868,6 @@ var SettlementStore = (_class = function () {
|
|
|
832
868
|
order: this.paymode.thePaymodes.length + 1,
|
|
833
869
|
paymentType: type,
|
|
834
870
|
djqs: [],
|
|
835
|
-
card: null,
|
|
836
|
-
cardTypeEnum: !notwithm ? cardTypeEnum : null,
|
|
837
|
-
walletEnabled: !notwithm ? walletEnabled : null,
|
|
838
|
-
memberId: !notwithm ? memberId : null,
|
|
839
|
-
meStorageCardId: !notwithm ? meStorageCardId : null,
|
|
840
|
-
storageCardNo: !notwithm ? storageCardNo : null,
|
|
841
|
-
balance: !notwithm ? balance : null,
|
|
842
|
-
rawbalance: !notwithm ? rawbalance : null,
|
|
843
871
|
member: new Member(!notwithm ? this.member : null),
|
|
844
872
|
authCode: '',
|
|
845
873
|
steadCashIntegral: null,
|
|
@@ -847,7 +875,7 @@ var SettlementStore = (_class = function () {
|
|
|
847
875
|
maxamount: this.paymode.amount
|
|
848
876
|
});
|
|
849
877
|
if (type == PayStyle.hyczk) {
|
|
850
|
-
if (!mode.
|
|
878
|
+
if (!mode.member.id || !mode.member.StorageCardNo) {
|
|
851
879
|
(0, _mobx.runInAction)(function () {
|
|
852
880
|
mode.errinfo = '未录入储值卡';
|
|
853
881
|
});
|
|
@@ -993,8 +1021,8 @@ var SettlementStore = (_class = function () {
|
|
|
993
1021
|
}, {
|
|
994
1022
|
key: 'commit',
|
|
995
1023
|
value: function () {
|
|
996
|
-
var
|
|
997
|
-
var
|
|
1024
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
1025
|
+
var _ref13, isNewRetailBCPos;
|
|
998
1026
|
|
|
999
1027
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
1000
1028
|
while (1) {
|
|
@@ -1010,7 +1038,7 @@ var SettlementStore = (_class = function () {
|
|
|
1010
1038
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
1011
1039
|
|
|
1012
1040
|
case 3:
|
|
1013
|
-
|
|
1041
|
+
_ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1014
1042
|
_context2.prev = 4;
|
|
1015
1043
|
|
|
1016
1044
|
if (!(this.type == 1)) {
|
|
@@ -1066,7 +1094,7 @@ var SettlementStore = (_class = function () {
|
|
|
1066
1094
|
}));
|
|
1067
1095
|
|
|
1068
1096
|
function commit(_x2) {
|
|
1069
|
-
return
|
|
1097
|
+
return _ref12.apply(this, arguments);
|
|
1070
1098
|
}
|
|
1071
1099
|
|
|
1072
1100
|
return commit;
|
|
@@ -1124,10 +1152,10 @@ var SettlementStore = (_class = function () {
|
|
|
1124
1152
|
}, {
|
|
1125
1153
|
key: 'save',
|
|
1126
1154
|
value: function () {
|
|
1127
|
-
var
|
|
1155
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1128
1156
|
var _this11 = this;
|
|
1129
1157
|
|
|
1130
|
-
var _enumController$getEn14, PayStyle,
|
|
1158
|
+
var _enumController$getEn14, PayStyle, _ref16, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1131
1159
|
|
|
1132
1160
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1133
1161
|
while (1) {
|
|
@@ -1149,16 +1177,17 @@ var SettlementStore = (_class = function () {
|
|
|
1149
1177
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1150
1178
|
if (mode.paymentType == PayStyle.hyczk) {
|
|
1151
1179
|
if (!Idmember) {
|
|
1152
|
-
Idmember = mode.
|
|
1180
|
+
Idmember = mode.member.id;
|
|
1153
1181
|
}
|
|
1154
1182
|
czkSum = Math.Add(czkSum, mode.value);
|
|
1183
|
+
var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
|
|
1155
1184
|
_this11.dto.RetailStorageDetails.push({
|
|
1156
1185
|
Code: mode.paymethodId,
|
|
1157
|
-
MeStorageCardId:
|
|
1186
|
+
MeStorageCardId: MeStorageCardId,
|
|
1158
1187
|
StoragePaymentAmount: mode.value,
|
|
1159
1188
|
IsOrigReturn: false,
|
|
1160
1189
|
BalanceStorage: mode.balance,
|
|
1161
|
-
Idmember: mode.
|
|
1190
|
+
Idmember: mode.member.id,
|
|
1162
1191
|
DynamicPropertyKeys: [],
|
|
1163
1192
|
DynamicPropertyValues: [],
|
|
1164
1193
|
DataSource: { Id: _this11.dataSource },
|
|
@@ -1194,7 +1223,7 @@ var SettlementStore = (_class = function () {
|
|
|
1194
1223
|
ReductionAmount: djq.amount,
|
|
1195
1224
|
EnableAmount: djq.doorsill,
|
|
1196
1225
|
CouponTitle: djq.name,
|
|
1197
|
-
IdMember: djq.UMemberID ? mode.
|
|
1226
|
+
IdMember: djq.UMemberID ? mode.member.id : null,
|
|
1198
1227
|
LastTS: djq.LastTS,
|
|
1199
1228
|
PromotionId: djq.promoId,
|
|
1200
1229
|
PromotionRuleId: djq.promoRuleId,
|
|
@@ -1206,12 +1235,15 @@ var SettlementStore = (_class = function () {
|
|
|
1206
1235
|
}
|
|
1207
1236
|
});
|
|
1208
1237
|
|
|
1209
|
-
var
|
|
1210
|
-
isNewRetailBCPos =
|
|
1238
|
+
var _ref15 = _mutantsUtil.platform || {},
|
|
1239
|
+
isNewRetailBCPos = _ref15.isNewRetailBCPos;
|
|
1211
1240
|
|
|
1212
1241
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1213
1242
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1214
1243
|
if (isNewRetailBCPos) {
|
|
1244
|
+
// this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
|
|
1245
|
+
// value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
|
|
1246
|
+
// })
|
|
1215
1247
|
_this11.dto.RetailPaymentDetails.push({
|
|
1216
1248
|
Code: _this11.paymode.counter,
|
|
1217
1249
|
OrigAmount: czkSum,
|
|
@@ -1238,7 +1270,7 @@ var SettlementStore = (_class = function () {
|
|
|
1238
1270
|
_this11.dto.Idmember = Idmember;
|
|
1239
1271
|
}
|
|
1240
1272
|
});
|
|
1241
|
-
|
|
1273
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
1242
1274
|
|
|
1243
1275
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1244
1276
|
|
|
@@ -1308,7 +1340,7 @@ var SettlementStore = (_class = function () {
|
|
|
1308
1340
|
}));
|
|
1309
1341
|
|
|
1310
1342
|
function save() {
|
|
1311
|
-
return
|
|
1343
|
+
return _ref14.apply(this, arguments);
|
|
1312
1344
|
}
|
|
1313
1345
|
|
|
1314
1346
|
return save;
|
|
@@ -1321,7 +1353,7 @@ var SettlementStore = (_class = function () {
|
|
|
1321
1353
|
}, {
|
|
1322
1354
|
key: 'querySettleResult',
|
|
1323
1355
|
value: function () {
|
|
1324
|
-
var
|
|
1356
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1325
1357
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1326
1358
|
while (1) {
|
|
1327
1359
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1349,7 +1381,7 @@ var SettlementStore = (_class = function () {
|
|
|
1349
1381
|
}));
|
|
1350
1382
|
|
|
1351
1383
|
function querySettleResult() {
|
|
1352
|
-
return
|
|
1384
|
+
return _ref17.apply(this, arguments);
|
|
1353
1385
|
}
|
|
1354
1386
|
|
|
1355
1387
|
return querySettleResult;
|
|
@@ -1375,37 +1407,37 @@ var SettlementStore = (_class = function () {
|
|
|
1375
1407
|
}, {
|
|
1376
1408
|
key: 'validePwd',
|
|
1377
1409
|
value: function () {
|
|
1378
|
-
var
|
|
1379
|
-
var
|
|
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
1412
|
|
|
1381
1413
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1382
1414
|
while (1) {
|
|
1383
1415
|
switch (_context5.prev = _context5.next) {
|
|
1384
1416
|
case 0:
|
|
1385
|
-
|
|
1417
|
+
_ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
|
|
1386
1418
|
_context5.prev = 1;
|
|
1387
1419
|
|
|
1388
1420
|
if (!isNewRetailBCPos) {
|
|
1389
|
-
_context5.next =
|
|
1421
|
+
_context5.next = 19;
|
|
1390
1422
|
break;
|
|
1391
1423
|
}
|
|
1392
1424
|
|
|
1393
1425
|
cook1 = this.getAllCookies()['errorPwd'];
|
|
1394
1426
|
cook2 = cook1 && JSON.parse(cook1);
|
|
1395
1427
|
message = '密码输入错误';
|
|
1396
|
-
|
|
1428
|
+
memberId = this.paymode.currentMode.member.MeStorageCardId;
|
|
1397
1429
|
|
|
1398
1430
|
if (!cook2) {
|
|
1399
1431
|
_context5.next = 12;
|
|
1400
1432
|
break;
|
|
1401
1433
|
}
|
|
1402
1434
|
|
|
1403
|
-
if (!cook2.hasOwnProperty(
|
|
1435
|
+
if (!cook2.hasOwnProperty(memberId + "")) {
|
|
1404
1436
|
_context5.next = 12;
|
|
1405
1437
|
break;
|
|
1406
1438
|
}
|
|
1407
1439
|
|
|
1408
|
-
if (!(cook2[
|
|
1440
|
+
if (!(cook2[memberId] > 3)) {
|
|
1409
1441
|
_context5.next = 12;
|
|
1410
1442
|
break;
|
|
1411
1443
|
}
|
|
@@ -1414,78 +1446,60 @@ var SettlementStore = (_class = function () {
|
|
|
1414
1446
|
return _context5.abrupt('return', _promise2.default.resolve(message));
|
|
1415
1447
|
|
|
1416
1448
|
case 12:
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1421
|
-
_context5.next = 20;
|
|
1422
|
-
break;
|
|
1423
|
-
}
|
|
1449
|
+
_context5.next = 14;
|
|
1450
|
+
return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + value.id, false, false);
|
|
1424
1451
|
|
|
1425
|
-
|
|
1426
|
-
return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1427
|
-
|
|
1428
|
-
case 17:
|
|
1452
|
+
case 14:
|
|
1429
1453
|
result = _context5.sent;
|
|
1430
|
-
_context5.next = 23;
|
|
1431
|
-
break;
|
|
1432
|
-
|
|
1433
|
-
case 20:
|
|
1434
|
-
_context5.next = 22;
|
|
1435
|
-
return (0, _tplusApi.ccApi)({ password: _tplusApi.User.pwdEncrypt(value.pwd) }, '/marketingtool/MeStorageCard/updateStorageKey', false, false);
|
|
1436
1454
|
|
|
1437
|
-
case 22:
|
|
1438
|
-
result = _context5.sent;
|
|
1439
|
-
|
|
1440
|
-
case 23:
|
|
1441
1455
|
if (!result.data) {
|
|
1442
1456
|
if (cook2) {
|
|
1443
|
-
if (cook2.hasOwnProperty(
|
|
1444
|
-
count = cook2[
|
|
1457
|
+
if (cook2.hasOwnProperty(memberId + "")) {
|
|
1458
|
+
count = cook2[memberId];
|
|
1445
1459
|
|
|
1446
|
-
cook2[
|
|
1460
|
+
cook2[memberId] = count + 1;
|
|
1447
1461
|
} else {
|
|
1448
|
-
cook2[
|
|
1462
|
+
cook2[memberId] = 1;
|
|
1449
1463
|
}
|
|
1450
1464
|
} else {
|
|
1451
1465
|
cook2 = {};
|
|
1452
|
-
cook2[
|
|
1466
|
+
cook2[memberId] = 1;
|
|
1453
1467
|
}
|
|
1454
1468
|
this.setCookie('errorPwd', '', -1);
|
|
1455
1469
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1456
1470
|
}
|
|
1457
1471
|
return _context5.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1458
1472
|
|
|
1459
|
-
case
|
|
1460
|
-
_context5.next =
|
|
1473
|
+
case 19:
|
|
1474
|
+
_context5.next = 21;
|
|
1461
1475
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1462
1476
|
"Idmember": value.id,
|
|
1463
1477
|
"Password": value.pwd
|
|
1464
1478
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1465
1479
|
|
|
1466
|
-
case
|
|
1480
|
+
case 21:
|
|
1467
1481
|
_result = _context5.sent;
|
|
1468
1482
|
return _context5.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1469
1483
|
|
|
1470
|
-
case
|
|
1471
|
-
_context5.next =
|
|
1484
|
+
case 23:
|
|
1485
|
+
_context5.next = 28;
|
|
1472
1486
|
break;
|
|
1473
1487
|
|
|
1474
|
-
case
|
|
1475
|
-
_context5.prev =
|
|
1488
|
+
case 25:
|
|
1489
|
+
_context5.prev = 25;
|
|
1476
1490
|
_context5.t0 = _context5['catch'](1);
|
|
1477
1491
|
return _context5.abrupt('return', "failed");
|
|
1478
1492
|
|
|
1479
|
-
case
|
|
1493
|
+
case 28:
|
|
1480
1494
|
case 'end':
|
|
1481
1495
|
return _context5.stop();
|
|
1482
1496
|
}
|
|
1483
1497
|
}
|
|
1484
|
-
}, _callee5, this, [[1,
|
|
1498
|
+
}, _callee5, this, [[1, 25]]);
|
|
1485
1499
|
}));
|
|
1486
1500
|
|
|
1487
1501
|
function validePwd(_x3) {
|
|
1488
|
-
return
|
|
1502
|
+
return _ref18.apply(this, arguments);
|
|
1489
1503
|
}
|
|
1490
1504
|
|
|
1491
1505
|
return validePwd;
|
|
@@ -1507,7 +1521,7 @@ var SettlementStore = (_class = function () {
|
|
|
1507
1521
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1508
1522
|
return (0, _tplusApi.ccApi)({
|
|
1509
1523
|
Idstore: idstore,
|
|
1510
|
-
meMemberId: _this12.
|
|
1524
|
+
meMemberId: _this12.member.ID,
|
|
1511
1525
|
oldPassword: null,
|
|
1512
1526
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1513
1527
|
dataSource: "POS"
|
|
@@ -1524,14 +1538,14 @@ var SettlementStore = (_class = function () {
|
|
|
1524
1538
|
var _this13 = this;
|
|
1525
1539
|
|
|
1526
1540
|
return function () {
|
|
1527
|
-
var
|
|
1528
|
-
var
|
|
1541
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1542
|
+
var _getLoginInfo2, IdStore, StoreCode, resp;
|
|
1529
1543
|
|
|
1530
1544
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1531
1545
|
while (1) {
|
|
1532
1546
|
switch (_context6.prev = _context6.next) {
|
|
1533
1547
|
case 0:
|
|
1534
|
-
|
|
1548
|
+
_getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
|
|
1535
1549
|
_context6.next = 3;
|
|
1536
1550
|
return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1537
1551
|
|
|
@@ -1539,7 +1553,7 @@ var SettlementStore = (_class = function () {
|
|
|
1539
1553
|
resp = _context6.sent;
|
|
1540
1554
|
|
|
1541
1555
|
_this.member = resp;
|
|
1542
|
-
_this.paymode.currentMode.
|
|
1556
|
+
_this.paymode.currentMode.member.setStorageCardNo(resp.StorageCardNo);
|
|
1543
1557
|
return _context6.abrupt('return', _promise2.default.resolve(resp));
|
|
1544
1558
|
|
|
1545
1559
|
case 7:
|
|
@@ -1551,78 +1565,10 @@ var SettlementStore = (_class = function () {
|
|
|
1551
1565
|
}));
|
|
1552
1566
|
|
|
1553
1567
|
return function (_x4) {
|
|
1554
|
-
return
|
|
1568
|
+
return _ref20.apply(this, arguments);
|
|
1555
1569
|
};
|
|
1556
1570
|
}();
|
|
1557
1571
|
}
|
|
1558
|
-
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1559
|
-
enumerable: true,
|
|
1560
|
-
initializer: function initializer() {
|
|
1561
|
-
var _this14 = this;
|
|
1562
|
-
|
|
1563
|
-
return function () {
|
|
1564
|
-
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(memberId) {
|
|
1565
|
-
var result;
|
|
1566
|
-
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1567
|
-
while (1) {
|
|
1568
|
-
switch (_context7.prev = _context7.next) {
|
|
1569
|
-
case 0:
|
|
1570
|
-
_context7.next = 2;
|
|
1571
|
-
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId, false, false, { method: 'get' });
|
|
1572
|
-
|
|
1573
|
-
case 2:
|
|
1574
|
-
result = _context7.sent;
|
|
1575
|
-
|
|
1576
|
-
if (result && result.data.length) {
|
|
1577
|
-
result.data.forEach(function (m) {
|
|
1578
|
-
if (m.CardTypeEnum === 'BALANCE_CARD') {
|
|
1579
|
-
// 会员概念改为卡,把这些字段都放开
|
|
1580
|
-
_this14.paymode.updateCardInfo(m);
|
|
1581
|
-
}
|
|
1582
|
-
});
|
|
1583
|
-
}
|
|
1584
|
-
|
|
1585
|
-
case 4:
|
|
1586
|
-
case 'end':
|
|
1587
|
-
return _context7.stop();
|
|
1588
|
-
}
|
|
1589
|
-
}
|
|
1590
|
-
}, _callee7, _this14);
|
|
1591
|
-
}));
|
|
1592
|
-
|
|
1593
|
-
return function (_x5) {
|
|
1594
|
-
return _ref18.apply(this, arguments);
|
|
1595
|
-
};
|
|
1596
|
-
}();
|
|
1597
|
-
}
|
|
1598
|
-
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1599
|
-
enumerable: true,
|
|
1600
|
-
initializer: function initializer() {
|
|
1601
|
-
var _this15 = this;
|
|
1602
|
-
|
|
1603
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1604
|
-
var address, result;
|
|
1605
|
-
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1606
|
-
while (1) {
|
|
1607
|
-
switch (_context8.prev = _context8.next) {
|
|
1608
|
-
case 0:
|
|
1609
|
-
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
|
|
1610
|
-
_context8.next = 3;
|
|
1611
|
-
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1612
|
-
|
|
1613
|
-
case 3:
|
|
1614
|
-
result = _context8.sent;
|
|
1615
|
-
|
|
1616
|
-
_this15.paymode.updateCardInfo(result.data);
|
|
1617
|
-
|
|
1618
|
-
case 5:
|
|
1619
|
-
case 'end':
|
|
1620
|
-
return _context8.stop();
|
|
1621
|
-
}
|
|
1622
|
-
}
|
|
1623
|
-
}, _callee8, _this15);
|
|
1624
|
-
}));
|
|
1625
|
-
}
|
|
1626
1572
|
}), _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);
|
|
1627
1573
|
exports.default = SettlementStore;
|
|
1628
1574
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
@@ -1637,19 +1583,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1637
1583
|
this.onlineamount = 0;
|
|
1638
1584
|
this.maxamount = 0;
|
|
1639
1585
|
|
|
1640
|
-
_initDefineProp(this, 'currentFocus',
|
|
1641
|
-
|
|
1642
|
-
_initDefineProp(this, 'received', _descriptor6, this);
|
|
1586
|
+
_initDefineProp(this, 'currentFocus', _descriptor3, this);
|
|
1643
1587
|
|
|
1644
|
-
_initDefineProp(this, '
|
|
1588
|
+
_initDefineProp(this, 'received', _descriptor4, this);
|
|
1645
1589
|
|
|
1646
|
-
_initDefineProp(this, '
|
|
1590
|
+
_initDefineProp(this, 'receivable', _descriptor5, this);
|
|
1647
1591
|
|
|
1648
|
-
_initDefineProp(this, '
|
|
1592
|
+
_initDefineProp(this, 'paymodes', _descriptor6, this);
|
|
1649
1593
|
|
|
1650
|
-
_initDefineProp(this, '
|
|
1651
|
-
|
|
1652
|
-
_initDefineProp(this, 'balance', _descriptor11, this);
|
|
1594
|
+
_initDefineProp(this, 'thePaymodes', _descriptor7, this);
|
|
1653
1595
|
|
|
1654
1596
|
this.currentMode = null;
|
|
1655
1597
|
this.checkList = [];
|
|
@@ -1658,11 +1600,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1658
1600
|
hotKey: "Ctrl+M"
|
|
1659
1601
|
};
|
|
1660
1602
|
|
|
1661
|
-
_initDefineProp(this, 'calcCheckList',
|
|
1603
|
+
_initDefineProp(this, 'calcCheckList', _descriptor8, this);
|
|
1662
1604
|
|
|
1663
|
-
_initDefineProp(this, 'setCouponNum',
|
|
1605
|
+
_initDefineProp(this, 'setCouponNum', _descriptor9, this);
|
|
1664
1606
|
|
|
1665
|
-
_initDefineProp(this, 'addDjqs',
|
|
1607
|
+
_initDefineProp(this, 'addDjqs', _descriptor10, this);
|
|
1666
1608
|
}
|
|
1667
1609
|
// @observable store = null;
|
|
1668
1610
|
|
|
@@ -1698,22 +1640,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1698
1640
|
this.received = (0, _utils.getFixedNumber)(sum);
|
|
1699
1641
|
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1700
1642
|
}
|
|
1701
|
-
}, {
|
|
1702
|
-
key: 'updateCardInfo',
|
|
1703
|
-
value: function updateCardInfo(m) {
|
|
1704
|
-
this.currentMode.isNeedPassword = m.IsNeedPassword;
|
|
1705
|
-
this.currentMode.meStorageCardId = m.MeStorageCardId;
|
|
1706
|
-
this.currentMode.storageCardNo = m.StorageCardNo;
|
|
1707
|
-
this.currentMode.balance = m.BalanceStorage;
|
|
1708
|
-
this.currentMode.rawbalance = m.BalanceStorage;
|
|
1709
|
-
this.currentMode.cardTypeEnum = m.CardTypeEnum;
|
|
1710
|
-
this.currentMode.walletEnabled = m.WalletEnabled;
|
|
1711
|
-
this.currentMode.memberId = m.ID;
|
|
1712
|
-
}
|
|
1713
1643
|
}, {
|
|
1714
1644
|
key: 'calcDjqCheckValue',
|
|
1715
1645
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1716
|
-
var
|
|
1646
|
+
var _this14 = this;
|
|
1717
1647
|
|
|
1718
1648
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1719
1649
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1727,8 +1657,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1727
1657
|
this.checkList = [];
|
|
1728
1658
|
}
|
|
1729
1659
|
|
|
1730
|
-
var
|
|
1731
|
-
isNewRetailBCPos =
|
|
1660
|
+
var _ref21 = _mutantsUtil.platform || {},
|
|
1661
|
+
isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
1732
1662
|
|
|
1733
1663
|
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1734
1664
|
PayStyle = _enumController$getEn15.PayStyle,
|
|
@@ -1760,7 +1690,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1760
1690
|
if (!q1.checked) {
|
|
1761
1691
|
this.checkList.forEach(function (ele, i) {
|
|
1762
1692
|
if (ele.id === q1.id) {
|
|
1763
|
-
|
|
1693
|
+
_this14.checkList.splice(i, 1);
|
|
1764
1694
|
}
|
|
1765
1695
|
});
|
|
1766
1696
|
} else {
|
|
@@ -1802,13 +1732,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1802
1732
|
// }
|
|
1803
1733
|
// else
|
|
1804
1734
|
// {
|
|
1735
|
+
|
|
1805
1736
|
var bookingQuantity = 0;
|
|
1806
1737
|
if (item.BookingQuantity) {
|
|
1807
1738
|
bookingQuantity = item.BookingQuantity;
|
|
1808
1739
|
}
|
|
1809
1740
|
detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
|
|
1810
1741
|
detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
|
|
1811
|
-
//}
|
|
1812
1742
|
detailDTO.taxRate = item.TaxRate;
|
|
1813
1743
|
detailDTO.quantity = item.Quantity;
|
|
1814
1744
|
|
|
@@ -1832,24 +1762,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1832
1762
|
if (result && result.length != 0) {
|
|
1833
1763
|
result.forEach(function (element, index) {
|
|
1834
1764
|
var djq1 = false;
|
|
1835
|
-
|
|
1765
|
+
_this14.currentMode.djqs.forEach(function (djq) {
|
|
1836
1766
|
if (element.id === djq.id) {
|
|
1837
1767
|
djq1 = true;
|
|
1838
1768
|
}
|
|
1839
1769
|
});
|
|
1840
1770
|
|
|
1841
|
-
var
|
|
1842
|
-
couponCode =
|
|
1843
|
-
name =
|
|
1844
|
-
tieredAmountResult =
|
|
1845
|
-
fromDate =
|
|
1846
|
-
dateMount =
|
|
1847
|
-
promoMethodEnum =
|
|
1848
|
-
discountPct =
|
|
1849
|
-
nominalAmount =
|
|
1850
|
-
promoId =
|
|
1851
|
-
id =
|
|
1852
|
-
doorsill =
|
|
1771
|
+
var _ref22 = element || {},
|
|
1772
|
+
couponCode = _ref22.couponCode,
|
|
1773
|
+
name = _ref22.name,
|
|
1774
|
+
tieredAmountResult = _ref22.tieredAmountResult,
|
|
1775
|
+
fromDate = _ref22.fromDate,
|
|
1776
|
+
dateMount = _ref22.dateMount,
|
|
1777
|
+
promoMethodEnum = _ref22.promoMethodEnum,
|
|
1778
|
+
discountPct = _ref22.discountPct,
|
|
1779
|
+
nominalAmount = _ref22.nominalAmount,
|
|
1780
|
+
promoId = _ref22.promoId,
|
|
1781
|
+
id = _ref22.id,
|
|
1782
|
+
doorsill = _ref22.doorsill;
|
|
1853
1783
|
|
|
1854
1784
|
var condValue = tieredAmountResult.condValue,
|
|
1855
1785
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1877,10 +1807,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1877
1807
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1878
1808
|
// id
|
|
1879
1809
|
// })
|
|
1880
|
-
|
|
1810
|
+
_this14.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
1881
1811
|
djq1 = false;
|
|
1882
1812
|
} else {
|
|
1883
|
-
|
|
1813
|
+
_this14.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
1884
1814
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
1885
1815
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
1886
1816
|
}
|
|
@@ -1893,8 +1823,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1893
1823
|
}, {
|
|
1894
1824
|
key: 'calcDjqValue',
|
|
1895
1825
|
value: function calcDjqValue(q1) {
|
|
1896
|
-
var
|
|
1897
|
-
isNewRetailBCPos =
|
|
1826
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
1827
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
1898
1828
|
|
|
1899
1829
|
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1900
1830
|
Differentiate = _enumController$getEn16.Differentiate;
|
|
@@ -1970,7 +1900,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1970
1900
|
|
|
1971
1901
|
if (this.amount > 0 && (v === '' || v === '0.00') && sum !== 0) {
|
|
1972
1902
|
this.currentMode.errinfo = "实收金额必须录入";
|
|
1973
|
-
} else if (Math.abs(parseFloat(v)) > Math.abs(
|
|
1903
|
+
} else if (Math.abs(parseFloat(v)) > Math.abs(sum)) {
|
|
1974
1904
|
this.currentMode.errinfo = "实收不应大于应收";
|
|
1975
1905
|
} else if (parseFloat(v) > 0 && parseFloat(v) > (max || 0)) {
|
|
1976
1906
|
this.currentMode.errinfo = "余额不足";
|
|
@@ -1979,28 +1909,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1979
1909
|
}, {
|
|
1980
1910
|
key: 'calcMemberBalance',
|
|
1981
1911
|
value: function calcMemberBalance() {
|
|
1982
|
-
this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
|
|
1912
|
+
this.currentMode.balance = this.currentMode.member.rawbalance - this.currentMode.value;
|
|
1983
1913
|
}
|
|
1984
1914
|
}, {
|
|
1985
1915
|
key: 'setPaymodes',
|
|
1986
1916
|
value: function () {
|
|
1987
|
-
var
|
|
1988
|
-
var
|
|
1917
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1918
|
+
var _this15 = this;
|
|
1989
1919
|
|
|
1990
1920
|
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1991
1921
|
|
|
1992
|
-
return _regenerator2.default.wrap(function
|
|
1922
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1993
1923
|
while (1) {
|
|
1994
|
-
switch (
|
|
1924
|
+
switch (_context7.prev = _context7.next) {
|
|
1995
1925
|
case 0:
|
|
1996
1926
|
_enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
|
|
1997
1927
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1998
1928
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1999
|
-
|
|
1929
|
+
_context7.next = 5;
|
|
2000
1930
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
2001
1931
|
|
|
2002
1932
|
case 5:
|
|
2003
|
-
modes =
|
|
1933
|
+
modes = _context7.sent;
|
|
2004
1934
|
|
|
2005
1935
|
if (modes) {
|
|
2006
1936
|
(0, _mobx.runInAction)(function () {
|
|
@@ -2009,7 +1939,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2009
1939
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
2010
1940
|
|
|
2011
1941
|
if (mode.Code == PayStyle.hyczk) {
|
|
2012
|
-
mode.Name = '
|
|
1942
|
+
mode.Name = '储值余额';
|
|
2013
1943
|
}
|
|
2014
1944
|
paymodes.push({
|
|
2015
1945
|
name: mode.Name,
|
|
@@ -2025,21 +1955,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2025
1955
|
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
2026
1956
|
});
|
|
2027
1957
|
});
|
|
2028
|
-
|
|
1958
|
+
_this15.paymodes = paymodes;
|
|
2029
1959
|
//modes.QuickSettleStyles
|
|
2030
1960
|
});
|
|
2031
1961
|
}
|
|
2032
1962
|
|
|
2033
1963
|
case 7:
|
|
2034
1964
|
case 'end':
|
|
2035
|
-
return
|
|
1965
|
+
return _context7.stop();
|
|
2036
1966
|
}
|
|
2037
1967
|
}
|
|
2038
|
-
},
|
|
1968
|
+
}, _callee7, this);
|
|
2039
1969
|
}));
|
|
2040
1970
|
|
|
2041
|
-
function setPaymodes(
|
|
2042
|
-
return
|
|
1971
|
+
function setPaymodes(_x5, _x6) {
|
|
1972
|
+
return _ref24.apply(this, arguments);
|
|
2043
1973
|
}
|
|
2044
1974
|
|
|
2045
1975
|
return setPaymodes;
|
|
@@ -2056,57 +1986,47 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2056
1986
|
}
|
|
2057
1987
|
}]);
|
|
2058
1988
|
return PayMode;
|
|
2059
|
-
}(), (
|
|
1989
|
+
}(), (_descriptor3 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2060
1990
|
enumerable: true,
|
|
2061
1991
|
initializer: function initializer() {
|
|
2062
1992
|
return "";
|
|
2063
1993
|
}
|
|
2064
|
-
}),
|
|
1994
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2065
1995
|
enumerable: true,
|
|
2066
1996
|
initializer: function initializer() {
|
|
2067
1997
|
return 0;
|
|
2068
1998
|
}
|
|
2069
|
-
}),
|
|
1999
|
+
}), _descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2070
2000
|
enumerable: true,
|
|
2071
2001
|
initializer: function initializer() {
|
|
2072
2002
|
return 0;
|
|
2073
2003
|
}
|
|
2074
|
-
}),
|
|
2004
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2075
2005
|
enumerable: true,
|
|
2076
2006
|
initializer: function initializer() {
|
|
2077
2007
|
return [];
|
|
2078
2008
|
}
|
|
2079
|
-
}),
|
|
2009
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2080
2010
|
enumerable: true,
|
|
2081
2011
|
initializer: function initializer() {
|
|
2082
2012
|
return [];
|
|
2083
2013
|
}
|
|
2084
|
-
}),
|
|
2014
|
+
}), _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], {
|
|
2085
2015
|
enumerable: true,
|
|
2086
2016
|
initializer: function initializer() {
|
|
2087
|
-
|
|
2088
|
-
}
|
|
2089
|
-
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2090
|
-
enumerable: true,
|
|
2091
|
-
initializer: function initializer() {
|
|
2092
|
-
return null;
|
|
2093
|
-
}
|
|
2094
|
-
}), _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), _descriptor12 = _applyDecoratedDescriptor(_class3.prototype, 'calcCheckList', [_mobx.action], {
|
|
2095
|
-
enumerable: true,
|
|
2096
|
-
initializer: function initializer() {
|
|
2097
|
-
var _this18 = this;
|
|
2017
|
+
var _this16 = this;
|
|
2098
2018
|
|
|
2099
2019
|
return function () {
|
|
2100
|
-
|
|
2020
|
+
_this16.checkList = [];
|
|
2101
2021
|
};
|
|
2102
2022
|
}
|
|
2103
|
-
}), _applyDecoratedDescriptor(_class3.prototype, '
|
|
2023
|
+
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
2104
2024
|
enumerable: true,
|
|
2105
2025
|
initializer: function initializer() {
|
|
2106
|
-
var
|
|
2026
|
+
var _this17 = this;
|
|
2107
2027
|
|
|
2108
2028
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2109
|
-
|
|
2029
|
+
_this17.currentMode.djqs.forEach(function (ele) {
|
|
2110
2030
|
if (ele.id === id) {
|
|
2111
2031
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2112
2032
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2116,10 +2036,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2116
2036
|
});
|
|
2117
2037
|
};
|
|
2118
2038
|
}
|
|
2119
|
-
}),
|
|
2039
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2120
2040
|
enumerable: true,
|
|
2121
2041
|
initializer: function initializer() {
|
|
2122
|
-
var
|
|
2042
|
+
var _this18 = this;
|
|
2123
2043
|
|
|
2124
2044
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2125
2045
|
var djq = {
|
|
@@ -2141,25 +2061,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2141
2061
|
couponCategoryEnum: couponCategoryEnum,
|
|
2142
2062
|
id: id
|
|
2143
2063
|
};
|
|
2144
|
-
|
|
2064
|
+
_this18.currentMode.djqs.push(djq);
|
|
2145
2065
|
};
|
|
2146
2066
|
}
|
|
2147
2067
|
}), _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);
|
|
2148
2068
|
var Member = exports.Member = (_class5 = function () {
|
|
2149
2069
|
function Member(m) {
|
|
2150
|
-
var
|
|
2070
|
+
var _this19 = this;
|
|
2151
2071
|
|
|
2152
2072
|
(0, _classCallCheck3.default)(this, Member);
|
|
2153
2073
|
|
|
2154
|
-
_initDefineProp(this, 'cardNo',
|
|
2074
|
+
_initDefineProp(this, 'cardNo', _descriptor11, this);
|
|
2155
2075
|
|
|
2156
|
-
_initDefineProp(this, 'balance',
|
|
2076
|
+
_initDefineProp(this, 'balance', _descriptor12, this);
|
|
2157
2077
|
|
|
2158
|
-
_initDefineProp(this, 'exchangable',
|
|
2078
|
+
_initDefineProp(this, 'exchangable', _descriptor13, this);
|
|
2159
2079
|
|
|
2160
|
-
_initDefineProp(this, '
|
|
2080
|
+
_initDefineProp(this, 'MeStorageCardId', _descriptor14, this);
|
|
2161
2081
|
|
|
2162
|
-
_initDefineProp(this, '
|
|
2082
|
+
_initDefineProp(this, 'StorageCardNo', _descriptor15, this);
|
|
2163
2083
|
|
|
2164
2084
|
if (m) {
|
|
2165
2085
|
this.id = m.ID;
|
|
@@ -2170,15 +2090,17 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2170
2090
|
return key == 'canusedbalancestorage';
|
|
2171
2091
|
});
|
|
2172
2092
|
|
|
2173
|
-
var
|
|
2174
|
-
isNewRetailBCPos =
|
|
2093
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
2094
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
2175
2095
|
|
|
2096
|
+
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2097
|
+
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|
|
2176
2098
|
(0, _mobx.runInAction)(function () {
|
|
2177
|
-
|
|
2099
|
+
_this19.cardNo = m.CardCode;
|
|
2178
2100
|
if (index >= 0) {
|
|
2179
|
-
|
|
2101
|
+
_this19.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2180
2102
|
} else {
|
|
2181
|
-
|
|
2103
|
+
_this19.balance = _this19.rawbalance;
|
|
2182
2104
|
}
|
|
2183
2105
|
});
|
|
2184
2106
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2198,22 +2120,32 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2198
2120
|
this.cardNo = v;
|
|
2199
2121
|
this.id = null;
|
|
2200
2122
|
}
|
|
2123
|
+
}, {
|
|
2124
|
+
key: 'setMeStorageCardId',
|
|
2125
|
+
value: function setMeStorageCardId(v) {
|
|
2126
|
+
this.MeStorageCardId = v;
|
|
2127
|
+
}
|
|
2128
|
+
}, {
|
|
2129
|
+
key: 'setStorageCardNo',
|
|
2130
|
+
value: function setStorageCardNo(v) {
|
|
2131
|
+
this.StorageCardNo = v;
|
|
2132
|
+
}
|
|
2201
2133
|
}]);
|
|
2202
2134
|
return Member;
|
|
2203
|
-
}(), (
|
|
2135
|
+
}(), (_descriptor11 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2204
2136
|
enumerable: true,
|
|
2205
2137
|
initializer: null
|
|
2206
|
-
}),
|
|
2138
|
+
}), _descriptor12 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2207
2139
|
enumerable: true,
|
|
2208
2140
|
initializer: null
|
|
2209
|
-
}),
|
|
2141
|
+
}), _descriptor13 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2210
2142
|
enumerable: true,
|
|
2211
2143
|
initializer: null
|
|
2212
|
-
}),
|
|
2144
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class5.prototype, 'MeStorageCardId', [_mobx.observable], {
|
|
2213
2145
|
enumerable: true,
|
|
2214
2146
|
initializer: null
|
|
2215
|
-
}),
|
|
2147
|
+
}), _descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'StorageCardNo', [_mobx.observable], {
|
|
2216
2148
|
enumerable: true,
|
|
2217
2149
|
initializer: null
|
|
2218
|
-
}), _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)), _class5);
|
|
2150
|
+
}), _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);
|
|
2219
2151
|
//# sourceMappingURL=settlementStore.js.map
|