tplus-components-touch 3.33.5 → 3.33.9

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.
@@ -2032,9 +2032,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2032
2032
  while (1) {
2033
2033
  switch (_context10.prev = _context10.next) {
2034
2034
  case 0:
2035
- if (!result1) {
2035
+ if (result1) {
2036
2036
  if (voucherDateTime < currentZeroTime) {
2037
- _this5.store.setVoucherDate();
2037
+ setVoucherDate();
2038
2038
  }
2039
2039
  }
2040
2040
  _context10.next = 3;
@@ -2090,7 +2090,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2090
2090
  };
2091
2091
  }();
2092
2092
 
2093
- var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit, _this2$props3, isUpdateDate, type, VoucherDate;
2093
+ var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit, _this2$props3, isUpdateDate, type, VoucherDate, setVoucherDate;
2094
2094
 
2095
2095
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2096
2096
  while (1) {
@@ -2100,16 +2100,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2100
2100
  settleDisabled: true
2101
2101
  });
2102
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);
2113
2103
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
2114
2104
  _this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
2115
2105
  isQuickPay = args === 'quickPay';
@@ -2269,11 +2259,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2269
2259
 
2270
2260
  _this2$props3 = _this2.props, isUpdateDate = _this2$props3.isUpdateDate, type = _this2$props3.type;
2271
2261
  VoucherDate = _this2.store.dto.VoucherDate;
2262
+ setVoucherDate = _this2.store.setVoucherDate;
2272
2263
 
2273
2264
 
2274
2265
  handleUserInputs(promises);
2275
2266
 
2276
- case 32:
2267
+ case 33:
2277
2268
  case 'end':
2278
2269
  return _context12.stop();
2279
2270
  }
@@ -3455,7 +3446,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3455
3446
  }, {
3456
3447
  key: 'onKeyboardChange',
3457
3448
  value: function onKeyboardChange(key) {
3449
+ var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
3450
+ PayStyle = _enumController$getEn32.PayStyle;
3451
+
3458
3452
  if (this.currentInput) {
3453
+ if (this.store.paymode.currentMode && this.store.paymode.currentMode.paymentType === PayStyle.djq) {
3454
+ return;
3455
+ }
3459
3456
  var value = _keyboard2.default.getNewValue(this.currentInput, this.currentInput.value, key, true);
3460
3457
  if (!isNaN(value) || value == '-') {
3461
3458
  this.currentInput.value = value;
@@ -3468,9 +3465,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3468
3465
  value: function renderToolbtn(mode, index) {
3469
3466
  var _this8 = this;
3470
3467
 
3471
- var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
3472
- PayIcon = _enumController$getEn32.PayIcon,
3473
- PayStyle = _enumController$getEn32.PayStyle;
3468
+ var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
3469
+ PayIcon = _enumController$getEn33.PayIcon,
3470
+ PayStyle = _enumController$getEn33.PayStyle;
3474
3471
 
3475
3472
  var isReturn = this.props.isReturn;
3476
3473
  var _store = this.store,
@@ -3542,11 +3539,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3542
3539
  value: function render() {
3543
3540
  var _this9 = this;
3544
3541
 
3545
- var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
3546
- PayIcon = _enumController$getEn33.PayIcon,
3547
- PayIcon2 = _enumController$getEn33.PayIcon2,
3548
- PayStyle = _enumController$getEn33.PayStyle,
3549
- Differentiate = _enumController$getEn33.Differentiate;
3542
+ var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
3543
+ PayIcon = _enumController$getEn34.PayIcon,
3544
+ PayIcon2 = _enumController$getEn34.PayIcon2,
3545
+ PayStyle = _enumController$getEn34.PayStyle,
3546
+ Differentiate = _enumController$getEn34.Differentiate;
3550
3547
 
3551
3548
  var _state2 = this.state,
3552
3549
  btnDissabled = _state2.btnDissabled,