tplus-components-touch 3.33.7 → 3.33.11

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