tplus-components-touch 3.27.42 → 3.27.44
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 +45 -23
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +18 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +19 -6
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +384 -376
- 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 +7 -7
- 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 +35 -16
- 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 +6 -6
- 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 +14 -16
- 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 +10 -7
- package/dist/components/input/index.js.map +1 -1
- package/dist/components/input/scanInput.js.map +1 -1
- package/dist/components/input/scanInput.less +30 -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.map +1 -1
- package/dist/components/keyboard/index.js +5 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +485 -469
- package/dist/components/keyboard/letterKeyboard.js +35 -18
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +27 -17
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js +32 -24
- 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 +35 -18
- 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 +156 -156
- 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 +15 -13
- 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 -72
- 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.map +1 -1
- package/dist/components/presale/style.less +58 -58
- 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/moreCzkTable/index.js.map +1 -1
- package/dist/components/settlement/moreCzkTable/style.less +6 -6
- package/dist/components/settlement/prototypeTable/index.js +3 -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 +81 -546
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1706 -1702
- package/dist/components/settlement/settlementStore.js +96 -78
- 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 +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- 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 +20 -10
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +376 -376
- 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
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _input = require('antd/es/input');
|
|
8
|
-
|
|
9
|
-
var _input2 = _interopRequireDefault(_input);
|
|
10
|
-
|
|
11
7
|
var _modal = require('antd/es/modal');
|
|
12
8
|
|
|
13
9
|
var _modal2 = _interopRequireDefault(_modal);
|
|
14
10
|
|
|
11
|
+
var _input = require('antd/es/input');
|
|
12
|
+
|
|
13
|
+
var _input2 = _interopRequireDefault(_input);
|
|
14
|
+
|
|
15
15
|
var _drawer = require('antd/es/drawer');
|
|
16
16
|
|
|
17
17
|
var _drawer2 = _interopRequireDefault(_drawer);
|
|
@@ -90,10 +90,10 @@ var _inherits3 = _interopRequireDefault(_inherits2);
|
|
|
90
90
|
|
|
91
91
|
var _class, _class2, _temp;
|
|
92
92
|
|
|
93
|
-
require('antd/es/input/style');
|
|
94
|
-
|
|
95
93
|
require('antd/es/modal/style');
|
|
96
94
|
|
|
95
|
+
require('antd/es/input/style');
|
|
96
|
+
|
|
97
97
|
require('antd/es/drawer/style');
|
|
98
98
|
|
|
99
99
|
require('antd/es/table/style');
|
|
@@ -268,7 +268,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
268
268
|
storageValue: '0.00',
|
|
269
269
|
czkValue: null,
|
|
270
270
|
isInputMember: false,
|
|
271
|
-
selectedRowIndex: 0
|
|
271
|
+
selectedRowIndex: 0,
|
|
272
|
+
isNotAutoFocus: true
|
|
272
273
|
// 复核结算方式快捷键列表
|
|
273
274
|
};
|
|
274
275
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
|
@@ -382,7 +383,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
382
383
|
var count = _this2.handleShowPrototype();
|
|
383
384
|
if (!isReturn && isAutoShowCouponWhenCash && count > 0) {
|
|
384
385
|
_this2.setState({
|
|
385
|
-
prototypeVisible: true
|
|
386
|
+
prototypeVisible: true,
|
|
387
|
+
isNotAutoFocus: false
|
|
386
388
|
});
|
|
387
389
|
} else {
|
|
388
390
|
_this2.payQuick();
|
|
@@ -504,7 +506,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
504
506
|
var count = _this2.handleShowPrototype();
|
|
505
507
|
if (!isReturn && isAutoShowCouponWhenCash && count > 0) {
|
|
506
508
|
_this2.setState({
|
|
507
|
-
prototypeVisible: true
|
|
509
|
+
prototypeVisible: true,
|
|
510
|
+
isNotAutoFocus: false
|
|
508
511
|
});
|
|
509
512
|
} else {
|
|
510
513
|
_this2.payFun();
|
|
@@ -1314,7 +1317,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1314
1317
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
|
1315
1318
|
PayStyle = _enumController$getEn12.PayStyle;
|
|
1316
1319
|
|
|
1317
|
-
|
|
1320
|
+
var storeType = _this2.props.type;
|
|
1321
|
+
|
|
1322
|
+
if (storeType != 1 && boriginReturn && (type == PayStyle.hyczk || type == PayStyle.djq || type == PayStyle.jfdx)) {
|
|
1318
1323
|
_message2.default.info('原单退货时,该结算方式不可以删除。');
|
|
1319
1324
|
} else {
|
|
1320
1325
|
_this2.store.delPay(index, bookType);
|
|
@@ -2551,6 +2556,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2551
2556
|
null,
|
|
2552
2557
|
_react2.default.createElement(_numkeyboardPassword2.default, {
|
|
2553
2558
|
className: 'content',
|
|
2559
|
+
placement: 'rightBottom',
|
|
2554
2560
|
newType: 'positive',
|
|
2555
2561
|
bordered: true,
|
|
2556
2562
|
placeholder: '\u8BF7\u8F93\u51656\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
@@ -2999,6 +3005,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2999
3005
|
id: 'paymentAmount',
|
|
3000
3006
|
className: 'content',
|
|
3001
3007
|
type: 'text',
|
|
3008
|
+
bordered: true,
|
|
3009
|
+
placement: 'rightBottom',
|
|
3002
3010
|
placeholder: '\u8BF7\u8F93\u5165\u4ED8\u6B3E\u91D1\u989D',
|
|
3003
3011
|
disabled: paymode.value < 0,
|
|
3004
3012
|
defaultValue: that.getXianjinPayment(paymode.paymentType, paymode.value),
|
|
@@ -3070,6 +3078,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3070
3078
|
_react2.default.createElement(_numKeyboardScan2.default, {
|
|
3071
3079
|
className: 'content ',
|
|
3072
3080
|
type: 'text',
|
|
3081
|
+
bordered: true,
|
|
3073
3082
|
placeholder: '\u626B\u63CF\u6216\u8F93\u5165\u4ED8\u6B3E\u7801',
|
|
3074
3083
|
ref: function ref(input) {
|
|
3075
3084
|
return that['inputS' + paymode.paymethodId] = input;
|
|
@@ -3298,6 +3307,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3298
3307
|
_this2.handleShowPrototype();
|
|
3299
3308
|
_this2.setState({
|
|
3300
3309
|
prototypeVisible: true,
|
|
3310
|
+
isNotAutoFocus: true,
|
|
3301
3311
|
isPrototypeClick: true
|
|
3302
3312
|
});
|
|
3303
3313
|
};
|
|
@@ -3471,11 +3481,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3471
3481
|
//jfdx
|
|
3472
3482
|
|
|
3473
3483
|
|
|
3474
|
-
/**
|
|
3475
|
-
*
|
|
3476
|
-
* @param {*} thePaymodes 支付方式列表
|
|
3477
|
-
* @param {*} currenIndex 当前支付方式下标
|
|
3478
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3484
|
+
/**
|
|
3485
|
+
*
|
|
3486
|
+
* @param {*} thePaymodes 支付方式列表
|
|
3487
|
+
* @param {*} currenIndex 当前支付方式下标
|
|
3488
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3479
3489
|
*/
|
|
3480
3490
|
|
|
3481
3491
|
// 处理客显显示功能
|
|
@@ -3671,7 +3681,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3671
3681
|
storageValue = _state2.storageValue,
|
|
3672
3682
|
czkValue = _state2.czkValue,
|
|
3673
3683
|
newPassConfirm = _state2.newPassConfirm,
|
|
3674
|
-
newPass = _state2.newPass
|
|
3684
|
+
newPass = _state2.newPass,
|
|
3685
|
+
isNotAutoFocus = _state2.isNotAutoFocus;
|
|
3675
3686
|
|
|
3676
3687
|
var _ref32 = _mutantsUtil.platform || {},
|
|
3677
3688
|
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
|
@@ -3917,10 +3928,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3917
3928
|
var iconclass = PayIcon2[p.paymentType] ? 'color' + p.paymentType : "primary-color";
|
|
3918
3929
|
return _react2.default.createElement(
|
|
3919
3930
|
_button2.default,
|
|
3920
|
-
{
|
|
3931
|
+
{
|
|
3932
|
+
className: (0, _classnames4.default)({ "quick": true, "quick2": type == 1 }),
|
|
3933
|
+
key: 'paymentType_' + p.paymentType,
|
|
3934
|
+
onClick: function onClick() {
|
|
3921
3935
|
_this8.btnDebounced(p.paymentType, true);
|
|
3922
3936
|
},
|
|
3923
|
-
disabled: productsIsEmpty || type != 1 && _this8.checkModeDisabled(p.paymentType, (_this8.context.viewModel.data.TotalTaxAmount || 0 - _this8.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn)
|
|
3937
|
+
disabled: productsIsEmpty || type != 1 && _this8.checkModeDisabled(p.paymentType, (_this8.context.viewModel.data.TotalTaxAmount || 0 - _this8.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn)
|
|
3938
|
+
},
|
|
3924
3939
|
_react2.default.createElement(
|
|
3925
3940
|
'div',
|
|
3926
3941
|
{ className: (0, _classnames4.default)((_classnames2 = {}, (0, _defineProperty3.default)(_classnames2, iconclass, true), (0, _defineProperty3.default)(_classnames2, "icon", true), _classnames2)) },
|
|
@@ -3941,22 +3956,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3941
3956
|
this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : settle.name
|
|
3942
3957
|
)
|
|
3943
3958
|
),
|
|
3944
|
-
|
|
3959
|
+
!newStyle && _react2.default.createElement(
|
|
3945
3960
|
_drawer2.default,
|
|
3946
3961
|
{
|
|
3947
3962
|
title: '\u590D\u5408\u7ED3\u7B97',
|
|
3948
3963
|
width: '600px',
|
|
3949
3964
|
placement: 'right',
|
|
3950
|
-
maskClosable:
|
|
3965
|
+
maskClosable: true,
|
|
3951
3966
|
closable: false,
|
|
3952
3967
|
onClose: this.handleCancel,
|
|
3953
3968
|
visible: this.state.visible,
|
|
3954
3969
|
destroyOnClose: true,
|
|
3955
|
-
className: 'settlement-wraper'
|
|
3970
|
+
className: 'settlement-wraper',
|
|
3971
|
+
style: { 'zIndex': 1006 }
|
|
3956
3972
|
},
|
|
3957
3973
|
_react2.default.createElement(
|
|
3958
3974
|
'div',
|
|
3959
|
-
{ className: 'settlement ' + _index.hotKey.hotKeyBindClass('5') },
|
|
3975
|
+
{ className: 'settlement ' + _index.hotKey.hotKeyBindClass('5'), style: { height: '100%', paddingBottom: '68px' } },
|
|
3960
3976
|
_react2.default.createElement(
|
|
3961
3977
|
'div',
|
|
3962
3978
|
{ className: (0, _classnames4.default)({ "toolbar bg-subsidiary-gray-color4": true, "carousel": paymodes.length > carouselStart }) },
|
|
@@ -3971,7 +3987,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3971
3987
|
),
|
|
3972
3988
|
_react2.default.createElement(
|
|
3973
3989
|
'div',
|
|
3974
|
-
{ className: 'paydetail', style: { maxHeight: document.body.clientHeight - (paymodes.length > 6 ? 275 : 200) + 'px' } },
|
|
3990
|
+
{ className: 'paydetail', style: { maxHeight: document.body.clientHeight - (paymodes.length > 6 ? 275 : 200) + 'px', height: 'calc(100% - 198px)' } },
|
|
3975
3991
|
_react2.default.createElement(
|
|
3976
3992
|
'div',
|
|
3977
3993
|
{ className: 'left' },
|
|
@@ -4001,7 +4017,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4001
4017
|
mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
|
|
4002
4018
|
className: _index.hotKey.hotKeyNotFilter(),
|
|
4003
4019
|
onClick: function onClick() {
|
|
4004
|
-
_this8.editModal(index, mode.paymentType, boriginReturn);
|
|
4020
|
+
_this8.editModal(index, mode.paymentType, type != 1 ? boriginReturn : null);
|
|
4005
4021
|
}, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
|
|
4006
4022
|
className: _index.hotKey.hotKeyNotFilter(),
|
|
4007
4023
|
value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
|
|
@@ -4065,7 +4081,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4065
4081
|
(0, _utils.getFixedNumber)(mode.balance)
|
|
4066
4082
|
),
|
|
4067
4083
|
_react2.default.createElement('br', null),
|
|
4068
|
-
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
|
|
4084
|
+
type != 1 && themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
|
|
4069
4085
|
_button2.default,
|
|
4070
4086
|
{ onClick: function onClick() {
|
|
4071
4087
|
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
@@ -4159,7 +4175,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4159
4175
|
),
|
|
4160
4176
|
_react2.default.createElement(
|
|
4161
4177
|
'div',
|
|
4162
|
-
{ className: 'receivable', style: { display: (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
|
4178
|
+
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
|
4163
4179
|
_react2.default.createElement(
|
|
4164
4180
|
'span',
|
|
4165
4181
|
null,
|
|
@@ -4172,7 +4188,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4172
4188
|
)
|
|
4173
4189
|
)
|
|
4174
4190
|
),
|
|
4175
|
-
!isReturn && _react2.default.createElement(
|
|
4191
|
+
type != 1 && !isReturn && _react2.default.createElement(
|
|
4176
4192
|
'div',
|
|
4177
4193
|
{ onClick: this.prototypeDetailedClick, className: 'prototypeDetailed primary-color' },
|
|
4178
4194
|
'\u4F18\u60E0\u660E\u7EC6',
|
|
@@ -4211,18 +4227,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4211
4227
|
)
|
|
4212
4228
|
)
|
|
4213
4229
|
),
|
|
4214
|
-
|
|
4230
|
+
newStyle && _react2.default.createElement(
|
|
4215
4231
|
_drawer2.default,
|
|
4216
4232
|
{
|
|
4217
4233
|
title: '\u590D\u5408\u7ED3\u7B97',
|
|
4218
4234
|
width: '600px',
|
|
4219
4235
|
placement: 'right',
|
|
4220
|
-
maskClosable:
|
|
4236
|
+
maskClosable: true,
|
|
4221
4237
|
closable: false,
|
|
4222
4238
|
onClose: this.handleCancel,
|
|
4223
4239
|
visible: this.state.visible,
|
|
4224
4240
|
destroyOnClose: true,
|
|
4225
|
-
className: 'settlement-wraper'
|
|
4241
|
+
className: 'settlement-wraper',
|
|
4242
|
+
style: { 'zIndex': 1006 }
|
|
4226
4243
|
},
|
|
4227
4244
|
_react2.default.createElement(
|
|
4228
4245
|
'div',
|
|
@@ -4308,7 +4325,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4308
4325
|
),
|
|
4309
4326
|
_react2.default.createElement(
|
|
4310
4327
|
'div',
|
|
4311
|
-
{ className: 'receivable', style: { display: (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
|
4328
|
+
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
|
4312
4329
|
_react2.default.createElement(
|
|
4313
4330
|
'span',
|
|
4314
4331
|
null,
|
|
@@ -4321,7 +4338,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4321
4338
|
)
|
|
4322
4339
|
)
|
|
4323
4340
|
),
|
|
4324
|
-
!isReturn && _react2.default.createElement(
|
|
4341
|
+
type != 1 && !isReturn && _react2.default.createElement(
|
|
4325
4342
|
'div',
|
|
4326
4343
|
{ onClick: this.prototypeDetailedClick, className: 'prototypeDetailed primary-color' },
|
|
4327
4344
|
'\u4F18\u60E0\u660E\u7EC6',
|
|
@@ -4343,12 +4360,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4343
4360
|
return m.paymentType === PayStyle.smzf;
|
|
4344
4361
|
});
|
|
4345
4362
|
//同时存在微信、支付宝(或者收钱吧)、扫码支付三种方式,在非退货模式下,隐藏微信、支付宝。
|
|
4346
|
-
var hotkeyIndex =
|
|
4363
|
+
var hotkeyIndex = mindex;
|
|
4347
4364
|
if (!isReturn && hasSMZF) {
|
|
4348
4365
|
if (mode.paymentType == PayStyle.wx || mode.paymentType == PayStyle.zfb) {
|
|
4349
4366
|
return null;
|
|
4350
4367
|
} else {
|
|
4351
|
-
var theArr = (0, _filter3.default)(
|
|
4368
|
+
var theArr = (0, _filter3.default)(thePaymodes, function (t) {
|
|
4352
4369
|
return t.paymentType != PayStyle.wx && t.paymentType != PayStyle.zfb;
|
|
4353
4370
|
});
|
|
4354
4371
|
hotkeyIndex = (0, _findIndex3.default)(theArr, function (m) {
|
|
@@ -4356,6 +4373,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4356
4373
|
});
|
|
4357
4374
|
}
|
|
4358
4375
|
}
|
|
4376
|
+
var hyczkFindIndex = (0, _findIndex3.default)(thePaymodes, function (m) {
|
|
4377
|
+
return m.paymentType == PayStyle.hyczk;
|
|
4378
|
+
});
|
|
4379
|
+
var hyczkList = (0, _filter3.default)(thePaymodes, function (m) {
|
|
4380
|
+
return m.paymentType == PayStyle.hyczk;
|
|
4381
|
+
});
|
|
4382
|
+
var lastStorageCardIndex = 0;
|
|
4383
|
+
(0, _map3.default)(thePaymodes, function (m, i) {
|
|
4384
|
+
if (m.paymentType === PayStyle.hyczk) lastStorageCardIndex = i;
|
|
4385
|
+
});
|
|
4386
|
+
if (mindex > 0 && hyczkList.length > 1 && mindex > lastStorageCardIndex) {
|
|
4387
|
+
hotkeyIndex = hotkeyIndex - hyczkList.length + 1;
|
|
4388
|
+
}
|
|
4389
|
+
|
|
4390
|
+
console.log(thePaymodes);
|
|
4391
|
+
|
|
4359
4392
|
var index = mode.paymethodId;
|
|
4360
4393
|
return mode.paymentType == PayStyle.hyczk && (0, _findIndex3.default)(thePaymodes, function (m) {
|
|
4361
4394
|
return m.paymentType == PayStyle.hyczk;
|
|
@@ -4392,16 +4425,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4392
4425
|
className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
|
|
4393
4426
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
|
|
4394
4427
|
onClick: function onClick() {
|
|
4395
|
-
|
|
4396
|
-
// if (mode.paymentType === PayStyle.hyczk) {
|
|
4397
|
-
// const { isProhibitMeStorageCard } = this.props;
|
|
4398
|
-
// if (isProhibitMeStorageCard) {
|
|
4399
|
-
// Message.warn('储值卡不可键盘录入,请刷卡!');
|
|
4400
|
-
// return;
|
|
4401
|
-
// }
|
|
4402
|
-
// }
|
|
4403
|
-
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
4404
|
-
if (mode.paymentType == PayStyle.hyczk) {
|
|
4428
|
+
if (type != 1 && mode.paymentType == PayStyle.hyczk) {
|
|
4405
4429
|
if (themodeHyczk && themodeHyczk.length === 0) {
|
|
4406
4430
|
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4407
4431
|
}
|
|
@@ -4457,10 +4481,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4457
4481
|
null,
|
|
4458
4482
|
'\u5361\u53F7\uFF1A'
|
|
4459
4483
|
),
|
|
4460
|
-
_react2.default.createElement(
|
|
4484
|
+
type != 1 ? _react2.default.createElement(
|
|
4461
4485
|
'span',
|
|
4462
4486
|
null,
|
|
4463
4487
|
m && m.storageCardNo
|
|
4488
|
+
) : _react2.default.createElement(
|
|
4489
|
+
'span',
|
|
4490
|
+
null,
|
|
4491
|
+
m.member && m.member.cardNo
|
|
4464
4492
|
),
|
|
4465
4493
|
_react2.default.createElement(
|
|
4466
4494
|
'span',
|
|
@@ -4473,7 +4501,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4473
4501
|
'\u652F\u4ED8\u91D1\u989D\uFF1A'
|
|
4474
4502
|
),
|
|
4475
4503
|
_react2.default.createElement('br', null),
|
|
4476
|
-
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
|
|
4504
|
+
type != 1 && themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
|
|
4477
4505
|
_button2.default,
|
|
4478
4506
|
{ onClick: function onClick() {
|
|
4479
4507
|
return _this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
@@ -4517,504 +4545,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4517
4545
|
)
|
|
4518
4546
|
)
|
|
4519
4547
|
),
|
|
4520
|
-
type == 1 && !newStyle && _react2.default.createElement(
|
|
4521
|
-
_modal2.default,
|
|
4522
|
-
{
|
|
4523
|
-
wrapClassName: 'settlement-wraper2',
|
|
4524
|
-
width: '600px',
|
|
4525
|
-
visible: this.state.visible,
|
|
4526
|
-
maskClosable: false,
|
|
4527
|
-
title: "复合结算",
|
|
4528
|
-
footer: null,
|
|
4529
|
-
maskStyle: { 'z-index': '1004' },
|
|
4530
|
-
onCancel: this.handleCancel,
|
|
4531
|
-
destroyOnClose: true
|
|
4532
|
-
},
|
|
4533
|
-
_react2.default.createElement(
|
|
4534
|
-
'div',
|
|
4535
|
-
{ className: 'settlement ' + _index.hotKey.hotKeyBindClass('5') },
|
|
4536
|
-
_react2.default.createElement(
|
|
4537
|
-
'div',
|
|
4538
|
-
{ className: 'settlementTop' },
|
|
4539
|
-
_react2.default.createElement(
|
|
4540
|
-
'div',
|
|
4541
|
-
{ className: (0, _classnames4.default)({ "toolbar": true, "toolbar2": type == 1, "carousel": paymodes.length > carouselStart2 }) },
|
|
4542
|
-
paymodes.length <= carouselStart2 && _react2.default.createElement(
|
|
4543
|
-
'div',
|
|
4544
|
-
null,
|
|
4545
|
-
(0, _map3.default)(paymodes, function (mode, index) {
|
|
4546
|
-
return _this8.renderToolbtn(mode, index);
|
|
4547
|
-
})
|
|
4548
|
-
),
|
|
4549
|
-
paymodes.length > carouselStart2 && this.paymodesCarouselList(params, paymodes, carouselStart2)
|
|
4550
|
-
),
|
|
4551
|
-
_react2.default.createElement(
|
|
4552
|
-
'div',
|
|
4553
|
-
{ className: 'rightheader' },
|
|
4554
|
-
paymode.onlineamount > 0 && _react2.default.createElement(
|
|
4555
|
-
'div',
|
|
4556
|
-
{ className: 'receivable' },
|
|
4557
|
-
_react2.default.createElement(
|
|
4558
|
-
'span',
|
|
4559
|
-
null,
|
|
4560
|
-
'\u7EBF\u4E0A\u5DF2\u6536'
|
|
4561
|
-
),
|
|
4562
|
-
_react2.default.createElement(
|
|
4563
|
-
'span',
|
|
4564
|
-
null,
|
|
4565
|
-
paymode.onlineamount
|
|
4566
|
-
)
|
|
4567
|
-
),
|
|
4568
|
-
_react2.default.createElement(
|
|
4569
|
-
'div',
|
|
4570
|
-
{ className: 'receivable' },
|
|
4571
|
-
_react2.default.createElement(
|
|
4572
|
-
'span',
|
|
4573
|
-
null,
|
|
4574
|
-
'\u5E94\u6536\u91D1\u989D'
|
|
4575
|
-
),
|
|
4576
|
-
_react2.default.createElement(
|
|
4577
|
-
'span',
|
|
4578
|
-
null,
|
|
4579
|
-
paymode.amount
|
|
4580
|
-
)
|
|
4581
|
-
),
|
|
4582
|
-
_react2.default.createElement(
|
|
4583
|
-
'div',
|
|
4584
|
-
{ className: 'receivable' },
|
|
4585
|
-
_react2.default.createElement(
|
|
4586
|
-
'span',
|
|
4587
|
-
null,
|
|
4588
|
-
'\u5269\u4F59\u5E94\u6536'
|
|
4589
|
-
),
|
|
4590
|
-
_react2.default.createElement(
|
|
4591
|
-
'span',
|
|
4592
|
-
null,
|
|
4593
|
-
paymode.receivable
|
|
4594
|
-
)
|
|
4595
|
-
),
|
|
4596
|
-
_react2.default.createElement(
|
|
4597
|
-
'div',
|
|
4598
|
-
{ className: 'receivable' },
|
|
4599
|
-
_react2.default.createElement(
|
|
4600
|
-
'span',
|
|
4601
|
-
null,
|
|
4602
|
-
'\u5B9E\u6536\u91D1\u989D'
|
|
4603
|
-
),
|
|
4604
|
-
_react2.default.createElement(
|
|
4605
|
-
'span',
|
|
4606
|
-
{ className: 'received' },
|
|
4607
|
-
paymode.received
|
|
4608
|
-
)
|
|
4609
|
-
),
|
|
4610
|
-
_react2.default.createElement(
|
|
4611
|
-
'div',
|
|
4612
|
-
{ className: 'receivable', style: { display: this.checkCharge() ? 'block' : 'none' } },
|
|
4613
|
-
_react2.default.createElement(
|
|
4614
|
-
'span',
|
|
4615
|
-
null,
|
|
4616
|
-
'\u627E\u96F6\u91D1\u989D'
|
|
4617
|
-
),
|
|
4618
|
-
_react2.default.createElement(
|
|
4619
|
-
'span',
|
|
4620
|
-
{ className: 'received' },
|
|
4621
|
-
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
|
4622
|
-
)
|
|
4623
|
-
)
|
|
4624
|
-
)
|
|
4625
|
-
),
|
|
4626
|
-
_react2.default.createElement(
|
|
4627
|
-
'div',
|
|
4628
|
-
{ className: 'paydetail' },
|
|
4629
|
-
_react2.default.createElement(
|
|
4630
|
-
'div',
|
|
4631
|
-
{ className: 'left' },
|
|
4632
|
-
thePaymodes.length == 0 && _react2.default.createElement(
|
|
4633
|
-
'div',
|
|
4634
|
-
{ className: 'emptydata detailempty2' },
|
|
4635
|
-
'\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
|
|
4636
|
-
),
|
|
4637
|
-
|
|
4638
|
-
// _map(_sortBy(thePaymodes, pay => pay['order'] || 0), (mode) => {
|
|
4639
|
-
(0, _map3.default)(thePaymodes, function (mode) {
|
|
4640
|
-
var index = mode.paymethodId;
|
|
4641
|
-
return _react2.default.createElement(
|
|
4642
|
-
'div',
|
|
4643
|
-
{ key: index + '', className: 'modeItem' },
|
|
4644
|
-
_react2.default.createElement(
|
|
4645
|
-
'div',
|
|
4646
|
-
{ className: 'main b-theme-color ' + (currentIndex == index && 'settlement-pay-item-border') },
|
|
4647
|
-
_react2.default.createElement(
|
|
4648
|
-
'div',
|
|
4649
|
-
{ className: (0, _classnames4.default)({ "name": true }) },
|
|
4650
|
-
mode.name
|
|
4651
|
-
),
|
|
4652
|
-
_react2.default.createElement(
|
|
4653
|
-
'div',
|
|
4654
|
-
{ className: (0, _classnames4.default)({ "content": true }) },
|
|
4655
|
-
mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
|
|
4656
|
-
onClick: function onClick() {
|
|
4657
|
-
_this8.editModal(index, mode.paymentType);
|
|
4658
|
-
}, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
|
|
4659
|
-
value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
|
|
4660
|
-
onBlur: function onBlur(e) {
|
|
4661
|
-
return _this8.onBlur(index, e);
|
|
4662
|
-
},
|
|
4663
|
-
onChange: function onChange(e) {
|
|
4664
|
-
return _this8.handleChange(index, e);
|
|
4665
|
-
},
|
|
4666
|
-
onFocus: function onFocus(e) {
|
|
4667
|
-
return _this8.onFocusHack(index, mode, paymode, e);
|
|
4668
|
-
}
|
|
4669
|
-
})
|
|
4670
|
-
),
|
|
4671
|
-
_react2.default.createElement(
|
|
4672
|
-
'div',
|
|
4673
|
-
{ className: 'minus', onClick: function onClick() {
|
|
4674
|
-
_this8.onDelPay(index);
|
|
4675
|
-
} },
|
|
4676
|
-
_react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
|
|
4677
|
-
)
|
|
4678
|
-
),
|
|
4679
|
-
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
4680
|
-
'div',
|
|
4681
|
-
{ className: 'append', style: { display: mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.djq ? 'block' : 'none' } },
|
|
4682
|
-
_react2.default.createElement(
|
|
4683
|
-
'span',
|
|
4684
|
-
{ className: 'balance' },
|
|
4685
|
-
'\u6EA2\u6536\u91D1\u989D\uFF1A'
|
|
4686
|
-
),
|
|
4687
|
-
_react2.default.createElement(
|
|
4688
|
-
'span',
|
|
4689
|
-
null,
|
|
4690
|
-
mode.overchargesAmount
|
|
4691
|
-
)
|
|
4692
|
-
) : _react2.default.createElement(
|
|
4693
|
-
'div',
|
|
4694
|
-
{ className: 'append', style: { display: mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.djq ? 'block' : 'none' } },
|
|
4695
|
-
_react2.default.createElement(
|
|
4696
|
-
'span',
|
|
4697
|
-
{ className: 'fl' },
|
|
4698
|
-
'\u5361\u53F7\uFF1A'
|
|
4699
|
-
),
|
|
4700
|
-
_react2.default.createElement(
|
|
4701
|
-
'span',
|
|
4702
|
-
{ className: 'fl' },
|
|
4703
|
-
mode && mode.storageCardNo
|
|
4704
|
-
),
|
|
4705
|
-
_react2.default.createElement('br', null),
|
|
4706
|
-
_react2.default.createElement(
|
|
4707
|
-
'span',
|
|
4708
|
-
{ className: 'balance fl' },
|
|
4709
|
-
'\u4F59\u989D\uFF1A'
|
|
4710
|
-
),
|
|
4711
|
-
_react2.default.createElement(
|
|
4712
|
-
'span',
|
|
4713
|
-
{ className: 'fl' },
|
|
4714
|
-
(0, _utils.getFixedNumber)(mode.balance)
|
|
4715
|
-
)
|
|
4716
|
-
)
|
|
4717
|
-
);
|
|
4718
|
-
})
|
|
4719
|
-
),
|
|
4720
|
-
_react2.default.createElement(
|
|
4721
|
-
'div',
|
|
4722
|
-
{ className: 'right' },
|
|
4723
|
-
_react2.default.createElement(
|
|
4724
|
-
'div',
|
|
4725
|
-
{ className: this.isHorizontalPad ? 'keyboard_ios' : 'keyboard' },
|
|
4726
|
-
!this.isHorizontalPad && _react2.default.createElement(_keyboard2.default, { type: 'number', onChange: this.onKeyboardChange.bind(this) })
|
|
4727
|
-
)
|
|
4728
|
-
)
|
|
4729
|
-
),
|
|
4730
|
-
_react2.default.createElement(
|
|
4731
|
-
'div',
|
|
4732
|
-
{ className: 'payfooter2' },
|
|
4733
|
-
_react2.default.createElement('span', { className: 'hotKeyEnter', onClick: this.onHotKeyEnter }),
|
|
4734
|
-
_react2.default.createElement(
|
|
4735
|
-
'span',
|
|
4736
|
-
null,
|
|
4737
|
-
_react2.default.createElement(
|
|
4738
|
-
_button2.default,
|
|
4739
|
-
{ className: 'cancel', onClick: this.handleCancel },
|
|
4740
|
-
'\u53D6\u6D88'
|
|
4741
|
-
)
|
|
4742
|
-
),
|
|
4743
|
-
_react2.default.createElement(
|
|
4744
|
-
'span',
|
|
4745
|
-
null,
|
|
4746
|
-
_react2.default.createElement(
|
|
4747
|
-
_button2.default,
|
|
4748
|
-
{ type: 'primary', className: 'settle', onClick: this.handleSettle,
|
|
4749
|
-
disabled: this.checkSettleDisabled(paymode, thePaymodes) },
|
|
4750
|
-
'\u7ED3\u7B97'
|
|
4751
|
-
)
|
|
4752
|
-
)
|
|
4753
|
-
)
|
|
4754
|
-
)
|
|
4755
|
-
),
|
|
4756
|
-
type == 1 && newStyle && _react2.default.createElement(
|
|
4757
|
-
_modal2.default,
|
|
4758
|
-
{
|
|
4759
|
-
wrapClassName: 'settlement-wraper2',
|
|
4760
|
-
width: '600px',
|
|
4761
|
-
visible: this.state.visible,
|
|
4762
|
-
maskClosable: false,
|
|
4763
|
-
title: "复合结算",
|
|
4764
|
-
footer: null,
|
|
4765
|
-
backdropStyle: { 'z-index': '1004' },
|
|
4766
|
-
onCancel: this.handleCancel,
|
|
4767
|
-
destroyOnClose: true
|
|
4768
|
-
},
|
|
4769
|
-
_react2.default.createElement(
|
|
4770
|
-
'div',
|
|
4771
|
-
{ className: 'settlement ' + _index.hotKey.hotKeyBindClass('5') },
|
|
4772
|
-
_react2.default.createElement(
|
|
4773
|
-
'div',
|
|
4774
|
-
{ className: 'paydetail newstyle newstyle2' },
|
|
4775
|
-
_react2.default.createElement(
|
|
4776
|
-
'div',
|
|
4777
|
-
{ className: 'top' },
|
|
4778
|
-
_react2.default.createElement(
|
|
4779
|
-
'div',
|
|
4780
|
-
{ className: 'righttop' },
|
|
4781
|
-
paymode.onlineamount > 0 && _react2.default.createElement(
|
|
4782
|
-
'div',
|
|
4783
|
-
{ className: 'receivable' },
|
|
4784
|
-
_react2.default.createElement(
|
|
4785
|
-
'span',
|
|
4786
|
-
null,
|
|
4787
|
-
'\u7EBF\u4E0A\u5DF2\u6536'
|
|
4788
|
-
),
|
|
4789
|
-
_react2.default.createElement(
|
|
4790
|
-
'span',
|
|
4791
|
-
null,
|
|
4792
|
-
paymode.onlineamount
|
|
4793
|
-
)
|
|
4794
|
-
),
|
|
4795
|
-
_react2.default.createElement(
|
|
4796
|
-
'div',
|
|
4797
|
-
{ className: 'receivable' },
|
|
4798
|
-
_react2.default.createElement(
|
|
4799
|
-
'span',
|
|
4800
|
-
null,
|
|
4801
|
-
'\u5E94\u6536\u91D1\u989D'
|
|
4802
|
-
),
|
|
4803
|
-
_react2.default.createElement(
|
|
4804
|
-
'span',
|
|
4805
|
-
null,
|
|
4806
|
-
paymode.amount
|
|
4807
|
-
)
|
|
4808
|
-
),
|
|
4809
|
-
_react2.default.createElement(
|
|
4810
|
-
'div',
|
|
4811
|
-
{ className: 'receivable' },
|
|
4812
|
-
_react2.default.createElement(
|
|
4813
|
-
'span',
|
|
4814
|
-
null,
|
|
4815
|
-
'\u5269\u4F59\u5E94\u6536'
|
|
4816
|
-
),
|
|
4817
|
-
_react2.default.createElement(
|
|
4818
|
-
'span',
|
|
4819
|
-
null,
|
|
4820
|
-
paymode.receivable
|
|
4821
|
-
)
|
|
4822
|
-
),
|
|
4823
|
-
_react2.default.createElement(
|
|
4824
|
-
'div',
|
|
4825
|
-
{ className: 'receivable' },
|
|
4826
|
-
_react2.default.createElement(
|
|
4827
|
-
'span',
|
|
4828
|
-
null,
|
|
4829
|
-
'\u5B9E\u6536\u91D1\u989D'
|
|
4830
|
-
),
|
|
4831
|
-
_react2.default.createElement(
|
|
4832
|
-
'span',
|
|
4833
|
-
{ className: 'received' },
|
|
4834
|
-
paymode.received
|
|
4835
|
-
)
|
|
4836
|
-
),
|
|
4837
|
-
_react2.default.createElement(
|
|
4838
|
-
'div',
|
|
4839
|
-
{ className: 'receivable', style: { display: this.checkCharge() ? 'block' : 'none' } },
|
|
4840
|
-
_react2.default.createElement(
|
|
4841
|
-
'span',
|
|
4842
|
-
null,
|
|
4843
|
-
'\u627E\u96F6\u91D1\u989D'
|
|
4844
|
-
),
|
|
4845
|
-
_react2.default.createElement(
|
|
4846
|
-
'span',
|
|
4847
|
-
{ className: 'received' },
|
|
4848
|
-
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
|
4849
|
-
)
|
|
4850
|
-
)
|
|
4851
|
-
)
|
|
4852
|
-
),
|
|
4853
|
-
_react2.default.createElement(
|
|
4854
|
-
'div',
|
|
4855
|
-
{ className: 'bottom' },
|
|
4856
|
-
thePaymodes.length == 0 && _react2.default.createElement(
|
|
4857
|
-
'div',
|
|
4858
|
-
{ className: 'emptydata detailempty' },
|
|
4859
|
-
'\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
|
|
4860
|
-
),
|
|
4861
|
-
|
|
4862
|
-
// _map(_sortBy(thePaymodes, pay => pay['order'] || 0), (mode) => {
|
|
4863
|
-
(0, _map3.default)(thePaymodes, function (mode, mindex) {
|
|
4864
|
-
var isReturn = _this8.props.isReturn;
|
|
4865
|
-
|
|
4866
|
-
var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
|
|
4867
|
-
return m.paymentType === PayStyle.smzf;
|
|
4868
|
-
});
|
|
4869
|
-
var hotkeyIndex = mindex;
|
|
4870
|
-
//同时存在微信、支付宝、扫码支付三种方式,在非退货模式下,隐藏微信、支付宝。
|
|
4871
|
-
if (!isReturn && hasSMZF) {
|
|
4872
|
-
if (mode.paymentType == PayStyle.wx || mode.paymentType == PayStyle.zfb) {
|
|
4873
|
-
return null;
|
|
4874
|
-
} else {
|
|
4875
|
-
var theArr = (0, _filter3.default)(thePaymodes, function (t) {
|
|
4876
|
-
return t.paymentType != PayStyle.wx && t.paymentType != PayStyle.zfb;
|
|
4877
|
-
});
|
|
4878
|
-
hotkeyIndex = (0, _findIndex3.default)(theArr, function (m) {
|
|
4879
|
-
return m.paymentType == mode.paymentType;
|
|
4880
|
-
});
|
|
4881
|
-
}
|
|
4882
|
-
}
|
|
4883
|
-
var index = mode.paymethodId;
|
|
4884
|
-
return mode.paymentType == PayStyle.hyczk && (0, _findIndex3.default)(thePaymodes, function (m) {
|
|
4885
|
-
return m.paymentType == PayStyle.hyczk;
|
|
4886
|
-
}) != mindex ? _react2.default.createElement('div', null) : _react2.default.createElement(
|
|
4887
|
-
'div',
|
|
4888
|
-
{ key: index + '', className: 'modeItem' },
|
|
4889
|
-
_react2.default.createElement(
|
|
4890
|
-
'div',
|
|
4891
|
-
{ className: (0, _classnames4.default)({ "main": true, "focusbottom": currentIndex == index }) },
|
|
4892
|
-
_react2.default.createElement(
|
|
4893
|
-
'div',
|
|
4894
|
-
{ className: (0, _classnames4.default)({ "name": true }) },
|
|
4895
|
-
_react2.default.createElement(
|
|
4896
|
-
'div',
|
|
4897
|
-
{ className: 'icon' },
|
|
4898
|
-
_react2.default.createElement(_ticon2.default, { type: PayIcon[mode.paymentType] || PayIcon['default'] })
|
|
4899
|
-
),
|
|
4900
|
-
_react2.default.createElement(
|
|
4901
|
-
'div',
|
|
4902
|
-
{ className: 'text' },
|
|
4903
|
-
mode.name
|
|
4904
|
-
),
|
|
4905
|
-
_react2.default.createElement(
|
|
4906
|
-
'div',
|
|
4907
|
-
{ className: 'hotkey' },
|
|
4908
|
-
_this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[mindex] || ""
|
|
4909
|
-
)
|
|
4910
|
-
),
|
|
4911
|
-
_react2.default.createElement(
|
|
4912
|
-
'div',
|
|
4913
|
-
{ className: (0, _classnames4.default)({ "content": true }) },
|
|
4914
|
-
mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index
|
|
4915
|
-
// className={classnames({'paymode':mode.paymentType == PayStyle.hyczk?(_findIndex(thePaymodes,(m)=>{return m.paymentType==PayStyle.hyczk;})==mindex?true:false):true})}
|
|
4916
|
-
, className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
|
|
4917
|
-
// className="paymode"
|
|
4918
|
-
, disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
|
|
4919
|
-
onClick: function onClick() {
|
|
4920
|
-
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
4921
|
-
},
|
|
4922
|
-
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
4923
|
-
return tm.paymentType == PayStyle.hyczk;
|
|
4924
|
-
}), function (sum, m) {
|
|
4925
|
-
return Math.Add(sum, m.value);
|
|
4926
|
-
}, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
|
|
4927
|
-
className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
|
|
4928
|
-
// className="paymode"
|
|
4929
|
-
, disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
|
|
4930
|
-
value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
|
|
4931
|
-
onClick: function onClick(e) {
|
|
4932
|
-
return _this8.onHotKeyClick2(index, mode, paymode, e);
|
|
4933
|
-
},
|
|
4934
|
-
onBlur: function onBlur(e) {
|
|
4935
|
-
return _this8.onBlur(index, e);
|
|
4936
|
-
},
|
|
4937
|
-
onFocus: function onFocus(e) {
|
|
4938
|
-
return _this8.onFocusHack(index, mode, paymode, e);
|
|
4939
|
-
},
|
|
4940
|
-
onChange: function onChange(e) {
|
|
4941
|
-
return _this8.handleChange(index, e);
|
|
4942
|
-
}
|
|
4943
|
-
})
|
|
4944
|
-
)
|
|
4945
|
-
),
|
|
4946
|
-
mode.paymentType == PayStyle.djq && _react2.default.createElement(
|
|
4947
|
-
'div',
|
|
4948
|
-
{ className: 'append' },
|
|
4949
|
-
_react2.default.createElement(
|
|
4950
|
-
'span',
|
|
4951
|
-
{ className: 'balance' },
|
|
4952
|
-
'\u6EA2\u6536\u91D1\u989D\uFF1A'
|
|
4953
|
-
),
|
|
4954
|
-
_react2.default.createElement(
|
|
4955
|
-
'span',
|
|
4956
|
-
null,
|
|
4957
|
-
mode.overchargesAmount
|
|
4958
|
-
)
|
|
4959
|
-
),
|
|
4960
|
-
(0, _map3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
4961
|
-
return mode.paymentType == PayStyle.hyczk && parseFloat(tm.value || 0) != 0 && tm.paymentType == PayStyle.hyczk;
|
|
4962
|
-
}), function (m) {
|
|
4963
|
-
return _react2.default.createElement(
|
|
4964
|
-
'div',
|
|
4965
|
-
{ className: 'append' },
|
|
4966
|
-
_react2.default.createElement(
|
|
4967
|
-
'span',
|
|
4968
|
-
null,
|
|
4969
|
-
'\u5361\u53F7\uFF1A'
|
|
4970
|
-
),
|
|
4971
|
-
_react2.default.createElement(
|
|
4972
|
-
'span',
|
|
4973
|
-
null,
|
|
4974
|
-
m.member && m.member.cardNo
|
|
4975
|
-
),
|
|
4976
|
-
_react2.default.createElement(
|
|
4977
|
-
'span',
|
|
4978
|
-
{ className: 'fr' },
|
|
4979
|
-
(0, _utils.getFixedNumber)(m.value)
|
|
4980
|
-
),
|
|
4981
|
-
_react2.default.createElement(
|
|
4982
|
-
'span',
|
|
4983
|
-
{ className: 'balance fr' },
|
|
4984
|
-
'\u652F\u4ED8\u91D1\u989D\uFF1A'
|
|
4985
|
-
)
|
|
4986
|
-
);
|
|
4987
|
-
})
|
|
4988
|
-
);
|
|
4989
|
-
})
|
|
4990
|
-
)
|
|
4991
|
-
),
|
|
4992
|
-
_react2.default.createElement(
|
|
4993
|
-
'div',
|
|
4994
|
-
{ className: 'payfooter2' },
|
|
4995
|
-
_react2.default.createElement('span', { className: 'hotKeyEnter', onClick: this.onHotKeyEnter }),
|
|
4996
|
-
_react2.default.createElement(
|
|
4997
|
-
'span',
|
|
4998
|
-
null,
|
|
4999
|
-
_react2.default.createElement(
|
|
5000
|
-
_button2.default,
|
|
5001
|
-
{ className: 'cancel', onClick: this.handleCancel },
|
|
5002
|
-
'\u53D6\u6D88'
|
|
5003
|
-
)
|
|
5004
|
-
),
|
|
5005
|
-
_react2.default.createElement(
|
|
5006
|
-
'span',
|
|
5007
|
-
null,
|
|
5008
|
-
_react2.default.createElement(
|
|
5009
|
-
_button2.default,
|
|
5010
|
-
{ type: 'primary', className: 'settle', onClick: this.handleSettle,
|
|
5011
|
-
disabled: this.checkSettleDisabled(paymode, thePaymodes) },
|
|
5012
|
-
'\u7ED3\u7B97'
|
|
5013
|
-
)
|
|
5014
|
-
)
|
|
5015
|
-
)
|
|
5016
|
-
)
|
|
5017
|
-
),
|
|
5018
4548
|
_react2.default.createElement(
|
|
5019
4549
|
_modal2.default,
|
|
5020
4550
|
{
|
|
@@ -5027,6 +4557,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5027
4557
|
onCancel: this.handleCzkCancel,
|
|
5028
4558
|
keyboard: false,
|
|
5029
4559
|
centered: !this.isHorizontalPad ? true : false,
|
|
4560
|
+
zIndex: 1007,
|
|
5030
4561
|
footer: _react2.default.createElement(
|
|
5031
4562
|
'div',
|
|
5032
4563
|
{ className: 'action' },
|
|
@@ -5304,6 +4835,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5304
4835
|
onCancel: this.handleMoreCzkCancel,
|
|
5305
4836
|
keyboard: false,
|
|
5306
4837
|
centered: !this.isHorizontalPad ? true : false,
|
|
4838
|
+
zIndex: 1007,
|
|
5307
4839
|
footer: _react2.default.createElement(
|
|
5308
4840
|
'div',
|
|
5309
4841
|
{ className: 'action' },
|
|
@@ -5345,7 +4877,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5345
4877
|
onCancel: this.handleSetPwdCancel,
|
|
5346
4878
|
keyboard: false,
|
|
5347
4879
|
centered: !this.isHorizontalPad ? true : false,
|
|
5348
|
-
title: '\u8BBE\u7F6E\u5BC6\u7801'
|
|
4880
|
+
title: '\u8BBE\u7F6E\u5BC6\u7801',
|
|
4881
|
+
zIndex: 1007
|
|
5349
4882
|
}, 'footer', _react2.default.createElement(
|
|
5350
4883
|
'div',
|
|
5351
4884
|
{ className: 'action' },
|
|
@@ -5441,6 +4974,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5441
4974
|
onCancel: this.handleDjqCancel,
|
|
5442
4975
|
centered: !this.isHorizontalPad ? true : false,
|
|
5443
4976
|
title: Differentiate.COUPON + '支付',
|
|
4977
|
+
zIndex: 1007,
|
|
5444
4978
|
footer: _react2.default.createElement(
|
|
5445
4979
|
'div',
|
|
5446
4980
|
{ className: 'action' },
|
|
@@ -5763,6 +5297,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5763
5297
|
centered: !this.isHorizontalPad ? true : false,
|
|
5764
5298
|
title: "积分抵现",
|
|
5765
5299
|
destroyOnClose: true,
|
|
5300
|
+
zIndex: 1007,
|
|
5766
5301
|
footer: _react2.default.createElement(
|
|
5767
5302
|
'div',
|
|
5768
5303
|
{ className: 'action' },
|
|
@@ -5935,7 +5470,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5935
5470
|
),
|
|
5936
5471
|
_react2.default.createElement(_index3.default, { discount: {
|
|
5937
5472
|
discountTotalAmount: discountTotalAmount, discountRetailTotalAount: discountRetailTotalAount, discountPrototypeTotalAmount: discountPrototypeTotalAmount
|
|
5938
|
-
}, handleprototypeCancel: this.handleprototypeCancel, isHorizontalPad: this.isHorizontalPad, dataSource: dataSource, prototypeVisible: this.state.prototypeVisible })
|
|
5473
|
+
}, handleprototypeCancel: this.handleprototypeCancel, isHorizontalPad: this.isHorizontalPad, dataSource: dataSource, prototypeVisible: this.state.prototypeVisible, isNotAutoFocus: isNotAutoFocus })
|
|
5939
5474
|
);
|
|
5940
5475
|
}
|
|
5941
5476
|
}]);
|