tplus-components-touch 3.27.14 → 3.27.18
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/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +7 -7
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +373 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +10 -10
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +7 -7
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +27 -27
- package/dist/components/input/style.less +106 -106
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +161 -161
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +72 -70
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +8 -8
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/presale/pickup.js +8 -2
- package/dist/components/presale/pickup.js.map +1 -1
- package/dist/components/presale/style.less +58 -56
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +125 -124
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1610 -1600
- package/dist/components/settlement/settlementStore.js +0 -8
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +11 -11
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +5225 -5225
- package/dist/components/ticon/iconfont/iconfont.css +891 -891
- package/dist/components/ticon/iconfont/iconfont.json +1542 -1542
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +369 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +7 -7
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +35 -35
- package/tsconfig.json +26 -26
|
@@ -16,6 +16,14 @@ var _drawer = require('antd/es/drawer');
|
|
|
16
16
|
|
|
17
17
|
var _drawer2 = _interopRequireDefault(_drawer);
|
|
18
18
|
|
|
19
|
+
var _table = require('antd/es/table');
|
|
20
|
+
|
|
21
|
+
var _table2 = _interopRequireDefault(_table);
|
|
22
|
+
|
|
23
|
+
var _keys = require('babel-runtime/core-js/object/keys');
|
|
24
|
+
|
|
25
|
+
var _keys2 = _interopRequireDefault(_keys);
|
|
26
|
+
|
|
19
27
|
var _extends2 = require('babel-runtime/helpers/extends');
|
|
20
28
|
|
|
21
29
|
var _extends3 = _interopRequireDefault(_extends2);
|
|
@@ -24,10 +32,6 @@ var _carousel = require('antd/es/carousel');
|
|
|
24
32
|
|
|
25
33
|
var _carousel2 = _interopRequireDefault(_carousel);
|
|
26
34
|
|
|
27
|
-
var _keys = require('babel-runtime/core-js/object/keys');
|
|
28
|
-
|
|
29
|
-
var _keys2 = _interopRequireDefault(_keys);
|
|
30
|
-
|
|
31
35
|
var _button = require('antd/es/button');
|
|
32
36
|
|
|
33
37
|
var _button2 = _interopRequireDefault(_button);
|
|
@@ -92,6 +96,8 @@ require('antd/es/modal/style');
|
|
|
92
96
|
|
|
93
97
|
require('antd/es/drawer/style');
|
|
94
98
|
|
|
99
|
+
require('antd/es/table/style');
|
|
100
|
+
|
|
95
101
|
require('antd/es/carousel/style');
|
|
96
102
|
|
|
97
103
|
require('antd/es/button/style');
|
|
@@ -359,7 +365,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
359
365
|
isReturn = _this2$props.isReturn,
|
|
360
366
|
type = _this2$props.type;
|
|
361
367
|
|
|
362
|
-
_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) {
|
|
363
371
|
if (result) {
|
|
364
372
|
_this2.setState({
|
|
365
373
|
settleDisabled: false
|
|
@@ -478,7 +486,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
478
486
|
|
|
479
487
|
var isAutoShowCouponWhenCash = (0, _tplusPoslogin.PosInitData)('IsAutoShowCouponWhenCash');
|
|
480
488
|
// 支持异步验证过程
|
|
481
|
-
_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) {
|
|
482
492
|
if (result) {
|
|
483
493
|
_this2.setState({
|
|
484
494
|
settleDisabled: false
|
|
@@ -2497,38 +2507,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2497
2507
|
};
|
|
2498
2508
|
}();
|
|
2499
2509
|
|
|
2500
|
-
_this2.isNoProductTip = function (nonProductMap) {
|
|
2501
|
-
var _ref24 = _this2.context.viewModel.data || {},
|
|
2502
|
-
RetailDetails = _ref24.RetailDetails;
|
|
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
2510
|
_this2.btnDebounced = function () {
|
|
2530
|
-
var
|
|
2531
|
-
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;
|
|
2532
2513
|
|
|
2533
2514
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2534
2515
|
while (1) {
|
|
@@ -2541,7 +2522,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2541
2522
|
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
|
2542
2523
|
|
|
2543
2524
|
if (!(IdbusiType == 38)) {
|
|
2544
|
-
_context14.next =
|
|
2525
|
+
_context14.next = 9;
|
|
2545
2526
|
break;
|
|
2546
2527
|
}
|
|
2547
2528
|
|
|
@@ -2555,71 +2536,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2555
2536
|
return _this2.props.openBuyerModal(title);
|
|
2556
2537
|
|
|
2557
2538
|
case 9:
|
|
2558
|
-
if (!(DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
|
2559
|
-
_context14.next = 30;
|
|
2560
|
-
break;
|
|
2561
|
-
}
|
|
2562
|
-
|
|
2563
|
-
_this2$store7 = _this2.store, getPerformanceDistributionValue = _this2$store7.getPerformanceDistributionValue, getPosFreight = _this2$store7.getPosFreight, updataFreight = _this2$store7.updataFreight;
|
|
2564
|
-
IPMSG = {};
|
|
2565
|
-
|
|
2566
|
-
if (!!window.localStorage.IPMSG) {
|
|
2567
|
-
IPMSG = JSON.parse(window.localStorage.IPMSG);
|
|
2568
|
-
}
|
|
2569
|
-
_context14.next = 15;
|
|
2570
|
-
return getPerformanceDistributionValue({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2571
|
-
|
|
2572
|
-
case 15:
|
|
2573
|
-
_ref26 = _context14.sent;
|
|
2574
|
-
nonProductMap = _ref26.nonProductMap;
|
|
2575
|
-
_ref26$freightProduct = _ref26.freightProductDTOList;
|
|
2576
|
-
freightProductDTOList = _ref26$freightProduct === undefined ? [] : _ref26$freightProduct;
|
|
2577
|
-
|
|
2578
|
-
if (!_this2.isNoProductTip(nonProductMap)) {
|
|
2579
|
-
_context14.next = 21;
|
|
2580
|
-
break;
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2583
|
-
return _context14.abrupt('return');
|
|
2584
|
-
|
|
2585
|
-
case 21:
|
|
2586
|
-
_context14.next = 23;
|
|
2587
|
-
return _this2.props.openWareHouseModal(freightProductDTOList);
|
|
2588
|
-
|
|
2589
|
-
case 23:
|
|
2590
|
-
_context14.next = 25;
|
|
2591
|
-
return getPosFreight({ cip: IPMSG.query || "", dto: _this2.context.viewModel.data });
|
|
2592
|
-
|
|
2593
|
-
case 25:
|
|
2594
|
-
data = _context14.sent;
|
|
2595
|
-
|
|
2596
|
-
if (!_this2.isNoProductTip(data.nonProductMap)) {
|
|
2597
|
-
_context14.next = 28;
|
|
2598
|
-
break;
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
return _context14.abrupt('return');
|
|
2602
|
-
|
|
2603
|
-
case 28:
|
|
2604
|
-
_context14.next = 30;
|
|
2605
|
-
return _this2.props.updataFreight(data.freight);
|
|
2606
|
-
|
|
2607
|
-
case 30:
|
|
2608
2539
|
|
|
2609
2540
|
_this2.setState({
|
|
2610
2541
|
bquick: bquick
|
|
2611
2542
|
});
|
|
2612
2543
|
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2613
|
-
_this2$
|
|
2544
|
+
_this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
|
|
2614
2545
|
|
|
2615
2546
|
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
|
2616
|
-
_context14.next =
|
|
2547
|
+
_context14.next = 14;
|
|
2617
2548
|
break;
|
|
2618
2549
|
}
|
|
2619
2550
|
|
|
2620
2551
|
return _context14.abrupt('return', false);
|
|
2621
2552
|
|
|
2622
|
-
case
|
|
2553
|
+
case 14:
|
|
2623
2554
|
status = false;
|
|
2624
2555
|
|
|
2625
2556
|
paymode.thePaymodes.forEach(function (v) {
|
|
@@ -2632,13 +2563,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2632
2563
|
});
|
|
2633
2564
|
|
|
2634
2565
|
if (!_this2.btndebounced) {
|
|
2635
|
-
_context14.next =
|
|
2566
|
+
_context14.next = 19;
|
|
2636
2567
|
break;
|
|
2637
2568
|
}
|
|
2638
2569
|
|
|
2639
2570
|
return _context14.abrupt('return');
|
|
2640
2571
|
|
|
2641
|
-
case
|
|
2572
|
+
case 19:
|
|
2642
2573
|
_this2.btndebounced = (0, _debounce3.default)(function () {
|
|
2643
2574
|
if (bquick) {
|
|
2644
2575
|
_this2.quickSettle(type);
|
|
@@ -2655,7 +2586,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2655
2586
|
_this2.btndebounced = null;
|
|
2656
2587
|
}, 2000);
|
|
2657
2588
|
|
|
2658
|
-
case
|
|
2589
|
+
case 22:
|
|
2659
2590
|
case 'end':
|
|
2660
2591
|
return _context14.stop();
|
|
2661
2592
|
}
|
|
@@ -2664,14 +2595,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2664
2595
|
}));
|
|
2665
2596
|
|
|
2666
2597
|
return function (_x8, _x9) {
|
|
2667
|
-
return
|
|
2598
|
+
return _ref24.apply(this, arguments);
|
|
2668
2599
|
};
|
|
2669
2600
|
}();
|
|
2670
2601
|
|
|
2671
2602
|
_this2.onCzkChange = function (v) {
|
|
2672
2603
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2673
|
-
var
|
|
2674
|
-
isNewRetailBCPos =
|
|
2604
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
2605
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
2675
2606
|
|
|
2676
2607
|
if (!isNewRetailBCPos) {
|
|
2677
2608
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3087,9 +3018,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3087
3018
|
};
|
|
3088
3019
|
|
|
3089
3020
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
|
3090
|
-
var _this2$
|
|
3091
|
-
paymode = _this2$
|
|
3092
|
-
newStyle = _this2$
|
|
3021
|
+
var _this2$store8 = _this2.store,
|
|
3022
|
+
paymode = _this2$store8.paymode,
|
|
3023
|
+
newStyle = _this2$store8.newStyle;
|
|
3093
3024
|
|
|
3094
3025
|
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
|
3095
3026
|
PayStyle = _enumController$getEn27.PayStyle;
|
|
@@ -3262,11 +3193,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3262
3193
|
|
|
3263
3194
|
_this2.hasElectron = hasElectron;
|
|
3264
3195
|
|
|
3265
|
-
var
|
|
3266
|
-
ICCardServer =
|
|
3267
|
-
ICCardPassword =
|
|
3268
|
-
PreSellOrBook =
|
|
3269
|
-
PercentageWhenBook =
|
|
3196
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3197
|
+
ICCardServer = _ref26.ICCardServer,
|
|
3198
|
+
ICCardPassword = _ref26.ICCardPassword,
|
|
3199
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
|
3200
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
|
3270
3201
|
|
|
3271
3202
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3272
3203
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
@@ -3274,9 +3205,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3274
3205
|
_this2.percentageWhenBook = PercentageWhenBook;
|
|
3275
3206
|
//移动端环境下,没有读取IC卡的方式。
|
|
3276
3207
|
|
|
3277
|
-
var
|
|
3278
|
-
isHorizontalPad =
|
|
3279
|
-
isHorizontalSunMi =
|
|
3208
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3209
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
|
3210
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
|
3280
3211
|
|
|
3281
3212
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3282
3213
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3391,17 +3322,87 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3391
3322
|
//jfdx
|
|
3392
3323
|
|
|
3393
3324
|
|
|
3394
|
-
/**
|
|
3395
|
-
*
|
|
3396
|
-
* @param {*} thePaymodes 支付方式列表
|
|
3397
|
-
* @param {*} currenIndex 当前支付方式下标
|
|
3398
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3325
|
+
/**
|
|
3326
|
+
*
|
|
3327
|
+
* @param {*} thePaymodes 支付方式列表
|
|
3328
|
+
* @param {*} currenIndex 当前支付方式下标
|
|
3329
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3399
3330
|
*/
|
|
3400
3331
|
|
|
3401
3332
|
// 处理客显显示功能
|
|
3402
3333
|
|
|
3403
3334
|
//that[`inputS${paymode.paymethodId}`]
|
|
3404
3335
|
|
|
3336
|
+
}, {
|
|
3337
|
+
key: 'isNoProductTip',
|
|
3338
|
+
value: function isNoProductTip(nonProductMap) {
|
|
3339
|
+
var _ref28 = this.context.viewModel.data || {},
|
|
3340
|
+
RetailDetails = _ref28.RetailDetails;
|
|
3341
|
+
|
|
3342
|
+
var temphtml = [];
|
|
3343
|
+
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
|
3344
|
+
var columns = [{
|
|
3345
|
+
title: '商品名称',
|
|
3346
|
+
dataIndex: 'name',
|
|
3347
|
+
key: 'name',
|
|
3348
|
+
ellipsis: true
|
|
3349
|
+
}, {
|
|
3350
|
+
title: '原因',
|
|
3351
|
+
dataIndex: 'reason',
|
|
3352
|
+
key: 'reason',
|
|
3353
|
+
ellipsis: true
|
|
3354
|
+
}];
|
|
3355
|
+
|
|
3356
|
+
var _loop = function _loop(key) {
|
|
3357
|
+
var product = RetailDetails.find(function (o) {
|
|
3358
|
+
return o.Idinventory == key;
|
|
3359
|
+
});
|
|
3360
|
+
temphtml.push({ name: product.Inventory.Name, reason: nonProductMap[key] });
|
|
3361
|
+
};
|
|
3362
|
+
|
|
3363
|
+
for (var key in nonProductMap) {
|
|
3364
|
+
_loop(key);
|
|
3365
|
+
}
|
|
3366
|
+
var modal = (0, _asyncModal2.default)({
|
|
3367
|
+
onPressEnter: function onPressEnter() {
|
|
3368
|
+
modal.destroy();
|
|
3369
|
+
},
|
|
3370
|
+
maskClosable: false,
|
|
3371
|
+
keyboard: false,
|
|
3372
|
+
closable: true,
|
|
3373
|
+
title: '不可配送商品',
|
|
3374
|
+
width: 600,
|
|
3375
|
+
className: '',
|
|
3376
|
+
content: _react2.default.createElement(
|
|
3377
|
+
'div',
|
|
3378
|
+
{ className: 'not-distribution-tip' },
|
|
3379
|
+
_react2.default.createElement(
|
|
3380
|
+
'div',
|
|
3381
|
+
{ className: 'tip-content' },
|
|
3382
|
+
_react2.default.createElement(_table2.default, {
|
|
3383
|
+
columns: columns,
|
|
3384
|
+
dataSource: temphtml,
|
|
3385
|
+
scroll: { y: 240 },
|
|
3386
|
+
pagination: false,
|
|
3387
|
+
size: 'middle' })
|
|
3388
|
+
),
|
|
3389
|
+
_react2.default.createElement(
|
|
3390
|
+
'div',
|
|
3391
|
+
{ className: 'not-distribution-btn' },
|
|
3392
|
+
_react2.default.createElement(
|
|
3393
|
+
_button2.default,
|
|
3394
|
+
{ type: 'primary', onClick: function onClick() {
|
|
3395
|
+
modal.destroy();
|
|
3396
|
+
} },
|
|
3397
|
+
'\u77E5\u9053\u4E86'
|
|
3398
|
+
)
|
|
3399
|
+
)
|
|
3400
|
+
)
|
|
3401
|
+
});
|
|
3402
|
+
return true;
|
|
3403
|
+
}
|
|
3404
|
+
return false;
|
|
3405
|
+
}
|
|
3405
3406
|
}, {
|
|
3406
3407
|
key: 'checkThepaymode',
|
|
3407
3408
|
value: function checkThepaymode(key) {
|
|
@@ -3511,8 +3512,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3511
3512
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3512
3513
|
storageValue = _state2.storageValue;
|
|
3513
3514
|
|
|
3514
|
-
var
|
|
3515
|
-
isNewRetailBCPos =
|
|
3515
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3516
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
3516
3517
|
|
|
3517
3518
|
var _store2 = this.store,
|
|
3518
3519
|
paymode = _store2.paymode,
|
|
@@ -3587,11 +3588,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3587
3588
|
quantity4 = 0;
|
|
3588
3589
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3589
3590
|
|
|
3590
|
-
var
|
|
3591
|
-
|
|
3592
|
-
buyQuantity =
|
|
3593
|
-
|
|
3594
|
-
returnQuantity =
|
|
3591
|
+
var _ref30 = quantityDetail || {},
|
|
3592
|
+
_ref30$buyQuantity = _ref30.buyQuantity,
|
|
3593
|
+
buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
|
|
3594
|
+
_ref30$returnQuantity = _ref30.returnQuantity,
|
|
3595
|
+
returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
|
|
3595
3596
|
|
|
3596
3597
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3597
3598
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4984,8 +4985,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4984
4985
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4985
4986
|
},
|
|
4986
4987
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4987
|
-
ref: function ref(
|
|
4988
|
-
return _this8["inputCzkAmount"] =
|
|
4988
|
+
ref: function ref(_ref31) {
|
|
4989
|
+
return _this8["inputCzkAmount"] = _ref31;
|
|
4989
4990
|
},
|
|
4990
4991
|
onFocus: function onFocus(e) {
|
|
4991
4992
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5602,8 +5603,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5602
5603
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5603
5604
|
},
|
|
5604
5605
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5605
|
-
ref: function ref(
|
|
5606
|
-
return _this8["inputJfdxAmount"] =
|
|
5606
|
+
ref: function ref(_ref32) {
|
|
5607
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
|
5607
5608
|
},
|
|
5608
5609
|
onFocus: function onFocus(e) {
|
|
5609
5610
|
_this8.inputkey = "inputJfdxAmount";
|