tplus-components-touch 3.39.12 → 3.40.3
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 +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +21 -44
- 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 +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.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 +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.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 +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 +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/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 +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.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 +67 -90
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1705 -1705
- package/dist/components/settlement/settlementStore.js +22 -32
- 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 +14 -12
- 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 +34 -34
- package/tsconfig.json +26 -26
@@ -1008,11 +1008,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1008
1008
|
}, 200);
|
1009
1009
|
|
1010
1010
|
// TODO: 测试优惠券支付
|
1011
|
-
|
1012
|
-
var _ref10 = _mutantsUtil.platform || {},
|
1013
|
-
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
1014
|
-
|
1015
|
-
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
1011
|
+
if (!_this2.store.paymode.currentMode.boriginReturn) {
|
1016
1012
|
_this2.store.getCouponList();
|
1017
1013
|
}
|
1018
1014
|
};
|
@@ -1094,8 +1090,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1094
1090
|
};
|
1095
1091
|
|
1096
1092
|
_this2.checkOfflineEnable = function (paymode, key) {
|
1097
|
-
var
|
1098
|
-
paymodes =
|
1093
|
+
var _ref10 = paymode || {},
|
1094
|
+
paymodes = _ref10.paymodes;
|
1099
1095
|
|
1100
1096
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
1101
1097
|
|
@@ -1446,15 +1442,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1446
1442
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
1447
1443
|
return;
|
1448
1444
|
}
|
1449
|
-
|
1450
|
-
var _ref12 = _mutantsUtil.platform || {},
|
1451
|
-
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
1452
|
-
|
1453
|
-
if (isNewRetailBCPos) {
|
1454
|
-
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1455
|
-
} else {
|
1456
|
-
_this2.store.paymode.calcDjqValue(q);
|
1457
|
-
}
|
1445
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
1458
1446
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
1459
1447
|
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
1460
1448
|
};
|
@@ -1947,13 +1935,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1947
1935
|
if (_this2.hasElectron === false) return;
|
1948
1936
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1949
1937
|
|
1950
|
-
var
|
1951
|
-
guestshow_enable =
|
1952
|
-
guestshow_clear =
|
1953
|
-
guestshow_welcome =
|
1954
|
-
guestshow_collect =
|
1955
|
-
guestshow_refund =
|
1956
|
-
guestshow_change =
|
1938
|
+
var _ref14 = dt || {},
|
1939
|
+
guestshow_enable = _ref14.guestshow_enable,
|
1940
|
+
guestshow_clear = _ref14.guestshow_clear,
|
1941
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
1942
|
+
guestshow_collect = _ref14.guestshow_collect,
|
1943
|
+
guestshow_refund = _ref14.guestshow_refund,
|
1944
|
+
guestshow_change = _ref14.guestshow_change;
|
1957
1945
|
|
1958
1946
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
1959
1947
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -1988,9 +1976,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1988
1976
|
};
|
1989
1977
|
|
1990
1978
|
_this2.handleSettle = function () {
|
1991
|
-
var
|
1979
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
1992
1980
|
var handleUserInputs = function () {
|
1993
|
-
var
|
1981
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
1994
1982
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
1995
1983
|
|
1996
1984
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
@@ -2081,7 +2069,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2081
2069
|
}));
|
2082
2070
|
|
2083
2071
|
return function handleUserInputs(_x6) {
|
2084
|
-
return
|
2072
|
+
return _ref17.apply(this, arguments);
|
2085
2073
|
};
|
2086
2074
|
}();
|
2087
2075
|
|
@@ -2174,7 +2162,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2174
2162
|
});
|
2175
2163
|
|
2176
2164
|
commit = function () {
|
2177
|
-
var
|
2165
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2178
2166
|
var result;
|
2179
2167
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2180
2168
|
while (1) {
|
@@ -2248,7 +2236,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2248
2236
|
}));
|
2249
2237
|
|
2250
2238
|
return function commit(_x5) {
|
2251
|
-
return
|
2239
|
+
return _ref16.apply(this, arguments);
|
2252
2240
|
};
|
2253
2241
|
}();
|
2254
2242
|
|
@@ -2263,13 +2251,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2263
2251
|
}));
|
2264
2252
|
|
2265
2253
|
return function (_x4) {
|
2266
|
-
return
|
2254
|
+
return _ref15.apply(this, arguments);
|
2267
2255
|
};
|
2268
2256
|
}();
|
2269
2257
|
|
2270
2258
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2271
2259
|
var handleUserInputs = function () {
|
2272
|
-
var
|
2260
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2273
2261
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2274
2262
|
|
2275
2263
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
@@ -2366,11 +2354,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2366
2354
|
}));
|
2367
2355
|
|
2368
2356
|
return function handleUserInputs(_x8) {
|
2369
|
-
return
|
2357
|
+
return _ref20.apply(this, arguments);
|
2370
2358
|
};
|
2371
2359
|
}();
|
2372
2360
|
|
2373
|
-
var that, curmode, promises,
|
2361
|
+
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2374
2362
|
|
2375
2363
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2376
2364
|
while (1) {
|
@@ -2379,28 +2367,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2379
2367
|
that = _this2;
|
2380
2368
|
curmode = _this2.store.paymode.currentMode;
|
2381
2369
|
promises = [];
|
2382
|
-
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
2383
2370
|
|
2384
|
-
if (
|
2385
|
-
|
2386
|
-
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2371
|
+
if (curmode.value > 0) {
|
2372
|
+
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
2387
2373
|
|
2388
|
-
|
2389
|
-
|
2390
|
-
|
2391
|
-
|
2392
|
-
|
2393
|
-
}
|
2374
|
+
if (curmode.paymentType === PayStyle.hyczk) {
|
2375
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD') {
|
2376
|
+
!curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
|
2377
|
+
} else {
|
2378
|
+
curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
|
2394
2379
|
}
|
2395
2380
|
}
|
2396
|
-
} else {
|
2397
|
-
if (curmode.member.needPwd && curmode.value > 0) {
|
2398
|
-
promises.push(that.inputPwd(curmode));
|
2399
|
-
}
|
2400
2381
|
}
|
2401
2382
|
|
2402
2383
|
commit = function () {
|
2403
|
-
var
|
2384
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2404
2385
|
var result;
|
2405
2386
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2406
2387
|
while (1) {
|
@@ -2450,13 +2431,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2450
2431
|
}));
|
2451
2432
|
|
2452
2433
|
return function commit(_x7) {
|
2453
|
-
return
|
2434
|
+
return _ref19.apply(this, arguments);
|
2454
2435
|
};
|
2455
2436
|
}();
|
2456
2437
|
|
2457
2438
|
handleUserInputs(promises);
|
2458
2439
|
|
2459
|
-
case
|
2440
|
+
case 6:
|
2460
2441
|
case 'end':
|
2461
2442
|
return _context14.stop();
|
2462
2443
|
}
|
@@ -2501,7 +2482,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2501
2482
|
};
|
2502
2483
|
|
2503
2484
|
_this2.inputPwd = function () {
|
2504
|
-
var
|
2485
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2505
2486
|
var that, confirmPwd;
|
2506
2487
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2507
2488
|
while (1) {
|
@@ -2517,8 +2498,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2517
2498
|
// if (v !== '') {
|
2518
2499
|
modal.destroy();
|
2519
2500
|
|
2520
|
-
var
|
2521
|
-
confirmPwd =
|
2501
|
+
var _ref22 = that.state || {},
|
2502
|
+
confirmPwd = _ref22.confirmPwd;
|
2522
2503
|
|
2523
2504
|
setTimeout(function () {
|
2524
2505
|
paymode.authCode = v;
|
@@ -2609,8 +2590,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2609
2590
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2610
2591
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2611
2592
|
|
2612
|
-
var
|
2613
|
-
confirmPwd =
|
2593
|
+
var _ref23 = that.state || {},
|
2594
|
+
confirmPwd = _ref23.confirmPwd;
|
2614
2595
|
// if (v !== '') {
|
2615
2596
|
|
2616
2597
|
|
@@ -2651,12 +2632,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2651
2632
|
}));
|
2652
2633
|
|
2653
2634
|
return function (_x9) {
|
2654
|
-
return
|
2635
|
+
return _ref21.apply(this, arguments);
|
2655
2636
|
};
|
2656
2637
|
}();
|
2657
2638
|
|
2658
2639
|
_this2.btnDebounced = function () {
|
2659
|
-
var
|
2640
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
2660
2641
|
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
2661
2642
|
|
2662
2643
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
@@ -2763,14 +2744,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2763
2744
|
}));
|
2764
2745
|
|
2765
2746
|
return function (_x10, _x11) {
|
2766
|
-
return
|
2747
|
+
return _ref24.apply(this, arguments);
|
2767
2748
|
};
|
2768
2749
|
}();
|
2769
2750
|
|
2770
2751
|
_this2.onCzkChange = function (v) {
|
2771
2752
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
2772
|
-
var
|
2773
|
-
isNewRetailBCPos =
|
2753
|
+
var _ref25 = _mutantsUtil.platform || {},
|
2754
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
2774
2755
|
|
2775
2756
|
if (!isNewRetailBCPos) {
|
2776
2757
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -3379,12 +3360,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3379
3360
|
|
3380
3361
|
_this2.hasElectron = hasElectron;
|
3381
3362
|
|
3382
|
-
var
|
3383
|
-
MemberMeStorageCardInputByKeyBoard =
|
3384
|
-
ICCardServer =
|
3385
|
-
ICCardPassword =
|
3386
|
-
PreSellOrBook =
|
3387
|
-
PercentageWhenBook =
|
3363
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3364
|
+
MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
|
3365
|
+
ICCardServer = _ref26.ICCardServer,
|
3366
|
+
ICCardPassword = _ref26.ICCardPassword,
|
3367
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
3368
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
3388
3369
|
|
3389
3370
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3390
3371
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
@@ -3393,9 +3374,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3393
3374
|
_this2.percentageWhenBook = PercentageWhenBook;
|
3394
3375
|
//移动端环境下,没有读取IC卡的方式。
|
3395
3376
|
|
3396
|
-
var
|
3397
|
-
isHorizontalPad =
|
3398
|
-
isHorizontalSunMi =
|
3377
|
+
var _ref27 = _mutantsUtil.platform || {},
|
3378
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
3379
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
3399
3380
|
|
3400
3381
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3401
3382
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3527,11 +3508,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3527
3508
|
return true;
|
3528
3509
|
}
|
3529
3510
|
|
3530
|
-
/**
|
3531
|
-
*
|
3532
|
-
* @param {*} thePaymodes 支付方式列表
|
3533
|
-
* @param {*} currenIndex 当前支付方式下标
|
3534
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3511
|
+
/**
|
3512
|
+
*
|
3513
|
+
* @param {*} thePaymodes 支付方式列表
|
3514
|
+
* @param {*} currenIndex 当前支付方式下标
|
3515
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3535
3516
|
*/
|
3536
3517
|
|
3537
3518
|
// 处理客显显示功能
|
@@ -3541,8 +3522,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3541
3522
|
}, {
|
3542
3523
|
key: 'isNoProductTip',
|
3543
3524
|
value: function isNoProductTip(nonProductMap) {
|
3544
|
-
var
|
3545
|
-
RetailDetails =
|
3525
|
+
var _ref28 = this.context.viewModel.data || {},
|
3526
|
+
RetailDetails = _ref28.RetailDetails;
|
3546
3527
|
|
3547
3528
|
var temphtml = [];
|
3548
3529
|
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
@@ -3729,10 +3710,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3729
3710
|
newPassConfirm = _state2.newPassConfirm,
|
3730
3711
|
newPass = _state2.newPass,
|
3731
3712
|
isNotAutoFocus = _state2.isNotAutoFocus;
|
3732
|
-
|
3733
|
-
var _ref32 = _mutantsUtil.platform || {},
|
3734
|
-
isNewRetailBCPos = _ref32.isNewRetailBCPos;
|
3735
|
-
|
3736
3713
|
var _store2 = this.store,
|
3737
3714
|
paymode = _store2.paymode,
|
3738
3715
|
brefund = _store2.brefund,
|
@@ -3817,11 +3794,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3817
3794
|
quantity4 = 0;
|
3818
3795
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3819
3796
|
|
3820
|
-
var
|
3821
|
-
|
3822
|
-
buyQuantity =
|
3823
|
-
|
3824
|
-
returnQuantity =
|
3797
|
+
var _ref29 = quantityDetail || {},
|
3798
|
+
_ref29$buyQuantity = _ref29.buyQuantity,
|
3799
|
+
buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
|
3800
|
+
_ref29$returnQuantity = _ref29.returnQuantity,
|
3801
|
+
returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
|
3825
3802
|
|
3826
3803
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3827
3804
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -4706,7 +4683,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4706
4683
|
return _this8.czkInput = input;
|
4707
4684
|
},
|
4708
4685
|
onKeyDown: function () {
|
4709
|
-
var
|
4686
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
|
4710
4687
|
var time, _paymode;
|
4711
4688
|
|
4712
4689
|
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
@@ -4762,7 +4739,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4762
4739
|
}));
|
4763
4740
|
|
4764
4741
|
return function (_x13) {
|
4765
|
-
return
|
4742
|
+
return _ref30.apply(this, arguments);
|
4766
4743
|
};
|
4767
4744
|
}(),
|
4768
4745
|
onFocus: function onFocus(e) {
|
@@ -4819,8 +4796,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4819
4796
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4820
4797
|
},
|
4821
4798
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4822
|
-
ref: function ref(
|
4823
|
-
return _this8["inputCzkAmount"] =
|
4799
|
+
ref: function ref(_ref31) {
|
4800
|
+
return _this8["inputCzkAmount"] = _ref31;
|
4824
4801
|
},
|
4825
4802
|
onFocus: function onFocus(e) {
|
4826
4803
|
_this8.inputkey = "inputCzkAmount";
|
@@ -5490,8 +5467,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5490
5467
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5491
5468
|
},
|
5492
5469
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5493
|
-
ref: function ref(
|
5494
|
-
return _this8["inputJfdxAmount"] =
|
5470
|
+
ref: function ref(_ref32) {
|
5471
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
5495
5472
|
},
|
5496
5473
|
onFocus: function onFocus(e) {
|
5497
5474
|
_this8.inputkey = "inputJfdxAmount";
|