tplus-components-touch 3.44.2 → 3.45.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.
Files changed (66) hide show
  1. package/dist/components/message/index.js +3 -4
  2. package/dist/components/message/index.js.map +1 -1
  3. package/dist/components/modalWraper/index.js +16 -1
  4. package/dist/components/modalWraper/index.js.map +1 -1
  5. package/dist/components/modalWraper/style.less +6 -0
  6. package/dist/components/settlement/asyncModal.js +4 -1
  7. package/dist/components/settlement/asyncModal.js.map +1 -1
  8. package/dist/components/settlement/settlement.js +274 -216
  9. package/dist/components/settlement/settlement.js.map +1 -1
  10. package/dist/components/settlement/settlement.less +3 -0
  11. package/dist/components/settlement/settlementApi.js +512 -0
  12. package/dist/components/settlement/settlementApi.js.map +1 -0
  13. package/dist/components/ticon/iconfont/demo.css +539 -539
  14. package/dist/index.js +8 -3
  15. package/dist/index.js.map +1 -1
  16. package/package.json +35 -35
  17. package/dist/components/commonForm/addressPicker/index.js +0 -241
  18. package/dist/components/commonForm/addressPicker/index.js.map +0 -1
  19. package/dist/components/commonForm/autoComplete/index.js +0 -260
  20. package/dist/components/commonForm/autoComplete/index.js.map +0 -1
  21. package/dist/components/commonForm/datePicker/index.js +0 -92
  22. package/dist/components/commonForm/datePicker/index.js.map +0 -1
  23. package/dist/components/commonForm/formControl/index.js +0 -144
  24. package/dist/components/commonForm/formControl/index.js.map +0 -1
  25. package/dist/components/commonForm/inputNumber/index.js +0 -272
  26. package/dist/components/commonForm/inputNumber/index.js.map +0 -1
  27. package/dist/components/commonForm/radio/index.js +0 -132
  28. package/dist/components/commonForm/radio/index.js.map +0 -1
  29. package/dist/components/input/tplusInput/index.js +0 -81
  30. package/dist/components/input/tplusInput/index.js.map +0 -1
  31. package/dist/components/input/tplusInput/inputContent.js +0 -128
  32. package/dist/components/input/tplusInput/inputContent.js.map +0 -1
  33. package/dist/components/input/tplusInput/inputs.js +0 -151
  34. package/dist/components/input/tplusInput/inputs.js.map +0 -1
  35. package/dist/components/input/utils/index.js +0 -26
  36. package/dist/components/input/utils/index.js.map +0 -1
  37. package/dist/components/settlement/moreCzkTable/index.js +0 -156
  38. package/dist/components/settlement/moreCzkTable/index.js.map +0 -1
  39. package/dist/components/settlement/prototypeTable/index.js +0 -353
  40. package/dist/components/settlement/prototypeTable/index.js.map +0 -1
  41. package/dist/components/settlement/prototypeTable/utils.js +0 -14
  42. package/dist/components/settlement/prototypeTable/utils.js.map +0 -1
  43. package/dist/components/settlement/settlementStore.js +0 -2816
  44. package/dist/components/settlement/settlementStore.js.map +0 -1
  45. package/dist/components/settlement/utils.js +0 -249
  46. package/dist/components/settlement/utils.js.map +0 -1
  47. package/dist/components/socket/index.js +0 -221
  48. package/dist/components/socket/index.js.map +0 -1
  49. package/dist/components/spin/index.js +0 -95
  50. package/dist/components/spin/index.js.map +0 -1
  51. package/dist/components/test/index.js +0 -330
  52. package/dist/components/test/index.js.map +0 -1
  53. package/dist/components/ticon/iconfont/iconfont.js +0 -35
  54. package/dist/components/ticon/iconfont/iconfont.js.map +0 -1
  55. package/dist/components/ticon/index.js +0 -60
  56. package/dist/components/ticon/index.js.map +0 -1
  57. package/dist/components/touchScroll/index.js +0 -186
  58. package/dist/components/touchScroll/index.js.map +0 -1
  59. package/dist/components/touchTable/AuthProcess.js +0 -42
  60. package/dist/components/touchTable/AuthProcess.js.map +0 -1
  61. package/dist/components/touchTable/generateWater.js +0 -59
  62. package/dist/components/touchTable/generateWater.js.map +0 -1
  63. package/dist/components/touchTable/index.js +0 -1135
  64. package/dist/components/touchTable/index.js.map +0 -1
  65. package/dist/components/touchTable/utils.js +0 -14
  66. package/dist/components/touchTable/utils.js.map +0 -1
@@ -227,6 +227,7 @@ 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
+ // 复核结算方式快捷键列表
230
231
  function Settlement(props) {
231
232
  var _this3 = this;
232
233
 
@@ -269,14 +270,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
269
270
  czkValue: null,
270
271
  isInputMember: false,
271
272
  selectedRowIndex: 0,
272
- isNotAutoFocus: true
273
- // 复核结算方式快捷键列表
274
- };
273
+ isNotAutoFocus: true };
275
274
  _this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
276
275
  return key.toLocaleUpperCase();
277
276
  });
278
277
  _this2.hotkeydebounced = null;
279
278
  _this2.hotkeydebouncedPayMode = "";
279
+ _this2.voucherRunningFast = false;
280
280
  _this2.currentInput = null;
281
281
 
282
282
  _this2.getIsReturn = function () {
@@ -1822,7 +1822,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1822
1822
  };
1823
1823
 
1824
1824
  _this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1825
- var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, _this2$store6, getSettleGift, isFull, type, resp1;
1825
+ var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, isFull, resp1;
1826
1826
 
1827
1827
  return _regenerator2.default.wrap(function _callee8$(_context8) {
1828
1828
  while (1) {
@@ -1882,31 +1882,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1882
1882
  }
1883
1883
  };
1884
1884
 
1885
- _this2$store6 = _this2.store, getSettleGift = _this2$store6.getSettleGift, isFull = _this2$store6.isFull;
1886
- type = _this2.props.type;
1887
- resp1 = false;
1888
-
1889
- if (!(type !== 1)) {
1890
- _context8.next = 20;
1891
- break;
1892
- }
1885
+ isFull = _this2.store.isFull;
1886
+ _context8.next = 10;
1887
+ return _this2.settleGiftOpenedInRunningFast();
1893
1888
 
1894
- _context8.prev = 11;
1895
- _context8.next = 14;
1896
- return getSettleGift();
1897
-
1898
- case 14:
1889
+ case 10:
1899
1890
  resp1 = _context8.sent;
1900
- _context8.next = 20;
1901
- break;
1902
1891
 
1903
- case 17:
1904
- _context8.prev = 17;
1905
- _context8.t0 = _context8['catch'](11);
1906
-
1907
- console.log("获取支付礼包getSettleGift失败");
1908
-
1909
- case 20:
1910
1892
 
1911
1893
  setTimeout(function () {
1912
1894
  if (window.__loadingModal) {
@@ -1940,25 +1922,80 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1940
1922
  _this2.cancelState();
1941
1923
  }, 0);
1942
1924
 
1943
- case 21:
1925
+ case 12:
1944
1926
  case 'end':
1945
1927
  return _context8.stop();
1946
1928
  }
1947
1929
  }
1948
- }, _callee8, _this3, [[11, 17]]);
1930
+ }, _callee8, _this3);
1931
+ }));
1932
+ _this2.settleGiftOpenedInRunningFast = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1933
+ var resp, isCheckGift, vocherPayGift, getSettleGift, type;
1934
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1935
+ while (1) {
1936
+ switch (_context9.prev = _context9.next) {
1937
+ case 0:
1938
+ resp = false;
1939
+ isCheckGift = true;
1940
+
1941
+ if (_this2.voucherRunningFast) {
1942
+ vocherPayGift = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherPayGift');
1943
+
1944
+ if (!vocherPayGift || vocherPayGift == 'false') {
1945
+ isCheckGift = false;
1946
+ }
1947
+ }
1948
+
1949
+ if (!isCheckGift) {
1950
+ _context9.next = 16;
1951
+ break;
1952
+ }
1953
+
1954
+ getSettleGift = _this2.store.getSettleGift;
1955
+ type = _this2.props.type;
1956
+
1957
+ if (!(type != 1)) {
1958
+ _context9.next = 16;
1959
+ break;
1960
+ }
1961
+
1962
+ _context9.prev = 7;
1963
+ _context9.next = 10;
1964
+ return getSettleGift();
1965
+
1966
+ case 10:
1967
+ resp = _context9.sent;
1968
+ _context9.next = 16;
1969
+ break;
1970
+
1971
+ case 13:
1972
+ _context9.prev = 13;
1973
+ _context9.t0 = _context9['catch'](7);
1974
+
1975
+ console.log("获取支付礼包getSettleGift失败");
1976
+
1977
+ case 16:
1978
+ return _context9.abrupt('return', resp);
1979
+
1980
+ case 17:
1981
+ case 'end':
1982
+ return _context9.stop();
1983
+ }
1984
+ }
1985
+ }, _callee9, _this3, [[7, 13]]);
1949
1986
  }));
1950
1987
 
1951
1988
  _this2.handleGuestShow = function (dtype, value) {
1952
1989
  if (_this2.hasElectron === false) return;
1953
1990
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1954
1991
 
1955
- var _ref14 = dt || {},
1956
- guestshow_enable = _ref14.guestshow_enable,
1957
- guestshow_clear = _ref14.guestshow_clear,
1958
- guestshow_welcome = _ref14.guestshow_welcome,
1959
- guestshow_collect = _ref14.guestshow_collect,
1960
- guestshow_refund = _ref14.guestshow_refund,
1961
- guestshow_change = _ref14.guestshow_change;
1992
+ var _ref15 = dt || {},
1993
+ guestshow_enable = _ref15.guestshow_enable,
1994
+ guestshow_clear = _ref15.guestshow_clear,
1995
+ guestshow_welcome = _ref15.guestshow_welcome,
1996
+ guestshow_collect = _ref15.guestshow_collect,
1997
+ guestshow_refund = _ref15.guestshow_refund,
1998
+ guestshow_change = _ref15.guestshow_change;
1962
1999
 
1963
2000
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
1964
2001
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -1993,115 +2030,115 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1993
2030
  };
1994
2031
 
1995
2032
  _this2.handleSettle = function () {
1996
- var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
2033
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
1997
2034
  var handleUserInputs = function () {
1998
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
2035
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
1999
2036
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
2000
2037
 
2001
- return _regenerator2.default.wrap(function _callee10$(_context10) {
2038
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
2002
2039
  while (1) {
2003
- switch (_context10.prev = _context10.next) {
2040
+ switch (_context11.prev = _context11.next) {
2004
2041
  case 0:
2005
2042
  results = [];
2006
- _context10.prev = 1;
2043
+ _context11.prev = 1;
2007
2044
  _iteratorNormalCompletion = true;
2008
2045
  _didIteratorError = false;
2009
2046
  _iteratorError = undefined;
2010
- _context10.prev = 5;
2047
+ _context11.prev = 5;
2011
2048
  _iterator = (0, _getIterator3.default)(promises);
2012
2049
 
2013
2050
  case 7:
2014
2051
  if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
2015
- _context10.next = 16;
2052
+ _context11.next = 16;
2016
2053
  break;
2017
2054
  }
2018
2055
 
2019
2056
  p = _step.value;
2020
- _context10.next = 11;
2057
+ _context11.next = 11;
2021
2058
  return p;
2022
2059
 
2023
2060
  case 11:
2024
- _result = _context10.sent;
2061
+ _result = _context11.sent;
2025
2062
 
2026
2063
  results.push(_result);
2027
2064
 
2028
2065
  case 13:
2029
2066
  _iteratorNormalCompletion = true;
2030
- _context10.next = 7;
2067
+ _context11.next = 7;
2031
2068
  break;
2032
2069
 
2033
2070
  case 16:
2034
- _context10.next = 22;
2071
+ _context11.next = 22;
2035
2072
  break;
2036
2073
 
2037
2074
  case 18:
2038
- _context10.prev = 18;
2039
- _context10.t0 = _context10['catch'](5);
2075
+ _context11.prev = 18;
2076
+ _context11.t0 = _context11['catch'](5);
2040
2077
  _didIteratorError = true;
2041
- _iteratorError = _context10.t0;
2078
+ _iteratorError = _context11.t0;
2042
2079
 
2043
2080
  case 22:
2044
- _context10.prev = 22;
2045
- _context10.prev = 23;
2081
+ _context11.prev = 22;
2082
+ _context11.prev = 23;
2046
2083
 
2047
2084
  if (!_iteratorNormalCompletion && _iterator.return) {
2048
2085
  _iterator.return();
2049
2086
  }
2050
2087
 
2051
2088
  case 25:
2052
- _context10.prev = 25;
2089
+ _context11.prev = 25;
2053
2090
 
2054
2091
  if (!_didIteratorError) {
2055
- _context10.next = 28;
2092
+ _context11.next = 28;
2056
2093
  break;
2057
2094
  }
2058
2095
 
2059
2096
  throw _iteratorError;
2060
2097
 
2061
2098
  case 28:
2062
- return _context10.finish(25);
2099
+ return _context11.finish(25);
2063
2100
 
2064
2101
  case 29:
2065
- return _context10.finish(22);
2102
+ return _context11.finish(22);
2066
2103
 
2067
2104
  case 30:
2068
2105
  window.__loadingModal = (0, _utils.openLoadingModal)();
2069
- _context10.next = 33;
2106
+ _context11.next = 33;
2070
2107
  return commit(results);
2071
2108
 
2072
2109
  case 33:
2073
- _context10.next = 37;
2110
+ _context11.next = 37;
2074
2111
  break;
2075
2112
 
2076
2113
  case 35:
2077
- _context10.prev = 35;
2078
- _context10.t1 = _context10['catch'](1);
2114
+ _context11.prev = 35;
2115
+ _context11.t1 = _context11['catch'](1);
2079
2116
 
2080
2117
  case 37:
2081
2118
  case 'end':
2082
- return _context10.stop();
2119
+ return _context11.stop();
2083
2120
  }
2084
2121
  }
2085
- }, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2122
+ }, _callee11, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2086
2123
  }));
2087
2124
 
2088
2125
  return function handleUserInputs(_x6) {
2089
- return _ref17.apply(this, arguments);
2126
+ return _ref18.apply(this, arguments);
2090
2127
  };
2091
2128
  }();
2092
2129
 
2093
- var _enumController$getEn21, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2130
+ var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2094
2131
 
2095
- return _regenerator2.default.wrap(function _callee11$(_context11) {
2132
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
2096
2133
  while (1) {
2097
- switch (_context11.prev = _context11.next) {
2134
+ switch (_context12.prev = _context12.next) {
2098
2135
  case 0:
2099
2136
  _this2.setState({
2100
2137
  settleDisabled: true
2101
2138
  });
2102
2139
  console.log("settlement.handleSettle开始执行,参数:", +args);
2103
2140
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
2104
- _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
2141
+ _this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
2105
2142
  isQuickPay = args === 'quickPay';
2106
2143
  that = _this2;
2107
2144
  status = false;
@@ -2116,7 +2153,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2116
2153
  });
2117
2154
 
2118
2155
  if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
2119
- _context11.next = 13;
2156
+ _context12.next = 13;
2120
2157
  break;
2121
2158
  }
2122
2159
 
@@ -2124,11 +2161,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2124
2161
  _this2.setState({
2125
2162
  settleDisabled: false
2126
2163
  });
2127
- return _context11.abrupt('return');
2164
+ return _context12.abrupt('return');
2128
2165
 
2129
2166
  case 13:
2130
2167
  if (!(args !== "zero" && !newStyle)) {
2131
- _context11.next = 19;
2168
+ _context12.next = 19;
2132
2169
  break;
2133
2170
  }
2134
2171
 
@@ -2137,7 +2174,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2137
2174
  });
2138
2175
 
2139
2176
  if (!zeromode) {
2140
- _context11.next = 19;
2177
+ _context12.next = 19;
2141
2178
  break;
2142
2179
  }
2143
2180
 
@@ -2145,7 +2182,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2145
2182
  settleDisabled: false
2146
2183
  });
2147
2184
  _message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
2148
- return _context11.abrupt('return');
2185
+ return _context12.abrupt('return');
2149
2186
 
2150
2187
  case 19:
2151
2188
  promises = [];
@@ -2154,14 +2191,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2154
2191
  }) : paymode.thePaymodes, 'orderBy');
2155
2192
 
2156
2193
  if (!isQuickPay) {
2157
- _context11.next = 27;
2194
+ _context12.next = 27;
2158
2195
  break;
2159
2196
  }
2160
2197
 
2161
2198
  quickmode = thePaymodes[0];
2162
2199
 
2163
2200
  if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
2164
- _context11.next = 27;
2201
+ _context12.next = 27;
2165
2202
  break;
2166
2203
  }
2167
2204
 
@@ -2169,7 +2206,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2169
2206
  settleDisabled: false
2170
2207
  });
2171
2208
  _message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
2172
- return _context11.abrupt('return');
2209
+ return _context12.abrupt('return');
2173
2210
 
2174
2211
  case 27:
2175
2212
  (0, _forEach3.default)(thePaymodes, function (mode) {
@@ -2179,27 +2216,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2179
2216
  });
2180
2217
 
2181
2218
  commit = function () {
2182
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2219
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
2183
2220
  var result;
2184
- return _regenerator2.default.wrap(function _callee9$(_context9) {
2221
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
2185
2222
  while (1) {
2186
- switch (_context9.prev = _context9.next) {
2223
+ switch (_context10.prev = _context10.next) {
2187
2224
  case 0:
2188
- _context9.next = 2;
2225
+ _context10.next = 2;
2189
2226
  return _this2.store.commit(_this2.props.bTest);
2190
2227
 
2191
2228
  case 2:
2192
- result = _context9.sent;
2229
+ result = _context10.sent;
2193
2230
 
2194
2231
  if (!(result === true)) {
2195
- _context9.next = 8;
2232
+ _context10.next = 8;
2196
2233
  break;
2197
2234
  }
2198
2235
 
2199
2236
  //成功
2200
2237
  that.settleSuccess();
2201
2238
  _promise2.default.resolve();
2202
- _context9.next = 23;
2239
+ _context10.next = 23;
2203
2240
  break;
2204
2241
 
2205
2242
  case 8:
@@ -2216,24 +2253,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2216
2253
  }, 0);
2217
2254
 
2218
2255
  if (!(result && (result.Code || result.code))) {
2219
- _context9.next = 20;
2256
+ _context10.next = 20;
2220
2257
  break;
2221
2258
  }
2222
2259
 
2223
- _context9.t0 = result.Code || result.code;
2224
- _context9.next = _context9.t0 === 'RE_Settle_UnReturn' ? 14 : _context9.t0 === 'ECONNABORTED' ? 18 : 20;
2260
+ _context10.t0 = result.Code || result.code;
2261
+ _context10.next = _context10.t0 === 'RE_Settle_UnReturn' ? 14 : _context10.t0 === 'ECONNABORTED' ? 18 : 20;
2225
2262
  break;
2226
2263
 
2227
2264
  case 14:
2228
2265
  console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
2229
2266
  _this2.props.clearVoucherData && _this2.props.clearVoucherData();
2230
2267
  _this2.cancelState();
2231
- return _context9.abrupt('break', 20);
2268
+ return _context10.abrupt('break', 20);
2232
2269
 
2233
2270
  case 18:
2234
2271
  //error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
2235
2272
  result.message.indexOf('timeout') > -1 && that.settleUnReturn();
2236
- return _context9.abrupt('break', 20);
2273
+ return _context10.abrupt('break', 20);
2237
2274
 
2238
2275
  case 20:
2239
2276
  if (isQuickPay) {
@@ -2241,19 +2278,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2241
2278
  that.cancelState();
2242
2279
  }
2243
2280
 
2244
- _context9.next = 23;
2281
+ _context10.next = 23;
2245
2282
  return _promise2.default.reject();
2246
2283
 
2247
2284
  case 23:
2248
2285
  case 'end':
2249
- return _context9.stop();
2286
+ return _context10.stop();
2250
2287
  }
2251
2288
  }
2252
- }, _callee9, _this3);
2289
+ }, _callee10, _this3);
2253
2290
  }));
2254
2291
 
2255
2292
  return function commit(_x5) {
2256
- return _ref16.apply(this, arguments);
2293
+ return _ref17.apply(this, arguments);
2257
2294
  };
2258
2295
  }();
2259
2296
 
@@ -2261,102 +2298,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2261
2298
 
2262
2299
  case 30:
2263
2300
  case 'end':
2264
- return _context11.stop();
2301
+ return _context12.stop();
2265
2302
  }
2266
2303
  }
2267
- }, _callee11, _this3);
2304
+ }, _callee12, _this3);
2268
2305
  }));
2269
2306
 
2270
2307
  return function (_x4) {
2271
- return _ref15.apply(this, arguments);
2308
+ return _ref16.apply(this, arguments);
2272
2309
  };
2273
2310
  }();
2274
2311
 
2275
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2312
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2276
2313
  var handleUserInputs = function () {
2277
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2314
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2278
2315
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2279
2316
 
2280
- return _regenerator2.default.wrap(function _callee13$(_context13) {
2317
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2281
2318
  while (1) {
2282
- switch (_context13.prev = _context13.next) {
2319
+ switch (_context14.prev = _context14.next) {
2283
2320
  case 0:
2284
2321
  results = [];
2285
- _context13.prev = 1;
2322
+ _context14.prev = 1;
2286
2323
  _iteratorNormalCompletion2 = true;
2287
2324
  _didIteratorError2 = false;
2288
2325
  _iteratorError2 = undefined;
2289
- _context13.prev = 5;
2326
+ _context14.prev = 5;
2290
2327
  _iterator2 = (0, _getIterator3.default)(promises);
2291
2328
 
2292
2329
  case 7:
2293
2330
  if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2294
- _context13.next = 16;
2331
+ _context14.next = 16;
2295
2332
  break;
2296
2333
  }
2297
2334
 
2298
2335
  p = _step2.value;
2299
- _context13.next = 11;
2336
+ _context14.next = 11;
2300
2337
  return p;
2301
2338
 
2302
2339
  case 11:
2303
- _result2 = _context13.sent;
2340
+ _result2 = _context14.sent;
2304
2341
 
2305
2342
  results.push(_result2);
2306
2343
 
2307
2344
  case 13:
2308
2345
  _iteratorNormalCompletion2 = true;
2309
- _context13.next = 7;
2346
+ _context14.next = 7;
2310
2347
  break;
2311
2348
 
2312
2349
  case 16:
2313
- _context13.next = 22;
2350
+ _context14.next = 22;
2314
2351
  break;
2315
2352
 
2316
2353
  case 18:
2317
- _context13.prev = 18;
2318
- _context13.t0 = _context13['catch'](5);
2354
+ _context14.prev = 18;
2355
+ _context14.t0 = _context14['catch'](5);
2319
2356
  _didIteratorError2 = true;
2320
- _iteratorError2 = _context13.t0;
2357
+ _iteratorError2 = _context14.t0;
2321
2358
 
2322
2359
  case 22:
2323
- _context13.prev = 22;
2324
- _context13.prev = 23;
2360
+ _context14.prev = 22;
2361
+ _context14.prev = 23;
2325
2362
 
2326
2363
  if (!_iteratorNormalCompletion2 && _iterator2.return) {
2327
2364
  _iterator2.return();
2328
2365
  }
2329
2366
 
2330
2367
  case 25:
2331
- _context13.prev = 25;
2368
+ _context14.prev = 25;
2332
2369
 
2333
2370
  if (!_didIteratorError2) {
2334
- _context13.next = 28;
2371
+ _context14.next = 28;
2335
2372
  break;
2336
2373
  }
2337
2374
 
2338
2375
  throw _iteratorError2;
2339
2376
 
2340
2377
  case 28:
2341
- return _context13.finish(25);
2378
+ return _context14.finish(25);
2342
2379
 
2343
2380
  case 29:
2344
- return _context13.finish(22);
2381
+ return _context14.finish(22);
2345
2382
 
2346
2383
  case 30:
2347
- _context13.next = 32;
2384
+ _context14.next = 32;
2348
2385
  return commit(results);
2349
2386
 
2350
2387
  case 32:
2351
- _context13.next = 37;
2388
+ _context14.next = 37;
2352
2389
  break;
2353
2390
 
2354
2391
  case 34:
2355
- _context13.prev = 34;
2356
- _context13.t1 = _context13['catch'](1);
2392
+ _context14.prev = 34;
2393
+ _context14.t1 = _context14['catch'](1);
2357
2394
 
2358
- if (_context13.t1 != "cancelpwd") {
2359
- _message2.default.error(_context13.t1);
2395
+ if (_context14.t1 != "cancelpwd") {
2396
+ _message2.default.error(_context14.t1);
2360
2397
  setTimeout(function () {
2361
2398
  that.handleCzk();
2362
2399
  }, 500);
@@ -2364,22 +2401,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2364
2401
 
2365
2402
  case 37:
2366
2403
  case 'end':
2367
- return _context13.stop();
2404
+ return _context14.stop();
2368
2405
  }
2369
2406
  }
2370
- }, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2407
+ }, _callee14, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2371
2408
  }));
2372
2409
 
2373
2410
  return function handleUserInputs(_x8) {
2374
- return _ref20.apply(this, arguments);
2411
+ return _ref21.apply(this, arguments);
2375
2412
  };
2376
2413
  }();
2377
2414
 
2378
2415
  var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
2379
2416
 
2380
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2417
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2381
2418
  while (1) {
2382
- switch (_context14.prev = _context14.next) {
2419
+ switch (_context15.prev = _context15.next) {
2383
2420
  case 0:
2384
2421
  that = _this2;
2385
2422
  curmode = _this2.store.paymode.currentMode;
@@ -2398,33 +2435,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2398
2435
  }
2399
2436
 
2400
2437
  commit = function () {
2401
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2438
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2402
2439
  var result;
2403
- return _regenerator2.default.wrap(function _callee12$(_context12) {
2440
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
2404
2441
  while (1) {
2405
- switch (_context12.prev = _context12.next) {
2442
+ switch (_context13.prev = _context13.next) {
2406
2443
  case 0:
2407
2444
  if (!(values.length > 0)) {
2408
- _context12.next = 6;
2445
+ _context13.next = 6;
2409
2446
  break;
2410
2447
  }
2411
2448
 
2412
- _context12.next = 3;
2449
+ _context13.next = 3;
2413
2450
  return that.store.validePwd(values[0]);
2414
2451
 
2415
2452
  case 3:
2416
- _context12.t0 = _context12.sent;
2417
- _context12.next = 7;
2453
+ _context13.t0 = _context13.sent;
2454
+ _context13.next = 7;
2418
2455
  break;
2419
2456
 
2420
2457
  case 6:
2421
- _context12.t0 = "";
2458
+ _context13.t0 = "";
2422
2459
 
2423
2460
  case 7:
2424
- result = _context12.t0;
2461
+ result = _context13.t0;
2425
2462
 
2426
2463
  if (!(result == "")) {
2427
- _context12.next = 13;
2464
+ _context13.next = 13;
2428
2465
  break;
2429
2466
  }
2430
2467
 
@@ -2432,23 +2469,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2432
2469
  //返回
2433
2470
  that.setCurrentFocusAndAddPay(curmode.paymentType, null, curmode.paymethodId);
2434
2471
  _promise2.default.resolve();
2435
- _context12.next = 15;
2472
+ _context13.next = 15;
2436
2473
  break;
2437
2474
 
2438
2475
  case 13:
2439
- _context12.next = 15;
2476
+ _context13.next = 15;
2440
2477
  return _promise2.default.reject(result);
2441
2478
 
2442
2479
  case 15:
2443
2480
  case 'end':
2444
- return _context12.stop();
2481
+ return _context13.stop();
2445
2482
  }
2446
2483
  }
2447
- }, _callee12, _this3);
2484
+ }, _callee13, _this3);
2448
2485
  }));
2449
2486
 
2450
2487
  return function commit(_x7) {
2451
- return _ref19.apply(this, arguments);
2488
+ return _ref20.apply(this, arguments);
2452
2489
  };
2453
2490
  }();
2454
2491
 
@@ -2456,10 +2493,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2456
2493
 
2457
2494
  case 6:
2458
2495
  case 'end':
2459
- return _context14.stop();
2496
+ return _context15.stop();
2460
2497
  }
2461
2498
  }
2462
- }, _callee14, _this3);
2499
+ }, _callee15, _this3);
2463
2500
  }));
2464
2501
 
2465
2502
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2499,15 +2536,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2499
2536
  };
2500
2537
 
2501
2538
  _this2.inputPwd = function () {
2502
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2539
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2503
2540
  var that, confirmPwd;
2504
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2541
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
2505
2542
  while (1) {
2506
- switch (_context15.prev = _context15.next) {
2543
+ switch (_context16.prev = _context16.next) {
2507
2544
  case 0:
2508
2545
  that = _this2;
2509
2546
  confirmPwd = _this2.state.confirmPwd;
2510
- return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
2547
+ return _context16.abrupt('return', new _promise2.default(function (resolve, reject) {
2511
2548
  var modal = (0, _asyncModal2.default)({
2512
2549
  onPressEnter: function onPressEnter() {
2513
2550
  _keyboard2.default.close();
@@ -2515,8 +2552,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2515
2552
  // if (v !== '') {
2516
2553
  modal.destroy();
2517
2554
 
2518
- var _ref22 = that.state || {},
2519
- confirmPwd = _ref22.confirmPwd;
2555
+ var _ref23 = that.state || {},
2556
+ confirmPwd = _ref23.confirmPwd;
2520
2557
 
2521
2558
  setTimeout(function () {
2522
2559
  paymode.authCode = v;
@@ -2607,8 +2644,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2607
2644
  type: 'primary', size: 'large', onClick: function onClick() {
2608
2645
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2609
2646
 
2610
- var _ref23 = that.state || {},
2611
- confirmPwd = _ref23.confirmPwd;
2647
+ var _ref24 = that.state || {},
2648
+ confirmPwd = _ref24.confirmPwd;
2612
2649
  // if (v !== '') {
2613
2650
 
2614
2651
 
@@ -2642,24 +2679,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2642
2679
 
2643
2680
  case 3:
2644
2681
  case 'end':
2645
- return _context15.stop();
2682
+ return _context16.stop();
2646
2683
  }
2647
2684
  }
2648
- }, _callee15, _this3);
2685
+ }, _callee16, _this3);
2649
2686
  }));
2650
2687
 
2651
2688
  return function (_x9) {
2652
- return _ref21.apply(this, arguments);
2689
+ return _ref22.apply(this, arguments);
2653
2690
  };
2654
2691
  }();
2655
2692
 
2656
2693
  _this2.btnDebounced = function () {
2657
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
2658
- var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
2694
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(type, bquick) {
2695
+ var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, productStore, checkResult, _enumController$getEn23, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, status;
2659
2696
 
2660
- return _regenerator2.default.wrap(function _callee16$(_context16) {
2697
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
2661
2698
  while (1) {
2662
- switch (_context16.prev = _context16.next) {
2699
+ switch (_context17.prev = _context17.next) {
2663
2700
  case 0:
2664
2701
  IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
2665
2702
  CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
@@ -2668,7 +2705,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2668
2705
  //预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
2669
2706
 
2670
2707
  if (!(IdbusiType == 38)) {
2671
- _context16.next = 14;
2708
+ _context17.next = 14;
2672
2709
  break;
2673
2710
  }
2674
2711
 
@@ -2679,11 +2716,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2679
2716
  });
2680
2717
 
2681
2718
  if (!(isEnableSerialNumber && resultObj && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE'))) {
2682
- _context16.next = 9;
2719
+ _context17.next = 9;
2683
2720
  break;
2684
2721
  }
2685
2722
 
2686
- return _context16.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2723
+ return _context17.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2687
2724
 
2688
2725
  case 9:
2689
2726
 
@@ -2692,31 +2729,49 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2692
2729
  }
2693
2730
 
2694
2731
  if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
2695
- _context16.next = 14;
2732
+ _context17.next = 14;
2696
2733
  break;
2697
2734
  }
2698
2735
 
2699
2736
  title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
2700
- _context16.next = 14;
2737
+ _context17.next = 14;
2701
2738
  return _this2.props.openBuyerModal(title);
2702
2739
 
2703
2740
  case 14:
2704
2741
 
2742
+ // 极速模式错误校验
2743
+
2744
+ productStore = _mutantsMicrofx.stores.productStore;
2745
+ _context17.next = 17;
2746
+ return productStore.checkShouldSettlement();
2747
+
2748
+ case 17:
2749
+ checkResult = _context17.sent;
2750
+
2751
+ if (checkResult) {
2752
+ _context17.next = 20;
2753
+ break;
2754
+ }
2755
+
2756
+ return _context17.abrupt('return', false);
2757
+
2758
+ case 20:
2759
+
2705
2760
  _this2.setState({
2706
2761
  bquick: bquick,
2707
2762
  isInputMember: true
2708
2763
  });
2709
2764
  _enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
2710
- _this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
2765
+ _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
2711
2766
 
2712
2767
  if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
2713
- _context16.next = 19;
2768
+ _context17.next = 25;
2714
2769
  break;
2715
2770
  }
2716
2771
 
2717
- return _context16.abrupt('return', false);
2772
+ return _context17.abrupt('return', false);
2718
2773
 
2719
- case 19:
2774
+ case 25:
2720
2775
  status = false;
2721
2776
 
2722
2777
  paymode.thePaymodes.forEach(function (v) {
@@ -2729,13 +2784,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2729
2784
  });
2730
2785
 
2731
2786
  if (!_this2.btndebounced) {
2732
- _context16.next = 24;
2787
+ _context17.next = 30;
2733
2788
  break;
2734
2789
  }
2735
2790
 
2736
- return _context16.abrupt('return');
2791
+ return _context17.abrupt('return');
2737
2792
 
2738
- case 24:
2793
+ case 30:
2739
2794
  _this2.btndebounced = (0, _debounce3.default)(function () {
2740
2795
  if (bquick) {
2741
2796
  _this2.quickSettle(type);
@@ -2752,23 +2807,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2752
2807
  _this2.btndebounced = null;
2753
2808
  }, 2000);
2754
2809
 
2755
- case 27:
2810
+ case 33:
2756
2811
  case 'end':
2757
- return _context16.stop();
2812
+ return _context17.stop();
2758
2813
  }
2759
2814
  }
2760
- }, _callee16, _this3);
2815
+ }, _callee17, _this3);
2761
2816
  }));
2762
2817
 
2763
2818
  return function (_x10, _x11) {
2764
- return _ref24.apply(this, arguments);
2819
+ return _ref25.apply(this, arguments);
2765
2820
  };
2766
2821
  }();
2767
2822
 
2768
2823
  _this2.onCzkChange = function (v) {
2769
2824
  // console.log("czk change:"+new Date().toLocaleTimeString())
2770
- var _ref25 = _mutantsUtil.platform || {},
2771
- isNewRetailBCPos = _ref25.isNewRetailBCPos;
2825
+ var _ref26 = _mutantsUtil.platform || {},
2826
+ isNewRetailBCPos = _ref26.isNewRetailBCPos;
2772
2827
 
2773
2828
  if (!isNewRetailBCPos) {
2774
2829
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -2981,7 +3036,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2981
3036
  keyboard: false,
2982
3037
  closable: false,
2983
3038
  backdropStyle: {
2984
- 'z-index': '1004'
3039
+ 'zIndex': '1004'
2985
3040
  },
2986
3041
  width: 440,
2987
3042
  content: _react2.default.createElement(
@@ -3198,9 +3253,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3198
3253
  };
3199
3254
 
3200
3255
  _this2.checkCurrentModeHaveMutex = function (type) {
3201
- var _this2$store9 = _this2.store,
3202
- paymode = _this2$store9.paymode,
3203
- newStyle = _this2$store9.newStyle;
3256
+ var _this2$store8 = _this2.store,
3257
+ paymode = _this2$store8.paymode,
3258
+ newStyle = _this2$store8.newStyle;
3204
3259
 
3205
3260
  var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
3206
3261
  PayStyle = _enumController$getEn28.PayStyle;
@@ -3376,12 +3431,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3376
3431
 
3377
3432
  _this2.hasElectron = hasElectron;
3378
3433
 
3379
- var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3380
- MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
3381
- ICCardServer = _ref26.ICCardServer,
3382
- ICCardPassword = _ref26.ICCardPassword,
3383
- PreSellOrBook = _ref26.PreSellOrBook,
3384
- PercentageWhenBook = _ref26.PercentageWhenBook;
3434
+ var _ref27 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3435
+ MemberMeStorageCardInputByKeyBoard = _ref27.MemberMeStorageCardInputByKeyBoard,
3436
+ ICCardServer = _ref27.ICCardServer,
3437
+ ICCardPassword = _ref27.ICCardPassword,
3438
+ PreSellOrBook = _ref27.PreSellOrBook,
3439
+ PercentageWhenBook = _ref27.PercentageWhenBook;
3385
3440
 
3386
3441
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3387
3442
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
@@ -3390,9 +3445,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3390
3445
  _this2.percentageWhenBook = PercentageWhenBook;
3391
3446
  //移动端环境下,没有读取IC卡的方式。
3392
3447
 
3393
- var _ref27 = _mutantsUtil.platform || {},
3394
- isHorizontalPad = _ref27.isHorizontalPad,
3395
- isHorizontalSunMi = _ref27.isHorizontalSunMi;
3448
+ var _ref28 = _mutantsUtil.platform || {},
3449
+ isHorizontalPad = _ref28.isHorizontalPad,
3450
+ isHorizontalSunMi = _ref28.isHorizontalSunMi;
3396
3451
 
3397
3452
  _this2.isHorizontalPad = !!isHorizontalPad;
3398
3453
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3401,6 +3456,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3401
3456
  _this2.setTimer = null;
3402
3457
  _this2.keypressStime = null;
3403
3458
  _this2.store = !(props.type == 1) ? _mutantsMicrofx.stores.settlementVoucherStore : _mutantsMicrofx.stores.settlementMemberStore;
3459
+ _this2.voucherRunningFast = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherRunningFast') == '1';
3404
3460
  return _this2;
3405
3461
  }
3406
3462
 
@@ -3540,6 +3596,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3540
3596
  * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3541
3597
  */
3542
3598
 
3599
+ // 极速模式下是否开启了支付有礼功能
3600
+
3543
3601
  // 处理客显显示功能
3544
3602
 
3545
3603
 
@@ -3548,8 +3606,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3548
3606
  }, {
3549
3607
  key: 'isNoProductTip',
3550
3608
  value: function isNoProductTip(nonProductMap) {
3551
- var _ref28 = this.context.viewModel.data || {},
3552
- RetailDetails = _ref28.RetailDetails;
3609
+ var _ref29 = this.context.viewModel.data || {},
3610
+ RetailDetails = _ref29.RetailDetails;
3553
3611
 
3554
3612
  var temphtml = [];
3555
3613
  if ((0, _keys2.default)(nonProductMap).length > 0) {
@@ -3820,11 +3878,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3820
3878
  quantity4 = 0;
3821
3879
  var sumQuantity = 0; //数量总和的值,包括称重的。
3822
3880
 
3823
- var _ref29 = quantityDetail || {},
3824
- _ref29$buyQuantity = _ref29.buyQuantity,
3825
- buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
3826
- _ref29$returnQuantity = _ref29.returnQuantity,
3827
- returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
3881
+ var _ref30 = quantityDetail || {},
3882
+ _ref30$buyQuantity = _ref30.buyQuantity,
3883
+ buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3884
+ _ref30$returnQuantity = _ref30.returnQuantity,
3885
+ returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3828
3886
 
3829
3887
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3830
3888
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4016,7 +4074,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4016
4074
  onClose: this.handleCancel,
4017
4075
  visible: this.state.visible,
4018
4076
  destroyOnClose: true,
4019
- className: 'settlement-wraper',
4077
+ className: 'settlement-wraper ' + (this.voucherRunningFast ? 'no-zoom' : null),
4020
4078
  style: { 'zIndex': 1006 }
4021
4079
  },
4022
4080
  _react2.default.createElement(
@@ -4287,7 +4345,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4287
4345
  onClose: this.handleCancel,
4288
4346
  visible: this.state.visible,
4289
4347
  destroyOnClose: true,
4290
- className: 'settlement-wraper',
4348
+ className: 'settlement-wraper ' + (this.voucherRunningFast ? 'no-zoom' : ''),
4291
4349
  style: { 'zIndex': 1006 }
4292
4350
  },
4293
4351
  _react2.default.createElement(
@@ -4597,7 +4655,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4597
4655
  _react2.default.createElement(
4598
4656
  _modal2.default,
4599
4657
  {
4600
- wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4658
+ wrapClassName: 'czk ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4601
4659
  width: '400px',
4602
4660
  visible: this.state.czkVisible,
4603
4661
  maskClosable: false,
@@ -4709,22 +4767,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4709
4767
  return _this8.czkInput = input;
4710
4768
  },
4711
4769
  onKeyDown: function () {
4712
- var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
4770
+ var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(e) {
4713
4771
  var time, _paymode;
4714
4772
 
4715
- return _regenerator2.default.wrap(function _callee17$(_context17) {
4773
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
4716
4774
  while (1) {
4717
- switch (_context17.prev = _context17.next) {
4775
+ switch (_context18.prev = _context18.next) {
4718
4776
  case 0:
4719
4777
  if (!(e.keyCode == 13)) {
4720
- _context17.next = 14;
4778
+ _context18.next = 14;
4721
4779
  break;
4722
4780
  }
4723
4781
 
4724
4782
  time = Date.parse(new Date());
4725
4783
 
4726
4784
  if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4727
- _context17.next = 7;
4785
+ _context18.next = 7;
4728
4786
  break;
4729
4787
  }
4730
4788
 
@@ -4733,11 +4791,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4733
4791
  _this8.setState({
4734
4792
  czkValue: null
4735
4793
  });
4736
- return _context17.abrupt('return');
4794
+ return _context18.abrupt('return');
4737
4795
 
4738
4796
  case 7:
4739
4797
  _this8.keypressStime = null;
4740
- _context17.next = 10;
4798
+ _context18.next = 10;
4741
4799
  return _this8.loadCzk(e.target.value);
4742
4800
 
4743
4801
  case 10:
@@ -4748,7 +4806,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4748
4806
  czkvalue: null
4749
4807
  });
4750
4808
  }
4751
- _context17.next = 15;
4809
+ _context18.next = 15;
4752
4810
  break;
4753
4811
 
4754
4812
  case 14:
@@ -4758,14 +4816,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4758
4816
 
4759
4817
  case 15:
4760
4818
  case 'end':
4761
- return _context17.stop();
4819
+ return _context18.stop();
4762
4820
  }
4763
4821
  }
4764
- }, _callee17, _this8);
4822
+ }, _callee18, _this8);
4765
4823
  }));
4766
4824
 
4767
4825
  return function (_x13) {
4768
- return _ref30.apply(this, arguments);
4826
+ return _ref31.apply(this, arguments);
4769
4827
  };
4770
4828
  }(),
4771
4829
  onFocus: function onFocus(e) {
@@ -4822,8 +4880,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4822
4880
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4823
4881
  },
4824
4882
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4825
- ref: function ref(_ref31) {
4826
- return _this8["inputCzkAmount"] = _ref31;
4883
+ ref: function ref(_ref32) {
4884
+ return _this8["inputCzkAmount"] = _ref32;
4827
4885
  },
4828
4886
  onFocus: function onFocus(e) {
4829
4887
  _this8.inputkey = "inputCzkAmount";
@@ -4875,7 +4933,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4875
4933
  _react2.default.createElement(
4876
4934
  _modal2.default,
4877
4935
  {
4878
- wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4936
+ wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4879
4937
  width: '400px',
4880
4938
  visible: this.state.moreCzkVisible,
4881
4939
  maskClosable: false,
@@ -4917,7 +4975,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4917
4975
  _react2.default.createElement(
4918
4976
  _modal2.default,
4919
4977
  (0, _defineProperty3.default)({
4920
- wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : '') + ' passwordContainer',
4978
+ wrapClassName: 'djq ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : '') + ' passwordContainer',
4921
4979
  width: '400px',
4922
4980
  visible: this.state.showSetPwdModal,
4923
4981
  backdropClosable: false,
@@ -5014,7 +5072,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5014
5072
  _react2.default.createElement(
5015
5073
  _modal2.default,
5016
5074
  {
5017
- wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5075
+ wrapClassName: 'djq ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5018
5076
  width: '810px',
5019
5077
  visible: this.state.djqVisible,
5020
5078
  maskClosable: false,
@@ -5338,7 +5396,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5338
5396
  _react2.default.createElement(
5339
5397
  _modal2.default,
5340
5398
  {
5341
- wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5399
+ wrapClassName: 'czk ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5342
5400
  width: '420px',
5343
5401
  visible: this.state.jfdxVisible,
5344
5402
  maskClosable: false,
@@ -5493,8 +5551,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5493
5551
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5494
5552
  },
5495
5553
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5496
- ref: function ref(_ref32) {
5497
- return _this8["inputJfdxAmount"] = _ref32;
5554
+ ref: function ref(_ref33) {
5555
+ return _this8["inputJfdxAmount"] = _ref33;
5498
5556
  },
5499
5557
  onFocus: function onFocus(e) {
5500
5558
  _this8.inputkey = "inputJfdxAmount";