tplus-components-touch 3.27.3 → 3.27.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/index.js +14 -14
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -4
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +12 -8
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/scanInput.less +28 -0
- package/dist/components/input/style.less +7 -0
- package/dist/components/inventorySearch/store.js +31 -12
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +9 -2
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +13 -4
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +13 -4
- package/dist/components/message/index.js +8 -5
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/presale/pickup.js +12 -1
- package/dist/components/presale/pickup.js.map +1 -1
- package/dist/components/settlement/settlement.js +59 -55
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +46 -50
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/socket/index.js +6 -5
- package/dist/components/socket/index.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/package.json +35 -35
|
@@ -2498,14 +2498,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2498
2498
|
}();
|
|
2499
2499
|
|
|
2500
2500
|
_this2.isNoProductTip = function (nonProductMap) {
|
|
2501
|
+
var _ref24 = _this2.context.viewModel.data || {},
|
|
2502
|
+
RetailDetails = _ref24.RetailDetails;
|
|
2503
|
+
|
|
2501
2504
|
var names = [];
|
|
2502
2505
|
var temphtml = [];
|
|
2503
2506
|
var count = 0;
|
|
2504
2507
|
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
|
2505
|
-
|
|
2508
|
+
var _loop = function _loop(key) {
|
|
2506
2509
|
count++;
|
|
2507
|
-
|
|
2510
|
+
var product = RetailDetails.find(function (o) {
|
|
2511
|
+
return o.Idinventory == key;
|
|
2512
|
+
});
|
|
2513
|
+
names.push('【' + product.Inventory.Name + '】');
|
|
2508
2514
|
temphtml.push(count + '、' + nonProductMap[key]);
|
|
2515
|
+
};
|
|
2516
|
+
|
|
2517
|
+
for (var key in nonProductMap) {
|
|
2518
|
+
_loop(key);
|
|
2509
2519
|
}
|
|
2510
2520
|
_modalWraper2.default.warning({
|
|
2511
2521
|
title: '不可配送商品',
|
|
@@ -2517,32 +2527,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2517
2527
|
};
|
|
2518
2528
|
|
|
2519
2529
|
_this2.btnDebounced = function () {
|
|
2520
|
-
var
|
|
2521
|
-
var
|
|
2530
|
+
var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(type, bquick) {
|
|
2531
|
+
var IdbusiType, CustomerPhone, DistributionMode, _this2$store7, getPerformanceDistributionValue, getPosFreight, updataFreight, IPMSG, _ref26, nonProductMap, _ref26$freightProduct, freightProductDTOList, data, _enumController$getEn22, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
|
2522
2532
|
|
|
2523
2533
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2524
2534
|
while (1) {
|
|
2525
2535
|
switch (_context14.prev = _context14.next) {
|
|
2526
2536
|
case 0:
|
|
2527
|
-
|
|
2537
|
+
IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
|
|
2538
|
+
CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
|
|
2539
|
+
DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
|
2528
2540
|
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
|
2529
2541
|
|
|
2530
2542
|
if (!(IdbusiType == 38)) {
|
|
2531
|
-
_context14.next =
|
|
2543
|
+
_context14.next = 30;
|
|
2532
2544
|
break;
|
|
2533
2545
|
}
|
|
2534
2546
|
|
|
2535
2547
|
if (!(!CustomerPhone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2536
|
-
_context14.next =
|
|
2548
|
+
_context14.next = 7;
|
|
2537
2549
|
break;
|
|
2538
2550
|
}
|
|
2539
2551
|
|
|
2540
|
-
_context14.next =
|
|
2552
|
+
_context14.next = 7;
|
|
2541
2553
|
return _this2.props.openBuyerModal();
|
|
2542
2554
|
|
|
2543
|
-
case
|
|
2555
|
+
case 7:
|
|
2544
2556
|
if (!(DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2545
|
-
_context14.next =
|
|
2557
|
+
_context14.next = 30;
|
|
2546
2558
|
break;
|
|
2547
2559
|
}
|
|
2548
2560
|
|
|
@@ -2552,10 +2564,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2552
2564
|
if (!!window.localStorage.IPMSG) {
|
|
2553
2565
|
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
2554
2566
|
}
|
|
2555
|
-
_context14.next =
|
|
2567
|
+
_context14.next = 13;
|
|
2556
2568
|
return getPerformanceDistributionValue({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2557
2569
|
|
|
2558
|
-
case
|
|
2570
|
+
case 13:
|
|
2559
2571
|
_ref26 = _context14.sent;
|
|
2560
2572
|
nonProductMap = _ref26.nonProductMap;
|
|
2561
2573
|
_ref26$freightProduct = _ref26.freightProductDTOList;
|
|
@@ -2565,35 +2577,35 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2565
2577
|
console.log('zlffreightProductDTOList', freightProductDTOList);
|
|
2566
2578
|
|
|
2567
2579
|
if (!_this2.isNoProductTip(nonProductMap)) {
|
|
2568
|
-
_context14.next =
|
|
2580
|
+
_context14.next = 21;
|
|
2569
2581
|
break;
|
|
2570
2582
|
}
|
|
2571
2583
|
|
|
2572
2584
|
return _context14.abrupt('return');
|
|
2573
2585
|
|
|
2574
|
-
case 19:
|
|
2575
|
-
_context14.next = 21;
|
|
2576
|
-
return _this2.props.openWareHouseModal(freightProductDTOList);
|
|
2577
|
-
|
|
2578
2586
|
case 21:
|
|
2579
2587
|
_context14.next = 23;
|
|
2580
|
-
return
|
|
2588
|
+
return _this2.props.openWareHouseModal(freightProductDTOList);
|
|
2581
2589
|
|
|
2582
2590
|
case 23:
|
|
2591
|
+
_context14.next = 25;
|
|
2592
|
+
return getPosFreight({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2593
|
+
|
|
2594
|
+
case 25:
|
|
2583
2595
|
data = _context14.sent;
|
|
2584
2596
|
|
|
2585
2597
|
if (!_this2.isNoProductTip(data.nonProductMap)) {
|
|
2586
|
-
_context14.next =
|
|
2598
|
+
_context14.next = 28;
|
|
2587
2599
|
break;
|
|
2588
2600
|
}
|
|
2589
2601
|
|
|
2590
2602
|
return _context14.abrupt('return');
|
|
2591
2603
|
|
|
2592
|
-
case
|
|
2593
|
-
_context14.next =
|
|
2604
|
+
case 28:
|
|
2605
|
+
_context14.next = 30;
|
|
2594
2606
|
return _this2.props.updataFreight(data.freight);
|
|
2595
2607
|
|
|
2596
|
-
case
|
|
2608
|
+
case 30:
|
|
2597
2609
|
|
|
2598
2610
|
_this2.setState({
|
|
2599
2611
|
bquick: bquick
|
|
@@ -2602,13 +2614,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2602
2614
|
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
|
2603
2615
|
|
|
2604
2616
|
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
|
2605
|
-
_context14.next =
|
|
2617
|
+
_context14.next = 35;
|
|
2606
2618
|
break;
|
|
2607
2619
|
}
|
|
2608
2620
|
|
|
2609
2621
|
return _context14.abrupt('return', false);
|
|
2610
2622
|
|
|
2611
|
-
case
|
|
2623
|
+
case 35:
|
|
2612
2624
|
status = false;
|
|
2613
2625
|
|
|
2614
2626
|
paymode.thePaymodes.forEach(function (v) {
|
|
@@ -2621,13 +2633,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2621
2633
|
});
|
|
2622
2634
|
|
|
2623
2635
|
if (!_this2.btndebounced) {
|
|
2624
|
-
_context14.next =
|
|
2636
|
+
_context14.next = 40;
|
|
2625
2637
|
break;
|
|
2626
2638
|
}
|
|
2627
2639
|
|
|
2628
2640
|
return _context14.abrupt('return');
|
|
2629
2641
|
|
|
2630
|
-
case
|
|
2642
|
+
case 40:
|
|
2631
2643
|
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2632
2644
|
if (bquick) {
|
|
2633
2645
|
_this2.quickSettle(type);
|
|
@@ -2644,7 +2656,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2644
2656
|
_this2.btndebounced = null;
|
|
2645
2657
|
}, 2000);
|
|
2646
2658
|
|
|
2647
|
-
case
|
|
2659
|
+
case 43:
|
|
2648
2660
|
case 'end':
|
|
2649
2661
|
return _context14.stop();
|
|
2650
2662
|
}
|
|
@@ -2653,7 +2665,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2653
2665
|
}));
|
|
2654
2666
|
|
|
2655
2667
|
return function (_x8, _x9) {
|
|
2656
|
-
return
|
|
2668
|
+
return _ref25.apply(this, arguments);
|
|
2657
2669
|
};
|
|
2658
2670
|
}();
|
|
2659
2671
|
|
|
@@ -2797,11 +2809,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2797
2809
|
type = _this2$props3.type;
|
|
2798
2810
|
|
|
2799
2811
|
var isManualIntoAmount = void 0;
|
|
2800
|
-
var _this2
|
|
2801
|
-
|
|
2802
|
-
DistributionMode = _this2$context$viewMo2.DistributionMode;
|
|
2812
|
+
var BuyerPayFreight = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.BuyerPayFreight;
|
|
2813
|
+
var DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
|
2803
2814
|
// 付款弹窗
|
|
2804
|
-
|
|
2805
2815
|
return new _promise2.default(function (resolve, reject) {
|
|
2806
2816
|
var _enumController$getEn26 = _mutantsUtil.enumController.getEnumOj(),
|
|
2807
2817
|
PayStyle = _enumController$getEn26.PayStyle,
|
|
@@ -3252,14 +3262,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3252
3262
|
|
|
3253
3263
|
_this2.hasElectron = hasElectron;
|
|
3254
3264
|
|
|
3255
|
-
var _ref28 = _mutantsMicrofx.
|
|
3256
|
-
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
ICCardPassword = _ref28$loginInfo.ICCardPassword,
|
|
3261
|
-
Book = _ref28$loginInfo.Book,
|
|
3262
|
-
PercentageWhenBook = _ref28$loginInfo.PercentageWhenBook;
|
|
3265
|
+
var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3266
|
+
ICCardServer = _ref28.ICCardServer,
|
|
3267
|
+
ICCardPassword = _ref28.ICCardPassword,
|
|
3268
|
+
Book = _ref28.Book,
|
|
3269
|
+
PercentageWhenBook = _ref28.PercentageWhenBook;
|
|
3263
3270
|
|
|
3264
3271
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3265
3272
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
@@ -3526,12 +3533,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3526
3533
|
var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
|
|
3527
3534
|
|
|
3528
3535
|
//收订金
|
|
3529
|
-
|
|
3530
|
-
var
|
|
3531
|
-
|
|
3532
|
-
DistributionMode = _ref31.DistributionMode,
|
|
3533
|
-
BuyerPayFreight = _ref31.BuyerPayFreight;
|
|
3534
|
-
|
|
3536
|
+
var IdbusiType = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.IdbusiType;
|
|
3537
|
+
var BuyerPayFreight = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.BuyerPayFreight;
|
|
3538
|
+
var DistributionMode = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.DistributionMode;
|
|
3535
3539
|
if (IdbusiType == 38 && this.isBook && this.percentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
3536
3540
|
totalTaxAmount = totalTaxAmount * this.percentageWhenBook / 100;
|
|
3537
3541
|
}
|
|
@@ -3583,11 +3587,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3583
3587
|
quantity4 = 0;
|
|
3584
3588
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3585
3589
|
|
|
3586
|
-
var
|
|
3587
|
-
|
|
3588
|
-
buyQuantity =
|
|
3589
|
-
|
|
3590
|
-
returnQuantity =
|
|
3590
|
+
var _ref31 = quantityDetail || {},
|
|
3591
|
+
_ref31$buyQuantity = _ref31.buyQuantity,
|
|
3592
|
+
buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
|
|
3593
|
+
_ref31$returnQuantity = _ref31.returnQuantity,
|
|
3594
|
+
returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
|
|
3591
3595
|
|
|
3592
3596
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3593
3597
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4980,8 +4984,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4980
4984
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4981
4985
|
},
|
|
4982
4986
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4983
|
-
ref: function ref(
|
|
4984
|
-
return _this8["inputCzkAmount"] =
|
|
4987
|
+
ref: function ref(_ref32) {
|
|
4988
|
+
return _this8["inputCzkAmount"] = _ref32;
|
|
4985
4989
|
},
|
|
4986
4990
|
onFocus: function onFocus(e) {
|
|
4987
4991
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5598,8 +5602,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5598
5602
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5599
5603
|
},
|
|
5600
5604
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5601
|
-
ref: function ref(
|
|
5602
|
-
return _this8["inputJfdxAmount"] =
|
|
5605
|
+
ref: function ref(_ref33) {
|
|
5606
|
+
return _this8["inputJfdxAmount"] = _ref33;
|
|
5603
5607
|
},
|
|
5604
5608
|
onFocus: function onFocus(e) {
|
|
5605
5609
|
_this8.inputkey = "inputJfdxAmount";
|