tplus-components-touch 3.32.4 → 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.
@@ -1942,96 +1942,147 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1942
1942
  };
1943
1943
 
1944
1944
  _this2.handleSettle = function () {
1945
- 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) {
1946
1946
  var handleUserInputs = function () {
1947
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1948
- 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;
1949
1949
 
1950
- 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) {
1951
1953
  while (1) {
1952
- switch (_context10.prev = _context10.next) {
1954
+ switch (_context11.prev = _context11.next) {
1953
1955
  case 0:
1954
1956
  results = [];
1955
- _context10.prev = 1;
1957
+ _context11.prev = 1;
1956
1958
  _iteratorNormalCompletion = true;
1957
1959
  _didIteratorError = false;
1958
1960
  _iteratorError = undefined;
1959
- _context10.prev = 5;
1961
+ _context11.prev = 5;
1960
1962
  _iterator = (0, _getIterator3.default)(promises);
1961
1963
 
1962
1964
  case 7:
1963
1965
  if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
1964
- _context10.next = 16;
1966
+ _context11.next = 16;
1965
1967
  break;
1966
1968
  }
1967
1969
 
1968
1970
  p = _step.value;
1969
- _context10.next = 11;
1971
+ _context11.next = 11;
1970
1972
  return p;
1971
1973
 
1972
1974
  case 11:
1973
- _result = _context10.sent;
1975
+ _result = _context11.sent;
1974
1976
 
1975
1977
  results.push(_result);
1976
1978
 
1977
1979
  case 13:
1978
1980
  _iteratorNormalCompletion = true;
1979
- _context10.next = 7;
1981
+ _context11.next = 7;
1980
1982
  break;
1981
1983
 
1982
1984
  case 16:
1983
- _context10.next = 22;
1985
+ _context11.next = 22;
1984
1986
  break;
1985
1987
 
1986
1988
  case 18:
1987
- _context10.prev = 18;
1988
- _context10.t0 = _context10['catch'](5);
1989
+ _context11.prev = 18;
1990
+ _context11.t0 = _context11['catch'](5);
1989
1991
  _didIteratorError = true;
1990
- _iteratorError = _context10.t0;
1992
+ _iteratorError = _context11.t0;
1991
1993
 
1992
1994
  case 22:
1993
- _context10.prev = 22;
1994
- _context10.prev = 23;
1995
+ _context11.prev = 22;
1996
+ _context11.prev = 23;
1995
1997
 
1996
1998
  if (!_iteratorNormalCompletion && _iterator.return) {
1997
1999
  _iterator.return();
1998
2000
  }
1999
2001
 
2000
2002
  case 25:
2001
- _context10.prev = 25;
2003
+ _context11.prev = 25;
2002
2004
 
2003
2005
  if (!_didIteratorError) {
2004
- _context10.next = 28;
2006
+ _context11.next = 28;
2005
2007
  break;
2006
2008
  }
2007
2009
 
2008
2010
  throw _iteratorError;
2009
2011
 
2010
2012
  case 28:
2011
- return _context10.finish(25);
2013
+ return _context11.finish(25);
2012
2014
 
2013
2015
  case 29:
2014
- return _context10.finish(22);
2016
+ return _context11.finish(22);
2015
2017
 
2016
2018
  case 30:
2017
2019
  window.__loadingModal = (0, _utils.openLoadingModal)();
2018
- _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;
2019
2066
  return commit(results);
2020
2067
 
2021
- case 33:
2022
- _context10.next = 37;
2068
+ case 41:
2069
+ _context11.next = 43;
2070
+ return commit(results);
2071
+
2072
+ case 43:
2073
+ _context11.next = 47;
2023
2074
  break;
2024
2075
 
2025
- case 35:
2026
- _context10.prev = 35;
2027
- _context10.t1 = _context10['catch'](1);
2076
+ case 45:
2077
+ _context11.prev = 45;
2078
+ _context11.t1 = _context11['catch'](1);
2028
2079
 
2029
- case 37:
2080
+ case 47:
2030
2081
  case 'end':
2031
- return _context10.stop();
2082
+ return _context11.stop();
2032
2083
  }
2033
2084
  }
2034
- }, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2085
+ }, _callee11, this, [[1, 45], [5, 18, 22, 30], [23,, 25, 29]]);
2035
2086
  }));
2036
2087
 
2037
2088
  return function handleUserInputs(_x6) {
@@ -2039,16 +2090,26 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2039
2090
  };
2040
2091
  }();
2041
2092
 
2042
- 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;
2043
2094
 
2044
- return _regenerator2.default.wrap(function _callee11$(_context11) {
2095
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
2045
2096
  while (1) {
2046
- switch (_context11.prev = _context11.next) {
2097
+ switch (_context12.prev = _context12.next) {
2047
2098
  case 0:
2048
2099
  _this2.setState({
2049
2100
  settleDisabled: true
2050
2101
  });
2051
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);
2052
2113
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
2053
2114
  _this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
2054
2115
  isQuickPay = args === 'quickPay';
@@ -2065,7 +2126,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2065
2126
  });
2066
2127
 
2067
2128
  if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
2068
- _context11.next = 13;
2129
+ _context12.next = 13;
2069
2130
  break;
2070
2131
  }
2071
2132
 
@@ -2073,11 +2134,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2073
2134
  _this2.setState({
2074
2135
  settleDisabled: false
2075
2136
  });
2076
- return _context11.abrupt('return');
2137
+ return _context12.abrupt('return');
2077
2138
 
2078
2139
  case 13:
2079
2140
  if (!(args !== "zero" && !newStyle)) {
2080
- _context11.next = 19;
2141
+ _context12.next = 19;
2081
2142
  break;
2082
2143
  }
2083
2144
 
@@ -2086,7 +2147,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2086
2147
  });
2087
2148
 
2088
2149
  if (!zeromode) {
2089
- _context11.next = 19;
2150
+ _context12.next = 19;
2090
2151
  break;
2091
2152
  }
2092
2153
 
@@ -2094,7 +2155,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2094
2155
  settleDisabled: false
2095
2156
  });
2096
2157
  _message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
2097
- return _context11.abrupt('return');
2158
+ return _context12.abrupt('return');
2098
2159
 
2099
2160
  case 19:
2100
2161
  promises = [];
@@ -2103,14 +2164,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2103
2164
  }) : paymode.thePaymodes, 'orderBy');
2104
2165
 
2105
2166
  if (!isQuickPay) {
2106
- _context11.next = 27;
2167
+ _context12.next = 27;
2107
2168
  break;
2108
2169
  }
2109
2170
 
2110
2171
  quickmode = thePaymodes[0];
2111
2172
 
2112
2173
  if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
2113
- _context11.next = 27;
2174
+ _context12.next = 27;
2114
2175
  break;
2115
2176
  }
2116
2177
 
@@ -2118,7 +2179,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2118
2179
  settleDisabled: false
2119
2180
  });
2120
2181
  _message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
2121
- return _context11.abrupt('return');
2182
+ return _context12.abrupt('return');
2122
2183
 
2123
2184
  case 27:
2124
2185
  (0, _forEach3.default)(thePaymodes, function (mode) {
@@ -2206,14 +2267,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2206
2267
  };
2207
2268
  }();
2208
2269
 
2270
+ _this2$props3 = _this2.props, isUpdateDate = _this2$props3.isUpdateDate, type = _this2$props3.type;
2271
+ VoucherDate = _this2.store.dto.VoucherDate;
2272
+
2273
+
2209
2274
  handleUserInputs(promises);
2210
2275
 
2211
- case 30:
2276
+ case 32:
2212
2277
  case 'end':
2213
- return _context11.stop();
2278
+ return _context12.stop();
2214
2279
  }
2215
2280
  }
2216
- }, _callee11, _this3);
2281
+ }, _callee12, _this3);
2217
2282
  }));
2218
2283
 
2219
2284
  return function (_x4) {
@@ -2221,91 +2286,91 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2221
2286
  };
2222
2287
  }();
2223
2288
 
2224
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2289
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2225
2290
  var handleUserInputs = function () {
2226
- 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) {
2227
2292
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2228
2293
 
2229
- return _regenerator2.default.wrap(function _callee13$(_context13) {
2294
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2230
2295
  while (1) {
2231
- switch (_context13.prev = _context13.next) {
2296
+ switch (_context14.prev = _context14.next) {
2232
2297
  case 0:
2233
2298
  results = [];
2234
- _context13.prev = 1;
2299
+ _context14.prev = 1;
2235
2300
  _iteratorNormalCompletion2 = true;
2236
2301
  _didIteratorError2 = false;
2237
2302
  _iteratorError2 = undefined;
2238
- _context13.prev = 5;
2303
+ _context14.prev = 5;
2239
2304
  _iterator2 = (0, _getIterator3.default)(promises);
2240
2305
 
2241
2306
  case 7:
2242
2307
  if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2243
- _context13.next = 16;
2308
+ _context14.next = 16;
2244
2309
  break;
2245
2310
  }
2246
2311
 
2247
2312
  p = _step2.value;
2248
- _context13.next = 11;
2313
+ _context14.next = 11;
2249
2314
  return p;
2250
2315
 
2251
2316
  case 11:
2252
- _result2 = _context13.sent;
2317
+ _result2 = _context14.sent;
2253
2318
 
2254
2319
  results.push(_result2);
2255
2320
 
2256
2321
  case 13:
2257
2322
  _iteratorNormalCompletion2 = true;
2258
- _context13.next = 7;
2323
+ _context14.next = 7;
2259
2324
  break;
2260
2325
 
2261
2326
  case 16:
2262
- _context13.next = 22;
2327
+ _context14.next = 22;
2263
2328
  break;
2264
2329
 
2265
2330
  case 18:
2266
- _context13.prev = 18;
2267
- _context13.t0 = _context13['catch'](5);
2331
+ _context14.prev = 18;
2332
+ _context14.t0 = _context14['catch'](5);
2268
2333
  _didIteratorError2 = true;
2269
- _iteratorError2 = _context13.t0;
2334
+ _iteratorError2 = _context14.t0;
2270
2335
 
2271
2336
  case 22:
2272
- _context13.prev = 22;
2273
- _context13.prev = 23;
2337
+ _context14.prev = 22;
2338
+ _context14.prev = 23;
2274
2339
 
2275
2340
  if (!_iteratorNormalCompletion2 && _iterator2.return) {
2276
2341
  _iterator2.return();
2277
2342
  }
2278
2343
 
2279
2344
  case 25:
2280
- _context13.prev = 25;
2345
+ _context14.prev = 25;
2281
2346
 
2282
2347
  if (!_didIteratorError2) {
2283
- _context13.next = 28;
2348
+ _context14.next = 28;
2284
2349
  break;
2285
2350
  }
2286
2351
 
2287
2352
  throw _iteratorError2;
2288
2353
 
2289
2354
  case 28:
2290
- return _context13.finish(25);
2355
+ return _context14.finish(25);
2291
2356
 
2292
2357
  case 29:
2293
- return _context13.finish(22);
2358
+ return _context14.finish(22);
2294
2359
 
2295
2360
  case 30:
2296
- _context13.next = 32;
2361
+ _context14.next = 32;
2297
2362
  return commit(results);
2298
2363
 
2299
2364
  case 32:
2300
- _context13.next = 37;
2365
+ _context14.next = 37;
2301
2366
  break;
2302
2367
 
2303
2368
  case 34:
2304
- _context13.prev = 34;
2305
- _context13.t1 = _context13['catch'](1);
2369
+ _context14.prev = 34;
2370
+ _context14.t1 = _context14['catch'](1);
2306
2371
 
2307
- if (_context13.t1 != "cancelpwd") {
2308
- _message2.default.error(_context13.t1);
2372
+ if (_context14.t1 != "cancelpwd") {
2373
+ _message2.default.error(_context14.t1);
2309
2374
  setTimeout(function () {
2310
2375
  that.handleCzk();
2311
2376
  }, 500);
@@ -2313,27 +2378,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2313
2378
 
2314
2379
  case 37:
2315
2380
  case 'end':
2316
- return _context13.stop();
2381
+ return _context14.stop();
2317
2382
  }
2318
2383
  }
2319
- }, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2384
+ }, _callee14, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2320
2385
  }));
2321
2386
 
2322
- return function handleUserInputs(_x8) {
2323
- return _ref23.apply(this, arguments);
2387
+ return function handleUserInputs(_x9) {
2388
+ return _ref24.apply(this, arguments);
2324
2389
  };
2325
2390
  }();
2326
2391
 
2327
- var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2392
+ var that, curmode, promises, _ref22, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2328
2393
 
2329
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2394
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2330
2395
  while (1) {
2331
- switch (_context14.prev = _context14.next) {
2396
+ switch (_context15.prev = _context15.next) {
2332
2397
  case 0:
2333
2398
  that = _this2;
2334
2399
  curmode = _this2.store.paymode.currentMode;
2335
2400
  promises = [];
2336
- _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2401
+ _ref22 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref22.isNewRetailBCPos;
2337
2402
 
2338
2403
  if (isNewRetailBCPos) {
2339
2404
  if (curmode.value > 0) {
@@ -2354,33 +2419,33 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2354
2419
  }
2355
2420
 
2356
2421
  commit = function () {
2357
- 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) {
2358
2423
  var result;
2359
- return _regenerator2.default.wrap(function _callee12$(_context12) {
2424
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
2360
2425
  while (1) {
2361
- switch (_context12.prev = _context12.next) {
2426
+ switch (_context13.prev = _context13.next) {
2362
2427
  case 0:
2363
2428
  if (!(values.length > 0)) {
2364
- _context12.next = 6;
2429
+ _context13.next = 6;
2365
2430
  break;
2366
2431
  }
2367
2432
 
2368
- _context12.next = 3;
2433
+ _context13.next = 3;
2369
2434
  return that.store.validePwd(values[0]);
2370
2435
 
2371
2436
  case 3:
2372
- _context12.t0 = _context12.sent;
2373
- _context12.next = 7;
2437
+ _context13.t0 = _context13.sent;
2438
+ _context13.next = 7;
2374
2439
  break;
2375
2440
 
2376
2441
  case 6:
2377
- _context12.t0 = "";
2442
+ _context13.t0 = "";
2378
2443
 
2379
2444
  case 7:
2380
- result = _context12.t0;
2445
+ result = _context13.t0;
2381
2446
 
2382
2447
  if (!(result == "")) {
2383
- _context12.next = 13;
2448
+ _context13.next = 13;
2384
2449
  break;
2385
2450
  }
2386
2451
 
@@ -2388,23 +2453,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2388
2453
  //返回
2389
2454
  that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
2390
2455
  _promise2.default.resolve();
2391
- _context12.next = 15;
2456
+ _context13.next = 15;
2392
2457
  break;
2393
2458
 
2394
2459
  case 13:
2395
- _context12.next = 15;
2460
+ _context13.next = 15;
2396
2461
  return _promise2.default.reject(result);
2397
2462
 
2398
2463
  case 15:
2399
2464
  case 'end':
2400
- return _context12.stop();
2465
+ return _context13.stop();
2401
2466
  }
2402
2467
  }
2403
- }, _callee12, _this3);
2468
+ }, _callee13, _this3);
2404
2469
  }));
2405
2470
 
2406
- return function commit(_x7) {
2407
- return _ref22.apply(this, arguments);
2471
+ return function commit(_x8) {
2472
+ return _ref23.apply(this, arguments);
2408
2473
  };
2409
2474
  }();
2410
2475
 
@@ -2412,10 +2477,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2412
2477
 
2413
2478
  case 7:
2414
2479
  case 'end':
2415
- return _context14.stop();
2480
+ return _context15.stop();
2416
2481
  }
2417
2482
  }
2418
- }, _callee14, _this3);
2483
+ }, _callee15, _this3);
2419
2484
  }));
2420
2485
 
2421
2486
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2455,15 +2520,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2455
2520
  };
2456
2521
 
2457
2522
  _this2.inputPwd = function () {
2458
- 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) {
2459
2524
  var that, confirmPwd;
2460
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2525
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
2461
2526
  while (1) {
2462
- switch (_context15.prev = _context15.next) {
2527
+ switch (_context16.prev = _context16.next) {
2463
2528
  case 0:
2464
2529
  that = _this2;
2465
2530
  confirmPwd = _this2.state.confirmPwd;
2466
- return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
2531
+ return _context16.abrupt('return', new _promise2.default(function (resolve, reject) {
2467
2532
  var modal = (0, _asyncModal2.default)({
2468
2533
  onPressEnter: function onPressEnter() {
2469
2534
  _keyboard2.default.close();
@@ -2471,8 +2536,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2471
2536
  // if (v !== '') {
2472
2537
  modal.destroy();
2473
2538
 
2474
- var _ref25 = that.state || {},
2475
- confirmPwd = _ref25.confirmPwd;
2539
+ var _ref26 = that.state || {},
2540
+ confirmPwd = _ref26.confirmPwd;
2476
2541
 
2477
2542
  setTimeout(function () {
2478
2543
  paymode.authCode = v;
@@ -2562,8 +2627,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2562
2627
  type: 'primary', size: 'large', onClick: function onClick() {
2563
2628
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2564
2629
 
2565
- var _ref26 = that.state || {},
2566
- confirmPwd = _ref26.confirmPwd;
2630
+ var _ref27 = that.state || {},
2631
+ confirmPwd = _ref27.confirmPwd;
2567
2632
  // if (v !== '') {
2568
2633
 
2569
2634
 
@@ -2597,14 +2662,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2597
2662
 
2598
2663
  case 3:
2599
2664
  case 'end':
2600
- return _context15.stop();
2665
+ return _context16.stop();
2601
2666
  }
2602
2667
  }
2603
- }, _callee15, _this3);
2668
+ }, _callee16, _this3);
2604
2669
  }));
2605
2670
 
2606
- return function (_x9) {
2607
- return _ref24.apply(this, arguments);
2671
+ return function (_x10) {
2672
+ return _ref25.apply(this, arguments);
2608
2673
  };
2609
2674
  }();
2610
2675
 
@@ -2658,8 +2723,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2658
2723
 
2659
2724
  _this2.onCzkChange = function (v) {
2660
2725
  // console.log("czk change:"+new Date().toLocaleTimeString())
2661
- var _ref27 = _mutantsUtil.platform || {},
2662
- isNewRetailBCPos = _ref27.isNewRetailBCPos;
2726
+ var _ref28 = _mutantsUtil.platform || {},
2727
+ isNewRetailBCPos = _ref28.isNewRetailBCPos;
2663
2728
 
2664
2729
  if (!isNewRetailBCPos) {
2665
2730
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -2791,9 +2856,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2791
2856
  var that = _this2;
2792
2857
  var isStoredValueCard = false;
2793
2858
  var discountPrototypeTotalAmount = _this2.state.discountPrototypeTotalAmount;
2794
- var _this2$props3 = _this2.props,
2795
- isReturn = _this2$props3.isReturn,
2796
- type = _this2$props3.type;
2859
+ var _this2$props4 = _this2.props,
2860
+ isReturn = _this2$props4.isReturn,
2861
+ type = _this2$props4.type;
2797
2862
 
2798
2863
  var isManualIntoAmount = void 0;
2799
2864
  // 付款弹窗
@@ -3240,19 +3305,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3240
3305
 
3241
3306
  _this2.hasElectron = hasElectron;
3242
3307
 
3243
- var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3244
- MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
3245
- ICCardServer = _ref28.ICCardServer,
3246
- ICCardPassword = _ref28.ICCardPassword;
3308
+ var _ref29 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3309
+ MemberMeStorageCardInputByKeyBoard = _ref29.MemberMeStorageCardInputByKeyBoard,
3310
+ ICCardServer = _ref29.ICCardServer,
3311
+ ICCardPassword = _ref29.ICCardPassword;
3247
3312
 
3248
3313
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3249
3314
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3250
3315
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3251
3316
  //移动端环境下,没有读取IC卡的方式。
3252
3317
 
3253
- var _ref29 = _mutantsUtil.platform || {},
3254
- isHorizontalPad = _ref29.isHorizontalPad,
3255
- isHorizontalSunMi = _ref29.isHorizontalSunMi;
3318
+ var _ref30 = _mutantsUtil.platform || {},
3319
+ isHorizontalPad = _ref30.isHorizontalPad,
3320
+ isHorizontalSunMi = _ref30.isHorizontalSunMi;
3256
3321
 
3257
3322
  _this2.isHorizontalPad = !!isHorizontalPad;
3258
3323
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3298,7 +3363,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3298
3363
 
3299
3364
  //IC卡连接
3300
3365
  value: function connectRfCard() {
3301
- var _this5 = this;
3366
+ var _this6 = this;
3302
3367
 
3303
3368
  //客户端环境下,并开启了启用IC卡。
3304
3369
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3309,7 +3374,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3309
3374
  } else {
3310
3375
  result = { connectCardStatus: true, connectCardError: '' };
3311
3376
  }
3312
- _this5.setState(result);
3377
+ _this6.setState(result);
3313
3378
  });
3314
3379
  }
3315
3380
  }
@@ -3318,7 +3383,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3318
3383
  }, {
3319
3384
  key: 'readRfCard',
3320
3385
  value: function readRfCard() {
3321
- var _this6 = this;
3386
+ var _this7 = this;
3322
3387
 
3323
3388
  //客户端环境下,并开启了启用IC卡。
3324
3389
  if (this.hasElectron === true && this.iCCardServer === 1) {
@@ -3335,15 +3400,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3335
3400
  _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReadRfCard', (0, _extends3.default)({}, params), function (ret) {
3336
3401
  if (ret.status === 0) {
3337
3402
  _message2.default.error(ret.value);
3338
- _this6.connectRfCard(); //读取失败后,重新连接一下。
3403
+ _this7.connectRfCard(); //读取失败后,重新连接一下。
3339
3404
  return;
3340
3405
  } else if (ret.status === 1) {
3341
3406
  // this.searchMember(ret.value);
3342
3407
  // this.czkInput.input["value"]=ret.value;
3343
- _this6.setState({
3408
+ _this7.setState({
3344
3409
  czkValue: ret.value
3345
3410
  });
3346
- _this6.loadCzk(ret.value);
3411
+ _this7.loadCzk(ret.value);
3347
3412
  }
3348
3413
  });
3349
3414
  }
@@ -3401,7 +3466,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3401
3466
  }, {
3402
3467
  key: 'renderToolbtn',
3403
3468
  value: function renderToolbtn(mode, index) {
3404
- var _this7 = this;
3469
+ var _this8 = this;
3405
3470
 
3406
3471
  var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
3407
3472
  PayIcon = _enumController$getEn32.PayIcon,
@@ -3438,7 +3503,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3438
3503
  return _react2.default.createElement(
3439
3504
  'div',
3440
3505
  { key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
3441
- _this7.onTabsClick(mode.paymentType);
3506
+ _this8.onTabsClick(mode.paymentType);
3442
3507
  } },
3443
3508
  _react2.default.createElement(
3444
3509
  'div',
@@ -3475,7 +3540,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3475
3540
  }, {
3476
3541
  key: 'render',
3477
3542
  value: function render() {
3478
- var _this8 = this;
3543
+ var _this9 = this;
3479
3544
 
3480
3545
  var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
3481
3546
  PayIcon = _enumController$getEn33.PayIcon,
@@ -3494,8 +3559,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3494
3559
  newPassConfirm = _state2.newPassConfirm,
3495
3560
  newPass = _state2.newPass;
3496
3561
 
3497
- var _ref30 = _mutantsUtil.platform || {},
3498
- isNewRetailBCPos = _ref30.isNewRetailBCPos;
3562
+ var _ref31 = _mutantsUtil.platform || {},
3563
+ isNewRetailBCPos = _ref31.isNewRetailBCPos;
3499
3564
 
3500
3565
  var _store2 = this.store,
3501
3566
  paymode = _store2.paymode,
@@ -3516,7 +3581,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3516
3581
  var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
3517
3582
  // 单据模式
3518
3583
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
3519
- return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3584
+ return !(_this9.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3520
3585
  }) : paymode.thePaymodes;
3521
3586
  var paymodes = paymode.paymodes,
3522
3587
  settle = paymode.settle,
@@ -3558,11 +3623,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3558
3623
  quantity4 = 0;
3559
3624
  var sumQuantity = 0; //数量总和的值,包括称重的。
3560
3625
 
3561
- var _ref31 = quantityDetail || {},
3562
- _ref31$buyQuantity = _ref31.buyQuantity,
3563
- buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
3564
- _ref31$returnQuantity = _ref31.returnQuantity,
3565
- 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;
3566
3631
 
3567
3632
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3568
3633
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -3586,7 +3651,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3586
3651
  return _react2.default.createElement(
3587
3652
  'div',
3588
3653
  { className: 'billingSettlement', ref: function ref(r) {
3589
- return _this8.billingSettlementDocumnet = r;
3654
+ return _this9.billingSettlementDocumnet = r;
3590
3655
  } },
3591
3656
  this.props.MemberPoints ? _react2.default.createElement(
3592
3657
  'div',
@@ -3716,9 +3781,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3716
3781
  return _react2.default.createElement(
3717
3782
  _button2.default,
3718
3783
  { className: (0, _classnames4.default)({ "quick": true, "quick2": type == 1 }), key: 'paymentType_' + p.paymentType, onClick: function onClick() {
3719
- _this8.btnDebounced(p.paymentType, true);
3784
+ _this9.btnDebounced(p.paymentType, true);
3720
3785
  },
3721
- 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) },
3722
3787
  _react2.default.createElement(
3723
3788
  'div',
3724
3789
  { className: (0, _classnames4.default)((_classnames2 = {}, (0, _defineProperty3.default)(_classnames2, iconclass, true), (0, _defineProperty3.default)(_classnames2, "icon", true), _classnames2)) },
@@ -3734,7 +3799,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3734
3799
  _react2.default.createElement(
3735
3800
  _button2.default,
3736
3801
  { key: 'settle', className: (0, _classnames4.default)({ "settle": true, "settle2": type == 1, "settleStorage": true, 'primary-btn': true }), onClick: function onClick() {
3737
- _this8.btnDebounced();
3802
+ _this9.btnDebounced();
3738
3803
  }, disabled: productsIsEmpty },
3739
3804
  this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : settle.name
3740
3805
  )
@@ -3762,7 +3827,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3762
3827
  'div',
3763
3828
  null,
3764
3829
  (0, _map3.default)(paymodes, function (mode, index) {
3765
- return _this8.renderToolbtn(mode, index);
3830
+ return _this9.renderToolbtn(mode, index);
3766
3831
  })
3767
3832
  ),
3768
3833
  paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
@@ -3799,28 +3864,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3799
3864
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
3800
3865
  className: _index.hotKey.hotKeyNotFilter(),
3801
3866
  onClick: function onClick() {
3802
- _this8.editModal(index, mode.paymentType, boriginReturn);
3867
+ _this9.editModal(index, mode.paymentType, boriginReturn);
3803
3868
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
3804
3869
  className: _index.hotKey.hotKeyNotFilter(),
3805
3870
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
3806
3871
  onClick: function onClick(e) {
3807
- return _this8.onHotKeyClick2(index, mode, paymode, e);
3872
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
3808
3873
  },
3809
3874
  onBlur: function onBlur(e) {
3810
- return _this8.onBlur(index, e);
3875
+ return _this9.onBlur(index, e);
3811
3876
  },
3812
3877
  onFocus: function onFocus(e) {
3813
- return _this8.onFocusHack(index, mode, paymode, e);
3878
+ return _this9.onFocusHack(index, mode, paymode, e);
3814
3879
  },
3815
3880
  onChange: function onChange(e) {
3816
- return _this8.handleChange(index, e);
3881
+ return _this9.handleChange(index, e);
3817
3882
  }
3818
3883
  })
3819
3884
  ),
3820
3885
  _react2.default.createElement(
3821
3886
  'span',
3822
3887
  { className: 'minus', onClick: function onClick() {
3823
- _this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3888
+ _this9.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType);
3824
3889
  } },
3825
3890
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
3826
3891
  )
@@ -3866,7 +3931,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3866
3931
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
3867
3932
  _button2.default,
3868
3933
  { onClick: function onClick() {
3869
- _this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3934
+ _this9.appendCzkmode(boriginReturn, 'noPlaySetPwd');
3870
3935
  }, className: 'addCard btn-border-primary' },
3871
3936
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
3872
3937
  _react2.default.createElement(
@@ -4107,7 +4172,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4107
4172
  '\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
4108
4173
  ),
4109
4174
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4110
- var isReturn = _this8.props.isReturn;
4175
+ var isReturn = _this9.props.isReturn;
4111
4176
 
4112
4177
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4113
4178
  return m.paymentType === PayStyle.smzf;
@@ -4151,7 +4216,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4151
4216
  _react2.default.createElement(
4152
4217
  'div',
4153
4218
  { className: 'hotkey' },
4154
- _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[hotkeyIndex] || ''
4219
+ _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[hotkeyIndex] || ''
4155
4220
  )
4156
4221
  ),
4157
4222
  _react2.default.createElement(
@@ -4159,8 +4224,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4159
4224
  { className: (0, _classnames4.default)({ "content": true }) },
4160
4225
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4161
4226
 
4162
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4163
- 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),
4164
4229
  onClick: function onClick() {
4165
4230
  // let czkinput = document.getElementById('inputS' + index);
4166
4231
  // if (mode.paymentType === PayStyle.hyczk) {
@@ -4173,10 +4238,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4173
4238
  // mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
4174
4239
  if (mode.paymentType == PayStyle.hyczk) {
4175
4240
  if (themodeHyczk && themodeHyczk.length === 0) {
4176
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4241
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4177
4242
  }
4178
4243
  } else {
4179
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4244
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4180
4245
  }
4181
4246
  },
4182
4247
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
@@ -4184,20 +4249,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4184
4249
  }), function (sum, m) {
4185
4250
  return Math.Add(sum, m.value);
4186
4251
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4187
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4188
- 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),
4189
4254
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4190
4255
  onClick: function onClick(e) {
4191
- return _this8.onHotKeyClick2(index, mode, paymode, e);
4256
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
4192
4257
  },
4193
4258
  onBlur: function onBlur(e) {
4194
- return _this8.onBlur(index, e);
4259
+ return _this9.onBlur(index, e);
4195
4260
  },
4196
4261
  onFocus: function onFocus(e) {
4197
- return _this8.onFocusHack(index, mode, paymode, e);
4262
+ return _this9.onFocusHack(index, mode, paymode, e);
4198
4263
  },
4199
4264
  onChange: function onChange(e) {
4200
- return _this8.handleChange(index, e);
4265
+ return _this9.handleChange(index, e);
4201
4266
  }
4202
4267
  })
4203
4268
  )
@@ -4246,7 +4311,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4246
4311
  themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
4247
4312
  _button2.default,
4248
4313
  { onClick: function onClick() {
4249
- return _this8.onHotKeyClick1(mode, index, boriginReturn);
4314
+ return _this9.onHotKeyClick1(mode, index, boriginReturn);
4250
4315
  }, className: 'addCard btn-border-primary' },
4251
4316
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
4252
4317
  _react2.default.createElement(
@@ -4313,7 +4378,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4313
4378
  'div',
4314
4379
  null,
4315
4380
  (0, _map3.default)(paymodes, function (mode, index) {
4316
- return _this8.renderToolbtn(mode, index);
4381
+ return _this9.renderToolbtn(mode, index);
4317
4382
  })
4318
4383
  ),
4319
4384
  paymodes.length > carouselStart2 && this.paymodesCarouselList(params, paymodes, carouselStart2)
@@ -4424,24 +4489,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4424
4489
  { className: (0, _classnames4.default)({ "content": true }) },
4425
4490
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4426
4491
  onClick: function onClick() {
4427
- _this8.editModal(index, mode.paymentType);
4492
+ _this9.editModal(index, mode.paymentType);
4428
4493
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4429
4494
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4430
4495
  onBlur: function onBlur(e) {
4431
- return _this8.onBlur(index, e);
4496
+ return _this9.onBlur(index, e);
4432
4497
  },
4433
4498
  onChange: function onChange(e) {
4434
- return _this8.handleChange(index, e);
4499
+ return _this9.handleChange(index, e);
4435
4500
  },
4436
4501
  onFocus: function onFocus(e) {
4437
- return _this8.onFocusHack(index, mode, paymode, e);
4502
+ return _this9.onFocusHack(index, mode, paymode, e);
4438
4503
  }
4439
4504
  })
4440
4505
  ),
4441
4506
  _react2.default.createElement(
4442
4507
  'div',
4443
4508
  { className: 'minus', onClick: function onClick() {
4444
- _this8.onDelPay(index);
4509
+ _this9.onDelPay(index);
4445
4510
  } },
4446
4511
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
4447
4512
  )
@@ -4631,7 +4696,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4631
4696
 
4632
4697
  // _map(_sortBy(thePaymodes, pay => pay['order'] || 0), (mode) => {
4633
4698
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4634
- var isReturn = _this8.props.isReturn;
4699
+ var isReturn = _this9.props.isReturn;
4635
4700
 
4636
4701
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4637
4702
  return m.paymentType === PayStyle.smzf;
@@ -4675,7 +4740,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4675
4740
  _react2.default.createElement(
4676
4741
  'div',
4677
4742
  { className: 'hotkey' },
4678
- _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[mindex] || ""
4743
+ _this9.isHorizontalPad ? '' : _this9.compoundHotkeysList[mindex] || ""
4679
4744
  )
4680
4745
  ),
4681
4746
  _react2.default.createElement(
@@ -4683,32 +4748,32 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4683
4748
  { className: (0, _classnames4.default)({ "content": true }) },
4684
4749
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index
4685
4750
  // className={classnames({'paymode':mode.paymentType == PayStyle.hyczk?(_findIndex(thePaymodes,(m)=>{return m.paymentType==PayStyle.hyczk;})==mindex?true:false):true})}
4686
- , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4751
+ , className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4687
4752
  // className="paymode"
4688
- , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4753
+ , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4689
4754
  onClick: function onClick() {
4690
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4755
+ _this9.onHotKeyClick1(mode, index, boriginReturn);
4691
4756
  },
4692
4757
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
4693
4758
  return tm.paymentType == PayStyle.hyczk;
4694
4759
  }), function (sum, m) {
4695
4760
  return Math.Add(sum, m.value);
4696
4761
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4697
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex])
4762
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this9.compoundHotkeysList[hotkeyIndex])
4698
4763
  // className="paymode"
4699
- , disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4764
+ , disabled: _this9.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this9.checkScanDisabled(mode.paymentType),
4700
4765
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4701
4766
  onClick: function onClick(e) {
4702
- return _this8.onHotKeyClick2(index, mode, paymode, e);
4767
+ return _this9.onHotKeyClick2(index, mode, paymode, e);
4703
4768
  },
4704
4769
  onBlur: function onBlur(e) {
4705
- return _this8.onBlur(index, e);
4770
+ return _this9.onBlur(index, e);
4706
4771
  },
4707
4772
  onFocus: function onFocus(e) {
4708
- return _this8.onFocusHack(index, mode, paymode, e);
4773
+ return _this9.onFocusHack(index, mode, paymode, e);
4709
4774
  },
4710
4775
  onChange: function onChange(e) {
4711
- return _this8.handleChange(index, e);
4776
+ return _this9.handleChange(index, e);
4712
4777
  }
4713
4778
  })
4714
4779
  )
@@ -4891,79 +4956,79 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4891
4956
  placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u624B\u673A\u53F7/\u50A8\u503C\u5361\u53F7',
4892
4957
  className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
4893
4958
  onChange: function onChange(e) {
4894
- return _this8.onCzkChange(e.target.value);
4959
+ return _this9.onCzkChange(e.target.value);
4895
4960
  },
4896
4961
  defaultValue: currentMode && currentMode.storageCardNo,
4897
4962
  value: czkValue,
4898
4963
  ref: function ref(input) {
4899
- return _this8.czkInput = input;
4964
+ return _this9.czkInput = input;
4900
4965
  },
4901
4966
  onKeyDown: function () {
4902
- 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) {
4903
4968
  var time, _paymode;
4904
4969
 
4905
- return _regenerator2.default.wrap(function _callee16$(_context16) {
4970
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
4906
4971
  while (1) {
4907
- switch (_context16.prev = _context16.next) {
4972
+ switch (_context17.prev = _context17.next) {
4908
4973
  case 0:
4909
4974
  if (!(e.keyCode == 13)) {
4910
- _context16.next = 14;
4975
+ _context17.next = 14;
4911
4976
  break;
4912
4977
  }
4913
4978
 
4914
4979
  time = Date.parse(new Date());
4915
4980
 
4916
- if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4917
- _context16.next = 7;
4981
+ if (!(_this9.isStorageCardInputType && time - _this9.keypressStime > 350)) {
4982
+ _context17.next = 7;
4918
4983
  break;
4919
4984
  }
4920
4985
 
4921
4986
  _message2.default.warn('储值卡不可键盘录入,请刷卡!');
4922
- _this8.keypressStime = null;
4923
- _this8.setState({
4987
+ _this9.keypressStime = null;
4988
+ _this9.setState({
4924
4989
  czkValue: null
4925
4990
  });
4926
- return _context16.abrupt('return');
4991
+ return _context17.abrupt('return');
4927
4992
 
4928
4993
  case 7:
4929
- _this8.keypressStime = null;
4930
- _context16.next = 10;
4931
- return _this8.loadCzk(e.target.value);
4994
+ _this9.keypressStime = null;
4995
+ _context17.next = 10;
4996
+ return _this9.loadCzk(e.target.value);
4932
4997
 
4933
4998
  case 10:
4934
- _paymode = _this8.store.paymode;
4999
+ _paymode = _this9.store.paymode;
4935
5000
 
4936
5001
  if (!_paymode.currentMode.storageCardNo) {
4937
- _this8.setState({
5002
+ _this9.setState({
4938
5003
  czkvalue: null
4939
5004
  });
4940
5005
  }
4941
- _context16.next = 15;
5006
+ _context17.next = 15;
4942
5007
  break;
4943
5008
 
4944
5009
  case 14:
4945
- if (!_this8.keypressStime && e.keyCode !== 8) {
4946
- _this8.keypressStime = Date.parse(new Date());
5010
+ if (!_this9.keypressStime && e.keyCode !== 8) {
5011
+ _this9.keypressStime = Date.parse(new Date());
4947
5012
  }
4948
5013
 
4949
5014
  case 15:
4950
5015
  case 'end':
4951
- return _context16.stop();
5016
+ return _context17.stop();
4952
5017
  }
4953
5018
  }
4954
- }, _callee16, _this8);
5019
+ }, _callee17, _this9);
4955
5020
  }));
4956
5021
 
4957
- return function (_x11) {
4958
- return _ref32.apply(this, arguments);
5022
+ return function (_x12) {
5023
+ return _ref33.apply(this, arguments);
4959
5024
  };
4960
5025
  }(),
4961
5026
  onFocus: function onFocus(e) {
4962
- _this8.inputTarget = _this8.czkInput.input;
4963
- !_this8.state.prototypeVisible && _keyboard2.default.open(function (v) {
4964
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
4965
- _this8.onCzkChange(value);
4966
- }, _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)();
4967
5032
  },
4968
5033
  onBlur: function onBlur(e) {
4969
5034
  _keyboard2.default.close();
@@ -4975,7 +5040,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4975
5040
 
4976
5041
  /* 扫描组件 */
4977
5042
  this.isHorizontalPad && _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
4978
- return _this8.scanObj = scan;
5043
+ return _this9.scanObj = scan;
4979
5044
  }, onChange: this.onScanCzkResult })
4980
5045
  ),
4981
5046
  _react2.default.createElement(
@@ -5009,22 +5074,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5009
5074
  className: _index.hotKey.hotKeyNotFilter('input'),
5010
5075
  value: storageValue,
5011
5076
  onChange: function onChange(event) {
5012
- _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5077
+ _this9.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
5013
5078
  },
5014
5079
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
5015
- ref: function ref(_ref33) {
5016
- return _this8["inputCzkAmount"] = _ref33;
5080
+ ref: function ref(_ref34) {
5081
+ return _this9["inputCzkAmount"] = _ref34;
5017
5082
  },
5018
5083
  onFocus: function onFocus(e) {
5019
- _this8.inputkey = "inputCzkAmount";
5084
+ _this9.inputkey = "inputCzkAmount";
5020
5085
  _keyboard2.default.open(function (v) {
5021
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5022
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
5023
- }, _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)();
5024
5089
  },
5025
5090
  onBlur: function onBlur(e) {
5026
5091
  _keyboard2.default.close();
5027
- _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));
5028
5093
  }
5029
5094
  })
5030
5095
  )
@@ -5151,16 +5216,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5151
5216
  maxLength: 6,
5152
5217
  value: newPass,
5153
5218
  ref: function ref(input) {
5154
- return _this8.inputNewAmount = input;
5219
+ return _this9.inputNewAmount = input;
5155
5220
  },
5156
5221
  onChange: function onChange(value) {
5157
- return _this8.setPwdValue('newPass', value.target.value);
5222
+ return _this9.setPwdValue('newPass', value.target.value);
5158
5223
  },
5159
5224
  onBlur: function onBlur(value) {
5160
- return _this8.handleBlur('newPass');
5225
+ return _this9.handleBlur('newPass');
5161
5226
  },
5162
5227
  onPressEnter: function onPressEnter() {
5163
- return _this8.onPressEnterCzk('newPass');
5228
+ return _this9.onPressEnterCzk('newPass');
5164
5229
  }
5165
5230
  })
5166
5231
  )
@@ -5183,16 +5248,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5183
5248
  maxLength: 6,
5184
5249
  value: newPassConfirm,
5185
5250
  ref: function ref(input) {
5186
- return _this8.inputConfirmAmount = input;
5251
+ return _this9.inputConfirmAmount = input;
5187
5252
  },
5188
5253
  onChange: function onChange(value) {
5189
- return _this8.setPwdValue('newPassConfirm', value.target.value);
5254
+ return _this9.setPwdValue('newPassConfirm', value.target.value);
5190
5255
  },
5191
5256
  onBlur: function onBlur(value) {
5192
- return _this8.handleBlur('newPassConfirm');
5257
+ return _this9.handleBlur('newPassConfirm');
5193
5258
  },
5194
5259
  onPressEnter: function onPressEnter() {
5195
- return _this8.onPressEnterCzk('newPassConfirm');
5260
+ return _this9.onPressEnterCzk('newPassConfirm');
5196
5261
  }
5197
5262
  })
5198
5263
  )
@@ -5252,22 +5317,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5252
5317
  // onChange={this.onDjqChange}
5253
5318
  // value={currentMode && currentMode.member.cardNo}
5254
5319
  , ref: function ref(input) {
5255
- return _this8.inputdjq = input;
5320
+ return _this9.inputdjq = input;
5256
5321
  },
5257
5322
  onKeyDown: function onKeyDown(e) {
5258
5323
  if (e.keyCode == 13) {
5259
- _this8.addDjq(e.target.value);
5324
+ _this9.addDjq(e.target.value);
5260
5325
  }
5261
5326
  },
5262
5327
  onFocus: function onFocus(e) {
5263
- _this8.inputTarget = _this8.inputdjq.input;
5328
+ _this9.inputTarget = _this9.inputdjq.input;
5264
5329
  _keyboard2.default.open(function (v) {
5265
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
5266
- _this8.onDjqChange(value, true);
5267
- }, _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)();
5268
5333
  },
5269
5334
  onBlur: function onBlur(e) {
5270
- _keyboard2.default.close();_this8.inputdjq.input.value = '';
5335
+ _keyboard2.default.close();_this9.inputdjq.input.value = '';
5271
5336
  }
5272
5337
  })
5273
5338
  ),
@@ -5301,7 +5366,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5301
5366
  { className: 'col3' },
5302
5367
  _react2.default.createElement(_ticon2.default, { type: 'saomiao1', className: 'icon', onClick: this.changeScanProduct }),
5303
5368
  _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
5304
- return _this8.scanObj = scan;
5369
+ return _this9.scanObj = scan;
5305
5370
  }, onChange: this.onScanDjqResult })
5306
5371
  )
5307
5372
  ),
@@ -5312,10 +5377,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5312
5377
  'div',
5313
5378
  { className: 'djq2' },
5314
5379
  currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
5315
- if (!_this8.state.couponLight && !q.count) {
5380
+ if (!_this9.state.couponLight && !q.count) {
5316
5381
  return;
5317
5382
  }
5318
- if (_this8.state.couponLight && q.count && q.count === 1) {
5383
+ if (_this9.state.couponLight && q.count && q.count === 1) {
5319
5384
  return;
5320
5385
  }
5321
5386
  return _react2.default.createElement(
@@ -5369,7 +5434,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5369
5434
  _react2.default.createElement(
5370
5435
  'div',
5371
5436
  { className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
5372
- return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
5437
+ return q.IsEnable ? _this9.djqChecked(q, _this9.props.dto) : null;
5373
5438
  } },
5374
5439
  q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
5375
5440
  q.checked ? _react2.default.createElement(
@@ -5676,22 +5741,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5676
5741
  type: 'text',
5677
5742
  value: storageValue,
5678
5743
  onChange: function onChange(e) {
5679
- _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));
5680
5745
  },
5681
5746
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5682
- ref: function ref(_ref34) {
5683
- return _this8["inputJfdxAmount"] = _ref34;
5747
+ ref: function ref(_ref35) {
5748
+ return _this9["inputJfdxAmount"] = _ref35;
5684
5749
  },
5685
5750
  onFocus: function onFocus(e) {
5686
- _this8.inputkey = "inputJfdxAmount";
5751
+ _this9.inputkey = "inputJfdxAmount";
5687
5752
  _keyboard2.default.open(function (v) {
5688
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5689
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5690
- }, _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)();
5691
5756
  },
5692
5757
  onBlur: function onBlur(e) {
5693
5758
  _keyboard2.default.close();
5694
- _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));
5695
5760
  }
5696
5761
  })
5697
5762
  )