tplus-components-touch 3.28.6 → 3.28.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/billSearch/api.js +74 -13
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +36 -167
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +3 -6
- package/dist/components/cloudPrint/api.js +43 -85
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +108 -209
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +16 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/index.js +9 -3
- package/dist/components/commonForm/index.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 +52 -0
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/style.less +7 -0
- package/dist/components/inventorySearch/tab.js +67 -76
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +2 -4
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +40 -35
- package/dist/components/loading/style.less +6 -8
- package/dist/components/presale/pickup.js +431 -0
- package/dist/components/presale/pickup.js.map +1 -0
- package/dist/components/presale/style.less +48 -0
- package/dist/components/settlement/settlement.js +235 -75
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +7 -1
- package/dist/components/settlement/settlementStore.js +135 -105
- 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 +1 -1
- 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/touchTable/index.js +12 -4
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +13 -20
- package/dist/index.js +9 -16
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -999,7 +999,7 @@
|
|
|
999
999
|
button{
|
|
1000
1000
|
background-color: white ;
|
|
1001
1001
|
opacity:1;
|
|
1002
|
-
}
|
|
1002
|
+
}
|
|
1003
1003
|
}
|
|
1004
1004
|
}
|
|
1005
1005
|
.paymode{
|
|
@@ -1592,4 +1592,10 @@
|
|
|
1592
1592
|
}
|
|
1593
1593
|
}
|
|
1594
1594
|
}
|
|
1595
|
+
}
|
|
1596
|
+
.freight{
|
|
1597
|
+
margin-left: 5px;
|
|
1598
|
+
vertical-align: middle;
|
|
1599
|
+
color: #666666;
|
|
1600
|
+
font-size: 12px;
|
|
1595
1601
|
}
|
|
@@ -234,7 +234,7 @@ var SettlementStore = (_class = function () {
|
|
|
234
234
|
}
|
|
235
235
|
detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
|
|
236
236
|
detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
|
|
237
|
-
//}
|
|
237
|
+
//}
|
|
238
238
|
detailDTO.taxRate = item.TaxRate;
|
|
239
239
|
detailDTO.quantity = item.Quantity;
|
|
240
240
|
|
|
@@ -307,6 +307,18 @@ var SettlementStore = (_class = function () {
|
|
|
307
307
|
return (0, _tplusApi.ccApi)({}, '/marketingtool/paygift/executeRightsForPos/' + _this2.billID, false, false, { method: 'get', timeout_skip: true });
|
|
308
308
|
};
|
|
309
309
|
|
|
310
|
+
this.getRefWareHouseList = function () {
|
|
311
|
+
return (0, _tplusApi.ccApi)({}, '/retail/RetailPos/getRefWareHouseList', false, false);
|
|
312
|
+
};
|
|
313
|
+
|
|
314
|
+
this.getPerformanceDistributionValue = function (data) {
|
|
315
|
+
return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPerformanceDistributionValue', false, false);
|
|
316
|
+
};
|
|
317
|
+
|
|
318
|
+
this.getPosFreight = function (data) {
|
|
319
|
+
return (0, _tplusApi.ccApi)(data, '/retail/RetailPos/getPosFreight', false, false);
|
|
320
|
+
};
|
|
321
|
+
|
|
310
322
|
this.checkCoupon = function () {
|
|
311
323
|
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(sn) {
|
|
312
324
|
var _ref4, isNewRetailBCPos, _enumController$getEn3, PayStyle, Differentiate;
|
|
@@ -425,7 +437,7 @@ var SettlementStore = (_class = function () {
|
|
|
425
437
|
}
|
|
426
438
|
}, {
|
|
427
439
|
key: 'init',
|
|
428
|
-
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data
|
|
440
|
+
value: function init(context, amounthandler, datasource, storeinfo, bquick, amount, type, data) {
|
|
429
441
|
var _this3 = this;
|
|
430
442
|
|
|
431
443
|
this.newStyle = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('voucherDefaultPosMode') == 'voucher';
|
|
@@ -441,20 +453,39 @@ var SettlementStore = (_class = function () {
|
|
|
441
453
|
if (global.DealSingleRowAmountSettingProcessorBlock) {
|
|
442
454
|
global.DealSingleRowAmountSettingProcessorBlock.execute(_this3.dto);
|
|
443
455
|
}
|
|
444
|
-
|
|
445
|
-
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
446
|
-
PayStyle = _enumController$getEn4.PayStyle;
|
|
447
|
-
|
|
448
|
-
var isQuickCash = bquick && payModeKey == PayStyle.xianjin;
|
|
449
|
-
|
|
450
456
|
// 成交金额抹零
|
|
451
457
|
if (global.DealAmountSettingProcessorBlock) {
|
|
452
|
-
global.DealAmountSettingProcessorBlock.execute(_this3.dto
|
|
458
|
+
global.DealAmountSettingProcessorBlock.execute(_this3.dto);
|
|
453
459
|
}
|
|
454
460
|
});
|
|
455
461
|
// this.member=context.stores && context.stores.memberStore && context.stores.memberStore.member;
|
|
456
462
|
this.member = this.dto.Member; //stores.selectMemberStore.selectMemberInfo;
|
|
457
|
-
|
|
463
|
+
|
|
464
|
+
//预订按比例收取订金处理
|
|
465
|
+
var value = this.dto.TotalTaxAmount;
|
|
466
|
+
|
|
467
|
+
var _getLoginInfo = this.getLoginInfo(),
|
|
468
|
+
PreSellOrBook = _getLoginInfo.PreSellOrBook,
|
|
469
|
+
PercentageWhenBook = _getLoginInfo.PercentageWhenBook;
|
|
470
|
+
|
|
471
|
+
var _ref5 = this.dto || {},
|
|
472
|
+
IdbusiType = _ref5.IdbusiType,
|
|
473
|
+
DistributionMode = _ref5.DistributionMode;
|
|
474
|
+
|
|
475
|
+
if (IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
476
|
+
value = value * PercentageWhenBook / 100;
|
|
477
|
+
(0, _mobx.runInAction)(function () {
|
|
478
|
+
_this3.dto.PrepaidAmount = value;
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
if (IdbusiType == 38 && PreSellOrBook != 'DISABLED' && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
482
|
+
value += this.dto.BuyerPayFreight || 0;
|
|
483
|
+
}
|
|
484
|
+
if (IdbusiType == 39) {
|
|
485
|
+
value = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
this.brefund = this.paymode.setAmount(value, this.dto.OnlinePaymentAmount);
|
|
458
489
|
} else {
|
|
459
490
|
this.brefund = this.paymode.setAmount(amount, 0);
|
|
460
491
|
this.dto = data;
|
|
@@ -499,11 +530,11 @@ var SettlementStore = (_class = function () {
|
|
|
499
530
|
value: function initByOriginReturn() {
|
|
500
531
|
var _this5 = this;
|
|
501
532
|
|
|
502
|
-
var _enumController$
|
|
503
|
-
PayStyle = _enumController$
|
|
533
|
+
var _enumController$getEn4 = _mutantsUtil.enumController.getEnumOj(),
|
|
534
|
+
PayStyle = _enumController$getEn4.PayStyle;
|
|
504
535
|
|
|
505
|
-
var
|
|
506
|
-
isNewRetailBCPos =
|
|
536
|
+
var _ref6 = _mutantsUtil.platform || {},
|
|
537
|
+
isNewRetailBCPos = _ref6.isNewRetailBCPos;
|
|
507
538
|
|
|
508
539
|
console.log(this.dto, 'dto==========');
|
|
509
540
|
this.paymode.checkList = [];
|
|
@@ -528,14 +559,14 @@ var SettlementStore = (_class = function () {
|
|
|
528
559
|
if (themode.paymentType == PayStyle.djq) {
|
|
529
560
|
(0, _each3.default)(_this5.dto.RetailCouponDetails, function (djq) {
|
|
530
561
|
if (isNewRetailBCPos) {
|
|
531
|
-
var
|
|
532
|
-
displayText =
|
|
533
|
-
promoRuleId =
|
|
534
|
-
dateMount =
|
|
535
|
-
promoMethodEnum =
|
|
536
|
-
discountPct =
|
|
537
|
-
promoId =
|
|
538
|
-
id =
|
|
562
|
+
var _ref7 = djq || {},
|
|
563
|
+
displayText = _ref7.displayText,
|
|
564
|
+
promoRuleId = _ref7.promoRuleId,
|
|
565
|
+
dateMount = _ref7.dateMount,
|
|
566
|
+
promoMethodEnum = _ref7.promoMethodEnum,
|
|
567
|
+
discountPct = _ref7.discountPct,
|
|
568
|
+
promoId = _ref7.promoId,
|
|
569
|
+
id = _ref7.id;
|
|
539
570
|
|
|
540
571
|
_this5.addDjq(djq.CouponCode, djq.CouponTitle, true, djq.ReductionAmount, djq.EnableAmount, djq.LastTS, true, false, _this5.dto.Idmember, dateMount, displayText, promoMethodEnum, discountPct, promoId, promoRuleId, null, id, true);
|
|
541
572
|
return;
|
|
@@ -568,7 +599,7 @@ var SettlementStore = (_class = function () {
|
|
|
568
599
|
}, {
|
|
569
600
|
key: 'quickSettle',
|
|
570
601
|
value: function quickSettle(key) {
|
|
571
|
-
this.addPay(key
|
|
602
|
+
this.addPay(key);
|
|
572
603
|
}
|
|
573
604
|
|
|
574
605
|
//outer call
|
|
@@ -579,8 +610,8 @@ var SettlementStore = (_class = function () {
|
|
|
579
610
|
value: function changeFocusAndAddPay(type) {
|
|
580
611
|
var _this6 = this;
|
|
581
612
|
|
|
582
|
-
var _enumController$
|
|
583
|
-
PayStyle = _enumController$
|
|
613
|
+
var _enumController$getEn5 = _mutantsUtil.enumController.getEnumOj(),
|
|
614
|
+
PayStyle = _enumController$getEn5.PayStyle;
|
|
584
615
|
|
|
585
616
|
this.paymode.currentFocus = type;
|
|
586
617
|
if (this.paymode.currentMode) {
|
|
@@ -634,8 +665,8 @@ var SettlementStore = (_class = function () {
|
|
|
634
665
|
var IdStore = this.storeInfo.storeID;
|
|
635
666
|
var StoreCode = this.storeInfo.storeCode; //_find(this.storeInfo.storeInfos,(store)=>{return store.ID==IdStore;}).Code;
|
|
636
667
|
|
|
637
|
-
var
|
|
638
|
-
isNewRetailBCPos =
|
|
668
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
669
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
639
670
|
|
|
640
671
|
var address = '';
|
|
641
672
|
if (isNewRetailBCPos) {
|
|
@@ -645,8 +676,8 @@ var SettlementStore = (_class = function () {
|
|
|
645
676
|
var data = result.data;
|
|
646
677
|
var m = data;
|
|
647
678
|
|
|
648
|
-
var
|
|
649
|
-
isNewRetailBCPos =
|
|
679
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
680
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
650
681
|
|
|
651
682
|
if (isNewRetailBCPos) {
|
|
652
683
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -691,8 +722,8 @@ var SettlementStore = (_class = function () {
|
|
|
691
722
|
var data = JSON.parse(result.Data);
|
|
692
723
|
var m = data && data.length > 0 && data[0];
|
|
693
724
|
|
|
694
|
-
var
|
|
695
|
-
isNewRetailBCPos =
|
|
725
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
726
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
696
727
|
|
|
697
728
|
if (isNewRetailBCPos) {
|
|
698
729
|
_this7.paymode && _this7.paymode.currentMode.member.setMeStorageCardId(m.MeStorageCardId);
|
|
@@ -761,8 +792,8 @@ var SettlementStore = (_class = function () {
|
|
|
761
792
|
}, {
|
|
762
793
|
key: 'setCurrentMode',
|
|
763
794
|
value: function setCurrentMode(id, type, append) {
|
|
764
|
-
var _enumController$
|
|
765
|
-
PayStyle = _enumController$
|
|
795
|
+
var _enumController$getEn6 = _mutantsUtil.enumController.getEnumOj(),
|
|
796
|
+
PayStyle = _enumController$getEn6.PayStyle;
|
|
766
797
|
|
|
767
798
|
var mode = (0, _find3.default)(this.paymode.thePaymodes, { paymethodId: id });
|
|
768
799
|
if (mode) {
|
|
@@ -780,8 +811,8 @@ var SettlementStore = (_class = function () {
|
|
|
780
811
|
value: function afterSetCurrentMode(type) {
|
|
781
812
|
var _this8 = this;
|
|
782
813
|
|
|
783
|
-
var _enumController$
|
|
784
|
-
PayStyle = _enumController$
|
|
814
|
+
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
815
|
+
PayStyle = _enumController$getEn7.PayStyle;
|
|
785
816
|
|
|
786
817
|
if (type == PayStyle.djq) {
|
|
787
818
|
this.paymode.calcDjqValue();
|
|
@@ -816,9 +847,9 @@ var SettlementStore = (_class = function () {
|
|
|
816
847
|
}
|
|
817
848
|
}, {
|
|
818
849
|
key: 'genNewMode',
|
|
819
|
-
value: function genNewMode(type, notwithm, v
|
|
820
|
-
var _enumController$
|
|
821
|
-
PayStyle = _enumController$
|
|
850
|
+
value: function genNewMode(type, notwithm, v) {
|
|
851
|
+
var _enumController$getEn8 = _mutantsUtil.enumController.getEnumOj(),
|
|
852
|
+
PayStyle = _enumController$getEn8.PayStyle;
|
|
822
853
|
|
|
823
854
|
var value = (0, _utils.getFixedNumber)(v || (this.brefund ? this.paymode.receivable : Math.max(this.paymode.receivable, 0)));
|
|
824
855
|
var themode = (0, _find3.default)(this.paymode.paymodes, { 'paymentType': type });
|
|
@@ -827,9 +858,9 @@ var SettlementStore = (_class = function () {
|
|
|
827
858
|
name: themode.name,
|
|
828
859
|
exchangeRate: themode.exchangeRate,
|
|
829
860
|
calDirection: themode.calDirection,
|
|
830
|
-
value:
|
|
831
|
-
value2:
|
|
832
|
-
value3:
|
|
861
|
+
value: value,
|
|
862
|
+
value2: (0, _utils.getFixedNumber)(themode.calDirection == "88" ? value / themode.exchangeRate : value * themode.exchangeRate),
|
|
863
|
+
value3: value,
|
|
833
864
|
order: this.paymode.thePaymodes.length + 1,
|
|
834
865
|
paymentType: type,
|
|
835
866
|
djqs: [],
|
|
@@ -861,8 +892,8 @@ var SettlementStore = (_class = function () {
|
|
|
861
892
|
value: function setMaxAmount(type, mode) {
|
|
862
893
|
var _this9 = this;
|
|
863
894
|
|
|
864
|
-
var _enumController$
|
|
865
|
-
PayStyle = _enumController$
|
|
895
|
+
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
|
896
|
+
PayStyle = _enumController$getEn9.PayStyle;
|
|
866
897
|
|
|
867
898
|
var sum = 0;
|
|
868
899
|
if (type == PayStyle.hyczk) {
|
|
@@ -938,8 +969,8 @@ var SettlementStore = (_class = function () {
|
|
|
938
969
|
}, {
|
|
939
970
|
key: 'addPayDirectly',
|
|
940
971
|
value: function addPayDirectly(pay) {
|
|
941
|
-
var _enumController$
|
|
942
|
-
PayStyle = _enumController$
|
|
972
|
+
var _enumController$getEn10 = _mutantsUtil.enumController.getEnumOj(),
|
|
973
|
+
PayStyle = _enumController$getEn10.PayStyle;
|
|
943
974
|
|
|
944
975
|
if (!(0, _find3.default)(this.paymode.thePaymodes, { paymethodId: pay.paymethodId })) {
|
|
945
976
|
var pos = this.paymode.thePaymodes.length;
|
|
@@ -956,9 +987,9 @@ var SettlementStore = (_class = function () {
|
|
|
956
987
|
}
|
|
957
988
|
}, {
|
|
958
989
|
key: 'addPay',
|
|
959
|
-
value: function addPay(type
|
|
960
|
-
var _enumController$
|
|
961
|
-
PayStyle = _enumController$
|
|
990
|
+
value: function addPay(type) {
|
|
991
|
+
var _enumController$getEn11 = _mutantsUtil.enumController.getEnumOj(),
|
|
992
|
+
PayStyle = _enumController$getEn11.PayStyle;
|
|
962
993
|
|
|
963
994
|
var pos = this.paymode.thePaymodes.length;
|
|
964
995
|
if (type == PayStyle.hyczk) {
|
|
@@ -968,15 +999,14 @@ var SettlementStore = (_class = function () {
|
|
|
968
999
|
pos = index == -1 ? pos : index + 1;
|
|
969
1000
|
}
|
|
970
1001
|
// this.paymode.thePaymodes.push(this.genNewMode(type) );
|
|
971
|
-
|
|
972
|
-
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk, undefined, isQuick));
|
|
1002
|
+
this.paymode.thePaymodes.splice(pos, 0, this.genNewMode(type, this.newStyle && type == PayStyle.hyczk));
|
|
973
1003
|
this.paymode.calcReserved();
|
|
974
1004
|
}
|
|
975
1005
|
}, {
|
|
976
1006
|
key: 'delPay',
|
|
977
1007
|
value: function delPay(index) {
|
|
978
|
-
var _enumController$
|
|
979
|
-
PayStyle = _enumController$
|
|
1008
|
+
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1009
|
+
PayStyle = _enumController$getEn12.PayStyle;
|
|
980
1010
|
|
|
981
1011
|
(0, _remove3.default)(this.paymode.thePaymodes, function (mode) {
|
|
982
1012
|
return mode.paymethodId === index;
|
|
@@ -987,8 +1017,8 @@ var SettlementStore = (_class = function () {
|
|
|
987
1017
|
}, {
|
|
988
1018
|
key: 'commit',
|
|
989
1019
|
value: function () {
|
|
990
|
-
var
|
|
991
|
-
var
|
|
1020
|
+
var _ref11 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(bTest) {
|
|
1021
|
+
var _ref12, isNewRetailBCPos;
|
|
992
1022
|
|
|
993
1023
|
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
994
1024
|
while (1) {
|
|
@@ -1004,7 +1034,7 @@ var SettlementStore = (_class = function () {
|
|
|
1004
1034
|
return _context2.abrupt('return', _promise2.default.resolve(true));
|
|
1005
1035
|
|
|
1006
1036
|
case 3:
|
|
1007
|
-
|
|
1037
|
+
_ref12 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1008
1038
|
_context2.prev = 4;
|
|
1009
1039
|
|
|
1010
1040
|
if (!(this.type == 1)) {
|
|
@@ -1060,7 +1090,7 @@ var SettlementStore = (_class = function () {
|
|
|
1060
1090
|
}));
|
|
1061
1091
|
|
|
1062
1092
|
function commit(_x2) {
|
|
1063
|
-
return
|
|
1093
|
+
return _ref11.apply(this, arguments);
|
|
1064
1094
|
}
|
|
1065
1095
|
|
|
1066
1096
|
return commit;
|
|
@@ -1076,8 +1106,8 @@ var SettlementStore = (_class = function () {
|
|
|
1076
1106
|
value: function saveMember() {
|
|
1077
1107
|
var _this10 = this;
|
|
1078
1108
|
|
|
1079
|
-
var _enumController$
|
|
1080
|
-
PayStyle = _enumController$
|
|
1109
|
+
var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
|
|
1110
|
+
PayStyle = _enumController$getEn13.PayStyle;
|
|
1081
1111
|
|
|
1082
1112
|
(0, _mobx.runInAction)(function () {
|
|
1083
1113
|
_this10.dto.StorageMutiSettleDetails = [];
|
|
@@ -1118,16 +1148,16 @@ var SettlementStore = (_class = function () {
|
|
|
1118
1148
|
}, {
|
|
1119
1149
|
key: 'save',
|
|
1120
1150
|
value: function () {
|
|
1121
|
-
var
|
|
1151
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3() {
|
|
1122
1152
|
var _this11 = this;
|
|
1123
1153
|
|
|
1124
|
-
var _enumController$
|
|
1154
|
+
var _enumController$getEn14, PayStyle, _ref15, isNewRetailBCPos, IPMSG, RetailTypeEnum;
|
|
1125
1155
|
|
|
1126
1156
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
1127
1157
|
while (1) {
|
|
1128
1158
|
switch (_context3.prev = _context3.next) {
|
|
1129
1159
|
case 0:
|
|
1130
|
-
_enumController$
|
|
1160
|
+
_enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn14.PayStyle;
|
|
1131
1161
|
|
|
1132
1162
|
(0, _mobx.runInAction)(function () {
|
|
1133
1163
|
_this11.dto.RetailPaymentDetails = [];
|
|
@@ -1201,8 +1231,8 @@ var SettlementStore = (_class = function () {
|
|
|
1201
1231
|
}
|
|
1202
1232
|
});
|
|
1203
1233
|
|
|
1204
|
-
var
|
|
1205
|
-
isNewRetailBCPos =
|
|
1234
|
+
var _ref14 = _mutantsUtil.platform || {},
|
|
1235
|
+
isNewRetailBCPos = _ref14.isNewRetailBCPos;
|
|
1206
1236
|
|
|
1207
1237
|
if (_this11.dto.RetailStorageDetails.length > 0) {
|
|
1208
1238
|
var themode = (0, _find3.default)(_this11.paymode.paymodes, { 'paymentType': PayStyle.hyczk });
|
|
@@ -1236,7 +1266,7 @@ var SettlementStore = (_class = function () {
|
|
|
1236
1266
|
_this11.dto.Idmember = Idmember;
|
|
1237
1267
|
}
|
|
1238
1268
|
});
|
|
1239
|
-
|
|
1269
|
+
_ref15 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref15.isNewRetailBCPos;
|
|
1240
1270
|
|
|
1241
1271
|
console.log('bc_pos\u73AF\u5883:' + isNewRetailBCPos + ',\u7ED3\u7B97\u6570\u636E\uFF1A', this.dto);
|
|
1242
1272
|
|
|
@@ -1306,7 +1336,7 @@ var SettlementStore = (_class = function () {
|
|
|
1306
1336
|
}));
|
|
1307
1337
|
|
|
1308
1338
|
function save() {
|
|
1309
|
-
return
|
|
1339
|
+
return _ref13.apply(this, arguments);
|
|
1310
1340
|
}
|
|
1311
1341
|
|
|
1312
1342
|
return save;
|
|
@@ -1319,7 +1349,7 @@ var SettlementStore = (_class = function () {
|
|
|
1319
1349
|
}, {
|
|
1320
1350
|
key: 'querySettleResult',
|
|
1321
1351
|
value: function () {
|
|
1322
|
-
var
|
|
1352
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
1323
1353
|
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
1324
1354
|
while (1) {
|
|
1325
1355
|
switch (_context4.prev = _context4.next) {
|
|
@@ -1347,7 +1377,7 @@ var SettlementStore = (_class = function () {
|
|
|
1347
1377
|
}));
|
|
1348
1378
|
|
|
1349
1379
|
function querySettleResult() {
|
|
1350
|
-
return
|
|
1380
|
+
return _ref16.apply(this, arguments);
|
|
1351
1381
|
}
|
|
1352
1382
|
|
|
1353
1383
|
return querySettleResult;
|
|
@@ -1373,14 +1403,14 @@ var SettlementStore = (_class = function () {
|
|
|
1373
1403
|
}, {
|
|
1374
1404
|
key: 'validePwd',
|
|
1375
1405
|
value: function () {
|
|
1376
|
-
var
|
|
1377
|
-
var
|
|
1406
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5(value) {
|
|
1407
|
+
var _ref18, isNewRetailBCPos, cook1, cook2, message, memberId, result, count, _result;
|
|
1378
1408
|
|
|
1379
1409
|
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1380
1410
|
while (1) {
|
|
1381
1411
|
switch (_context5.prev = _context5.next) {
|
|
1382
1412
|
case 0:
|
|
1383
|
-
|
|
1413
|
+
_ref18 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref18.isNewRetailBCPos;
|
|
1384
1414
|
_context5.prev = 1;
|
|
1385
1415
|
|
|
1386
1416
|
if (!isNewRetailBCPos) {
|
|
@@ -1465,7 +1495,7 @@ var SettlementStore = (_class = function () {
|
|
|
1465
1495
|
}));
|
|
1466
1496
|
|
|
1467
1497
|
function validePwd(_x3) {
|
|
1468
|
-
return
|
|
1498
|
+
return _ref17.apply(this, arguments);
|
|
1469
1499
|
}
|
|
1470
1500
|
|
|
1471
1501
|
return validePwd;
|
|
@@ -1504,14 +1534,14 @@ var SettlementStore = (_class = function () {
|
|
|
1504
1534
|
var _this13 = this;
|
|
1505
1535
|
|
|
1506
1536
|
return function () {
|
|
1507
|
-
var
|
|
1508
|
-
var
|
|
1537
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(_this) {
|
|
1538
|
+
var _getLoginInfo2, IdStore, StoreCode, resp;
|
|
1509
1539
|
|
|
1510
1540
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1511
1541
|
while (1) {
|
|
1512
1542
|
switch (_context6.prev = _context6.next) {
|
|
1513
1543
|
case 0:
|
|
1514
|
-
|
|
1544
|
+
_getLoginInfo2 = _this13.getLoginInfo(), IdStore = _getLoginInfo2.IdStore, StoreCode = _getLoginInfo2.StoreCode;
|
|
1515
1545
|
_context6.next = 3;
|
|
1516
1546
|
return (0, _tplusApi.tApi)({ Idmember: _this13.member.ID, IdStore: IdStore, StoreCode: StoreCode }, 'chanjet.AA.DR.INewRetailMember.GetUmemberDTO', false, false);
|
|
1517
1547
|
|
|
@@ -1531,7 +1561,7 @@ var SettlementStore = (_class = function () {
|
|
|
1531
1561
|
}));
|
|
1532
1562
|
|
|
1533
1563
|
return function (_x4) {
|
|
1534
|
-
return
|
|
1564
|
+
return _ref19.apply(this, arguments);
|
|
1535
1565
|
};
|
|
1536
1566
|
}();
|
|
1537
1567
|
}
|
|
@@ -1623,12 +1653,12 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1623
1653
|
this.checkList = [];
|
|
1624
1654
|
}
|
|
1625
1655
|
|
|
1626
|
-
var
|
|
1627
|
-
isNewRetailBCPos =
|
|
1656
|
+
var _ref20 = _mutantsUtil.platform || {},
|
|
1657
|
+
isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
1628
1658
|
|
|
1629
|
-
var _enumController$
|
|
1630
|
-
PayStyle = _enumController$
|
|
1631
|
-
Differentiate = _enumController$
|
|
1659
|
+
var _enumController$getEn15 = _mutantsUtil.enumController.getEnumOj(),
|
|
1660
|
+
PayStyle = _enumController$getEn15.PayStyle,
|
|
1661
|
+
Differentiate = _enumController$getEn15.Differentiate;
|
|
1632
1662
|
|
|
1633
1663
|
if (q1) {
|
|
1634
1664
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1698,13 +1728,13 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1698
1728
|
// }
|
|
1699
1729
|
// else
|
|
1700
1730
|
// {
|
|
1731
|
+
|
|
1701
1732
|
var bookingQuantity = 0;
|
|
1702
1733
|
if (item.BookingQuantity) {
|
|
1703
1734
|
bookingQuantity = item.BookingQuantity;
|
|
1704
1735
|
}
|
|
1705
1736
|
detailDTO.listPrice = JSON.getCellValue(item, "listPrice");
|
|
1706
1737
|
detailDTO.netAmountWithTax = Math.Multiply(detailDTO.listPrice, Math.Minus(item.Quantity, bookingQuantity)); //item.TaxAmount;
|
|
1707
|
-
//}
|
|
1708
1738
|
detailDTO.taxRate = item.TaxRate;
|
|
1709
1739
|
detailDTO.quantity = item.Quantity;
|
|
1710
1740
|
|
|
@@ -1734,18 +1764,18 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1734
1764
|
}
|
|
1735
1765
|
});
|
|
1736
1766
|
|
|
1737
|
-
var
|
|
1738
|
-
couponCode =
|
|
1739
|
-
name =
|
|
1740
|
-
tieredAmountResult =
|
|
1741
|
-
fromDate =
|
|
1742
|
-
dateMount =
|
|
1743
|
-
promoMethodEnum =
|
|
1744
|
-
discountPct =
|
|
1745
|
-
nominalAmount =
|
|
1746
|
-
promoId =
|
|
1747
|
-
id =
|
|
1748
|
-
doorsill =
|
|
1767
|
+
var _ref21 = element || {},
|
|
1768
|
+
couponCode = _ref21.couponCode,
|
|
1769
|
+
name = _ref21.name,
|
|
1770
|
+
tieredAmountResult = _ref21.tieredAmountResult,
|
|
1771
|
+
fromDate = _ref21.fromDate,
|
|
1772
|
+
dateMount = _ref21.dateMount,
|
|
1773
|
+
promoMethodEnum = _ref21.promoMethodEnum,
|
|
1774
|
+
discountPct = _ref21.discountPct,
|
|
1775
|
+
nominalAmount = _ref21.nominalAmount,
|
|
1776
|
+
promoId = _ref21.promoId,
|
|
1777
|
+
id = _ref21.id,
|
|
1778
|
+
doorsill = _ref21.doorsill;
|
|
1749
1779
|
|
|
1750
1780
|
var condValue = tieredAmountResult.condValue,
|
|
1751
1781
|
promoDiscount = tieredAmountResult.promoDiscount,
|
|
@@ -1789,11 +1819,11 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1789
1819
|
}, {
|
|
1790
1820
|
key: 'calcDjqValue',
|
|
1791
1821
|
value: function calcDjqValue(q1) {
|
|
1792
|
-
var
|
|
1793
|
-
isNewRetailBCPos =
|
|
1822
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
1823
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
1794
1824
|
|
|
1795
|
-
var _enumController$
|
|
1796
|
-
Differentiate = _enumController$
|
|
1825
|
+
var _enumController$getEn16 = _mutantsUtil.enumController.getEnumOj(),
|
|
1826
|
+
Differentiate = _enumController$getEn16.Differentiate;
|
|
1797
1827
|
|
|
1798
1828
|
if (q1) {
|
|
1799
1829
|
if (!this.currentMode.boriginReturn && parseFloat(this.currentMode.maxamount) <= 0) {
|
|
@@ -1855,8 +1885,8 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1855
1885
|
this.currentMode.errinfo = '';
|
|
1856
1886
|
var sum = this.amount;
|
|
1857
1887
|
|
|
1858
|
-
var _enumController$
|
|
1859
|
-
PayStyle = _enumController$
|
|
1888
|
+
var _enumController$getEn17 = _mutantsUtil.enumController.getEnumOj(),
|
|
1889
|
+
PayStyle = _enumController$getEn17.PayStyle;
|
|
1860
1890
|
|
|
1861
1891
|
this.thePaymodes && this.thePaymodes.forEach(function (mode) {
|
|
1862
1892
|
if (mode.paymentType === PayStyle.hyczk) {
|
|
@@ -1880,16 +1910,16 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1880
1910
|
}, {
|
|
1881
1911
|
key: 'setPaymodes',
|
|
1882
1912
|
value: function () {
|
|
1883
|
-
var
|
|
1913
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(type, isIntegralExchange) {
|
|
1884
1914
|
var _this15 = this;
|
|
1885
1915
|
|
|
1886
|
-
var _enumController$
|
|
1916
|
+
var _enumController$getEn18, settleStyleType, PayStyle, memberStoreCode, settlementCode, param, modes;
|
|
1887
1917
|
|
|
1888
1918
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1889
1919
|
while (1) {
|
|
1890
1920
|
switch (_context7.prev = _context7.next) {
|
|
1891
1921
|
case 0:
|
|
1892
|
-
_enumController$
|
|
1922
|
+
_enumController$getEn18 = _mutantsUtil.enumController.getEnumOj(), settleStyleType = _enumController$getEn18.settleStyleType, PayStyle = _enumController$getEn18.PayStyle;
|
|
1893
1923
|
memberStoreCode = settleStyleType.memberStoreCode, settlementCode = settleStyleType.settlementCode;
|
|
1894
1924
|
param = { 'settleStyleType': type == 1 ? memberStoreCode : settlementCode, isIntegralExchange: isIntegralExchange };
|
|
1895
1925
|
_context7.next = 5;
|
|
@@ -1935,7 +1965,7 @@ var PayMode = exports.PayMode = (_class3 = function () {
|
|
|
1935
1965
|
}));
|
|
1936
1966
|
|
|
1937
1967
|
function setPaymodes(_x5, _x6) {
|
|
1938
|
-
return
|
|
1968
|
+
return _ref23.apply(this, arguments);
|
|
1939
1969
|
}
|
|
1940
1970
|
|
|
1941
1971
|
return setPaymodes;
|
|
@@ -2056,8 +2086,8 @@ var Member = exports.Member = (_class5 = function () {
|
|
|
2056
2086
|
return key == 'canusedbalancestorage';
|
|
2057
2087
|
});
|
|
2058
2088
|
|
|
2059
|
-
var
|
|
2060
|
-
isNewRetailBCPos =
|
|
2089
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2090
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2061
2091
|
|
|
2062
2092
|
m.StorageCardNo && (this.StorageCardNo = m.StorageCardNo);
|
|
2063
2093
|
m.MeStorageCardId && (this.MeStorageCardId = m.MeStorageCardId);
|