tplus-components-touch 3.22.2 → 3.22.6

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.
@@ -277,7 +277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
277
277
  });
278
278
  }
279
279
  if (b.lastChild) {
280
- if (bWidth < cWidth) {
280
+ // 原来bWidth < cWidth,过渡过程中右边按钮会隐藏,+20之后解决
281
+ if (bWidth < cWidth + 20) {
281
282
  b.lastChild.className = 'btns voucherMode';
282
283
  } else {
283
284
  b.lastChild.className = 'btns';
@@ -935,6 +936,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
935
936
  });
936
937
  };
937
938
 
939
+ _this2.checkOfflineEnable = function (paymode, key) {
940
+ var _ref8 = paymode || {},
941
+ paymodes = _ref8.paymodes;
942
+
943
+ var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
944
+
945
+ if (isOffline) {
946
+ if (paymodes) {
947
+ var currentPayMode = paymodes.find(function (item) {
948
+ return item.paymentType === key;
949
+ });
950
+ if (currentPayMode && !currentPayMode.offlineDisable) {
951
+ return true;
952
+ } else {
953
+ _message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u4E0D\u652F\u6301\u6B64\u7ED3\u7B97\u65B9\u5F0F');
954
+ return false;
955
+ }
956
+ }
957
+ _message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u7ED3\u7B97\u65B9\u5F0F\u6570\u636E\u9519\u8BEF');
958
+ return false;
959
+ } else {
960
+ return true;
961
+ }
962
+ };
963
+
938
964
  _this2.onTabsClick2 = function (paymode, brefund, themode, key) {
939
965
  var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
940
966
  PayStyle = _enumController$getEn7.PayStyle,
@@ -1052,6 +1078,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1052
1078
  boriginReturn = _this2$store3.boriginReturn;
1053
1079
  var noAlreadyWarn = _this2.state.noAlreadyWarn;
1054
1080
 
1081
+
1082
+ if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
1083
+
1055
1084
  if (_this2.checkModeDisabled(key, brefund, boriginReturn)) {
1056
1085
  return;
1057
1086
  }
@@ -1140,6 +1169,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1140
1169
  };
1141
1170
 
1142
1171
  _this2.handleChange = function (index, e) {
1172
+ if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
1143
1173
  var currentInput = e.target;
1144
1174
  var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
1145
1175
  if (!isNaN(e.target.value) || e.target.value == '-') {
@@ -1222,8 +1252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1222
1252
  return;
1223
1253
  }
1224
1254
 
1225
- var _ref8 = _mutantsUtil.platform || {},
1226
- isNewRetailBCPos = _ref8.isNewRetailBCPos;
1255
+ var _ref9 = _mutantsUtil.platform || {},
1256
+ isNewRetailBCPos = _ref9.isNewRetailBCPos;
1227
1257
 
1228
1258
  if (isNewRetailBCPos) {
1229
1259
  _this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
@@ -1244,8 +1274,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1244
1274
  // return ;
1245
1275
  // }
1246
1276
  _this2.store.checkCoupon(v).then(function () {
1247
- _this2.inputdjq.input.value = '';
1248
1277
  _this2.inputdjq.input.focus();
1278
+ }).finally(function () {
1279
+ setTimeout(function () {
1280
+ _this2.inputdjq.input.value = '';
1281
+ var ele = document.getElementById('djqInput');
1282
+ ele.value = '';
1283
+ }, 100);
1249
1284
  });
1250
1285
  };
1251
1286
 
@@ -1267,6 +1302,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1267
1302
  };
1268
1303
 
1269
1304
  _this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
1305
+ if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
1270
1306
  if (_this2.hotkeydebouncedPayMode == mode) {
1271
1307
  return;
1272
1308
  }
@@ -1306,6 +1342,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1306
1342
  };
1307
1343
 
1308
1344
  _this2.onHotKeyClick2 = function (index, mode, paymode, e) {
1345
+ if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
1309
1346
  if (_this2.hotkeydebouncedPayMode == mode) {
1310
1347
  return;
1311
1348
  }
@@ -1360,7 +1397,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1360
1397
  thePaymodes.forEach(function (paymodes, index) {
1361
1398
  if (paymodes.paymethodId == _this2.state.currentIndex) payIndex = index;
1362
1399
  });
1363
-
1364
1400
  _this2.setFocusAndSelectionMode(thePaymodes, payIndex);
1365
1401
  }
1366
1402
  }, 500, {
@@ -1406,7 +1442,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1406
1442
  var findIndex = currenIndex;
1407
1443
  var endCurrentMode = thePaymodes.find(function (mode, index) {
1408
1444
  findIndex++;
1409
- return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx;
1445
+ return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx && _mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType, true);
1410
1446
  });
1411
1447
  if (endCurrentMode) return { mode: endCurrentMode, index: findIndex };
1412
1448
  return null;
@@ -1647,7 +1683,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1647
1683
  } else if (MemberPoints && Number(amount) == Number(0)) {
1648
1684
  message = "兑换成功";
1649
1685
  }
1650
- window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, stores, function () {
1686
+ window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
1651
1687
  _this.handleGuestShow(5);
1652
1688
  });
1653
1689
  _this2.setState({ isXianjin: false });
@@ -1666,13 +1702,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1666
1702
  if (_this2.hasElectron === false) return;
1667
1703
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1668
1704
 
1669
- var _ref11 = dt || {},
1670
- guestshow_enable = _ref11.guestshow_enable,
1671
- guestshow_clear = _ref11.guestshow_clear,
1672
- guestshow_welcome = _ref11.guestshow_welcome,
1673
- guestshow_collect = _ref11.guestshow_collect,
1674
- guestshow_refund = _ref11.guestshow_refund,
1675
- guestshow_change = _ref11.guestshow_change;
1705
+ var _ref12 = dt || {},
1706
+ guestshow_enable = _ref12.guestshow_enable,
1707
+ guestshow_clear = _ref12.guestshow_clear,
1708
+ guestshow_welcome = _ref12.guestshow_welcome,
1709
+ guestshow_collect = _ref12.guestshow_collect,
1710
+ guestshow_refund = _ref12.guestshow_refund,
1711
+ guestshow_change = _ref12.guestshow_change;
1676
1712
 
1677
1713
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
1678
1714
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -1707,9 +1743,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1707
1743
  };
1708
1744
 
1709
1745
  _this2.handleSettle = function () {
1710
- var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
1746
+ var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
1711
1747
  var handleUserInputs = function () {
1712
- var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
1748
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
1713
1749
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1714
1750
 
1715
1751
  return _regenerator2.default.wrap(function _callee7$(_context7) {
@@ -1800,7 +1836,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1800
1836
  }));
1801
1837
 
1802
1838
  return function handleUserInputs(_x4) {
1803
- return _ref14.apply(this, arguments);
1839
+ return _ref15.apply(this, arguments);
1804
1840
  };
1805
1841
  }();
1806
1842
 
@@ -1903,7 +1939,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1903
1939
  });
1904
1940
 
1905
1941
  commit = function () {
1906
- var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
1942
+ var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
1907
1943
  var result;
1908
1944
  return _regenerator2.default.wrap(function _callee6$(_context6) {
1909
1945
  while (1) {
@@ -1977,7 +2013,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1977
2013
  }));
1978
2014
 
1979
2015
  return function commit(_x3) {
1980
- return _ref13.apply(this, arguments);
2016
+ return _ref14.apply(this, arguments);
1981
2017
  };
1982
2018
  }();
1983
2019
 
@@ -1992,13 +2028,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1992
2028
  }));
1993
2029
 
1994
2030
  return function (_x2) {
1995
- return _ref12.apply(this, arguments);
2031
+ return _ref13.apply(this, arguments);
1996
2032
  };
1997
2033
  }();
1998
2034
 
1999
2035
  _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
2000
2036
  var handleUserInputs = function () {
2001
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
2037
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
2002
2038
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2003
2039
 
2004
2040
  return _regenerator2.default.wrap(function _callee10$(_context10) {
@@ -2095,11 +2131,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2095
2131
  }));
2096
2132
 
2097
2133
  return function handleUserInputs(_x6) {
2098
- return _ref18.apply(this, arguments);
2134
+ return _ref19.apply(this, arguments);
2099
2135
  };
2100
2136
  }();
2101
2137
 
2102
- var that, curmode, promises, _ref16, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
2138
+ var that, curmode, promises, _ref17, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
2103
2139
 
2104
2140
  return _regenerator2.default.wrap(function _callee11$(_context11) {
2105
2141
  while (1) {
@@ -2108,7 +2144,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2108
2144
  that = _this2;
2109
2145
  curmode = _this2.store.paymode.currentMode;
2110
2146
  promises = [];
2111
- _ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
2147
+ _ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
2112
2148
 
2113
2149
  if (isNewRetailBCPos) {
2114
2150
  if (curmode.value > 0) {
@@ -2129,7 +2165,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2129
2165
  }
2130
2166
 
2131
2167
  commit = function () {
2132
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2168
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2133
2169
  var result;
2134
2170
  return _regenerator2.default.wrap(function _callee9$(_context9) {
2135
2171
  while (1) {
@@ -2179,7 +2215,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2179
2215
  }));
2180
2216
 
2181
2217
  return function commit(_x5) {
2182
- return _ref17.apply(this, arguments);
2218
+ return _ref18.apply(this, arguments);
2183
2219
  };
2184
2220
  }();
2185
2221
 
@@ -2230,7 +2266,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2230
2266
  };
2231
2267
 
2232
2268
  _this2.inputPwd = function () {
2233
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
2269
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
2234
2270
  var that, confirmPwd;
2235
2271
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2236
2272
  while (1) {
@@ -2246,8 +2282,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2246
2282
  // if (v !== '') {
2247
2283
  modal.destroy();
2248
2284
 
2249
- var _ref20 = that.state || {},
2250
- confirmPwd = _ref20.confirmPwd;
2285
+ var _ref21 = that.state || {},
2286
+ confirmPwd = _ref21.confirmPwd;
2251
2287
 
2252
2288
  setTimeout(function () {
2253
2289
  paymode.authCode = v;
@@ -2337,8 +2373,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2337
2373
  type: 'primary', size: 'large', onClick: function onClick() {
2338
2374
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2339
2375
 
2340
- var _ref21 = that.state || {},
2341
- confirmPwd = _ref21.confirmPwd;
2376
+ var _ref22 = that.state || {},
2377
+ confirmPwd = _ref22.confirmPwd;
2342
2378
  // if (v !== '') {
2343
2379
 
2344
2380
 
@@ -2367,7 +2403,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2367
2403
  setTimeout(function () {
2368
2404
  that['inputS' + paymode.paymethodId] && that['inputS' + paymode.paymethodId].input.focus();
2369
2405
  that.inputAmount && that.inputAmount.input.focus();
2370
- }, 200);
2406
+ }, 300);
2371
2407
  }));
2372
2408
 
2373
2409
  case 3:
@@ -2379,7 +2415,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2379
2415
  }));
2380
2416
 
2381
2417
  return function (_x7) {
2382
- return _ref19.apply(this, arguments);
2418
+ return _ref20.apply(this, arguments);
2383
2419
  };
2384
2420
  }();
2385
2421
 
@@ -2397,6 +2433,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2397
2433
  boriginReturn = _this2$store7.boriginReturn,
2398
2434
  newStyle = _this2$store7.newStyle;
2399
2435
 
2436
+
2437
+ if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
2438
+
2400
2439
  var status = false;
2401
2440
  paymode.thePaymodes.forEach(function (v) {
2402
2441
  if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
@@ -2429,8 +2468,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2429
2468
 
2430
2469
  _this2.onCzkChange = function (v) {
2431
2470
  // console.log("czk change:"+new Date().toLocaleTimeString())
2432
- var _ref22 = _mutantsUtil.platform || {},
2433
- isNewRetailBCPos = _ref22.isNewRetailBCPos;
2471
+ var _ref23 = _mutantsUtil.platform || {},
2472
+ isNewRetailBCPos = _ref23.isNewRetailBCPos;
2434
2473
 
2435
2474
  if (!isNewRetailBCPos) {
2436
2475
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -3005,20 +3044,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3005
3044
 
3006
3045
  _this2.hasElectron = hasElectron;
3007
3046
 
3008
- var _ref23 = _mutantsMicrofx.localStore.get('user') || {},
3009
- _ref23$loginInfo = _ref23.loginInfo;
3047
+ var _ref24 = _mutantsMicrofx.localStore.get('user') || {},
3048
+ _ref24$loginInfo = _ref24.loginInfo;
3010
3049
 
3011
- _ref23$loginInfo = _ref23$loginInfo === undefined ? {} : _ref23$loginInfo;
3012
- var ICCardServer = _ref23$loginInfo.ICCardServer,
3013
- ICCardPassword = _ref23$loginInfo.ICCardPassword;
3050
+ _ref24$loginInfo = _ref24$loginInfo === undefined ? {} : _ref24$loginInfo;
3051
+ var ICCardServer = _ref24$loginInfo.ICCardServer,
3052
+ ICCardPassword = _ref24$loginInfo.ICCardPassword;
3014
3053
 
3015
3054
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3016
3055
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3017
3056
  //移动端环境下,没有读取IC卡的方式。
3018
3057
 
3019
- var _ref24 = _mutantsUtil.platform || {},
3020
- isHorizontalPad = _ref24.isHorizontalPad,
3021
- isHorizontalSunMi = _ref24.isHorizontalSunMi;
3058
+ var _ref25 = _mutantsUtil.platform || {},
3059
+ isHorizontalPad = _ref25.isHorizontalPad,
3060
+ isHorizontalSunMi = _ref25.isHorizontalSunMi;
3022
3061
 
3023
3062
  _this2.isHorizontalPad = !!isHorizontalPad;
3024
3063
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3252,8 +3291,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3252
3291
  discountRetailTotalAount = _state2.discountRetailTotalAount,
3253
3292
  discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
3254
3293
 
3255
- var _ref25 = _mutantsUtil.platform || {},
3256
- isNewRetailBCPos = _ref25.isNewRetailBCPos;
3294
+ var _ref26 = _mutantsUtil.platform || {},
3295
+ isNewRetailBCPos = _ref26.isNewRetailBCPos;
3257
3296
 
3258
3297
  var _store2 = this.store,
3259
3298
  paymode = _store2.paymode,
@@ -3316,11 +3355,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3316
3355
  quantity4 = 0;
3317
3356
  var sumQuantity = 0; //数量总和的值,包括称重的。
3318
3357
 
3319
- var _ref26 = quantityDetail || {},
3320
- _ref26$buyQuantity = _ref26.buyQuantity,
3321
- buyQuantity = _ref26$buyQuantity === undefined ? 0 : _ref26$buyQuantity,
3322
- _ref26$returnQuantity = _ref26.returnQuantity,
3323
- returnQuantity = _ref26$returnQuantity === undefined ? 0 : _ref26$returnQuantity;
3358
+ var _ref27 = quantityDetail || {},
3359
+ _ref27$buyQuantity = _ref27.buyQuantity,
3360
+ buyQuantity = _ref27$buyQuantity === undefined ? 0 : _ref27$buyQuantity,
3361
+ _ref27$returnQuantity = _ref27.returnQuantity,
3362
+ returnQuantity = _ref27$returnQuantity === undefined ? 0 : _ref27$returnQuantity;
3324
3363
 
3325
3364
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3326
3365
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4680,7 +4719,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4680
4719
  ),
4681
4720
  _react2.default.createElement(
4682
4721
  'div',
4683
- { className: 'received' },
4722
+ { className: 'received receivedNumber' },
4684
4723
  _react2.default.createElement(
4685
4724
  'span',
4686
4725
  null,
@@ -4689,16 +4728,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4689
4728
  _react2.default.createElement(
4690
4729
  'span',
4691
4730
  null,
4692
- _react2.default.createElement(_input2.default, {
4731
+ _react2.default.createElement(_numKeyboard2.default, {
4693
4732
  id: 'paymentAmount',
4733
+ className: _index.hotKey.hotKeyNotFilter('input') + ' receivedInput',
4694
4734
  type: 'text',
4695
- className: _index.hotKey.hotKeyNotFilter('input'),
4696
- onChange: function onChange(event) {
4697
- _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
4735
+ style: { width: 230 },
4736
+ onChange: function onChange(value) {
4737
+ _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.balance));
4698
4738
  },
4699
4739
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
4700
- ref: function ref(_ref27) {
4701
- return _this8["inputCzkAmount"] = _ref27;
4740
+ maxLength: 12,
4741
+ precisionLength: 2,
4742
+ ref: function ref(input) {
4743
+ return _this8.inputCzkAmount = input;
4702
4744
  },
4703
4745
  onFocus: function onFocus(e) {
4704
4746
  _this8.inputkey = "inputCzkAmount";
@@ -4847,6 +4889,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4847
4889
  visible: this.state.djqVisible,
4848
4890
  maskClosable: false,
4849
4891
  onOk: this.handleDjqOk,
4892
+ destroyOnClose: true,
4850
4893
  onCancel: this.handleDjqCancel,
4851
4894
  centered: !this.isHorizontalPad ? true : false,
4852
4895
  title: Differentiate.COUPON + '支付',
@@ -4886,7 +4929,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4886
4929
  _react2.default.createElement(_input2.default, {
4887
4930
  type: 'text',
4888
4931
  placeholder: '\u626B\u63CF/\u8F93\u5165' + Differentiate.COUPON + '\u53F7\u5E76\u56DE\u8F66',
4889
- className: 'input'
4932
+ className: 'input',
4933
+ id: 'djqInput'
4890
4934
  // onChange={this.onDjqChange}
4891
4935
  // value={currentMode && currentMode.member.cardNo}
4892
4936
  , ref: function ref(input) {
@@ -4905,7 +4949,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4905
4949
  }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
4906
4950
  },
4907
4951
  onBlur: function onBlur(e) {
4908
- _keyboard2.default.close();
4952
+ _keyboard2.default.close();_this8.inputdjq.input.value = '';
4909
4953
  }
4910
4954
  })
4911
4955
  ),