tplus-components-touch 3.39.5 → 3.39.6
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.
|
@@ -2648,7 +2648,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2648
2648
|
|
|
2649
2649
|
_this2.btnDebounced = function () {
|
|
2650
2650
|
var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
|
2651
|
-
var IdbusiType, CustomerPhone, DistributionMode, Address, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
|
2651
|
+
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
|
2652
2652
|
|
|
2653
2653
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
2654
2654
|
while (1) {
|
|
@@ -2661,24 +2661,39 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2661
2661
|
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
|
2662
2662
|
|
|
2663
2663
|
if (!(IdbusiType == 38)) {
|
|
2664
|
-
_context16.next =
|
|
2664
|
+
_context16.next = 14;
|
|
2665
2665
|
break;
|
|
2666
2666
|
}
|
|
2667
2667
|
|
|
2668
|
+
//预售下单时,启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送
|
|
2669
|
+
isEnableSerialNumber = (0, _tplusPoslogin.PosInitData)("IsEnableSerialNumber");
|
|
2670
|
+
resultObj = _this2.context.viewModel.data.RetailDetails.find(function (o) {
|
|
2671
|
+
return o.Inventory.IsSerialNumber && (o.Inventory.IsBatch || o.Inventory.IsQualityPeriod);
|
|
2672
|
+
});
|
|
2673
|
+
|
|
2674
|
+
if (!(isEnableSerialNumber && resultObj && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE'))) {
|
|
2675
|
+
_context16.next = 9;
|
|
2676
|
+
break;
|
|
2677
|
+
}
|
|
2678
|
+
|
|
2679
|
+
return _context16.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
|
|
2680
|
+
|
|
2681
|
+
case 9:
|
|
2682
|
+
|
|
2668
2683
|
if (DistributionMode.Id == 'ON_SITE_PICKUP' && !CustomerPhone && _this2.context.viewModel.data.Member.Mobilephone) {
|
|
2669
2684
|
_this2.props.syncMemberInfoProcessor();
|
|
2670
2685
|
}
|
|
2671
2686
|
|
|
2672
2687
|
if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2673
|
-
_context16.next =
|
|
2688
|
+
_context16.next = 14;
|
|
2674
2689
|
break;
|
|
2675
2690
|
}
|
|
2676
2691
|
|
|
2677
2692
|
title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
|
|
2678
|
-
_context16.next =
|
|
2693
|
+
_context16.next = 14;
|
|
2679
2694
|
return _this2.props.openBuyerModal(title);
|
|
2680
2695
|
|
|
2681
|
-
case
|
|
2696
|
+
case 14:
|
|
2682
2697
|
|
|
2683
2698
|
_this2.setState({
|
|
2684
2699
|
bquick: bquick,
|
|
@@ -2688,13 +2703,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2688
2703
|
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
|
2689
2704
|
|
|
2690
2705
|
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
|
2691
|
-
_context16.next =
|
|
2706
|
+
_context16.next = 19;
|
|
2692
2707
|
break;
|
|
2693
2708
|
}
|
|
2694
2709
|
|
|
2695
2710
|
return _context16.abrupt('return', false);
|
|
2696
2711
|
|
|
2697
|
-
case
|
|
2712
|
+
case 19:
|
|
2698
2713
|
status = false;
|
|
2699
2714
|
|
|
2700
2715
|
paymode.thePaymodes.forEach(function (v) {
|
|
@@ -2707,13 +2722,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2707
2722
|
});
|
|
2708
2723
|
|
|
2709
2724
|
if (!_this2.btndebounced) {
|
|
2710
|
-
_context16.next =
|
|
2725
|
+
_context16.next = 24;
|
|
2711
2726
|
break;
|
|
2712
2727
|
}
|
|
2713
2728
|
|
|
2714
2729
|
return _context16.abrupt('return');
|
|
2715
2730
|
|
|
2716
|
-
case
|
|
2731
|
+
case 24:
|
|
2717
2732
|
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2718
2733
|
if (bquick) {
|
|
2719
2734
|
_this2.quickSettle(type);
|
|
@@ -2730,7 +2745,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2730
2745
|
_this2.btndebounced = null;
|
|
2731
2746
|
}, 2000);
|
|
2732
2747
|
|
|
2733
|
-
case
|
|
2748
|
+
case 27:
|
|
2734
2749
|
case 'end':
|
|
2735
2750
|
return _context16.stop();
|
|
2736
2751
|
}
|