tplus-components-touch 3.33.10 → 3.33.14

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 (188) hide show
  1. package/README.md +16 -16
  2. package/dist/components/acCitySelect/CitySelect.js +18 -18
  3. package/dist/components/acCitySelect/CitySelect.js.map +1 -1
  4. package/dist/components/acCitySelect/CitySelect.less +9 -9
  5. package/dist/components/acCitySelect/citys.js.map +1 -1
  6. package/dist/components/acCitySelect/index.js.map +1 -1
  7. package/dist/components/acCitySelect/provinceData.js +7 -7
  8. package/dist/components/acCitySelect/provinceData.js.map +1 -1
  9. package/dist/components/addLog/AddLogProcessor.js +6 -6
  10. package/dist/components/addLog/AddLogProcessor.js.map +1 -1
  11. package/dist/components/addLog/OperationLogApi.js +3 -3
  12. package/dist/components/addLog/OperationLogApi.js.map +1 -1
  13. package/dist/components/autoComplete/index.js +14 -14
  14. package/dist/components/autoComplete/index.js.map +1 -1
  15. package/dist/components/autoComplete/index.less +89 -89
  16. package/dist/components/autoComplete/option.js.map +1 -1
  17. package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
  18. package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
  19. package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
  20. package/dist/components/billSearch/api.js +29 -29
  21. package/dist/components/billSearch/api.js.map +1 -1
  22. package/dist/components/billSearch/index.js +6 -6
  23. package/dist/components/billSearch/index.js.map +1 -1
  24. package/dist/components/billSearch/index.less +376 -376
  25. package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
  26. package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
  27. package/dist/components/cloudPrint/api.js.map +1 -1
  28. package/dist/components/cloudPrint/index.js.map +1 -1
  29. package/dist/components/cloudPrint/printDispatch.js +7 -7
  30. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  31. package/dist/components/commonForm/addressPicker/index.js +7 -7
  32. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  33. package/dist/components/commonForm/addressPicker/style.less +10 -10
  34. package/dist/components/commonForm/autoComplete/index.js.map +1 -1
  35. package/dist/components/commonForm/autoComplete/style.less +2 -2
  36. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  37. package/dist/components/commonForm/datePicker/style.less +4 -4
  38. package/dist/components/commonForm/formControl/index.js.map +1 -1
  39. package/dist/components/commonForm/index.js +4 -4
  40. package/dist/components/commonForm/index.js.map +1 -1
  41. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  42. package/dist/components/commonForm/inputNumber/style.less +10 -10
  43. package/dist/components/commonForm/radio/index.js.map +1 -1
  44. package/dist/components/commonForm/style.less +1 -1
  45. package/dist/components/deliverySearch/api.js +21 -21
  46. package/dist/components/deliverySearch/api.js.map +1 -1
  47. package/dist/components/deliverySearch/index.js +6 -6
  48. package/dist/components/deliverySearch/index.js.map +1 -1
  49. package/dist/components/deliverySearch/index.less +553 -553
  50. package/dist/components/form/index.js.map +1 -1
  51. package/dist/components/hardwareAPI/index.js.map +1 -1
  52. package/dist/components/hotKey/config.js +23 -23
  53. package/dist/components/hotKey/config.js.map +1 -1
  54. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  55. package/dist/components/hotKey/index.js +26 -26
  56. package/dist/components/hotKey/index.js.map +1 -1
  57. package/dist/components/hotKey/localConfig.js.map +1 -1
  58. package/dist/components/hotKey/style.less +96 -96
  59. package/dist/components/hotKey/utils.js.map +1 -1
  60. package/dist/components/input/index.js +6 -6
  61. package/dist/components/input/index.js.map +1 -1
  62. package/dist/components/input/scanInput.js.map +1 -1
  63. package/dist/components/input/scanInput.less +27 -27
  64. package/dist/components/input/style.less +99 -99
  65. package/dist/components/input/tplusInput/index.js +30 -30
  66. package/dist/components/input/tplusInput/index.js.map +1 -1
  67. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  68. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  69. package/dist/components/input/tplusInput/style.less +132 -132
  70. package/dist/components/input/utils/index.js.map +1 -1
  71. package/dist/components/inventorySearch/api.js +58 -58
  72. package/dist/components/inventorySearch/api.js.map +1 -1
  73. package/dist/components/inventorySearch/index.js +3 -3
  74. package/dist/components/inventorySearch/index.js.map +1 -1
  75. package/dist/components/inventorySearch/index.less +119 -119
  76. package/dist/components/inventorySearch/store.js.map +1 -1
  77. package/dist/components/inventorySearch/tab.js.map +1 -1
  78. package/dist/components/keyboard/index.js.map +1 -1
  79. package/dist/components/keyboard/index.less +469 -469
  80. package/dist/components/keyboard/letterKeyboard.js +2 -2
  81. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  82. package/dist/components/keyboard/numKeyboard.js +4 -4
  83. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  84. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  85. package/dist/components/keyboard/numberButton_input.js +5 -5
  86. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  87. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  88. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  89. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  90. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  91. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  92. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  93. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  94. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  95. package/dist/components/keyboard/onlyLetterButton2.less +156 -156
  96. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  97. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  98. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  99. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  100. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  101. package/dist/components/layout/hamburger.js.map +1 -1
  102. package/dist/components/layout/index.js +10 -10
  103. package/dist/components/layout/index.js.map +1 -1
  104. package/dist/components/layout/layout.js.map +1 -1
  105. package/dist/components/layout/sider.js +12 -12
  106. package/dist/components/layout/sider.js.map +1 -1
  107. package/dist/components/layout/style.less +82 -82
  108. package/dist/components/loading/index.js +15 -15
  109. package/dist/components/loading/index.js.map +1 -1
  110. package/dist/components/loading/loadingContent.js.map +1 -1
  111. package/dist/components/loading/style.less +72 -72
  112. package/dist/components/loading/utils.js.map +1 -1
  113. package/dist/components/message/index.js +8 -8
  114. package/dist/components/message/index.js.map +1 -1
  115. package/dist/components/message/index.less +101 -101
  116. package/dist/components/modal/index.js.map +1 -1
  117. package/dist/components/modal/index.less +19 -19
  118. package/dist/components/modalVertical/index.js +7 -7
  119. package/dist/components/modalVertical/index.js.map +1 -1
  120. package/dist/components/modalVertical/style.less +60 -60
  121. package/dist/components/modalWraper/index.js +15 -15
  122. package/dist/components/modalWraper/index.js.map +1 -1
  123. package/dist/components/modalWraper/style.less +257 -257
  124. package/dist/components/modalWraper/utils.js.map +1 -1
  125. package/dist/components/notification/index.js +4 -4
  126. package/dist/components/notification/index.js.map +1 -1
  127. package/dist/components/notification/index.less +51 -51
  128. package/dist/components/overflowTip/index.js +15 -15
  129. package/dist/components/overflowTip/index.js.map +1 -1
  130. package/dist/components/overflowTip/style.less +66 -66
  131. package/dist/components/page/index.js.map +1 -1
  132. package/dist/components/page/index.less +21 -21
  133. package/dist/components/product/detail.js +7 -7
  134. package/dist/components/product/detail.js.map +1 -1
  135. package/dist/components/product/getCard.js +5 -5
  136. package/dist/components/product/getCard.js.map +1 -1
  137. package/dist/components/product/index.less +128 -128
  138. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  139. package/dist/components/progressState/ProgressState.js +10 -10
  140. package/dist/components/progressState/ProgressState.js.map +1 -1
  141. package/dist/components/progressState/index.js.map +1 -1
  142. package/dist/components/progressState/style.less +65 -65
  143. package/dist/components/scan/index.js.map +1 -1
  144. package/dist/components/scan/index.less +33 -33
  145. package/dist/components/select/index.js.map +1 -1
  146. package/dist/components/select/index.less +11 -11
  147. package/dist/components/settlement/asyncModal.js.map +1 -1
  148. package/dist/components/settlement/index.js.map +1 -1
  149. package/dist/components/settlement/moreCzkTable/index.js.map +1 -1
  150. package/dist/components/settlement/moreCzkTable/style.less +6 -6
  151. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  152. package/dist/components/settlement/prototypeTable/style.less +58 -58
  153. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  154. package/dist/components/settlement/settlement.js +253 -299
  155. package/dist/components/settlement/settlement.js.map +1 -1
  156. package/dist/components/settlement/settlement.less +1686 -1686
  157. package/dist/components/settlement/settlementStore.js +459 -360
  158. package/dist/components/settlement/settlementStore.js.map +1 -1
  159. package/dist/components/settlement/utils.js.map +1 -1
  160. package/dist/components/socket/index.js +11 -11
  161. package/dist/components/socket/index.js.map +1 -1
  162. package/dist/components/spin/index.js +6 -6
  163. package/dist/components/spin/index.js.map +1 -1
  164. package/dist/components/spin/spin-style.less +436 -436
  165. package/dist/components/test/index.js +3 -3
  166. package/dist/components/test/index.js.map +1 -1
  167. package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
  168. package/dist/components/ticon/iconfont/iconfont.css +895 -895
  169. package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
  170. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  171. package/dist/components/ticon/index.js.map +1 -1
  172. package/dist/components/touchScroll/index.js +9 -9
  173. package/dist/components/touchScroll/index.js.map +1 -1
  174. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  175. package/dist/components/touchTable/generateWater.js.map +1 -1
  176. package/dist/components/touchTable/index.js +9 -9
  177. package/dist/components/touchTable/index.js.map +1 -1
  178. package/dist/components/touchTable/index.less +376 -376
  179. package/dist/components/touchTable/utils.js.map +1 -1
  180. package/dist/demo/PopOverDemo.js.map +1 -1
  181. package/dist/index.js +7 -7
  182. package/dist/index.js.map +1 -1
  183. package/dist/util/tools.js.map +1 -1
  184. package/locales/zh/tplus-components-touch.json +1 -1
  185. package/locales/zh-CN/tplus-components-touch.json +1 -1
  186. package/mocks/memberInfo.json +79 -79
  187. package/package.json +35 -35
  188. package/tsconfig.json +26 -26
@@ -1944,140 +1944,96 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1944
1944
  };
1945
1945
 
1946
1946
  _this2.handleSettle = function () {
1947
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
1947
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1948
1948
  var handleUserInputs = function () {
1949
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
1950
- var _this5 = this;
1949
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1950
+ var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1951
1951
 
1952
- var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result, currentZeroTime, voucherDateTime;
1953
-
1954
- return _regenerator2.default.wrap(function _callee11$(_context11) {
1952
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
1955
1953
  while (1) {
1956
- switch (_context11.prev = _context11.next) {
1954
+ switch (_context10.prev = _context10.next) {
1957
1955
  case 0:
1958
1956
  results = [];
1959
- _context11.prev = 1;
1957
+ _context10.prev = 1;
1960
1958
  _iteratorNormalCompletion = true;
1961
1959
  _didIteratorError = false;
1962
1960
  _iteratorError = undefined;
1963
- _context11.prev = 5;
1961
+ _context10.prev = 5;
1964
1962
  _iterator = (0, _getIterator3.default)(promises);
1965
1963
 
1966
1964
  case 7:
1967
1965
  if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
1968
- _context11.next = 16;
1966
+ _context10.next = 16;
1969
1967
  break;
1970
1968
  }
1971
1969
 
1972
1970
  p = _step.value;
1973
- _context11.next = 11;
1971
+ _context10.next = 11;
1974
1972
  return p;
1975
1973
 
1976
1974
  case 11:
1977
- _result = _context11.sent;
1975
+ _result = _context10.sent;
1978
1976
 
1979
1977
  results.push(_result);
1980
1978
 
1981
1979
  case 13:
1982
1980
  _iteratorNormalCompletion = true;
1983
- _context11.next = 7;
1981
+ _context10.next = 7;
1984
1982
  break;
1985
1983
 
1986
1984
  case 16:
1987
- _context11.next = 22;
1985
+ _context10.next = 22;
1988
1986
  break;
1989
1987
 
1990
1988
  case 18:
1991
- _context11.prev = 18;
1992
- _context11.t0 = _context11['catch'](5);
1989
+ _context10.prev = 18;
1990
+ _context10.t0 = _context10['catch'](5);
1993
1991
  _didIteratorError = true;
1994
- _iteratorError = _context11.t0;
1992
+ _iteratorError = _context10.t0;
1995
1993
 
1996
1994
  case 22:
1997
- _context11.prev = 22;
1998
- _context11.prev = 23;
1995
+ _context10.prev = 22;
1996
+ _context10.prev = 23;
1999
1997
 
2000
1998
  if (!_iteratorNormalCompletion && _iterator.return) {
2001
1999
  _iterator.return();
2002
2000
  }
2003
2001
 
2004
2002
  case 25:
2005
- _context11.prev = 25;
2003
+ _context10.prev = 25;
2006
2004
 
2007
2005
  if (!_didIteratorError) {
2008
- _context11.next = 28;
2006
+ _context10.next = 28;
2009
2007
  break;
2010
2008
  }
2011
2009
 
2012
2010
  throw _iteratorError;
2013
2011
 
2014
2012
  case 28:
2015
- return _context11.finish(25);
2013
+ return _context10.finish(25);
2016
2014
 
2017
2015
  case 29:
2018
- return _context11.finish(22);
2016
+ return _context10.finish(22);
2019
2017
 
2020
2018
  case 30:
2021
2019
  window.__loadingModal = (0, _utils.openLoadingModal)();
2022
- currentZeroTime = new Date(new Date().toDateString()).getTime();
2023
- voucherDateTime = new Date(VoucherDate).getTime();
2024
- // let isUpdate1 = await isUpdateDate && isUpdateDate();
2025
-
2026
- if (!isUpdateDate) {
2027
- _context11.next = 37;
2028
- break;
2029
- }
2030
-
2031
- isUpdateDate(function () {
2032
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(result1) {
2033
- return _regenerator2.default.wrap(function _callee10$(_context10) {
2034
- while (1) {
2035
- switch (_context10.prev = _context10.next) {
2036
- case 0:
2037
- if (result1) {
2038
- if (voucherDateTime < currentZeroTime) {
2039
- setVoucherDate();
2040
- }
2041
- }
2042
- _context10.next = 3;
2043
- return commit(results);
2044
-
2045
- case 3:
2046
- case 'end':
2047
- return _context10.stop();
2048
- }
2049
- }
2050
- }, _callee10, _this5);
2051
- }));
2052
-
2053
- return function (_x7) {
2054
- return _ref20.apply(this, arguments);
2055
- };
2056
- }());
2057
- _context11.next = 40;
2058
- break;
2059
-
2060
- case 37:
2061
- if (voucherDateTime < currentZeroTime) {
2062
- setVoucherDate();
2063
- }
2064
- _context11.next = 40;
2020
+ _context10.next = 33;
2065
2021
  return commit(results);
2066
2022
 
2067
- case 40:
2068
- _context11.next = 44;
2023
+ case 33:
2024
+ _context10.next = 37;
2069
2025
  break;
2070
2026
 
2071
- case 42:
2072
- _context11.prev = 42;
2073
- _context11.t1 = _context11['catch'](1);
2027
+ case 35:
2028
+ _context10.prev = 35;
2029
+ _context10.t1 = _context10['catch'](1);
2074
2030
 
2075
- case 44:
2031
+ case 37:
2076
2032
  case 'end':
2077
- return _context11.stop();
2033
+ return _context10.stop();
2078
2034
  }
2079
2035
  }
2080
- }, _callee11, this, [[1, 42], [5, 18, 22, 30], [23,, 25, 29]]);
2036
+ }, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2081
2037
  }));
2082
2038
 
2083
2039
  return function handleUserInputs(_x6) {
@@ -2085,11 +2041,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2085
2041
  };
2086
2042
  }();
2087
2043
 
2088
- var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit, _this2$props3, isUpdateDate, type, VoucherDate, setVoucherDate;
2044
+ var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2089
2045
 
2090
- return _regenerator2.default.wrap(function _callee12$(_context12) {
2046
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
2091
2047
  while (1) {
2092
- switch (_context12.prev = _context12.next) {
2048
+ switch (_context11.prev = _context11.next) {
2093
2049
  case 0:
2094
2050
  _this2.setState({
2095
2051
  settleDisabled: true
@@ -2111,7 +2067,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2111
2067
  });
2112
2068
 
2113
2069
  if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
2114
- _context12.next = 13;
2070
+ _context11.next = 13;
2115
2071
  break;
2116
2072
  }
2117
2073
 
@@ -2119,11 +2075,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2119
2075
  _this2.setState({
2120
2076
  settleDisabled: false
2121
2077
  });
2122
- return _context12.abrupt('return');
2078
+ return _context11.abrupt('return');
2123
2079
 
2124
2080
  case 13:
2125
2081
  if (!(args !== "zero" && !newStyle)) {
2126
- _context12.next = 19;
2082
+ _context11.next = 19;
2127
2083
  break;
2128
2084
  }
2129
2085
 
@@ -2132,7 +2088,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2132
2088
  });
2133
2089
 
2134
2090
  if (!zeromode) {
2135
- _context12.next = 19;
2091
+ _context11.next = 19;
2136
2092
  break;
2137
2093
  }
2138
2094
 
@@ -2140,7 +2096,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2140
2096
  settleDisabled: false
2141
2097
  });
2142
2098
  _message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
2143
- return _context12.abrupt('return');
2099
+ return _context11.abrupt('return');
2144
2100
 
2145
2101
  case 19:
2146
2102
  promises = [];
@@ -2149,14 +2105,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2149
2105
  }) : paymode.thePaymodes, 'orderBy');
2150
2106
 
2151
2107
  if (!isQuickPay) {
2152
- _context12.next = 27;
2108
+ _context11.next = 27;
2153
2109
  break;
2154
2110
  }
2155
2111
 
2156
2112
  quickmode = thePaymodes[0];
2157
2113
 
2158
2114
  if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
2159
- _context12.next = 27;
2115
+ _context11.next = 27;
2160
2116
  break;
2161
2117
  }
2162
2118
 
@@ -2164,7 +2120,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2164
2120
  settleDisabled: false
2165
2121
  });
2166
2122
  _message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
2167
- return _context12.abrupt('return');
2123
+ return _context11.abrupt('return');
2168
2124
 
2169
2125
  case 27:
2170
2126
  (0, _forEach3.default)(thePaymodes, function (mode) {
@@ -2252,19 +2208,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2252
2208
  };
2253
2209
  }();
2254
2210
 
2255
- _this2$props3 = _this2.props, isUpdateDate = _this2$props3.isUpdateDate, type = _this2$props3.type;
2256
- VoucherDate = _this2.store.dto.VoucherDate;
2257
- setVoucherDate = _this2.store.setVoucherDate;
2258
-
2259
-
2260
2211
  handleUserInputs(promises);
2261
2212
 
2262
- case 33:
2213
+ case 30:
2263
2214
  case 'end':
2264
- return _context12.stop();
2215
+ return _context11.stop();
2265
2216
  }
2266
2217
  }
2267
- }, _callee12, _this3);
2218
+ }, _callee11, _this3);
2268
2219
  }));
2269
2220
 
2270
2221
  return function (_x4) {
@@ -2272,91 +2223,91 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2272
2223
  };
2273
2224
  }();
2274
2225
 
2275
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2226
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2276
2227
  var handleUserInputs = function () {
2277
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2228
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2278
2229
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2279
2230
 
2280
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2231
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
2281
2232
  while (1) {
2282
- switch (_context14.prev = _context14.next) {
2233
+ switch (_context13.prev = _context13.next) {
2283
2234
  case 0:
2284
2235
  results = [];
2285
- _context14.prev = 1;
2236
+ _context13.prev = 1;
2286
2237
  _iteratorNormalCompletion2 = true;
2287
2238
  _didIteratorError2 = false;
2288
2239
  _iteratorError2 = undefined;
2289
- _context14.prev = 5;
2240
+ _context13.prev = 5;
2290
2241
  _iterator2 = (0, _getIterator3.default)(promises);
2291
2242
 
2292
2243
  case 7:
2293
2244
  if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2294
- _context14.next = 16;
2245
+ _context13.next = 16;
2295
2246
  break;
2296
2247
  }
2297
2248
 
2298
2249
  p = _step2.value;
2299
- _context14.next = 11;
2250
+ _context13.next = 11;
2300
2251
  return p;
2301
2252
 
2302
2253
  case 11:
2303
- _result2 = _context14.sent;
2254
+ _result2 = _context13.sent;
2304
2255
 
2305
2256
  results.push(_result2);
2306
2257
 
2307
2258
  case 13:
2308
2259
  _iteratorNormalCompletion2 = true;
2309
- _context14.next = 7;
2260
+ _context13.next = 7;
2310
2261
  break;
2311
2262
 
2312
2263
  case 16:
2313
- _context14.next = 22;
2264
+ _context13.next = 22;
2314
2265
  break;
2315
2266
 
2316
2267
  case 18:
2317
- _context14.prev = 18;
2318
- _context14.t0 = _context14['catch'](5);
2268
+ _context13.prev = 18;
2269
+ _context13.t0 = _context13['catch'](5);
2319
2270
  _didIteratorError2 = true;
2320
- _iteratorError2 = _context14.t0;
2271
+ _iteratorError2 = _context13.t0;
2321
2272
 
2322
2273
  case 22:
2323
- _context14.prev = 22;
2324
- _context14.prev = 23;
2274
+ _context13.prev = 22;
2275
+ _context13.prev = 23;
2325
2276
 
2326
2277
  if (!_iteratorNormalCompletion2 && _iterator2.return) {
2327
2278
  _iterator2.return();
2328
2279
  }
2329
2280
 
2330
2281
  case 25:
2331
- _context14.prev = 25;
2282
+ _context13.prev = 25;
2332
2283
 
2333
2284
  if (!_didIteratorError2) {
2334
- _context14.next = 28;
2285
+ _context13.next = 28;
2335
2286
  break;
2336
2287
  }
2337
2288
 
2338
2289
  throw _iteratorError2;
2339
2290
 
2340
2291
  case 28:
2341
- return _context14.finish(25);
2292
+ return _context13.finish(25);
2342
2293
 
2343
2294
  case 29:
2344
- return _context14.finish(22);
2295
+ return _context13.finish(22);
2345
2296
 
2346
2297
  case 30:
2347
- _context14.next = 32;
2298
+ _context13.next = 32;
2348
2299
  return commit(results);
2349
2300
 
2350
2301
  case 32:
2351
- _context14.next = 37;
2302
+ _context13.next = 37;
2352
2303
  break;
2353
2304
 
2354
2305
  case 34:
2355
- _context14.prev = 34;
2356
- _context14.t1 = _context14['catch'](1);
2306
+ _context13.prev = 34;
2307
+ _context13.t1 = _context13['catch'](1);
2357
2308
 
2358
- if (_context14.t1 != "cancelpwd") {
2359
- _message2.default.error(_context14.t1);
2309
+ if (_context13.t1 != "cancelpwd") {
2310
+ _message2.default.error(_context13.t1);
2360
2311
  setTimeout(function () {
2361
2312
  that.handleCzk();
2362
2313
  }, 500);
@@ -2364,27 +2315,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2364
2315
 
2365
2316
  case 37:
2366
2317
  case 'end':
2367
- return _context14.stop();
2318
+ return _context13.stop();
2368
2319
  }
2369
2320
  }
2370
- }, _callee14, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2321
+ }, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2371
2322
  }));
2372
2323
 
2373
- return function handleUserInputs(_x9) {
2374
- return _ref24.apply(this, arguments);
2324
+ return function handleUserInputs(_x8) {
2325
+ return _ref23.apply(this, arguments);
2375
2326
  };
2376
2327
  }();
2377
2328
 
2378
- var that, curmode, promises, _ref22, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2329
+ var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2379
2330
 
2380
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2331
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2381
2332
  while (1) {
2382
- switch (_context15.prev = _context15.next) {
2333
+ switch (_context14.prev = _context14.next) {
2383
2334
  case 0:
2384
2335
  that = _this2;
2385
2336
  curmode = _this2.store.paymode.currentMode;
2386
2337
  promises = [];
2387
- _ref22 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref22.isNewRetailBCPos;
2338
+ _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2388
2339
 
2389
2340
  if (isNewRetailBCPos) {
2390
2341
  if (curmode.value > 0) {
@@ -2405,33 +2356,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2405
2356
  }
2406
2357
 
2407
2358
  commit = function () {
2408
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2359
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2409
2360
  var result;
2410
- return _regenerator2.default.wrap(function _callee13$(_context13) {
2361
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
2411
2362
  while (1) {
2412
- switch (_context13.prev = _context13.next) {
2363
+ switch (_context12.prev = _context12.next) {
2413
2364
  case 0:
2414
2365
  if (!(values.length > 0)) {
2415
- _context13.next = 6;
2366
+ _context12.next = 6;
2416
2367
  break;
2417
2368
  }
2418
2369
 
2419
- _context13.next = 3;
2370
+ _context12.next = 3;
2420
2371
  return that.store.validePwd(values[0]);
2421
2372
 
2422
2373
  case 3:
2423
- _context13.t0 = _context13.sent;
2424
- _context13.next = 7;
2374
+ _context12.t0 = _context12.sent;
2375
+ _context12.next = 7;
2425
2376
  break;
2426
2377
 
2427
2378
  case 6:
2428
- _context13.t0 = "";
2379
+ _context12.t0 = "";
2429
2380
 
2430
2381
  case 7:
2431
- result = _context13.t0;
2382
+ result = _context12.t0;
2432
2383
 
2433
2384
  if (!(result == "")) {
2434
- _context13.next = 13;
2385
+ _context12.next = 13;
2435
2386
  break;
2436
2387
  }
2437
2388
 
@@ -2439,23 +2390,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2439
2390
  //返回
2440
2391
  that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
2441
2392
  _promise2.default.resolve();
2442
- _context13.next = 15;
2393
+ _context12.next = 15;
2443
2394
  break;
2444
2395
 
2445
2396
  case 13:
2446
- _context13.next = 15;
2397
+ _context12.next = 15;
2447
2398
  return _promise2.default.reject(result);
2448
2399
 
2449
2400
  case 15:
2450
2401
  case 'end':
2451
- return _context13.stop();
2402
+ return _context12.stop();
2452
2403
  }
2453
2404
  }
2454
- }, _callee13, _this3);
2405
+ }, _callee12, _this3);
2455
2406
  }));
2456
2407
 
2457
- return function commit(_x8) {
2458
- return _ref23.apply(this, arguments);
2408
+ return function commit(_x7) {
2409
+ return _ref22.apply(this, arguments);
2459
2410
  };
2460
2411
  }();
2461
2412
 
@@ -2463,10 +2414,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2463
2414
 
2464
2415
  case 7:
2465
2416
  case 'end':
2466
- return _context15.stop();
2417
+ return _context14.stop();
2467
2418
  }
2468
2419
  }
2469
- }, _callee15, _this3);
2420
+ }, _callee14, _this3);
2470
2421
  }));
2471
2422
 
2472
2423
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2506,15 +2457,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2506
2457
  };
2507
2458
 
2508
2459
  _this2.inputPwd = function () {
2509
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2460
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2510
2461
  var that, confirmPwd;
2511
- return _regenerator2.default.wrap(function _callee16$(_context16) {
2462
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2512
2463
  while (1) {
2513
- switch (_context16.prev = _context16.next) {
2464
+ switch (_context15.prev = _context15.next) {
2514
2465
  case 0:
2515
2466
  that = _this2;
2516
2467
  confirmPwd = _this2.state.confirmPwd;
2517
- return _context16.abrupt('return', new _promise2.default(function (resolve, reject) {
2468
+ return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
2518
2469
  var modal = (0, _asyncModal2.default)({
2519
2470
  onPressEnter: function onPressEnter() {
2520
2471
  _keyboard2.default.close();
@@ -2522,8 +2473,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2522
2473
  // if (v !== '') {
2523
2474
  modal.destroy();
2524
2475
 
2525
- var _ref26 = that.state || {},
2526
- confirmPwd = _ref26.confirmPwd;
2476
+ var _ref25 = that.state || {},
2477
+ confirmPwd = _ref25.confirmPwd;
2527
2478
 
2528
2479
  setTimeout(function () {
2529
2480
  paymode.authCode = v;
@@ -2613,8 +2564,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2613
2564
  type: 'primary', size: 'large', onClick: function onClick() {
2614
2565
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2615
2566
 
2616
- var _ref27 = that.state || {},
2617
- confirmPwd = _ref27.confirmPwd;
2567
+ var _ref26 = that.state || {},
2568
+ confirmPwd = _ref26.confirmPwd;
2618
2569
  // if (v !== '') {
2619
2570
 
2620
2571
 
@@ -2648,14 +2599,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2648
2599
 
2649
2600
  case 3:
2650
2601
  case 'end':
2651
- return _context16.stop();
2602
+ return _context15.stop();
2652
2603
  }
2653
2604
  }
2654
- }, _callee16, _this3);
2605
+ }, _callee15, _this3);
2655
2606
  }));
2656
2607
 
2657
- return function (_x10) {
2658
- return _ref25.apply(this, arguments);
2608
+ return function (_x9) {
2609
+ return _ref24.apply(this, arguments);
2659
2610
  };
2660
2611
  }();
2661
2612
 
@@ -2709,8 +2660,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2709
2660
 
2710
2661
  _this2.onCzkChange = function (v) {
2711
2662
  // console.log("czk change:"+new Date().toLocaleTimeString())
2712
- var _ref28 = _mutantsUtil.platform || {},
2713
- isNewRetailBCPos = _ref28.isNewRetailBCPos;
2663
+ var _ref27 = _mutantsUtil.platform || {},
2664
+ isNewRetailBCPos = _ref27.isNewRetailBCPos;
2714
2665
 
2715
2666
  if (!isNewRetailBCPos) {
2716
2667
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -2842,9 +2793,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2842
2793
  var that = _this2;
2843
2794
  var isStoredValueCard = false;
2844
2795
  var discountPrototypeTotalAmount = _this2.state.discountPrototypeTotalAmount;
2845
- var _this2$props4 = _this2.props,
2846
- isReturn = _this2$props4.isReturn,
2847
- type = _this2$props4.type;
2796
+ var _this2$props3 = _this2.props,
2797
+ isReturn = _this2$props3.isReturn,
2798
+ type = _this2$props3.type;
2848
2799
 
2849
2800
  var isManualIntoAmount = void 0;
2850
2801
  // 付款弹窗
@@ -3291,19 +3242,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3291
3242
 
3292
3243
  _this2.hasElectron = hasElectron;
3293
3244
 
3294
- var _ref29 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3295
- MemberMeStorageCardInputByKeyBoard = _ref29.MemberMeStorageCardInputByKeyBoard,
3296
- ICCardServer = _ref29.ICCardServer,
3297
- ICCardPassword = _ref29.ICCardPassword;
3245
+ var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3246
+ MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
3247
+ ICCardServer = _ref28.ICCardServer,
3248
+ ICCardPassword = _ref28.ICCardPassword;
3298
3249
 
3299
3250
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3300
3251
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3301
3252
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3302
3253
  //移动端环境下,没有读取IC卡的方式。
3303
3254
 
3304
- var _ref30 = _mutantsUtil.platform || {},
3305
- isHorizontalPad = _ref30.isHorizontalPad,
3306
- isHorizontalSunMi = _ref30.isHorizontalSunMi;
3255
+ var _ref29 = _mutantsUtil.platform || {},
3256
+ isHorizontalPad = _ref29.isHorizontalPad,
3257
+ isHorizontalSunMi = _ref29.isHorizontalSunMi;
3307
3258
 
3308
3259
  _this2.isHorizontalPad = !!isHorizontalPad;
3309
3260
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3349,7 +3300,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3349
3300
 
3350
3301
  //IC卡连接
3351
3302
  value: function connectRfCard() {
3352
- var _this6 = this;
3303
+ var _this5 = this;
3353
3304
 
3354
3305
  //客户端环境下,并开启了启用IC卡。
3355
3306
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3360,7 +3311,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3360
3311
  } else {
3361
3312
  result = { connectCardStatus: true, connectCardError: '' };
3362
3313
  }
3363
- _this6.setState(result);
3314
+ _this5.setState(result);
3364
3315
  });
3365
3316
  }
3366
3317
  }
@@ -3369,7 +3320,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3369
3320
  }, {
3370
3321
  key: 'readRfCard',
3371
3322
  value: function readRfCard() {
3372
- var _this7 = this;
3323
+ var _this6 = this;
3373
3324
 
3374
3325
  //客户端环境下,并开启了启用IC卡。
3375
3326
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3386,15 +3337,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3386
3337
  _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReadRfCard', (0, _extends3.default)({}, params), function (ret) {
3387
3338
  if (ret.status === 0) {
3388
3339
  _message2.default.error(ret.value);
3389
- _this7.connectRfCard(); //读取失败后,重新连接一下。
3340
+ _this6.connectRfCard(); //读取失败后,重新连接一下。
3390
3341
  return;
3391
3342
  } else if (ret.status === 1) {
3392
3343
  // this.searchMember(ret.value);
3393
3344
  // this.czkInput.input["value"]=ret.value;
3394
- _this7.setState({
3345
+ _this6.setState({
3395
3346
  czkValue: ret.value
3396
3347
  });
3397
- _this7.loadCzk(ret.value);
3348
+ _this6.loadCzk(ret.value);
3398
3349
  }
3399
3350
  });
3400
3351
  }
@@ -3422,11 +3373,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3422
3373
  //jfdx
3423
3374
 
3424
3375
 
3425
- /**
3426
- *
3427
- * @param {*} thePaymodes 支付方式列表
3428
- * @param {*} currenIndex 当前支付方式下标
3429
- * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3376
+ /**
3377
+ *
3378
+ * @param {*} thePaymodes 支付方式列表
3379
+ * @param {*} currenIndex 当前支付方式下标
3380
+ * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3430
3381
  */
3431
3382
 
3432
3383
  // 处理客显显示功能
@@ -3445,8 +3396,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3445
3396
  PayStyle = _enumController$getEn32.PayStyle;
3446
3397
 
3447
3398
  if (this.currentInput) {
3448
- if (this.store.paymode.currentMode && this.store.paymode.currentMode.paymentType === PayStyle.djq) {
3449
- return;
3399
+ if (this.store.paymode.currentMode) {
3400
+ var paymentType1 = this.store.paymode.currentMode.paymentType;
3401
+ if (paymentType1 === PayStyle.djq || paymentType1 === PayStyle.hyczk || paymentType1 === PayStyle.jfdx) {
3402
+ return;
3403
+ }
3450
3404
  }
3451
3405
  var value = _keyboard2.default.getNewValue(this.currentInput, this.currentInput.value, key, true);
3452
3406
  if (!isNaN(value) || value == '-') {
@@ -3458,7 +3412,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3458
3412
  }, {
3459
3413
  key: 'renderToolbtn',
3460
3414
  value: function renderToolbtn(mode, index) {
3461
- var _this8 = this;
3415
+ var _this7 = this;
3462
3416
 
3463
3417
  var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
3464
3418
  PayIcon = _enumController$getEn33.PayIcon,
@@ -3495,7 +3449,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3495
3449
  return _react2.default.createElement(
3496
3450
  'div',
3497
3451
  { key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
3498
- _this8.onTabsClick(mode.paymentType);
3452
+ _this7.onTabsClick(mode.paymentType);
3499
3453
  } },
3500
3454
  _react2.default.createElement(
3501
3455
  'div',
@@ -3532,7 +3486,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3532
3486
  }, {
3533
3487
  key: 'render',
3534
3488
  value: function render() {
3535
- var _this9 = this;
3489
+ var _this8 = this;
3536
3490
 
3537
3491
  var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
3538
3492
  PayIcon = _enumController$getEn34.PayIcon,
@@ -3551,8 +3505,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3551
3505
  newPassConfirm = _state2.newPassConfirm,
3552
3506
  newPass = _state2.newPass;
3553
3507
 
3554
- var _ref31 = _mutantsUtil.platform || {},
3555
- isNewRetailBCPos = _ref31.isNewRetailBCPos;
3508
+ var _ref30 = _mutantsUtil.platform || {},
3509
+ isNewRetailBCPos = _ref30.isNewRetailBCPos;
3556
3510
 
3557
3511
  var _store2 = this.store,
3558
3512
  paymode = _store2.paymode,
@@ -3573,7 +3527,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3573
3527
  var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
3574
3528
  // 单据模式
3575
3529
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
3576
- return !(_this9.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3530
+ return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3577
3531
  }) : paymode.thePaymodes;
3578
3532
  var paymodes = paymode.paymodes,
3579
3533
  settle = paymode.settle,
@@ -3615,11 +3569,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3615
3569
  quantity4 = 0;
3616
3570
  var sumQuantity = 0; //数量总和的值,包括称重的。
3617
3571
 
3618
- var _ref32 = quantityDetail || {},
3619
- _ref32$buyQuantity = _ref32.buyQuantity,
3620
- buyQuantity = _ref32$buyQuantity === undefined ? 0 : _ref32$buyQuantity,
3621
- _ref32$returnQuantity = _ref32.returnQuantity,
3622
- returnQuantity = _ref32$returnQuantity === undefined ? 0 : _ref32$returnQuantity;
3572
+ var _ref31 = quantityDetail || {},
3573
+ _ref31$buyQuantity = _ref31.buyQuantity,
3574
+ buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
3575
+ _ref31$returnQuantity = _ref31.returnQuantity,
3576
+ returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
3623
3577
 
3624
3578
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3625
3579
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -3643,7 +3597,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3643
3597
  return _react2.default.createElement(
3644
3598
  'div',
3645
3599
  { className: 'billingSettlement', ref: function ref(r) {
3646
- return _this9.billingSettlementDocumnet = r;
3600
+ return _this8.billingSettlementDocumnet = r;
3647
3601
  } },
3648
3602
  this.props.MemberPoints ? _react2.default.createElement(
3649
3603
  'div',
@@ -3773,9 +3727,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3773
3727
  return _react2.default.createElement(
3774
3728
  _button2.default,
3775
3729
  { className: (0, _classnames4.default)({ "quick": true, "quick2": type == 1 }), key: 'paymentType_' + p.paymentType, onClick: function onClick() {
3776
- _this9.btnDebounced(p.paymentType, true);
3730
+ _this8.btnDebounced(p.paymentType, true);
3777
3731
  },
3778
- disabled: productsIsEmpty || type != 1 && _this9.checkModeDisabled(p.paymentType, (_this9.context.viewModel.data.TotalTaxAmount || 0 - _this9.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn) },
3732
+ disabled: productsIsEmpty || type != 1 && _this8.checkModeDisabled(p.paymentType, (_this8.context.viewModel.data.TotalTaxAmount || 0 - _this8.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn) },
3779
3733
  _react2.default.createElement(
3780
3734
  'div',
3781
3735
  { className: (0, _classnames4.default)((_classnames2 = {}, (0, _defineProperty3.default)(_classnames2, iconclass, true), (0, _defineProperty3.default)(_classnames2, "icon", true), _classnames2)) },
@@ -3791,7 +3745,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3791
3745
  _react2.default.createElement(
3792
3746
  _button2.default,
3793
3747
  { key: 'settle', className: (0, _classnames4.default)({ "settle": true, "settle2": type == 1, "settleStorage": true, 'primary-btn': true }), onClick: function onClick() {
3794
- _this9.btnDebounced();
3748
+ _this8.btnDebounced();
3795
3749
  }, disabled: productsIsEmpty },
3796
3750
  this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : settle.name
3797
3751
  )
@@ -3819,7 +3773,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3819
3773
  'div',
3820
3774
  null,
3821
3775
  (0, _map3.default)(paymodes, function (mode, index) {
3822
- return _this9.renderToolbtn(mode, index);
3776
+ return _this8.renderToolbtn(mode, index);
3823
3777
  })
3824
3778
  ),
3825
3779
  paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
@@ -3856,28 +3810,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3856
3810
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
3857
3811
  className: _index.hotKey.hotKeyNotFilter(),
3858
3812
  onClick: function onClick() {
3859
- _this9.editModal(index, mode.paymentType, boriginReturn);
3813
+ _this8.editModal(index, mode.paymentType, boriginReturn);
3860
3814
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
3861
3815
  className: _index.hotKey.hotKeyNotFilter(),
3862
3816
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
3863
3817
  onClick: function onClick(e) {
3864
- return _this9.onHotKeyClick2(index, mode, paymode, e);
3818
+ return _this8.onHotKeyClick2(index, mode, paymode, e);
3865
3819
  },
3866
3820
  onBlur: function onBlur(e) {
3867
- return _this9.onBlur(index, e);
3821
+ return _this8.onBlur(index, e);
3868
3822
  },
3869
3823
  onFocus: function onFocus(e) {
3870
- return _this9.onFocusHack(index, mode, paymode, e);
3824
+ return _this8.onFocusHack(index, mode, paymode, e);
3871
3825
  },
3872
3826
  onChange: function onChange(e) {
3873
- return _this9.handleChange(index, e);
3827
+ return _this8.handleChange(index, e);
3874
3828
  }
3875
3829
  })
3876
3830
  ),
3877
3831
  _react2.default.createElement(
3878
3832
  'span',
3879
3833
  { className: 'minus', onClick: function onClick() {
3880
- _this9.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3834
+ _this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3881
3835
  } },
3882
3836
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
3883
3837
  )
@@ -3923,7 +3877,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3923
3877
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
3924
3878
  _button2.default,
3925
3879
  { onClick: function onClick() {
3926
- _this9.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3880
+ _this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3927
3881
  }, className: 'addCard btn-border-primary' },
3928
3882
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
3929
3883
  _react2.default.createElement(
@@ -4164,7 +4118,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4164
4118
  '\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
4165
4119
  ),
4166
4120
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4167
- var isReturn = _this9.props.isReturn;
4121
+ var isReturn = _this8.props.isReturn;
4168
4122
 
4169
4123
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4170
4124
  return m.paymentType === PayStyle.smzf;
@@ -4208,7 +4162,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4208
4162
  _react2.default.createElement(
4209
4163
  'div',
4210
4164
  { className: 'hotkey' },
4211
- _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[hotkeyIndex] || ''
4165
+ _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[hotkeyIndex] || ''
4212
4166
  )
4213
4167
  ),
4214
4168
  _react2.default.createElement(
@@ -4216,8 +4170,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4216
4170
  { className: (0, _classnames4.default)({ "content": true }) },
4217
4171
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4218
4172
 
4219
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex]),
4220
- disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4173
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4174
+ disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4221
4175
  onClick: function onClick() {
4222
4176
  // let czkinput = document.getElementById('inputS' + index);
4223
4177
  // if (mode.paymentType === PayStyle.hyczk) {
@@ -4230,10 +4184,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4230
4184
  // mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
4231
4185
  if (mode.paymentType == PayStyle.hyczk) {
4232
4186
  if (themodeHyczk && themodeHyczk.length === 0) {
4233
- _this9.onHotKeyClick1(mode, index, boriginReturn);
4187
+ _this8.onHotKeyClick1(mode, index, boriginReturn);
4234
4188
  }
4235
4189
  } else {
4236
- _this9.onHotKeyClick1(mode, index, boriginReturn);
4190
+ _this8.onHotKeyClick1(mode, index, boriginReturn);
4237
4191
  }
4238
4192
  },
4239
4193
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
@@ -4241,20 +4195,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4241
4195
  }), function (sum, m) {
4242
4196
  return Math.Add(sum, m.value);
4243
4197
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4244
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex]),
4245
- disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this9.checkScanDisabled(mode.paymentType),
4198
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4199
+ disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4246
4200
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4247
4201
  onClick: function onClick(e) {
4248
- return _this9.onHotKeyClick2(index, mode, paymode, e);
4202
+ return _this8.onHotKeyClick2(index, mode, paymode, e);
4249
4203
  },
4250
4204
  onBlur: function onBlur(e) {
4251
- return _this9.onBlur(index, e);
4205
+ return _this8.onBlur(index, e);
4252
4206
  },
4253
4207
  onFocus: function onFocus(e) {
4254
- return _this9.onFocusHack(index, mode, paymode, e);
4208
+ return _this8.onFocusHack(index, mode, paymode, e);
4255
4209
  },
4256
4210
  onChange: function onChange(e) {
4257
- return _this9.handleChange(index, e);
4211
+ return _this8.handleChange(index, e);
4258
4212
  }
4259
4213
  })
4260
4214
  )
@@ -4303,7 +4257,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4303
4257
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
4304
4258
  _button2.default,
4305
4259
  { onClick: function onClick() {
4306
- return _this9.onHotKeyClick1(mode, index, boriginReturn);
4260
+ return _this8.onHotKeyClick1(mode, index, boriginReturn);
4307
4261
  }, className: 'addCard btn-border-primary' },
4308
4262
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
4309
4263
  _react2.default.createElement(
@@ -4370,7 +4324,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4370
4324
  'div',
4371
4325
  null,
4372
4326
  (0, _map3.default)(paymodes, function (mode, index) {
4373
- return _this9.renderToolbtn(mode, index);
4327
+ return _this8.renderToolbtn(mode, index);
4374
4328
  })
4375
4329
  ),
4376
4330
  paymodes.length > carouselStart2 && this.paymodesCarouselList(params, paymodes, carouselStart2)
@@ -4481,24 +4435,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4481
4435
  { className: (0, _classnames4.default)({ "content": true }) },
4482
4436
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4483
4437
  onClick: function onClick() {
4484
- _this9.editModal(index, mode.paymentType);
4438
+ _this8.editModal(index, mode.paymentType);
4485
4439
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4486
4440
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4487
4441
  onBlur: function onBlur(e) {
4488
- return _this9.onBlur(index, e);
4442
+ return _this8.onBlur(index, e);
4489
4443
  },
4490
4444
  onChange: function onChange(e) {
4491
- return _this9.handleChange(index, e);
4445
+ return _this8.handleChange(index, e);
4492
4446
  },
4493
4447
  onFocus: function onFocus(e) {
4494
- return _this9.onFocusHack(index, mode, paymode, e);
4448
+ return _this8.onFocusHack(index, mode, paymode, e);
4495
4449
  }
4496
4450
  })
4497
4451
  ),
4498
4452
  _react2.default.createElement(
4499
4453
  'div',
4500
4454
  { className: 'minus', onClick: function onClick() {
4501
- _this9.onDelPay(index);
4455
+ _this8.onDelPay(index);
4502
4456
  } },
4503
4457
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
4504
4458
  )
@@ -4688,7 +4642,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4688
4642
 
4689
4643
  // _map(_sortBy(thePaymodes, pay => pay['order'] || 0), (mode) => {
4690
4644
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4691
- var isReturn = _this9.props.isReturn;
4645
+ var isReturn = _this8.props.isReturn;
4692
4646
 
4693
4647
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4694
4648
  return m.paymentType === PayStyle.smzf;
@@ -4732,7 +4686,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4732
4686
  _react2.default.createElement(
4733
4687
  'div',
4734
4688
  { className: 'hotkey' },
4735
- _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[mindex] || ""
4689
+ _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[mindex] || ""
4736
4690
  )
4737
4691
  ),
4738
4692
  _react2.default.createElement(
@@ -4740,32 +4694,32 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4740
4694
  { className: (0, _classnames4.default)({ "content": true }) },
4741
4695
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index
4742
4696
  // className={classnames({'paymode':mode.paymentType == PayStyle.hyczk?(_findIndex(thePaymodes,(m)=>{return m.paymentType==PayStyle.hyczk;})==mindex?true:false):true})}
4743
- , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4697
+ , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4744
4698
  // className="paymode"
4745
- , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4699
+ , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4746
4700
  onClick: function onClick() {
4747
- _this9.onHotKeyClick1(mode, index, boriginReturn);
4701
+ _this8.onHotKeyClick1(mode, index, boriginReturn);
4748
4702
  },
4749
4703
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
4750
4704
  return tm.paymentType == PayStyle.hyczk;
4751
4705
  }), function (sum, m) {
4752
4706
  return Math.Add(sum, m.value);
4753
4707
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4754
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4708
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4755
4709
  // className="paymode"
4756
- , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this9.checkScanDisabled(mode.paymentType),
4710
+ , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4757
4711
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4758
4712
  onClick: function onClick(e) {
4759
- return _this9.onHotKeyClick2(index, mode, paymode, e);
4713
+ return _this8.onHotKeyClick2(index, mode, paymode, e);
4760
4714
  },
4761
4715
  onBlur: function onBlur(e) {
4762
- return _this9.onBlur(index, e);
4716
+ return _this8.onBlur(index, e);
4763
4717
  },
4764
4718
  onFocus: function onFocus(e) {
4765
- return _this9.onFocusHack(index, mode, paymode, e);
4719
+ return _this8.onFocusHack(index, mode, paymode, e);
4766
4720
  },
4767
4721
  onChange: function onChange(e) {
4768
- return _this9.handleChange(index, e);
4722
+ return _this8.handleChange(index, e);
4769
4723
  }
4770
4724
  })
4771
4725
  )
@@ -4948,79 +4902,79 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4948
4902
  placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u624B\u673A\u53F7/\u50A8\u503C\u5361\u53F7',
4949
4903
  className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
4950
4904
  onChange: function onChange(e) {
4951
- return _this9.onCzkChange(e.target.value);
4905
+ return _this8.onCzkChange(e.target.value);
4952
4906
  },
4953
4907
  defaultValue: currentMode && currentMode.storageCardNo,
4954
4908
  value: czkValue,
4955
4909
  ref: function ref(input) {
4956
- return _this9.czkInput = input;
4910
+ return _this8.czkInput = input;
4957
4911
  },
4958
4912
  onKeyDown: function () {
4959
- var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
4913
+ var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4960
4914
  var time, _paymode;
4961
4915
 
4962
- return _regenerator2.default.wrap(function _callee17$(_context17) {
4916
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
4963
4917
  while (1) {
4964
- switch (_context17.prev = _context17.next) {
4918
+ switch (_context16.prev = _context16.next) {
4965
4919
  case 0:
4966
4920
  if (!(e.keyCode == 13)) {
4967
- _context17.next = 14;
4921
+ _context16.next = 14;
4968
4922
  break;
4969
4923
  }
4970
4924
 
4971
4925
  time = Date.parse(new Date());
4972
4926
 
4973
- if (!(_this9.isStorageCardInputType && time - _this9.keypressStime > 350)) {
4974
- _context17.next = 7;
4927
+ if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4928
+ _context16.next = 7;
4975
4929
  break;
4976
4930
  }
4977
4931
 
4978
4932
  _message2.default.warn('储值卡不可键盘录入,请刷卡!');
4979
- _this9.keypressStime = null;
4980
- _this9.setState({
4933
+ _this8.keypressStime = null;
4934
+ _this8.setState({
4981
4935
  czkValue: null
4982
4936
  });
4983
- return _context17.abrupt('return');
4937
+ return _context16.abrupt('return');
4984
4938
 
4985
4939
  case 7:
4986
- _this9.keypressStime = null;
4987
- _context17.next = 10;
4988
- return _this9.loadCzk(e.target.value);
4940
+ _this8.keypressStime = null;
4941
+ _context16.next = 10;
4942
+ return _this8.loadCzk(e.target.value);
4989
4943
 
4990
4944
  case 10:
4991
- _paymode = _this9.store.paymode;
4945
+ _paymode = _this8.store.paymode;
4992
4946
 
4993
4947
  if (!_paymode.currentMode.storageCardNo) {
4994
- _this9.setState({
4948
+ _this8.setState({
4995
4949
  czkvalue: null
4996
4950
  });
4997
4951
  }
4998
- _context17.next = 15;
4952
+ _context16.next = 15;
4999
4953
  break;
5000
4954
 
5001
4955
  case 14:
5002
- if (!_this9.keypressStime && e.keyCode !== 8) {
5003
- _this9.keypressStime = Date.parse(new Date());
4956
+ if (!_this8.keypressStime && e.keyCode !== 8) {
4957
+ _this8.keypressStime = Date.parse(new Date());
5004
4958
  }
5005
4959
 
5006
4960
  case 15:
5007
4961
  case 'end':
5008
- return _context17.stop();
4962
+ return _context16.stop();
5009
4963
  }
5010
4964
  }
5011
- }, _callee17, _this9);
4965
+ }, _callee16, _this8);
5012
4966
  }));
5013
4967
 
5014
- return function (_x12) {
5015
- return _ref33.apply(this, arguments);
4968
+ return function (_x11) {
4969
+ return _ref32.apply(this, arguments);
5016
4970
  };
5017
4971
  }(),
5018
4972
  onFocus: function onFocus(e) {
5019
- _this9.inputTarget = _this9.czkInput.input;
5020
- !_this9.state.prototypeVisible && _keyboard2.default.open(function (v) {
5021
- var value = _keyboard2.default.getNewValue(_this9.inputTarget, _this9.inputTarget.value, v);
5022
- _this9.onCzkChange(value);
5023
- }, _this9.czkKeyboardOnOk, _this9.czkKeyboardOnClose)();
4973
+ _this8.inputTarget = _this8.czkInput.input;
4974
+ !_this8.state.prototypeVisible && _keyboard2.default.open(function (v) {
4975
+ var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
4976
+ _this8.onCzkChange(value);
4977
+ }, _this8.czkKeyboardOnOk, _this8.czkKeyboardOnClose)();
5024
4978
  },
5025
4979
  onBlur: function onBlur(e) {
5026
4980
  _keyboard2.default.close();
@@ -5032,7 +4986,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5032
4986
 
5033
4987
  /* 扫描组件 */
5034
4988
  this.isHorizontalPad && _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
5035
- return _this9.scanObj = scan;
4989
+ return _this8.scanObj = scan;
5036
4990
  }, onChange: this.onScanCzkResult })
5037
4991
  ),
5038
4992
  _react2.default.createElement(
@@ -5066,22 +5020,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5066
5020
  className: _index.hotKey.hotKeyNotFilter('input'),
5067
5021
  value: storageValue,
5068
5022
  onChange: function onChange(event) {
5069
- _this9.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5023
+ _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5070
5024
  },
5071
5025
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
5072
- ref: function ref(_ref34) {
5073
- return _this9["inputCzkAmount"] = _ref34;
5026
+ ref: function ref(_ref33) {
5027
+ return _this8["inputCzkAmount"] = _ref33;
5074
5028
  },
5075
5029
  onFocus: function onFocus(e) {
5076
- _this9.inputkey = "inputCzkAmount";
5030
+ _this8.inputkey = "inputCzkAmount";
5077
5031
  _keyboard2.default.open(function (v) {
5078
- var value = _keyboard2.default.getNewValue(_this9[_this9.inputkey].input, _this9[_this9.inputkey].input.value, v);
5079
- _this9.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
5080
- }, _this9.keyboardOnOk, _this9.keyboardOnClose)();
5032
+ var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5033
+ _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
5034
+ }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
5081
5035
  },
5082
5036
  onBlur: function onBlur(e) {
5083
5037
  _keyboard2.default.close();
5084
- _this9.setCurrentModeValue((0, _utils.getFixedNumber)(_this9.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
5038
+ _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
5085
5039
  }
5086
5040
  })
5087
5041
  )
@@ -5208,16 +5162,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5208
5162
  maxLength: 6,
5209
5163
  value: newPass,
5210
5164
  ref: function ref(input) {
5211
- return _this9.inputNewAmount = input;
5165
+ return _this8.inputNewAmount = input;
5212
5166
  },
5213
5167
  onChange: function onChange(value) {
5214
- return _this9.setPwdValue('newPass', value.target.value);
5168
+ return _this8.setPwdValue('newPass', value.target.value);
5215
5169
  },
5216
5170
  onBlur: function onBlur(value) {
5217
- return _this9.handleBlur('newPass');
5171
+ return _this8.handleBlur('newPass');
5218
5172
  },
5219
5173
  onPressEnter: function onPressEnter() {
5220
- return _this9.onPressEnterCzk('newPass');
5174
+ return _this8.onPressEnterCzk('newPass');
5221
5175
  }
5222
5176
  })
5223
5177
  )
@@ -5240,16 +5194,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5240
5194
  maxLength: 6,
5241
5195
  value: newPassConfirm,
5242
5196
  ref: function ref(input) {
5243
- return _this9.inputConfirmAmount = input;
5197
+ return _this8.inputConfirmAmount = input;
5244
5198
  },
5245
5199
  onChange: function onChange(value) {
5246
- return _this9.setPwdValue('newPassConfirm', value.target.value);
5200
+ return _this8.setPwdValue('newPassConfirm', value.target.value);
5247
5201
  },
5248
5202
  onBlur: function onBlur(value) {
5249
- return _this9.handleBlur('newPassConfirm');
5203
+ return _this8.handleBlur('newPassConfirm');
5250
5204
  },
5251
5205
  onPressEnter: function onPressEnter() {
5252
- return _this9.onPressEnterCzk('newPassConfirm');
5206
+ return _this8.onPressEnterCzk('newPassConfirm');
5253
5207
  }
5254
5208
  })
5255
5209
  )
@@ -5309,22 +5263,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5309
5263
  // onChange={this.onDjqChange}
5310
5264
  // value={currentMode && currentMode.member.cardNo}
5311
5265
  , ref: function ref(input) {
5312
- return _this9.inputdjq = input;
5266
+ return _this8.inputdjq = input;
5313
5267
  },
5314
5268
  onKeyDown: function onKeyDown(e) {
5315
5269
  if (e.keyCode == 13) {
5316
- _this9.addDjq(e.target.value);
5270
+ _this8.addDjq(e.target.value);
5317
5271
  }
5318
5272
  },
5319
5273
  onFocus: function onFocus(e) {
5320
- _this9.inputTarget = _this9.inputdjq.input;
5274
+ _this8.inputTarget = _this8.inputdjq.input;
5321
5275
  _keyboard2.default.open(function (v) {
5322
- var value = _keyboard2.default.getNewValue(_this9.inputTarget, _this9.inputTarget.value, v);
5323
- _this9.onDjqChange(value, true);
5324
- }, _this9.djqKeyboardOnOk, _this9.djqKeyboardOnClose)();
5276
+ var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
5277
+ _this8.onDjqChange(value, true);
5278
+ }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
5325
5279
  },
5326
5280
  onBlur: function onBlur(e) {
5327
- _keyboard2.default.close();_this9.inputdjq.input.value = '';
5281
+ _keyboard2.default.close();_this8.inputdjq.input.value = '';
5328
5282
  }
5329
5283
  })
5330
5284
  ),
@@ -5358,7 +5312,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5358
5312
  { className: 'col3' },
5359
5313
  _react2.default.createElement(_ticon2.default, { type: 'saomiao1', className: 'icon', onClick: this.changeScanProduct }),
5360
5314
  _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
5361
- return _this9.scanObj = scan;
5315
+ return _this8.scanObj = scan;
5362
5316
  }, onChange: this.onScanDjqResult })
5363
5317
  )
5364
5318
  ),
@@ -5369,10 +5323,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5369
5323
  'div',
5370
5324
  { className: 'djq2' },
5371
5325
  currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
5372
- if (!_this9.state.couponLight && !q.count) {
5326
+ if (!_this8.state.couponLight && !q.count) {
5373
5327
  return;
5374
5328
  }
5375
- if (_this9.state.couponLight && q.count && q.count === 1) {
5329
+ if (_this8.state.couponLight && q.count && q.count === 1) {
5376
5330
  return;
5377
5331
  }
5378
5332
  return _react2.default.createElement(
@@ -5426,7 +5380,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5426
5380
  _react2.default.createElement(
5427
5381
  'div',
5428
5382
  { className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
5429
- return q.IsEnable ? _this9.djqChecked(q, _this9.props.dto) : null;
5383
+ return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
5430
5384
  } },
5431
5385
  q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
5432
5386
  q.checked ? _react2.default.createElement(
@@ -5733,22 +5687,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5733
5687
  type: 'text',
5734
5688
  value: storageValue,
5735
5689
  onChange: function onChange(e) {
5736
- _this9.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5690
+ _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5737
5691
  },
5738
5692
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5739
- ref: function ref(_ref35) {
5740
- return _this9["inputJfdxAmount"] = _ref35;
5693
+ ref: function ref(_ref34) {
5694
+ return _this8["inputJfdxAmount"] = _ref34;
5741
5695
  },
5742
5696
  onFocus: function onFocus(e) {
5743
- _this9.inputkey = "inputJfdxAmount";
5697
+ _this8.inputkey = "inputJfdxAmount";
5744
5698
  _keyboard2.default.open(function (v) {
5745
- var value = _keyboard2.default.getNewValue(_this9[_this9.inputkey].input, _this9[_this9.inputkey].input.value, v);
5746
- _this9.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5747
- }, _this9.keyboardOnOk, _this9.keyboardOnClose)();
5699
+ var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5700
+ _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5701
+ }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
5748
5702
  },
5749
5703
  onBlur: function onBlur(e) {
5750
5704
  _keyboard2.default.close();
5751
- _this9.setCurrentModeValue((0, _utils.getFixedNumber)(_this9.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5705
+ _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5752
5706
  }
5753
5707
  })
5754
5708
  )