tplus-components-touch 3.32.1 → 3.33.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -769,14 +769,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
769
769
 
770
770
  _this2.handleCzkOk = function () {
771
771
  var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
772
- var _this2$store$paymode$, walletEnabled, cardTypeEnum, freePaymentPasswordStore;
772
+ var _this2$store$paymode$, walletEnabled, cardTypeEnum, freePaymentPasswordStore, isNeedPassword;
773
773
 
774
774
  return _regenerator2.default.wrap(function _callee3$(_context3) {
775
775
  while (1) {
776
776
  switch (_context3.prev = _context3.next) {
777
777
  case 0:
778
778
  // 判断是否有密码
779
- _this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum, freePaymentPasswordStore = _this2$store$paymode$.freePaymentPasswordStore;
779
+ _this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum, freePaymentPasswordStore = _this2$store$paymode$.freePaymentPasswordStore, isNeedPassword = _this2$store$paymode$.isNeedPassword;
780
780
 
781
781
  if (cardTypeEnum === 'BALANCE_CARD' && freePaymentPasswordStore) {
782
782
  _this2.handleCzkData();
@@ -840,7 +840,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
840
840
  cardTypeEnum = _this2.store.paymode.currentMode.cardTypeEnum;
841
841
 
842
842
  if (!result) {
843
- _context4.next = 20;
843
+ _context4.next = 18;
844
844
  break;
845
845
  }
846
846
 
@@ -860,7 +860,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
860
860
  }, 350);
861
861
 
862
862
  if (!(isInputMember && _this2.store.member.ID)) {
863
- _context4.next = 18;
863
+ _context4.next = 16;
864
864
  break;
865
865
  }
866
866
 
@@ -871,20 +871,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
871
871
  resp = _context4.sent;
872
872
 
873
873
  updataMemberInfo(resp);
874
- _context4.next = 19;
875
- break;
876
874
 
877
- case 18:
875
+ case 16:
878
876
  if (cardTypeEnum === 'BALANCE_CARD') {
879
- _this2.store.updateCardInfo();
877
+ _this2.store.paymode.updateCardInfo();
880
878
  }
881
-
882
- case 19:
883
879
  _this2.setState({
884
880
  isInputMember: false
885
881
  });
886
882
 
887
- case 20:
883
+ case 18:
888
884
  case 'end':
889
885
  return _context4.stop();
890
886
  }
@@ -1327,7 +1323,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1327
1323
  PayStyle = _enumController$getEn13.PayStyle;
1328
1324
 
1329
1325
  var reg = /^[\d.]+$/g;
1330
- if (_this2.store.paymode.currentMode.paymentType === PayStyle.hyczk) {
1326
+ if (_this2.store.paymode.currentMode.paymentType === PayStyle.hyczk || _this2.store.paymode.currentMode.paymentType === PayStyle.jfdx) {
1331
1327
  if (!val) {
1332
1328
  _this2.setState({
1333
1329
  storageValue: val
@@ -1946,96 +1942,147 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1946
1942
  };
1947
1943
 
1948
1944
  _this2.handleSettle = function () {
1949
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1945
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
1950
1946
  var handleUserInputs = function () {
1951
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1952
- var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1947
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
1948
+ var _this5 = this;
1953
1949
 
1954
- return _regenerator2.default.wrap(function _callee10$(_context10) {
1950
+ var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result, currentZeroTime, voucherDateTime;
1951
+
1952
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1955
1953
  while (1) {
1956
- switch (_context10.prev = _context10.next) {
1954
+ switch (_context11.prev = _context11.next) {
1957
1955
  case 0:
1958
1956
  results = [];
1959
- _context10.prev = 1;
1957
+ _context11.prev = 1;
1960
1958
  _iteratorNormalCompletion = true;
1961
1959
  _didIteratorError = false;
1962
1960
  _iteratorError = undefined;
1963
- _context10.prev = 5;
1961
+ _context11.prev = 5;
1964
1962
  _iterator = (0, _getIterator3.default)(promises);
1965
1963
 
1966
1964
  case 7:
1967
1965
  if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
1968
- _context10.next = 16;
1966
+ _context11.next = 16;
1969
1967
  break;
1970
1968
  }
1971
1969
 
1972
1970
  p = _step.value;
1973
- _context10.next = 11;
1971
+ _context11.next = 11;
1974
1972
  return p;
1975
1973
 
1976
1974
  case 11:
1977
- _result = _context10.sent;
1975
+ _result = _context11.sent;
1978
1976
 
1979
1977
  results.push(_result);
1980
1978
 
1981
1979
  case 13:
1982
1980
  _iteratorNormalCompletion = true;
1983
- _context10.next = 7;
1981
+ _context11.next = 7;
1984
1982
  break;
1985
1983
 
1986
1984
  case 16:
1987
- _context10.next = 22;
1985
+ _context11.next = 22;
1988
1986
  break;
1989
1987
 
1990
1988
  case 18:
1991
- _context10.prev = 18;
1992
- _context10.t0 = _context10['catch'](5);
1989
+ _context11.prev = 18;
1990
+ _context11.t0 = _context11['catch'](5);
1993
1991
  _didIteratorError = true;
1994
- _iteratorError = _context10.t0;
1992
+ _iteratorError = _context11.t0;
1995
1993
 
1996
1994
  case 22:
1997
- _context10.prev = 22;
1998
- _context10.prev = 23;
1995
+ _context11.prev = 22;
1996
+ _context11.prev = 23;
1999
1997
 
2000
1998
  if (!_iteratorNormalCompletion && _iterator.return) {
2001
1999
  _iterator.return();
2002
2000
  }
2003
2001
 
2004
2002
  case 25:
2005
- _context10.prev = 25;
2003
+ _context11.prev = 25;
2006
2004
 
2007
2005
  if (!_didIteratorError) {
2008
- _context10.next = 28;
2006
+ _context11.next = 28;
2009
2007
  break;
2010
2008
  }
2011
2009
 
2012
2010
  throw _iteratorError;
2013
2011
 
2014
2012
  case 28:
2015
- return _context10.finish(25);
2013
+ return _context11.finish(25);
2016
2014
 
2017
2015
  case 29:
2018
- return _context10.finish(22);
2016
+ return _context11.finish(22);
2019
2017
 
2020
2018
  case 30:
2021
2019
  window.__loadingModal = (0, _utils.openLoadingModal)();
2022
- _context10.next = 33;
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
+ _this5.store.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;
2023
2066
  return commit(results);
2024
2067
 
2025
- case 33:
2026
- _context10.next = 37;
2068
+ case 41:
2069
+ _context11.next = 43;
2070
+ return commit(results);
2071
+
2072
+ case 43:
2073
+ _context11.next = 47;
2027
2074
  break;
2028
2075
 
2029
- case 35:
2030
- _context10.prev = 35;
2031
- _context10.t1 = _context10['catch'](1);
2076
+ case 45:
2077
+ _context11.prev = 45;
2078
+ _context11.t1 = _context11['catch'](1);
2032
2079
 
2033
- case 37:
2080
+ case 47:
2034
2081
  case 'end':
2035
- return _context10.stop();
2082
+ return _context11.stop();
2036
2083
  }
2037
2084
  }
2038
- }, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2085
+ }, _callee11, this, [[1, 45], [5, 18, 22, 30], [23,, 25, 29]]);
2039
2086
  }));
2040
2087
 
2041
2088
  return function handleUserInputs(_x6) {
@@ -2043,16 +2090,26 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2043
2090
  };
2044
2091
  }();
2045
2092
 
2046
- var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2093
+ var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit, _this2$props3, isUpdateDate, type, VoucherDate;
2047
2094
 
2048
- return _regenerator2.default.wrap(function _callee11$(_context11) {
2095
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
2049
2096
  while (1) {
2050
- switch (_context11.prev = _context11.next) {
2097
+ switch (_context12.prev = _context12.next) {
2051
2098
  case 0:
2052
2099
  _this2.setState({
2053
2100
  settleDisabled: true
2054
2101
  });
2055
2102
  console.log("settlement.handleSettle开始执行,参数:", +args);
2103
+ // let p=new Promise((res,rej)=>{
2104
+ // res(args);
2105
+ // });
2106
+ //
2107
+ // const testAsync = async (p) => {
2108
+ // let result = await p;
2109
+ // console.log(result);
2110
+ // }
2111
+ //
2112
+ // testAsync(p);
2056
2113
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
2057
2114
  _this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
2058
2115
  isQuickPay = args === 'quickPay';
@@ -2069,7 +2126,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2069
2126
  });
2070
2127
 
2071
2128
  if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
2072
- _context11.next = 13;
2129
+ _context12.next = 13;
2073
2130
  break;
2074
2131
  }
2075
2132
 
@@ -2077,11 +2134,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2077
2134
  _this2.setState({
2078
2135
  settleDisabled: false
2079
2136
  });
2080
- return _context11.abrupt('return');
2137
+ return _context12.abrupt('return');
2081
2138
 
2082
2139
  case 13:
2083
2140
  if (!(args !== "zero" && !newStyle)) {
2084
- _context11.next = 19;
2141
+ _context12.next = 19;
2085
2142
  break;
2086
2143
  }
2087
2144
 
@@ -2090,7 +2147,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2090
2147
  });
2091
2148
 
2092
2149
  if (!zeromode) {
2093
- _context11.next = 19;
2150
+ _context12.next = 19;
2094
2151
  break;
2095
2152
  }
2096
2153
 
@@ -2098,7 +2155,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2098
2155
  settleDisabled: false
2099
2156
  });
2100
2157
  _message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
2101
- return _context11.abrupt('return');
2158
+ return _context12.abrupt('return');
2102
2159
 
2103
2160
  case 19:
2104
2161
  promises = [];
@@ -2107,14 +2164,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2107
2164
  }) : paymode.thePaymodes, 'orderBy');
2108
2165
 
2109
2166
  if (!isQuickPay) {
2110
- _context11.next = 27;
2167
+ _context12.next = 27;
2111
2168
  break;
2112
2169
  }
2113
2170
 
2114
2171
  quickmode = thePaymodes[0];
2115
2172
 
2116
2173
  if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
2117
- _context11.next = 27;
2174
+ _context12.next = 27;
2118
2175
  break;
2119
2176
  }
2120
2177
 
@@ -2122,7 +2179,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2122
2179
  settleDisabled: false
2123
2180
  });
2124
2181
  _message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
2125
- return _context11.abrupt('return');
2182
+ return _context12.abrupt('return');
2126
2183
 
2127
2184
  case 27:
2128
2185
  (0, _forEach3.default)(thePaymodes, function (mode) {
@@ -2210,14 +2267,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2210
2267
  };
2211
2268
  }();
2212
2269
 
2270
+ _this2$props3 = _this2.props, isUpdateDate = _this2$props3.isUpdateDate, type = _this2$props3.type;
2271
+ VoucherDate = _this2.store.dto.VoucherDate;
2272
+
2273
+
2213
2274
  handleUserInputs(promises);
2214
2275
 
2215
- case 30:
2276
+ case 32:
2216
2277
  case 'end':
2217
- return _context11.stop();
2278
+ return _context12.stop();
2218
2279
  }
2219
2280
  }
2220
- }, _callee11, _this3);
2281
+ }, _callee12, _this3);
2221
2282
  }));
2222
2283
 
2223
2284
  return function (_x4) {
@@ -2225,91 +2286,91 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2225
2286
  };
2226
2287
  }();
2227
2288
 
2228
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2289
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2229
2290
  var handleUserInputs = function () {
2230
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2291
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2231
2292
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2232
2293
 
2233
- return _regenerator2.default.wrap(function _callee13$(_context13) {
2294
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2234
2295
  while (1) {
2235
- switch (_context13.prev = _context13.next) {
2296
+ switch (_context14.prev = _context14.next) {
2236
2297
  case 0:
2237
2298
  results = [];
2238
- _context13.prev = 1;
2299
+ _context14.prev = 1;
2239
2300
  _iteratorNormalCompletion2 = true;
2240
2301
  _didIteratorError2 = false;
2241
2302
  _iteratorError2 = undefined;
2242
- _context13.prev = 5;
2303
+ _context14.prev = 5;
2243
2304
  _iterator2 = (0, _getIterator3.default)(promises);
2244
2305
 
2245
2306
  case 7:
2246
2307
  if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2247
- _context13.next = 16;
2308
+ _context14.next = 16;
2248
2309
  break;
2249
2310
  }
2250
2311
 
2251
2312
  p = _step2.value;
2252
- _context13.next = 11;
2313
+ _context14.next = 11;
2253
2314
  return p;
2254
2315
 
2255
2316
  case 11:
2256
- _result2 = _context13.sent;
2317
+ _result2 = _context14.sent;
2257
2318
 
2258
2319
  results.push(_result2);
2259
2320
 
2260
2321
  case 13:
2261
2322
  _iteratorNormalCompletion2 = true;
2262
- _context13.next = 7;
2323
+ _context14.next = 7;
2263
2324
  break;
2264
2325
 
2265
2326
  case 16:
2266
- _context13.next = 22;
2327
+ _context14.next = 22;
2267
2328
  break;
2268
2329
 
2269
2330
  case 18:
2270
- _context13.prev = 18;
2271
- _context13.t0 = _context13['catch'](5);
2331
+ _context14.prev = 18;
2332
+ _context14.t0 = _context14['catch'](5);
2272
2333
  _didIteratorError2 = true;
2273
- _iteratorError2 = _context13.t0;
2334
+ _iteratorError2 = _context14.t0;
2274
2335
 
2275
2336
  case 22:
2276
- _context13.prev = 22;
2277
- _context13.prev = 23;
2337
+ _context14.prev = 22;
2338
+ _context14.prev = 23;
2278
2339
 
2279
2340
  if (!_iteratorNormalCompletion2 && _iterator2.return) {
2280
2341
  _iterator2.return();
2281
2342
  }
2282
2343
 
2283
2344
  case 25:
2284
- _context13.prev = 25;
2345
+ _context14.prev = 25;
2285
2346
 
2286
2347
  if (!_didIteratorError2) {
2287
- _context13.next = 28;
2348
+ _context14.next = 28;
2288
2349
  break;
2289
2350
  }
2290
2351
 
2291
2352
  throw _iteratorError2;
2292
2353
 
2293
2354
  case 28:
2294
- return _context13.finish(25);
2355
+ return _context14.finish(25);
2295
2356
 
2296
2357
  case 29:
2297
- return _context13.finish(22);
2358
+ return _context14.finish(22);
2298
2359
 
2299
2360
  case 30:
2300
- _context13.next = 32;
2361
+ _context14.next = 32;
2301
2362
  return commit(results);
2302
2363
 
2303
2364
  case 32:
2304
- _context13.next = 37;
2365
+ _context14.next = 37;
2305
2366
  break;
2306
2367
 
2307
2368
  case 34:
2308
- _context13.prev = 34;
2309
- _context13.t1 = _context13['catch'](1);
2369
+ _context14.prev = 34;
2370
+ _context14.t1 = _context14['catch'](1);
2310
2371
 
2311
- if (_context13.t1 != "cancelpwd") {
2312
- _message2.default.error(_context13.t1);
2372
+ if (_context14.t1 != "cancelpwd") {
2373
+ _message2.default.error(_context14.t1);
2313
2374
  setTimeout(function () {
2314
2375
  that.handleCzk();
2315
2376
  }, 500);
@@ -2317,27 +2378,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2317
2378
 
2318
2379
  case 37:
2319
2380
  case 'end':
2320
- return _context13.stop();
2381
+ return _context14.stop();
2321
2382
  }
2322
2383
  }
2323
- }, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2384
+ }, _callee14, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2324
2385
  }));
2325
2386
 
2326
- return function handleUserInputs(_x8) {
2327
- return _ref23.apply(this, arguments);
2387
+ return function handleUserInputs(_x9) {
2388
+ return _ref24.apply(this, arguments);
2328
2389
  };
2329
2390
  }();
2330
2391
 
2331
- var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2392
+ var that, curmode, promises, _ref22, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2332
2393
 
2333
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2394
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2334
2395
  while (1) {
2335
- switch (_context14.prev = _context14.next) {
2396
+ switch (_context15.prev = _context15.next) {
2336
2397
  case 0:
2337
2398
  that = _this2;
2338
2399
  curmode = _this2.store.paymode.currentMode;
2339
2400
  promises = [];
2340
- _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2401
+ _ref22 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref22.isNewRetailBCPos;
2341
2402
 
2342
2403
  if (isNewRetailBCPos) {
2343
2404
  if (curmode.value > 0) {
@@ -2347,11 +2408,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2347
2408
  if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2348
2409
  !curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2349
2410
  } else {
2350
- if (_this2.store.dto.Idmember === curmode.memberId) {
2351
- !curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2352
- } else {
2353
- curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
2354
- }
2411
+ curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
2355
2412
  }
2356
2413
  }
2357
2414
  }
@@ -2362,33 +2419,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2362
2419
  }
2363
2420
 
2364
2421
  commit = function () {
2365
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2422
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2366
2423
  var result;
2367
- return _regenerator2.default.wrap(function _callee12$(_context12) {
2424
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
2368
2425
  while (1) {
2369
- switch (_context12.prev = _context12.next) {
2426
+ switch (_context13.prev = _context13.next) {
2370
2427
  case 0:
2371
2428
  if (!(values.length > 0)) {
2372
- _context12.next = 6;
2429
+ _context13.next = 6;
2373
2430
  break;
2374
2431
  }
2375
2432
 
2376
- _context12.next = 3;
2433
+ _context13.next = 3;
2377
2434
  return that.store.validePwd(values[0]);
2378
2435
 
2379
2436
  case 3:
2380
- _context12.t0 = _context12.sent;
2381
- _context12.next = 7;
2437
+ _context13.t0 = _context13.sent;
2438
+ _context13.next = 7;
2382
2439
  break;
2383
2440
 
2384
2441
  case 6:
2385
- _context12.t0 = "";
2442
+ _context13.t0 = "";
2386
2443
 
2387
2444
  case 7:
2388
- result = _context12.t0;
2445
+ result = _context13.t0;
2389
2446
 
2390
2447
  if (!(result == "")) {
2391
- _context12.next = 13;
2448
+ _context13.next = 13;
2392
2449
  break;
2393
2450
  }
2394
2451
 
@@ -2396,23 +2453,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2396
2453
  //返回
2397
2454
  that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
2398
2455
  _promise2.default.resolve();
2399
- _context12.next = 15;
2456
+ _context13.next = 15;
2400
2457
  break;
2401
2458
 
2402
2459
  case 13:
2403
- _context12.next = 15;
2460
+ _context13.next = 15;
2404
2461
  return _promise2.default.reject(result);
2405
2462
 
2406
2463
  case 15:
2407
2464
  case 'end':
2408
- return _context12.stop();
2465
+ return _context13.stop();
2409
2466
  }
2410
2467
  }
2411
- }, _callee12, _this3);
2468
+ }, _callee13, _this3);
2412
2469
  }));
2413
2470
 
2414
- return function commit(_x7) {
2415
- return _ref22.apply(this, arguments);
2471
+ return function commit(_x8) {
2472
+ return _ref23.apply(this, arguments);
2416
2473
  };
2417
2474
  }();
2418
2475
 
@@ -2420,10 +2477,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2420
2477
 
2421
2478
  case 7:
2422
2479
  case 'end':
2423
- return _context14.stop();
2480
+ return _context15.stop();
2424
2481
  }
2425
2482
  }
2426
- }, _callee14, _this3);
2483
+ }, _callee15, _this3);
2427
2484
  }));
2428
2485
 
2429
2486
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2463,15 +2520,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2463
2520
  };
2464
2521
 
2465
2522
  _this2.inputPwd = function () {
2466
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2523
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2467
2524
  var that, confirmPwd;
2468
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2525
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
2469
2526
  while (1) {
2470
- switch (_context15.prev = _context15.next) {
2527
+ switch (_context16.prev = _context16.next) {
2471
2528
  case 0:
2472
2529
  that = _this2;
2473
2530
  confirmPwd = _this2.state.confirmPwd;
2474
- return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
2531
+ return _context16.abrupt('return', new _promise2.default(function (resolve, reject) {
2475
2532
  var modal = (0, _asyncModal2.default)({
2476
2533
  onPressEnter: function onPressEnter() {
2477
2534
  _keyboard2.default.close();
@@ -2479,8 +2536,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2479
2536
  // if (v !== '') {
2480
2537
  modal.destroy();
2481
2538
 
2482
- var _ref25 = that.state || {},
2483
- confirmPwd = _ref25.confirmPwd;
2539
+ var _ref26 = that.state || {},
2540
+ confirmPwd = _ref26.confirmPwd;
2484
2541
 
2485
2542
  setTimeout(function () {
2486
2543
  paymode.authCode = v;
@@ -2570,8 +2627,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2570
2627
  type: 'primary', size: 'large', onClick: function onClick() {
2571
2628
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2572
2629
 
2573
- var _ref26 = that.state || {},
2574
- confirmPwd = _ref26.confirmPwd;
2630
+ var _ref27 = that.state || {},
2631
+ confirmPwd = _ref27.confirmPwd;
2575
2632
  // if (v !== '') {
2576
2633
 
2577
2634
 
@@ -2605,14 +2662,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2605
2662
 
2606
2663
  case 3:
2607
2664
  case 'end':
2608
- return _context15.stop();
2665
+ return _context16.stop();
2609
2666
  }
2610
2667
  }
2611
- }, _callee15, _this3);
2668
+ }, _callee16, _this3);
2612
2669
  }));
2613
2670
 
2614
- return function (_x9) {
2615
- return _ref24.apply(this, arguments);
2671
+ return function (_x10) {
2672
+ return _ref25.apply(this, arguments);
2616
2673
  };
2617
2674
  }();
2618
2675
 
@@ -2666,8 +2723,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2666
2723
 
2667
2724
  _this2.onCzkChange = function (v) {
2668
2725
  // console.log("czk change:"+new Date().toLocaleTimeString())
2669
- var _ref27 = _mutantsUtil.platform || {},
2670
- isNewRetailBCPos = _ref27.isNewRetailBCPos;
2726
+ var _ref28 = _mutantsUtil.platform || {},
2727
+ isNewRetailBCPos = _ref28.isNewRetailBCPos;
2671
2728
 
2672
2729
  if (!isNewRetailBCPos) {
2673
2730
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -2799,9 +2856,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2799
2856
  var that = _this2;
2800
2857
  var isStoredValueCard = false;
2801
2858
  var discountPrototypeTotalAmount = _this2.state.discountPrototypeTotalAmount;
2802
- var _this2$props3 = _this2.props,
2803
- isReturn = _this2$props3.isReturn,
2804
- type = _this2$props3.type;
2859
+ var _this2$props4 = _this2.props,
2860
+ isReturn = _this2$props4.isReturn,
2861
+ type = _this2$props4.type;
2805
2862
 
2806
2863
  var isManualIntoAmount = void 0;
2807
2864
  // 付款弹窗
@@ -3248,19 +3305,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3248
3305
 
3249
3306
  _this2.hasElectron = hasElectron;
3250
3307
 
3251
- var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3252
- MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
3253
- ICCardServer = _ref28.ICCardServer,
3254
- ICCardPassword = _ref28.ICCardPassword;
3308
+ var _ref29 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3309
+ MemberMeStorageCardInputByKeyBoard = _ref29.MemberMeStorageCardInputByKeyBoard,
3310
+ ICCardServer = _ref29.ICCardServer,
3311
+ ICCardPassword = _ref29.ICCardPassword;
3255
3312
 
3256
3313
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3257
3314
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3258
3315
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3259
3316
  //移动端环境下,没有读取IC卡的方式。
3260
3317
 
3261
- var _ref29 = _mutantsUtil.platform || {},
3262
- isHorizontalPad = _ref29.isHorizontalPad,
3263
- isHorizontalSunMi = _ref29.isHorizontalSunMi;
3318
+ var _ref30 = _mutantsUtil.platform || {},
3319
+ isHorizontalPad = _ref30.isHorizontalPad,
3320
+ isHorizontalSunMi = _ref30.isHorizontalSunMi;
3264
3321
 
3265
3322
  _this2.isHorizontalPad = !!isHorizontalPad;
3266
3323
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3306,7 +3363,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3306
3363
 
3307
3364
  //IC卡连接
3308
3365
  value: function connectRfCard() {
3309
- var _this5 = this;
3366
+ var _this6 = this;
3310
3367
 
3311
3368
  //客户端环境下,并开启了启用IC卡。
3312
3369
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3317,7 +3374,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3317
3374
  } else {
3318
3375
  result = { connectCardStatus: true, connectCardError: '' };
3319
3376
  }
3320
- _this5.setState(result);
3377
+ _this6.setState(result);
3321
3378
  });
3322
3379
  }
3323
3380
  }
@@ -3326,7 +3383,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3326
3383
  }, {
3327
3384
  key: 'readRfCard',
3328
3385
  value: function readRfCard() {
3329
- var _this6 = this;
3386
+ var _this7 = this;
3330
3387
 
3331
3388
  //客户端环境下,并开启了启用IC卡。
3332
3389
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3343,15 +3400,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3343
3400
  _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReadRfCard', (0, _extends3.default)({}, params), function (ret) {
3344
3401
  if (ret.status === 0) {
3345
3402
  _message2.default.error(ret.value);
3346
- _this6.connectRfCard(); //读取失败后,重新连接一下。
3403
+ _this7.connectRfCard(); //读取失败后,重新连接一下。
3347
3404
  return;
3348
3405
  } else if (ret.status === 1) {
3349
3406
  // this.searchMember(ret.value);
3350
3407
  // this.czkInput.input["value"]=ret.value;
3351
- _this6.setState({
3408
+ _this7.setState({
3352
3409
  czkValue: ret.value
3353
3410
  });
3354
- _this6.loadCzk(ret.value);
3411
+ _this7.loadCzk(ret.value);
3355
3412
  }
3356
3413
  });
3357
3414
  }
@@ -3409,7 +3466,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3409
3466
  }, {
3410
3467
  key: 'renderToolbtn',
3411
3468
  value: function renderToolbtn(mode, index) {
3412
- var _this7 = this;
3469
+ var _this8 = this;
3413
3470
 
3414
3471
  var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
3415
3472
  PayIcon = _enumController$getEn32.PayIcon,
@@ -3446,7 +3503,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3446
3503
  return _react2.default.createElement(
3447
3504
  'div',
3448
3505
  { key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
3449
- _this7.onTabsClick(mode.paymentType);
3506
+ _this8.onTabsClick(mode.paymentType);
3450
3507
  } },
3451
3508
  _react2.default.createElement(
3452
3509
  'div',
@@ -3483,7 +3540,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3483
3540
  }, {
3484
3541
  key: 'render',
3485
3542
  value: function render() {
3486
- var _this8 = this;
3543
+ var _this9 = this;
3487
3544
 
3488
3545
  var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
3489
3546
  PayIcon = _enumController$getEn33.PayIcon,
@@ -3502,8 +3559,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3502
3559
  newPassConfirm = _state2.newPassConfirm,
3503
3560
  newPass = _state2.newPass;
3504
3561
 
3505
- var _ref30 = _mutantsUtil.platform || {},
3506
- isNewRetailBCPos = _ref30.isNewRetailBCPos;
3562
+ var _ref31 = _mutantsUtil.platform || {},
3563
+ isNewRetailBCPos = _ref31.isNewRetailBCPos;
3507
3564
 
3508
3565
  var _store2 = this.store,
3509
3566
  paymode = _store2.paymode,
@@ -3524,7 +3581,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3524
3581
  var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
3525
3582
  // 单据模式
3526
3583
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
3527
- return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3584
+ return !(_this9.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3528
3585
  }) : paymode.thePaymodes;
3529
3586
  var paymodes = paymode.paymodes,
3530
3587
  settle = paymode.settle,
@@ -3566,11 +3623,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3566
3623
  quantity4 = 0;
3567
3624
  var sumQuantity = 0; //数量总和的值,包括称重的。
3568
3625
 
3569
- var _ref31 = quantityDetail || {},
3570
- _ref31$buyQuantity = _ref31.buyQuantity,
3571
- buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
3572
- _ref31$returnQuantity = _ref31.returnQuantity,
3573
- returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
3626
+ var _ref32 = quantityDetail || {},
3627
+ _ref32$buyQuantity = _ref32.buyQuantity,
3628
+ buyQuantity = _ref32$buyQuantity === undefined ? 0 : _ref32$buyQuantity,
3629
+ _ref32$returnQuantity = _ref32.returnQuantity,
3630
+ returnQuantity = _ref32$returnQuantity === undefined ? 0 : _ref32$returnQuantity;
3574
3631
 
3575
3632
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3576
3633
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -3594,7 +3651,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3594
3651
  return _react2.default.createElement(
3595
3652
  'div',
3596
3653
  { className: 'billingSettlement', ref: function ref(r) {
3597
- return _this8.billingSettlementDocumnet = r;
3654
+ return _this9.billingSettlementDocumnet = r;
3598
3655
  } },
3599
3656
  this.props.MemberPoints ? _react2.default.createElement(
3600
3657
  'div',
@@ -3724,9 +3781,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3724
3781
  return _react2.default.createElement(
3725
3782
  _button2.default,
3726
3783
  { className: (0, _classnames4.default)({ "quick": true, "quick2": type == 1 }), key: 'paymentType_' + p.paymentType, onClick: function onClick() {
3727
- _this8.btnDebounced(p.paymentType, true);
3784
+ _this9.btnDebounced(p.paymentType, true);
3728
3785
  },
3729
- disabled: productsIsEmpty || type != 1 && _this8.checkModeDisabled(p.paymentType, (_this8.context.viewModel.data.TotalTaxAmount || 0 - _this8.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn) },
3786
+ disabled: productsIsEmpty || type != 1 && _this9.checkModeDisabled(p.paymentType, (_this9.context.viewModel.data.TotalTaxAmount || 0 - _this9.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn) },
3730
3787
  _react2.default.createElement(
3731
3788
  'div',
3732
3789
  { className: (0, _classnames4.default)((_classnames2 = {}, (0, _defineProperty3.default)(_classnames2, iconclass, true), (0, _defineProperty3.default)(_classnames2, "icon", true), _classnames2)) },
@@ -3742,7 +3799,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3742
3799
  _react2.default.createElement(
3743
3800
  _button2.default,
3744
3801
  { key: 'settle', className: (0, _classnames4.default)({ "settle": true, "settle2": type == 1, "settleStorage": true, 'primary-btn': true }), onClick: function onClick() {
3745
- _this8.btnDebounced();
3802
+ _this9.btnDebounced();
3746
3803
  }, disabled: productsIsEmpty },
3747
3804
  this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : settle.name
3748
3805
  )
@@ -3770,7 +3827,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3770
3827
  'div',
3771
3828
  null,
3772
3829
  (0, _map3.default)(paymodes, function (mode, index) {
3773
- return _this8.renderToolbtn(mode, index);
3830
+ return _this9.renderToolbtn(mode, index);
3774
3831
  })
3775
3832
  ),
3776
3833
  paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
@@ -3807,28 +3864,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3807
3864
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
3808
3865
  className: _index.hotKey.hotKeyNotFilter(),
3809
3866
  onClick: function onClick() {
3810
- _this8.editModal(index, mode.paymentType, boriginReturn);
3867
+ _this9.editModal(index, mode.paymentType, boriginReturn);
3811
3868
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
3812
3869
  className: _index.hotKey.hotKeyNotFilter(),
3813
3870
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
3814
3871
  onClick: function onClick(e) {
3815
- return _this8.onHotKeyClick2(index, mode, paymode, e);
3872
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
3816
3873
  },
3817
3874
  onBlur: function onBlur(e) {
3818
- return _this8.onBlur(index, e);
3875
+ return _this9.onBlur(index, e);
3819
3876
  },
3820
3877
  onFocus: function onFocus(e) {
3821
- return _this8.onFocusHack(index, mode, paymode, e);
3878
+ return _this9.onFocusHack(index, mode, paymode, e);
3822
3879
  },
3823
3880
  onChange: function onChange(e) {
3824
- return _this8.handleChange(index, e);
3881
+ return _this9.handleChange(index, e);
3825
3882
  }
3826
3883
  })
3827
3884
  ),
3828
3885
  _react2.default.createElement(
3829
3886
  'span',
3830
3887
  { className: 'minus', onClick: function onClick() {
3831
- _this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3888
+ _this9.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3832
3889
  } },
3833
3890
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
3834
3891
  )
@@ -3874,7 +3931,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3874
3931
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
3875
3932
  _button2.default,
3876
3933
  { onClick: function onClick() {
3877
- _this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3934
+ _this9.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3878
3935
  }, className: 'addCard btn-border-primary' },
3879
3936
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
3880
3937
  _react2.default.createElement(
@@ -4115,7 +4172,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4115
4172
  '\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
4116
4173
  ),
4117
4174
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4118
- var isReturn = _this8.props.isReturn;
4175
+ var isReturn = _this9.props.isReturn;
4119
4176
 
4120
4177
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4121
4178
  return m.paymentType === PayStyle.smzf;
@@ -4159,7 +4216,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4159
4216
  _react2.default.createElement(
4160
4217
  'div',
4161
4218
  { className: 'hotkey' },
4162
- _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[hotkeyIndex] || ''
4219
+ _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[hotkeyIndex] || ''
4163
4220
  )
4164
4221
  ),
4165
4222
  _react2.default.createElement(
@@ -4167,8 +4224,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4167
4224
  { className: (0, _classnames4.default)({ "content": true }) },
4168
4225
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4169
4226
 
4170
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4171
- disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4227
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex]),
4228
+ disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4172
4229
  onClick: function onClick() {
4173
4230
  // let czkinput = document.getElementById('inputS' + index);
4174
4231
  // if (mode.paymentType === PayStyle.hyczk) {
@@ -4181,10 +4238,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4181
4238
  // mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
4182
4239
  if (mode.paymentType == PayStyle.hyczk) {
4183
4240
  if (themodeHyczk && themodeHyczk.length === 0) {
4184
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4241
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4185
4242
  }
4186
4243
  } else {
4187
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4244
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4188
4245
  }
4189
4246
  },
4190
4247
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
@@ -4192,20 +4249,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4192
4249
  }), function (sum, m) {
4193
4250
  return Math.Add(sum, m.value);
4194
4251
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4195
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4196
- disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4252
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex]),
4253
+ disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this9.checkScanDisabled(mode.paymentType),
4197
4254
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4198
4255
  onClick: function onClick(e) {
4199
- return _this8.onHotKeyClick2(index, mode, paymode, e);
4256
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
4200
4257
  },
4201
4258
  onBlur: function onBlur(e) {
4202
- return _this8.onBlur(index, e);
4259
+ return _this9.onBlur(index, e);
4203
4260
  },
4204
4261
  onFocus: function onFocus(e) {
4205
- return _this8.onFocusHack(index, mode, paymode, e);
4262
+ return _this9.onFocusHack(index, mode, paymode, e);
4206
4263
  },
4207
4264
  onChange: function onChange(e) {
4208
- return _this8.handleChange(index, e);
4265
+ return _this9.handleChange(index, e);
4209
4266
  }
4210
4267
  })
4211
4268
  )
@@ -4254,7 +4311,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4254
4311
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
4255
4312
  _button2.default,
4256
4313
  { onClick: function onClick() {
4257
- return _this8.onHotKeyClick1(mode, index, boriginReturn);
4314
+ return _this9.onHotKeyClick1(mode, index, boriginReturn);
4258
4315
  }, className: 'addCard btn-border-primary' },
4259
4316
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
4260
4317
  _react2.default.createElement(
@@ -4321,7 +4378,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4321
4378
  'div',
4322
4379
  null,
4323
4380
  (0, _map3.default)(paymodes, function (mode, index) {
4324
- return _this8.renderToolbtn(mode, index);
4381
+ return _this9.renderToolbtn(mode, index);
4325
4382
  })
4326
4383
  ),
4327
4384
  paymodes.length > carouselStart2 && this.paymodesCarouselList(params, paymodes, carouselStart2)
@@ -4432,24 +4489,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4432
4489
  { className: (0, _classnames4.default)({ "content": true }) },
4433
4490
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4434
4491
  onClick: function onClick() {
4435
- _this8.editModal(index, mode.paymentType);
4492
+ _this9.editModal(index, mode.paymentType);
4436
4493
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4437
4494
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4438
4495
  onBlur: function onBlur(e) {
4439
- return _this8.onBlur(index, e);
4496
+ return _this9.onBlur(index, e);
4440
4497
  },
4441
4498
  onChange: function onChange(e) {
4442
- return _this8.handleChange(index, e);
4499
+ return _this9.handleChange(index, e);
4443
4500
  },
4444
4501
  onFocus: function onFocus(e) {
4445
- return _this8.onFocusHack(index, mode, paymode, e);
4502
+ return _this9.onFocusHack(index, mode, paymode, e);
4446
4503
  }
4447
4504
  })
4448
4505
  ),
4449
4506
  _react2.default.createElement(
4450
4507
  'div',
4451
4508
  { className: 'minus', onClick: function onClick() {
4452
- _this8.onDelPay(index);
4509
+ _this9.onDelPay(index);
4453
4510
  } },
4454
4511
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
4455
4512
  )
@@ -4639,7 +4696,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4639
4696
 
4640
4697
  // _map(_sortBy(thePaymodes, pay => pay['order'] || 0), (mode) => {
4641
4698
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4642
- var isReturn = _this8.props.isReturn;
4699
+ var isReturn = _this9.props.isReturn;
4643
4700
 
4644
4701
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4645
4702
  return m.paymentType === PayStyle.smzf;
@@ -4683,7 +4740,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4683
4740
  _react2.default.createElement(
4684
4741
  'div',
4685
4742
  { className: 'hotkey' },
4686
- _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[mindex] || ""
4743
+ _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[mindex] || ""
4687
4744
  )
4688
4745
  ),
4689
4746
  _react2.default.createElement(
@@ -4691,32 +4748,32 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4691
4748
  { className: (0, _classnames4.default)({ "content": true }) },
4692
4749
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index
4693
4750
  // className={classnames({'paymode':mode.paymentType == PayStyle.hyczk?(_findIndex(thePaymodes,(m)=>{return m.paymentType==PayStyle.hyczk;})==mindex?true:false):true})}
4694
- , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4751
+ , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4695
4752
  // className="paymode"
4696
- , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4753
+ , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4697
4754
  onClick: function onClick() {
4698
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4755
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4699
4756
  },
4700
4757
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
4701
4758
  return tm.paymentType == PayStyle.hyczk;
4702
4759
  }), function (sum, m) {
4703
4760
  return Math.Add(sum, m.value);
4704
4761
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4705
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4762
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4706
4763
  // className="paymode"
4707
- , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4764
+ , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this9.checkScanDisabled(mode.paymentType),
4708
4765
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4709
4766
  onClick: function onClick(e) {
4710
- return _this8.onHotKeyClick2(index, mode, paymode, e);
4767
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
4711
4768
  },
4712
4769
  onBlur: function onBlur(e) {
4713
- return _this8.onBlur(index, e);
4770
+ return _this9.onBlur(index, e);
4714
4771
  },
4715
4772
  onFocus: function onFocus(e) {
4716
- return _this8.onFocusHack(index, mode, paymode, e);
4773
+ return _this9.onFocusHack(index, mode, paymode, e);
4717
4774
  },
4718
4775
  onChange: function onChange(e) {
4719
- return _this8.handleChange(index, e);
4776
+ return _this9.handleChange(index, e);
4720
4777
  }
4721
4778
  })
4722
4779
  )
@@ -4899,79 +4956,79 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4899
4956
  placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u624B\u673A\u53F7/\u50A8\u503C\u5361\u53F7',
4900
4957
  className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
4901
4958
  onChange: function onChange(e) {
4902
- return _this8.onCzkChange(e.target.value);
4959
+ return _this9.onCzkChange(e.target.value);
4903
4960
  },
4904
4961
  defaultValue: currentMode && currentMode.storageCardNo,
4905
4962
  value: czkValue,
4906
4963
  ref: function ref(input) {
4907
- return _this8.czkInput = input;
4964
+ return _this9.czkInput = input;
4908
4965
  },
4909
4966
  onKeyDown: function () {
4910
- var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4967
+ var _ref33 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
4911
4968
  var time, _paymode;
4912
4969
 
4913
- return _regenerator2.default.wrap(function _callee16$(_context16) {
4970
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
4914
4971
  while (1) {
4915
- switch (_context16.prev = _context16.next) {
4972
+ switch (_context17.prev = _context17.next) {
4916
4973
  case 0:
4917
4974
  if (!(e.keyCode == 13)) {
4918
- _context16.next = 14;
4975
+ _context17.next = 14;
4919
4976
  break;
4920
4977
  }
4921
4978
 
4922
4979
  time = Date.parse(new Date());
4923
4980
 
4924
- if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4925
- _context16.next = 7;
4981
+ if (!(_this9.isStorageCardInputType && time - _this9.keypressStime > 350)) {
4982
+ _context17.next = 7;
4926
4983
  break;
4927
4984
  }
4928
4985
 
4929
4986
  _message2.default.warn('储值卡不可键盘录入,请刷卡!');
4930
- _this8.keypressStime = null;
4931
- _this8.setState({
4987
+ _this9.keypressStime = null;
4988
+ _this9.setState({
4932
4989
  czkValue: null
4933
4990
  });
4934
- return _context16.abrupt('return');
4991
+ return _context17.abrupt('return');
4935
4992
 
4936
4993
  case 7:
4937
- _this8.keypressStime = null;
4938
- _context16.next = 10;
4939
- return _this8.loadCzk(e.target.value);
4994
+ _this9.keypressStime = null;
4995
+ _context17.next = 10;
4996
+ return _this9.loadCzk(e.target.value);
4940
4997
 
4941
4998
  case 10:
4942
- _paymode = _this8.store.paymode;
4999
+ _paymode = _this9.store.paymode;
4943
5000
 
4944
5001
  if (!_paymode.currentMode.storageCardNo) {
4945
- _this8.setState({
5002
+ _this9.setState({
4946
5003
  czkvalue: null
4947
5004
  });
4948
5005
  }
4949
- _context16.next = 15;
5006
+ _context17.next = 15;
4950
5007
  break;
4951
5008
 
4952
5009
  case 14:
4953
- if (!_this8.keypressStime && e.keyCode !== 8) {
4954
- _this8.keypressStime = Date.parse(new Date());
5010
+ if (!_this9.keypressStime && e.keyCode !== 8) {
5011
+ _this9.keypressStime = Date.parse(new Date());
4955
5012
  }
4956
5013
 
4957
5014
  case 15:
4958
5015
  case 'end':
4959
- return _context16.stop();
5016
+ return _context17.stop();
4960
5017
  }
4961
5018
  }
4962
- }, _callee16, _this8);
5019
+ }, _callee17, _this9);
4963
5020
  }));
4964
5021
 
4965
- return function (_x11) {
4966
- return _ref32.apply(this, arguments);
5022
+ return function (_x12) {
5023
+ return _ref33.apply(this, arguments);
4967
5024
  };
4968
5025
  }(),
4969
5026
  onFocus: function onFocus(e) {
4970
- _this8.inputTarget = _this8.czkInput.input;
4971
- !_this8.state.prototypeVisible && _keyboard2.default.open(function (v) {
4972
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
4973
- _this8.onCzkChange(value);
4974
- }, _this8.czkKeyboardOnOk, _this8.czkKeyboardOnClose)();
5027
+ _this9.inputTarget = _this9.czkInput.input;
5028
+ !_this9.state.prototypeVisible && _keyboard2.default.open(function (v) {
5029
+ var value = _keyboard2.default.getNewValue(_this9.inputTarget, _this9.inputTarget.value, v);
5030
+ _this9.onCzkChange(value);
5031
+ }, _this9.czkKeyboardOnOk, _this9.czkKeyboardOnClose)();
4975
5032
  },
4976
5033
  onBlur: function onBlur(e) {
4977
5034
  _keyboard2.default.close();
@@ -4983,7 +5040,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4983
5040
 
4984
5041
  /* 扫描组件 */
4985
5042
  this.isHorizontalPad && _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
4986
- return _this8.scanObj = scan;
5043
+ return _this9.scanObj = scan;
4987
5044
  }, onChange: this.onScanCzkResult })
4988
5045
  ),
4989
5046
  _react2.default.createElement(
@@ -5017,22 +5074,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5017
5074
  className: _index.hotKey.hotKeyNotFilter('input'),
5018
5075
  value: storageValue,
5019
5076
  onChange: function onChange(event) {
5020
- _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5077
+ _this9.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5021
5078
  },
5022
5079
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
5023
- ref: function ref(_ref33) {
5024
- return _this8["inputCzkAmount"] = _ref33;
5080
+ ref: function ref(_ref34) {
5081
+ return _this9["inputCzkAmount"] = _ref34;
5025
5082
  },
5026
5083
  onFocus: function onFocus(e) {
5027
- _this8.inputkey = "inputCzkAmount";
5084
+ _this9.inputkey = "inputCzkAmount";
5028
5085
  _keyboard2.default.open(function (v) {
5029
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5030
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
5031
- }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
5086
+ var value = _keyboard2.default.getNewValue(_this9[_this9.inputkey].input, _this9[_this9.inputkey].input.value, v);
5087
+ _this9.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
5088
+ }, _this9.keyboardOnOk, _this9.keyboardOnClose)();
5032
5089
  },
5033
5090
  onBlur: function onBlur(e) {
5034
5091
  _keyboard2.default.close();
5035
- _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
5092
+ _this9.setCurrentModeValue((0, _utils.getFixedNumber)(_this9.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
5036
5093
  }
5037
5094
  })
5038
5095
  )
@@ -5159,16 +5216,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5159
5216
  maxLength: 6,
5160
5217
  value: newPass,
5161
5218
  ref: function ref(input) {
5162
- return _this8.inputNewAmount = input;
5219
+ return _this9.inputNewAmount = input;
5163
5220
  },
5164
5221
  onChange: function onChange(value) {
5165
- return _this8.setPwdValue('newPass', value.target.value);
5222
+ return _this9.setPwdValue('newPass', value.target.value);
5166
5223
  },
5167
5224
  onBlur: function onBlur(value) {
5168
- return _this8.handleBlur('newPass');
5225
+ return _this9.handleBlur('newPass');
5169
5226
  },
5170
5227
  onPressEnter: function onPressEnter() {
5171
- return _this8.onPressEnterCzk('newPass');
5228
+ return _this9.onPressEnterCzk('newPass');
5172
5229
  }
5173
5230
  })
5174
5231
  )
@@ -5191,16 +5248,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5191
5248
  maxLength: 6,
5192
5249
  value: newPassConfirm,
5193
5250
  ref: function ref(input) {
5194
- return _this8.inputConfirmAmount = input;
5251
+ return _this9.inputConfirmAmount = input;
5195
5252
  },
5196
5253
  onChange: function onChange(value) {
5197
- return _this8.setPwdValue('newPassConfirm', value.target.value);
5254
+ return _this9.setPwdValue('newPassConfirm', value.target.value);
5198
5255
  },
5199
5256
  onBlur: function onBlur(value) {
5200
- return _this8.handleBlur('newPassConfirm');
5257
+ return _this9.handleBlur('newPassConfirm');
5201
5258
  },
5202
5259
  onPressEnter: function onPressEnter() {
5203
- return _this8.onPressEnterCzk('newPassConfirm');
5260
+ return _this9.onPressEnterCzk('newPassConfirm');
5204
5261
  }
5205
5262
  })
5206
5263
  )
@@ -5260,22 +5317,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5260
5317
  // onChange={this.onDjqChange}
5261
5318
  // value={currentMode && currentMode.member.cardNo}
5262
5319
  , ref: function ref(input) {
5263
- return _this8.inputdjq = input;
5320
+ return _this9.inputdjq = input;
5264
5321
  },
5265
5322
  onKeyDown: function onKeyDown(e) {
5266
5323
  if (e.keyCode == 13) {
5267
- _this8.addDjq(e.target.value);
5324
+ _this9.addDjq(e.target.value);
5268
5325
  }
5269
5326
  },
5270
5327
  onFocus: function onFocus(e) {
5271
- _this8.inputTarget = _this8.inputdjq.input;
5328
+ _this9.inputTarget = _this9.inputdjq.input;
5272
5329
  _keyboard2.default.open(function (v) {
5273
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
5274
- _this8.onDjqChange(value, true);
5275
- }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
5330
+ var value = _keyboard2.default.getNewValue(_this9.inputTarget, _this9.inputTarget.value, v);
5331
+ _this9.onDjqChange(value, true);
5332
+ }, _this9.djqKeyboardOnOk, _this9.djqKeyboardOnClose)();
5276
5333
  },
5277
5334
  onBlur: function onBlur(e) {
5278
- _keyboard2.default.close();_this8.inputdjq.input.value = '';
5335
+ _keyboard2.default.close();_this9.inputdjq.input.value = '';
5279
5336
  }
5280
5337
  })
5281
5338
  ),
@@ -5309,7 +5366,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5309
5366
  { className: 'col3' },
5310
5367
  _react2.default.createElement(_ticon2.default, { type: 'saomiao1', className: 'icon', onClick: this.changeScanProduct }),
5311
5368
  _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
5312
- return _this8.scanObj = scan;
5369
+ return _this9.scanObj = scan;
5313
5370
  }, onChange: this.onScanDjqResult })
5314
5371
  )
5315
5372
  ),
@@ -5320,10 +5377,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5320
5377
  'div',
5321
5378
  { className: 'djq2' },
5322
5379
  currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
5323
- if (!_this8.state.couponLight && !q.count) {
5380
+ if (!_this9.state.couponLight && !q.count) {
5324
5381
  return;
5325
5382
  }
5326
- if (_this8.state.couponLight && q.count && q.count === 1) {
5383
+ if (_this9.state.couponLight && q.count && q.count === 1) {
5327
5384
  return;
5328
5385
  }
5329
5386
  return _react2.default.createElement(
@@ -5377,7 +5434,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5377
5434
  _react2.default.createElement(
5378
5435
  'div',
5379
5436
  { className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
5380
- return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
5437
+ return q.IsEnable ? _this9.djqChecked(q, _this9.props.dto) : null;
5381
5438
  } },
5382
5439
  q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
5383
5440
  q.checked ? _react2.default.createElement(
@@ -5682,23 +5739,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5682
5739
  _react2.default.createElement(_input2.default, {
5683
5740
  className: _index.hotKey.hotKeyNotFilter('input'),
5684
5741
  type: 'text',
5742
+ value: storageValue,
5685
5743
  onChange: function onChange(e) {
5686
- _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5744
+ _this9.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5687
5745
  },
5688
5746
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5689
- ref: function ref(_ref34) {
5690
- return _this8["inputJfdxAmount"] = _ref34;
5747
+ ref: function ref(_ref35) {
5748
+ return _this9["inputJfdxAmount"] = _ref35;
5691
5749
  },
5692
5750
  onFocus: function onFocus(e) {
5693
- _this8.inputkey = "inputJfdxAmount";
5751
+ _this9.inputkey = "inputJfdxAmount";
5694
5752
  _keyboard2.default.open(function (v) {
5695
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5696
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5697
- }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
5753
+ var value = _keyboard2.default.getNewValue(_this9[_this9.inputkey].input, _this9[_this9.inputkey].input.value, v);
5754
+ _this9.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5755
+ }, _this9.keyboardOnOk, _this9.keyboardOnClose)();
5698
5756
  },
5699
5757
  onBlur: function onBlur(e) {
5700
5758
  _keyboard2.default.close();
5701
- _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5759
+ _this9.setCurrentModeValue((0, _utils.getFixedNumber)(_this9.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5702
5760
  }
5703
5761
  })
5704
5762
  )