tplus-components-touch 3.28.7 → 3.28.11
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 +13 -74
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +209 -48
- 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 +209 -108
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -16
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/index.js +3 -9
- 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 +0 -52
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/input/style.less +0 -7
- package/dist/components/inventorySearch/tab.js +76 -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/style.less +8 -6
- 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/settlement.js +75 -235
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1 -7
- package/dist/components/settlement/settlementStore.js +105 -135
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +3 -26
- package/dist/components/ticon/iconfont/iconfont.css +3 -7
- 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 +0 -7
- 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 +4 -12
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +20 -13
- package/dist/index.js +16 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/components/presale/pickup.js +0 -431
- package/dist/components/presale/pickup.js.map +0 -1
- package/dist/components/presale/style.less +0 -48
|
@@ -24,10 +24,6 @@ var _carousel = require('antd/es/carousel');
|
|
|
24
24
|
|
|
25
25
|
var _carousel2 = _interopRequireDefault(_carousel);
|
|
26
26
|
|
|
27
|
-
var _keys = require('babel-runtime/core-js/object/keys');
|
|
28
|
-
|
|
29
|
-
var _keys2 = _interopRequireDefault(_keys);
|
|
30
|
-
|
|
31
27
|
var _button = require('antd/es/button');
|
|
32
28
|
|
|
33
29
|
var _button2 = _interopRequireDefault(_button);
|
|
@@ -212,6 +208,8 @@ var _index2 = require('./prototypeTable/index');
|
|
|
212
208
|
|
|
213
209
|
var _index3 = _interopRequireDefault(_index2);
|
|
214
210
|
|
|
211
|
+
var _tplusComponentsTouch = require('tplus-components-touch');
|
|
212
|
+
|
|
215
213
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
216
214
|
|
|
217
215
|
var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.platform.electron;
|
|
@@ -329,7 +327,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
329
327
|
var _enumController$getEn = _mutantsUtil.enumController.getEnumOj(),
|
|
330
328
|
PayStyle = _enumController$getEn.PayStyle;
|
|
331
329
|
|
|
332
|
-
_this2.store.init(_this2.props.type == 1 ? null : _this2.context, _this2.props.onHandleAmount, _this2.props.dataSource.Code_02, _this2.props.storeInfo, true, _this2.props.amount, _this2.props.type, _this2.props.dto);
|
|
330
|
+
_this2.store.init(_this2.props.type == 1 ? null : _this2.context, _this2.props.onHandleAmount, _this2.props.dataSource.Code_02, _this2.props.storeInfo, true, _this2.props.amount, _this2.props.type, _this2.props.dto, currentKey);
|
|
333
331
|
var amount = _this2.store.paymode.amount;
|
|
334
332
|
if (amount == 0) {
|
|
335
333
|
_this2.settleZero();
|
|
@@ -595,10 +593,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
595
593
|
// czkVisible: true
|
|
596
594
|
// })
|
|
597
595
|
// }
|
|
598
|
-
// }
|
|
596
|
+
// }
|
|
599
597
|
// // else {
|
|
600
598
|
// // Message.warn('请先录入会员');
|
|
601
|
-
// // }
|
|
599
|
+
// // }
|
|
602
600
|
// // this.setState({
|
|
603
601
|
// // czkVisible: true,
|
|
604
602
|
// // });
|
|
@@ -1424,7 +1422,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1424
1422
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1425
1423
|
return;
|
|
1426
1424
|
}
|
|
1427
|
-
|
|
1425
|
+
// this.store.changeClickFocusOnly(mode.paymentType);
|
|
1428
1426
|
_this2.setCurrentFocusOnly(mode.paymentType);
|
|
1429
1427
|
if (_this2.hotkeydebounced) {
|
|
1430
1428
|
_this2.hotkeydebounced.cancel();
|
|
@@ -2497,179 +2495,57 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2497
2495
|
};
|
|
2498
2496
|
}();
|
|
2499
2497
|
|
|
2500
|
-
_this2.
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
var names = [];
|
|
2505
|
-
var temphtml = [];
|
|
2506
|
-
var count = 0;
|
|
2507
|
-
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
|
2508
|
-
var _loop = function _loop(key) {
|
|
2509
|
-
count++;
|
|
2510
|
-
var product = RetailDetails.find(function (o) {
|
|
2511
|
-
return o.Idinventory == key;
|
|
2512
|
-
});
|
|
2513
|
-
names.push('【' + product.Inventory.Name + '】');
|
|
2514
|
-
temphtml.push(count + '、' + nonProductMap[key]);
|
|
2515
|
-
};
|
|
2516
|
-
|
|
2517
|
-
for (var key in nonProductMap) {
|
|
2518
|
-
_loop(key);
|
|
2519
|
-
}
|
|
2520
|
-
_modalWraper2.default.warning({
|
|
2521
|
-
title: '不可配送商品',
|
|
2522
|
-
content: '\u5546\u54C1' + names.join(',') + '\u4E0D\u53EF\u914D\u9001\uFF0C\u53EF\u80FD\u539F\u56E0\u5982\u4E0B\uFF1A' + temphtml.join(';')
|
|
2523
|
-
});
|
|
2524
|
-
return true;
|
|
2525
|
-
}
|
|
2526
|
-
return false;
|
|
2527
|
-
};
|
|
2528
|
-
|
|
2529
|
-
_this2.btnDebounced = function () {
|
|
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;
|
|
2532
|
-
|
|
2533
|
-
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2534
|
-
while (1) {
|
|
2535
|
-
switch (_context14.prev = _context14.next) {
|
|
2536
|
-
case 0:
|
|
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;
|
|
2540
|
-
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
|
2541
|
-
|
|
2542
|
-
if (!(IdbusiType == 38)) {
|
|
2543
|
-
_context14.next = 28;
|
|
2544
|
-
break;
|
|
2545
|
-
}
|
|
2546
|
-
|
|
2547
|
-
if (!(!CustomerPhone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2548
|
-
_context14.next = 7;
|
|
2549
|
-
break;
|
|
2550
|
-
}
|
|
2551
|
-
|
|
2552
|
-
_context14.next = 7;
|
|
2553
|
-
return _this2.props.openBuyerModal();
|
|
2554
|
-
|
|
2555
|
-
case 7:
|
|
2556
|
-
if (!(DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2557
|
-
_context14.next = 28;
|
|
2558
|
-
break;
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
_this2$store7 = _this2.store, getPerformanceDistributionValue = _this2$store7.getPerformanceDistributionValue, getPosFreight = _this2$store7.getPosFreight, updataFreight = _this2$store7.updataFreight;
|
|
2562
|
-
IPMSG = {};
|
|
2563
|
-
|
|
2564
|
-
if (!!window.localStorage.IPMSG) {
|
|
2565
|
-
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
2566
|
-
}
|
|
2567
|
-
_context14.next = 13;
|
|
2568
|
-
return getPerformanceDistributionValue({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2569
|
-
|
|
2570
|
-
case 13:
|
|
2571
|
-
_ref26 = _context14.sent;
|
|
2572
|
-
nonProductMap = _ref26.nonProductMap;
|
|
2573
|
-
_ref26$freightProduct = _ref26.freightProductDTOList;
|
|
2574
|
-
freightProductDTOList = _ref26$freightProduct === undefined ? [] : _ref26$freightProduct;
|
|
2575
|
-
|
|
2576
|
-
if (!_this2.isNoProductTip(nonProductMap)) {
|
|
2577
|
-
_context14.next = 19;
|
|
2578
|
-
break;
|
|
2579
|
-
}
|
|
2580
|
-
|
|
2581
|
-
return _context14.abrupt('return');
|
|
2582
|
-
|
|
2583
|
-
case 19:
|
|
2584
|
-
_context14.next = 21;
|
|
2585
|
-
return _this2.props.openWareHouseModal(freightProductDTOList);
|
|
2586
|
-
|
|
2587
|
-
case 21:
|
|
2588
|
-
_context14.next = 23;
|
|
2589
|
-
return getPosFreight({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2590
|
-
|
|
2591
|
-
case 23:
|
|
2592
|
-
data = _context14.sent;
|
|
2593
|
-
|
|
2594
|
-
if (!_this2.isNoProductTip(data.nonProductMap)) {
|
|
2595
|
-
_context14.next = 26;
|
|
2596
|
-
break;
|
|
2597
|
-
}
|
|
2598
|
-
|
|
2599
|
-
return _context14.abrupt('return');
|
|
2600
|
-
|
|
2601
|
-
case 26:
|
|
2602
|
-
_context14.next = 28;
|
|
2603
|
-
return _this2.props.updataFreight(data.freight);
|
|
2604
|
-
|
|
2605
|
-
case 28:
|
|
2606
|
-
|
|
2607
|
-
_this2.setState({
|
|
2608
|
-
bquick: bquick
|
|
2609
|
-
});
|
|
2610
|
-
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2611
|
-
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
|
2612
|
-
|
|
2613
|
-
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
|
2614
|
-
_context14.next = 33;
|
|
2615
|
-
break;
|
|
2616
|
-
}
|
|
2617
|
-
|
|
2618
|
-
return _context14.abrupt('return', false);
|
|
2619
|
-
|
|
2620
|
-
case 33:
|
|
2621
|
-
status = false;
|
|
2498
|
+
_this2.btnDebounced = function (type, bquick) {
|
|
2499
|
+
_this2.setState({
|
|
2500
|
+
bquick: bquick
|
|
2501
|
+
});
|
|
2622
2502
|
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
status = true;
|
|
2626
|
-
}
|
|
2627
|
-
});
|
|
2628
|
-
_this2.setState({
|
|
2629
|
-
isXianjin: status ? true : false
|
|
2630
|
-
});
|
|
2503
|
+
var _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(),
|
|
2504
|
+
PayStyle = _enumController$getEn22.PayStyle;
|
|
2631
2505
|
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2506
|
+
var _this2$store7 = _this2.store,
|
|
2507
|
+
paymode = _this2$store7.paymode,
|
|
2508
|
+
brefund = _this2$store7.brefund,
|
|
2509
|
+
boriginReturn = _this2$store7.boriginReturn,
|
|
2510
|
+
newStyle = _this2$store7.newStyle;
|
|
2636
2511
|
|
|
2637
|
-
return _context14.abrupt('return');
|
|
2638
2512
|
|
|
2639
|
-
|
|
2640
|
-
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2641
|
-
if (bquick) {
|
|
2642
|
-
_this2.quickSettle(type);
|
|
2643
|
-
} else {
|
|
2644
|
-
_this2.showModal();
|
|
2645
|
-
}
|
|
2646
|
-
}, 1000, {
|
|
2647
|
-
'leading': true,
|
|
2648
|
-
'trailing': false
|
|
2649
|
-
});
|
|
2650
|
-
_this2.btndebounced();
|
|
2651
|
-
setTimeout(function () {
|
|
2652
|
-
_this2.btndebounced.cancel();
|
|
2653
|
-
_this2.btndebounced = null;
|
|
2654
|
-
}, 2000);
|
|
2513
|
+
if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
|
|
2655
2514
|
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2515
|
+
var status = false;
|
|
2516
|
+
paymode.thePaymodes.forEach(function (v) {
|
|
2517
|
+
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
|
2518
|
+
status = true;
|
|
2519
|
+
}
|
|
2520
|
+
});
|
|
2521
|
+
_this2.setState({
|
|
2522
|
+
isXianjin: status ? true : false
|
|
2523
|
+
});
|
|
2663
2524
|
|
|
2664
|
-
|
|
2665
|
-
return
|
|
2666
|
-
}
|
|
2667
|
-
|
|
2525
|
+
if (_this2.btndebounced) {
|
|
2526
|
+
return;
|
|
2527
|
+
}
|
|
2528
|
+
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2529
|
+
if (bquick) {
|
|
2530
|
+
_this2.quickSettle(type);
|
|
2531
|
+
} else {
|
|
2532
|
+
_this2.showModal();
|
|
2533
|
+
}
|
|
2534
|
+
}, 1000, {
|
|
2535
|
+
'leading': true,
|
|
2536
|
+
'trailing': false
|
|
2537
|
+
});
|
|
2538
|
+
_this2.btndebounced();
|
|
2539
|
+
setTimeout(function () {
|
|
2540
|
+
_this2.btndebounced.cancel();
|
|
2541
|
+
_this2.btndebounced = null;
|
|
2542
|
+
}, 2000);
|
|
2543
|
+
};
|
|
2668
2544
|
|
|
2669
2545
|
_this2.onCzkChange = function (v) {
|
|
2670
2546
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2671
|
-
var
|
|
2672
|
-
isNewRetailBCPos =
|
|
2547
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
2548
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
|
2673
2549
|
|
|
2674
2550
|
if (!isNewRetailBCPos) {
|
|
2675
2551
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2806,8 +2682,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2806
2682
|
type = _this2$props3.type;
|
|
2807
2683
|
|
|
2808
2684
|
var isManualIntoAmount = void 0;
|
|
2809
|
-
var BuyerPayFreight = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.BuyerPayFreight;
|
|
2810
|
-
var DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
|
2811
2685
|
// 付款弹窗
|
|
2812
2686
|
return new _promise2.default(function (resolve, reject) {
|
|
2813
2687
|
var _enumController$getEn26 = _mutantsUtil.enumController.getEnumOj(),
|
|
@@ -2897,14 +2771,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2897
2771
|
_react2.default.createElement(
|
|
2898
2772
|
'span',
|
|
2899
2773
|
{ className: 'yfje' },
|
|
2900
|
-
paymode.value
|
|
2901
|
-
(DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? _react2.default.createElement(
|
|
2902
|
-
'span',
|
|
2903
|
-
{ className: 'freight' },
|
|
2904
|
-
'(\u5305\u542B',
|
|
2905
|
-
BuyerPayFreight,
|
|
2906
|
-
'\u5143\u8FD0\u8D39)'
|
|
2907
|
-
) : null
|
|
2774
|
+
paymode.value
|
|
2908
2775
|
)
|
|
2909
2776
|
),
|
|
2910
2777
|
paymode.paymentType == PayStyle.xianjin && _react2.default.createElement(
|
|
@@ -3084,9 +2951,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3084
2951
|
};
|
|
3085
2952
|
|
|
3086
2953
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
|
3087
|
-
var _this2$
|
|
3088
|
-
paymode = _this2$
|
|
3089
|
-
newStyle = _this2$
|
|
2954
|
+
var _this2$store8 = _this2.store,
|
|
2955
|
+
paymode = _this2$store8.paymode,
|
|
2956
|
+
newStyle = _this2$store8.newStyle;
|
|
3090
2957
|
|
|
3091
2958
|
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
|
3092
2959
|
PayStyle = _enumController$getEn27.PayStyle;
|
|
@@ -3259,21 +3126,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3259
3126
|
|
|
3260
3127
|
_this2.hasElectron = hasElectron;
|
|
3261
3128
|
|
|
3262
|
-
var
|
|
3263
|
-
ICCardServer =
|
|
3264
|
-
ICCardPassword =
|
|
3265
|
-
PreSellOrBook = _ref28.PreSellOrBook,
|
|
3266
|
-
PercentageWhenBook = _ref28.PercentageWhenBook;
|
|
3129
|
+
var _ref25 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3130
|
+
ICCardServer = _ref25.ICCardServer,
|
|
3131
|
+
ICCardPassword = _ref25.ICCardPassword;
|
|
3267
3132
|
|
|
3268
3133
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3269
3134
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3270
|
-
_this2.isBook = PreSellOrBook == 'BOOK';
|
|
3271
|
-
_this2.percentageWhenBook = PercentageWhenBook;
|
|
3272
3135
|
//移动端环境下,没有读取IC卡的方式。
|
|
3273
3136
|
|
|
3274
|
-
var
|
|
3275
|
-
isHorizontalPad =
|
|
3276
|
-
isHorizontalSunMi =
|
|
3137
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3138
|
+
isHorizontalPad = _ref26.isHorizontalPad,
|
|
3139
|
+
isHorizontalSunMi = _ref26.isHorizontalSunMi;
|
|
3277
3140
|
|
|
3278
3141
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3279
3142
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3508,8 +3371,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3508
3371
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3509
3372
|
storageValue = _state2.storageValue;
|
|
3510
3373
|
|
|
3511
|
-
var
|
|
3512
|
-
isNewRetailBCPos =
|
|
3374
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3375
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
3513
3376
|
|
|
3514
3377
|
var _store2 = this.store,
|
|
3515
3378
|
paymode = _store2.paymode,
|
|
@@ -3528,18 +3391,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3528
3391
|
|
|
3529
3392
|
var boriginReturn = this.context && this.context.viewModel && this.context.viewModel.data && JSON.getCellValue(this.context.viewModel.data, "IsOriginalReturn");
|
|
3530
3393
|
var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
|
|
3531
|
-
|
|
3532
|
-
//收订金
|
|
3533
|
-
var IdbusiType = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.IdbusiType;
|
|
3534
|
-
var BuyerPayFreight = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.BuyerPayFreight;
|
|
3535
|
-
var DistributionMode = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.DistributionMode;
|
|
3536
|
-
if (IdbusiType == 38 && this.isBook && this.percentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
|
3537
|
-
totalTaxAmount = totalTaxAmount * this.percentageWhenBook / 100;
|
|
3538
|
-
}
|
|
3539
|
-
if (IdbusiType == 39) {
|
|
3540
|
-
totalTaxAmount = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
|
3541
|
-
}
|
|
3542
|
-
|
|
3543
3394
|
// 单据模式
|
|
3544
3395
|
var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
|
|
3545
3396
|
return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
|
|
@@ -3584,11 +3435,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3584
3435
|
quantity4 = 0;
|
|
3585
3436
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3586
3437
|
|
|
3587
|
-
var
|
|
3588
|
-
|
|
3589
|
-
buyQuantity =
|
|
3590
|
-
|
|
3591
|
-
returnQuantity =
|
|
3438
|
+
var _ref28 = quantityDetail || {},
|
|
3439
|
+
_ref28$buyQuantity = _ref28.buyQuantity,
|
|
3440
|
+
buyQuantity = _ref28$buyQuantity === undefined ? 0 : _ref28$buyQuantity,
|
|
3441
|
+
_ref28$returnQuantity = _ref28.returnQuantity,
|
|
3442
|
+
returnQuantity = _ref28$returnQuantity === undefined ? 0 : _ref28$returnQuantity;
|
|
3592
3443
|
|
|
3593
3444
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3594
3445
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3973,20 +3824,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3973
3824
|
{ className: 'received' },
|
|
3974
3825
|
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
|
3975
3826
|
)
|
|
3976
|
-
),
|
|
3977
|
-
_react2.default.createElement(
|
|
3978
|
-
'div',
|
|
3979
|
-
{ className: 'receivable', style: { display: (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
|
3980
|
-
_react2.default.createElement(
|
|
3981
|
-
'span',
|
|
3982
|
-
null,
|
|
3983
|
-
'\u8FD0\u8D39'
|
|
3984
|
-
),
|
|
3985
|
-
_react2.default.createElement(
|
|
3986
|
-
'span',
|
|
3987
|
-
{ className: 'received' },
|
|
3988
|
-
(0, _utils.getFixedNumber)(Math.abs(BuyerPayFreight))
|
|
3989
|
-
)
|
|
3990
3827
|
)
|
|
3991
3828
|
),
|
|
3992
3829
|
!isReturn && _react2.default.createElement(
|
|
@@ -4203,7 +4040,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4203
4040
|
// return;
|
|
4204
4041
|
// }
|
|
4205
4042
|
// }
|
|
4206
|
-
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
4043
|
+
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
4207
4044
|
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4208
4045
|
},
|
|
4209
4046
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
@@ -4981,8 +4818,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4981
4818
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4982
4819
|
},
|
|
4983
4820
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4984
|
-
ref: function ref(
|
|
4985
|
-
return _this8["inputCzkAmount"] =
|
|
4821
|
+
ref: function ref(_ref29) {
|
|
4822
|
+
return _this8["inputCzkAmount"] = _ref29;
|
|
4986
4823
|
},
|
|
4987
4824
|
onFocus: function onFocus(e) {
|
|
4988
4825
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5235,7 +5072,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5235
5072
|
_react2.default.createElement(
|
|
5236
5073
|
'div',
|
|
5237
5074
|
{ className: 'djq2' },
|
|
5238
|
-
(0, _map3.default)(currentMode
|
|
5075
|
+
currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
|
|
5239
5076
|
if (!_this8.state.couponLight && !q.count) {
|
|
5240
5077
|
return;
|
|
5241
5078
|
}
|
|
@@ -5345,7 +5182,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5345
5182
|
_react2.default.createElement('div', { className: 'point_top' }),
|
|
5346
5183
|
_react2.default.createElement('div', { className: 'point_bottom' })
|
|
5347
5184
|
);
|
|
5348
|
-
})
|
|
5185
|
+
}) : _react2.default.createElement(_tplusComponentsTouch.ProgressState, {
|
|
5186
|
+
state: "empty",
|
|
5187
|
+
stateCommonStyle: { 'paddingTop': "30px", backgroundColor: 'transparent' },
|
|
5188
|
+
empty: { buttonVisible: false, imgStyle: { width: '120px', height: '120px' } } })
|
|
5349
5189
|
)
|
|
5350
5190
|
),
|
|
5351
5191
|
currentMode && !currentMode.boriginReturn && _react2.default.createElement(
|
|
@@ -5599,8 +5439,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5599
5439
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5600
5440
|
},
|
|
5601
5441
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5602
|
-
ref: function ref(
|
|
5603
|
-
return _this8["inputJfdxAmount"] =
|
|
5442
|
+
ref: function ref(_ref30) {
|
|
5443
|
+
return _this8["inputJfdxAmount"] = _ref30;
|
|
5604
5444
|
},
|
|
5605
5445
|
onFocus: function onFocus(e) {
|
|
5606
5446
|
_this8.inputkey = "inputJfdxAmount";
|