tplus-components-touch 3.22.4 → 3.22.8

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.
@@ -1274,8 +1274,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1274
1274
  // return ;
1275
1275
  // }
1276
1276
  _this2.store.checkCoupon(v).then(function () {
1277
- _this2.inputdjq.input.value = '';
1278
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);
1279
1284
  });
1280
1285
  };
1281
1286
 
@@ -2398,7 +2403,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2398
2403
  setTimeout(function () {
2399
2404
  that['inputS' + paymode.paymethodId] && that['inputS' + paymode.paymethodId].input.focus();
2400
2405
  that.inputAmount && that.inputAmount.input.focus();
2401
- }, 200);
2406
+ }, 300);
2402
2407
  }));
2403
2408
 
2404
2409
  case 3:
@@ -4723,19 +4728,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4723
4728
  _react2.default.createElement(
4724
4729
  'span',
4725
4730
  null,
4726
- _react2.default.createElement(_numKeyboard2.default, {
4731
+ _react2.default.createElement(_input2.default, {
4727
4732
  id: 'paymentAmount',
4728
- className: _index.hotKey.hotKeyNotFilter('input') + ' receivedInput',
4729
4733
  type: 'text',
4730
- style: { width: 230 },
4731
- onChange: function onChange(value) {
4732
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.balance));
4734
+ className: _index.hotKey.hotKeyNotFilter('input'),
4735
+ onChange: function onChange(event) {
4736
+ _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
4733
4737
  },
4734
4738
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
4735
- maxLength: 12,
4736
- precisionLength: 2,
4737
- ref: function ref(input) {
4738
- return _this8.inputCzkAmount = input;
4739
+ ref: function ref(_ref28) {
4740
+ return _this8["inputCzkAmount"] = _ref28;
4739
4741
  },
4740
4742
  onFocus: function onFocus(e) {
4741
4743
  _this8.inputkey = "inputCzkAmount";
@@ -4884,6 +4886,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4884
4886
  visible: this.state.djqVisible,
4885
4887
  maskClosable: false,
4886
4888
  onOk: this.handleDjqOk,
4889
+ destroyOnClose: true,
4887
4890
  onCancel: this.handleDjqCancel,
4888
4891
  centered: !this.isHorizontalPad ? true : false,
4889
4892
  title: Differentiate.COUPON + '支付',
@@ -4923,7 +4926,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4923
4926
  _react2.default.createElement(_input2.default, {
4924
4927
  type: 'text',
4925
4928
  placeholder: '\u626B\u63CF/\u8F93\u5165' + Differentiate.COUPON + '\u53F7\u5E76\u56DE\u8F66',
4926
- className: 'input'
4929
+ className: 'input',
4930
+ id: 'djqInput'
4927
4931
  // onChange={this.onDjqChange}
4928
4932
  // value={currentMode && currentMode.member.cardNo}
4929
4933
  , ref: function ref(input) {
@@ -4942,7 +4946,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4942
4946
  }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
4943
4947
  },
4944
4948
  onBlur: function onBlur(e) {
4945
- _keyboard2.default.close();
4949
+ _keyboard2.default.close();_this8.inputdjq.input.value = '';
4946
4950
  }
4947
4951
  })
4948
4952
  ),
@@ -5350,8 +5354,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5350
5354
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5351
5355
  },
5352
5356
  defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5353
- ref: function ref(_ref28) {
5354
- return _this8["inputJfdxAmount"] = _ref28;
5357
+ ref: function ref(_ref29) {
5358
+ return _this8["inputJfdxAmount"] = _ref29;
5355
5359
  },
5356
5360
  onFocus: function onFocus(e) {
5357
5361
  _this8.inputkey = "inputJfdxAmount";