tplus-components-touch 3.27.15 → 3.27.19
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/commonForm/addressPicker/index.js +3 -3
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/index.js +5 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/presale/pickup.js +8 -2
- package/dist/components/presale/pickup.js.map +1 -1
- package/dist/components/presale/style.less +2 -0
- package/dist/components/settlement/settlement.js +135 -165
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +6 -9
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,14 +16,6 @@ var _drawer = require('antd/es/drawer');
|
|
|
16
16
|
|
|
17
17
|
var _drawer2 = _interopRequireDefault(_drawer);
|
|
18
18
|
|
|
19
|
-
var _extends2 = require('babel-runtime/helpers/extends');
|
|
20
|
-
|
|
21
|
-
var _extends3 = _interopRequireDefault(_extends2);
|
|
22
|
-
|
|
23
|
-
var _carousel = require('antd/es/carousel');
|
|
24
|
-
|
|
25
|
-
var _carousel2 = _interopRequireDefault(_carousel);
|
|
26
|
-
|
|
27
19
|
var _table = require('antd/es/table');
|
|
28
20
|
|
|
29
21
|
var _table2 = _interopRequireDefault(_table);
|
|
@@ -32,6 +24,14 @@ var _keys = require('babel-runtime/core-js/object/keys');
|
|
|
32
24
|
|
|
33
25
|
var _keys2 = _interopRequireDefault(_keys);
|
|
34
26
|
|
|
27
|
+
var _extends2 = require('babel-runtime/helpers/extends');
|
|
28
|
+
|
|
29
|
+
var _extends3 = _interopRequireDefault(_extends2);
|
|
30
|
+
|
|
31
|
+
var _carousel = require('antd/es/carousel');
|
|
32
|
+
|
|
33
|
+
var _carousel2 = _interopRequireDefault(_carousel);
|
|
34
|
+
|
|
35
35
|
var _button = require('antd/es/button');
|
|
36
36
|
|
|
37
37
|
var _button2 = _interopRequireDefault(_button);
|
|
@@ -96,10 +96,10 @@ require('antd/es/modal/style');
|
|
|
96
96
|
|
|
97
97
|
require('antd/es/drawer/style');
|
|
98
98
|
|
|
99
|
-
require('antd/es/carousel/style');
|
|
100
|
-
|
|
101
99
|
require('antd/es/table/style');
|
|
102
100
|
|
|
101
|
+
require('antd/es/carousel/style');
|
|
102
|
+
|
|
103
103
|
require('antd/es/button/style');
|
|
104
104
|
|
|
105
105
|
var _react = require('react');
|
|
@@ -365,7 +365,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
365
365
|
isReturn = _this2$props.isReturn,
|
|
366
366
|
type = _this2$props.type;
|
|
367
367
|
|
|
368
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(
|
|
368
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(function (data) {
|
|
369
|
+
return _this2.isNoProductTip(data);
|
|
370
|
+
})).then(function (result) {
|
|
369
371
|
if (result) {
|
|
370
372
|
_this2.setState({
|
|
371
373
|
settleDisabled: false
|
|
@@ -484,7 +486,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
484
486
|
|
|
485
487
|
var isAutoShowCouponWhenCash = (0, _tplusPoslogin.PosInitData)('IsAutoShowCouponWhenCash');
|
|
486
488
|
// 支持异步验证过程
|
|
487
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(
|
|
489
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(function (data) {
|
|
490
|
+
return _this2.isNoProductTip(data);
|
|
491
|
+
})).then(function (result) {
|
|
488
492
|
if (result) {
|
|
489
493
|
_this2.setState({
|
|
490
494
|
settleDisabled: false
|
|
@@ -2503,78 +2507,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2503
2507
|
};
|
|
2504
2508
|
}();
|
|
2505
2509
|
|
|
2506
|
-
_this2.isNoProductTip = function (nonProductMap) {
|
|
2507
|
-
var _ref24 = _this2.context.viewModel.data || {},
|
|
2508
|
-
RetailDetails = _ref24.RetailDetails;
|
|
2509
|
-
|
|
2510
|
-
var temphtml = [];
|
|
2511
|
-
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
|
2512
|
-
var columns = [{
|
|
2513
|
-
title: '商品名称',
|
|
2514
|
-
dataIndex: 'name',
|
|
2515
|
-
key: 'name',
|
|
2516
|
-
ellipsis: true
|
|
2517
|
-
}, {
|
|
2518
|
-
title: '原因',
|
|
2519
|
-
dataIndex: 'reason',
|
|
2520
|
-
key: 'reason',
|
|
2521
|
-
ellipsis: true
|
|
2522
|
-
}];
|
|
2523
|
-
|
|
2524
|
-
var _loop = function _loop(key) {
|
|
2525
|
-
var product = RetailDetails.find(function (o) {
|
|
2526
|
-
return o.Idinventory == key;
|
|
2527
|
-
});
|
|
2528
|
-
temphtml.push({ name: product.Inventory.Name, reason: nonProductMap[key] });
|
|
2529
|
-
};
|
|
2530
|
-
|
|
2531
|
-
for (var key in nonProductMap) {
|
|
2532
|
-
_loop(key);
|
|
2533
|
-
}
|
|
2534
|
-
var modal = (0, _asyncModal2.default)({
|
|
2535
|
-
onPressEnter: function onPressEnter() {
|
|
2536
|
-
modal.destroy();
|
|
2537
|
-
},
|
|
2538
|
-
maskClosable: false,
|
|
2539
|
-
keyboard: false,
|
|
2540
|
-
closable: true,
|
|
2541
|
-
title: '不可配送商品',
|
|
2542
|
-
width: 600,
|
|
2543
|
-
className: '',
|
|
2544
|
-
content: _react2.default.createElement(
|
|
2545
|
-
'div',
|
|
2546
|
-
{ className: 'not-distribution-tip' },
|
|
2547
|
-
_react2.default.createElement(
|
|
2548
|
-
'div',
|
|
2549
|
-
{ className: 'tip-content' },
|
|
2550
|
-
_react2.default.createElement(_table2.default, {
|
|
2551
|
-
columns: columns,
|
|
2552
|
-
dataSource: temphtml,
|
|
2553
|
-
scroll: { y: 240 },
|
|
2554
|
-
pagination: false,
|
|
2555
|
-
size: 'middle' })
|
|
2556
|
-
),
|
|
2557
|
-
_react2.default.createElement(
|
|
2558
|
-
'div',
|
|
2559
|
-
{ className: 'not-distribution-btn' },
|
|
2560
|
-
_react2.default.createElement(
|
|
2561
|
-
_button2.default,
|
|
2562
|
-
{ type: 'primary', onClick: function onClick() {
|
|
2563
|
-
modal.destroy();
|
|
2564
|
-
} },
|
|
2565
|
-
'\u77E5\u9053\u4E86'
|
|
2566
|
-
)
|
|
2567
|
-
)
|
|
2568
|
-
)
|
|
2569
|
-
});
|
|
2570
|
-
return true;
|
|
2571
|
-
}
|
|
2572
|
-
return false;
|
|
2573
|
-
};
|
|
2574
|
-
|
|
2575
2510
|
_this2.btnDebounced = function () {
|
|
2576
|
-
var
|
|
2577
|
-
var IdbusiType, CustomerPhone, DistributionMode, Address, title,
|
|
2511
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(type, bquick) {
|
|
2512
|
+
var IdbusiType, CustomerPhone, DistributionMode, Address, title, _enumController$getEn22, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, status;
|
|
2578
2513
|
|
|
2579
2514
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2580
2515
|
while (1) {
|
|
@@ -2587,7 +2522,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2587
2522
|
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
|
2588
2523
|
|
|
2589
2524
|
if (!(IdbusiType == 38)) {
|
|
2590
|
-
_context14.next =
|
|
2525
|
+
_context14.next = 9;
|
|
2591
2526
|
break;
|
|
2592
2527
|
}
|
|
2593
2528
|
|
|
@@ -2601,71 +2536,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2601
2536
|
return _this2.props.openBuyerModal(title);
|
|
2602
2537
|
|
|
2603
2538
|
case 9:
|
|
2604
|
-
if (!(DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2605
|
-
_context14.next = 30;
|
|
2606
|
-
break;
|
|
2607
|
-
}
|
|
2608
|
-
|
|
2609
|
-
_this2$store7 = _this2.store, getPerformanceDistributionValue = _this2$store7.getPerformanceDistributionValue, getPosFreight = _this2$store7.getPosFreight, updataFreight = _this2$store7.updataFreight;
|
|
2610
|
-
IPMSG = {};
|
|
2611
|
-
|
|
2612
|
-
if (!!window.localStorage.IPMSG) {
|
|
2613
|
-
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
2614
|
-
}
|
|
2615
|
-
_context14.next = 15;
|
|
2616
|
-
return getPerformanceDistributionValue({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2617
|
-
|
|
2618
|
-
case 15:
|
|
2619
|
-
_ref26 = _context14.sent;
|
|
2620
|
-
nonProductMap = _ref26.nonProductMap;
|
|
2621
|
-
_ref26$freightProduct = _ref26.freightProductDTOList;
|
|
2622
|
-
freightProductDTOList = _ref26$freightProduct === undefined ? [] : _ref26$freightProduct;
|
|
2623
|
-
|
|
2624
|
-
if (!_this2.isNoProductTip(nonProductMap)) {
|
|
2625
|
-
_context14.next = 21;
|
|
2626
|
-
break;
|
|
2627
|
-
}
|
|
2628
|
-
|
|
2629
|
-
return _context14.abrupt('return');
|
|
2630
|
-
|
|
2631
|
-
case 21:
|
|
2632
|
-
_context14.next = 23;
|
|
2633
|
-
return _this2.props.openWareHouseModal(freightProductDTOList);
|
|
2634
|
-
|
|
2635
|
-
case 23:
|
|
2636
|
-
_context14.next = 25;
|
|
2637
|
-
return getPosFreight({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2638
|
-
|
|
2639
|
-
case 25:
|
|
2640
|
-
data = _context14.sent;
|
|
2641
|
-
|
|
2642
|
-
if (!_this2.isNoProductTip(data.nonProductMap)) {
|
|
2643
|
-
_context14.next = 28;
|
|
2644
|
-
break;
|
|
2645
|
-
}
|
|
2646
|
-
|
|
2647
|
-
return _context14.abrupt('return');
|
|
2648
|
-
|
|
2649
|
-
case 28:
|
|
2650
|
-
_context14.next = 30;
|
|
2651
|
-
return _this2.props.updataFreight(data.freight);
|
|
2652
|
-
|
|
2653
|
-
case 30:
|
|
2654
2539
|
|
|
2655
2540
|
_this2.setState({
|
|
2656
2541
|
bquick: bquick
|
|
2657
2542
|
});
|
|
2658
2543
|
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2659
|
-
_this2$
|
|
2544
|
+
_this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
|
|
2660
2545
|
|
|
2661
2546
|
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
|
2662
|
-
_context14.next =
|
|
2547
|
+
_context14.next = 14;
|
|
2663
2548
|
break;
|
|
2664
2549
|
}
|
|
2665
2550
|
|
|
2666
2551
|
return _context14.abrupt('return', false);
|
|
2667
2552
|
|
|
2668
|
-
case
|
|
2553
|
+
case 14:
|
|
2669
2554
|
status = false;
|
|
2670
2555
|
|
|
2671
2556
|
paymode.thePaymodes.forEach(function (v) {
|
|
@@ -2678,13 +2563,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2678
2563
|
});
|
|
2679
2564
|
|
|
2680
2565
|
if (!_this2.btndebounced) {
|
|
2681
|
-
_context14.next =
|
|
2566
|
+
_context14.next = 19;
|
|
2682
2567
|
break;
|
|
2683
2568
|
}
|
|
2684
2569
|
|
|
2685
2570
|
return _context14.abrupt('return');
|
|
2686
2571
|
|
|
2687
|
-
case
|
|
2572
|
+
case 19:
|
|
2688
2573
|
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2689
2574
|
if (bquick) {
|
|
2690
2575
|
_this2.quickSettle(type);
|
|
@@ -2701,7 +2586,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2701
2586
|
_this2.btndebounced = null;
|
|
2702
2587
|
}, 2000);
|
|
2703
2588
|
|
|
2704
|
-
case
|
|
2589
|
+
case 22:
|
|
2705
2590
|
case 'end':
|
|
2706
2591
|
return _context14.stop();
|
|
2707
2592
|
}
|
|
@@ -2710,14 +2595,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2710
2595
|
}));
|
|
2711
2596
|
|
|
2712
2597
|
return function (_x8, _x9) {
|
|
2713
|
-
return
|
|
2598
|
+
return _ref24.apply(this, arguments);
|
|
2714
2599
|
};
|
|
2715
2600
|
}();
|
|
2716
2601
|
|
|
2717
2602
|
_this2.onCzkChange = function (v) {
|
|
2718
2603
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2719
|
-
var
|
|
2720
|
-
isNewRetailBCPos =
|
|
2604
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
2605
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
2721
2606
|
|
|
2722
2607
|
if (!isNewRetailBCPos) {
|
|
2723
2608
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2798,7 +2683,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2798
2683
|
}
|
|
2799
2684
|
inputTarget.value = value;
|
|
2800
2685
|
//TODO 这里修改找零计算,应减去取货时最大支付金额,或者预订时,找零计算应该是小于应收,按现有计算找零,大于应收小于最大比例金额,不找零,大于最大比例金额找零
|
|
2686
|
+
// let IdbusiType = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.IdbusiType;
|
|
2687
|
+
// let DistributionMode = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.DistributionMode;
|
|
2688
|
+
// const { PreSellOrBook, PercentageWhenBook } = stores.user.options.get('loginInfo');
|
|
2689
|
+
// if(IdbusiType == 38 && PreSellOrBook == 'BOOK' && PercentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')){
|
|
2690
|
+
// if(parseFloat(value||0) > this.store.paymode.bookMaxValue){
|
|
2691
|
+
// inputTarget2.innerHTML=getFixedNumber(parseFloat(value||0)-parseFloat(this.store.paymode.bookMaxValue));
|
|
2692
|
+
// }
|
|
2693
|
+
// if (parseFloat(value||0) < parseFloat(receivable)){
|
|
2694
|
+
// inputTarget2.innerHTML=getFixedNumber(parseFloat(value||0)-parseFloat(receivable));
|
|
2695
|
+
// }
|
|
2696
|
+
// if(parseFloat(receivable) <= parseFloat(value||0) && parseFloat(value||0) <= this.store.paymode.bookMaxValue){
|
|
2697
|
+
// inputTarget2.innerHTML=getFixedNumber(0);
|
|
2698
|
+
// }
|
|
2699
|
+
// } else {
|
|
2801
2700
|
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
|
2701
|
+
// }
|
|
2802
2702
|
};
|
|
2803
2703
|
|
|
2804
2704
|
_this2.changeScanProduct = function () {
|
|
@@ -3133,9 +3033,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3133
3033
|
};
|
|
3134
3034
|
|
|
3135
3035
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
|
3136
|
-
var _this2$
|
|
3137
|
-
paymode = _this2$
|
|
3138
|
-
newStyle = _this2$
|
|
3036
|
+
var _this2$store8 = _this2.store,
|
|
3037
|
+
paymode = _this2$store8.paymode,
|
|
3038
|
+
newStyle = _this2$store8.newStyle;
|
|
3139
3039
|
|
|
3140
3040
|
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
|
3141
3041
|
PayStyle = _enumController$getEn27.PayStyle;
|
|
@@ -3308,11 +3208,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3308
3208
|
|
|
3309
3209
|
_this2.hasElectron = hasElectron;
|
|
3310
3210
|
|
|
3311
|
-
var
|
|
3312
|
-
ICCardServer =
|
|
3313
|
-
ICCardPassword =
|
|
3314
|
-
PreSellOrBook =
|
|
3315
|
-
PercentageWhenBook =
|
|
3211
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3212
|
+
ICCardServer = _ref26.ICCardServer,
|
|
3213
|
+
ICCardPassword = _ref26.ICCardPassword,
|
|
3214
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
|
3215
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
|
3316
3216
|
|
|
3317
3217
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3318
3218
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
@@ -3320,9 +3220,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3320
3220
|
_this2.percentageWhenBook = PercentageWhenBook;
|
|
3321
3221
|
//移动端环境下,没有读取IC卡的方式。
|
|
3322
3222
|
|
|
3323
|
-
var
|
|
3324
|
-
isHorizontalPad =
|
|
3325
|
-
isHorizontalSunMi =
|
|
3223
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3224
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
|
3225
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
|
3326
3226
|
|
|
3327
3227
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3328
3228
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3448,6 +3348,76 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3448
3348
|
|
|
3449
3349
|
//that[`inputS${paymode.paymethodId}`]
|
|
3450
3350
|
|
|
3351
|
+
}, {
|
|
3352
|
+
key: 'isNoProductTip',
|
|
3353
|
+
value: function isNoProductTip(nonProductMap) {
|
|
3354
|
+
var _ref28 = this.context.viewModel.data || {},
|
|
3355
|
+
RetailDetails = _ref28.RetailDetails;
|
|
3356
|
+
|
|
3357
|
+
var temphtml = [];
|
|
3358
|
+
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
|
3359
|
+
var columns = [{
|
|
3360
|
+
title: '商品名称',
|
|
3361
|
+
dataIndex: 'name',
|
|
3362
|
+
key: 'name',
|
|
3363
|
+
ellipsis: true
|
|
3364
|
+
}, {
|
|
3365
|
+
title: '原因',
|
|
3366
|
+
dataIndex: 'reason',
|
|
3367
|
+
key: 'reason',
|
|
3368
|
+
ellipsis: true
|
|
3369
|
+
}];
|
|
3370
|
+
|
|
3371
|
+
var _loop = function _loop(key) {
|
|
3372
|
+
var product = RetailDetails.find(function (o) {
|
|
3373
|
+
return o.Idinventory == key;
|
|
3374
|
+
});
|
|
3375
|
+
temphtml.push({ name: product.Inventory.Name, reason: nonProductMap[key] });
|
|
3376
|
+
};
|
|
3377
|
+
|
|
3378
|
+
for (var key in nonProductMap) {
|
|
3379
|
+
_loop(key);
|
|
3380
|
+
}
|
|
3381
|
+
var modal = (0, _asyncModal2.default)({
|
|
3382
|
+
onPressEnter: function onPressEnter() {
|
|
3383
|
+
modal.destroy();
|
|
3384
|
+
},
|
|
3385
|
+
maskClosable: false,
|
|
3386
|
+
keyboard: false,
|
|
3387
|
+
closable: true,
|
|
3388
|
+
title: '不可配送商品',
|
|
3389
|
+
width: 600,
|
|
3390
|
+
className: '',
|
|
3391
|
+
content: _react2.default.createElement(
|
|
3392
|
+
'div',
|
|
3393
|
+
{ className: 'not-distribution-tip' },
|
|
3394
|
+
_react2.default.createElement(
|
|
3395
|
+
'div',
|
|
3396
|
+
{ className: 'tip-content' },
|
|
3397
|
+
_react2.default.createElement(_table2.default, {
|
|
3398
|
+
columns: columns,
|
|
3399
|
+
dataSource: temphtml,
|
|
3400
|
+
scroll: { y: 240 },
|
|
3401
|
+
pagination: false,
|
|
3402
|
+
size: 'middle' })
|
|
3403
|
+
),
|
|
3404
|
+
_react2.default.createElement(
|
|
3405
|
+
'div',
|
|
3406
|
+
{ className: 'not-distribution-btn' },
|
|
3407
|
+
_react2.default.createElement(
|
|
3408
|
+
_button2.default,
|
|
3409
|
+
{ type: 'primary', onClick: function onClick() {
|
|
3410
|
+
modal.destroy();
|
|
3411
|
+
} },
|
|
3412
|
+
'\u77E5\u9053\u4E86'
|
|
3413
|
+
)
|
|
3414
|
+
)
|
|
3415
|
+
)
|
|
3416
|
+
});
|
|
3417
|
+
return true;
|
|
3418
|
+
}
|
|
3419
|
+
return false;
|
|
3420
|
+
}
|
|
3451
3421
|
}, {
|
|
3452
3422
|
key: 'checkThepaymode',
|
|
3453
3423
|
value: function checkThepaymode(key) {
|
|
@@ -3557,8 +3527,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3557
3527
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3558
3528
|
storageValue = _state2.storageValue;
|
|
3559
3529
|
|
|
3560
|
-
var
|
|
3561
|
-
isNewRetailBCPos =
|
|
3530
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3531
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
3562
3532
|
|
|
3563
3533
|
var _store2 = this.store,
|
|
3564
3534
|
paymode = _store2.paymode,
|
|
@@ -3633,11 +3603,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3633
3603
|
quantity4 = 0;
|
|
3634
3604
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3635
3605
|
|
|
3636
|
-
var
|
|
3637
|
-
|
|
3638
|
-
buyQuantity =
|
|
3639
|
-
|
|
3640
|
-
returnQuantity =
|
|
3606
|
+
var _ref30 = quantityDetail || {},
|
|
3607
|
+
_ref30$buyQuantity = _ref30.buyQuantity,
|
|
3608
|
+
buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
|
|
3609
|
+
_ref30$returnQuantity = _ref30.returnQuantity,
|
|
3610
|
+
returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
|
|
3641
3611
|
|
|
3642
3612
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3643
3613
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -5030,8 +5000,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5030
5000
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
5031
5001
|
},
|
|
5032
5002
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
5033
|
-
ref: function ref(
|
|
5034
|
-
return _this8["inputCzkAmount"] =
|
|
5003
|
+
ref: function ref(_ref31) {
|
|
5004
|
+
return _this8["inputCzkAmount"] = _ref31;
|
|
5035
5005
|
},
|
|
5036
5006
|
onFocus: function onFocus(e) {
|
|
5037
5007
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5648,8 +5618,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5648
5618
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5649
5619
|
},
|
|
5650
5620
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5651
|
-
ref: function ref(
|
|
5652
|
-
return _this8["inputJfdxAmount"] =
|
|
5621
|
+
ref: function ref(_ref32) {
|
|
5622
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
|
5653
5623
|
},
|
|
5654
5624
|
onFocus: function onFocus(e) {
|
|
5655
5625
|
_this8.inputkey = "inputJfdxAmount";
|