tplus-components-touch 3.31.1 → 3.31.5
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 +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +162 -24
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +376 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +213 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -7
- 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 +4 -4
- 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 +133 -14
- 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/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +27 -27
- 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 +77 -67
- 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 +9 -7
- 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 +156 -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 +72 -72
- 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/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 +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +12 -11
- 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/moreCzkTable/index.js +156 -0
- package/dist/components/settlement/moreCzkTable/index.js.map +1 -0
- package/dist/components/settlement/moreCzkTable/style.less +7 -0
- 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 +745 -484
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1664 -1594
- package/dist/components/settlement/settlementStore.js +542 -313
- 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_index.html +49 -3
- package/dist/components/ticon/iconfont/iconfont.css +11 -3
- 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 +14 -0
- 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 +15 -11
- 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 +13 -12
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +376 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +20 -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 +1 -1
- 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, _descriptor3, _descriptor4, _desc2, _value2, _class3, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _desc3, _value3, _class5, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19;
|
|
45
45
|
|
|
46
46
|
var _mobx = require('mobx');
|
|
47
47
|
|
|
@@ -178,6 +178,46 @@ 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
|
+
this.handleCzkData = function (m) {
|
|
186
|
+
if (!m || !m.StorageCardNo) {
|
|
187
|
+
(0, _mobx.runInAction)(function () {
|
|
188
|
+
_this2.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
189
|
+
});
|
|
190
|
+
} else {
|
|
191
|
+
(0, _mobx.runInAction)(function () {
|
|
192
|
+
_this2.paymode.currentMode.errinfo = "";
|
|
193
|
+
_this2.paymode.currentMode.memberId = m.ID;
|
|
194
|
+
_this2.paymode.currentMode.value = (0, _utils.getFixedNumber)(_this2.brefund ? _this2.paymode.receivable : Math.max(_this2.paymode.receivable, 0));
|
|
195
|
+
_this2.updateEvent();
|
|
196
|
+
var message = '';
|
|
197
|
+
var sum = (0, _reduce3.default)(_this2.paymode.thePaymodes, function (total, cur) {
|
|
198
|
+
return total + cur.value;
|
|
199
|
+
}, 0);
|
|
200
|
+
// 对于卡不用判断会员的一些信息
|
|
201
|
+
// if (global.CheckMemberStorageProcessorBlock ) {
|
|
202
|
+
// message= CheckMemberStorageProcessorBlock.execute(m);
|
|
203
|
+
// }
|
|
204
|
+
if (!String.isNullOrEmpty(message)) {
|
|
205
|
+
_this2.paymode.currentMode.errinfo = message;
|
|
206
|
+
} else if (_this2.checkReceived(_this2.paymode.currentMode, "balance")) {
|
|
207
|
+
_this2.paymode.currentMode.errinfo = "余额不足";
|
|
208
|
+
} else if (_this2.paymode.amount > 0 && parseFloat(_this2.paymode.amount) !== sum && _this2.paymode.currentMode.value == 0) {
|
|
209
|
+
_this2.paymode.currentMode.errinfo = "实收金额必须录入";
|
|
210
|
+
} else {
|
|
211
|
+
// 查询成功后将焦点移入下一个输入框
|
|
212
|
+
setTimeout(function () {
|
|
213
|
+
var nextInput = document.querySelector('.czk .received .input');
|
|
214
|
+
nextInput && nextInput.select();
|
|
215
|
+
}, 300);
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
|
|
181
221
|
this.getCouponList = function (coupon_code) {
|
|
182
222
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
183
223
|
PayStyle = _enumController$getEn.PayStyle,
|
|
@@ -425,7 +465,7 @@ var SettlementStore = (_class = function () {
|
|
|
425
465
|
}
|
|
426
466
|
}, {
|
|
427
467
|
key: 'init',
|
|
428
|
-
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
|
|
468
|
+
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
|
|
429
469
|
var _this3 = this;
|
|
430
470
|
|
|
431
471
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -441,9 +481,15 @@ var SettlementStore = (_class = function () {
|
|
|
441
481
|
if (global.DealSingleRowAmountSettingProcessorBlock) {
|
|
442
482
|
global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
|
|
443
483
|
}
|
|
484
|
+
|
|
485
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
486
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
487
|
+
|
|
488
|
+
var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
|
|
489
|
+
|
|
444
490
|
// 成交金额抹零
|
|
445
491
|
if (global.DealAmountSettingProcessorBlock) {
|
|
446
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
492
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
|
|
447
493
|
}
|
|
448
494
|
});
|
|
449
495
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
@@ -493,8 +539,8 @@ var SettlementStore = (_class = function () {
|
|
|
493
539
|
value: function initByOriginReturn() {
|
|
494
540
|
var _this5 = this;
|
|
495
541
|
|
|
496
|
-
var _enumController$
|
|
497
|
-
PayStyle = _enumController$
|
|
542
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
543
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
498
544
|
|
|
499
545
|
var _ref5 = _mutantsUtil.platform || {},
|
|
500
546
|
isNewRetailBCPos = _ref5.isNewRetailBCPos;
|
|
@@ -541,13 +587,23 @@ var SettlementStore = (_class = function () {
|
|
|
541
587
|
}
|
|
542
588
|
});
|
|
543
589
|
(0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
|
|
544
|
-
var balanceAmount =
|
|
545
|
-
|
|
590
|
+
var balanceAmount = null;
|
|
591
|
+
var storageCardNo = null;
|
|
592
|
+
var meStorageCardId = null;
|
|
593
|
+
detail.DynamicPropertyKeys.forEach(function (ele, index) {
|
|
594
|
+
if (ele === "mestoragecard") {
|
|
595
|
+
balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
|
|
596
|
+
storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
|
|
597
|
+
meStorageCardId = detail.DynamicPropertyValues[index].MeStorageCardId;
|
|
598
|
+
}
|
|
599
|
+
});
|
|
546
600
|
var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
|
|
547
|
-
member: new Member(detail.Member),
|
|
548
|
-
authCode: detail.Password,
|
|
601
|
+
member: new Member(detail.Member ? detail.Member : null),
|
|
602
|
+
authCode: detail.Password ? detail.Password : null,
|
|
549
603
|
balance: balanceAmount,
|
|
550
|
-
boriginReturn: true
|
|
604
|
+
boriginReturn: true,
|
|
605
|
+
meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
|
|
606
|
+
storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
|
|
551
607
|
});
|
|
552
608
|
_this5.paymode.thePaymodes.push(newmode);
|
|
553
609
|
});
|
|
@@ -562,7 +618,7 @@ var SettlementStore = (_class = function () {
|
|
|
562
618
|
}, {
|
|
563
619
|
key: 'quickSettle',
|
|
564
620
|
value: function quickSettle(key) {
|
|
565
|
-
this.addPay(key);
|
|
621
|
+
this.addPay(key, true);
|
|
566
622
|
}
|
|
567
623
|
|
|
568
624
|
//outer call
|
|
@@ -573,8 +629,8 @@ var SettlementStore = (_class = function () {
|
|
|
573
629
|
value: function changeFocusAndAddPay(type) {
|
|
574
630
|
var _this6 = this;
|
|
575
631
|
|
|
576
|
-
var _enumController$
|
|
577
|
-
PayStyle = _enumController$
|
|
632
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
633
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
578
634
|
|
|
579
635
|
this.paymode.currentFocus = type;
|
|
580
636
|
if (this.paymode.currentMode) {
|
|
@@ -591,7 +647,7 @@ var SettlementStore = (_class = function () {
|
|
|
591
647
|
|
|
592
648
|
//抵现积分
|
|
593
649
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
594
|
-
Idmember: this.paymode.currentMode.
|
|
650
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
595
651
|
TotalTaxAmount: this.paymode.amount,
|
|
596
652
|
BalanceTaxAmount: this.paymode.currentMode.value
|
|
597
653
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -620,7 +676,6 @@ var SettlementStore = (_class = function () {
|
|
|
620
676
|
|
|
621
677
|
if ((0, _trim3.default)(v) === "") {
|
|
622
678
|
(0, _mobx.runInAction)(function () {
|
|
623
|
-
_this7.paymode.currentMode.member = new Member(null);
|
|
624
679
|
_this7.paymode.currentMode.errinfo = "请输入储值卡";
|
|
625
680
|
});
|
|
626
681
|
return;
|
|
@@ -634,66 +689,98 @@ var SettlementStore = (_class = function () {
|
|
|
634
689
|
var address = '';
|
|
635
690
|
if (isNewRetailBCPos) {
|
|
636
691
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
637
|
-
address = '/
|
|
638
|
-
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (
|
|
639
|
-
var
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
692
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
693
|
+
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
694
|
+
var _ref8 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
|
|
695
|
+
var data, m;
|
|
696
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
697
|
+
while (1) {
|
|
698
|
+
switch (_context2.prev = _context2.next) {
|
|
699
|
+
case 0:
|
|
700
|
+
data = result.data;
|
|
701
|
+
m = data && data.length && data[0];
|
|
702
|
+
|
|
703
|
+
if (!(result && result.data.length)) {
|
|
704
|
+
_context2.next = 25;
|
|
705
|
+
break;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
if (!(result.data.length === 1)) {
|
|
709
|
+
_context2.next = 14;
|
|
710
|
+
break;
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
|
|
714
|
+
_context2.next = 10;
|
|
715
|
+
break;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
_this7.paymode.updateCardInfo(m);
|
|
719
|
+
_this7.handleCzkData(m);
|
|
720
|
+
return _context2.abrupt('return', result.data);
|
|
721
|
+
|
|
722
|
+
case 10:
|
|
723
|
+
_context2.next = 12;
|
|
724
|
+
return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
|
|
725
|
+
var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
|
|
726
|
+
if (data1.enable) {
|
|
727
|
+
_this7.paymode.updateCardInfo(m);
|
|
728
|
+
_this7.handleCzkData(m);
|
|
729
|
+
return result1.data;
|
|
730
|
+
} else {
|
|
731
|
+
_message2.default.warn(data1.disableReason);
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
|
|
735
|
+
case 12:
|
|
736
|
+
_context2.next = 25;
|
|
737
|
+
break;
|
|
738
|
+
|
|
739
|
+
case 14:
|
|
740
|
+
if (!(result.data && result.data.length === 1)) {
|
|
741
|
+
_context2.next = 19;
|
|
742
|
+
break;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
_this7.paymode.updateCardInfo(result.data[0]);
|
|
746
|
+
return _context2.abrupt('return', result.data);
|
|
747
|
+
|
|
748
|
+
case 19:
|
|
749
|
+
if (!(result.data && result.data.length > 1)) {
|
|
750
|
+
_context2.next = 23;
|
|
751
|
+
break;
|
|
752
|
+
}
|
|
753
|
+
|
|
754
|
+
return _context2.abrupt('return', result.data);
|
|
755
|
+
|
|
756
|
+
case 23:
|
|
757
|
+
_message2.default.warn('没有可用储值卡!');
|
|
758
|
+
return _context2.abrupt('return', false);
|
|
759
|
+
|
|
760
|
+
case 25:
|
|
761
|
+
case 'end':
|
|
762
|
+
return _context2.stop();
|
|
763
|
+
}
|
|
678
764
|
}
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
|
|
765
|
+
}, _callee2, _this7);
|
|
766
|
+
}));
|
|
767
|
+
|
|
768
|
+
return function (_x2) {
|
|
769
|
+
return _ref8.apply(this, arguments);
|
|
770
|
+
};
|
|
771
|
+
}()
|
|
772
|
+
// result.data.forEach((m) => {
|
|
773
|
+
// if (m.CardTypeEnum === 'BALANCE_CARD') {
|
|
774
|
+
// // 会员概念改为卡,把这些字段都放开
|
|
775
|
+
// this.paymode.updateCardInfo(m);
|
|
776
|
+
// }
|
|
777
|
+
// })
|
|
778
|
+
);
|
|
682
779
|
} else {
|
|
683
780
|
address = 'AA.DR.newRetailMember.SearchMember';
|
|
684
781
|
return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
|
|
685
782
|
var data = JSON.parse(result.Data);
|
|
686
783
|
var m = data && data.length > 0 && data[0];
|
|
687
|
-
|
|
688
|
-
var _ref9 = _mutantsUtil.platform || {},
|
|
689
|
-
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
690
|
-
|
|
691
|
-
if (isNewRetailBCPos) {
|
|
692
|
-
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
693
|
-
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
694
|
-
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
695
|
-
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
696
|
-
}
|
|
697
784
|
if (!m || !m.ID) {
|
|
698
785
|
(0, _mobx.runInAction)(function () {
|
|
699
786
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
@@ -755,8 +842,8 @@ var SettlementStore = (_class = function () {
|
|
|
755
842
|
}, {
|
|
756
843
|
key: 'setCurrentMode',
|
|
757
844
|
value: function setCurrentMode(id, type, append) {
|
|
758
|
-
var _enumController$
|
|
759
|
-
PayStyle = _enumController$
|
|
845
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
846
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
760
847
|
|
|
761
848
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
762
849
|
if (mode) {
|
|
@@ -774,8 +861,8 @@ var SettlementStore = (_class = function () {
|
|
|
774
861
|
value: function afterSetCurrentMode(type) {
|
|
775
862
|
var _this8 = this;
|
|
776
863
|
|
|
777
|
-
var _enumController$
|
|
778
|
-
PayStyle = _enumController$
|
|
864
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
865
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
779
866
|
|
|
780
867
|
if (type == PayStyle.djq) {
|
|
781
868
|
this.paymode.calcDjqValue();
|
|
@@ -789,7 +876,7 @@ var SettlementStore = (_class = function () {
|
|
|
789
876
|
}
|
|
790
877
|
|
|
791
878
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
792
|
-
Idmember: this.paymode.currentMode.
|
|
879
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
793
880
|
TotalTaxAmount: this.paymode.amount,
|
|
794
881
|
BalanceTaxAmount: this.paymode.amount
|
|
795
882
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -810,12 +897,13 @@ var SettlementStore = (_class = function () {
|
|
|
810
897
|
}
|
|
811
898
|
}, {
|
|
812
899
|
key: 'genNewMode',
|
|
813
|
-
value: function genNewMode(type, notwithm, v) {
|
|
814
|
-
var _enumController$
|
|
815
|
-
PayStyle = _enumController$
|
|
900
|
+
value: function genNewMode(type, notwithm, v, isQuick) {
|
|
901
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
902
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
816
903
|
|
|
817
904
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
818
905
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
906
|
+
var memberId = this.member && this.member.ID ? this.member.ID : null;
|
|
819
907
|
var mode = (0, _mobx.observable)({
|
|
820
908
|
paymethodId: this.paymode.counter,
|
|
821
909
|
name: themode.name,
|
|
@@ -827,6 +915,8 @@ var SettlementStore = (_class = function () {
|
|
|
827
915
|
order: this.paymode.thePaymodes.length + 1,
|
|
828
916
|
paymentType: type,
|
|
829
917
|
djqs: [],
|
|
918
|
+
card: null,
|
|
919
|
+
memberId: !notwithm ? memberId : null,
|
|
830
920
|
member: new Member(!notwithm ? this.member : null),
|
|
831
921
|
authCode: '',
|
|
832
922
|
steadCashIntegral: null,
|
|
@@ -834,9 +924,9 @@ var SettlementStore = (_class = function () {
|
|
|
834
924
|
maxamount: this.paymode.amount
|
|
835
925
|
});
|
|
836
926
|
if (type == PayStyle.hyczk) {
|
|
837
|
-
if (!mode.
|
|
927
|
+
if (!mode.storageCardNo) {
|
|
838
928
|
(0, _mobx.runInAction)(function () {
|
|
839
|
-
mode.errinfo = '
|
|
929
|
+
mode.errinfo = '未录入手机号或储值卡号';
|
|
840
930
|
});
|
|
841
931
|
} else if (this.checkReceived(mode, "balance")) {
|
|
842
932
|
(0, _mobx.runInAction)(function () {
|
|
@@ -855,8 +945,8 @@ var SettlementStore = (_class = function () {
|
|
|
855
945
|
value: function setMaxAmount(type, mode) {
|
|
856
946
|
var _this9 = this;
|
|
857
947
|
|
|
858
|
-
var _enumController$
|
|
859
|
-
PayStyle = _enumController$
|
|
948
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
949
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
860
950
|
|
|
861
951
|
var sum = 0;
|
|
862
952
|
if (type == PayStyle.hyczk) {
|
|
@@ -932,8 +1022,8 @@ var SettlementStore = (_class = function () {
|
|
|
932
1022
|
}, {
|
|
933
1023
|
key: 'addPayDirectly',
|
|
934
1024
|
value: function addPayDirectly(pay) {
|
|
935
|
-
var _enumController$
|
|
936
|
-
PayStyle = _enumController$
|
|
1025
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
1026
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
937
1027
|
|
|
938
1028
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
939
1029
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -950,9 +1040,9 @@ var SettlementStore = (_class = function () {
|
|
|
950
1040
|
}
|
|
951
1041
|
}, {
|
|
952
1042
|
key: 'addPay',
|
|
953
|
-
value: function addPay(type) {
|
|
954
|
-
var _enumController$
|
|
955
|
-
PayStyle = _enumController$
|
|
1043
|
+
value: function addPay(type, isQuick) {
|
|
1044
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1045
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
956
1046
|
|
|
957
1047
|
var pos = this.paymode.thePaymodes.length;
|
|
958
1048
|
if (type == PayStyle.hyczk) {
|
|
@@ -962,14 +1052,15 @@ var SettlementStore = (_class = function () {
|
|
|
962
1052
|
pos = index == -1 ? pos : index + 1;
|
|
963
1053
|
}
|
|
964
1054
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
965
|
-
|
|
1055
|
+
|
|
1056
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
966
1057
|
this.paymode.calcReserved();
|
|
967
1058
|
}
|
|
968
1059
|
}, {
|
|
969
1060
|
key: 'delPay',
|
|
970
1061
|
value: function delPay(index) {
|
|
971
|
-
var _enumController$
|
|
972
|
-
PayStyle = _enumController$
|
|
1062
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
1063
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
973
1064
|
|
|
974
1065
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
975
1066
|
return mode.paymethodId === index;
|
|
@@ -980,80 +1071,80 @@ var SettlementStore = (_class = function () {
|
|
|
980
1071
|
}, {
|
|
981
1072
|
key: 'commit',
|
|
982
1073
|
value: function () {
|
|
983
|
-
var
|
|
984
|
-
var
|
|
1074
|
+
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
|
|
1075
|
+
var _ref10, isNewRetailBCPos;
|
|
985
1076
|
|
|
986
|
-
return _regenerator2.default.wrap(function
|
|
1077
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
987
1078
|
while (1) {
|
|
988
|
-
switch (
|
|
1079
|
+
switch (_context3.prev = _context3.next) {
|
|
989
1080
|
case 0:
|
|
990
1081
|
console.log('settlementStore.commit开始,参数:' + bTest);
|
|
991
1082
|
|
|
992
1083
|
if (!bTest) {
|
|
993
|
-
|
|
1084
|
+
_context3.next = 3;
|
|
994
1085
|
break;
|
|
995
1086
|
}
|
|
996
1087
|
|
|
997
|
-
return
|
|
1088
|
+
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
998
1089
|
|
|
999
1090
|
case 3:
|
|
1000
|
-
|
|
1001
|
-
|
|
1091
|
+
_ref10 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
1092
|
+
_context3.prev = 4;
|
|
1002
1093
|
|
|
1003
1094
|
if (!(this.type == 1)) {
|
|
1004
|
-
|
|
1095
|
+
_context3.next = 10;
|
|
1005
1096
|
break;
|
|
1006
1097
|
}
|
|
1007
1098
|
|
|
1008
|
-
|
|
1099
|
+
_context3.next = 8;
|
|
1009
1100
|
return this.saveMember();
|
|
1010
1101
|
|
|
1011
1102
|
case 8:
|
|
1012
|
-
|
|
1103
|
+
_context3.next = 18;
|
|
1013
1104
|
break;
|
|
1014
1105
|
|
|
1015
1106
|
case 10:
|
|
1016
1107
|
if (!isNewRetailBCPos) {
|
|
1017
|
-
|
|
1108
|
+
_context3.next = 13;
|
|
1018
1109
|
break;
|
|
1019
1110
|
}
|
|
1020
1111
|
|
|
1021
|
-
|
|
1112
|
+
_context3.next = 13;
|
|
1022
1113
|
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1023
1114
|
|
|
1024
1115
|
case 13:
|
|
1025
|
-
|
|
1116
|
+
_context3.next = 15;
|
|
1026
1117
|
return this.save();
|
|
1027
1118
|
|
|
1028
1119
|
case 15:
|
|
1029
1120
|
if (!isNewRetailBCPos) {
|
|
1030
|
-
|
|
1121
|
+
_context3.next = 18;
|
|
1031
1122
|
break;
|
|
1032
1123
|
}
|
|
1033
1124
|
|
|
1034
|
-
|
|
1125
|
+
_context3.next = 18;
|
|
1035
1126
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1036
1127
|
|
|
1037
1128
|
case 18:
|
|
1038
|
-
return
|
|
1129
|
+
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
1039
1130
|
|
|
1040
1131
|
case 21:
|
|
1041
|
-
|
|
1042
|
-
|
|
1132
|
+
_context3.prev = 21;
|
|
1133
|
+
_context3.t0 = _context3['catch'](4);
|
|
1043
1134
|
|
|
1044
|
-
console.error('settlementStore.commit失败,错误信息:' +
|
|
1045
|
-
return
|
|
1135
|
+
console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
|
|
1136
|
+
return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
|
|
1046
1137
|
|
|
1047
1138
|
case 25:
|
|
1048
1139
|
case 'end':
|
|
1049
|
-
return
|
|
1140
|
+
return _context3.stop();
|
|
1050
1141
|
}
|
|
1051
1142
|
}
|
|
1052
|
-
},
|
|
1143
|
+
}, _callee3, this, [[4, 21]]);
|
|
1053
1144
|
}));
|
|
1054
1145
|
|
|
1055
|
-
function commit(
|
|
1056
|
-
return
|
|
1146
|
+
function commit(_x3) {
|
|
1147
|
+
return _ref9.apply(this, arguments);
|
|
1057
1148
|
}
|
|
1058
1149
|
|
|
1059
1150
|
return commit;
|
|
@@ -1069,8 +1160,8 @@ var SettlementStore = (_class = function () {
|
|
|
1069
1160
|
value: function saveMember() {
|
|
1070
1161
|
var _this10 = this;
|
|
1071
1162
|
|
|
1072
|
-
var _enumController$
|
|
1073
|
-
PayStyle = _enumController$
|
|
1163
|
+
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1164
|
+
PayStyle = _enumController$getEn14.PayStyle;
|
|
1074
1165
|
|
|
1075
1166
|
(0, _mobx.runInAction)(function () {
|
|
1076
1167
|
_this10.dto.StorageMutiSettleDetails = [];
|
|
@@ -1111,23 +1202,22 @@ var SettlementStore = (_class = function () {
|
|
|
1111
1202
|
}, {
|
|
1112
1203
|
key: 'save',
|
|
1113
1204
|
value: function () {
|
|
1114
|
-
var
|
|
1205
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1115
1206
|
var _this11 = this;
|
|
1116
1207
|
|
|
1117
|
-
var _enumController$
|
|
1208
|
+
var _enumController$getEn15, PayStyle, _ref13, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1118
1209
|
|
|
1119
|
-
return _regenerator2.default.wrap(function
|
|
1210
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1120
1211
|
while (1) {
|
|
1121
|
-
switch (
|
|
1212
|
+
switch (_context4.prev = _context4.next) {
|
|
1122
1213
|
case 0:
|
|
1123
|
-
_enumController$
|
|
1214
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
|
|
1124
1215
|
|
|
1125
1216
|
(0, _mobx.runInAction)(function () {
|
|
1126
1217
|
_this11.dto.RetailPaymentDetails = [];
|
|
1127
1218
|
_this11.dto.RetailStorageDetails = [];
|
|
1128
1219
|
_this11.dto.RetailCouponDetails = [];
|
|
1129
1220
|
var czkSum = 0;
|
|
1130
|
-
var Idmember = _this11.dto.Idmember;
|
|
1131
1221
|
var count = 0;
|
|
1132
1222
|
var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
|
|
1133
1223
|
return parseFloat(mode.value) != 0;
|
|
@@ -1135,18 +1225,14 @@ var SettlementStore = (_class = function () {
|
|
|
1135
1225
|
(0, _each3.default)(thePaymodes, function (mode, index) {
|
|
1136
1226
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1137
1227
|
if (mode.paymentType == PayStyle.hyczk) {
|
|
1138
|
-
if (!Idmember) {
|
|
1139
|
-
Idmember = mode.member.id;
|
|
1140
|
-
}
|
|
1141
1228
|
czkSum = Math.Add(czkSum, mode.value);
|
|
1142
|
-
var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
|
|
1143
1229
|
_this11.dto.RetailStorageDetails.push({
|
|
1144
1230
|
Code: mode.paymethodId,
|
|
1145
|
-
MeStorageCardId:
|
|
1231
|
+
MeStorageCardId: mode.meStorageCardId,
|
|
1146
1232
|
StoragePaymentAmount: mode.value,
|
|
1147
1233
|
IsOrigReturn: false,
|
|
1148
1234
|
BalanceStorage: mode.balance,
|
|
1149
|
-
Idmember: mode.
|
|
1235
|
+
Idmember: mode.memberId,
|
|
1150
1236
|
DynamicPropertyKeys: [],
|
|
1151
1237
|
DynamicPropertyValues: [],
|
|
1152
1238
|
DataSource: { Id: _this11.dataSource },
|
|
@@ -1182,7 +1268,7 @@ var SettlementStore = (_class = function () {
|
|
|
1182
1268
|
ReductionAmount: djq.amount,
|
|
1183
1269
|
EnableAmount: djq.doorsill,
|
|
1184
1270
|
CouponTitle: djq.name,
|
|
1185
|
-
IdMember: djq.UMemberID ? mode.
|
|
1271
|
+
IdMember: djq.UMemberID ? mode.memberId : null,
|
|
1186
1272
|
LastTS: djq.LastTS,
|
|
1187
1273
|
PromotionId: djq.promoId,
|
|
1188
1274
|
PromotionRuleId: djq.promoRuleId,
|
|
@@ -1194,15 +1280,12 @@ var SettlementStore = (_class = function () {
|
|
|
1194
1280
|
}
|
|
1195
1281
|
});
|
|
1196
1282
|
|
|
1197
|
-
var
|
|
1198
|
-
isNewRetailBCPos =
|
|
1283
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1284
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1199
1285
|
|
|
1200
1286
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1201
1287
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1202
1288
|
if (isNewRetailBCPos) {
|
|
1203
|
-
// this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
|
|
1204
|
-
// value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
|
|
1205
|
-
// })
|
|
1206
1289
|
_this11.dto.RetailPaymentDetails.push({
|
|
1207
1290
|
Code: _this11.paymode.counter,
|
|
1208
1291
|
OrigAmount: czkSum,
|
|
@@ -1226,15 +1309,14 @@ var SettlementStore = (_class = function () {
|
|
|
1226
1309
|
DataSource: { Id: _this11.dataSource }
|
|
1227
1310
|
});
|
|
1228
1311
|
}
|
|
1229
|
-
_this11.dto.Idmember = Idmember;
|
|
1230
1312
|
}
|
|
1231
1313
|
});
|
|
1232
|
-
|
|
1314
|
+
_ref13 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1233
1315
|
|
|
1234
1316
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1235
1317
|
|
|
1236
1318
|
if (!isNewRetailBCPos) {
|
|
1237
|
-
|
|
1319
|
+
_context4.next = 20;
|
|
1238
1320
|
break;
|
|
1239
1321
|
}
|
|
1240
1322
|
|
|
@@ -1245,61 +1327,61 @@ var SettlementStore = (_class = function () {
|
|
|
1245
1327
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
1246
1328
|
}
|
|
1247
1329
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1248
|
-
|
|
1330
|
+
_context4.t1 = this.dto.IdbusiType == 37;
|
|
1249
1331
|
|
|
1250
|
-
if (!
|
|
1251
|
-
|
|
1332
|
+
if (!_context4.t1) {
|
|
1333
|
+
_context4.next = 13;
|
|
1252
1334
|
break;
|
|
1253
1335
|
}
|
|
1254
1336
|
|
|
1255
|
-
|
|
1337
|
+
_context4.next = 12;
|
|
1256
1338
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1257
1339
|
|
|
1258
1340
|
case 12:
|
|
1259
|
-
|
|
1341
|
+
_context4.t1 = _context4.sent;
|
|
1260
1342
|
|
|
1261
1343
|
case 13:
|
|
1262
|
-
|
|
1344
|
+
_context4.t0 = _context4.t1;
|
|
1263
1345
|
|
|
1264
|
-
if (
|
|
1265
|
-
|
|
1346
|
+
if (_context4.t0) {
|
|
1347
|
+
_context4.next = 16;
|
|
1266
1348
|
break;
|
|
1267
1349
|
}
|
|
1268
1350
|
|
|
1269
|
-
|
|
1351
|
+
_context4.t0 = this.dto.IdbusiType != 37;
|
|
1270
1352
|
|
|
1271
1353
|
case 16:
|
|
1272
|
-
if (!
|
|
1273
|
-
|
|
1354
|
+
if (!_context4.t0) {
|
|
1355
|
+
_context4.next = 18;
|
|
1274
1356
|
break;
|
|
1275
1357
|
}
|
|
1276
1358
|
|
|
1277
|
-
return
|
|
1359
|
+
return _context4.abrupt('return', (0, _tplusApi.ccApi)({ dto: (0, _extends3.default)({}, this.dto.cut(), { RetailOms: { RetailTypeEnum: RetailTypeEnum } }), cip: IPMSG.query || "" }, '/retail/RetailPos/settle', false, false, { method: 'post', timeout_skip: true }).then(function (resp) {
|
|
1278
1360
|
_this11.setDtoID(resp.ID);
|
|
1279
1361
|
_this11.paymode.checkList = [];
|
|
1280
1362
|
_this11.billID = resp.ID;
|
|
1281
1363
|
}));
|
|
1282
1364
|
|
|
1283
1365
|
case 18:
|
|
1284
|
-
|
|
1366
|
+
_context4.next = 21;
|
|
1285
1367
|
break;
|
|
1286
1368
|
|
|
1287
1369
|
case 20:
|
|
1288
|
-
return
|
|
1370
|
+
return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
|
|
1289
1371
|
_this11.setDtoID(resp.ID);
|
|
1290
1372
|
_this11.billID = resp.ID;
|
|
1291
1373
|
}));
|
|
1292
1374
|
|
|
1293
1375
|
case 21:
|
|
1294
1376
|
case 'end':
|
|
1295
|
-
return
|
|
1377
|
+
return _context4.stop();
|
|
1296
1378
|
}
|
|
1297
1379
|
}
|
|
1298
|
-
},
|
|
1380
|
+
}, _callee4, this);
|
|
1299
1381
|
}));
|
|
1300
1382
|
|
|
1301
1383
|
function save() {
|
|
1302
|
-
return
|
|
1384
|
+
return _ref11.apply(this, arguments);
|
|
1303
1385
|
}
|
|
1304
1386
|
|
|
1305
1387
|
return save;
|
|
@@ -1312,35 +1394,35 @@ var SettlementStore = (_class = function () {
|
|
|
1312
1394
|
}, {
|
|
1313
1395
|
key: 'querySettleResult',
|
|
1314
1396
|
value: function () {
|
|
1315
|
-
var
|
|
1316
|
-
return _regenerator2.default.wrap(function
|
|
1397
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1398
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1317
1399
|
while (1) {
|
|
1318
|
-
switch (
|
|
1400
|
+
switch (_context5.prev = _context5.next) {
|
|
1319
1401
|
case 0:
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1402
|
+
_context5.prev = 0;
|
|
1403
|
+
_context5.t0 = _promise2.default;
|
|
1404
|
+
_context5.next = 4;
|
|
1323
1405
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1324
1406
|
|
|
1325
1407
|
case 4:
|
|
1326
|
-
|
|
1327
|
-
return
|
|
1408
|
+
_context5.t1 = _context5.sent;
|
|
1409
|
+
return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
|
|
1328
1410
|
|
|
1329
1411
|
case 8:
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
return
|
|
1412
|
+
_context5.prev = 8;
|
|
1413
|
+
_context5.t2 = _context5['catch'](0);
|
|
1414
|
+
return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1333
1415
|
|
|
1334
1416
|
case 11:
|
|
1335
1417
|
case 'end':
|
|
1336
|
-
return
|
|
1418
|
+
return _context5.stop();
|
|
1337
1419
|
}
|
|
1338
1420
|
}
|
|
1339
|
-
},
|
|
1421
|
+
}, _callee5, this, [[0, 8]]);
|
|
1340
1422
|
}));
|
|
1341
1423
|
|
|
1342
1424
|
function querySettleResult() {
|
|
1343
|
-
return
|
|
1425
|
+
return _ref14.apply(this, arguments);
|
|
1344
1426
|
}
|
|
1345
1427
|
|
|
1346
1428
|
return querySettleResult;
|
|
@@ -1366,99 +1448,131 @@ var SettlementStore = (_class = function () {
|
|
|
1366
1448
|
}, {
|
|
1367
1449
|
key: 'validePwd',
|
|
1368
1450
|
value: function () {
|
|
1369
|
-
var
|
|
1370
|
-
var
|
|
1451
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
|
|
1452
|
+
var _ref16, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1371
1453
|
|
|
1372
|
-
return _regenerator2.default.wrap(function
|
|
1454
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1373
1455
|
while (1) {
|
|
1374
|
-
switch (
|
|
1456
|
+
switch (_context6.prev = _context6.next) {
|
|
1375
1457
|
case 0:
|
|
1376
|
-
|
|
1377
|
-
|
|
1458
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
1459
|
+
_context6.prev = 1;
|
|
1378
1460
|
|
|
1379
1461
|
if (!isNewRetailBCPos) {
|
|
1380
|
-
|
|
1462
|
+
_context6.next = 33;
|
|
1381
1463
|
break;
|
|
1382
1464
|
}
|
|
1383
1465
|
|
|
1384
1466
|
cook1 = this.getAllCookies()['errorPwd'];
|
|
1385
1467
|
cook2 = cook1 && JSON.parse(cook1);
|
|
1386
1468
|
message = '密码输入错误';
|
|
1387
|
-
|
|
1469
|
+
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1388
1470
|
|
|
1389
1471
|
if (!cook2) {
|
|
1390
|
-
|
|
1472
|
+
_context6.next = 12;
|
|
1391
1473
|
break;
|
|
1392
1474
|
}
|
|
1393
1475
|
|
|
1394
|
-
if (!cook2.hasOwnProperty(
|
|
1395
|
-
|
|
1476
|
+
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1477
|
+
_context6.next = 12;
|
|
1396
1478
|
break;
|
|
1397
1479
|
}
|
|
1398
1480
|
|
|
1399
|
-
if (!(cook2[
|
|
1400
|
-
|
|
1481
|
+
if (!(cook2[memberStorageId] > 3)) {
|
|
1482
|
+
_context6.next = 12;
|
|
1401
1483
|
break;
|
|
1402
1484
|
}
|
|
1403
1485
|
|
|
1404
1486
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1405
|
-
return
|
|
1487
|
+
return _context6.abrupt('return', _promise2.default.resolve(message));
|
|
1406
1488
|
|
|
1407
1489
|
case 12:
|
|
1408
|
-
|
|
1409
|
-
|
|
1490
|
+
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1491
|
+
result = null;
|
|
1410
1492
|
|
|
1411
|
-
|
|
1412
|
-
|
|
1493
|
+
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1494
|
+
_context6.next = 20;
|
|
1495
|
+
break;
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
_context6.next = 17;
|
|
1499
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1500
|
+
|
|
1501
|
+
case 17:
|
|
1502
|
+
result = _context6.sent;
|
|
1503
|
+
_context6.next = 29;
|
|
1504
|
+
break;
|
|
1505
|
+
|
|
1506
|
+
case 20:
|
|
1507
|
+
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1508
|
+
_context6.next = 26;
|
|
1509
|
+
break;
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
_context6.next = 23;
|
|
1513
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1514
|
+
|
|
1515
|
+
case 23:
|
|
1516
|
+
result = _context6.sent;
|
|
1517
|
+
_context6.next = 29;
|
|
1518
|
+
break;
|
|
1519
|
+
|
|
1520
|
+
case 26:
|
|
1521
|
+
_context6.next = 28;
|
|
1522
|
+
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1413
1523
|
|
|
1524
|
+
case 28:
|
|
1525
|
+
result = _context6.sent;
|
|
1526
|
+
|
|
1527
|
+
case 29:
|
|
1414
1528
|
if (!result.data) {
|
|
1415
1529
|
if (cook2) {
|
|
1416
|
-
if (cook2.hasOwnProperty(
|
|
1417
|
-
count = cook2[
|
|
1530
|
+
if (cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1531
|
+
count = cook2[memberStorageId];
|
|
1418
1532
|
|
|
1419
|
-
cook2[
|
|
1533
|
+
cook2[memberStorageId] = count + 1;
|
|
1420
1534
|
} else {
|
|
1421
|
-
cook2[
|
|
1535
|
+
cook2[memberStorageId] = 1;
|
|
1422
1536
|
}
|
|
1423
1537
|
} else {
|
|
1424
1538
|
cook2 = {};
|
|
1425
|
-
cook2[
|
|
1539
|
+
cook2[memberStorageId] = 1;
|
|
1426
1540
|
}
|
|
1427
1541
|
this.setCookie('errorPwd', '', -1);
|
|
1428
1542
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1429
1543
|
}
|
|
1430
|
-
return
|
|
1544
|
+
return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1431
1545
|
|
|
1432
|
-
case
|
|
1433
|
-
|
|
1546
|
+
case 33:
|
|
1547
|
+
_context6.next = 35;
|
|
1434
1548
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1435
1549
|
"Idmember": value.id,
|
|
1436
1550
|
"Password": value.pwd
|
|
1437
1551
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1438
1552
|
|
|
1439
|
-
case
|
|
1440
|
-
_result =
|
|
1441
|
-
return
|
|
1553
|
+
case 35:
|
|
1554
|
+
_result = _context6.sent;
|
|
1555
|
+
return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1442
1556
|
|
|
1443
|
-
case
|
|
1444
|
-
|
|
1557
|
+
case 37:
|
|
1558
|
+
_context6.next = 42;
|
|
1445
1559
|
break;
|
|
1446
1560
|
|
|
1447
|
-
case
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
return
|
|
1561
|
+
case 39:
|
|
1562
|
+
_context6.prev = 39;
|
|
1563
|
+
_context6.t0 = _context6['catch'](1);
|
|
1564
|
+
return _context6.abrupt('return', "failed");
|
|
1451
1565
|
|
|
1452
|
-
case
|
|
1566
|
+
case 42:
|
|
1453
1567
|
case 'end':
|
|
1454
|
-
return
|
|
1568
|
+
return _context6.stop();
|
|
1455
1569
|
}
|
|
1456
1570
|
}
|
|
1457
|
-
},
|
|
1571
|
+
}, _callee6, this, [[1, 39]]);
|
|
1458
1572
|
}));
|
|
1459
1573
|
|
|
1460
|
-
function validePwd(
|
|
1461
|
-
return
|
|
1574
|
+
function validePwd(_x4) {
|
|
1575
|
+
return _ref15.apply(this, arguments);
|
|
1462
1576
|
}
|
|
1463
1577
|
|
|
1464
1578
|
return validePwd;
|
|
@@ -1480,7 +1594,7 @@ var SettlementStore = (_class = function () {
|
|
|
1480
1594
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1481
1595
|
return (0, _tplusApi.ccApi)({
|
|
1482
1596
|
Idstore: idstore,
|
|
1483
|
-
meMemberId: _this12.
|
|
1597
|
+
meMemberId: _this12.paymode.currentMode.memberId,
|
|
1484
1598
|
oldPassword: null,
|
|
1485
1599
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1486
1600
|
dataSource: "POS"
|
|
@@ -1497,37 +1611,130 @@ var SettlementStore = (_class = function () {
|
|
|
1497
1611
|
var _this13 = this;
|
|
1498
1612
|
|
|
1499
1613
|
return function () {
|
|
1500
|
-
var
|
|
1614
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
|
|
1501
1615
|
var _getLoginInfo, IdStore, StoreCode, resp;
|
|
1502
1616
|
|
|
1503
|
-
return _regenerator2.default.wrap(function
|
|
1617
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1504
1618
|
while (1) {
|
|
1505
|
-
switch (
|
|
1619
|
+
switch (_context7.prev = _context7.next) {
|
|
1506
1620
|
case 0:
|
|
1507
1621
|
_getLoginInfo = _this13.getLoginInfo(), IdStore = _getLoginInfo.IdStore, StoreCode = _getLoginInfo.StoreCode;
|
|
1508
|
-
|
|
1622
|
+
_context7.next = 3;
|
|
1509
1623
|
return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1510
1624
|
|
|
1511
1625
|
case 3:
|
|
1512
|
-
resp =
|
|
1626
|
+
resp = _context7.sent;
|
|
1513
1627
|
|
|
1514
1628
|
_this.member = resp;
|
|
1515
|
-
_this.paymode.
|
|
1516
|
-
return
|
|
1629
|
+
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1630
|
+
return _context7.abrupt('return', _promise2.default.resolve(resp));
|
|
1517
1631
|
|
|
1518
1632
|
case 7:
|
|
1519
1633
|
case 'end':
|
|
1520
|
-
return
|
|
1634
|
+
return _context7.stop();
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}, _callee7, _this13);
|
|
1638
|
+
}));
|
|
1639
|
+
|
|
1640
|
+
return function (_x5) {
|
|
1641
|
+
return _ref17.apply(this, arguments);
|
|
1642
|
+
};
|
|
1643
|
+
}();
|
|
1644
|
+
}
|
|
1645
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1646
|
+
enumerable: true,
|
|
1647
|
+
initializer: function initializer() {
|
|
1648
|
+
var _this14 = this;
|
|
1649
|
+
|
|
1650
|
+
return function () {
|
|
1651
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
|
|
1652
|
+
var result;
|
|
1653
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1654
|
+
while (1) {
|
|
1655
|
+
switch (_context8.prev = _context8.next) {
|
|
1656
|
+
case 0:
|
|
1657
|
+
_context8.next = 2;
|
|
1658
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1659
|
+
|
|
1660
|
+
case 2:
|
|
1661
|
+
result = _context8.sent;
|
|
1662
|
+
|
|
1663
|
+
if (!(result && result.data.length)) {
|
|
1664
|
+
_context8.next = 20;
|
|
1665
|
+
break;
|
|
1666
|
+
}
|
|
1667
|
+
|
|
1668
|
+
if (!(result.data.length === 1)) {
|
|
1669
|
+
_context8.next = 9;
|
|
1670
|
+
break;
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1674
|
+
return _context8.abrupt('return', result.data);
|
|
1675
|
+
|
|
1676
|
+
case 9:
|
|
1677
|
+
if (!(result.data && result.data.length === 1)) {
|
|
1678
|
+
_context8.next = 14;
|
|
1679
|
+
break;
|
|
1680
|
+
}
|
|
1681
|
+
|
|
1682
|
+
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1683
|
+
return _context8.abrupt('return', result.data);
|
|
1684
|
+
|
|
1685
|
+
case 14:
|
|
1686
|
+
if (!(result.data && result.data.length > 1)) {
|
|
1687
|
+
_context8.next = 18;
|
|
1688
|
+
break;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
return _context8.abrupt('return', result.data);
|
|
1692
|
+
|
|
1693
|
+
case 18:
|
|
1694
|
+
_message2.default.warn('没有可用储值卡!');
|
|
1695
|
+
return _context8.abrupt('return', false);
|
|
1696
|
+
|
|
1697
|
+
case 20:
|
|
1698
|
+
case 'end':
|
|
1699
|
+
return _context8.stop();
|
|
1521
1700
|
}
|
|
1522
1701
|
}
|
|
1523
|
-
},
|
|
1702
|
+
}, _callee8, _this14);
|
|
1524
1703
|
}));
|
|
1525
1704
|
|
|
1526
|
-
return function (
|
|
1705
|
+
return function (_x6) {
|
|
1527
1706
|
return _ref18.apply(this, arguments);
|
|
1528
1707
|
};
|
|
1529
1708
|
}();
|
|
1530
1709
|
}
|
|
1710
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1711
|
+
enumerable: true,
|
|
1712
|
+
initializer: function initializer() {
|
|
1713
|
+
var _this15 = this;
|
|
1714
|
+
|
|
1715
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
|
1716
|
+
var address, result;
|
|
1717
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1718
|
+
while (1) {
|
|
1719
|
+
switch (_context9.prev = _context9.next) {
|
|
1720
|
+
case 0:
|
|
1721
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
|
|
1722
|
+
_context9.next = 3;
|
|
1723
|
+
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1724
|
+
|
|
1725
|
+
case 3:
|
|
1726
|
+
result = _context9.sent;
|
|
1727
|
+
|
|
1728
|
+
_this15.paymode.updateCardInfo(result.data);
|
|
1729
|
+
|
|
1730
|
+
case 5:
|
|
1731
|
+
case 'end':
|
|
1732
|
+
return _context9.stop();
|
|
1733
|
+
}
|
|
1734
|
+
}
|
|
1735
|
+
}, _callee9, _this15);
|
|
1736
|
+
}));
|
|
1737
|
+
}
|
|
1531
1738
|
}), _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);
|
|
1532
1739
|
exports.default = SettlementStore;
|
|
1533
1740
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
@@ -1542,15 +1749,19 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1542
1749
|
this.onlineamount = 0;
|
|
1543
1750
|
this.maxamount = 0;
|
|
1544
1751
|
|
|
1545
|
-
_initDefineProp(this, 'currentFocus',
|
|
1752
|
+
_initDefineProp(this, 'currentFocus', _descriptor5, this);
|
|
1753
|
+
|
|
1754
|
+
_initDefineProp(this, 'received', _descriptor6, this);
|
|
1546
1755
|
|
|
1547
|
-
_initDefineProp(this, '
|
|
1756
|
+
_initDefineProp(this, 'receivable', _descriptor7, this);
|
|
1548
1757
|
|
|
1549
|
-
_initDefineProp(this, '
|
|
1758
|
+
_initDefineProp(this, 'paymodes', _descriptor8, this);
|
|
1550
1759
|
|
|
1551
|
-
_initDefineProp(this, '
|
|
1760
|
+
_initDefineProp(this, 'thePaymodes', _descriptor9, this);
|
|
1552
1761
|
|
|
1553
|
-
_initDefineProp(this, '
|
|
1762
|
+
_initDefineProp(this, 'storageCardNo', _descriptor10, this);
|
|
1763
|
+
|
|
1764
|
+
_initDefineProp(this, 'balance', _descriptor11, this);
|
|
1554
1765
|
|
|
1555
1766
|
this.currentMode = null;
|
|
1556
1767
|
this.checkList = [];
|
|
@@ -1559,11 +1770,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1559
1770
|
hotKey: "Ctrl+M"
|
|
1560
1771
|
};
|
|
1561
1772
|
|
|
1562
|
-
_initDefineProp(this, 'calcCheckList',
|
|
1773
|
+
_initDefineProp(this, 'calcCheckList', _descriptor12, this);
|
|
1563
1774
|
|
|
1564
|
-
_initDefineProp(this, 'setCouponNum',
|
|
1775
|
+
_initDefineProp(this, 'setCouponNum', _descriptor13, this);
|
|
1565
1776
|
|
|
1566
|
-
_initDefineProp(this, 'addDjqs',
|
|
1777
|
+
_initDefineProp(this, 'addDjqs', _descriptor14, this);
|
|
1567
1778
|
}
|
|
1568
1779
|
// @observable store = null;
|
|
1569
1780
|
|
|
@@ -1599,10 +1810,30 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1599
1810
|
this.received = (0, _utils.getFixedNumber)(sum);
|
|
1600
1811
|
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1601
1812
|
}
|
|
1813
|
+
}, {
|
|
1814
|
+
key: 'updateMemberStorageCardNo',
|
|
1815
|
+
value: function updateMemberStorageCardNo(storageCardNo, walletEnabled) {
|
|
1816
|
+
this.currentMode.storageCardNo = storageCardNo;
|
|
1817
|
+
this.currentMode.walletEnabled = walletEnabled;
|
|
1818
|
+
}
|
|
1819
|
+
}, {
|
|
1820
|
+
key: 'updateCardInfo',
|
|
1821
|
+
value: function updateCardInfo(m) {
|
|
1822
|
+
this.currentMode.cardStatusEnum = m.CardStatusEnum;
|
|
1823
|
+
this.currentMode.isNeedPassword = m.IsNeedPassword;
|
|
1824
|
+
this.currentMode.meStorageCardId = m.MeStorageCardId;
|
|
1825
|
+
this.currentMode.storageCardNo = m.StorageCardNo;
|
|
1826
|
+
this.currentMode.balance = m.BalanceStorage;
|
|
1827
|
+
this.currentMode.rawbalance = m.BalanceStorage;
|
|
1828
|
+
this.currentMode.cardTypeEnum = m.CardTypeEnum;
|
|
1829
|
+
this.currentMode.walletEnabled = m.WalletEnabled;
|
|
1830
|
+
this.currentMode.memberId = m.ID;
|
|
1831
|
+
this.currentMode.freePaymentPasswordStore = m.freePaymentPasswordStore;
|
|
1832
|
+
}
|
|
1602
1833
|
}, {
|
|
1603
1834
|
key: 'calcDjqCheckValue',
|
|
1604
1835
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1605
|
-
var
|
|
1836
|
+
var _this16 = this;
|
|
1606
1837
|
|
|
1607
1838
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1608
1839
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1616,12 +1847,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1616
1847
|
this.checkList = [];
|
|
1617
1848
|
}
|
|
1618
1849
|
|
|
1619
|
-
var
|
|
1620
|
-
isNewRetailBCPos =
|
|
1850
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1851
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1621
1852
|
|
|
1622
|
-
var _enumController$
|
|
1623
|
-
PayStyle = _enumController$
|
|
1624
|
-
Differentiate = _enumController$
|
|
1853
|
+
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1854
|
+
PayStyle = _enumController$getEn16.PayStyle,
|
|
1855
|
+
Differentiate = _enumController$getEn16.Differentiate;
|
|
1625
1856
|
|
|
1626
1857
|
if (q1) {
|
|
1627
1858
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1649,7 +1880,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1649
1880
|
if (!q1.checked) {
|
|
1650
1881
|
this.checkList.forEach(function (ele, i) {
|
|
1651
1882
|
if (ele.id === q1.id) {
|
|
1652
|
-
|
|
1883
|
+
_this16.checkList.splice(i, 1);
|
|
1653
1884
|
}
|
|
1654
1885
|
});
|
|
1655
1886
|
} else {
|
|
@@ -1721,24 +1952,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1721
1952
|
if (result && result.length != 0) {
|
|
1722
1953
|
result.forEach(function (element, index) {
|
|
1723
1954
|
var djq1 = false;
|
|
1724
|
-
|
|
1955
|
+
_this16.currentMode.djqs.forEach(function (djq) {
|
|
1725
1956
|
if (element.id === djq.id) {
|
|
1726
1957
|
djq1 = true;
|
|
1727
1958
|
}
|
|
1728
1959
|
});
|
|
1729
1960
|
|
|
1730
|
-
var
|
|
1731
|
-
couponCode =
|
|
1732
|
-
name =
|
|
1733
|
-
tieredAmountResult =
|
|
1734
|
-
fromDate =
|
|
1735
|
-
dateMount =
|
|
1736
|
-
promoMethodEnum =
|
|
1737
|
-
discountPct =
|
|
1738
|
-
nominalAmount =
|
|
1739
|
-
promoId =
|
|
1740
|
-
id =
|
|
1741
|
-
doorsill =
|
|
1961
|
+
var _ref21 = element || {},
|
|
1962
|
+
couponCode = _ref21.couponCode,
|
|
1963
|
+
name = _ref21.name,
|
|
1964
|
+
tieredAmountResult = _ref21.tieredAmountResult,
|
|
1965
|
+
fromDate = _ref21.fromDate,
|
|
1966
|
+
dateMount = _ref21.dateMount,
|
|
1967
|
+
promoMethodEnum = _ref21.promoMethodEnum,
|
|
1968
|
+
discountPct = _ref21.discountPct,
|
|
1969
|
+
nominalAmount = _ref21.nominalAmount,
|
|
1970
|
+
promoId = _ref21.promoId,
|
|
1971
|
+
id = _ref21.id,
|
|
1972
|
+
doorsill = _ref21.doorsill;
|
|
1742
1973
|
|
|
1743
1974
|
var condValue = tieredAmountResult.condValue,
|
|
1744
1975
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1766,10 +1997,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1766
1997
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1767
1998
|
// id
|
|
1768
1999
|
// })
|
|
1769
|
-
|
|
2000
|
+
_this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
1770
2001
|
djq1 = false;
|
|
1771
2002
|
} else {
|
|
1772
|
-
|
|
2003
|
+
_this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
1773
2004
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
1774
2005
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
1775
2006
|
}
|
|
@@ -1782,11 +2013,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1782
2013
|
}, {
|
|
1783
2014
|
key: 'calcDjqValue',
|
|
1784
2015
|
value: function calcDjqValue(q1) {
|
|
1785
|
-
var
|
|
1786
|
-
isNewRetailBCPos =
|
|
2016
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
2017
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1787
2018
|
|
|
1788
|
-
var _enumController$
|
|
1789
|
-
Differentiate = _enumController$
|
|
2019
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
2020
|
+
Differentiate = _enumController$getEn17.Differentiate;
|
|
1790
2021
|
|
|
1791
2022
|
if (q1) {
|
|
1792
2023
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1848,8 +2079,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1848
2079
|
this.currentMode.errinfo = '';
|
|
1849
2080
|
var sum = this.amount;
|
|
1850
2081
|
|
|
1851
|
-
var _enumController$
|
|
1852
|
-
PayStyle = _enumController$
|
|
2082
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2083
|
+
PayStyle = _enumController$getEn18.PayStyle;
|
|
1853
2084
|
|
|
1854
2085
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1855
2086
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1868,28 +2099,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1868
2099
|
}, {
|
|
1869
2100
|
key: 'calcMemberBalance',
|
|
1870
2101
|
value: function calcMemberBalance() {
|
|
1871
|
-
this.currentMode.balance = this.currentMode.
|
|
2102
|
+
this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
|
|
1872
2103
|
}
|
|
1873
2104
|
}, {
|
|
1874
2105
|
key: 'setPaymodes',
|
|
1875
2106
|
value: function () {
|
|
1876
|
-
var
|
|
1877
|
-
var
|
|
2107
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
|
|
2108
|
+
var _this17 = this;
|
|
1878
2109
|
|
|
1879
|
-
var _enumController$
|
|
2110
|
+
var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1880
2111
|
|
|
1881
|
-
return _regenerator2.default.wrap(function
|
|
2112
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1882
2113
|
while (1) {
|
|
1883
|
-
switch (
|
|
2114
|
+
switch (_context10.prev = _context10.next) {
|
|
1884
2115
|
case 0:
|
|
1885
|
-
_enumController$
|
|
2116
|
+
_enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
|
|
1886
2117
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1887
2118
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1888
|
-
|
|
2119
|
+
_context10.next = 5;
|
|
1889
2120
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
1890
2121
|
|
|
1891
2122
|
case 5:
|
|
1892
|
-
modes =
|
|
2123
|
+
modes = _context10.sent;
|
|
1893
2124
|
|
|
1894
2125
|
if (modes) {
|
|
1895
2126
|
(0, _mobx.runInAction)(function () {
|
|
@@ -1898,7 +2129,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1898
2129
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
1899
2130
|
|
|
1900
2131
|
if (mode.Code == PayStyle.hyczk) {
|
|
1901
|
-
mode.Name = '
|
|
2132
|
+
mode.Name = '储值卡';
|
|
1902
2133
|
}
|
|
1903
2134
|
paymodes.push({
|
|
1904
2135
|
name: mode.Name,
|
|
@@ -1914,21 +2145,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1914
2145
|
calDirection: mode.Currency ? mode.Currency.CalDirection.Id : "88"
|
|
1915
2146
|
});
|
|
1916
2147
|
});
|
|
1917
|
-
|
|
2148
|
+
_this17.paymodes = paymodes;
|
|
1918
2149
|
//modes.QuickSettleStyles
|
|
1919
2150
|
});
|
|
1920
2151
|
}
|
|
1921
2152
|
|
|
1922
2153
|
case 7:
|
|
1923
2154
|
case 'end':
|
|
1924
|
-
return
|
|
2155
|
+
return _context10.stop();
|
|
1925
2156
|
}
|
|
1926
2157
|
}
|
|
1927
|
-
},
|
|
2158
|
+
}, _callee10, this);
|
|
1928
2159
|
}));
|
|
1929
2160
|
|
|
1930
|
-
function setPaymodes(
|
|
1931
|
-
return
|
|
2161
|
+
function setPaymodes(_x7, _x8) {
|
|
2162
|
+
return _ref23.apply(this, arguments);
|
|
1932
2163
|
}
|
|
1933
2164
|
|
|
1934
2165
|
return setPaymodes;
|
|
@@ -1945,47 +2176,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1945
2176
|
}
|
|
1946
2177
|
}]);
|
|
1947
2178
|
return PayMode;
|
|
1948
|
-
}(), (
|
|
2179
|
+
}(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
1949
2180
|
enumerable: true,
|
|
1950
2181
|
initializer: function initializer() {
|
|
1951
2182
|
return "";
|
|
1952
2183
|
}
|
|
1953
|
-
}),
|
|
2184
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
1954
2185
|
enumerable: true,
|
|
1955
2186
|
initializer: function initializer() {
|
|
1956
2187
|
return 0;
|
|
1957
2188
|
}
|
|
1958
|
-
}),
|
|
2189
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
1959
2190
|
enumerable: true,
|
|
1960
2191
|
initializer: function initializer() {
|
|
1961
2192
|
return 0;
|
|
1962
2193
|
}
|
|
1963
|
-
}),
|
|
2194
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
1964
2195
|
enumerable: true,
|
|
1965
2196
|
initializer: function initializer() {
|
|
1966
2197
|
return [];
|
|
1967
2198
|
}
|
|
1968
|
-
}),
|
|
2199
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
1969
2200
|
enumerable: true,
|
|
1970
2201
|
initializer: function initializer() {
|
|
1971
2202
|
return [];
|
|
1972
2203
|
}
|
|
1973
|
-
}),
|
|
2204
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
1974
2205
|
enumerable: true,
|
|
1975
2206
|
initializer: function initializer() {
|
|
1976
|
-
|
|
2207
|
+
return null;
|
|
2208
|
+
}
|
|
2209
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2210
|
+
enumerable: true,
|
|
2211
|
+
initializer: function initializer() {
|
|
2212
|
+
return null;
|
|
2213
|
+
}
|
|
2214
|
+
}), _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], {
|
|
2215
|
+
enumerable: true,
|
|
2216
|
+
initializer: function initializer() {
|
|
2217
|
+
var _this18 = this;
|
|
1977
2218
|
|
|
1978
2219
|
return function () {
|
|
1979
|
-
|
|
2220
|
+
_this18.checkList = [];
|
|
1980
2221
|
};
|
|
1981
2222
|
}
|
|
1982
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype),
|
|
2223
|
+
}), _applyDecoratedDescriptor(_class3.prototype, 'updateMemberStorageCardNo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateMemberStorageCardNo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'updateCardInfo', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'updateCardInfo'), _class3.prototype), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype), _descriptor13 = _applyDecoratedDescriptor(_class3.prototype, 'setCouponNum', [_mobx.action], {
|
|
1983
2224
|
enumerable: true,
|
|
1984
2225
|
initializer: function initializer() {
|
|
1985
|
-
var
|
|
2226
|
+
var _this19 = this;
|
|
1986
2227
|
|
|
1987
2228
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
1988
|
-
|
|
2229
|
+
_this19.currentMode.djqs.forEach(function (ele) {
|
|
1989
2230
|
if (ele.id === id) {
|
|
1990
2231
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
1991
2232
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -1995,10 +2236,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1995
2236
|
});
|
|
1996
2237
|
};
|
|
1997
2238
|
}
|
|
1998
|
-
}),
|
|
2239
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
1999
2240
|
enumerable: true,
|
|
2000
2241
|
initializer: function initializer() {
|
|
2001
|
-
var
|
|
2242
|
+
var _this20 = this;
|
|
2002
2243
|
|
|
2003
2244
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2004
2245
|
var djq = {
|
|
@@ -2020,25 +2261,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2020
2261
|
couponCategoryEnum: couponCategoryEnum,
|
|
2021
2262
|
id: id
|
|
2022
2263
|
};
|
|
2023
|
-
|
|
2264
|
+
_this20.currentMode.djqs.push(djq);
|
|
2024
2265
|
};
|
|
2025
2266
|
}
|
|
2026
2267
|
}), _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);
|
|
2027
2268
|
var Member = exports.Member = (_class5 = function () {
|
|
2028
2269
|
function Member(m) {
|
|
2029
|
-
var
|
|
2270
|
+
var _this21 = this;
|
|
2030
2271
|
|
|
2031
2272
|
(0, _classCallCheck3.default)(this, Member);
|
|
2032
2273
|
|
|
2033
|
-
_initDefineProp(this, 'cardNo',
|
|
2274
|
+
_initDefineProp(this, 'cardNo', _descriptor15, this);
|
|
2034
2275
|
|
|
2035
|
-
_initDefineProp(this, 'balance',
|
|
2276
|
+
_initDefineProp(this, 'balance', _descriptor16, this);
|
|
2036
2277
|
|
|
2037
|
-
_initDefineProp(this, 'exchangable',
|
|
2278
|
+
_initDefineProp(this, 'exchangable', _descriptor17, this);
|
|
2038
2279
|
|
|
2039
|
-
_initDefineProp(this, '
|
|
2280
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor18, this);
|
|
2040
2281
|
|
|
2041
|
-
_initDefineProp(this, '
|
|
2282
|
+
_initDefineProp(this, 'storageCardNo', _descriptor19, this);
|
|
2042
2283
|
|
|
2043
2284
|
if (m) {
|
|
2044
2285
|
this.id = m.ID;
|
|
@@ -2049,17 +2290,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2049
2290
|
return key == 'canusedbalancestorage';
|
|
2050
2291
|
});
|
|
2051
2292
|
|
|
2052
|
-
var
|
|
2053
|
-
isNewRetailBCPos =
|
|
2293
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2294
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2054
2295
|
|
|
2055
|
-
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2056
|
-
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|
|
2057
2296
|
(0, _mobx.runInAction)(function () {
|
|
2058
|
-
|
|
2297
|
+
_this21.cardNo = m.CardCode;
|
|
2059
2298
|
if (index >= 0) {
|
|
2060
|
-
|
|
2299
|
+
_this21.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2061
2300
|
} else {
|
|
2062
|
-
|
|
2301
|
+
_this21.balance = _this21.rawbalance;
|
|
2063
2302
|
}
|
|
2064
2303
|
});
|
|
2065
2304
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2079,32 +2318,22 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2079
2318
|
this.cardNo = v;
|
|
2080
2319
|
this.id = null;
|
|
2081
2320
|
}
|
|
2082
|
-
}, {
|
|
2083
|
-
key: 'setMeStorageCardId',
|
|
2084
|
-
value: function setMeStorageCardId(v) {
|
|
2085
|
-
this.MeStorageCardId = v;
|
|
2086
|
-
}
|
|
2087
|
-
}, {
|
|
2088
|
-
key: 'setStorageCardNo',
|
|
2089
|
-
value: function setStorageCardNo(v) {
|
|
2090
|
-
this.StorageCardNo = v;
|
|
2091
|
-
}
|
|
2092
2321
|
}]);
|
|
2093
2322
|
return Member;
|
|
2094
|
-
}(), (
|
|
2323
|
+
}(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2095
2324
|
enumerable: true,
|
|
2096
2325
|
initializer: null
|
|
2097
|
-
}),
|
|
2326
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2098
2327
|
enumerable: true,
|
|
2099
2328
|
initializer: null
|
|
2100
|
-
}),
|
|
2329
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2101
2330
|
enumerable: true,
|
|
2102
2331
|
initializer: null
|
|
2103
|
-
}),
|
|
2332
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2104
2333
|
enumerable: true,
|
|
2105
2334
|
initializer: null
|
|
2106
|
-
}),
|
|
2335
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2107
2336
|
enumerable: true,
|
|
2108
2337
|
initializer: null
|
|
2109
|
-
}), _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)
|
|
2338
|
+
}), _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);
|
|
2110
2339
|
//# sourceMappingURL=settlementStore.js.map
|