tplus-components-touch 3.27.27 → 3.27.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/billSearch/index.js +163 -20
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +6 -3
- package/dist/components/cloudPrint/api.js +85 -43
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +211 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/deliverySearch/index.js +1 -1
- package/dist/components/deliverySearch/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/inventorySearch/tab.js +77 -67
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +4 -2
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +35 -40
- package/dist/components/loading/loadingContent.js +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +7 -7
- package/dist/components/progressState/EmptyAndErrorView.js +4 -3
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +2 -1
- package/dist/components/progressState/ProgressState.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/settlement.js +765 -500
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +77 -7
- package/dist/components/settlement/settlementStore.js +555 -317
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +26 -3
- package/dist/components/ticon/iconfont/iconfont.css +7 -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 +7 -0
- 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/touchScroll/index.js +6 -2
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/index.js +7 -5
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +20 -13
- package/dist/index.js +14 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
@@ -429,7 +469,7 @@ var SettlementStore = (_class = function () {
|
|
|
429
469
|
}
|
|
430
470
|
}, {
|
|
431
471
|
key: 'init',
|
|
432
|
-
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
|
|
472
|
+
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data, payModeKey) {
|
|
433
473
|
var _this3 = this;
|
|
434
474
|
|
|
435
475
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -445,16 +485,22 @@ var SettlementStore = (_class = function () {
|
|
|
445
485
|
if (global.DealSingleRowAmountSettingProcessorBlock) {
|
|
446
486
|
global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
|
|
447
487
|
}
|
|
488
|
+
|
|
489
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
490
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
491
|
+
|
|
492
|
+
var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
|
|
493
|
+
|
|
448
494
|
// 成交金额抹零
|
|
449
495
|
if (global.DealAmountSettingProcessorBlock) {
|
|
450
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
496
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto, isQuickCash);
|
|
451
497
|
}
|
|
452
498
|
});
|
|
453
499
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
454
500
|
this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
|
|
455
501
|
|
|
456
|
-
// this.paymode.bookMaxValue = 0;
|
|
457
502
|
this.paymode.isNotFullBook = false;
|
|
503
|
+
this.paymode.isNotFullOnlyBook = false;
|
|
458
504
|
//预订按比例收取订金处理
|
|
459
505
|
var value = this.dto.TotalTaxAmount;
|
|
460
506
|
|
|
@@ -469,6 +515,7 @@ var SettlementStore = (_class = function () {
|
|
|
469
515
|
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
470
516
|
this.paymode.bookMaxValue = value;
|
|
471
517
|
this.paymode.isNotFullBook = true;
|
|
518
|
+
this.paymode.isNotFullOnlyBook = true;
|
|
472
519
|
value = value * PercentageWhenBook / 100;
|
|
473
520
|
}
|
|
474
521
|
if (IdbusiType == 38 && PreSellOrBook == 'BOOK') {
|
|
@@ -483,6 +530,10 @@ var SettlementStore = (_class = function () {
|
|
|
483
530
|
//预订取货应补款金额
|
|
484
531
|
if (IdbusiType == 39) {
|
|
485
532
|
value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
|
533
|
+
if (_mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount > 0) {
|
|
534
|
+
this.paymode.isNotFullBook = true;
|
|
535
|
+
this.paymode.bookMaxValue = _mutantsMicrofx.stores.drawerStore.totalWaitPaidAmount;
|
|
536
|
+
}
|
|
486
537
|
}
|
|
487
538
|
|
|
488
539
|
this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
|
|
@@ -530,8 +581,8 @@ var SettlementStore = (_class = function () {
|
|
|
530
581
|
value: function initByOriginReturn() {
|
|
531
582
|
var _this5 = this;
|
|
532
583
|
|
|
533
|
-
var _enumController$
|
|
534
|
-
PayStyle = _enumController$
|
|
584
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
585
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
535
586
|
|
|
536
587
|
var _ref6 = _mutantsUtil.platform || {},
|
|
537
588
|
isNewRetailBCPos = _ref6.isNewRetailBCPos;
|
|
@@ -578,13 +629,23 @@ var SettlementStore = (_class = function () {
|
|
|
578
629
|
}
|
|
579
630
|
});
|
|
580
631
|
(0, _each3.default)(this.dto.RetailStorageDetails, function (detail) {
|
|
581
|
-
var balanceAmount =
|
|
582
|
-
|
|
632
|
+
var balanceAmount = null;
|
|
633
|
+
var storageCardNo = null;
|
|
634
|
+
var meStorageCardId = null;
|
|
635
|
+
detail.DynamicPropertyKeys.forEach(function (ele, index) {
|
|
636
|
+
if (ele === "mestoragecard") {
|
|
637
|
+
balanceAmount = detail.DynamicPropertyValues[index].BalanceStorage - detail.StoragePaymentAmount;
|
|
638
|
+
storageCardNo = detail.DynamicPropertyValues[index].StorageCardNo;
|
|
639
|
+
meStorageCardId = detail.DynamicPropertyValues[index].MeStorageCardId;
|
|
640
|
+
}
|
|
641
|
+
});
|
|
583
642
|
var newmode = (0, _extends3.default)({}, _this5.genNewMode(PayStyle.hyczk, false, detail.StoragePaymentAmount), {
|
|
584
|
-
member: new Member(detail.Member),
|
|
585
|
-
authCode: detail.Password,
|
|
643
|
+
member: new Member(detail.Member ? detail.Member : null),
|
|
644
|
+
authCode: detail.Password ? detail.Password : null,
|
|
586
645
|
balance: balanceAmount,
|
|
587
|
-
boriginReturn: true
|
|
646
|
+
boriginReturn: true,
|
|
647
|
+
meStorageCardId: meStorageCardId ? meStorageCardId : detail.MeStorageCardId,
|
|
648
|
+
storageCardNo: storageCardNo ? storageCardNo : detail.StorageCardNo
|
|
588
649
|
});
|
|
589
650
|
_this5.paymode.thePaymodes.push(newmode);
|
|
590
651
|
});
|
|
@@ -599,7 +660,7 @@ var SettlementStore = (_class = function () {
|
|
|
599
660
|
}, {
|
|
600
661
|
key: 'quickSettle',
|
|
601
662
|
value: function quickSettle(key) {
|
|
602
|
-
this.addPay(key);
|
|
663
|
+
this.addPay(key, null, true);
|
|
603
664
|
}
|
|
604
665
|
|
|
605
666
|
//outer call
|
|
@@ -610,8 +671,8 @@ var SettlementStore = (_class = function () {
|
|
|
610
671
|
value: function changeFocusAndAddPay(type, bookType) {
|
|
611
672
|
var _this6 = this;
|
|
612
673
|
|
|
613
|
-
var _enumController$
|
|
614
|
-
PayStyle = _enumController$
|
|
674
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
675
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
615
676
|
|
|
616
677
|
this.paymode.currentFocus = type;
|
|
617
678
|
if (this.paymode.currentMode) {
|
|
@@ -628,7 +689,7 @@ var SettlementStore = (_class = function () {
|
|
|
628
689
|
|
|
629
690
|
//抵现积分
|
|
630
691
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
631
|
-
Idmember: this.paymode.currentMode.
|
|
692
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
632
693
|
TotalTaxAmount: this.paymode.amount,
|
|
633
694
|
BalanceTaxAmount: this.paymode.currentMode.value
|
|
634
695
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -657,7 +718,6 @@ var SettlementStore = (_class = function () {
|
|
|
657
718
|
|
|
658
719
|
if ((0, _trim3.default)(v) === "") {
|
|
659
720
|
(0, _mobx.runInAction)(function () {
|
|
660
|
-
_this7.paymode.currentMode.member = new Member(null);
|
|
661
721
|
_this7.paymode.currentMode.errinfo = "请输入储值卡";
|
|
662
722
|
});
|
|
663
723
|
return;
|
|
@@ -671,66 +731,98 @@ var SettlementStore = (_class = function () {
|
|
|
671
731
|
var address = '';
|
|
672
732
|
if (isNewRetailBCPos) {
|
|
673
733
|
// address = '/member/memberProfile/FindByStorageCode/'+v;
|
|
674
|
-
address = '/
|
|
675
|
-
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function (
|
|
676
|
-
var
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
734
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + v + '/' + true;
|
|
735
|
+
return (0, _tplusApi.ccApi)({ code: v }, address, false, false, { method: 'get', timeout_skip: true }).then(function () {
|
|
736
|
+
var _ref9 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(result) {
|
|
737
|
+
var data, m;
|
|
738
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
739
|
+
while (1) {
|
|
740
|
+
switch (_context2.prev = _context2.next) {
|
|
741
|
+
case 0:
|
|
742
|
+
data = result.data;
|
|
743
|
+
m = data && data.length && data[0];
|
|
744
|
+
|
|
745
|
+
if (!(result && result.data.length)) {
|
|
746
|
+
_context2.next = 25;
|
|
747
|
+
break;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
if (!(result.data.length === 1)) {
|
|
751
|
+
_context2.next = 14;
|
|
752
|
+
break;
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
if (!(m.CardTypeEnum === 'BALANCE_CARD')) {
|
|
756
|
+
_context2.next = 10;
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
_this7.paymode.updateCardInfo(m);
|
|
761
|
+
_this7.handleCzkData(m);
|
|
762
|
+
return _context2.abrupt('return', result.data);
|
|
763
|
+
|
|
764
|
+
case 10:
|
|
765
|
+
_context2.next = 12;
|
|
766
|
+
return (0, _tplusApi.ccApi)({ dto: _this7.dto, meStorageCardId: m.MeStorageCardId }, '/retail/RetailPos/validateRetailStorageCard', false, false).then(function (result1) {
|
|
767
|
+
var data1 = result1.data ? JSON.parse(result1.data)[0] : {};
|
|
768
|
+
if (data1.enable) {
|
|
769
|
+
_this7.paymode.updateCardInfo(m);
|
|
770
|
+
_this7.handleCzkData(m);
|
|
771
|
+
return result1.data;
|
|
772
|
+
} else {
|
|
773
|
+
_message2.default.warn(data1.disableReason);
|
|
774
|
+
}
|
|
775
|
+
});
|
|
776
|
+
|
|
777
|
+
case 12:
|
|
778
|
+
_context2.next = 25;
|
|
779
|
+
break;
|
|
780
|
+
|
|
781
|
+
case 14:
|
|
782
|
+
if (!(result.data && result.data.length === 1)) {
|
|
783
|
+
_context2.next = 19;
|
|
784
|
+
break;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
_this7.paymode.updateCardInfo(result.data[0]);
|
|
788
|
+
return _context2.abrupt('return', result.data);
|
|
789
|
+
|
|
790
|
+
case 19:
|
|
791
|
+
if (!(result.data && result.data.length > 1)) {
|
|
792
|
+
_context2.next = 23;
|
|
793
|
+
break;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
return _context2.abrupt('return', result.data);
|
|
797
|
+
|
|
798
|
+
case 23:
|
|
799
|
+
_message2.default.warn('没有可用储值卡!');
|
|
800
|
+
return _context2.abrupt('return', false);
|
|
801
|
+
|
|
802
|
+
case 25:
|
|
803
|
+
case 'end':
|
|
804
|
+
return _context2.stop();
|
|
805
|
+
}
|
|
715
806
|
}
|
|
716
|
-
});
|
|
717
|
-
}
|
|
718
|
-
|
|
807
|
+
}, _callee2, _this7);
|
|
808
|
+
}));
|
|
809
|
+
|
|
810
|
+
return function (_x2) {
|
|
811
|
+
return _ref9.apply(this, arguments);
|
|
812
|
+
};
|
|
813
|
+
}()
|
|
814
|
+
// result.data.forEach((m) => {
|
|
815
|
+
// if (m.CardTypeEnum === 'BALANCE_CARD') {
|
|
816
|
+
// // 会员概念改为卡,把这些字段都放开
|
|
817
|
+
// this.paymode.updateCardInfo(m);
|
|
818
|
+
// }
|
|
819
|
+
// })
|
|
820
|
+
);
|
|
719
821
|
} else {
|
|
720
822
|
address = 'AA.DR.newRetailMember.SearchMember';
|
|
721
823
|
return (0, _tplusApi.tApi)({ SearchParams: { Key: v, IsSingleMember: true, IdStore: IdStore, StoreCode: StoreCode } }, address, false, false).then(function (result) {
|
|
722
824
|
var data = JSON.parse(result.Data);
|
|
723
825
|
var m = data && data.length > 0 && data[0];
|
|
724
|
-
|
|
725
|
-
var _ref10 = _mutantsUtil.platform || {},
|
|
726
|
-
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
727
|
-
|
|
728
|
-
if (isNewRetailBCPos) {
|
|
729
|
-
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
730
|
-
_this7.paymode && _this7.paymode.currentMode.member.setStorageCardNo(m.StorageCardNo);
|
|
731
|
-
_this7.paymode && (_this7.paymode.currentMode.MeStorageCardId = m.MeStorageCardId);
|
|
732
|
-
_this7.paymode && (_this7.paymode.currentMode.StorageCardNo = m.StorageCardNo);
|
|
733
|
-
}
|
|
734
826
|
if (!m || !m.ID) {
|
|
735
827
|
(0, _mobx.runInAction)(function () {
|
|
736
828
|
_this7.paymode.currentMode.errinfo = "无效的会员卡号";
|
|
@@ -792,8 +884,8 @@ var SettlementStore = (_class = function () {
|
|
|
792
884
|
}, {
|
|
793
885
|
key: 'setCurrentMode',
|
|
794
886
|
value: function setCurrentMode(id, type, append) {
|
|
795
|
-
var _enumController$
|
|
796
|
-
PayStyle = _enumController$
|
|
887
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
888
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
797
889
|
|
|
798
890
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
799
891
|
if (mode) {
|
|
@@ -811,8 +903,8 @@ var SettlementStore = (_class = function () {
|
|
|
811
903
|
value: function afterSetCurrentMode(type) {
|
|
812
904
|
var _this8 = this;
|
|
813
905
|
|
|
814
|
-
var _enumController$
|
|
815
|
-
PayStyle = _enumController$
|
|
906
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
907
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
816
908
|
|
|
817
909
|
if (type == PayStyle.djq) {
|
|
818
910
|
this.paymode.calcDjqValue();
|
|
@@ -826,7 +918,7 @@ var SettlementStore = (_class = function () {
|
|
|
826
918
|
}
|
|
827
919
|
|
|
828
920
|
(0, _tplusApi.tApi)({ IntegralSteadCashParams: {
|
|
829
|
-
Idmember: this.paymode.currentMode.
|
|
921
|
+
Idmember: this.paymode.currentMode.memberId,
|
|
830
922
|
TotalTaxAmount: this.paymode.amount,
|
|
831
923
|
BalanceTaxAmount: this.paymode.amount
|
|
832
924
|
} }, 'AA.DR.newRetailMember.CalculdateIntegralSteadCash', false, false).then(function (result) {
|
|
@@ -847,12 +939,13 @@ var SettlementStore = (_class = function () {
|
|
|
847
939
|
}
|
|
848
940
|
}, {
|
|
849
941
|
key: 'genNewMode',
|
|
850
|
-
value: function genNewMode(type, notwithm, v) {
|
|
851
|
-
var _enumController$
|
|
852
|
-
PayStyle = _enumController$
|
|
942
|
+
value: function genNewMode(type, notwithm, v, isQuick) {
|
|
943
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
944
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
853
945
|
|
|
854
946
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
855
947
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
948
|
+
var memberId = this.member && this.member.ID ? this.member.ID : null;
|
|
856
949
|
var mode = (0, _mobx.observable)({
|
|
857
950
|
paymethodId: this.paymode.counter,
|
|
858
951
|
name: themode.name,
|
|
@@ -864,6 +957,8 @@ var SettlementStore = (_class = function () {
|
|
|
864
957
|
order: this.paymode.thePaymodes.length + 1,
|
|
865
958
|
paymentType: type,
|
|
866
959
|
djqs: [],
|
|
960
|
+
card: null,
|
|
961
|
+
memberId: !notwithm ? memberId : null,
|
|
867
962
|
member: new Member(!notwithm ? this.member : null),
|
|
868
963
|
authCode: '',
|
|
869
964
|
steadCashIntegral: null,
|
|
@@ -872,9 +967,9 @@ var SettlementStore = (_class = function () {
|
|
|
872
967
|
virtualPay: themode.virtualPay
|
|
873
968
|
});
|
|
874
969
|
if (type == PayStyle.hyczk) {
|
|
875
|
-
if (!mode.
|
|
970
|
+
if (!mode.storageCardNo) {
|
|
876
971
|
(0, _mobx.runInAction)(function () {
|
|
877
|
-
mode.errinfo = '
|
|
972
|
+
mode.errinfo = '未录入手机号或储值卡号';
|
|
878
973
|
});
|
|
879
974
|
} else if (this.checkReceived(mode, "balance")) {
|
|
880
975
|
(0, _mobx.runInAction)(function () {
|
|
@@ -893,8 +988,8 @@ var SettlementStore = (_class = function () {
|
|
|
893
988
|
value: function setMaxAmount(type, mode) {
|
|
894
989
|
var _this9 = this;
|
|
895
990
|
|
|
896
|
-
var _enumController$
|
|
897
|
-
PayStyle = _enumController$
|
|
991
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
992
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
898
993
|
|
|
899
994
|
var sum = 0;
|
|
900
995
|
if (type == PayStyle.hyczk) {
|
|
@@ -970,8 +1065,8 @@ var SettlementStore = (_class = function () {
|
|
|
970
1065
|
}, {
|
|
971
1066
|
key: 'addPayDirectly',
|
|
972
1067
|
value: function addPayDirectly(pay) {
|
|
973
|
-
var _enumController$
|
|
974
|
-
PayStyle = _enumController$
|
|
1068
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
1069
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
975
1070
|
|
|
976
1071
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
977
1072
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -988,9 +1083,9 @@ var SettlementStore = (_class = function () {
|
|
|
988
1083
|
}
|
|
989
1084
|
}, {
|
|
990
1085
|
key: 'addPay',
|
|
991
|
-
value: function addPay(type, bookType) {
|
|
992
|
-
var _enumController$
|
|
993
|
-
PayStyle = _enumController$
|
|
1086
|
+
value: function addPay(type, bookType, isQuick) {
|
|
1087
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1088
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
994
1089
|
|
|
995
1090
|
var pos = this.paymode.thePaymodes.length;
|
|
996
1091
|
if (type == PayStyle.hyczk) {
|
|
@@ -1000,14 +1095,15 @@ var SettlementStore = (_class = function () {
|
|
|
1000
1095
|
pos = index == -1 ? pos : index + 1;
|
|
1001
1096
|
}
|
|
1002
1097
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
1003
|
-
|
|
1098
|
+
|
|
1099
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
1004
1100
|
this.paymode.calcReserved(bookType);
|
|
1005
1101
|
}
|
|
1006
1102
|
}, {
|
|
1007
1103
|
key: 'delPay',
|
|
1008
1104
|
value: function delPay(index, bookType) {
|
|
1009
|
-
var _enumController$
|
|
1010
|
-
PayStyle = _enumController$
|
|
1105
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
1106
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
1011
1107
|
|
|
1012
1108
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
1013
1109
|
return mode.paymethodId === index;
|
|
@@ -1018,80 +1114,80 @@ var SettlementStore = (_class = function () {
|
|
|
1018
1114
|
}, {
|
|
1019
1115
|
key: 'commit',
|
|
1020
1116
|
value: function () {
|
|
1021
|
-
var
|
|
1022
|
-
var
|
|
1117
|
+
var _ref10 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(bTest) {
|
|
1118
|
+
var _ref11, isNewRetailBCPos;
|
|
1023
1119
|
|
|
1024
|
-
return _regenerator2.default.wrap(function
|
|
1120
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1025
1121
|
while (1) {
|
|
1026
|
-
switch (
|
|
1122
|
+
switch (_context3.prev = _context3.next) {
|
|
1027
1123
|
case 0:
|
|
1028
1124
|
console.log('settlementStore.commit开始,参数:' + bTest);
|
|
1029
1125
|
|
|
1030
1126
|
if (!bTest) {
|
|
1031
|
-
|
|
1127
|
+
_context3.next = 3;
|
|
1032
1128
|
break;
|
|
1033
1129
|
}
|
|
1034
1130
|
|
|
1035
|
-
return
|
|
1131
|
+
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
1036
1132
|
|
|
1037
1133
|
case 3:
|
|
1038
|
-
|
|
1039
|
-
|
|
1134
|
+
_ref11 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
|
1135
|
+
_context3.prev = 4;
|
|
1040
1136
|
|
|
1041
1137
|
if (!(this.type == 1)) {
|
|
1042
|
-
|
|
1138
|
+
_context3.next = 10;
|
|
1043
1139
|
break;
|
|
1044
1140
|
}
|
|
1045
1141
|
|
|
1046
|
-
|
|
1142
|
+
_context3.next = 8;
|
|
1047
1143
|
return this.saveMember();
|
|
1048
1144
|
|
|
1049
1145
|
case 8:
|
|
1050
|
-
|
|
1146
|
+
_context3.next = 18;
|
|
1051
1147
|
break;
|
|
1052
1148
|
|
|
1053
1149
|
case 10:
|
|
1054
1150
|
if (!isNewRetailBCPos) {
|
|
1055
|
-
|
|
1151
|
+
_context3.next = 13;
|
|
1056
1152
|
break;
|
|
1057
1153
|
}
|
|
1058
1154
|
|
|
1059
|
-
|
|
1155
|
+
_context3.next = 13;
|
|
1060
1156
|
return _mutantsMicrofx.stores.offlineSys.generatorCode(this.dto);
|
|
1061
1157
|
|
|
1062
1158
|
case 13:
|
|
1063
|
-
|
|
1159
|
+
_context3.next = 15;
|
|
1064
1160
|
return this.save();
|
|
1065
1161
|
|
|
1066
1162
|
case 15:
|
|
1067
1163
|
if (!isNewRetailBCPos) {
|
|
1068
|
-
|
|
1164
|
+
_context3.next = 18;
|
|
1069
1165
|
break;
|
|
1070
1166
|
}
|
|
1071
1167
|
|
|
1072
|
-
|
|
1168
|
+
_context3.next = 18;
|
|
1073
1169
|
return _mutantsMicrofx.stores.offlineSys.retailSequenceUpload();
|
|
1074
1170
|
|
|
1075
1171
|
case 18:
|
|
1076
|
-
return
|
|
1172
|
+
return _context3.abrupt('return', _promise2.default.resolve(true));
|
|
1077
1173
|
|
|
1078
1174
|
case 21:
|
|
1079
|
-
|
|
1080
|
-
|
|
1175
|
+
_context3.prev = 21;
|
|
1176
|
+
_context3.t0 = _context3['catch'](4);
|
|
1081
1177
|
|
|
1082
|
-
console.error('settlementStore.commit失败,错误信息:' +
|
|
1083
|
-
return
|
|
1178
|
+
console.error('settlementStore.commit失败,错误信息:' + _context3.t0);
|
|
1179
|
+
return _context3.abrupt('return', _promise2.default.resolve(_context3.t0));
|
|
1084
1180
|
|
|
1085
1181
|
case 25:
|
|
1086
1182
|
case 'end':
|
|
1087
|
-
return
|
|
1183
|
+
return _context3.stop();
|
|
1088
1184
|
}
|
|
1089
1185
|
}
|
|
1090
|
-
},
|
|
1186
|
+
}, _callee3, this, [[4, 21]]);
|
|
1091
1187
|
}));
|
|
1092
1188
|
|
|
1093
|
-
function commit(
|
|
1094
|
-
return
|
|
1189
|
+
function commit(_x3) {
|
|
1190
|
+
return _ref10.apply(this, arguments);
|
|
1095
1191
|
}
|
|
1096
1192
|
|
|
1097
1193
|
return commit;
|
|
@@ -1107,8 +1203,8 @@ var SettlementStore = (_class = function () {
|
|
|
1107
1203
|
value: function saveMember() {
|
|
1108
1204
|
var _this10 = this;
|
|
1109
1205
|
|
|
1110
|
-
var _enumController$
|
|
1111
|
-
PayStyle = _enumController$
|
|
1206
|
+
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1207
|
+
PayStyle = _enumController$getEn14.PayStyle;
|
|
1112
1208
|
|
|
1113
1209
|
(0, _mobx.runInAction)(function () {
|
|
1114
1210
|
_this10.dto.StorageMutiSettleDetails = [];
|
|
@@ -1149,23 +1245,22 @@ var SettlementStore = (_class = function () {
|
|
|
1149
1245
|
}, {
|
|
1150
1246
|
key: 'save',
|
|
1151
1247
|
value: function () {
|
|
1152
|
-
var
|
|
1248
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1153
1249
|
var _this11 = this;
|
|
1154
1250
|
|
|
1155
|
-
var _enumController$
|
|
1251
|
+
var _enumController$getEn15, PayStyle, _ref14, isNewRetailBCPos, IPMSG, RetailTypeEnum, _getLoginInfo2, PreSellOrBook, PercentageWhenBook, _ref15, IdbusiType, DistributionMode, prepaidAmount;
|
|
1156
1252
|
|
|
1157
|
-
return _regenerator2.default.wrap(function
|
|
1253
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1158
1254
|
while (1) {
|
|
1159
|
-
switch (
|
|
1255
|
+
switch (_context4.prev = _context4.next) {
|
|
1160
1256
|
case 0:
|
|
1161
|
-
_enumController$
|
|
1257
|
+
_enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn15.PayStyle;
|
|
1162
1258
|
|
|
1163
1259
|
(0, _mobx.runInAction)(function () {
|
|
1164
1260
|
_this11.dto.RetailPaymentDetails = [];
|
|
1165
1261
|
_this11.dto.RetailStorageDetails = [];
|
|
1166
1262
|
_this11.dto.RetailCouponDetails = [];
|
|
1167
1263
|
var czkSum = 0;
|
|
1168
|
-
var Idmember = _this11.dto.Idmember;
|
|
1169
1264
|
var count = 0;
|
|
1170
1265
|
var thePaymodes = _this11.newStyle ? (0, _filter3.default)(_this11.paymode.thePaymodes, function (mode) {
|
|
1171
1266
|
return parseFloat(mode.value) != 0;
|
|
@@ -1173,18 +1268,14 @@ var SettlementStore = (_class = function () {
|
|
|
1173
1268
|
(0, _each3.default)(thePaymodes, function (mode, index) {
|
|
1174
1269
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': mode.paymentType });
|
|
1175
1270
|
if (mode.paymentType == PayStyle.hyczk) {
|
|
1176
|
-
if (!Idmember) {
|
|
1177
|
-
Idmember = mode.member.id;
|
|
1178
|
-
}
|
|
1179
1271
|
czkSum = Math.Add(czkSum, mode.value);
|
|
1180
|
-
var MeStorageCardId = mode.member.MeStorageCardId ? mode.member.MeStorageCardId : _this11.member.MeStorageCardId;
|
|
1181
1272
|
_this11.dto.RetailStorageDetails.push({
|
|
1182
1273
|
Code: mode.paymethodId,
|
|
1183
|
-
MeStorageCardId:
|
|
1274
|
+
MeStorageCardId: mode.meStorageCardId,
|
|
1184
1275
|
StoragePaymentAmount: mode.value,
|
|
1185
1276
|
IsOrigReturn: false,
|
|
1186
1277
|
BalanceStorage: mode.balance,
|
|
1187
|
-
Idmember: mode.
|
|
1278
|
+
Idmember: mode.memberId,
|
|
1188
1279
|
DynamicPropertyKeys: [],
|
|
1189
1280
|
DynamicPropertyValues: [],
|
|
1190
1281
|
DataSource: { Id: _this11.dataSource },
|
|
@@ -1220,7 +1311,7 @@ var SettlementStore = (_class = function () {
|
|
|
1220
1311
|
ReductionAmount: djq.amount,
|
|
1221
1312
|
EnableAmount: djq.doorsill,
|
|
1222
1313
|
CouponTitle: djq.name,
|
|
1223
|
-
IdMember: djq.UMemberID ? mode.
|
|
1314
|
+
IdMember: djq.UMemberID ? mode.memberId : null,
|
|
1224
1315
|
LastTS: djq.LastTS,
|
|
1225
1316
|
PromotionId: djq.promoId,
|
|
1226
1317
|
PromotionRuleId: djq.promoRuleId,
|
|
@@ -1232,15 +1323,12 @@ var SettlementStore = (_class = function () {
|
|
|
1232
1323
|
}
|
|
1233
1324
|
});
|
|
1234
1325
|
|
|
1235
|
-
var
|
|
1236
|
-
isNewRetailBCPos =
|
|
1326
|
+
var _ref13 = _mutantsUtil.platform || {},
|
|
1327
|
+
isNewRetailBCPos = _ref13.isNewRetailBCPos;
|
|
1237
1328
|
|
|
1238
1329
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1239
1330
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
1240
1331
|
if (isNewRetailBCPos) {
|
|
1241
|
-
// this.dto.RetailStorageDetails && this.dto.RetailStorageDetails.forEach((value, index) => {
|
|
1242
|
-
// value.MeStorageCardId = (mode.MeStorageCardId ? mode.MeStorageCardId : this.member.MeStorageCardId);
|
|
1243
|
-
// })
|
|
1244
1332
|
_this11.dto.RetailPaymentDetails.push({
|
|
1245
1333
|
Code: _this11.paymode.counter,
|
|
1246
1334
|
OrigAmount: czkSum,
|
|
@@ -1264,15 +1352,14 @@ var SettlementStore = (_class = function () {
|
|
|
1264
1352
|
DataSource: { Id: _this11.dataSource }
|
|
1265
1353
|
});
|
|
1266
1354
|
}
|
|
1267
|
-
_this11.dto.Idmember = Idmember;
|
|
1268
1355
|
}
|
|
1269
1356
|
});
|
|
1270
|
-
|
|
1357
|
+
_ref14 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1271
1358
|
|
|
1272
1359
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1273
1360
|
|
|
1274
1361
|
if (!isNewRetailBCPos) {
|
|
1275
|
-
|
|
1362
|
+
_context4.next = 23;
|
|
1276
1363
|
break;
|
|
1277
1364
|
}
|
|
1278
1365
|
|
|
@@ -1284,7 +1371,7 @@ var SettlementStore = (_class = function () {
|
|
|
1284
1371
|
}
|
|
1285
1372
|
RetailTypeEnum = this.dto.IdbusiType == 36 ? "INTEGRAL_EXCHANGE" : "NORMAL";
|
|
1286
1373
|
_getLoginInfo2 = this.getLoginInfo(), PreSellOrBook = _getLoginInfo2.PreSellOrBook, PercentageWhenBook = _getLoginInfo2.PercentageWhenBook;
|
|
1287
|
-
|
|
1374
|
+
_ref15 = this.dto || {}, IdbusiType = _ref15.IdbusiType, DistributionMode = _ref15.DistributionMode;
|
|
1288
1375
|
|
|
1289
1376
|
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
1290
1377
|
prepaidAmount = this.dto.RetailPaymentDetails.reduce(function (c, item) {
|
|
@@ -1295,61 +1382,61 @@ var SettlementStore = (_class = function () {
|
|
|
1295
1382
|
_this11.dto.PrepaidAmount = prepaidAmount;
|
|
1296
1383
|
});
|
|
1297
1384
|
}
|
|
1298
|
-
|
|
1385
|
+
_context4.t1 = this.dto.IdbusiType == 37;
|
|
1299
1386
|
|
|
1300
|
-
if (!
|
|
1301
|
-
|
|
1387
|
+
if (!_context4.t1) {
|
|
1388
|
+
_context4.next = 16;
|
|
1302
1389
|
break;
|
|
1303
1390
|
}
|
|
1304
1391
|
|
|
1305
|
-
|
|
1392
|
+
_context4.next = 15;
|
|
1306
1393
|
return this.checkIntegralExchangeReturn(this.dto.RetailDetails[0].ReturnSourceId);
|
|
1307
1394
|
|
|
1308
1395
|
case 15:
|
|
1309
|
-
|
|
1396
|
+
_context4.t1 = _context4.sent;
|
|
1310
1397
|
|
|
1311
1398
|
case 16:
|
|
1312
|
-
|
|
1399
|
+
_context4.t0 = _context4.t1;
|
|
1313
1400
|
|
|
1314
|
-
if (
|
|
1315
|
-
|
|
1401
|
+
if (_context4.t0) {
|
|
1402
|
+
_context4.next = 19;
|
|
1316
1403
|
break;
|
|
1317
1404
|
}
|
|
1318
1405
|
|
|
1319
|
-
|
|
1406
|
+
_context4.t0 = this.dto.IdbusiType != 37;
|
|
1320
1407
|
|
|
1321
1408
|
case 19:
|
|
1322
|
-
if (!
|
|
1323
|
-
|
|
1409
|
+
if (!_context4.t0) {
|
|
1410
|
+
_context4.next = 21;
|
|
1324
1411
|
break;
|
|
1325
1412
|
}
|
|
1326
1413
|
|
|
1327
|
-
return
|
|
1414
|
+
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) {
|
|
1328
1415
|
_this11.setDtoID(resp.ID);
|
|
1329
1416
|
_this11.paymode.checkList = [];
|
|
1330
1417
|
_this11.billID = resp.ID;
|
|
1331
1418
|
}));
|
|
1332
1419
|
|
|
1333
1420
|
case 21:
|
|
1334
|
-
|
|
1421
|
+
_context4.next = 24;
|
|
1335
1422
|
break;
|
|
1336
1423
|
|
|
1337
1424
|
case 23:
|
|
1338
|
-
return
|
|
1425
|
+
return _context4.abrupt('return', (0, _tplusApi.tApi)({ dto: this.dto.cut() }, 'chanjet.RE.newRetail.Settle', false, false, { timeout_skip: true }).then(function (resp) {
|
|
1339
1426
|
_this11.setDtoID(resp.ID);
|
|
1340
1427
|
_this11.billID = resp.ID;
|
|
1341
1428
|
}));
|
|
1342
1429
|
|
|
1343
1430
|
case 24:
|
|
1344
1431
|
case 'end':
|
|
1345
|
-
return
|
|
1432
|
+
return _context4.stop();
|
|
1346
1433
|
}
|
|
1347
1434
|
}
|
|
1348
|
-
},
|
|
1435
|
+
}, _callee4, this);
|
|
1349
1436
|
}));
|
|
1350
1437
|
|
|
1351
1438
|
function save() {
|
|
1352
|
-
return
|
|
1439
|
+
return _ref12.apply(this, arguments);
|
|
1353
1440
|
}
|
|
1354
1441
|
|
|
1355
1442
|
return save;
|
|
@@ -1362,35 +1449,35 @@ var SettlementStore = (_class = function () {
|
|
|
1362
1449
|
}, {
|
|
1363
1450
|
key: 'querySettleResult',
|
|
1364
1451
|
value: function () {
|
|
1365
|
-
var
|
|
1366
|
-
return _regenerator2.default.wrap(function
|
|
1452
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1453
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1367
1454
|
while (1) {
|
|
1368
|
-
switch (
|
|
1455
|
+
switch (_context5.prev = _context5.next) {
|
|
1369
1456
|
case 0:
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1457
|
+
_context5.prev = 0;
|
|
1458
|
+
_context5.t0 = _promise2.default;
|
|
1459
|
+
_context5.next = 4;
|
|
1373
1460
|
return (0, _tplusApi.tApi)({ RetailCode: this.dto.Code }, 'chanjet.RE.newRetail.QuerySettleResult', false, false, { timeout_skip: true });
|
|
1374
1461
|
|
|
1375
1462
|
case 4:
|
|
1376
|
-
|
|
1377
|
-
return
|
|
1463
|
+
_context5.t1 = _context5.sent;
|
|
1464
|
+
return _context5.abrupt('return', _context5.t0.resolve.call(_context5.t0, _context5.t1));
|
|
1378
1465
|
|
|
1379
1466
|
case 8:
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
return
|
|
1467
|
+
_context5.prev = 8;
|
|
1468
|
+
_context5.t2 = _context5['catch'](0);
|
|
1469
|
+
return _context5.abrupt('return', _promise2.default.resolve({ Flag: "1" }));
|
|
1383
1470
|
|
|
1384
1471
|
case 11:
|
|
1385
1472
|
case 'end':
|
|
1386
|
-
return
|
|
1473
|
+
return _context5.stop();
|
|
1387
1474
|
}
|
|
1388
1475
|
}
|
|
1389
|
-
},
|
|
1476
|
+
}, _callee5, this, [[0, 8]]);
|
|
1390
1477
|
}));
|
|
1391
1478
|
|
|
1392
1479
|
function querySettleResult() {
|
|
1393
|
-
return
|
|
1480
|
+
return _ref16.apply(this, arguments);
|
|
1394
1481
|
}
|
|
1395
1482
|
|
|
1396
1483
|
return querySettleResult;
|
|
@@ -1416,99 +1503,131 @@ var SettlementStore = (_class = function () {
|
|
|
1416
1503
|
}, {
|
|
1417
1504
|
key: 'validePwd',
|
|
1418
1505
|
value: function () {
|
|
1419
|
-
var
|
|
1420
|
-
var
|
|
1506
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(value) {
|
|
1507
|
+
var _ref18, isNewRetailBCPos, cook1, cook2, message, memberStorageId, _paymode$currentMode, cardTypeEnum, memberId, meStorageCardId, cardStatusEnum, result, count, _result;
|
|
1421
1508
|
|
|
1422
|
-
return _regenerator2.default.wrap(function
|
|
1509
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1423
1510
|
while (1) {
|
|
1424
|
-
switch (
|
|
1511
|
+
switch (_context6.prev = _context6.next) {
|
|
1425
1512
|
case 0:
|
|
1426
|
-
|
|
1427
|
-
|
|
1513
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
1514
|
+
_context6.prev = 1;
|
|
1428
1515
|
|
|
1429
1516
|
if (!isNewRetailBCPos) {
|
|
1430
|
-
|
|
1517
|
+
_context6.next = 33;
|
|
1431
1518
|
break;
|
|
1432
1519
|
}
|
|
1433
1520
|
|
|
1434
1521
|
cook1 = this.getAllCookies()['errorPwd'];
|
|
1435
1522
|
cook2 = cook1 && JSON.parse(cook1);
|
|
1436
1523
|
message = '密码输入错误';
|
|
1437
|
-
|
|
1524
|
+
memberStorageId = this.paymode.currentMode.meStorageCardId;
|
|
1438
1525
|
|
|
1439
1526
|
if (!cook2) {
|
|
1440
|
-
|
|
1527
|
+
_context6.next = 12;
|
|
1441
1528
|
break;
|
|
1442
1529
|
}
|
|
1443
1530
|
|
|
1444
|
-
if (!cook2.hasOwnProperty(
|
|
1445
|
-
|
|
1531
|
+
if (!cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1532
|
+
_context6.next = 12;
|
|
1446
1533
|
break;
|
|
1447
1534
|
}
|
|
1448
1535
|
|
|
1449
|
-
if (!(cook2[
|
|
1450
|
-
|
|
1536
|
+
if (!(cook2[memberStorageId] > 3)) {
|
|
1537
|
+
_context6.next = 12;
|
|
1451
1538
|
break;
|
|
1452
1539
|
}
|
|
1453
1540
|
|
|
1454
1541
|
message = '今日密码错误已达上限,不可使用储值消费,请明日再试,如忘记请重置密码或修改密码。';
|
|
1455
|
-
return
|
|
1542
|
+
return _context6.abrupt('return', _promise2.default.resolve(message));
|
|
1456
1543
|
|
|
1457
1544
|
case 12:
|
|
1458
|
-
|
|
1459
|
-
|
|
1545
|
+
_paymode$currentMode = this.paymode.currentMode, cardTypeEnum = _paymode$currentMode.cardTypeEnum, memberId = _paymode$currentMode.memberId, meStorageCardId = _paymode$currentMode.meStorageCardId, cardStatusEnum = _paymode$currentMode.cardStatusEnum;
|
|
1546
|
+
result = null;
|
|
1460
1547
|
|
|
1461
|
-
|
|
1462
|
-
|
|
1548
|
+
if (!(cardTypeEnum === 'BALANCE_CARD')) {
|
|
1549
|
+
_context6.next = 20;
|
|
1550
|
+
break;
|
|
1551
|
+
}
|
|
1463
1552
|
|
|
1553
|
+
_context6.next = 17;
|
|
1554
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + memberId, false, false);
|
|
1555
|
+
|
|
1556
|
+
case 17:
|
|
1557
|
+
result = _context6.sent;
|
|
1558
|
+
_context6.next = 29;
|
|
1559
|
+
break;
|
|
1560
|
+
|
|
1561
|
+
case 20:
|
|
1562
|
+
if (!(cardStatusEnum === 'BINDING' && this.member && this.member.ID === memberId)) {
|
|
1563
|
+
_context6.next = 26;
|
|
1564
|
+
break;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
_context6.next = 23;
|
|
1568
|
+
return (0, _tplusApi.ccApi)({ md5Password: _tplusApi.User.pwdEncrypt(value.pwd), password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1569
|
+
|
|
1570
|
+
case 23:
|
|
1571
|
+
result = _context6.sent;
|
|
1572
|
+
_context6.next = 29;
|
|
1573
|
+
break;
|
|
1574
|
+
|
|
1575
|
+
case 26:
|
|
1576
|
+
_context6.next = 28;
|
|
1577
|
+
return (0, _tplusApi.ccApi)({ password: value.pwd, cardType: cardTypeEnum }, '/member/MeMemberWallet/checkPaymentPassword/' + meStorageCardId, false, false);
|
|
1578
|
+
|
|
1579
|
+
case 28:
|
|
1580
|
+
result = _context6.sent;
|
|
1581
|
+
|
|
1582
|
+
case 29:
|
|
1464
1583
|
if (!result.data) {
|
|
1465
1584
|
if (cook2) {
|
|
1466
|
-
if (cook2.hasOwnProperty(
|
|
1467
|
-
count = cook2[
|
|
1585
|
+
if (cook2.hasOwnProperty(memberStorageId + "")) {
|
|
1586
|
+
count = cook2[memberStorageId];
|
|
1468
1587
|
|
|
1469
|
-
cook2[
|
|
1588
|
+
cook2[memberStorageId] = count + 1;
|
|
1470
1589
|
} else {
|
|
1471
|
-
cook2[
|
|
1590
|
+
cook2[memberStorageId] = 1;
|
|
1472
1591
|
}
|
|
1473
1592
|
} else {
|
|
1474
1593
|
cook2 = {};
|
|
1475
|
-
cook2[
|
|
1594
|
+
cook2[memberStorageId] = 1;
|
|
1476
1595
|
}
|
|
1477
1596
|
this.setCookie('errorPwd', '', -1);
|
|
1478
1597
|
this.setCookie('errorPwd', (0, _stringify2.default)(cook2));
|
|
1479
1598
|
}
|
|
1480
|
-
return
|
|
1599
|
+
return _context6.abrupt('return', _promise2.default.resolve(result.data ? "" : message));
|
|
1481
1600
|
|
|
1482
|
-
case
|
|
1483
|
-
|
|
1601
|
+
case 33:
|
|
1602
|
+
_context6.next = 35;
|
|
1484
1603
|
return (0, _tplusApi.tApi)({ "CheckoutParams": {
|
|
1485
1604
|
"Idmember": value.id,
|
|
1486
1605
|
"Password": value.pwd
|
|
1487
1606
|
} }, 'AA.DR.newRetailMember.CheckoutMemberPassword', false, false);
|
|
1488
1607
|
|
|
1489
|
-
case
|
|
1490
|
-
_result =
|
|
1491
|
-
return
|
|
1608
|
+
case 35:
|
|
1609
|
+
_result = _context6.sent;
|
|
1610
|
+
return _context6.abrupt('return', _promise2.default.resolve(_result.Success ? "" : _result.Message));
|
|
1492
1611
|
|
|
1493
|
-
case
|
|
1494
|
-
|
|
1612
|
+
case 37:
|
|
1613
|
+
_context6.next = 42;
|
|
1495
1614
|
break;
|
|
1496
1615
|
|
|
1497
|
-
case
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
return
|
|
1616
|
+
case 39:
|
|
1617
|
+
_context6.prev = 39;
|
|
1618
|
+
_context6.t0 = _context6['catch'](1);
|
|
1619
|
+
return _context6.abrupt('return', "failed");
|
|
1501
1620
|
|
|
1502
|
-
case
|
|
1621
|
+
case 42:
|
|
1503
1622
|
case 'end':
|
|
1504
|
-
return
|
|
1623
|
+
return _context6.stop();
|
|
1505
1624
|
}
|
|
1506
1625
|
}
|
|
1507
|
-
},
|
|
1626
|
+
}, _callee6, this, [[1, 39]]);
|
|
1508
1627
|
}));
|
|
1509
1628
|
|
|
1510
|
-
function validePwd(
|
|
1511
|
-
return
|
|
1629
|
+
function validePwd(_x4) {
|
|
1630
|
+
return _ref17.apply(this, arguments);
|
|
1512
1631
|
}
|
|
1513
1632
|
|
|
1514
1633
|
return validePwd;
|
|
@@ -1530,7 +1649,7 @@ var SettlementStore = (_class = function () {
|
|
|
1530
1649
|
var idstore = (0, _tplusPoslogin.PosInitData)('storeID');
|
|
1531
1650
|
return (0, _tplusApi.ccApi)({
|
|
1532
1651
|
Idstore: idstore,
|
|
1533
|
-
meMemberId: _this12.
|
|
1652
|
+
meMemberId: _this12.paymode.currentMode.memberId,
|
|
1534
1653
|
oldPassword: null,
|
|
1535
1654
|
newPassword: _tplusApi.User.pwdEncrypt(newPassConfirm),
|
|
1536
1655
|
dataSource: "POS"
|
|
@@ -1547,41 +1666,134 @@ var SettlementStore = (_class = function () {
|
|
|
1547
1666
|
var _this13 = this;
|
|
1548
1667
|
|
|
1549
1668
|
return function () {
|
|
1550
|
-
var
|
|
1669
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(_this) {
|
|
1551
1670
|
var _getLoginInfo3, IdStore, StoreCode, resp;
|
|
1552
1671
|
|
|
1553
|
-
return _regenerator2.default.wrap(function
|
|
1672
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1554
1673
|
while (1) {
|
|
1555
|
-
switch (
|
|
1674
|
+
switch (_context7.prev = _context7.next) {
|
|
1556
1675
|
case 0:
|
|
1557
1676
|
_getLoginInfo3 = _this13.getLoginInfo(), IdStore = _getLoginInfo3.IdStore, StoreCode = _getLoginInfo3.StoreCode;
|
|
1558
|
-
|
|
1677
|
+
_context7.next = 3;
|
|
1559
1678
|
return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1560
1679
|
|
|
1561
1680
|
case 3:
|
|
1562
|
-
resp =
|
|
1681
|
+
resp = _context7.sent;
|
|
1563
1682
|
|
|
1564
1683
|
_this.member = resp;
|
|
1565
|
-
_this.paymode.
|
|
1566
|
-
return
|
|
1684
|
+
_this.paymode.updateMemberStorageCardNo(resp.StorageCardNo, resp.WalletEnabled);
|
|
1685
|
+
return _context7.abrupt('return', _promise2.default.resolve(resp));
|
|
1567
1686
|
|
|
1568
1687
|
case 7:
|
|
1569
1688
|
case 'end':
|
|
1570
|
-
return
|
|
1689
|
+
return _context7.stop();
|
|
1571
1690
|
}
|
|
1572
1691
|
}
|
|
1573
|
-
},
|
|
1692
|
+
}, _callee7, _this13);
|
|
1574
1693
|
}));
|
|
1575
1694
|
|
|
1576
|
-
return function (
|
|
1695
|
+
return function (_x5) {
|
|
1696
|
+
return _ref19.apply(this, arguments);
|
|
1697
|
+
};
|
|
1698
|
+
}();
|
|
1699
|
+
}
|
|
1700
|
+
}), _descriptor3 = _applyDecoratedDescriptor(_class.prototype, 'updateCurrentMode', [_mobx.action], {
|
|
1701
|
+
enumerable: true,
|
|
1702
|
+
initializer: function initializer() {
|
|
1703
|
+
var _this14 = this;
|
|
1704
|
+
|
|
1705
|
+
return function () {
|
|
1706
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(memberId) {
|
|
1707
|
+
var result;
|
|
1708
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1709
|
+
while (1) {
|
|
1710
|
+
switch (_context8.prev = _context8.next) {
|
|
1711
|
+
case 0:
|
|
1712
|
+
_context8.next = 2;
|
|
1713
|
+
return (0, _tplusApi.ccApi)({}, '/marketingtool/MeStorageCard/getCardInfoByMemberId/' + memberId + '/' + true, false, false, { method: 'get' });
|
|
1714
|
+
|
|
1715
|
+
case 2:
|
|
1716
|
+
result = _context8.sent;
|
|
1717
|
+
|
|
1718
|
+
if (!(result && result.data.length)) {
|
|
1719
|
+
_context8.next = 20;
|
|
1720
|
+
break;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
if (!(result.data.length === 1)) {
|
|
1724
|
+
_context8.next = 9;
|
|
1725
|
+
break;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1729
|
+
return _context8.abrupt('return', result.data);
|
|
1730
|
+
|
|
1731
|
+
case 9:
|
|
1732
|
+
if (!(result.data && result.data.length === 1)) {
|
|
1733
|
+
_context8.next = 14;
|
|
1734
|
+
break;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
_this14.paymode.updateCardInfo(result.data[0]);
|
|
1738
|
+
return _context8.abrupt('return', result.data);
|
|
1739
|
+
|
|
1740
|
+
case 14:
|
|
1741
|
+
if (!(result.data && result.data.length > 1)) {
|
|
1742
|
+
_context8.next = 18;
|
|
1743
|
+
break;
|
|
1744
|
+
}
|
|
1745
|
+
|
|
1746
|
+
return _context8.abrupt('return', result.data);
|
|
1747
|
+
|
|
1748
|
+
case 18:
|
|
1749
|
+
_message2.default.warn('没有可用储值卡!');
|
|
1750
|
+
return _context8.abrupt('return', false);
|
|
1751
|
+
|
|
1752
|
+
case 20:
|
|
1753
|
+
case 'end':
|
|
1754
|
+
return _context8.stop();
|
|
1755
|
+
}
|
|
1756
|
+
}
|
|
1757
|
+
}, _callee8, _this14);
|
|
1758
|
+
}));
|
|
1759
|
+
|
|
1760
|
+
return function (_x6) {
|
|
1577
1761
|
return _ref20.apply(this, arguments);
|
|
1578
1762
|
};
|
|
1579
1763
|
}();
|
|
1580
1764
|
}
|
|
1765
|
+
}), _descriptor4 = _applyDecoratedDescriptor(_class.prototype, 'updateCardInfo', [_mobx.action], {
|
|
1766
|
+
enumerable: true,
|
|
1767
|
+
initializer: function initializer() {
|
|
1768
|
+
var _this15 = this;
|
|
1769
|
+
|
|
1770
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
|
1771
|
+
var address, result;
|
|
1772
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
1773
|
+
while (1) {
|
|
1774
|
+
switch (_context9.prev = _context9.next) {
|
|
1775
|
+
case 0:
|
|
1776
|
+
address = '/marketingtool/MeStorageCard/getCardInfoByCardNo/' + _this15.paymode.currentMode.storageCardNo;
|
|
1777
|
+
_context9.next = 3;
|
|
1778
|
+
return (0, _tplusApi.ccApi)({}, address, false, false, { method: 'get', timeout_skip: true });
|
|
1779
|
+
|
|
1780
|
+
case 3:
|
|
1781
|
+
result = _context9.sent;
|
|
1782
|
+
|
|
1783
|
+
_this15.paymode.updateCardInfo(result.data);
|
|
1784
|
+
|
|
1785
|
+
case 5:
|
|
1786
|
+
case 'end':
|
|
1787
|
+
return _context9.stop();
|
|
1788
|
+
}
|
|
1789
|
+
}
|
|
1790
|
+
}, _callee9, _this15);
|
|
1791
|
+
}));
|
|
1792
|
+
}
|
|
1581
1793
|
}), _applyDecoratedDescriptor(_class.prototype, 'addDjq', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addDjq'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeClickFocusOnly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeClickFocusOnly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'changeValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'changeValue'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPayDirectly', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPayDirectly'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'addPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'addPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'delPay', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'delPay'), _class.prototype), _applyDecoratedDescriptor(_class.prototype, 'setDtoID', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class.prototype, 'setDtoID'), _class.prototype)), _class);
|
|
1582
1794
|
exports.default = SettlementStore;
|
|
1583
1795
|
var PayMode = exports.PayMode = (_class3 = function () {
|
|
1584
|
-
|
|
1796
|
+
//预订非全款 or 取货最大补款数大于0时 为 true
|
|
1585
1797
|
function PayMode() {
|
|
1586
1798
|
// this.amount=getFixedNumber(amount);
|
|
1587
1799
|
// this.calcReserved();
|
|
@@ -1592,18 +1804,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1592
1804
|
this.onlineamount = 0;
|
|
1593
1805
|
this.maxamount = 0;
|
|
1594
1806
|
|
|
1595
|
-
_initDefineProp(this, 'currentFocus',
|
|
1807
|
+
_initDefineProp(this, 'currentFocus', _descriptor5, this);
|
|
1596
1808
|
|
|
1597
|
-
_initDefineProp(this, 'received',
|
|
1809
|
+
_initDefineProp(this, 'received', _descriptor6, this);
|
|
1598
1810
|
|
|
1599
|
-
_initDefineProp(this, 'receivable',
|
|
1811
|
+
_initDefineProp(this, 'receivable', _descriptor7, this);
|
|
1600
1812
|
|
|
1601
|
-
_initDefineProp(this, 'paymodes',
|
|
1813
|
+
_initDefineProp(this, 'paymodes', _descriptor8, this);
|
|
1602
1814
|
|
|
1603
|
-
_initDefineProp(this, 'thePaymodes',
|
|
1815
|
+
_initDefineProp(this, 'thePaymodes', _descriptor9, this);
|
|
1604
1816
|
|
|
1605
1817
|
this.bookMaxValue = 0;
|
|
1606
1818
|
this.isNotFullBook = false;
|
|
1819
|
+
this.isNotFullOnlyBook = false;
|
|
1820
|
+
|
|
1821
|
+
_initDefineProp(this, 'storageCardNo', _descriptor10, this);
|
|
1822
|
+
|
|
1823
|
+
_initDefineProp(this, 'balance', _descriptor11, this);
|
|
1824
|
+
|
|
1607
1825
|
this.currentMode = null;
|
|
1608
1826
|
this.checkList = [];
|
|
1609
1827
|
this.settle = {
|
|
@@ -1611,13 +1829,15 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1611
1829
|
hotKey: "Ctrl+M"
|
|
1612
1830
|
};
|
|
1613
1831
|
|
|
1614
|
-
_initDefineProp(this, 'calcCheckList',
|
|
1832
|
+
_initDefineProp(this, 'calcCheckList', _descriptor12, this);
|
|
1615
1833
|
|
|
1616
|
-
_initDefineProp(this, 'setCouponNum',
|
|
1834
|
+
_initDefineProp(this, 'setCouponNum', _descriptor13, this);
|
|
1617
1835
|
|
|
1618
|
-
_initDefineProp(this, 'addDjqs',
|
|
1619
|
-
}
|
|
1836
|
+
_initDefineProp(this, 'addDjqs', _descriptor14, this);
|
|
1837
|
+
}
|
|
1620
1838
|
// @observable store = null;
|
|
1839
|
+
//只是预订非全款时为true
|
|
1840
|
+
//应收
|
|
1621
1841
|
|
|
1622
1842
|
|
|
1623
1843
|
(0, _createClass3.default)(PayMode, [{
|
|
@@ -1663,10 +1883,30 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1663
1883
|
this.receivable = (0, _utils.getFixedNumber)(this.amount - sum);
|
|
1664
1884
|
}
|
|
1665
1885
|
}
|
|
1886
|
+
}, {
|
|
1887
|
+
key: 'updateMemberStorageCardNo',
|
|
1888
|
+
value: function updateMemberStorageCardNo(storageCardNo, walletEnabled) {
|
|
1889
|
+
this.currentMode.storageCardNo = storageCardNo;
|
|
1890
|
+
this.currentMode.walletEnabled = walletEnabled;
|
|
1891
|
+
}
|
|
1892
|
+
}, {
|
|
1893
|
+
key: 'updateCardInfo',
|
|
1894
|
+
value: function updateCardInfo(m) {
|
|
1895
|
+
this.currentMode.cardStatusEnum = m.CardStatusEnum;
|
|
1896
|
+
this.currentMode.isNeedPassword = m.IsNeedPassword;
|
|
1897
|
+
this.currentMode.meStorageCardId = m.MeStorageCardId;
|
|
1898
|
+
this.currentMode.storageCardNo = m.StorageCardNo;
|
|
1899
|
+
this.currentMode.balance = m.BalanceStorage;
|
|
1900
|
+
this.currentMode.rawbalance = m.BalanceStorage;
|
|
1901
|
+
this.currentMode.cardTypeEnum = m.CardTypeEnum;
|
|
1902
|
+
this.currentMode.walletEnabled = m.WalletEnabled;
|
|
1903
|
+
this.currentMode.memberId = m.ID;
|
|
1904
|
+
this.currentMode.freePaymentPasswordStore = m.FreePaymentPasswordStore;
|
|
1905
|
+
}
|
|
1666
1906
|
}, {
|
|
1667
1907
|
key: 'calcDjqCheckValue',
|
|
1668
1908
|
value: function calcDjqCheckValue(q1, dto, params) {
|
|
1669
|
-
var
|
|
1909
|
+
var _this16 = this;
|
|
1670
1910
|
|
|
1671
1911
|
var useLimitPerOrder = (0, _tplusPoslogin.PosInitData)('UseLimitPerOrder');
|
|
1672
1912
|
var qList = (0, _filter3.default)(this.currentMode.djqs, function (djq) {
|
|
@@ -1680,12 +1920,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1680
1920
|
this.checkList = [];
|
|
1681
1921
|
}
|
|
1682
1922
|
|
|
1683
|
-
var
|
|
1684
|
-
isNewRetailBCPos =
|
|
1923
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1924
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1685
1925
|
|
|
1686
|
-
var _enumController$
|
|
1687
|
-
PayStyle = _enumController$
|
|
1688
|
-
Differentiate = _enumController$
|
|
1926
|
+
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1927
|
+
PayStyle = _enumController$getEn16.PayStyle,
|
|
1928
|
+
Differentiate = _enumController$getEn16.Differentiate;
|
|
1689
1929
|
|
|
1690
1930
|
if (q1) {
|
|
1691
1931
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1713,7 +1953,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1713
1953
|
if (!q1.checked) {
|
|
1714
1954
|
this.checkList.forEach(function (ele, i) {
|
|
1715
1955
|
if (ele.id === q1.id) {
|
|
1716
|
-
|
|
1956
|
+
_this16.checkList.splice(i, 1);
|
|
1717
1957
|
}
|
|
1718
1958
|
});
|
|
1719
1959
|
} else {
|
|
@@ -1785,24 +2025,24 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1785
2025
|
if (result && result.length != 0) {
|
|
1786
2026
|
result.forEach(function (element, index) {
|
|
1787
2027
|
var djq1 = false;
|
|
1788
|
-
|
|
2028
|
+
_this16.currentMode.djqs.forEach(function (djq) {
|
|
1789
2029
|
if (element.id === djq.id) {
|
|
1790
2030
|
djq1 = true;
|
|
1791
2031
|
}
|
|
1792
2032
|
});
|
|
1793
2033
|
|
|
1794
|
-
var
|
|
1795
|
-
couponCode =
|
|
1796
|
-
name =
|
|
1797
|
-
tieredAmountResult =
|
|
1798
|
-
fromDate =
|
|
1799
|
-
dateMount =
|
|
1800
|
-
promoMethodEnum =
|
|
1801
|
-
discountPct =
|
|
1802
|
-
nominalAmount =
|
|
1803
|
-
promoId =
|
|
1804
|
-
id =
|
|
1805
|
-
doorsill =
|
|
2034
|
+
var _ref23 = element || {},
|
|
2035
|
+
couponCode = _ref23.couponCode,
|
|
2036
|
+
name = _ref23.name,
|
|
2037
|
+
tieredAmountResult = _ref23.tieredAmountResult,
|
|
2038
|
+
fromDate = _ref23.fromDate,
|
|
2039
|
+
dateMount = _ref23.dateMount,
|
|
2040
|
+
promoMethodEnum = _ref23.promoMethodEnum,
|
|
2041
|
+
discountPct = _ref23.discountPct,
|
|
2042
|
+
nominalAmount = _ref23.nominalAmount,
|
|
2043
|
+
promoId = _ref23.promoId,
|
|
2044
|
+
id = _ref23.id,
|
|
2045
|
+
doorsill = _ref23.doorsill;
|
|
1806
2046
|
|
|
1807
2047
|
var condValue = tieredAmountResult.condValue,
|
|
1808
2048
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1830,10 +2070,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1830
2070
|
// couponCategoryEnum: tieredAmountResult.couponCategoryEnum,
|
|
1831
2071
|
// id
|
|
1832
2072
|
// })
|
|
1833
|
-
|
|
2073
|
+
_this16.addDjqs(couponCode, name, true, nominalAmount, doorsill, element.LastTS, false, true, dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, tieredAmountResult.couponCategoryEnum, id);
|
|
1834
2074
|
djq1 = false;
|
|
1835
2075
|
} else {
|
|
1836
|
-
|
|
2076
|
+
_this16.setCouponNum(element.id, tieredAmountResult.couponCategoryEnum, promoMethodEnum, nominalAmount, promoDiscount);
|
|
1837
2077
|
// this.currentMode.djqs[0].couponCategoryEnum = 'couponCategoryEnum';
|
|
1838
2078
|
// djq1.couponCategoryEnum = element.tieredAmountResult.couponCategoryEnum
|
|
1839
2079
|
}
|
|
@@ -1846,11 +2086,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1846
2086
|
}, {
|
|
1847
2087
|
key: 'calcDjqValue',
|
|
1848
2088
|
value: function calcDjqValue(q1) {
|
|
1849
|
-
var
|
|
1850
|
-
isNewRetailBCPos =
|
|
2089
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2090
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
1851
2091
|
|
|
1852
|
-
var _enumController$
|
|
1853
|
-
Differentiate = _enumController$
|
|
2092
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
2093
|
+
Differentiate = _enumController$getEn17.Differentiate;
|
|
1854
2094
|
|
|
1855
2095
|
if (q1) {
|
|
1856
2096
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1912,8 +2152,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1912
2152
|
this.currentMode.errinfo = '';
|
|
1913
2153
|
var sum = this.amount;
|
|
1914
2154
|
|
|
1915
|
-
var _enumController$
|
|
1916
|
-
PayStyle = _enumController$
|
|
2155
|
+
var _enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(),
|
|
2156
|
+
PayStyle = _enumController$getEn18.PayStyle;
|
|
1917
2157
|
|
|
1918
2158
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1919
2159
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1932,28 +2172,28 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1932
2172
|
}, {
|
|
1933
2173
|
key: 'calcMemberBalance',
|
|
1934
2174
|
value: function calcMemberBalance() {
|
|
1935
|
-
this.currentMode.balance = this.currentMode.
|
|
2175
|
+
this.currentMode.balance = this.currentMode.rawbalance - this.currentMode.value;
|
|
1936
2176
|
}
|
|
1937
2177
|
}, {
|
|
1938
2178
|
key: 'setPaymodes',
|
|
1939
2179
|
value: function () {
|
|
1940
|
-
var
|
|
1941
|
-
var
|
|
2180
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(type, isIntegralExchange) {
|
|
2181
|
+
var _this17 = this;
|
|
1942
2182
|
|
|
1943
|
-
var _enumController$
|
|
2183
|
+
var _enumController$getEn19, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1944
2184
|
|
|
1945
|
-
return _regenerator2.default.wrap(function
|
|
2185
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1946
2186
|
while (1) {
|
|
1947
|
-
switch (
|
|
2187
|
+
switch (_context10.prev = _context10.next) {
|
|
1948
2188
|
case 0:
|
|
1949
|
-
_enumController$
|
|
2189
|
+
_enumController$getEn19 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn19.settleStyleType, PayStyle = _enumController$getEn19.PayStyle;
|
|
1950
2190
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1951
2191
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1952
|
-
|
|
2192
|
+
_context10.next = 5;
|
|
1953
2193
|
return (0, _tplusApi.tApi)({ param: param }, 'chanjet.RE.NewPos.GetNewStoreSettleStyles', false, false);
|
|
1954
2194
|
|
|
1955
2195
|
case 5:
|
|
1956
|
-
modes =
|
|
2196
|
+
modes = _context10.sent;
|
|
1957
2197
|
|
|
1958
2198
|
if (modes) {
|
|
1959
2199
|
(0, _mobx.runInAction)(function () {
|
|
@@ -1962,7 +2202,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1962
2202
|
//产品需求确认会员储值卡结算方式前端展示统一调整为“储值卡" tuzha by 2020-07-08
|
|
1963
2203
|
|
|
1964
2204
|
if (mode.Code == PayStyle.hyczk) {
|
|
1965
|
-
mode.Name = '
|
|
2205
|
+
mode.Name = '储值卡';
|
|
1966
2206
|
}
|
|
1967
2207
|
paymodes.push({
|
|
1968
2208
|
name: mode.Name,
|
|
@@ -1979,21 +2219,21 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1979
2219
|
virtualPay: mode.VirtualPay
|
|
1980
2220
|
});
|
|
1981
2221
|
});
|
|
1982
|
-
|
|
2222
|
+
_this17.paymodes = paymodes;
|
|
1983
2223
|
//modes.QuickSettleStyles
|
|
1984
2224
|
});
|
|
1985
2225
|
}
|
|
1986
2226
|
|
|
1987
2227
|
case 7:
|
|
1988
2228
|
case 'end':
|
|
1989
|
-
return
|
|
2229
|
+
return _context10.stop();
|
|
1990
2230
|
}
|
|
1991
2231
|
}
|
|
1992
|
-
},
|
|
2232
|
+
}, _callee10, this);
|
|
1993
2233
|
}));
|
|
1994
2234
|
|
|
1995
|
-
function setPaymodes(
|
|
1996
|
-
return
|
|
2235
|
+
function setPaymodes(_x7, _x8) {
|
|
2236
|
+
return _ref25.apply(this, arguments);
|
|
1997
2237
|
}
|
|
1998
2238
|
|
|
1999
2239
|
return setPaymodes;
|
|
@@ -2010,47 +2250,57 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2010
2250
|
}
|
|
2011
2251
|
}]);
|
|
2012
2252
|
return PayMode;
|
|
2013
|
-
}(), (
|
|
2253
|
+
}(), (_descriptor5 = _applyDecoratedDescriptor(_class3.prototype, 'currentFocus', [_mobx.observable], {
|
|
2014
2254
|
enumerable: true,
|
|
2015
2255
|
initializer: function initializer() {
|
|
2016
2256
|
return "";
|
|
2017
2257
|
}
|
|
2018
|
-
}),
|
|
2258
|
+
}), _descriptor6 = _applyDecoratedDescriptor(_class3.prototype, 'received', [_mobx.observable], {
|
|
2019
2259
|
enumerable: true,
|
|
2020
2260
|
initializer: function initializer() {
|
|
2021
2261
|
return 0;
|
|
2022
2262
|
}
|
|
2023
|
-
}),
|
|
2263
|
+
}), _descriptor7 = _applyDecoratedDescriptor(_class3.prototype, 'receivable', [_mobx.observable], {
|
|
2024
2264
|
enumerable: true,
|
|
2025
2265
|
initializer: function initializer() {
|
|
2026
2266
|
return 0;
|
|
2027
2267
|
}
|
|
2028
|
-
}),
|
|
2268
|
+
}), _descriptor8 = _applyDecoratedDescriptor(_class3.prototype, 'paymodes', [_mobx.observable], {
|
|
2029
2269
|
enumerable: true,
|
|
2030
2270
|
initializer: function initializer() {
|
|
2031
2271
|
return [];
|
|
2032
2272
|
}
|
|
2033
|
-
}),
|
|
2273
|
+
}), _descriptor9 = _applyDecoratedDescriptor(_class3.prototype, 'thePaymodes', [_mobx.observable], {
|
|
2034
2274
|
enumerable: true,
|
|
2035
2275
|
initializer: function initializer() {
|
|
2036
2276
|
return [];
|
|
2037
2277
|
}
|
|
2038
|
-
}),
|
|
2278
|
+
}), _descriptor10 = _applyDecoratedDescriptor(_class3.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2039
2279
|
enumerable: true,
|
|
2040
2280
|
initializer: function initializer() {
|
|
2041
|
-
|
|
2281
|
+
return null;
|
|
2282
|
+
}
|
|
2283
|
+
}), _descriptor11 = _applyDecoratedDescriptor(_class3.prototype, 'balance', [_mobx.observable], {
|
|
2284
|
+
enumerable: true,
|
|
2285
|
+
initializer: function initializer() {
|
|
2286
|
+
return null;
|
|
2287
|
+
}
|
|
2288
|
+
}), _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], {
|
|
2289
|
+
enumerable: true,
|
|
2290
|
+
initializer: function initializer() {
|
|
2291
|
+
var _this18 = this;
|
|
2042
2292
|
|
|
2043
2293
|
return function () {
|
|
2044
|
-
|
|
2294
|
+
_this18.checkList = [];
|
|
2045
2295
|
};
|
|
2046
2296
|
}
|
|
2047
|
-
}), _applyDecoratedDescriptor(_class3.prototype, 'calcDjqCheckValue', [_mobx.action], (0, _getOwnPropertyDescriptor2.default)(_class3.prototype, 'calcDjqCheckValue'), _class3.prototype),
|
|
2297
|
+
}), _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], {
|
|
2048
2298
|
enumerable: true,
|
|
2049
2299
|
initializer: function initializer() {
|
|
2050
|
-
var
|
|
2300
|
+
var _this19 = this;
|
|
2051
2301
|
|
|
2052
2302
|
return function (id, couponNum, promoMethodEnum, nominalAmount, promoDiscount) {
|
|
2053
|
-
|
|
2303
|
+
_this19.currentMode.djqs.forEach(function (ele) {
|
|
2054
2304
|
if (ele.id === id) {
|
|
2055
2305
|
promoMethodEnum == "CASH_COUPON" ? ele.amount = nominalAmount : ele.amount = promoDiscount;
|
|
2056
2306
|
ele.couponCategoryEnum = couponNum;
|
|
@@ -2060,10 +2310,10 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2060
2310
|
});
|
|
2061
2311
|
};
|
|
2062
2312
|
}
|
|
2063
|
-
}),
|
|
2313
|
+
}), _descriptor14 = _applyDecoratedDescriptor(_class3.prototype, 'addDjqs', [_mobx.action], {
|
|
2064
2314
|
enumerable: true,
|
|
2065
2315
|
initializer: function initializer() {
|
|
2066
|
-
var
|
|
2316
|
+
var _this20 = this;
|
|
2067
2317
|
|
|
2068
2318
|
return function (promoCouponCode, name, IsEnable, amount, doorsill, LastTS, checked, IsRepelWithPoints, UMemberID, expired, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, couponCategoryEnum, id) {
|
|
2069
2319
|
var djq = {
|
|
@@ -2085,25 +2335,25 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
2085
2335
|
couponCategoryEnum: couponCategoryEnum,
|
|
2086
2336
|
id: id
|
|
2087
2337
|
};
|
|
2088
|
-
|
|
2338
|
+
_this20.currentMode.djqs.push(djq);
|
|
2089
2339
|
};
|
|
2090
2340
|
}
|
|
2091
2341
|
}), _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);
|
|
2092
2342
|
var Member = exports.Member = (_class5 = function () {
|
|
2093
2343
|
function Member(m) {
|
|
2094
|
-
var
|
|
2344
|
+
var _this21 = this;
|
|
2095
2345
|
|
|
2096
2346
|
(0, _classCallCheck3.default)(this, Member);
|
|
2097
2347
|
|
|
2098
|
-
_initDefineProp(this, 'cardNo',
|
|
2348
|
+
_initDefineProp(this, 'cardNo', _descriptor15, this);
|
|
2099
2349
|
|
|
2100
|
-
_initDefineProp(this, 'balance',
|
|
2350
|
+
_initDefineProp(this, 'balance', _descriptor16, this);
|
|
2101
2351
|
|
|
2102
|
-
_initDefineProp(this, 'exchangable',
|
|
2352
|
+
_initDefineProp(this, 'exchangable', _descriptor17, this);
|
|
2103
2353
|
|
|
2104
|
-
_initDefineProp(this, '
|
|
2354
|
+
_initDefineProp(this, 'meStorageCardId', _descriptor18, this);
|
|
2105
2355
|
|
|
2106
|
-
_initDefineProp(this, '
|
|
2356
|
+
_initDefineProp(this, 'storageCardNo', _descriptor19, this);
|
|
2107
2357
|
|
|
2108
2358
|
if (m) {
|
|
2109
2359
|
this.id = m.ID;
|
|
@@ -2114,17 +2364,15 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2114
2364
|
return key == 'canusedbalancestorage';
|
|
2115
2365
|
});
|
|
2116
2366
|
|
|
2117
|
-
var
|
|
2118
|
-
isNewRetailBCPos =
|
|
2367
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
2368
|
+
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
2119
2369
|
|
|
2120
|
-
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2121
|
-
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|
|
2122
2370
|
(0, _mobx.runInAction)(function () {
|
|
2123
|
-
|
|
2371
|
+
_this21.cardNo = m.CardCode;
|
|
2124
2372
|
if (index >= 0) {
|
|
2125
|
-
|
|
2373
|
+
_this21.balance = parseFloat(m.DynamicPropertyValues[index]);
|
|
2126
2374
|
} else {
|
|
2127
|
-
|
|
2375
|
+
_this21.balance = _this21.rawbalance;
|
|
2128
2376
|
}
|
|
2129
2377
|
});
|
|
2130
2378
|
this.needPwd = m.MemberType ? m.MemberType.IsNeedPwd : false;
|
|
@@ -2144,32 +2392,22 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2144
2392
|
this.cardNo = v;
|
|
2145
2393
|
this.id = null;
|
|
2146
2394
|
}
|
|
2147
|
-
}, {
|
|
2148
|
-
key: 'setMeStorageCardId',
|
|
2149
|
-
value: function setMeStorageCardId(v) {
|
|
2150
|
-
this.MeStorageCardId = v;
|
|
2151
|
-
}
|
|
2152
|
-
}, {
|
|
2153
|
-
key: 'setStorageCardNo',
|
|
2154
|
-
value: function setStorageCardNo(v) {
|
|
2155
|
-
this.StorageCardNo = v;
|
|
2156
|
-
}
|
|
2157
2395
|
}]);
|
|
2158
2396
|
return Member;
|
|
2159
|
-
}(), (
|
|
2397
|
+
}(), (_descriptor15 = _applyDecoratedDescriptor(_class5.prototype, 'cardNo', [_mobx.observable], {
|
|
2160
2398
|
enumerable: true,
|
|
2161
2399
|
initializer: null
|
|
2162
|
-
}),
|
|
2400
|
+
}), _descriptor16 = _applyDecoratedDescriptor(_class5.prototype, 'balance', [_mobx.observable], {
|
|
2163
2401
|
enumerable: true,
|
|
2164
2402
|
initializer: null
|
|
2165
|
-
}),
|
|
2403
|
+
}), _descriptor17 = _applyDecoratedDescriptor(_class5.prototype, 'exchangable', [_mobx.observable], {
|
|
2166
2404
|
enumerable: true,
|
|
2167
2405
|
initializer: null
|
|
2168
|
-
}),
|
|
2406
|
+
}), _descriptor18 = _applyDecoratedDescriptor(_class5.prototype, 'meStorageCardId', [_mobx.observable], {
|
|
2169
2407
|
enumerable: true,
|
|
2170
2408
|
initializer: null
|
|
2171
|
-
}),
|
|
2409
|
+
}), _descriptor19 = _applyDecoratedDescriptor(_class5.prototype, 'storageCardNo', [_mobx.observable], {
|
|
2172
2410
|
enumerable: true,
|
|
2173
2411
|
initializer: null
|
|
2174
|
-
}), _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)
|
|
2412
|
+
}), _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);
|
|
2175
2413
|
//# sourceMappingURL=settlementStore.js.map
|