tplus-components-touch 3.39.4 → 3.40.1
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 +18 -18
- package/dist/components/billSearch/api.js +37 -98
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +47 -82
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +384 -384
- 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 +14 -23
- 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 +3 -6
- 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 +1 -2
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +7 -13
- 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 +11 -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 +0 -52
- 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 +30 -30
- package/dist/components/input/style.less +99 -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 +6 -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 +485 -485
- 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 +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 +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 +5 -2
- 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 +12 -13
- 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 +11 -12
- 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/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 +5 -7
- 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 +1 -3
- 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 +169 -418
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1690 -1705
- package/dist/components/settlement/settlementStore.js +111 -254
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js +2 -2
- 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/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/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 +14 -24
- 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 +8 -13
- 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 +3 -3
- package/tsconfig.json +26 -26
- package/dist/components/presale/pickup.js +0 -479
- package/dist/components/presale/pickup.js.map +0 -1
- package/dist/components/presale/style.less +0 -59
@@ -16,14 +16,6 @@ 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
|
-
|
27
19
|
var _extends2 = require('babel-runtime/helpers/extends');
|
28
20
|
|
29
21
|
var _extends3 = _interopRequireDefault(_extends2);
|
@@ -96,8 +88,6 @@ require('antd/es/input/style');
|
|
96
88
|
|
97
89
|
require('antd/es/drawer/style');
|
98
90
|
|
99
|
-
require('antd/es/table/style');
|
100
|
-
|
101
91
|
require('antd/es/carousel/style');
|
102
92
|
|
103
93
|
require('antd/es/button/style');
|
@@ -372,9 +362,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
372
362
|
isReturn = _this2$props.isReturn,
|
373
363
|
type = _this2$props.type;
|
374
364
|
|
375
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true
|
376
|
-
return _this2.isNoProductTip(data);
|
377
|
-
} })).then(function (result) {
|
365
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true })).then(function (result) {
|
378
366
|
if (result) {
|
379
367
|
_this2.setState({
|
380
368
|
settleDisabled: false
|
@@ -439,7 +427,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
439
427
|
return (0, _assign2.default)({}, o);
|
440
428
|
});
|
441
429
|
var discountRetailTotalAount = null;
|
442
|
-
var discountPrototypeTotalAmount = 0;
|
443
430
|
var count = 0;
|
444
431
|
dataSource && dataSource.forEach(function (item) {
|
445
432
|
var count1 = 0;
|
@@ -471,7 +458,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
471
458
|
}
|
472
459
|
item.InventoryName = item.Inventory.Name;
|
473
460
|
item.Discount = (0, _utils.getRoundValue)(item.RetailPrice - item.TaxPrice, pricePrecision);
|
474
|
-
discountPrototypeTotalAmount += item.DetailDiscountAmount;
|
475
461
|
//item.TotalDiscount = getFixedNumber(item.Discount * item.Quantity);
|
476
462
|
item.TotalDiscount = item.DetailDiscountAmount;
|
477
463
|
item.nAmount = (0, _utils.getFixedNumber)(item.TaxAmount);
|
@@ -482,10 +468,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
482
468
|
});
|
483
469
|
_this2.setState({
|
484
470
|
dataSource: dataSource,
|
485
|
-
discountTotalAmount: (0, _utils.getFixedNumber)(
|
486
|
-
|
487
|
-
|
471
|
+
discountTotalAmount: (0, _utils.getFixedNumber)(TotalTaxAmount),
|
472
|
+
discountRetailTotalAount: (0, _utils.getFixedNumber)(discountRetailTotalAount),
|
473
|
+
discountPrototypeTotalAmount: (0, _utils.getFixedNumber)(discountRetailTotalAount - TotalTaxAmount)
|
488
474
|
});
|
475
|
+
console.log(RetailDetails, 'RetailDetails-----');
|
489
476
|
return count;
|
490
477
|
};
|
491
478
|
|
@@ -496,9 +483,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
496
483
|
|
497
484
|
var isAutoShowCouponWhenCash = (0, _tplusPoslogin.PosInitData)('IsAutoShowCouponWhenCash');
|
498
485
|
// 支持异步验证过程
|
499
|
-
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate(
|
500
|
-
return _this2.isNoProductTip(data);
|
501
|
-
} })).then(function (result) {
|
486
|
+
_promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate()).then(function (result) {
|
502
487
|
if (result) {
|
503
488
|
_this2.setState({
|
504
489
|
settleDisabled: false
|
@@ -1001,11 +986,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1001
986
|
}, 200);
|
1002
987
|
|
1003
988
|
// TODO: 测试优惠券支付
|
1004
|
-
|
1005
|
-
var _ref10 = _mutantsUtil.platform || {},
|
1006
|
-
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
1007
|
-
|
1008
|
-
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
989
|
+
if (!_this2.store.paymode.currentMode.boriginReturn) {
|
1009
990
|
_this2.store.getCouponList();
|
1010
991
|
}
|
1011
992
|
};
|
@@ -1069,7 +1050,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1069
1050
|
setTimeout(function () {
|
1070
1051
|
_this2.inputJfdxAmount.input.focus();
|
1071
1052
|
_this2.inputJfdxAmount.input.setSelectionRange(0, _this2.inputJfdxAmount.input.value.length);
|
1072
|
-
},
|
1053
|
+
}, 200);
|
1073
1054
|
};
|
1074
1055
|
|
1075
1056
|
_this2.handleJfdxOk = function (e) {
|
@@ -1087,8 +1068,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1087
1068
|
};
|
1088
1069
|
|
1089
1070
|
_this2.checkOfflineEnable = function (paymode, key) {
|
1090
|
-
var
|
1091
|
-
paymodes =
|
1071
|
+
var _ref10 = paymode || {},
|
1072
|
+
paymodes = _ref10.paymodes;
|
1092
1073
|
|
1093
1074
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
1094
1075
|
|
@@ -1111,7 +1092,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1111
1092
|
}
|
1112
1093
|
};
|
1113
1094
|
|
1114
|
-
_this2.onTabsClick2 = function (paymode, brefund, themode, key
|
1095
|
+
_this2.onTabsClick2 = function (paymode, brefund, themode, key) {
|
1115
1096
|
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
1116
1097
|
PayStyle = _enumController$getEn7.PayStyle,
|
1117
1098
|
Differentiate = _enumController$getEn7.Differentiate;
|
@@ -1144,7 +1125,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1144
1125
|
})) {
|
1145
1126
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用微信了。');
|
1146
1127
|
} else {
|
1147
|
-
_this2.setCurrentFocusAndAddPay(key
|
1128
|
+
_this2.setCurrentFocusAndAddPay(key);
|
1148
1129
|
}
|
1149
1130
|
break;
|
1150
1131
|
case PayStyle.zfb:
|
@@ -1153,7 +1134,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1153
1134
|
})) {
|
1154
1135
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用支付宝了。');
|
1155
1136
|
} else {
|
1156
|
-
_this2.setCurrentFocusAndAddPay(key
|
1137
|
+
_this2.setCurrentFocusAndAddPay(key);
|
1157
1138
|
}
|
1158
1139
|
break;
|
1159
1140
|
case PayStyle.smzf:
|
@@ -1162,11 +1143,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1162
1143
|
})) {
|
1163
1144
|
_message2.default.error('已使用了其他的付款码支付,不可以再使用扫码支付了。');
|
1164
1145
|
} else {
|
1165
|
-
_this2.setCurrentFocusAndAddPay(key
|
1146
|
+
_this2.setCurrentFocusAndAddPay(key);
|
1166
1147
|
}
|
1167
1148
|
break;
|
1168
1149
|
default:
|
1169
|
-
_this2.setCurrentFocusAndAddPay(key
|
1150
|
+
_this2.setCurrentFocusAndAddPay(key);
|
1170
1151
|
break;
|
1171
1152
|
}
|
1172
1153
|
};
|
@@ -1209,7 +1190,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1209
1190
|
return bdisabled;
|
1210
1191
|
};
|
1211
1192
|
|
1212
|
-
_this2.onTabsClick = function (key
|
1193
|
+
_this2.onTabsClick = function (key) {
|
1213
1194
|
var _enumController$getEn9 = _mutantsUtil.enumController.getEnumOj(),
|
1214
1195
|
PayStyle = _enumController$getEn9.PayStyle,
|
1215
1196
|
Differentiate = _enumController$getEn9.Differentiate;
|
@@ -1238,10 +1219,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1238
1219
|
return;
|
1239
1220
|
}
|
1240
1221
|
var themode = (0, _find3.default)(paymode.paymodes, { 'paymentType': key });
|
1241
|
-
//预订非全款不可使用零售抵现类支付方式
|
1242
|
-
// if(bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && themode.virtualPay){
|
1243
|
-
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1244
|
-
// }
|
1245
1222
|
if (themode.exchangeRate != 1) {
|
1246
1223
|
var forign = (0, _find3.default)(paymode.thePaymodes, function (mode) {
|
1247
1224
|
return mode.exchangeRate != 1 && mode.paymentType != key;
|
@@ -1272,17 +1249,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1272
1249
|
that.setState({
|
1273
1250
|
noAlreadyWarn: false
|
1274
1251
|
});
|
1275
|
-
that.onTabsClick2(paymode, brefund, themode, key
|
1252
|
+
that.onTabsClick2(paymode, brefund, themode, key);
|
1276
1253
|
},
|
1277
1254
|
onCancel: function onCancel() {}
|
1278
|
-
}) : that.onTabsClick2(paymode, brefund, themode, key
|
1255
|
+
}) : that.onTabsClick2(paymode, brefund, themode, key);;
|
1279
1256
|
break;
|
1280
1257
|
default:
|
1281
|
-
_this2.onTabsClick2(paymode, brefund, themode, key
|
1258
|
+
_this2.onTabsClick2(paymode, brefund, themode, key);
|
1282
1259
|
break;
|
1283
1260
|
}
|
1284
1261
|
} else {
|
1285
|
-
_this2.onTabsClick2(paymode, brefund, themode, key
|
1262
|
+
_this2.onTabsClick2(paymode, brefund, themode, key);
|
1286
1263
|
}
|
1287
1264
|
};
|
1288
1265
|
|
@@ -1305,8 +1282,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1305
1282
|
}
|
1306
1283
|
};
|
1307
1284
|
|
1308
|
-
_this2.setCurrentFocusAndAddPay = function (key,
|
1309
|
-
_this2.store.changeFocusAndAddPay(key
|
1285
|
+
_this2.setCurrentFocusAndAddPay = function (key, payId) {
|
1286
|
+
_this2.store.changeFocusAndAddPay(key);
|
1310
1287
|
if (_this2.store.bquick) {
|
1311
1288
|
_this2.handleSettle("quickPay");
|
1312
1289
|
} else {
|
@@ -1314,7 +1291,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1314
1291
|
}
|
1315
1292
|
};
|
1316
1293
|
|
1317
|
-
_this2.onDelPay = function (index, boriginReturn, type
|
1294
|
+
_this2.onDelPay = function (index, boriginReturn, type) {
|
1318
1295
|
var _enumController$getEn12 = _mutantsUtil.enumController.getEnumOj(),
|
1319
1296
|
PayStyle = _enumController$getEn12.PayStyle;
|
1320
1297
|
|
@@ -1323,21 +1300,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1323
1300
|
if (storeType != 1 && boriginReturn && (type == PayStyle.hyczk || type == PayStyle.djq || type == PayStyle.jfdx)) {
|
1324
1301
|
_message2.default.info('原单退货时,该结算方式不可以删除。');
|
1325
1302
|
} else {
|
1326
|
-
_this2.store.delPay(index
|
1303
|
+
_this2.store.delPay(index);
|
1327
1304
|
}
|
1328
1305
|
};
|
1329
1306
|
|
1330
|
-
_this2.handleChange = function (index, e
|
1307
|
+
_this2.handleChange = function (index, e) {
|
1331
1308
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
1332
|
-
var mode = (0, _find3.default)(_this2.store.paymode.thePaymodes, { 'paymethodId': index });
|
1333
|
-
// if(type == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1334
|
-
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1335
|
-
// }
|
1336
1309
|
var currentInput = e.target;
|
1337
1310
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
1338
1311
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
1339
1312
|
if (e.target.value.length <= amountMaxLength) {
|
1340
|
-
_this2.store.changeValue(index, e.target.value, false
|
1313
|
+
_this2.store.changeValue(index, e.target.value, false);
|
1341
1314
|
}
|
1342
1315
|
}
|
1343
1316
|
};
|
@@ -1377,13 +1350,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1377
1350
|
}
|
1378
1351
|
}
|
1379
1352
|
}
|
1353
|
+
// let bjfdx=this.store.paymode.currentMode.paymentType==PayStyle.jfdx;
|
1380
1354
|
_this2.store.paymode.setCurrentModeValue(val, max);
|
1381
1355
|
};
|
1382
1356
|
|
1383
|
-
_this2.onBlur = function (index, e
|
1357
|
+
_this2.onBlur = function (index, e) {
|
1384
1358
|
_this2.currentInput = null;
|
1385
1359
|
_this2.store.changeFocusOnly(-1);
|
1386
|
-
_this2.store.changeValue(index, e.target.value == '-' ? 0 : e.target.value, true
|
1360
|
+
_this2.store.changeValue(index, e.target.value == '-' ? 0 : e.target.value, true);
|
1387
1361
|
};
|
1388
1362
|
|
1389
1363
|
_this2.onFocus = function (index, mode, paymode, e) {
|
@@ -1435,15 +1409,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1435
1409
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
1436
1410
|
return;
|
1437
1411
|
}
|
1438
|
-
|
1439
|
-
var _ref12 = _mutantsUtil.platform || {},
|
1440
|
-
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
1441
|
-
|
1442
|
-
if (isNewRetailBCPos) {
|
1443
|
-
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1444
|
-
} else {
|
1445
|
-
_this2.store.paymode.calcDjqValue(q);
|
1446
|
-
}
|
1412
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1447
1413
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
1448
1414
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
1449
1415
|
};
|
@@ -1515,10 +1481,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1515
1481
|
}, 2000);
|
1516
1482
|
};
|
1517
1483
|
|
1518
|
-
_this2.onHotKeyClick1 = function (mode, index, boriginReturn
|
1519
|
-
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1520
|
-
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1521
|
-
// }
|
1484
|
+
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
1522
1485
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
1523
1486
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
1524
1487
|
return;
|
@@ -1558,14 +1521,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1558
1521
|
}
|
1559
1522
|
};
|
1560
1523
|
|
1561
|
-
_this2.onHotKeyClick2 = function (index, mode, paymode, e
|
1524
|
+
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
1562
1525
|
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
1563
1526
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
1564
1527
|
return;
|
1565
1528
|
}
|
1566
|
-
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1567
|
-
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1568
|
-
// }
|
1569
1529
|
_this2.store.changeClickFocusOnly(mode.paymentType);
|
1570
1530
|
_this2.setCurrentFocusOnly(mode.paymentType);
|
1571
1531
|
if (_this2.hotkeydebounced) {
|
@@ -1802,7 +1762,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1802
1762
|
};
|
1803
1763
|
|
1804
1764
|
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
1805
|
-
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen,
|
1765
|
+
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
1806
1766
|
|
1807
1767
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
1808
1768
|
while (1) {
|
@@ -1862,7 +1822,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1862
1822
|
}
|
1863
1823
|
};
|
1864
1824
|
|
1865
|
-
|
1825
|
+
getSettleGift = _this2.store.getSettleGift;
|
1866
1826
|
type = _this2.props.type;
|
1867
1827
|
resp1 = false;
|
1868
1828
|
|
@@ -1911,7 +1871,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1911
1871
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
1912
1872
|
message = "兑换成功";
|
1913
1873
|
}
|
1914
|
-
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores,
|
1874
|
+
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
|
1915
1875
|
_this.handleGuestShow(5);
|
1916
1876
|
});
|
1917
1877
|
_this2.setState({ isXianjin: false });
|
@@ -1930,13 +1890,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1930
1890
|
if (_this2.hasElectron === false) return;
|
1931
1891
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1932
1892
|
|
1933
|
-
var
|
1934
|
-
guestshow_enable =
|
1935
|
-
guestshow_clear =
|
1936
|
-
guestshow_welcome =
|
1937
|
-
guestshow_collect =
|
1938
|
-
guestshow_refund =
|
1939
|
-
guestshow_change =
|
1893
|
+
var _ref14 = dt || {},
|
1894
|
+
guestshow_enable = _ref14.guestshow_enable,
|
1895
|
+
guestshow_clear = _ref14.guestshow_clear,
|
1896
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
1897
|
+
guestshow_collect = _ref14.guestshow_collect,
|
1898
|
+
guestshow_refund = _ref14.guestshow_refund,
|
1899
|
+
guestshow_change = _ref14.guestshow_change;
|
1940
1900
|
|
1941
1901
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
1942
1902
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -1971,9 +1931,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1971
1931
|
};
|
1972
1932
|
|
1973
1933
|
_this2.handleSettle = function () {
|
1974
|
-
var
|
1934
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
1975
1935
|
var handleUserInputs = function () {
|
1976
|
-
var
|
1936
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
1977
1937
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
1978
1938
|
|
1979
1939
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
@@ -2064,11 +2024,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2064
2024
|
}));
|
2065
2025
|
|
2066
2026
|
return function handleUserInputs(_x6) {
|
2067
|
-
return
|
2027
|
+
return _ref17.apply(this, arguments);
|
2068
2028
|
};
|
2069
2029
|
}();
|
2070
2030
|
|
2071
|
-
var _enumController$getEn21, PayStyle, _this2$
|
2031
|
+
var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
2072
2032
|
|
2073
2033
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
2074
2034
|
while (1) {
|
@@ -2079,7 +2039,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2079
2039
|
});
|
2080
2040
|
console.log("settlement.handleSettle开始执行,参数:", +args);
|
2081
2041
|
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
|
2082
|
-
_this2$
|
2042
|
+
_this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
|
2083
2043
|
isQuickPay = args === 'quickPay';
|
2084
2044
|
that = _this2;
|
2085
2045
|
status = false;
|
@@ -2157,7 +2117,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2157
2117
|
});
|
2158
2118
|
|
2159
2119
|
commit = function () {
|
2160
|
-
var
|
2120
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2161
2121
|
var result;
|
2162
2122
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2163
2123
|
while (1) {
|
@@ -2231,7 +2191,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2231
2191
|
}));
|
2232
2192
|
|
2233
2193
|
return function commit(_x5) {
|
2234
|
-
return
|
2194
|
+
return _ref16.apply(this, arguments);
|
2235
2195
|
};
|
2236
2196
|
}();
|
2237
2197
|
|
@@ -2246,13 +2206,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2246
2206
|
}));
|
2247
2207
|
|
2248
2208
|
return function (_x4) {
|
2249
|
-
return
|
2209
|
+
return _ref15.apply(this, arguments);
|
2250
2210
|
};
|
2251
2211
|
}();
|
2252
2212
|
|
2253
2213
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2254
2214
|
var handleUserInputs = function () {
|
2255
|
-
var
|
2215
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2256
2216
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2257
2217
|
|
2258
2218
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
@@ -2349,11 +2309,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2349
2309
|
}));
|
2350
2310
|
|
2351
2311
|
return function handleUserInputs(_x8) {
|
2352
|
-
return
|
2312
|
+
return _ref20.apply(this, arguments);
|
2353
2313
|
};
|
2354
2314
|
}();
|
2355
2315
|
|
2356
|
-
var that, curmode, promises,
|
2316
|
+
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2357
2317
|
|
2358
2318
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2359
2319
|
while (1) {
|
@@ -2362,28 +2322,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2362
2322
|
that = _this2;
|
2363
2323
|
curmode = _this2.store.paymode.currentMode;
|
2364
2324
|
promises = [];
|
2365
|
-
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
2366
2325
|
|
2367
|
-
if (
|
2368
|
-
|
2369
|
-
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2326
|
+
if (curmode.value > 0) {
|
2327
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2370
2328
|
|
2371
|
-
|
2372
|
-
|
2373
|
-
|
2374
|
-
|
2375
|
-
|
2376
|
-
}
|
2329
|
+
if (curmode.paymentType === PayStyle.hyczk) {
|
2330
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
2331
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
2332
|
+
} else {
|
2333
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
2377
2334
|
}
|
2378
2335
|
}
|
2379
|
-
} else {
|
2380
|
-
if (curmode.member.needPwd && curmode.value > 0) {
|
2381
|
-
promises.push(that.inputPwd(curmode));
|
2382
|
-
}
|
2383
2336
|
}
|
2384
2337
|
|
2385
2338
|
commit = function () {
|
2386
|
-
var
|
2339
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2387
2340
|
var result;
|
2388
2341
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2389
2342
|
while (1) {
|
@@ -2415,7 +2368,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2415
2368
|
|
2416
2369
|
//成功
|
2417
2370
|
//返回
|
2418
|
-
that.setCurrentFocusAndAddPay(curmode.paymentType,
|
2371
|
+
that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
|
2419
2372
|
_promise2.default.resolve();
|
2420
2373
|
_context12.next = 15;
|
2421
2374
|
break;
|
@@ -2433,13 +2386,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2433
2386
|
}));
|
2434
2387
|
|
2435
2388
|
return function commit(_x7) {
|
2436
|
-
return
|
2389
|
+
return _ref19.apply(this, arguments);
|
2437
2390
|
};
|
2438
2391
|
}();
|
2439
2392
|
|
2440
2393
|
handleUserInputs(promises);
|
2441
2394
|
|
2442
|
-
case
|
2395
|
+
case 6:
|
2443
2396
|
case 'end':
|
2444
2397
|
return _context14.stop();
|
2445
2398
|
}
|
@@ -2484,7 +2437,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2484
2437
|
};
|
2485
2438
|
|
2486
2439
|
_this2.inputPwd = function () {
|
2487
|
-
var
|
2440
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2488
2441
|
var that, confirmPwd;
|
2489
2442
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2490
2443
|
while (1) {
|
@@ -2500,8 +2453,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2500
2453
|
// if (v !== '') {
|
2501
2454
|
modal.destroy();
|
2502
2455
|
|
2503
|
-
var
|
2504
|
-
confirmPwd =
|
2456
|
+
var _ref22 = that.state || {},
|
2457
|
+
confirmPwd = _ref22.confirmPwd;
|
2505
2458
|
|
2506
2459
|
setTimeout(function () {
|
2507
2460
|
paymode.authCode = v;
|
@@ -2592,8 +2545,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2592
2545
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2593
2546
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2594
2547
|
|
2595
|
-
var
|
2596
|
-
confirmPwd =
|
2548
|
+
var _ref23 = that.state || {},
|
2549
|
+
confirmPwd = _ref23.confirmPwd;
|
2597
2550
|
// if (v !== '') {
|
2598
2551
|
|
2599
2552
|
|
@@ -2634,111 +2587,62 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2634
2587
|
}));
|
2635
2588
|
|
2636
2589
|
return function (_x9) {
|
2637
|
-
return
|
2590
|
+
return _ref21.apply(this, arguments);
|
2638
2591
|
};
|
2639
2592
|
}();
|
2640
2593
|
|
2641
|
-
_this2.btnDebounced = function () {
|
2642
|
-
|
2643
|
-
|
2644
|
-
|
2645
|
-
|
2646
|
-
while (1) {
|
2647
|
-
switch (_context16.prev = _context16.next) {
|
2648
|
-
case 0:
|
2649
|
-
IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
|
2650
|
-
CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
|
2651
|
-
DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
2652
|
-
Address = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.Address;
|
2653
|
-
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
2654
|
-
|
2655
|
-
if (!(IdbusiType == 38)) {
|
2656
|
-
_context16.next = 10;
|
2657
|
-
break;
|
2658
|
-
}
|
2659
|
-
|
2660
|
-
if (DistributionMode.Id == 'ON_SITE_PICKUP' && !CustomerPhone && _this2.context.viewModel.data.Member.Mobilephone) {
|
2661
|
-
_this2.props.syncMemberInfoProcessor();
|
2662
|
-
}
|
2663
|
-
|
2664
|
-
if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
2665
|
-
_context16.next = 10;
|
2666
|
-
break;
|
2667
|
-
}
|
2668
|
-
|
2669
|
-
title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
|
2670
|
-
_context16.next = 10;
|
2671
|
-
return _this2.props.openBuyerModal(title);
|
2672
|
-
|
2673
|
-
case 10:
|
2674
|
-
|
2675
|
-
_this2.setState({
|
2676
|
-
bquick: bquick,
|
2677
|
-
isInputMember: true
|
2678
|
-
});
|
2679
|
-
_enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
|
2680
|
-
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
2681
|
-
|
2682
|
-
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
2683
|
-
_context16.next = 15;
|
2684
|
-
break;
|
2685
|
-
}
|
2594
|
+
_this2.btnDebounced = function (type, bquick) {
|
2595
|
+
_this2.setState({
|
2596
|
+
bquick: bquick,
|
2597
|
+
isInputMember: true
|
2598
|
+
});
|
2686
2599
|
|
2687
|
-
|
2600
|
+
var _enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(),
|
2601
|
+
PayStyle = _enumController$getEn23.PayStyle;
|
2688
2602
|
|
2689
|
-
|
2690
|
-
|
2603
|
+
var _this2$store7 = _this2.store,
|
2604
|
+
paymode = _this2$store7.paymode,
|
2605
|
+
brefund = _this2$store7.brefund,
|
2606
|
+
boriginReturn = _this2$store7.boriginReturn,
|
2607
|
+
newStyle = _this2$store7.newStyle;
|
2691
2608
|
|
2692
|
-
paymode.thePaymodes.forEach(function (v) {
|
2693
|
-
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
2694
|
-
status = true;
|
2695
|
-
}
|
2696
|
-
});
|
2697
|
-
_this2.setState({
|
2698
|
-
isXianjin: status ? true : false
|
2699
|
-
});
|
2700
2609
|
|
2701
|
-
|
2702
|
-
_context16.next = 20;
|
2703
|
-
break;
|
2704
|
-
}
|
2610
|
+
if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
|
2705
2611
|
|
2706
|
-
|
2707
|
-
|
2708
|
-
|
2709
|
-
|
2710
|
-
|
2711
|
-
|
2712
|
-
|
2713
|
-
|
2714
|
-
|
2715
|
-
}, 1000, {
|
2716
|
-
'leading': true,
|
2717
|
-
'trailing': false
|
2718
|
-
});
|
2719
|
-
_this2.btndebounced();
|
2720
|
-
setTimeout(function () {
|
2721
|
-
_this2.btndebounced.cancel();
|
2722
|
-
_this2.btndebounced = null;
|
2723
|
-
}, 2000);
|
2724
|
-
|
2725
|
-
case 23:
|
2726
|
-
case 'end':
|
2727
|
-
return _context16.stop();
|
2728
|
-
}
|
2729
|
-
}
|
2730
|
-
}, _callee16, _this3);
|
2731
|
-
}));
|
2612
|
+
var status = false;
|
2613
|
+
paymode.thePaymodes.forEach(function (v) {
|
2614
|
+
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
2615
|
+
status = true;
|
2616
|
+
}
|
2617
|
+
});
|
2618
|
+
_this2.setState({
|
2619
|
+
isXianjin: status ? true : false
|
2620
|
+
});
|
2732
2621
|
|
2733
|
-
|
2734
|
-
return
|
2735
|
-
}
|
2736
|
-
|
2622
|
+
if (_this2.btndebounced) {
|
2623
|
+
return;
|
2624
|
+
}
|
2625
|
+
_this2.btndebounced = (0, _debounce3.default)(function () {
|
2626
|
+
if (bquick) {
|
2627
|
+
_this2.quickSettle(type);
|
2628
|
+
} else {
|
2629
|
+
_this2.showModal();
|
2630
|
+
}
|
2631
|
+
}, 1000, {
|
2632
|
+
'leading': true,
|
2633
|
+
'trailing': false
|
2634
|
+
});
|
2635
|
+
_this2.btndebounced();
|
2636
|
+
setTimeout(function () {
|
2637
|
+
_this2.btndebounced.cancel();
|
2638
|
+
_this2.btndebounced = null;
|
2639
|
+
}, 2000);
|
2640
|
+
};
|
2737
2641
|
|
2738
2642
|
_this2.onCzkChange = function (v) {
|
2739
2643
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
2740
|
-
var
|
2741
|
-
isNewRetailBCPos =
|
2644
|
+
var _ref24 = _mutantsUtil.platform || {},
|
2645
|
+
isNewRetailBCPos = _ref24.isNewRetailBCPos;
|
2742
2646
|
|
2743
2647
|
if (!isNewRetailBCPos) {
|
2744
2648
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -2818,20 +2722,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2818
2722
|
value = parseFloat(receivable) + parseFloat(inputTarget2.innerHTML);
|
2819
2723
|
}
|
2820
2724
|
inputTarget.value = value;
|
2821
|
-
|
2822
|
-
if (_this2.store.paymode.isNotFullBook) {
|
2823
|
-
if (parseFloat(value || 0) > _this2.store.paymode.bookMaxValue) {
|
2824
|
-
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(_this2.store.paymode.bookMaxValue));
|
2825
|
-
}
|
2826
|
-
if (parseFloat(value || 0) < parseFloat(receivable)) {
|
2827
|
-
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
2828
|
-
}
|
2829
|
-
if (parseFloat(receivable) <= parseFloat(value || 0) && parseFloat(value || 0) <= _this2.store.paymode.bookMaxValue) {
|
2830
|
-
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(0);
|
2831
|
-
}
|
2832
|
-
} else {
|
2833
|
-
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
2834
|
-
}
|
2725
|
+
inputTarget2.innerHTML = (0, _utils.getFixedNumber)(parseFloat(value || 0) - parseFloat(receivable));
|
2835
2726
|
};
|
2836
2727
|
|
2837
2728
|
_this2.changeScanProduct = function () {
|
@@ -2888,8 +2779,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2888
2779
|
type = _this2$props3.type;
|
2889
2780
|
|
2890
2781
|
var isManualIntoAmount = void 0;
|
2891
|
-
var BuyerPayFreight = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.BuyerPayFreight;
|
2892
|
-
var DistributionMode = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.DistributionMode;
|
2893
2782
|
// 付款弹窗
|
2894
2783
|
return new _promise2.default(function (resolve, reject) {
|
2895
2784
|
var _enumController$getEn27 = _mutantsUtil.enumController.getEnumOj(),
|
@@ -2979,14 +2868,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2979
2868
|
_react2.default.createElement(
|
2980
2869
|
'span',
|
2981
2870
|
{ className: 'yfje' },
|
2982
|
-
paymode.value
|
2983
|
-
DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? _react2.default.createElement(
|
2984
|
-
'span',
|
2985
|
-
{ className: 'freight' },
|
2986
|
-
'(\u5305\u542B',
|
2987
|
-
BuyerPayFreight,
|
2988
|
-
'\u5143\u8FD0\u8D39)'
|
2989
|
-
) : null
|
2871
|
+
paymode.value
|
2990
2872
|
)
|
2991
2873
|
),
|
2992
2874
|
paymode.paymentType == PayStyle.xianjin && _react2.default.createElement(
|
@@ -3110,7 +2992,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3110
2992
|
settleDisabled: false
|
3111
2993
|
});
|
3112
2994
|
that.store.bquick && that.props.onCancelSettle && that.props.onCancelSettle();
|
3113
|
-
that.store.bquick && that.store.delPay(paymode.paymethodId
|
2995
|
+
that.store.bquick && that.store.delPay(paymode.paymethodId);
|
3114
2996
|
reject('\u652F\u4ED8\u65B9\u5F0F: ' + paymode.name + '\u5931\u8D25');
|
3115
2997
|
} },
|
3116
2998
|
'\u53D6\u6D88'
|
@@ -3140,7 +3022,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3140
3022
|
modal.destroy();
|
3141
3023
|
setTimeout(function () {
|
3142
3024
|
if (paymode.paymentType == PayStyle.xianjin) {
|
3143
|
-
that.store.changeValue(paymode.paymethodId, v, false
|
3025
|
+
that.store.changeValue(paymode.paymethodId, v, false);
|
3144
3026
|
} else {
|
3145
3027
|
paymode.authCode = v;
|
3146
3028
|
}
|
@@ -3169,9 +3051,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3169
3051
|
};
|
3170
3052
|
|
3171
3053
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
3172
|
-
var _this2$
|
3173
|
-
paymode = _this2$
|
3174
|
-
newStyle = _this2$
|
3054
|
+
var _this2$store8 = _this2.store,
|
3055
|
+
paymode = _this2$store8.paymode,
|
3056
|
+
newStyle = _this2$store8.newStyle;
|
3175
3057
|
|
3176
3058
|
var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
|
3177
3059
|
PayStyle = _enumController$getEn28.PayStyle;
|
@@ -3279,8 +3161,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3279
3161
|
var CarouselTp = CarouseOut || _carousel2.default;
|
3280
3162
|
var newParams = CarouseOut ? {} : params;
|
3281
3163
|
var mapList = [];
|
3282
|
-
var type = _this2.props.type;
|
3283
|
-
|
3284
3164
|
paymodes.forEach(function (item, index) {
|
3285
3165
|
// 整除则新增轮播页面
|
3286
3166
|
if (index % carouselStart === 0) {
|
@@ -3296,7 +3176,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3296
3176
|
'div',
|
3297
3177
|
null,
|
3298
3178
|
(0, _map3.default)(modeList, function (mode, modeIndex) {
|
3299
|
-
return _this2.renderToolbtn(mode, index * carouselStart + modeIndex
|
3179
|
+
return _this2.renderToolbtn(mode, index * carouselStart + modeIndex);
|
3300
3180
|
})
|
3301
3181
|
);
|
3302
3182
|
})
|
@@ -3347,23 +3227,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3347
3227
|
|
3348
3228
|
_this2.hasElectron = hasElectron;
|
3349
3229
|
|
3350
|
-
var
|
3351
|
-
MemberMeStorageCardInputByKeyBoard =
|
3352
|
-
ICCardServer =
|
3353
|
-
ICCardPassword =
|
3354
|
-
PreSellOrBook = _ref29.PreSellOrBook,
|
3355
|
-
PercentageWhenBook = _ref29.PercentageWhenBook;
|
3230
|
+
var _ref25 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3231
|
+
MemberMeStorageCardInputByKeyBoard = _ref25.MemberMeStorageCardInputByKeyBoard,
|
3232
|
+
ICCardServer = _ref25.ICCardServer,
|
3233
|
+
ICCardPassword = _ref25.ICCardPassword;
|
3356
3234
|
|
3357
3235
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3358
3236
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
3359
3237
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
3360
|
-
_this2.isBook = PreSellOrBook == 'BOOK';
|
3361
|
-
_this2.percentageWhenBook = PercentageWhenBook;
|
3362
3238
|
//移动端环境下,没有读取IC卡的方式。
|
3363
3239
|
|
3364
|
-
var
|
3365
|
-
isHorizontalPad =
|
3366
|
-
isHorizontalSunMi =
|
3240
|
+
var _ref26 = _mutantsUtil.platform || {},
|
3241
|
+
isHorizontalPad = _ref26.isHorizontalPad,
|
3242
|
+
isHorizontalSunMi = _ref26.isHorizontalSunMi;
|
3367
3243
|
|
3368
3244
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3369
3245
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3481,87 +3357,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3481
3357
|
//jfdx
|
3482
3358
|
|
3483
3359
|
|
3484
|
-
/**
|
3485
|
-
*
|
3486
|
-
* @param {*} thePaymodes 支付方式列表
|
3487
|
-
* @param {*} currenIndex 当前支付方式下标
|
3488
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3360
|
+
/**
|
3361
|
+
*
|
3362
|
+
* @param {*} thePaymodes 支付方式列表
|
3363
|
+
* @param {*} currenIndex 当前支付方式下标
|
3364
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3489
3365
|
*/
|
3490
3366
|
|
3491
3367
|
// 处理客显显示功能
|
3492
3368
|
|
3493
3369
|
//that[`inputS${paymode.paymethodId}`]
|
3494
3370
|
|
3495
|
-
}, {
|
3496
|
-
key: 'isNoProductTip',
|
3497
|
-
value: function isNoProductTip(nonProductMap) {
|
3498
|
-
var _ref31 = this.context.viewModel.data || {},
|
3499
|
-
RetailDetails = _ref31.RetailDetails;
|
3500
|
-
|
3501
|
-
var temphtml = [];
|
3502
|
-
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
3503
|
-
var columns = [{
|
3504
|
-
title: '商品名称',
|
3505
|
-
dataIndex: 'name',
|
3506
|
-
key: 'name',
|
3507
|
-
ellipsis: true
|
3508
|
-
}, {
|
3509
|
-
title: '原因',
|
3510
|
-
dataIndex: 'reason',
|
3511
|
-
key: 'reason',
|
3512
|
-
ellipsis: true
|
3513
|
-
}];
|
3514
|
-
|
3515
|
-
var _loop = function _loop(key) {
|
3516
|
-
var product = RetailDetails.find(function (o) {
|
3517
|
-
return o.Idinventory == key;
|
3518
|
-
});
|
3519
|
-
temphtml.push({ name: product.Inventory.Name, reason: nonProductMap[key] });
|
3520
|
-
};
|
3521
|
-
|
3522
|
-
for (var key in nonProductMap) {
|
3523
|
-
_loop(key);
|
3524
|
-
}
|
3525
|
-
var modal = (0, _asyncModal2.default)({
|
3526
|
-
onPressEnter: function onPressEnter() {
|
3527
|
-
modal.destroy();
|
3528
|
-
},
|
3529
|
-
maskClosable: false,
|
3530
|
-
keyboard: false,
|
3531
|
-
closable: true,
|
3532
|
-
title: '不可配送商品',
|
3533
|
-
width: 600,
|
3534
|
-
className: '',
|
3535
|
-
content: _react2.default.createElement(
|
3536
|
-
'div',
|
3537
|
-
{ className: 'not-distribution-tip' },
|
3538
|
-
_react2.default.createElement(
|
3539
|
-
'div',
|
3540
|
-
{ className: 'tip-content' },
|
3541
|
-
_react2.default.createElement(_table2.default, {
|
3542
|
-
columns: columns,
|
3543
|
-
dataSource: temphtml,
|
3544
|
-
scroll: { y: 240 },
|
3545
|
-
pagination: false,
|
3546
|
-
size: 'middle' })
|
3547
|
-
),
|
3548
|
-
_react2.default.createElement(
|
3549
|
-
'div',
|
3550
|
-
{ className: 'not-distribution-btn' },
|
3551
|
-
_react2.default.createElement(
|
3552
|
-
_button2.default,
|
3553
|
-
{ type: 'primary', onClick: function onClick() {
|
3554
|
-
modal.destroy();
|
3555
|
-
} },
|
3556
|
-
'\u77E5\u9053\u4E86'
|
3557
|
-
)
|
3558
|
-
)
|
3559
|
-
)
|
3560
|
-
});
|
3561
|
-
return true;
|
3562
|
-
}
|
3563
|
-
return false;
|
3564
|
-
}
|
3565
3371
|
}, {
|
3566
3372
|
key: 'checkThepaymode',
|
3567
3373
|
value: function checkThepaymode(key) {
|
@@ -3589,7 +3395,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3589
3395
|
}
|
3590
3396
|
}, {
|
3591
3397
|
key: 'renderToolbtn',
|
3592
|
-
value: function renderToolbtn(mode, index
|
3398
|
+
value: function renderToolbtn(mode, index) {
|
3593
3399
|
var _this7 = this;
|
3594
3400
|
|
3595
3401
|
var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
|
@@ -3627,7 +3433,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3627
3433
|
return _react2.default.createElement(
|
3628
3434
|
'div',
|
3629
3435
|
{ key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
|
3630
|
-
_this7.onTabsClick(mode.paymentType
|
3436
|
+
_this7.onTabsClick(mode.paymentType);
|
3631
3437
|
} },
|
3632
3438
|
_react2.default.createElement(
|
3633
3439
|
'div',
|
@@ -3683,10 +3489,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3683
3489
|
newPassConfirm = _state2.newPassConfirm,
|
3684
3490
|
newPass = _state2.newPass,
|
3685
3491
|
isNotAutoFocus = _state2.isNotAutoFocus;
|
3686
|
-
|
3687
|
-
var _ref32 = _mutantsUtil.platform || {},
|
3688
|
-
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
3689
|
-
|
3690
3492
|
var _store2 = this.store,
|
3691
3493
|
paymode = _store2.paymode,
|
3692
3494
|
brefund = _store2.brefund,
|
@@ -3704,34 +3506,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3704
3506
|
|
3705
3507
|
var boriginReturn = this.context && this.context.viewModel && this.context.viewModel.data && JSON.getCellValue(this.context.viewModel.data, "IsOriginalReturn");
|
3706
3508
|
var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
|
3707
|
-
|
3708
|
-
//收订金
|
3709
|
-
var IdbusiType = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.IdbusiType;
|
3710
|
-
var BuyerPayFreight = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.BuyerPayFreight;
|
3711
|
-
var DistributionMode = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.DistributionMode;
|
3712
|
-
if (IdbusiType == 38 && this.isBook && this.percentageWhenBook < 100 && (!DistributionMode.Id || DistributionMode.Id == 'ON_SITE_PICKUP')) {
|
3713
|
-
totalTaxAmount = totalTaxAmount * this.percentageWhenBook / 100;
|
3714
|
-
}
|
3715
|
-
|
3716
3509
|
// 单据模式
|
3717
3510
|
var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
|
3718
|
-
if (IdbusiType == 39) {
|
3719
|
-
return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0) && m.paymentType != PayStyle.hyczk;
|
3720
|
-
}
|
3721
3511
|
return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
|
3722
3512
|
}) : paymode.thePaymodes;
|
3723
3513
|
var paymodes = paymode.paymodes,
|
3724
3514
|
settle = paymode.settle,
|
3725
3515
|
currentMode = paymode.currentMode;
|
3726
|
-
|
3727
|
-
|
3728
|
-
if (IdbusiType == 39) {
|
3729
|
-
totalTaxAmount = _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount;
|
3730
|
-
paymodes = (0, _filter3.default)(paymodes, function (mode) {
|
3731
|
-
return mode.paymentType != PayStyle.hyczk;
|
3732
|
-
}); //取货过滤掉储值
|
3733
|
-
}
|
3734
3516
|
// 积分兑换 总积分
|
3517
|
+
|
3735
3518
|
var ExchangeIntegral = this.context && this.context.viewModel && this.context.viewModel.data.ExchangeIntegral;
|
3736
3519
|
|
3737
3520
|
var _hasSMZF = (0, _find3.default)(paymodes, function (item) {
|
@@ -3747,11 +3530,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3747
3530
|
}
|
3748
3531
|
|
3749
3532
|
var quickPay = boriginReturn ? [] : (0, _filter3.default)(paymodes, function (paymode) {
|
3750
|
-
|
3751
|
-
return paymode.isQuick && paymode.paymentType != PayStyle.hyczk; //取货过滤掉储值
|
3752
|
-
} else {
|
3753
|
-
return paymode.isQuick;
|
3754
|
-
}
|
3533
|
+
return paymode.isQuick;
|
3755
3534
|
});
|
3756
3535
|
var productsIsEmpty = type != 1 && this.context.viewModel.data.RetailDetails.length == 0 || type == 1 && parseFloat(amount || 0) <= 0 || memberDisabled || noIsMinAmount;
|
3757
3536
|
var moreToolbtns = [];
|
@@ -3771,11 +3550,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3771
3550
|
quantity4 = 0;
|
3772
3551
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3773
3552
|
|
3774
|
-
var
|
3775
|
-
|
3776
|
-
buyQuantity =
|
3777
|
-
|
3778
|
-
returnQuantity =
|
3553
|
+
var _ref27 = quantityDetail || {},
|
3554
|
+
_ref27$buyQuantity = _ref27.buyQuantity,
|
3555
|
+
buyQuantity = _ref27$buyQuantity === undefined ? 0 : _ref27$buyQuantity,
|
3556
|
+
_ref27$returnQuantity = _ref27.returnQuantity,
|
3557
|
+
returnQuantity = _ref27$returnQuantity === undefined ? 0 : _ref27$returnQuantity;
|
3779
3558
|
|
3780
3559
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3781
3560
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -3980,7 +3759,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3980
3759
|
'div',
|
3981
3760
|
null,
|
3982
3761
|
(0, _map3.default)(paymodes, function (mode, index) {
|
3983
|
-
return _this8.renderToolbtn(mode, index
|
3762
|
+
return _this8.renderToolbtn(mode, index);
|
3984
3763
|
})
|
3985
3764
|
),
|
3986
3765
|
paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
|
@@ -4025,20 +3804,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4025
3804
|
return _this8.onHotKeyClick2(index, mode, paymode, e);
|
4026
3805
|
},
|
4027
3806
|
onBlur: function onBlur(e) {
|
4028
|
-
return _this8.onBlur(index, e
|
3807
|
+
return _this8.onBlur(index, e);
|
4029
3808
|
},
|
4030
3809
|
onFocus: function onFocus(e) {
|
4031
3810
|
return _this8.onFocusHack(index, mode, paymode, e);
|
4032
3811
|
},
|
4033
3812
|
onChange: function onChange(e) {
|
4034
|
-
return _this8.handleChange(index, e
|
3813
|
+
return _this8.handleChange(index, e);
|
4035
3814
|
}
|
4036
3815
|
})
|
4037
3816
|
),
|
4038
3817
|
_react2.default.createElement(
|
4039
3818
|
'span',
|
4040
3819
|
{ className: 'minus', onClick: function onClick() {
|
4041
|
-
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType
|
3820
|
+
_this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
|
4042
3821
|
} },
|
4043
3822
|
_react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
|
4044
3823
|
)
|
@@ -4172,20 +3951,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4172
3951
|
{ className: 'received' },
|
4173
3952
|
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
4174
3953
|
)
|
4175
|
-
),
|
4176
|
-
_react2.default.createElement(
|
4177
|
-
'div',
|
4178
|
-
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
4179
|
-
_react2.default.createElement(
|
4180
|
-
'span',
|
4181
|
-
null,
|
4182
|
-
'\u8FD0\u8D39'
|
4183
|
-
),
|
4184
|
-
_react2.default.createElement(
|
4185
|
-
'span',
|
4186
|
-
{ className: 'received' },
|
4187
|
-
(0, _utils.getFixedNumber)(Math.abs(BuyerPayFreight))
|
4188
|
-
)
|
4189
3954
|
)
|
4190
3955
|
),
|
4191
3956
|
type != 1 && !isReturn && _react2.default.createElement(
|
@@ -4322,20 +4087,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4322
4087
|
{ className: 'received' },
|
4323
4088
|
(0, _utils.getFixedNumber)(Math.abs(paymode.receivable))
|
4324
4089
|
)
|
4325
|
-
),
|
4326
|
-
_react2.default.createElement(
|
4327
|
-
'div',
|
4328
|
-
{ className: 'receivable', style: { display: DistributionMode && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && BuyerPayFreight && BuyerPayFreight > 0 ? 'block' : 'none' } },
|
4329
|
-
_react2.default.createElement(
|
4330
|
-
'span',
|
4331
|
-
null,
|
4332
|
-
'\u8FD0\u8D39'
|
4333
|
-
),
|
4334
|
-
_react2.default.createElement(
|
4335
|
-
'span',
|
4336
|
-
{ className: 'received' },
|
4337
|
-
(0, _utils.getFixedNumber)(Math.abs(BuyerPayFreight))
|
4338
|
-
)
|
4339
4090
|
)
|
4340
4091
|
),
|
4341
4092
|
type != 1 && !isReturn && _react2.default.createElement(
|
@@ -4430,7 +4181,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4430
4181
|
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
4431
4182
|
}
|
4432
4183
|
} else {
|
4433
|
-
_this8.onHotKeyClick1(mode, index, boriginReturn
|
4184
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
4434
4185
|
}
|
4435
4186
|
},
|
4436
4187
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
@@ -4442,16 +4193,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4442
4193
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
|
4443
4194
|
value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
|
4444
4195
|
onClick: function onClick(e) {
|
4445
|
-
return _this8.onHotKeyClick2(index, mode, paymode, e
|
4196
|
+
return _this8.onHotKeyClick2(index, mode, paymode, e);
|
4446
4197
|
},
|
4447
4198
|
onBlur: function onBlur(e) {
|
4448
|
-
return _this8.onBlur(index, e
|
4199
|
+
return _this8.onBlur(index, e);
|
4449
4200
|
},
|
4450
4201
|
onFocus: function onFocus(e) {
|
4451
4202
|
return _this8.onFocusHack(index, mode, paymode, e);
|
4452
4203
|
},
|
4453
4204
|
onChange: function onChange(e) {
|
4454
|
-
return _this8.handleChange(index, e
|
4205
|
+
return _this8.handleChange(index, e);
|
4455
4206
|
}
|
4456
4207
|
})
|
4457
4208
|
)
|
@@ -4660,22 +4411,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4660
4411
|
return _this8.czkInput = input;
|
4661
4412
|
},
|
4662
4413
|
onKeyDown: function () {
|
4663
|
-
var
|
4414
|
+
var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
4664
4415
|
var time, _paymode;
|
4665
4416
|
|
4666
|
-
return _regenerator2.default.wrap(function
|
4417
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
4667
4418
|
while (1) {
|
4668
|
-
switch (
|
4419
|
+
switch (_context16.prev = _context16.next) {
|
4669
4420
|
case 0:
|
4670
4421
|
if (!(e.keyCode == 13)) {
|
4671
|
-
|
4422
|
+
_context16.next = 14;
|
4672
4423
|
break;
|
4673
4424
|
}
|
4674
4425
|
|
4675
4426
|
time = Date.parse(new Date());
|
4676
4427
|
|
4677
4428
|
if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
|
4678
|
-
|
4429
|
+
_context16.next = 7;
|
4679
4430
|
break;
|
4680
4431
|
}
|
4681
4432
|
|
@@ -4684,11 +4435,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4684
4435
|
_this8.setState({
|
4685
4436
|
czkValue: null
|
4686
4437
|
});
|
4687
|
-
return
|
4438
|
+
return _context16.abrupt('return');
|
4688
4439
|
|
4689
4440
|
case 7:
|
4690
4441
|
_this8.keypressStime = null;
|
4691
|
-
|
4442
|
+
_context16.next = 10;
|
4692
4443
|
return _this8.loadCzk(e.target.value);
|
4693
4444
|
|
4694
4445
|
case 10:
|
@@ -4699,7 +4450,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4699
4450
|
czkvalue: null
|
4700
4451
|
});
|
4701
4452
|
}
|
4702
|
-
|
4453
|
+
_context16.next = 15;
|
4703
4454
|
break;
|
4704
4455
|
|
4705
4456
|
case 14:
|
@@ -4709,14 +4460,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4709
4460
|
|
4710
4461
|
case 15:
|
4711
4462
|
case 'end':
|
4712
|
-
return
|
4463
|
+
return _context16.stop();
|
4713
4464
|
}
|
4714
4465
|
}
|
4715
|
-
},
|
4466
|
+
}, _callee16, _this8);
|
4716
4467
|
}));
|
4717
4468
|
|
4718
|
-
return function (
|
4719
|
-
return
|
4469
|
+
return function (_x11) {
|
4470
|
+
return _ref28.apply(this, arguments);
|
4720
4471
|
};
|
4721
4472
|
}(),
|
4722
4473
|
onFocus: function onFocus(e) {
|
@@ -4773,8 +4524,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4773
4524
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4774
4525
|
},
|
4775
4526
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4776
|
-
ref: function ref(
|
4777
|
-
return _this8["inputCzkAmount"] =
|
4527
|
+
ref: function ref(_ref29) {
|
4528
|
+
return _this8["inputCzkAmount"] = _ref29;
|
4778
4529
|
},
|
4779
4530
|
onFocus: function onFocus(e) {
|
4780
4531
|
_this8.inputkey = "inputCzkAmount";
|
@@ -5367,12 +5118,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5367
5118
|
_react2.default.createElement(
|
5368
5119
|
'div',
|
5369
5120
|
{ className: 'value' },
|
5370
|
-
currentMode && currentMode.member && (0, _utils.getFixedNumber)(currentMode.
|
5121
|
+
currentMode && currentMode.member && (0, _utils.getFixedNumber)(currentMode.member.exchangable)
|
5371
5122
|
),
|
5372
5123
|
_react2.default.createElement(
|
5373
5124
|
'div',
|
5374
5125
|
{ className: 'name' },
|
5375
|
-
'\
|
5126
|
+
'\u53EF\u62B5\u73B0\u91D1\u989D'
|
5376
5127
|
)
|
5377
5128
|
),
|
5378
5129
|
_react2.default.createElement(
|
@@ -5393,7 +5144,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5393
5144
|
_react2.default.createElement(
|
5394
5145
|
'div',
|
5395
5146
|
{ className: 'name' },
|
5396
|
-
'\u672C\u5355\u53EF\
|
5147
|
+
'\u672C\u5355\u53EF\u7528'
|
5397
5148
|
)
|
5398
5149
|
)
|
5399
5150
|
),
|
@@ -5444,8 +5195,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5444
5195
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5445
5196
|
},
|
5446
5197
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5447
|
-
ref: function ref(
|
5448
|
-
return _this8["inputJfdxAmount"] =
|
5198
|
+
ref: function ref(_ref30) {
|
5199
|
+
return _this8["inputJfdxAmount"] = _ref30;
|
5449
5200
|
},
|
5450
5201
|
onFocus: function onFocus(e) {
|
5451
5202
|
_this8.inputkey = "inputJfdxAmount";
|