tplus-components-touch 3.47.2 → 3.48.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 +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +6 -6
- 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/cloudPrint/printTemplate/dialy_one.json +238 -238
- package/dist/components/cloudPrint/printTemplate/duty_one.json +238 -238
- package/dist/components/cloudPrint/printTemplate/retail_one.json +203 -203
- package/dist/components/cloudPrint/printTemplate/retail_two.json +219 -219
- package/dist/components/cloudPrint/printTemplate/storage_one.json +128 -128
- package/dist/components/cloudPrint/printTemplate/template.js +7 -7
- package/dist/components/cloudPrint/printTemplate/template.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 +6 -6
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js +7 -7
- 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.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.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 -11
- 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 +16 -31
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -263
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/presale/pickup.js.map +1 -1
- package/dist/components/presale/style.less +58 -58
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js +1 -4
- 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 +220 -278
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1705 -1708
- package/dist/components/settlement/settlementStore.js +711 -714
- 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_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.eot +0 -0
- package/dist/components/ticon/iconfont/iconfont.js +1 -2
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -0
- 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 +25 -30
- 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/settlement/settlementApi.js +0 -512
- package/dist/components/settlement/settlementApi.js.map +0 -1
@@ -227,7 +227,6 @@ var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.
|
|
227
227
|
var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_React$Component) {
|
228
228
|
(0, _inherits3.default)(Settlement, _React$Component);
|
229
229
|
|
230
|
-
// 复核结算方式快捷键列表
|
231
230
|
function Settlement(props) {
|
232
231
|
var _this3 = this;
|
233
232
|
|
@@ -270,13 +269,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
270
269
|
czkValue: null,
|
271
270
|
isInputMember: false,
|
272
271
|
selectedRowIndex: 0,
|
273
|
-
isNotAutoFocus: true
|
272
|
+
isNotAutoFocus: true
|
273
|
+
// 复核结算方式快捷键列表
|
274
|
+
};
|
274
275
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
275
276
|
return key.toLocaleUpperCase();
|
276
277
|
});
|
277
278
|
_this2.hotkeydebounced = null;
|
278
279
|
_this2.hotkeydebouncedPayMode = "";
|
279
|
-
_this2.voucherRunningFast = false;
|
280
280
|
_this2.currentInput = null;
|
281
281
|
|
282
282
|
_this2.getIsReturn = function () {
|
@@ -1821,7 +1821,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1821
1821
|
};
|
1822
1822
|
|
1823
1823
|
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
1824
|
-
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, isFull, resp1;
|
1824
|
+
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, _this2$store6, getSettleGift, isFull, type, resp1;
|
1825
1825
|
|
1826
1826
|
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
1827
1827
|
while (1) {
|
@@ -1881,13 +1881,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1881
1881
|
}
|
1882
1882
|
};
|
1883
1883
|
|
1884
|
-
|
1885
|
-
|
1886
|
-
|
1884
|
+
_this2$store6 = _this2.store, getSettleGift = _this2$store6.getSettleGift, isFull = _this2$store6.isFull;
|
1885
|
+
type = _this2.props.type;
|
1886
|
+
resp1 = false;
|
1887
|
+
|
1888
|
+
if (!(type !== 1)) {
|
1889
|
+
_context8.next = 20;
|
1890
|
+
break;
|
1891
|
+
}
|
1887
1892
|
|
1888
|
-
|
1893
|
+
_context8.prev = 11;
|
1894
|
+
_context8.next = 14;
|
1895
|
+
return getSettleGift();
|
1896
|
+
|
1897
|
+
case 14:
|
1889
1898
|
resp1 = _context8.sent;
|
1899
|
+
_context8.next = 20;
|
1900
|
+
break;
|
1890
1901
|
|
1902
|
+
case 17:
|
1903
|
+
_context8.prev = 17;
|
1904
|
+
_context8.t0 = _context8['catch'](11);
|
1905
|
+
|
1906
|
+
console.log("获取支付礼包getSettleGift失败");
|
1907
|
+
|
1908
|
+
case 20:
|
1891
1909
|
|
1892
1910
|
setTimeout(function () {
|
1893
1911
|
if (window.__loadingModal) {
|
@@ -1921,80 +1939,25 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1921
1939
|
_this2.cancelState();
|
1922
1940
|
}, 0);
|
1923
1941
|
|
1924
|
-
case
|
1942
|
+
case 21:
|
1925
1943
|
case 'end':
|
1926
1944
|
return _context8.stop();
|
1927
1945
|
}
|
1928
1946
|
}
|
1929
|
-
}, _callee8, _this3);
|
1930
|
-
}));
|
1931
|
-
_this2.settleGiftOpenedInRunningFast = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
|
1932
|
-
var resp, isCheckGift, vocherPayGift, getSettleGift, type;
|
1933
|
-
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
1934
|
-
while (1) {
|
1935
|
-
switch (_context9.prev = _context9.next) {
|
1936
|
-
case 0:
|
1937
|
-
resp = false;
|
1938
|
-
isCheckGift = true;
|
1939
|
-
|
1940
|
-
if (_this2.voucherRunningFast) {
|
1941
|
-
vocherPayGift = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherPayGift');
|
1942
|
-
|
1943
|
-
if (!vocherPayGift || vocherPayGift == 'false') {
|
1944
|
-
isCheckGift = false;
|
1945
|
-
}
|
1946
|
-
}
|
1947
|
-
|
1948
|
-
if (!isCheckGift) {
|
1949
|
-
_context9.next = 16;
|
1950
|
-
break;
|
1951
|
-
}
|
1952
|
-
|
1953
|
-
getSettleGift = _this2.store.getSettleGift;
|
1954
|
-
type = _this2.props.type;
|
1955
|
-
|
1956
|
-
if (!(type != 1)) {
|
1957
|
-
_context9.next = 16;
|
1958
|
-
break;
|
1959
|
-
}
|
1960
|
-
|
1961
|
-
_context9.prev = 7;
|
1962
|
-
_context9.next = 10;
|
1963
|
-
return getSettleGift();
|
1964
|
-
|
1965
|
-
case 10:
|
1966
|
-
resp = _context9.sent;
|
1967
|
-
_context9.next = 16;
|
1968
|
-
break;
|
1969
|
-
|
1970
|
-
case 13:
|
1971
|
-
_context9.prev = 13;
|
1972
|
-
_context9.t0 = _context9['catch'](7);
|
1973
|
-
|
1974
|
-
console.log("获取支付礼包getSettleGift失败");
|
1975
|
-
|
1976
|
-
case 16:
|
1977
|
-
return _context9.abrupt('return', resp);
|
1978
|
-
|
1979
|
-
case 17:
|
1980
|
-
case 'end':
|
1981
|
-
return _context9.stop();
|
1982
|
-
}
|
1983
|
-
}
|
1984
|
-
}, _callee9, _this3, [[7, 13]]);
|
1947
|
+
}, _callee8, _this3, [[11, 17]]);
|
1985
1948
|
}));
|
1986
1949
|
|
1987
1950
|
_this2.handleGuestShow = function (dtype, value) {
|
1988
1951
|
if (_this2.hasElectron === false) return;
|
1989
1952
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
1990
1953
|
|
1991
|
-
var
|
1992
|
-
guestshow_enable =
|
1993
|
-
guestshow_clear =
|
1994
|
-
guestshow_welcome =
|
1995
|
-
guestshow_collect =
|
1996
|
-
guestshow_refund =
|
1997
|
-
guestshow_change =
|
1954
|
+
var _ref14 = dt || {},
|
1955
|
+
guestshow_enable = _ref14.guestshow_enable,
|
1956
|
+
guestshow_clear = _ref14.guestshow_clear,
|
1957
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
1958
|
+
guestshow_collect = _ref14.guestshow_collect,
|
1959
|
+
guestshow_refund = _ref14.guestshow_refund,
|
1960
|
+
guestshow_change = _ref14.guestshow_change;
|
1998
1961
|
|
1999
1962
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
2000
1963
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
@@ -2029,115 +1992,115 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2029
1992
|
};
|
2030
1993
|
|
2031
1994
|
_this2.handleSettle = function () {
|
2032
|
-
var
|
1995
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
2033
1996
|
var handleUserInputs = function () {
|
2034
|
-
var
|
1997
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
2035
1998
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
2036
1999
|
|
2037
|
-
return _regenerator2.default.wrap(function
|
2000
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
2038
2001
|
while (1) {
|
2039
|
-
switch (
|
2002
|
+
switch (_context10.prev = _context10.next) {
|
2040
2003
|
case 0:
|
2041
2004
|
results = [];
|
2042
|
-
|
2005
|
+
_context10.prev = 1;
|
2043
2006
|
_iteratorNormalCompletion = true;
|
2044
2007
|
_didIteratorError = false;
|
2045
2008
|
_iteratorError = undefined;
|
2046
|
-
|
2009
|
+
_context10.prev = 5;
|
2047
2010
|
_iterator = (0, _getIterator3.default)(promises);
|
2048
2011
|
|
2049
2012
|
case 7:
|
2050
2013
|
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
2051
|
-
|
2014
|
+
_context10.next = 16;
|
2052
2015
|
break;
|
2053
2016
|
}
|
2054
2017
|
|
2055
2018
|
p = _step.value;
|
2056
|
-
|
2019
|
+
_context10.next = 11;
|
2057
2020
|
return p;
|
2058
2021
|
|
2059
2022
|
case 11:
|
2060
|
-
_result =
|
2023
|
+
_result = _context10.sent;
|
2061
2024
|
|
2062
2025
|
results.push(_result);
|
2063
2026
|
|
2064
2027
|
case 13:
|
2065
2028
|
_iteratorNormalCompletion = true;
|
2066
|
-
|
2029
|
+
_context10.next = 7;
|
2067
2030
|
break;
|
2068
2031
|
|
2069
2032
|
case 16:
|
2070
|
-
|
2033
|
+
_context10.next = 22;
|
2071
2034
|
break;
|
2072
2035
|
|
2073
2036
|
case 18:
|
2074
|
-
|
2075
|
-
|
2037
|
+
_context10.prev = 18;
|
2038
|
+
_context10.t0 = _context10['catch'](5);
|
2076
2039
|
_didIteratorError = true;
|
2077
|
-
_iteratorError =
|
2040
|
+
_iteratorError = _context10.t0;
|
2078
2041
|
|
2079
2042
|
case 22:
|
2080
|
-
|
2081
|
-
|
2043
|
+
_context10.prev = 22;
|
2044
|
+
_context10.prev = 23;
|
2082
2045
|
|
2083
2046
|
if (!_iteratorNormalCompletion && _iterator.return) {
|
2084
2047
|
_iterator.return();
|
2085
2048
|
}
|
2086
2049
|
|
2087
2050
|
case 25:
|
2088
|
-
|
2051
|
+
_context10.prev = 25;
|
2089
2052
|
|
2090
2053
|
if (!_didIteratorError) {
|
2091
|
-
|
2054
|
+
_context10.next = 28;
|
2092
2055
|
break;
|
2093
2056
|
}
|
2094
2057
|
|
2095
2058
|
throw _iteratorError;
|
2096
2059
|
|
2097
2060
|
case 28:
|
2098
|
-
return
|
2061
|
+
return _context10.finish(25);
|
2099
2062
|
|
2100
2063
|
case 29:
|
2101
|
-
return
|
2064
|
+
return _context10.finish(22);
|
2102
2065
|
|
2103
2066
|
case 30:
|
2104
2067
|
window.__loadingModal = (0, _utils.openLoadingModal)();
|
2105
|
-
|
2068
|
+
_context10.next = 33;
|
2106
2069
|
return commit(results);
|
2107
2070
|
|
2108
2071
|
case 33:
|
2109
|
-
|
2072
|
+
_context10.next = 37;
|
2110
2073
|
break;
|
2111
2074
|
|
2112
2075
|
case 35:
|
2113
|
-
|
2114
|
-
|
2076
|
+
_context10.prev = 35;
|
2077
|
+
_context10.t1 = _context10['catch'](1);
|
2115
2078
|
|
2116
2079
|
case 37:
|
2117
2080
|
case 'end':
|
2118
|
-
return
|
2081
|
+
return _context10.stop();
|
2119
2082
|
}
|
2120
2083
|
}
|
2121
|
-
},
|
2084
|
+
}, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
|
2122
2085
|
}));
|
2123
2086
|
|
2124
2087
|
return function handleUserInputs(_x6) {
|
2125
|
-
return
|
2088
|
+
return _ref17.apply(this, arguments);
|
2126
2089
|
};
|
2127
2090
|
}();
|
2128
2091
|
|
2129
|
-
var _enumController$getEn21, PayStyle, _this2$
|
2092
|
+
var _enumController$getEn21, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
2130
2093
|
|
2131
|
-
return _regenerator2.default.wrap(function
|
2094
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
2132
2095
|
while (1) {
|
2133
|
-
switch (
|
2096
|
+
switch (_context11.prev = _context11.next) {
|
2134
2097
|
case 0:
|
2135
2098
|
_this2.setState({
|
2136
2099
|
settleDisabled: true
|
2137
2100
|
});
|
2138
2101
|
console.log("settlement.handleSettle开始执行,参数:", +args);
|
2139
2102
|
_enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
|
2140
|
-
_this2$
|
2103
|
+
_this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
|
2141
2104
|
isQuickPay = args === 'quickPay';
|
2142
2105
|
that = _this2;
|
2143
2106
|
status = false;
|
@@ -2152,7 +2115,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2152
2115
|
});
|
2153
2116
|
|
2154
2117
|
if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
|
2155
|
-
|
2118
|
+
_context11.next = 13;
|
2156
2119
|
break;
|
2157
2120
|
}
|
2158
2121
|
|
@@ -2160,11 +2123,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2160
2123
|
_this2.setState({
|
2161
2124
|
settleDisabled: false
|
2162
2125
|
});
|
2163
|
-
return
|
2126
|
+
return _context11.abrupt('return');
|
2164
2127
|
|
2165
2128
|
case 13:
|
2166
2129
|
if (!(args !== "zero" && !newStyle)) {
|
2167
|
-
|
2130
|
+
_context11.next = 19;
|
2168
2131
|
break;
|
2169
2132
|
}
|
2170
2133
|
|
@@ -2173,7 +2136,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2173
2136
|
});
|
2174
2137
|
|
2175
2138
|
if (!zeromode) {
|
2176
|
-
|
2139
|
+
_context11.next = 19;
|
2177
2140
|
break;
|
2178
2141
|
}
|
2179
2142
|
|
@@ -2181,7 +2144,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2181
2144
|
settleDisabled: false
|
2182
2145
|
});
|
2183
2146
|
_message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
|
2184
|
-
return
|
2147
|
+
return _context11.abrupt('return');
|
2185
2148
|
|
2186
2149
|
case 19:
|
2187
2150
|
promises = [];
|
@@ -2190,14 +2153,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2190
2153
|
}) : paymode.thePaymodes, 'orderBy');
|
2191
2154
|
|
2192
2155
|
if (!isQuickPay) {
|
2193
|
-
|
2156
|
+
_context11.next = 27;
|
2194
2157
|
break;
|
2195
2158
|
}
|
2196
2159
|
|
2197
2160
|
quickmode = thePaymodes[0];
|
2198
2161
|
|
2199
2162
|
if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
|
2200
|
-
|
2163
|
+
_context11.next = 27;
|
2201
2164
|
break;
|
2202
2165
|
}
|
2203
2166
|
|
@@ -2205,7 +2168,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2205
2168
|
settleDisabled: false
|
2206
2169
|
});
|
2207
2170
|
_message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
|
2208
|
-
return
|
2171
|
+
return _context11.abrupt('return');
|
2209
2172
|
|
2210
2173
|
case 27:
|
2211
2174
|
(0, _forEach3.default)(thePaymodes, function (mode) {
|
@@ -2215,27 +2178,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2215
2178
|
});
|
2216
2179
|
|
2217
2180
|
commit = function () {
|
2218
|
-
var
|
2181
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
2219
2182
|
var result;
|
2220
|
-
return _regenerator2.default.wrap(function
|
2183
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
2221
2184
|
while (1) {
|
2222
|
-
switch (
|
2185
|
+
switch (_context9.prev = _context9.next) {
|
2223
2186
|
case 0:
|
2224
|
-
|
2187
|
+
_context9.next = 2;
|
2225
2188
|
return _this2.store.commit(_this2.props.bTest);
|
2226
2189
|
|
2227
2190
|
case 2:
|
2228
|
-
result =
|
2191
|
+
result = _context9.sent;
|
2229
2192
|
|
2230
2193
|
if (!(result === true)) {
|
2231
|
-
|
2194
|
+
_context9.next = 8;
|
2232
2195
|
break;
|
2233
2196
|
}
|
2234
2197
|
|
2235
2198
|
//成功
|
2236
2199
|
that.settleSuccess();
|
2237
2200
|
_promise2.default.resolve();
|
2238
|
-
|
2201
|
+
_context9.next = 23;
|
2239
2202
|
break;
|
2240
2203
|
|
2241
2204
|
case 8:
|
@@ -2252,24 +2215,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2252
2215
|
}, 0);
|
2253
2216
|
|
2254
2217
|
if (!(result && (result.Code || result.code))) {
|
2255
|
-
|
2218
|
+
_context9.next = 20;
|
2256
2219
|
break;
|
2257
2220
|
}
|
2258
2221
|
|
2259
|
-
|
2260
|
-
|
2222
|
+
_context9.t0 = result.Code || result.code;
|
2223
|
+
_context9.next = _context9.t0 === 'RE_Settle_UnReturn' ? 14 : _context9.t0 === 'ECONNABORTED' ? 18 : 20;
|
2261
2224
|
break;
|
2262
2225
|
|
2263
2226
|
case 14:
|
2264
2227
|
console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
|
2265
2228
|
_this2.props.clearVoucherData && _this2.props.clearVoucherData();
|
2266
2229
|
_this2.cancelState();
|
2267
|
-
return
|
2230
|
+
return _context9.abrupt('break', 20);
|
2268
2231
|
|
2269
2232
|
case 18:
|
2270
2233
|
//error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
|
2271
2234
|
result.message.indexOf('timeout') > -1 && that.settleUnReturn();
|
2272
|
-
return
|
2235
|
+
return _context9.abrupt('break', 20);
|
2273
2236
|
|
2274
2237
|
case 20:
|
2275
2238
|
if (isQuickPay) {
|
@@ -2277,19 +2240,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2277
2240
|
that.cancelState();
|
2278
2241
|
}
|
2279
2242
|
|
2280
|
-
|
2243
|
+
_context9.next = 23;
|
2281
2244
|
return _promise2.default.reject();
|
2282
2245
|
|
2283
2246
|
case 23:
|
2284
2247
|
case 'end':
|
2285
|
-
return
|
2248
|
+
return _context9.stop();
|
2286
2249
|
}
|
2287
2250
|
}
|
2288
|
-
},
|
2251
|
+
}, _callee9, _this3);
|
2289
2252
|
}));
|
2290
2253
|
|
2291
2254
|
return function commit(_x5) {
|
2292
|
-
return
|
2255
|
+
return _ref16.apply(this, arguments);
|
2293
2256
|
};
|
2294
2257
|
}();
|
2295
2258
|
|
@@ -2297,102 +2260,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2297
2260
|
|
2298
2261
|
case 30:
|
2299
2262
|
case 'end':
|
2300
|
-
return
|
2263
|
+
return _context11.stop();
|
2301
2264
|
}
|
2302
2265
|
}
|
2303
|
-
},
|
2266
|
+
}, _callee11, _this3);
|
2304
2267
|
}));
|
2305
2268
|
|
2306
2269
|
return function (_x4) {
|
2307
|
-
return
|
2270
|
+
return _ref15.apply(this, arguments);
|
2308
2271
|
};
|
2309
2272
|
}();
|
2310
2273
|
|
2311
|
-
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
2274
|
+
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
2312
2275
|
var handleUserInputs = function () {
|
2313
|
-
var
|
2276
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
2314
2277
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
2315
2278
|
|
2316
|
-
return _regenerator2.default.wrap(function
|
2279
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
2317
2280
|
while (1) {
|
2318
|
-
switch (
|
2281
|
+
switch (_context13.prev = _context13.next) {
|
2319
2282
|
case 0:
|
2320
2283
|
results = [];
|
2321
|
-
|
2284
|
+
_context13.prev = 1;
|
2322
2285
|
_iteratorNormalCompletion2 = true;
|
2323
2286
|
_didIteratorError2 = false;
|
2324
2287
|
_iteratorError2 = undefined;
|
2325
|
-
|
2288
|
+
_context13.prev = 5;
|
2326
2289
|
_iterator2 = (0, _getIterator3.default)(promises);
|
2327
2290
|
|
2328
2291
|
case 7:
|
2329
2292
|
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
|
2330
|
-
|
2293
|
+
_context13.next = 16;
|
2331
2294
|
break;
|
2332
2295
|
}
|
2333
2296
|
|
2334
2297
|
p = _step2.value;
|
2335
|
-
|
2298
|
+
_context13.next = 11;
|
2336
2299
|
return p;
|
2337
2300
|
|
2338
2301
|
case 11:
|
2339
|
-
_result2 =
|
2302
|
+
_result2 = _context13.sent;
|
2340
2303
|
|
2341
2304
|
results.push(_result2);
|
2342
2305
|
|
2343
2306
|
case 13:
|
2344
2307
|
_iteratorNormalCompletion2 = true;
|
2345
|
-
|
2308
|
+
_context13.next = 7;
|
2346
2309
|
break;
|
2347
2310
|
|
2348
2311
|
case 16:
|
2349
|
-
|
2312
|
+
_context13.next = 22;
|
2350
2313
|
break;
|
2351
2314
|
|
2352
2315
|
case 18:
|
2353
|
-
|
2354
|
-
|
2316
|
+
_context13.prev = 18;
|
2317
|
+
_context13.t0 = _context13['catch'](5);
|
2355
2318
|
_didIteratorError2 = true;
|
2356
|
-
_iteratorError2 =
|
2319
|
+
_iteratorError2 = _context13.t0;
|
2357
2320
|
|
2358
2321
|
case 22:
|
2359
|
-
|
2360
|
-
|
2322
|
+
_context13.prev = 22;
|
2323
|
+
_context13.prev = 23;
|
2361
2324
|
|
2362
2325
|
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
2363
2326
|
_iterator2.return();
|
2364
2327
|
}
|
2365
2328
|
|
2366
2329
|
case 25:
|
2367
|
-
|
2330
|
+
_context13.prev = 25;
|
2368
2331
|
|
2369
2332
|
if (!_didIteratorError2) {
|
2370
|
-
|
2333
|
+
_context13.next = 28;
|
2371
2334
|
break;
|
2372
2335
|
}
|
2373
2336
|
|
2374
2337
|
throw _iteratorError2;
|
2375
2338
|
|
2376
2339
|
case 28:
|
2377
|
-
return
|
2340
|
+
return _context13.finish(25);
|
2378
2341
|
|
2379
2342
|
case 29:
|
2380
|
-
return
|
2343
|
+
return _context13.finish(22);
|
2381
2344
|
|
2382
2345
|
case 30:
|
2383
|
-
|
2346
|
+
_context13.next = 32;
|
2384
2347
|
return commit(results);
|
2385
2348
|
|
2386
2349
|
case 32:
|
2387
|
-
|
2350
|
+
_context13.next = 37;
|
2388
2351
|
break;
|
2389
2352
|
|
2390
2353
|
case 34:
|
2391
|
-
|
2392
|
-
|
2354
|
+
_context13.prev = 34;
|
2355
|
+
_context13.t1 = _context13['catch'](1);
|
2393
2356
|
|
2394
|
-
if (
|
2395
|
-
_message2.default.error(
|
2357
|
+
if (_context13.t1 != "cancelpwd") {
|
2358
|
+
_message2.default.error(_context13.t1);
|
2396
2359
|
setTimeout(function () {
|
2397
2360
|
that.handleCzk();
|
2398
2361
|
}, 500);
|
@@ -2400,22 +2363,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2400
2363
|
|
2401
2364
|
case 37:
|
2402
2365
|
case 'end':
|
2403
|
-
return
|
2366
|
+
return _context13.stop();
|
2404
2367
|
}
|
2405
2368
|
}
|
2406
|
-
},
|
2369
|
+
}, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
|
2407
2370
|
}));
|
2408
2371
|
|
2409
2372
|
return function handleUserInputs(_x8) {
|
2410
|
-
return
|
2373
|
+
return _ref20.apply(this, arguments);
|
2411
2374
|
};
|
2412
2375
|
}();
|
2413
2376
|
|
2414
2377
|
var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
|
2415
2378
|
|
2416
|
-
return _regenerator2.default.wrap(function
|
2379
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
2417
2380
|
while (1) {
|
2418
|
-
switch (
|
2381
|
+
switch (_context14.prev = _context14.next) {
|
2419
2382
|
case 0:
|
2420
2383
|
that = _this2;
|
2421
2384
|
curmode = _this2.store.paymode.currentMode;
|
@@ -2434,33 +2397,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2434
2397
|
}
|
2435
2398
|
|
2436
2399
|
commit = function () {
|
2437
|
-
var
|
2400
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
2438
2401
|
var result;
|
2439
|
-
return _regenerator2.default.wrap(function
|
2402
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
2440
2403
|
while (1) {
|
2441
|
-
switch (
|
2404
|
+
switch (_context12.prev = _context12.next) {
|
2442
2405
|
case 0:
|
2443
2406
|
if (!(values.length > 0)) {
|
2444
|
-
|
2407
|
+
_context12.next = 6;
|
2445
2408
|
break;
|
2446
2409
|
}
|
2447
2410
|
|
2448
|
-
|
2411
|
+
_context12.next = 3;
|
2449
2412
|
return that.store.validePwd(values[0]);
|
2450
2413
|
|
2451
2414
|
case 3:
|
2452
|
-
|
2453
|
-
|
2415
|
+
_context12.t0 = _context12.sent;
|
2416
|
+
_context12.next = 7;
|
2454
2417
|
break;
|
2455
2418
|
|
2456
2419
|
case 6:
|
2457
|
-
|
2420
|
+
_context12.t0 = "";
|
2458
2421
|
|
2459
2422
|
case 7:
|
2460
|
-
result =
|
2423
|
+
result = _context12.t0;
|
2461
2424
|
|
2462
2425
|
if (!(result == "")) {
|
2463
|
-
|
2426
|
+
_context12.next = 13;
|
2464
2427
|
break;
|
2465
2428
|
}
|
2466
2429
|
|
@@ -2468,23 +2431,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2468
2431
|
//返回
|
2469
2432
|
that.setCurrentFocusAndAddPay(curmode.paymentType, null, curmode.paymethodId);
|
2470
2433
|
_promise2.default.resolve();
|
2471
|
-
|
2434
|
+
_context12.next = 15;
|
2472
2435
|
break;
|
2473
2436
|
|
2474
2437
|
case 13:
|
2475
|
-
|
2438
|
+
_context12.next = 15;
|
2476
2439
|
return _promise2.default.reject(result);
|
2477
2440
|
|
2478
2441
|
case 15:
|
2479
2442
|
case 'end':
|
2480
|
-
return
|
2443
|
+
return _context12.stop();
|
2481
2444
|
}
|
2482
2445
|
}
|
2483
|
-
},
|
2446
|
+
}, _callee12, _this3);
|
2484
2447
|
}));
|
2485
2448
|
|
2486
2449
|
return function commit(_x7) {
|
2487
|
-
return
|
2450
|
+
return _ref19.apply(this, arguments);
|
2488
2451
|
};
|
2489
2452
|
}();
|
2490
2453
|
|
@@ -2492,10 +2455,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2492
2455
|
|
2493
2456
|
case 6:
|
2494
2457
|
case 'end':
|
2495
|
-
return
|
2458
|
+
return _context14.stop();
|
2496
2459
|
}
|
2497
2460
|
}
|
2498
|
-
},
|
2461
|
+
}, _callee14, _this3);
|
2499
2462
|
}));
|
2500
2463
|
|
2501
2464
|
_this2.fKeyboardOnOk = function (paymethodeId) {
|
@@ -2535,15 +2498,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2535
2498
|
};
|
2536
2499
|
|
2537
2500
|
_this2.inputPwd = function () {
|
2538
|
-
var
|
2501
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
2539
2502
|
var that, confirmPwd;
|
2540
|
-
return _regenerator2.default.wrap(function
|
2503
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
2541
2504
|
while (1) {
|
2542
|
-
switch (
|
2505
|
+
switch (_context15.prev = _context15.next) {
|
2543
2506
|
case 0:
|
2544
2507
|
that = _this2;
|
2545
2508
|
confirmPwd = _this2.state.confirmPwd;
|
2546
|
-
return
|
2509
|
+
return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
|
2547
2510
|
var modal = (0, _asyncModal2.default)({
|
2548
2511
|
onPressEnter: function onPressEnter() {
|
2549
2512
|
_keyboard2.default.close();
|
@@ -2551,8 +2514,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2551
2514
|
// if (v !== '') {
|
2552
2515
|
modal.destroy();
|
2553
2516
|
|
2554
|
-
var
|
2555
|
-
confirmPwd =
|
2517
|
+
var _ref22 = that.state || {},
|
2518
|
+
confirmPwd = _ref22.confirmPwd;
|
2556
2519
|
|
2557
2520
|
setTimeout(function () {
|
2558
2521
|
paymode.authCode = v;
|
@@ -2643,8 +2606,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2643
2606
|
type: 'primary', size: 'large', onClick: function onClick() {
|
2644
2607
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
2645
2608
|
|
2646
|
-
var
|
2647
|
-
confirmPwd =
|
2609
|
+
var _ref23 = that.state || {},
|
2610
|
+
confirmPwd = _ref23.confirmPwd;
|
2648
2611
|
// if (v !== '') {
|
2649
2612
|
|
2650
2613
|
|
@@ -2678,24 +2641,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2678
2641
|
|
2679
2642
|
case 3:
|
2680
2643
|
case 'end':
|
2681
|
-
return
|
2644
|
+
return _context15.stop();
|
2682
2645
|
}
|
2683
2646
|
}
|
2684
|
-
},
|
2647
|
+
}, _callee15, _this3);
|
2685
2648
|
}));
|
2686
2649
|
|
2687
2650
|
return function (_x9) {
|
2688
|
-
return
|
2651
|
+
return _ref21.apply(this, arguments);
|
2689
2652
|
};
|
2690
2653
|
}();
|
2691
2654
|
|
2692
2655
|
_this2.btnDebounced = function () {
|
2693
|
-
var
|
2694
|
-
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title,
|
2656
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
|
2657
|
+
var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
|
2695
2658
|
|
2696
|
-
return _regenerator2.default.wrap(function
|
2659
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
2697
2660
|
while (1) {
|
2698
|
-
switch (
|
2661
|
+
switch (_context16.prev = _context16.next) {
|
2699
2662
|
case 0:
|
2700
2663
|
IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
|
2701
2664
|
CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
|
@@ -2704,7 +2667,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2704
2667
|
//预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
|
2705
2668
|
|
2706
2669
|
if (!(IdbusiType == 38)) {
|
2707
|
-
|
2670
|
+
_context16.next = 14;
|
2708
2671
|
break;
|
2709
2672
|
}
|
2710
2673
|
|
@@ -2715,11 +2678,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2715
2678
|
});
|
2716
2679
|
|
2717
2680
|
if (!(isEnableSerialNumber && resultObj && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE'))) {
|
2718
|
-
|
2681
|
+
_context16.next = 9;
|
2719
2682
|
break;
|
2720
2683
|
}
|
2721
2684
|
|
2722
|
-
return
|
2685
|
+
return _context16.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
|
2723
2686
|
|
2724
2687
|
case 9:
|
2725
2688
|
|
@@ -2728,49 +2691,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2728
2691
|
}
|
2729
2692
|
|
2730
2693
|
if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
|
2731
|
-
|
2694
|
+
_context16.next = 14;
|
2732
2695
|
break;
|
2733
2696
|
}
|
2734
2697
|
|
2735
2698
|
title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
|
2736
|
-
|
2699
|
+
_context16.next = 14;
|
2737
2700
|
return _this2.props.openBuyerModal(title);
|
2738
2701
|
|
2739
2702
|
case 14:
|
2740
2703
|
|
2741
|
-
// 极速模式错误校验
|
2742
|
-
|
2743
|
-
productStore = _mutantsMicrofx.stores.productStore;
|
2744
|
-
_context17.next = 17;
|
2745
|
-
return productStore.checkShouldSettlement();
|
2746
|
-
|
2747
|
-
case 17:
|
2748
|
-
checkResult = _context17.sent;
|
2749
|
-
|
2750
|
-
if (checkResult) {
|
2751
|
-
_context17.next = 20;
|
2752
|
-
break;
|
2753
|
-
}
|
2754
|
-
|
2755
|
-
return _context17.abrupt('return', false);
|
2756
|
-
|
2757
|
-
case 20:
|
2758
|
-
|
2759
2704
|
_this2.setState({
|
2760
2705
|
bquick: bquick,
|
2761
2706
|
isInputMember: true
|
2762
2707
|
});
|
2763
2708
|
_enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
|
2764
|
-
_this2$
|
2709
|
+
_this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
|
2765
2710
|
|
2766
2711
|
if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
|
2767
|
-
|
2712
|
+
_context16.next = 19;
|
2768
2713
|
break;
|
2769
2714
|
}
|
2770
2715
|
|
2771
|
-
return
|
2716
|
+
return _context16.abrupt('return', false);
|
2772
2717
|
|
2773
|
-
case
|
2718
|
+
case 19:
|
2774
2719
|
status = false;
|
2775
2720
|
|
2776
2721
|
paymode.thePaymodes.forEach(function (v) {
|
@@ -2783,13 +2728,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2783
2728
|
});
|
2784
2729
|
|
2785
2730
|
if (!_this2.btndebounced) {
|
2786
|
-
|
2731
|
+
_context16.next = 24;
|
2787
2732
|
break;
|
2788
2733
|
}
|
2789
2734
|
|
2790
|
-
return
|
2735
|
+
return _context16.abrupt('return');
|
2791
2736
|
|
2792
|
-
case
|
2737
|
+
case 24:
|
2793
2738
|
_this2.btndebounced = (0, _debounce3.default)(function () {
|
2794
2739
|
if (bquick) {
|
2795
2740
|
_this2.quickSettle(type);
|
@@ -2806,22 +2751,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
2806
2751
|
_this2.btndebounced = null;
|
2807
2752
|
}, 2000);
|
2808
2753
|
|
2809
|
-
case
|
2754
|
+
case 27:
|
2810
2755
|
case 'end':
|
2811
|
-
return
|
2756
|
+
return _context16.stop();
|
2812
2757
|
}
|
2813
2758
|
}
|
2814
|
-
},
|
2759
|
+
}, _callee16, _this3);
|
2815
2760
|
}));
|
2816
2761
|
|
2817
2762
|
return function (_x10, _x11) {
|
2818
|
-
return
|
2763
|
+
return _ref24.apply(this, arguments);
|
2819
2764
|
};
|
2820
2765
|
}();
|
2821
2766
|
|
2822
2767
|
_this2.onCzkChange = function (v) {
|
2823
|
-
var
|
2824
|
-
isNewRetailBCPos =
|
2768
|
+
var _ref25 = _mutantsUtil.platform || {},
|
2769
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
2825
2770
|
|
2826
2771
|
if (!isNewRetailBCPos) {
|
2827
2772
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
@@ -3244,9 +3189,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3244
3189
|
};
|
3245
3190
|
|
3246
3191
|
_this2.checkCurrentModeHaveMutex = function (type) {
|
3247
|
-
var _this2$
|
3248
|
-
paymode = _this2$
|
3249
|
-
newStyle = _this2$
|
3192
|
+
var _this2$store9 = _this2.store,
|
3193
|
+
paymode = _this2$store9.paymode,
|
3194
|
+
newStyle = _this2$store9.newStyle;
|
3250
3195
|
|
3251
3196
|
var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
|
3252
3197
|
PayStyle = _enumController$getEn28.PayStyle;
|
@@ -3422,12 +3367,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3422
3367
|
|
3423
3368
|
_this2.hasElectron = hasElectron;
|
3424
3369
|
|
3425
|
-
var
|
3426
|
-
MemberMeStorageCardInputByKeyBoard =
|
3427
|
-
ICCardServer =
|
3428
|
-
ICCardPassword =
|
3429
|
-
PreSellOrBook =
|
3430
|
-
PercentageWhenBook =
|
3370
|
+
var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
3371
|
+
MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
|
3372
|
+
ICCardServer = _ref26.ICCardServer,
|
3373
|
+
ICCardPassword = _ref26.ICCardPassword,
|
3374
|
+
PreSellOrBook = _ref26.PreSellOrBook,
|
3375
|
+
PercentageWhenBook = _ref26.PercentageWhenBook;
|
3431
3376
|
|
3432
3377
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
3433
3378
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
@@ -3436,9 +3381,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3436
3381
|
_this2.percentageWhenBook = PercentageWhenBook;
|
3437
3382
|
//移动端环境下,没有读取IC卡的方式。
|
3438
3383
|
|
3439
|
-
var
|
3440
|
-
isHorizontalPad =
|
3441
|
-
isHorizontalSunMi =
|
3384
|
+
var _ref27 = _mutantsUtil.platform || {},
|
3385
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
3386
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
3442
3387
|
|
3443
3388
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
3444
3389
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
@@ -3447,7 +3392,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3447
3392
|
_this2.setTimer = null;
|
3448
3393
|
_this2.keypressStime = null;
|
3449
3394
|
_this2.store = !(props.type == 1) ? _mutantsMicrofx.stores.settlementVoucherStore : _mutantsMicrofx.stores.settlementMemberStore;
|
3450
|
-
_this2.voucherRunningFast = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherRunningFast') == '1';
|
3451
3395
|
return _this2;
|
3452
3396
|
}
|
3453
3397
|
|
@@ -3580,15 +3524,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3580
3524
|
return true;
|
3581
3525
|
}
|
3582
3526
|
|
3583
|
-
/**
|
3584
|
-
*
|
3585
|
-
* @param {*} thePaymodes 支付方式列表
|
3586
|
-
* @param {*} currenIndex 当前支付方式下标
|
3587
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3527
|
+
/**
|
3528
|
+
*
|
3529
|
+
* @param {*} thePaymodes 支付方式列表
|
3530
|
+
* @param {*} currenIndex 当前支付方式下标
|
3531
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
3588
3532
|
*/
|
3589
3533
|
|
3590
|
-
// 极速模式下是否开启了支付有礼功能
|
3591
|
-
|
3592
3534
|
// 处理客显显示功能
|
3593
3535
|
|
3594
3536
|
|
@@ -3597,8 +3539,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3597
3539
|
}, {
|
3598
3540
|
key: 'isNoProductTip',
|
3599
3541
|
value: function isNoProductTip(nonProductMap) {
|
3600
|
-
var
|
3601
|
-
RetailDetails =
|
3542
|
+
var _ref28 = this.context.viewModel.data || {},
|
3543
|
+
RetailDetails = _ref28.RetailDetails;
|
3602
3544
|
|
3603
3545
|
var temphtml = [];
|
3604
3546
|
if ((0, _keys2.default)(nonProductMap).length > 0) {
|
@@ -3869,11 +3811,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3869
3811
|
quantity4 = 0;
|
3870
3812
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
3871
3813
|
|
3872
|
-
var
|
3873
|
-
|
3874
|
-
buyQuantity =
|
3875
|
-
|
3876
|
-
returnQuantity =
|
3814
|
+
var _ref29 = quantityDetail || {},
|
3815
|
+
_ref29$buyQuantity = _ref29.buyQuantity,
|
3816
|
+
buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
|
3817
|
+
_ref29$returnQuantity = _ref29.returnQuantity,
|
3818
|
+
returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
|
3877
3819
|
|
3878
3820
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
3879
3821
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
@@ -4065,7 +4007,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4065
4007
|
onClose: this.handleCancel,
|
4066
4008
|
visible: this.state.visible,
|
4067
4009
|
destroyOnClose: true,
|
4068
|
-
className: 'settlement-wraper
|
4010
|
+
className: 'settlement-wraper',
|
4069
4011
|
style: { 'zIndex': 1006 }
|
4070
4012
|
},
|
4071
4013
|
_react2.default.createElement(
|
@@ -4336,7 +4278,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4336
4278
|
onClose: this.handleCancel,
|
4337
4279
|
visible: this.state.visible,
|
4338
4280
|
destroyOnClose: true,
|
4339
|
-
className: 'settlement-wraper
|
4281
|
+
className: 'settlement-wraper',
|
4340
4282
|
style: { 'zIndex': 1006 }
|
4341
4283
|
},
|
4342
4284
|
_react2.default.createElement(
|
@@ -4646,7 +4588,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4646
4588
|
_react2.default.createElement(
|
4647
4589
|
_modal2.default,
|
4648
4590
|
{
|
4649
|
-
wrapClassName: 'czk ' + (this.
|
4591
|
+
wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
|
4650
4592
|
width: '400px',
|
4651
4593
|
visible: this.state.czkVisible,
|
4652
4594
|
maskClosable: false,
|
@@ -4758,22 +4700,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4758
4700
|
return _this8.czkInput = input;
|
4759
4701
|
},
|
4760
4702
|
onKeyDown: function () {
|
4761
|
-
var
|
4703
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
|
4762
4704
|
var time, _paymode;
|
4763
4705
|
|
4764
|
-
return _regenerator2.default.wrap(function
|
4706
|
+
return _regenerator2.default.wrap(function _callee17$(_context17) {
|
4765
4707
|
while (1) {
|
4766
|
-
switch (
|
4708
|
+
switch (_context17.prev = _context17.next) {
|
4767
4709
|
case 0:
|
4768
4710
|
if (!(e.keyCode == 13)) {
|
4769
|
-
|
4711
|
+
_context17.next = 14;
|
4770
4712
|
break;
|
4771
4713
|
}
|
4772
4714
|
|
4773
4715
|
time = Date.parse(new Date());
|
4774
4716
|
|
4775
4717
|
if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
|
4776
|
-
|
4718
|
+
_context17.next = 7;
|
4777
4719
|
break;
|
4778
4720
|
}
|
4779
4721
|
|
@@ -4782,11 +4724,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4782
4724
|
_this8.setState({
|
4783
4725
|
czkValue: null
|
4784
4726
|
});
|
4785
|
-
return
|
4727
|
+
return _context17.abrupt('return');
|
4786
4728
|
|
4787
4729
|
case 7:
|
4788
4730
|
_this8.keypressStime = null;
|
4789
|
-
|
4731
|
+
_context17.next = 10;
|
4790
4732
|
return _this8.loadCzk(e.target.value);
|
4791
4733
|
|
4792
4734
|
case 10:
|
@@ -4797,7 +4739,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4797
4739
|
czkvalue: null
|
4798
4740
|
});
|
4799
4741
|
}
|
4800
|
-
|
4742
|
+
_context17.next = 15;
|
4801
4743
|
break;
|
4802
4744
|
|
4803
4745
|
case 14:
|
@@ -4807,14 +4749,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4807
4749
|
|
4808
4750
|
case 15:
|
4809
4751
|
case 'end':
|
4810
|
-
return
|
4752
|
+
return _context17.stop();
|
4811
4753
|
}
|
4812
4754
|
}
|
4813
|
-
},
|
4755
|
+
}, _callee17, _this8);
|
4814
4756
|
}));
|
4815
4757
|
|
4816
4758
|
return function (_x13) {
|
4817
|
-
return
|
4759
|
+
return _ref30.apply(this, arguments);
|
4818
4760
|
};
|
4819
4761
|
}(),
|
4820
4762
|
onFocus: function onFocus(e) {
|
@@ -4871,8 +4813,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4871
4813
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
4872
4814
|
},
|
4873
4815
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
4874
|
-
ref: function ref(
|
4875
|
-
return _this8["inputCzkAmount"] =
|
4816
|
+
ref: function ref(_ref31) {
|
4817
|
+
return _this8["inputCzkAmount"] = _ref31;
|
4876
4818
|
},
|
4877
4819
|
onFocus: function onFocus(e) {
|
4878
4820
|
_this8.inputkey = "inputCzkAmount";
|
@@ -4924,7 +4866,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4924
4866
|
_react2.default.createElement(
|
4925
4867
|
_modal2.default,
|
4926
4868
|
{
|
4927
|
-
wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.
|
4869
|
+
wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
|
4928
4870
|
width: '400px',
|
4929
4871
|
visible: this.state.moreCzkVisible,
|
4930
4872
|
maskClosable: false,
|
@@ -4966,7 +4908,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
4966
4908
|
_react2.default.createElement(
|
4967
4909
|
_modal2.default,
|
4968
4910
|
(0, _defineProperty3.default)({
|
4969
|
-
wrapClassName: 'djq ' + (this.
|
4911
|
+
wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : '') + ' passwordContainer',
|
4970
4912
|
width: '400px',
|
4971
4913
|
visible: this.state.showSetPwdModal,
|
4972
4914
|
backdropClosable: false,
|
@@ -5063,7 +5005,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5063
5005
|
_react2.default.createElement(
|
5064
5006
|
_modal2.default,
|
5065
5007
|
{
|
5066
|
-
wrapClassName: 'djq ' + (this.
|
5008
|
+
wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : ''),
|
5067
5009
|
width: '810px',
|
5068
5010
|
visible: this.state.djqVisible,
|
5069
5011
|
maskClosable: false,
|
@@ -5387,7 +5329,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5387
5329
|
_react2.default.createElement(
|
5388
5330
|
_modal2.default,
|
5389
5331
|
{
|
5390
|
-
wrapClassName: 'czk ' + (this.
|
5332
|
+
wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
|
5391
5333
|
width: '420px',
|
5392
5334
|
visible: this.state.jfdxVisible,
|
5393
5335
|
maskClosable: false,
|
@@ -5542,8 +5484,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
5542
5484
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
5543
5485
|
},
|
5544
5486
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
5545
|
-
ref: function ref(
|
5546
|
-
return _this8["inputJfdxAmount"] =
|
5487
|
+
ref: function ref(_ref32) {
|
5488
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
5547
5489
|
},
|
5548
5490
|
onFocus: function onFocus(e) {
|
5549
5491
|
_this8.inputkey = "inputJfdxAmount";
|