tplus-components-touch 3.56.2 → 3.56.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -220,6 +220,8 @@ var _moreCzkTable = require('./moreCzkTable');
220
220
 
221
221
  var _moreCzkTable2 = _interopRequireDefault(_moreCzkTable);
222
222
 
223
+ var _tplusHardware = require('tplus-hardware');
224
+
223
225
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
224
226
 
225
227
  var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.platform.electron;
@@ -244,8 +246,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
244
246
  showSetPwdModal: false,
245
247
  prototypeVisible: false, // 优惠明细弹出框
246
248
  currentIndex: 0,
247
- connectCardStatus: false, //连接IC卡状态
248
- connectCardError: '', //连接IC卡错误后记录错误信息
249
249
  amountChanged: false,
250
250
  type: 0,
251
251
  isManualIntoAmount: (0, _tplusPoslogin.PosInitData)("IsManualIntoAmount"),
@@ -655,7 +655,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
655
655
  _enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn2.PayStyle;
656
656
 
657
657
  _this2.store.setCurrentMode(id, PayStyle.hyczk, append);
658
- _this2.connectRfCard();
658
+ _tplusHardware.rfCard.connectRfCard();
659
659
  memberId = _this2.store && _this2.store.member && _this2.store.member.ID;
660
660
  _context.t0 = memberId;
661
661
 
@@ -1703,8 +1703,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1703
1703
  that.setState({ currentIndex: index });
1704
1704
  _this2.currentInput = input;
1705
1705
  setTimeout(function () {
1706
- input.focus();
1707
- input.setSelectionRange(0, input.value.length);
1706
+ if (input) {
1707
+ input.focus();
1708
+ input.setSelectionRange(0, input.value.length);
1709
+ }
1708
1710
  }, 10);
1709
1711
  }, 200);
1710
1712
  }
@@ -3472,61 +3474,44 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3472
3474
  //对结算按钮超出的处理
3473
3475
 
3474
3476
  }, {
3475
- key: 'connectRfCard',
3476
-
3477
+ key: 'readRfCard',
3477
3478
 
3478
- //IC卡连接
3479
- value: function connectRfCard() {
3480
- var _this5 = this;
3481
3479
 
3482
- //客户端环境下,并开启了启用IC卡。
3483
- if (this.hasElectron === true && this.iCCardServer === 1) {
3484
- _mutantsMicrofx.nativeMs.setIpcRendererMethod('ConnectRfCard', null, function (ret) {
3485
- var result = {};
3486
- if (ret.status === 0) {
3487
- result = { connectCardStatus: false, connectCardError: ret.value };
3488
- } else {
3489
- result = { connectCardStatus: true, connectCardError: '' };
3490
- }
3491
- _this5.setState(result);
3492
- });
3493
- }
3494
- }
3495
3480
  //IC卡读取
3481
+ value: function () {
3482
+ var _ref28 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18() {
3483
+ var result;
3484
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
3485
+ while (1) {
3486
+ switch (_context18.prev = _context18.next) {
3487
+ case 0:
3488
+ _context18.next = 2;
3489
+ return _tplusHardware.rfCard.readRfCard();
3496
3490
 
3497
- }, {
3498
- key: 'readRfCard',
3499
- value: function readRfCard() {
3500
- var _this6 = this;
3491
+ case 2:
3492
+ result = _context18.sent;
3501
3493
 
3502
- //客户端环境下,并开启了启用IC卡。
3503
- if (this.hasElectron === true && this.iCCardServer === 1) {
3504
- var _state = this.state,
3505
- connectCardStatus = _state.connectCardStatus,
3506
- connectCardError = _state.connectCardError;
3494
+ if (result) {
3495
+ this.setState({
3496
+ czkValue: result
3497
+ });
3498
+ this.loadCzk(result);
3499
+ }
3507
3500
 
3508
- if (connectCardStatus === false) {
3509
- _message2.default.error(connectCardError ? connectCardError : '读取IC卡失败');
3510
- this.connectRfCard(); //读取失败后,重新连接一下。
3511
- return;
3512
- }
3513
- var params = { cardPsw: this.iCCardPassword, cardSec: 13, cardKm: 0 };
3514
- _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReadRfCard', (0, _extends3.default)({}, params), function (ret) {
3515
- if (ret.status === 0) {
3516
- _message2.default.error(ret.value);
3517
- _this6.connectRfCard(); //读取失败后,重新连接一下。
3518
- return;
3519
- } else if (ret.status === 1) {
3520
- // this.searchMember(ret.value);
3521
- // this.czkInput.input["value"]=ret.value;
3522
- _this6.setState({
3523
- czkValue: ret.value
3524
- });
3525
- _this6.loadCzk(ret.value);
3501
+ case 4:
3502
+ case 'end':
3503
+ return _context18.stop();
3504
+ }
3526
3505
  }
3527
- });
3506
+ }, _callee18, this);
3507
+ }));
3508
+
3509
+ function readRfCard() {
3510
+ return _ref28.apply(this, arguments);
3528
3511
  }
3529
- }
3512
+
3513
+ return readRfCard;
3514
+ }()
3530
3515
 
3531
3516
  //czk
3532
3517
 
@@ -3571,8 +3556,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3571
3556
  }, {
3572
3557
  key: 'isNoProductTip',
3573
3558
  value: function isNoProductTip(nonProductMap) {
3574
- var _ref28 = this.context.viewModel.data || {},
3575
- RetailDetails = _ref28.RetailDetails;
3559
+ var _ref29 = this.context.viewModel.data || {},
3560
+ RetailDetails = _ref29.RetailDetails;
3576
3561
 
3577
3562
  var temphtml = [];
3578
3563
  if ((0, _keys2.default)(nonProductMap).length > 0) {
@@ -3666,7 +3651,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3666
3651
  }, {
3667
3652
  key: 'renderToolbtn',
3668
3653
  value: function renderToolbtn(mode, index, bookType) {
3669
- var _this7 = this;
3654
+ var _this5 = this;
3670
3655
 
3671
3656
  var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
3672
3657
  PayIcon = _enumController$getEn34.PayIcon,
@@ -3703,7 +3688,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3703
3688
  return _react2.default.createElement(
3704
3689
  'div',
3705
3690
  { key: index + "", className: paymodeDisabled + ' ' + paymodeSelected + ' paymode hotkey_' + this.compoundHotkeysList[hotkeyIndex], onClick: function onClick() {
3706
- _this7.onTabsClick(mode.paymentType, bookType);
3691
+ _this5.onTabsClick(mode.paymentType, bookType);
3707
3692
  } },
3708
3693
  _react2.default.createElement(
3709
3694
  'div',
@@ -3740,7 +3725,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3740
3725
  }, {
3741
3726
  key: 'render',
3742
3727
  value: function render() {
3743
- var _this8 = this;
3728
+ var _this6 = this;
3744
3729
 
3745
3730
  var _enumController$getEn35 = _mutantsUtil.enumController.getEnumOj(),
3746
3731
  PayIcon = _enumController$getEn35.PayIcon,
@@ -3748,17 +3733,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3748
3733
  PayStyle = _enumController$getEn35.PayStyle,
3749
3734
  Differentiate = _enumController$getEn35.Differentiate;
3750
3735
 
3751
- var _state2 = this.state,
3752
- btnDissabled = _state2.btnDissabled,
3753
- dataSource = _state2.dataSource,
3754
- discountTotalAmount = _state2.discountTotalAmount,
3755
- discountRetailTotalAount = _state2.discountRetailTotalAount,
3756
- discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
3757
- storageValue = _state2.storageValue,
3758
- czkValue = _state2.czkValue,
3759
- newPassConfirm = _state2.newPassConfirm,
3760
- newPass = _state2.newPass,
3761
- isNotAutoFocus = _state2.isNotAutoFocus;
3736
+ var _state = this.state,
3737
+ btnDissabled = _state.btnDissabled,
3738
+ dataSource = _state.dataSource,
3739
+ discountTotalAmount = _state.discountTotalAmount,
3740
+ discountRetailTotalAount = _state.discountRetailTotalAount,
3741
+ discountPrototypeTotalAmount = _state.discountPrototypeTotalAmount,
3742
+ storageValue = _state.storageValue,
3743
+ czkValue = _state.czkValue,
3744
+ newPassConfirm = _state.newPassConfirm,
3745
+ newPass = _state.newPass,
3746
+ isNotAutoFocus = _state.isNotAutoFocus;
3762
3747
  var _store2 = this.store,
3763
3748
  paymode = _store2.paymode,
3764
3749
  brefund = _store2.brefund,
@@ -3788,9 +3773,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3788
3773
  // 单据模式
3789
3774
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
3790
3775
  if (IdbusiType == 39) {
3791
- return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0) && m.paymentType != PayStyle.hyczk;
3776
+ return !(_this6.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0) && m.paymentType != PayStyle.hyczk;
3792
3777
  }
3793
- return !(_this8.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3778
+ return !(_this6.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
3794
3779
  }) : paymode.thePaymodes;
3795
3780
  var paymodes = paymode.paymodes,
3796
3781
  settle = paymode.settle,
@@ -3843,11 +3828,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3843
3828
  quantity4 = 0;
3844
3829
  var sumQuantity = 0; //数量总和的值,包括称重的。
3845
3830
 
3846
- var _ref29 = quantityDetail || {},
3847
- _ref29$buyQuantity = _ref29.buyQuantity,
3848
- buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
3849
- _ref29$returnQuantity = _ref29.returnQuantity,
3850
- returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
3831
+ var _ref30 = quantityDetail || {},
3832
+ _ref30$buyQuantity = _ref30.buyQuantity,
3833
+ buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3834
+ _ref30$returnQuantity = _ref30.returnQuantity,
3835
+ returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3851
3836
 
3852
3837
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3853
3838
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -3871,7 +3856,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3871
3856
  return _react2.default.createElement(
3872
3857
  'div',
3873
3858
  { className: 'billingSettlement', ref: function ref(r) {
3874
- return _this8.billingSettlementDocumnet = r;
3859
+ return _this6.billingSettlementDocumnet = r;
3875
3860
  } },
3876
3861
  this.props.MemberPoints ? _react2.default.createElement(
3877
3862
  'div',
@@ -4004,9 +3989,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4004
3989
  className: (0, _classnames4.default)({ "quick": true, "quick2": type == 1 }),
4005
3990
  key: 'paymentType_' + p.paymentType,
4006
3991
  onClick: function onClick() {
4007
- _this8.btnDebounced(p.paymentType, true);
3992
+ _this6.btnDebounced(p.paymentType, true);
4008
3993
  },
4009
- disabled: productsIsEmpty || type != 1 && _this8.checkModeDisabled(p.paymentType, (_this8.context.viewModel.data.TotalTaxAmount || 0 - _this8.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn)
3994
+ disabled: productsIsEmpty || type != 1 && _this6.checkModeDisabled(p.paymentType, (_this6.context.viewModel.data.TotalTaxAmount || 0 - _this6.context.viewModel.data.OnlinePaymentAmount || 0) < 0, boriginReturn)
4010
3995
  },
4011
3996
  _react2.default.createElement(
4012
3997
  'div',
@@ -4023,7 +4008,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4023
4008
  _react2.default.createElement(
4024
4009
  _button2.default,
4025
4010
  { key: 'settle', className: (0, _classnames4.default)({ "settle": true, "settle2": type == 1, "settleStorage": true, 'primary-btn': true }), onClick: function onClick() {
4026
- _this8.btnDebounced();
4011
+ _this6.btnDebounced();
4027
4012
  }, disabled: productsIsEmpty },
4028
4013
  this.props.isMemberPoints ? '立即兑换' : this.props.isMemberPointsReturn ? '退货' : IdbusiType == 39 && _mutantsMicrofx.stores.drawerStore.thisWaitPaidAmount == 0 ? '取货' : settle.name
4029
4014
  )
@@ -4052,7 +4037,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4052
4037
  'div',
4053
4038
  null,
4054
4039
  (0, _map3.default)(paymodes, function (mode, index) {
4055
- return _this8.renderToolbtn(mode, index, 'bookPay');
4040
+ return _this6.renderToolbtn(mode, index, 'bookPay');
4056
4041
  })
4057
4042
  ),
4058
4043
  paymodes.length > carouselStart && this.paymodesCarouselList(params, paymodes, carouselStart)
@@ -4089,28 +4074,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4089
4074
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4090
4075
  className: _index.hotKey.hotKeyNotFilter(),
4091
4076
  onClick: function onClick() {
4092
- _this8.editModal(index, mode.paymentType, type != 1 ? boriginReturn : null);
4077
+ _this6.editModal(index, mode.paymentType, type != 1 ? boriginReturn : null);
4093
4078
  }, value: (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4094
4079
  className: _index.hotKey.hotKeyNotFilter(),
4095
4080
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4096
4081
  onClick: function onClick(e) {
4097
- return _this8.onHotKeyClick2(index, mode, paymode, e);
4082
+ return _this6.onHotKeyClick2(index, mode, paymode, e);
4098
4083
  },
4099
4084
  onBlur: function onBlur(e) {
4100
- return _this8.onBlur(index, e, 'bookPay');
4085
+ return _this6.onBlur(index, e, 'bookPay');
4101
4086
  },
4102
4087
  onFocus: function onFocus(e) {
4103
- return _this8.onFocusHack(index, mode, paymode, e);
4088
+ return _this6.onFocusHack(index, mode, paymode, e);
4104
4089
  },
4105
4090
  onChange: function onChange(e) {
4106
- return _this8.handleChange(index, e, 'bookPay');
4091
+ return _this6.handleChange(index, e, 'bookPay');
4107
4092
  }
4108
4093
  })
4109
4094
  ),
4110
4095
  _react2.default.createElement(
4111
4096
  'span',
4112
4097
  { className: 'minus', onClick: function onClick() {
4113
- _this8.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType, 'bookPay');
4098
+ _this6.onDelPay(index, boriginReturn && mode.boriginReturn, mode.paymentType, 'bookPay');
4114
4099
  } },
4115
4100
  _react2.default.createElement(_ticon2.default, { type: 'shanchu', className: 'minusIcon primary-color' })
4116
4101
  )
@@ -4156,7 +4141,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4156
4141
  type != 1 && themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
4157
4142
  _button2.default,
4158
4143
  { onClick: function onClick() {
4159
- _this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
4144
+ _this6.appendCzkmode(boriginReturn, 'noPlaySetPwd');
4160
4145
  }, className: 'addCard btn-border-primary' },
4161
4146
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
4162
4147
  _react2.default.createElement(
@@ -4426,7 +4411,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4426
4411
  '\u8BF7\u6DFB\u52A0\u7ED3\u7B97\u65B9\u5F0F'
4427
4412
  ),
4428
4413
  (0, _map3.default)(thePaymodes, function (mode, mindex) {
4429
- var isReturn = _this8.props.isReturn;
4414
+ var isReturn = _this6.props.isReturn;
4430
4415
 
4431
4416
  var hasSMZF = (0, _find3.default)(thePaymodes, function (m) {
4432
4417
  return m.paymentType === PayStyle.smzf;
@@ -4486,7 +4471,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4486
4471
  _react2.default.createElement(
4487
4472
  'div',
4488
4473
  { className: 'hotkey' },
4489
- _this8.isHorizontalPad ? '' : _this8.compoundHotkeysList[hotkeyIndex] || ''
4474
+ _this6.isHorizontalPad ? '' : _this6.compoundHotkeysList[hotkeyIndex] || ''
4490
4475
  )
4491
4476
  ),
4492
4477
  _react2.default.createElement(
@@ -4494,15 +4479,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4494
4479
  { className: (0, _classnames4.default)({ "content": true }) },
4495
4480
  mode.paymentType == PayStyle.hyczk || mode.paymentType == PayStyle.jfdx || mode.paymentType == PayStyle.djq ? _react2.default.createElement('input', { id: 'inputS' + index,
4496
4481
 
4497
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4498
- disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4482
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this6.compoundHotkeysList[hotkeyIndex]),
4483
+ disabled: _this6.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
4499
4484
  onClick: function onClick() {
4500
4485
  if (type != 1 && mode.paymentType == PayStyle.hyczk) {
4501
4486
  if (themodeHyczk && themodeHyczk.length === 0) {
4502
- _this8.onHotKeyClick1(mode, index, boriginReturn);
4487
+ _this6.onHotKeyClick1(mode, index, boriginReturn);
4503
4488
  }
4504
4489
  } else {
4505
- _this8.onHotKeyClick1(mode, index, boriginReturn, 'bookPay');
4490
+ _this6.onHotKeyClick1(mode, index, boriginReturn, 'bookPay');
4506
4491
  }
4507
4492
  },
4508
4493
  value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
@@ -4510,20 +4495,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4510
4495
  }), function (sum, m) {
4511
4496
  return Math.Add(sum, m.value);
4512
4497
  }, 0)) : (0, _utils.getFixedNumber)(mode.value) }) : _react2.default.createElement('input', { id: 'inputS' + index,
4513
- className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
4514
- disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this8.checkScanDisabled(mode.paymentType),
4498
+ className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this6.compoundHotkeysList[hotkeyIndex]),
4499
+ disabled: _this6.checkModeDisabled(mode.paymentType, brefund, boriginReturn) || _this6.checkScanDisabled(mode.paymentType),
4515
4500
  value: mode.exchangeRate != 1 ? mode.value2 : mode.value,
4516
4501
  onClick: function onClick(e) {
4517
- return _this8.onHotKeyClick2(index, mode, paymode, e, 'bookPay');
4502
+ return _this6.onHotKeyClick2(index, mode, paymode, e, 'bookPay');
4518
4503
  },
4519
4504
  onBlur: function onBlur(e) {
4520
- return _this8.onBlur(index, e, 'bookPay');
4505
+ return _this6.onBlur(index, e, 'bookPay');
4521
4506
  },
4522
4507
  onFocus: function onFocus(e) {
4523
- return _this8.onFocusHack(index, mode, paymode, e);
4508
+ return _this6.onFocusHack(index, mode, paymode, e);
4524
4509
  },
4525
4510
  onChange: function onChange(e) {
4526
- return _this8.handleChange(index, e, 'bookPay');
4511
+ return _this6.handleChange(index, e, 'bookPay');
4527
4512
  }
4528
4513
  })
4529
4514
  )
@@ -4576,7 +4561,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4576
4561
  type != 1 && themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === m.paymethodId && _react2.default.createElement(
4577
4562
  _button2.default,
4578
4563
  { onClick: function onClick() {
4579
- return _this8.onHotKeyClick1(mode, index, boriginReturn);
4564
+ return _this6.onHotKeyClick1(mode, index, boriginReturn);
4580
4565
  }, className: 'addCard btn-border-primary' },
4581
4566
  _react2.default.createElement(_ticon2.default, { type: 'jiahao', className: 'plus b-theme-color' }),
4582
4567
  _react2.default.createElement(
@@ -4724,79 +4709,79 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4724
4709
  placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u624B\u673A\u53F7/\u50A8\u503C\u5361\u53F7',
4725
4710
  className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
4726
4711
  onChange: function onChange(e) {
4727
- return _this8.onCzkChange(e.target.value);
4712
+ return _this6.onCzkChange(e.target.value);
4728
4713
  },
4729
4714
  defaultValue: currentMode && currentMode.storageCardNo,
4730
4715
  value: czkValue,
4731
4716
  ref: function ref(input) {
4732
- return _this8.czkInput = input;
4717
+ return _this6.czkInput = input;
4733
4718
  },
4734
4719
  onKeyDown: function () {
4735
- var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(e) {
4720
+ var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee19(e) {
4736
4721
  var time, _paymode;
4737
4722
 
4738
- return _regenerator2.default.wrap(function _callee18$(_context18) {
4723
+ return _regenerator2.default.wrap(function _callee19$(_context19) {
4739
4724
  while (1) {
4740
- switch (_context18.prev = _context18.next) {
4725
+ switch (_context19.prev = _context19.next) {
4741
4726
  case 0:
4742
4727
  if (!(e.keyCode == 13)) {
4743
- _context18.next = 14;
4728
+ _context19.next = 14;
4744
4729
  break;
4745
4730
  }
4746
4731
 
4747
4732
  time = Date.parse(new Date());
4748
4733
 
4749
- if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4750
- _context18.next = 7;
4734
+ if (!(_this6.isStorageCardInputType && time - _this6.keypressStime > 350)) {
4735
+ _context19.next = 7;
4751
4736
  break;
4752
4737
  }
4753
4738
 
4754
4739
  _message2.default.warn('储值卡不可键盘录入,请刷卡!');
4755
- _this8.keypressStime = null;
4756
- _this8.setState({
4740
+ _this6.keypressStime = null;
4741
+ _this6.setState({
4757
4742
  czkValue: null
4758
4743
  });
4759
- return _context18.abrupt('return');
4744
+ return _context19.abrupt('return');
4760
4745
 
4761
4746
  case 7:
4762
- _this8.keypressStime = null;
4763
- _context18.next = 10;
4764
- return _this8.loadCzk(e.target.value);
4747
+ _this6.keypressStime = null;
4748
+ _context19.next = 10;
4749
+ return _this6.loadCzk(e.target.value);
4765
4750
 
4766
4751
  case 10:
4767
- _paymode = _this8.store.paymode;
4752
+ _paymode = _this6.store.paymode;
4768
4753
 
4769
4754
  if (!_paymode.currentMode.storageCardNo) {
4770
- _this8.setState({
4755
+ _this6.setState({
4771
4756
  czkvalue: null
4772
4757
  });
4773
4758
  }
4774
- _context18.next = 15;
4759
+ _context19.next = 15;
4775
4760
  break;
4776
4761
 
4777
4762
  case 14:
4778
- if (!_this8.keypressStime && e.keyCode !== 8) {
4779
- _this8.keypressStime = Date.parse(new Date());
4763
+ if (!_this6.keypressStime && e.keyCode !== 8) {
4764
+ _this6.keypressStime = Date.parse(new Date());
4780
4765
  }
4781
4766
 
4782
4767
  case 15:
4783
4768
  case 'end':
4784
- return _context18.stop();
4769
+ return _context19.stop();
4785
4770
  }
4786
4771
  }
4787
- }, _callee18, _this8);
4772
+ }, _callee19, _this6);
4788
4773
  }));
4789
4774
 
4790
4775
  return function (_x13) {
4791
- return _ref30.apply(this, arguments);
4776
+ return _ref31.apply(this, arguments);
4792
4777
  };
4793
4778
  }(),
4794
4779
  onFocus: function onFocus(e) {
4795
- _this8.inputTarget = _this8.czkInput.input;
4796
- !_this8.state.prototypeVisible && _keyboard2.default.open(function (v) {
4797
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
4798
- _this8.onCzkChange(value);
4799
- }, _this8.czkKeyboardOnOk, _this8.czkKeyboardOnClose)();
4780
+ _this6.inputTarget = _this6.czkInput.input;
4781
+ !_this6.state.prototypeVisible && _keyboard2.default.open(function (v) {
4782
+ var value = _keyboard2.default.getNewValue(_this6.inputTarget, _this6.inputTarget.value, v);
4783
+ _this6.onCzkChange(value);
4784
+ }, _this6.czkKeyboardOnOk, _this6.czkKeyboardOnClose)();
4800
4785
  },
4801
4786
  onBlur: function onBlur(e) {
4802
4787
  _keyboard2.default.close();
@@ -4808,7 +4793,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4808
4793
 
4809
4794
  /* 扫描组件 */
4810
4795
  this.isHorizontalPad && _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
4811
- return _this8.scanObj = scan;
4796
+ return _this6.scanObj = scan;
4812
4797
  }, onChange: this.onScanCzkResult })
4813
4798
  ),
4814
4799
  _react2.default.createElement(
@@ -4842,22 +4827,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4842
4827
  className: _index.hotKey.hotKeyNotFilter('input'),
4843
4828
  value: storageValue,
4844
4829
  onChange: function onChange(event) {
4845
- _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4830
+ _this6.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4846
4831
  },
4847
4832
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4848
- ref: function ref(_ref31) {
4849
- return _this8["inputCzkAmount"] = _ref31;
4833
+ ref: function ref(_ref32) {
4834
+ return _this6["inputCzkAmount"] = _ref32;
4850
4835
  },
4851
4836
  onFocus: function onFocus(e) {
4852
- _this8.inputkey = "inputCzkAmount";
4837
+ _this6.inputkey = "inputCzkAmount";
4853
4838
  _keyboard2.default.open(function (v) {
4854
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
4855
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
4856
- }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
4839
+ var value = _keyboard2.default.getNewValue(_this6[_this6.inputkey].input, _this6[_this6.inputkey].input.value, v);
4840
+ _this6.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.balance));
4841
+ }, _this6.keyboardOnOk, _this6.keyboardOnClose)();
4857
4842
  },
4858
4843
  onBlur: function onBlur(e) {
4859
4844
  _keyboard2.default.close();
4860
- _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
4845
+ _this6.setCurrentModeValue((0, _utils.getFixedNumber)(_this6.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.balance));
4861
4846
  }
4862
4847
  })
4863
4848
  )
@@ -4986,16 +4971,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4986
4971
  maxLength: 6,
4987
4972
  value: newPass,
4988
4973
  ref: function ref(input) {
4989
- return _this8.inputNewAmount = input;
4974
+ return _this6.inputNewAmount = input;
4990
4975
  },
4991
4976
  onChange: function onChange(value) {
4992
- return _this8.setPwdValue('newPass', value.target.value);
4977
+ return _this6.setPwdValue('newPass', value.target.value);
4993
4978
  },
4994
4979
  onBlur: function onBlur(value) {
4995
- return _this8.handleBlur('newPass');
4980
+ return _this6.handleBlur('newPass');
4996
4981
  },
4997
4982
  onPressEnter: function onPressEnter() {
4998
- return _this8.onPressEnterCzk('newPass');
4983
+ return _this6.onPressEnterCzk('newPass');
4999
4984
  }
5000
4985
  })
5001
4986
  )
@@ -5018,16 +5003,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5018
5003
  maxLength: 6,
5019
5004
  value: newPassConfirm,
5020
5005
  ref: function ref(input) {
5021
- return _this8.inputConfirmAmount = input;
5006
+ return _this6.inputConfirmAmount = input;
5022
5007
  },
5023
5008
  onChange: function onChange(value) {
5024
- return _this8.setPwdValue('newPassConfirm', value.target.value);
5009
+ return _this6.setPwdValue('newPassConfirm', value.target.value);
5025
5010
  },
5026
5011
  onBlur: function onBlur(value) {
5027
- return _this8.handleBlur('newPassConfirm');
5012
+ return _this6.handleBlur('newPassConfirm');
5028
5013
  },
5029
5014
  onPressEnter: function onPressEnter() {
5030
- return _this8.onPressEnterCzk('newPassConfirm');
5015
+ return _this6.onPressEnterCzk('newPassConfirm');
5031
5016
  }
5032
5017
  })
5033
5018
  )
@@ -5088,22 +5073,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5088
5073
  // onChange={this.onDjqChange}
5089
5074
  // value={currentMode && currentMode.member.cardNo}
5090
5075
  , ref: function ref(input) {
5091
- return _this8.inputdjq = input;
5076
+ return _this6.inputdjq = input;
5092
5077
  },
5093
5078
  onKeyDown: function onKeyDown(e) {
5094
5079
  if (e.keyCode == 13) {
5095
- _this8.addDjq(e.target.value);
5080
+ _this6.addDjq(e.target.value);
5096
5081
  }
5097
5082
  },
5098
5083
  onFocus: function onFocus(e) {
5099
- _this8.inputTarget = _this8.inputdjq.input;
5084
+ _this6.inputTarget = _this6.inputdjq.input;
5100
5085
  _keyboard2.default.open(function (v) {
5101
- var value = _keyboard2.default.getNewValue(_this8.inputTarget, _this8.inputTarget.value, v);
5102
- _this8.onDjqChange(value, true);
5103
- }, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
5086
+ var value = _keyboard2.default.getNewValue(_this6.inputTarget, _this6.inputTarget.value, v);
5087
+ _this6.onDjqChange(value, true);
5088
+ }, _this6.djqKeyboardOnOk, _this6.djqKeyboardOnClose)();
5104
5089
  },
5105
5090
  onBlur: function onBlur(e) {
5106
- _keyboard2.default.close();_this8.inputdjq.input.value = '';
5091
+ _keyboard2.default.close();_this6.inputdjq.input.value = '';
5107
5092
  }
5108
5093
  })
5109
5094
  ),
@@ -5137,7 +5122,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5137
5122
  { className: 'col3' },
5138
5123
  _react2.default.createElement(_ticon2.default, { type: 'saomiao1', className: 'icon', onClick: this.changeScanProduct }),
5139
5124
  _react2.default.createElement(_scan2.default, { ref: function ref(scan) {
5140
- return _this8.scanObj = scan;
5125
+ return _this6.scanObj = scan;
5141
5126
  }, onChange: this.onScanDjqResult })
5142
5127
  )
5143
5128
  ),
@@ -5148,10 +5133,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5148
5133
  'div',
5149
5134
  { className: 'djq2' },
5150
5135
  currentMode && currentMode.djqs && currentMode.djqs.length > 0 ? (0, _map3.default)(currentMode.djqs || [], function (q, index) {
5151
- if (!_this8.state.couponLight && !q.count) {
5136
+ if (!_this6.state.couponLight && !q.count) {
5152
5137
  return;
5153
5138
  }
5154
- if (_this8.state.couponLight && q.count && q.count === 1) {
5139
+ if (_this6.state.couponLight && q.count && q.count === 1) {
5155
5140
  return;
5156
5141
  }
5157
5142
  return _react2.default.createElement(
@@ -5205,7 +5190,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5205
5190
  _react2.default.createElement(
5206
5191
  'div',
5207
5192
  { className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
5208
- return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
5193
+ return q.IsEnable ? _this6.djqChecked(q, _this6.props.dto) : null;
5209
5194
  } },
5210
5195
  q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
5211
5196
  q.checked ? _react2.default.createElement(
@@ -5513,22 +5498,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5513
5498
  type: 'text',
5514
5499
  value: storageValue,
5515
5500
  onChange: function onChange(e) {
5516
- _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5501
+ _this6.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5517
5502
  },
5518
5503
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5519
- ref: function ref(_ref32) {
5520
- return _this8["inputJfdxAmount"] = _ref32;
5504
+ ref: function ref(_ref33) {
5505
+ return _this6["inputJfdxAmount"] = _ref33;
5521
5506
  },
5522
5507
  onFocus: function onFocus(e) {
5523
- _this8.inputkey = "inputJfdxAmount";
5508
+ _this6.inputkey = "inputJfdxAmount";
5524
5509
  _keyboard2.default.open(function (v) {
5525
- var value = _keyboard2.default.getNewValue(_this8[_this8.inputkey].input, _this8[_this8.inputkey].input.value, v);
5526
- _this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5527
- }, _this8.keyboardOnOk, _this8.keyboardOnClose)();
5510
+ var value = _keyboard2.default.getNewValue(_this6[_this6.inputkey].input, _this6[_this6.inputkey].input.value, v);
5511
+ _this6.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5512
+ }, _this6.keyboardOnOk, _this6.keyboardOnClose)();
5528
5513
  },
5529
5514
  onBlur: function onBlur(e) {
5530
5515
  _keyboard2.default.close();
5531
- _this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5516
+ _this6.setCurrentModeValue((0, _utils.getFixedNumber)(_this6.inputJfdxAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.exchangable));
5532
5517
  }
5533
5518
  })
5534
5519
  )