tplus-components-touch 3.43.1 → 3.45.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.
Files changed (80) hide show
  1. package/dist/components/billSearch/index.js +17 -40
  2. package/dist/components/billSearch/index.js.map +1 -1
  3. package/dist/components/deliverySearch/index.js +5 -1
  4. package/dist/components/deliverySearch/index.js.map +1 -1
  5. package/dist/components/hotKey/localConfig.js +13 -0
  6. package/dist/components/hotKey/localConfig.js.map +1 -1
  7. package/dist/components/inventorySearch/tab.js +6 -1
  8. package/dist/components/inventorySearch/tab.js.map +1 -1
  9. package/dist/components/loading/loadingContent.js +5 -2
  10. package/dist/components/loading/loadingContent.js.map +1 -1
  11. package/dist/components/message/index.js +4 -6
  12. package/dist/components/message/index.js.map +1 -1
  13. package/dist/components/modalWraper/index.js +16 -1
  14. package/dist/components/modalWraper/index.js.map +1 -1
  15. package/dist/components/modalWraper/style.less +6 -0
  16. package/dist/components/notification/index.js +11 -12
  17. package/dist/components/notification/index.js.map +1 -1
  18. package/dist/components/progressState/EmptyAndErrorView.js +5 -7
  19. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  20. package/dist/components/settlement/asyncModal.js +4 -1
  21. package/dist/components/settlement/asyncModal.js.map +1 -1
  22. package/dist/components/settlement/settlement.js +352 -291
  23. package/dist/components/settlement/settlement.js.map +1 -1
  24. package/dist/components/settlement/settlement.less +4 -1
  25. package/dist/components/settlement/settlementApi.js +512 -0
  26. package/dist/components/settlement/settlementApi.js.map +1 -0
  27. package/dist/components/ticon/iconfont/demo.css +539 -539
  28. package/dist/index.js +8 -3
  29. package/dist/index.js.map +1 -1
  30. package/package.json +2 -2
  31. package/dist/components/commonForm/addressPicker/index.js +0 -241
  32. package/dist/components/commonForm/addressPicker/index.js.map +0 -1
  33. package/dist/components/commonForm/autoComplete/index.js +0 -260
  34. package/dist/components/commonForm/autoComplete/index.js.map +0 -1
  35. package/dist/components/commonForm/datePicker/index.js +0 -92
  36. package/dist/components/commonForm/datePicker/index.js.map +0 -1
  37. package/dist/components/commonForm/formControl/index.js +0 -144
  38. package/dist/components/commonForm/formControl/index.js.map +0 -1
  39. package/dist/components/commonForm/inputNumber/index.js +0 -272
  40. package/dist/components/commonForm/inputNumber/index.js.map +0 -1
  41. package/dist/components/commonForm/radio/index.js +0 -132
  42. package/dist/components/commonForm/radio/index.js.map +0 -1
  43. package/dist/components/input/tplusInput/index.js +0 -81
  44. package/dist/components/input/tplusInput/index.js.map +0 -1
  45. package/dist/components/input/tplusInput/inputContent.js +0 -128
  46. package/dist/components/input/tplusInput/inputContent.js.map +0 -1
  47. package/dist/components/input/tplusInput/inputs.js +0 -151
  48. package/dist/components/input/tplusInput/inputs.js.map +0 -1
  49. package/dist/components/input/utils/index.js +0 -26
  50. package/dist/components/input/utils/index.js.map +0 -1
  51. package/dist/components/settlement/moreCzkTable/index.js +0 -156
  52. package/dist/components/settlement/moreCzkTable/index.js.map +0 -1
  53. package/dist/components/settlement/prototypeTable/index.js +0 -353
  54. package/dist/components/settlement/prototypeTable/index.js.map +0 -1
  55. package/dist/components/settlement/prototypeTable/utils.js +0 -14
  56. package/dist/components/settlement/prototypeTable/utils.js.map +0 -1
  57. package/dist/components/settlement/settlementStore.js +0 -2869
  58. package/dist/components/settlement/settlementStore.js.map +0 -1
  59. package/dist/components/settlement/utils.js +0 -249
  60. package/dist/components/settlement/utils.js.map +0 -1
  61. package/dist/components/socket/index.js +0 -221
  62. package/dist/components/socket/index.js.map +0 -1
  63. package/dist/components/spin/index.js +0 -95
  64. package/dist/components/spin/index.js.map +0 -1
  65. package/dist/components/test/index.js +0 -330
  66. package/dist/components/test/index.js.map +0 -1
  67. package/dist/components/ticon/iconfont/iconfont.js +0 -35
  68. package/dist/components/ticon/iconfont/iconfont.js.map +0 -1
  69. package/dist/components/ticon/index.js +0 -60
  70. package/dist/components/ticon/index.js.map +0 -1
  71. package/dist/components/touchScroll/index.js +0 -186
  72. package/dist/components/touchScroll/index.js.map +0 -1
  73. package/dist/components/touchTable/AuthProcess.js +0 -42
  74. package/dist/components/touchTable/AuthProcess.js.map +0 -1
  75. package/dist/components/touchTable/generateWater.js +0 -59
  76. package/dist/components/touchTable/generateWater.js.map +0 -1
  77. package/dist/components/touchTable/index.js +0 -1133
  78. package/dist/components/touchTable/index.js.map +0 -1
  79. package/dist/components/touchTable/utils.js +0 -14
  80. package/dist/components/touchTable/utils.js.map +0 -1
@@ -227,6 +227,7 @@ var hasElectron = _mutantsMicrofx.env.platform === _mutantsMicrofx.env.constant.
227
227
  var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (_React$Component) {
228
228
  (0, _inherits3.default)(Settlement, _React$Component);
229
229
 
230
+ // 复核结算方式快捷键列表
230
231
  function Settlement(props) {
231
232
  var _this3 = this;
232
233
 
@@ -269,16 +270,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
269
270
  czkValue: null,
270
271
  isInputMember: false,
271
272
  selectedRowIndex: 0,
272
- isNotAutoFocus: true
273
- // 复核结算方式快捷键列表
274
- };
273
+ isNotAutoFocus: true };
275
274
  _this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
276
275
  return key.toLocaleUpperCase();
277
276
  });
278
277
  _this2.hotkeydebounced = null;
279
278
  _this2.hotkeydebouncedPayMode = "";
279
+ _this2.voucherRunningFast = false;
280
280
  _this2.currentInput = null;
281
281
 
282
+ _this2.getIsReturn = function () {
283
+ var dataModal = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data;
284
+ return dataModal.IdbusiType === 35 || dataModal.IdbusiType === 40; //40预售退货类型。
285
+ };
286
+
287
+ _this2.getBoriginReturn = function () {
288
+ var boriginReturn = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && JSON.getCellValue(_this2.context.viewModel.data, "IsOriginalReturn");
289
+ return boriginReturn || false;
290
+ };
291
+
292
+ _this2.getNotBoriginReturn = function () {
293
+ var isReturn = _this2.getIsReturn();
294
+ var boriginReturn = _this2.getBoriginReturn();
295
+ return isReturn && !boriginReturn;
296
+ };
297
+
282
298
  _this2.resizeSettlementToolBtns = function () {
283
299
  var newStyle = _this2.store.newStyle;
284
300
  var isMemberStorePage = _this2.props.isMemberStorePage;
@@ -413,14 +429,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
413
429
  _this2.handleGuestShow(amount < 0 ? 2 : 3, amount);
414
430
  setTimeout(function () {
415
431
  _this2.handleDefault();
416
- // // 单据模式 临时性获取第一个结算方式焦点
417
- // // document.querySelector('.modeItem:nth-child(1) .content input').focus()
418
432
  var _this2$store = _this2.store,
419
433
  paymode = _this2$store.paymode,
420
434
  brefund = _this2$store.brefund,
421
435
  newStyle = _this2$store.newStyle;
422
436
 
423
- var boriginReturn = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && JSON.getCellValue(_this2.context.viewModel.data, "IsOriginalReturn");
437
+ var boriginReturn = _this2.getBoriginReturn();
424
438
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
425
439
  return !(_this2.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
426
440
  }) : paymode.thePaymodes;
@@ -632,36 +646,37 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
632
646
 
633
647
  _this2.showCzkModal = function () {
634
648
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, append) {
635
- var _enumController$getEn2, PayStyle, _ref2, isInputMember, memberdata1;
649
+ var _ref2, isInputMember, _enumController$getEn2, PayStyle, ctMode, memberId, returnType, memberdata1;
636
650
 
637
651
  return _regenerator2.default.wrap(function _callee$(_context) {
638
652
  while (1) {
639
653
  switch (_context.prev = _context.next) {
640
654
  case 0:
641
- _this2.connectRfCard();
655
+ _ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
642
656
  _enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn2.PayStyle;
657
+ ctMode = _this2.store && _this2.store.paymode && _this2.store.paymode.currentMode;
658
+ memberId = ctMode && ctMode.memberId;
659
+ returnType = _this2.getNotBoriginReturn();
643
660
 
661
+ _this2.connectRfCard();
644
662
  _this2.store.setCurrentMode(id, PayStyle.hyczk, append);
645
- _ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
646
- _context.t0 = isInputMember && _this2.store.paymode.currentMode.memberId;
663
+ _context.t0 = isInputMember && memberId;
647
664
 
648
665
  if (!_context.t0) {
649
- _context.next = 9;
666
+ _context.next = 12;
650
667
  break;
651
668
  }
652
669
 
653
- _context.next = 8;
654
- return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
670
+ _context.next = 11;
671
+ return _this2.store.updateCurrentMode(memberId, returnType);
655
672
 
656
- case 8:
673
+ case 11:
657
674
  _context.t0 = _context.sent;
658
675
 
659
- case 9:
676
+ case 12:
660
677
  memberdata1 = _context.t0;
661
678
 
662
- _this2.setState({
663
- czkVisible: true
664
- });
679
+ _this2.setState({ czkVisible: true });
665
680
  if (memberdata1 && memberdata1.length === 1) {
666
681
  _this2.handleCzkMoreData(true);
667
682
  _this2.store.handleCzkData(memberdata1[0]);
@@ -677,7 +692,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
677
692
  }, 300);
678
693
  }
679
694
 
680
- case 12:
695
+ case 15:
681
696
  case 'end':
682
697
  return _context.stop();
683
698
  }
@@ -721,7 +736,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
721
736
  };
722
737
 
723
738
  _this2.handleCzkData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
724
- var _enumController$getEn3, PayStyle;
739
+ var _enumController$getEn3, PayStyle, returnType;
725
740
 
726
741
  return _regenerator2.default.wrap(function _callee2$(_context2) {
727
742
  while (1) {
@@ -733,43 +748,44 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
733
748
  _enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
734
749
 
735
750
  if (_this2.store.paymode.currentMode.storageCardNo) {
736
- _context2.next = 5;
751
+ _context2.next = 6;
737
752
  break;
738
753
  }
739
754
 
740
- _context2.next = 5;
741
- return _this2.store.loadCzk(_this2.czkInput.input.value);
755
+ returnType = _this2.getNotBoriginReturn();
756
+ _context2.next = 6;
757
+ return _this2.store.loadCzk(_this2.czkInput.input.value, returnType);
742
758
 
743
- case 5:
759
+ case 6:
744
760
  if (_this2.store.paymode.currentMode.storageCardNo) {
745
- _context2.next = 8;
761
+ _context2.next = 9;
746
762
  break;
747
763
  }
748
764
 
749
765
  _message2.default.error("请录入储值卡!");
750
766
  return _context2.abrupt('return');
751
767
 
752
- case 8:
768
+ case 9:
753
769
  if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
754
770
  return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.storageCardNo == _this2.store.paymode.currentMode.storageCardNo;
755
771
  })) {
756
- _context2.next = 11;
772
+ _context2.next = 12;
757
773
  break;
758
774
  }
759
775
 
760
776
  _message2.default.error("该储值卡已使用。");
761
777
  return _context2.abrupt('return');
762
778
 
763
- case 11:
779
+ case 12:
764
780
  if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
765
- _context2.next = 14;
781
+ _context2.next = 15;
766
782
  break;
767
783
  }
768
784
 
769
785
  _message2.default.error("实收金额应等于应收金额。");
770
786
  return _context2.abrupt('return');
771
787
 
772
- case 14:
788
+ case 15:
773
789
 
774
790
  _this2.setState({
775
791
  czkVisible: false,
@@ -780,7 +796,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
780
796
  _this2.store.paymode.calcMemberBalance();
781
797
  _this2.handleCzk();
782
798
 
783
- case 18:
799
+ case 19:
784
800
  case 'end':
785
801
  return _context2.stop();
786
802
  }
@@ -1008,11 +1024,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1008
1024
  }, 200);
1009
1025
 
1010
1026
  // TODO: 测试优惠券支付
1011
-
1012
- var _ref10 = _mutantsUtil.platform || {},
1013
- isNewRetailBCPos = _ref10.isNewRetailBCPos;
1014
-
1015
- if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
1027
+ if (!_this2.store.paymode.currentMode.boriginReturn) {
1016
1028
  _this2.store.getCouponList();
1017
1029
  }
1018
1030
  };
@@ -1094,8 +1106,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1094
1106
  };
1095
1107
 
1096
1108
  _this2.checkOfflineEnable = function (paymode, key) {
1097
- var _ref11 = paymode || {},
1098
- paymodes = _ref11.paymodes;
1109
+ var _ref10 = paymode || {},
1110
+ paymodes = _ref10.paymodes;
1099
1111
 
1100
1112
  var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
1101
1113
 
@@ -1354,10 +1366,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1354
1366
  };
1355
1367
 
1356
1368
  _this2.setCurrentModeValue = function (val, max) {
1369
+ var returnType = _this2.getNotBoriginReturn();
1370
+
1357
1371
  var _enumController$getEn13 = _mutantsUtil.enumController.getEnumOj(),
1358
1372
  PayStyle = _enumController$getEn13.PayStyle;
1359
1373
 
1360
- var reg = /^[\d.]+$/g;
1374
+ var reg = returnType ? /^[\d.-]+$/g : /^[\d.]+$/g;
1361
1375
  if (_this2.store.paymode.currentMode.paymentType === PayStyle.hyczk || _this2.store.paymode.currentMode.paymentType === PayStyle.jfdx) {
1362
1376
  if (!val) {
1363
1377
  _this2.setState({
@@ -1446,15 +1460,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1446
1460
  _message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
1447
1461
  return;
1448
1462
  }
1449
-
1450
- var _ref12 = _mutantsUtil.platform || {},
1451
- isNewRetailBCPos = _ref12.isNewRetailBCPos;
1452
-
1453
- if (isNewRetailBCPos) {
1454
- _this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
1455
- } else {
1456
- _this2.store.paymode.calcDjqValue(q);
1457
- }
1463
+ _this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
1458
1464
  // this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
1459
1465
  // this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
1460
1466
  };
@@ -1484,15 +1490,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1484
1490
  return;
1485
1491
  }
1486
1492
  _this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
1487
- var memberdata1;
1493
+ var returnType, memberdata1;
1488
1494
  return _regenerator2.default.wrap(function _callee5$(_context5) {
1489
1495
  while (1) {
1490
1496
  switch (_context5.prev = _context5.next) {
1491
1497
  case 0:
1492
- _context5.next = 2;
1493
- return _this2.store.loadCzk(v);
1498
+ returnType = _this2.getNotBoriginReturn();
1499
+ _context5.next = 3;
1500
+ return _this2.store.loadCzk(v, returnType);
1494
1501
 
1495
- case 2:
1502
+ case 3:
1496
1503
  memberdata1 = _context5.sent;
1497
1504
 
1498
1505
  if (memberdata1 && memberdata1.length === 1) {
@@ -1509,7 +1516,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1509
1516
  });
1510
1517
  }
1511
1518
 
1512
- case 4:
1519
+ case 5:
1513
1520
  case 'end':
1514
1521
  return _context5.stop();
1515
1522
  }
@@ -1615,8 +1622,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1615
1622
  _this2.hotkeydebounced = null;
1616
1623
  }
1617
1624
  _this2.hotkeydebounced = (0, _debounce3.default)(function () {
1618
- // let { type, amount, totalVariety, totalQuantity, isReturn, quantityDetail,memberDisabled } = this.props
1619
- var boriginReturn = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && JSON.getCellValue(_this2.context.viewModel.data, "IsOriginalReturn");
1625
+ var boriginReturn = _this2.getBoriginReturn();
1620
1626
  var thePaymodes = newStyle ? (0, _filter3.default)(paymode.thePaymodes, function (m) {
1621
1627
  return !(_this2.checkModeDisabled(m.paymentType, brefund, boriginReturn) && parseFloat(m.value) == 0);
1622
1628
  }) : paymode.thePaymodes;
@@ -1625,7 +1631,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1625
1631
  if (!notsettle && !_this2.checkSettleDisabled(paymode, thePaymodes)) {
1626
1632
  _this2.handleSettle();
1627
1633
  } else if ((thePaymodes || []).length > 0) {
1628
-
1629
1634
  // 根据currentIndex = paymethodeId 获取当前支付方式位置
1630
1635
  var payIndex = -1;
1631
1636
  thePaymodes.forEach(function (paymodes, index) {
@@ -1817,7 +1822,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1817
1822
  };
1818
1823
 
1819
1824
  _this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
1820
- var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, _this2$store6, getSettleGift, isFull, type, resp1;
1825
+ var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, isFull, resp1;
1821
1826
 
1822
1827
  return _regenerator2.default.wrap(function _callee8$(_context8) {
1823
1828
  while (1) {
@@ -1877,31 +1882,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1877
1882
  }
1878
1883
  };
1879
1884
 
1880
- _this2$store6 = _this2.store, getSettleGift = _this2$store6.getSettleGift, isFull = _this2$store6.isFull;
1881
- type = _this2.props.type;
1882
- resp1 = false;
1883
-
1884
- if (!(type !== 1)) {
1885
- _context8.next = 20;
1886
- break;
1887
- }
1888
-
1889
- _context8.prev = 11;
1890
- _context8.next = 14;
1891
- return getSettleGift();
1885
+ isFull = _this2.store.isFull;
1886
+ _context8.next = 10;
1887
+ return _this2.settleGiftOpenedInRunningFast();
1892
1888
 
1893
- case 14:
1889
+ case 10:
1894
1890
  resp1 = _context8.sent;
1895
- _context8.next = 20;
1896
- break;
1897
-
1898
- case 17:
1899
- _context8.prev = 17;
1900
- _context8.t0 = _context8['catch'](11);
1901
-
1902
- console.log("获取支付礼包getSettleGift失败");
1903
1891
 
1904
- case 20:
1905
1892
 
1906
1893
  setTimeout(function () {
1907
1894
  if (window.__loadingModal) {
@@ -1935,25 +1922,80 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1935
1922
  _this2.cancelState();
1936
1923
  }, 0);
1937
1924
 
1938
- case 21:
1925
+ case 12:
1939
1926
  case 'end':
1940
1927
  return _context8.stop();
1941
1928
  }
1942
1929
  }
1943
- }, _callee8, _this3, [[11, 17]]);
1930
+ }, _callee8, _this3);
1931
+ }));
1932
+ _this2.settleGiftOpenedInRunningFast = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9() {
1933
+ var resp, isCheckGift, vocherPayGift, getSettleGift, type;
1934
+ return _regenerator2.default.wrap(function _callee9$(_context9) {
1935
+ while (1) {
1936
+ switch (_context9.prev = _context9.next) {
1937
+ case 0:
1938
+ resp = false;
1939
+ isCheckGift = true;
1940
+
1941
+ if (_this2.voucherRunningFast) {
1942
+ vocherPayGift = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherPayGift');
1943
+
1944
+ if (!vocherPayGift || vocherPayGift == 'false') {
1945
+ isCheckGift = false;
1946
+ }
1947
+ }
1948
+
1949
+ if (!isCheckGift) {
1950
+ _context9.next = 16;
1951
+ break;
1952
+ }
1953
+
1954
+ getSettleGift = _this2.store.getSettleGift;
1955
+ type = _this2.props.type;
1956
+
1957
+ if (!(type != 1)) {
1958
+ _context9.next = 16;
1959
+ break;
1960
+ }
1961
+
1962
+ _context9.prev = 7;
1963
+ _context9.next = 10;
1964
+ return getSettleGift();
1965
+
1966
+ case 10:
1967
+ resp = _context9.sent;
1968
+ _context9.next = 16;
1969
+ break;
1970
+
1971
+ case 13:
1972
+ _context9.prev = 13;
1973
+ _context9.t0 = _context9['catch'](7);
1974
+
1975
+ console.log("获取支付礼包getSettleGift失败");
1976
+
1977
+ case 16:
1978
+ return _context9.abrupt('return', resp);
1979
+
1980
+ case 17:
1981
+ case 'end':
1982
+ return _context9.stop();
1983
+ }
1984
+ }
1985
+ }, _callee9, _this3, [[7, 13]]);
1944
1986
  }));
1945
1987
 
1946
1988
  _this2.handleGuestShow = function (dtype, value) {
1947
1989
  if (_this2.hasElectron === false) return;
1948
1990
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1949
1991
 
1950
- var _ref16 = dt || {},
1951
- guestshow_enable = _ref16.guestshow_enable,
1952
- guestshow_clear = _ref16.guestshow_clear,
1953
- guestshow_welcome = _ref16.guestshow_welcome,
1954
- guestshow_collect = _ref16.guestshow_collect,
1955
- guestshow_refund = _ref16.guestshow_refund,
1956
- guestshow_change = _ref16.guestshow_change;
1992
+ var _ref15 = dt || {},
1993
+ guestshow_enable = _ref15.guestshow_enable,
1994
+ guestshow_clear = _ref15.guestshow_clear,
1995
+ guestshow_welcome = _ref15.guestshow_welcome,
1996
+ guestshow_collect = _ref15.guestshow_collect,
1997
+ guestshow_refund = _ref15.guestshow_refund,
1998
+ guestshow_change = _ref15.guestshow_change;
1957
1999
 
1958
2000
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
1959
2001
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -1988,115 +2030,115 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1988
2030
  };
1989
2031
 
1990
2032
  _this2.handleSettle = function () {
1991
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
2033
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
1992
2034
  var handleUserInputs = function () {
1993
- var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
2035
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
1994
2036
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1995
2037
 
1996
- return _regenerator2.default.wrap(function _callee10$(_context10) {
2038
+ return _regenerator2.default.wrap(function _callee11$(_context11) {
1997
2039
  while (1) {
1998
- switch (_context10.prev = _context10.next) {
2040
+ switch (_context11.prev = _context11.next) {
1999
2041
  case 0:
2000
2042
  results = [];
2001
- _context10.prev = 1;
2043
+ _context11.prev = 1;
2002
2044
  _iteratorNormalCompletion = true;
2003
2045
  _didIteratorError = false;
2004
2046
  _iteratorError = undefined;
2005
- _context10.prev = 5;
2047
+ _context11.prev = 5;
2006
2048
  _iterator = (0, _getIterator3.default)(promises);
2007
2049
 
2008
2050
  case 7:
2009
2051
  if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
2010
- _context10.next = 16;
2052
+ _context11.next = 16;
2011
2053
  break;
2012
2054
  }
2013
2055
 
2014
2056
  p = _step.value;
2015
- _context10.next = 11;
2057
+ _context11.next = 11;
2016
2058
  return p;
2017
2059
 
2018
2060
  case 11:
2019
- _result = _context10.sent;
2061
+ _result = _context11.sent;
2020
2062
 
2021
2063
  results.push(_result);
2022
2064
 
2023
2065
  case 13:
2024
2066
  _iteratorNormalCompletion = true;
2025
- _context10.next = 7;
2067
+ _context11.next = 7;
2026
2068
  break;
2027
2069
 
2028
2070
  case 16:
2029
- _context10.next = 22;
2071
+ _context11.next = 22;
2030
2072
  break;
2031
2073
 
2032
2074
  case 18:
2033
- _context10.prev = 18;
2034
- _context10.t0 = _context10['catch'](5);
2075
+ _context11.prev = 18;
2076
+ _context11.t0 = _context11['catch'](5);
2035
2077
  _didIteratorError = true;
2036
- _iteratorError = _context10.t0;
2078
+ _iteratorError = _context11.t0;
2037
2079
 
2038
2080
  case 22:
2039
- _context10.prev = 22;
2040
- _context10.prev = 23;
2081
+ _context11.prev = 22;
2082
+ _context11.prev = 23;
2041
2083
 
2042
2084
  if (!_iteratorNormalCompletion && _iterator.return) {
2043
2085
  _iterator.return();
2044
2086
  }
2045
2087
 
2046
2088
  case 25:
2047
- _context10.prev = 25;
2089
+ _context11.prev = 25;
2048
2090
 
2049
2091
  if (!_didIteratorError) {
2050
- _context10.next = 28;
2092
+ _context11.next = 28;
2051
2093
  break;
2052
2094
  }
2053
2095
 
2054
2096
  throw _iteratorError;
2055
2097
 
2056
2098
  case 28:
2057
- return _context10.finish(25);
2099
+ return _context11.finish(25);
2058
2100
 
2059
2101
  case 29:
2060
- return _context10.finish(22);
2102
+ return _context11.finish(22);
2061
2103
 
2062
2104
  case 30:
2063
2105
  window.__loadingModal = (0, _utils.openLoadingModal)();
2064
- _context10.next = 33;
2106
+ _context11.next = 33;
2065
2107
  return commit(results);
2066
2108
 
2067
2109
  case 33:
2068
- _context10.next = 37;
2110
+ _context11.next = 37;
2069
2111
  break;
2070
2112
 
2071
2113
  case 35:
2072
- _context10.prev = 35;
2073
- _context10.t1 = _context10['catch'](1);
2114
+ _context11.prev = 35;
2115
+ _context11.t1 = _context11['catch'](1);
2074
2116
 
2075
2117
  case 37:
2076
2118
  case 'end':
2077
- return _context10.stop();
2119
+ return _context11.stop();
2078
2120
  }
2079
2121
  }
2080
- }, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2122
+ }, _callee11, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
2081
2123
  }));
2082
2124
 
2083
2125
  return function handleUserInputs(_x6) {
2084
- return _ref19.apply(this, arguments);
2126
+ return _ref18.apply(this, arguments);
2085
2127
  };
2086
2128
  }();
2087
2129
 
2088
- var _enumController$getEn21, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2130
+ var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
2089
2131
 
2090
- return _regenerator2.default.wrap(function _callee11$(_context11) {
2132
+ return _regenerator2.default.wrap(function _callee12$(_context12) {
2091
2133
  while (1) {
2092
- switch (_context11.prev = _context11.next) {
2134
+ switch (_context12.prev = _context12.next) {
2093
2135
  case 0:
2094
2136
  _this2.setState({
2095
2137
  settleDisabled: true
2096
2138
  });
2097
2139
  console.log("settlement.handleSettle开始执行,参数:", +args);
2098
2140
  _enumController$getEn21 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn21.PayStyle;
2099
- _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
2141
+ _this2$store6 = _this2.store, paymode = _this2$store6.paymode, brefund = _this2$store6.brefund, boriginReturn = _this2$store6.boriginReturn, newStyle = _this2$store6.newStyle;
2100
2142
  isQuickPay = args === 'quickPay';
2101
2143
  that = _this2;
2102
2144
  status = false;
@@ -2111,7 +2153,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2111
2153
  });
2112
2154
 
2113
2155
  if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
2114
- _context11.next = 13;
2156
+ _context12.next = 13;
2115
2157
  break;
2116
2158
  }
2117
2159
 
@@ -2119,11 +2161,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2119
2161
  _this2.setState({
2120
2162
  settleDisabled: false
2121
2163
  });
2122
- return _context11.abrupt('return');
2164
+ return _context12.abrupt('return');
2123
2165
 
2124
2166
  case 13:
2125
2167
  if (!(args !== "zero" && !newStyle)) {
2126
- _context11.next = 19;
2168
+ _context12.next = 19;
2127
2169
  break;
2128
2170
  }
2129
2171
 
@@ -2132,7 +2174,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2132
2174
  });
2133
2175
 
2134
2176
  if (!zeromode) {
2135
- _context11.next = 19;
2177
+ _context12.next = 19;
2136
2178
  break;
2137
2179
  }
2138
2180
 
@@ -2140,7 +2182,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2140
2182
  settleDisabled: false
2141
2183
  });
2142
2184
  _message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
2143
- return _context11.abrupt('return');
2185
+ return _context12.abrupt('return');
2144
2186
 
2145
2187
  case 19:
2146
2188
  promises = [];
@@ -2149,14 +2191,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2149
2191
  }) : paymode.thePaymodes, 'orderBy');
2150
2192
 
2151
2193
  if (!isQuickPay) {
2152
- _context11.next = 27;
2194
+ _context12.next = 27;
2153
2195
  break;
2154
2196
  }
2155
2197
 
2156
2198
  quickmode = thePaymodes[0];
2157
2199
 
2158
2200
  if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
2159
- _context11.next = 27;
2201
+ _context12.next = 27;
2160
2202
  break;
2161
2203
  }
2162
2204
 
@@ -2164,7 +2206,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2164
2206
  settleDisabled: false
2165
2207
  });
2166
2208
  _message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
2167
- return _context11.abrupt('return');
2209
+ return _context12.abrupt('return');
2168
2210
 
2169
2211
  case 27:
2170
2212
  (0, _forEach3.default)(thePaymodes, function (mode) {
@@ -2174,27 +2216,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2174
2216
  });
2175
2217
 
2176
2218
  commit = function () {
2177
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2219
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
2178
2220
  var result;
2179
- return _regenerator2.default.wrap(function _callee9$(_context9) {
2221
+ return _regenerator2.default.wrap(function _callee10$(_context10) {
2180
2222
  while (1) {
2181
- switch (_context9.prev = _context9.next) {
2223
+ switch (_context10.prev = _context10.next) {
2182
2224
  case 0:
2183
- _context9.next = 2;
2225
+ _context10.next = 2;
2184
2226
  return _this2.store.commit(_this2.props.bTest);
2185
2227
 
2186
2228
  case 2:
2187
- result = _context9.sent;
2229
+ result = _context10.sent;
2188
2230
 
2189
2231
  if (!(result === true)) {
2190
- _context9.next = 8;
2232
+ _context10.next = 8;
2191
2233
  break;
2192
2234
  }
2193
2235
 
2194
2236
  //成功
2195
2237
  that.settleSuccess();
2196
2238
  _promise2.default.resolve();
2197
- _context9.next = 23;
2239
+ _context10.next = 23;
2198
2240
  break;
2199
2241
 
2200
2242
  case 8:
@@ -2211,24 +2253,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2211
2253
  }, 0);
2212
2254
 
2213
2255
  if (!(result && (result.Code || result.code))) {
2214
- _context9.next = 20;
2256
+ _context10.next = 20;
2215
2257
  break;
2216
2258
  }
2217
2259
 
2218
- _context9.t0 = result.Code || result.code;
2219
- _context9.next = _context9.t0 === 'RE_Settle_UnReturn' ? 14 : _context9.t0 === 'ECONNABORTED' ? 18 : 20;
2260
+ _context10.t0 = result.Code || result.code;
2261
+ _context10.next = _context10.t0 === 'RE_Settle_UnReturn' ? 14 : _context10.t0 === 'ECONNABORTED' ? 18 : 20;
2220
2262
  break;
2221
2263
 
2222
2264
  case 14:
2223
2265
  console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
2224
2266
  _this2.props.clearVoucherData && _this2.props.clearVoucherData();
2225
2267
  _this2.cancelState();
2226
- return _context9.abrupt('break', 20);
2268
+ return _context10.abrupt('break', 20);
2227
2269
 
2228
2270
  case 18:
2229
2271
  //error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
2230
2272
  result.message.indexOf('timeout') > -1 && that.settleUnReturn();
2231
- return _context9.abrupt('break', 20);
2273
+ return _context10.abrupt('break', 20);
2232
2274
 
2233
2275
  case 20:
2234
2276
  if (isQuickPay) {
@@ -2236,19 +2278,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2236
2278
  that.cancelState();
2237
2279
  }
2238
2280
 
2239
- _context9.next = 23;
2281
+ _context10.next = 23;
2240
2282
  return _promise2.default.reject();
2241
2283
 
2242
2284
  case 23:
2243
2285
  case 'end':
2244
- return _context9.stop();
2286
+ return _context10.stop();
2245
2287
  }
2246
2288
  }
2247
- }, _callee9, _this3);
2289
+ }, _callee10, _this3);
2248
2290
  }));
2249
2291
 
2250
2292
  return function commit(_x5) {
2251
- return _ref18.apply(this, arguments);
2293
+ return _ref17.apply(this, arguments);
2252
2294
  };
2253
2295
  }();
2254
2296
 
@@ -2256,102 +2298,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2256
2298
 
2257
2299
  case 30:
2258
2300
  case 'end':
2259
- return _context11.stop();
2301
+ return _context12.stop();
2260
2302
  }
2261
2303
  }
2262
- }, _callee11, _this3);
2304
+ }, _callee12, _this3);
2263
2305
  }));
2264
2306
 
2265
2307
  return function (_x4) {
2266
- return _ref17.apply(this, arguments);
2308
+ return _ref16.apply(this, arguments);
2267
2309
  };
2268
2310
  }();
2269
2311
 
2270
- _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2312
+ _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2271
2313
  var handleUserInputs = function () {
2272
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2314
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2273
2315
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2274
2316
 
2275
- return _regenerator2.default.wrap(function _callee13$(_context13) {
2317
+ return _regenerator2.default.wrap(function _callee14$(_context14) {
2276
2318
  while (1) {
2277
- switch (_context13.prev = _context13.next) {
2319
+ switch (_context14.prev = _context14.next) {
2278
2320
  case 0:
2279
2321
  results = [];
2280
- _context13.prev = 1;
2322
+ _context14.prev = 1;
2281
2323
  _iteratorNormalCompletion2 = true;
2282
2324
  _didIteratorError2 = false;
2283
2325
  _iteratorError2 = undefined;
2284
- _context13.prev = 5;
2326
+ _context14.prev = 5;
2285
2327
  _iterator2 = (0, _getIterator3.default)(promises);
2286
2328
 
2287
2329
  case 7:
2288
2330
  if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
2289
- _context13.next = 16;
2331
+ _context14.next = 16;
2290
2332
  break;
2291
2333
  }
2292
2334
 
2293
2335
  p = _step2.value;
2294
- _context13.next = 11;
2336
+ _context14.next = 11;
2295
2337
  return p;
2296
2338
 
2297
2339
  case 11:
2298
- _result2 = _context13.sent;
2340
+ _result2 = _context14.sent;
2299
2341
 
2300
2342
  results.push(_result2);
2301
2343
 
2302
2344
  case 13:
2303
2345
  _iteratorNormalCompletion2 = true;
2304
- _context13.next = 7;
2346
+ _context14.next = 7;
2305
2347
  break;
2306
2348
 
2307
2349
  case 16:
2308
- _context13.next = 22;
2350
+ _context14.next = 22;
2309
2351
  break;
2310
2352
 
2311
2353
  case 18:
2312
- _context13.prev = 18;
2313
- _context13.t0 = _context13['catch'](5);
2354
+ _context14.prev = 18;
2355
+ _context14.t0 = _context14['catch'](5);
2314
2356
  _didIteratorError2 = true;
2315
- _iteratorError2 = _context13.t0;
2357
+ _iteratorError2 = _context14.t0;
2316
2358
 
2317
2359
  case 22:
2318
- _context13.prev = 22;
2319
- _context13.prev = 23;
2360
+ _context14.prev = 22;
2361
+ _context14.prev = 23;
2320
2362
 
2321
2363
  if (!_iteratorNormalCompletion2 && _iterator2.return) {
2322
2364
  _iterator2.return();
2323
2365
  }
2324
2366
 
2325
2367
  case 25:
2326
- _context13.prev = 25;
2368
+ _context14.prev = 25;
2327
2369
 
2328
2370
  if (!_didIteratorError2) {
2329
- _context13.next = 28;
2371
+ _context14.next = 28;
2330
2372
  break;
2331
2373
  }
2332
2374
 
2333
2375
  throw _iteratorError2;
2334
2376
 
2335
2377
  case 28:
2336
- return _context13.finish(25);
2378
+ return _context14.finish(25);
2337
2379
 
2338
2380
  case 29:
2339
- return _context13.finish(22);
2381
+ return _context14.finish(22);
2340
2382
 
2341
2383
  case 30:
2342
- _context13.next = 32;
2384
+ _context14.next = 32;
2343
2385
  return commit(results);
2344
2386
 
2345
2387
  case 32:
2346
- _context13.next = 37;
2388
+ _context14.next = 37;
2347
2389
  break;
2348
2390
 
2349
2391
  case 34:
2350
- _context13.prev = 34;
2351
- _context13.t1 = _context13['catch'](1);
2392
+ _context14.prev = 34;
2393
+ _context14.t1 = _context14['catch'](1);
2352
2394
 
2353
- if (_context13.t1 != "cancelpwd") {
2354
- _message2.default.error(_context13.t1);
2395
+ if (_context14.t1 != "cancelpwd") {
2396
+ _message2.default.error(_context14.t1);
2355
2397
  setTimeout(function () {
2356
2398
  that.handleCzk();
2357
2399
  }, 500);
@@ -2359,74 +2401,67 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2359
2401
 
2360
2402
  case 37:
2361
2403
  case 'end':
2362
- return _context13.stop();
2404
+ return _context14.stop();
2363
2405
  }
2364
2406
  }
2365
- }, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2407
+ }, _callee14, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
2366
2408
  }));
2367
2409
 
2368
2410
  return function handleUserInputs(_x8) {
2369
- return _ref23.apply(this, arguments);
2411
+ return _ref21.apply(this, arguments);
2370
2412
  };
2371
2413
  }();
2372
2414
 
2373
- var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2415
+ var that, curmode, promises, _enumController$getEn22, PayStyle, commit;
2374
2416
 
2375
- return _regenerator2.default.wrap(function _callee14$(_context14) {
2417
+ return _regenerator2.default.wrap(function _callee15$(_context15) {
2376
2418
  while (1) {
2377
- switch (_context14.prev = _context14.next) {
2419
+ switch (_context15.prev = _context15.next) {
2378
2420
  case 0:
2379
2421
  that = _this2;
2380
2422
  curmode = _this2.store.paymode.currentMode;
2381
2423
  promises = [];
2382
- _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2383
2424
 
2384
- if (isNewRetailBCPos) {
2385
- if (curmode.value > 0) {
2386
- _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
2425
+ if (curmode.value > 0) {
2426
+ _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
2387
2427
 
2388
- if (curmode.paymentType === PayStyle.hyczk) {
2389
- if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2390
- !curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2391
- } else {
2392
- curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
2393
- }
2428
+ if (curmode.paymentType === PayStyle.hyczk) {
2429
+ if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2430
+ !curmode.freePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2431
+ } else {
2432
+ curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
2394
2433
  }
2395
2434
  }
2396
- } else {
2397
- if (curmode.member.needPwd && curmode.value > 0) {
2398
- promises.push(that.inputPwd(curmode));
2399
- }
2400
2435
  }
2401
2436
 
2402
2437
  commit = function () {
2403
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2438
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2404
2439
  var result;
2405
- return _regenerator2.default.wrap(function _callee12$(_context12) {
2440
+ return _regenerator2.default.wrap(function _callee13$(_context13) {
2406
2441
  while (1) {
2407
- switch (_context12.prev = _context12.next) {
2442
+ switch (_context13.prev = _context13.next) {
2408
2443
  case 0:
2409
2444
  if (!(values.length > 0)) {
2410
- _context12.next = 6;
2445
+ _context13.next = 6;
2411
2446
  break;
2412
2447
  }
2413
2448
 
2414
- _context12.next = 3;
2449
+ _context13.next = 3;
2415
2450
  return that.store.validePwd(values[0]);
2416
2451
 
2417
2452
  case 3:
2418
- _context12.t0 = _context12.sent;
2419
- _context12.next = 7;
2453
+ _context13.t0 = _context13.sent;
2454
+ _context13.next = 7;
2420
2455
  break;
2421
2456
 
2422
2457
  case 6:
2423
- _context12.t0 = "";
2458
+ _context13.t0 = "";
2424
2459
 
2425
2460
  case 7:
2426
- result = _context12.t0;
2461
+ result = _context13.t0;
2427
2462
 
2428
2463
  if (!(result == "")) {
2429
- _context12.next = 13;
2464
+ _context13.next = 13;
2430
2465
  break;
2431
2466
  }
2432
2467
 
@@ -2434,34 +2469,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2434
2469
  //返回
2435
2470
  that.setCurrentFocusAndAddPay(curmode.paymentType, null, curmode.paymethodId);
2436
2471
  _promise2.default.resolve();
2437
- _context12.next = 15;
2472
+ _context13.next = 15;
2438
2473
  break;
2439
2474
 
2440
2475
  case 13:
2441
- _context12.next = 15;
2476
+ _context13.next = 15;
2442
2477
  return _promise2.default.reject(result);
2443
2478
 
2444
2479
  case 15:
2445
2480
  case 'end':
2446
- return _context12.stop();
2481
+ return _context13.stop();
2447
2482
  }
2448
2483
  }
2449
- }, _callee12, _this3);
2484
+ }, _callee13, _this3);
2450
2485
  }));
2451
2486
 
2452
2487
  return function commit(_x7) {
2453
- return _ref22.apply(this, arguments);
2488
+ return _ref20.apply(this, arguments);
2454
2489
  };
2455
2490
  }();
2456
2491
 
2457
2492
  handleUserInputs(promises);
2458
2493
 
2459
- case 7:
2494
+ case 6:
2460
2495
  case 'end':
2461
- return _context14.stop();
2496
+ return _context15.stop();
2462
2497
  }
2463
2498
  }
2464
- }, _callee14, _this3);
2499
+ }, _callee15, _this3);
2465
2500
  }));
2466
2501
 
2467
2502
  _this2.fKeyboardOnOk = function (paymethodeId) {
@@ -2501,15 +2536,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2501
2536
  };
2502
2537
 
2503
2538
  _this2.inputPwd = function () {
2504
- var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2539
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2505
2540
  var that, confirmPwd;
2506
- return _regenerator2.default.wrap(function _callee15$(_context15) {
2541
+ return _regenerator2.default.wrap(function _callee16$(_context16) {
2507
2542
  while (1) {
2508
- switch (_context15.prev = _context15.next) {
2543
+ switch (_context16.prev = _context16.next) {
2509
2544
  case 0:
2510
2545
  that = _this2;
2511
2546
  confirmPwd = _this2.state.confirmPwd;
2512
- return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
2547
+ return _context16.abrupt('return', new _promise2.default(function (resolve, reject) {
2513
2548
  var modal = (0, _asyncModal2.default)({
2514
2549
  onPressEnter: function onPressEnter() {
2515
2550
  _keyboard2.default.close();
@@ -2517,8 +2552,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2517
2552
  // if (v !== '') {
2518
2553
  modal.destroy();
2519
2554
 
2520
- var _ref25 = that.state || {},
2521
- confirmPwd = _ref25.confirmPwd;
2555
+ var _ref23 = that.state || {},
2556
+ confirmPwd = _ref23.confirmPwd;
2522
2557
 
2523
2558
  setTimeout(function () {
2524
2559
  paymode.authCode = v;
@@ -2609,8 +2644,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2609
2644
  type: 'primary', size: 'large', onClick: function onClick() {
2610
2645
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2611
2646
 
2612
- var _ref26 = that.state || {},
2613
- confirmPwd = _ref26.confirmPwd;
2647
+ var _ref24 = that.state || {},
2648
+ confirmPwd = _ref24.confirmPwd;
2614
2649
  // if (v !== '') {
2615
2650
 
2616
2651
 
@@ -2644,24 +2679,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2644
2679
 
2645
2680
  case 3:
2646
2681
  case 'end':
2647
- return _context15.stop();
2682
+ return _context16.stop();
2648
2683
  }
2649
2684
  }
2650
- }, _callee15, _this3);
2685
+ }, _callee16, _this3);
2651
2686
  }));
2652
2687
 
2653
2688
  return function (_x9) {
2654
- return _ref24.apply(this, arguments);
2689
+ return _ref22.apply(this, arguments);
2655
2690
  };
2656
2691
  }();
2657
2692
 
2658
2693
  _this2.btnDebounced = function () {
2659
- var _ref27 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(type, bquick) {
2660
- var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, _enumController$getEn23, PayStyle, _this2$store8, paymode, brefund, boriginReturn, newStyle, status;
2694
+ var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(type, bquick) {
2695
+ var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, productStore, checkResult, _enumController$getEn23, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, status;
2661
2696
 
2662
- return _regenerator2.default.wrap(function _callee16$(_context16) {
2697
+ return _regenerator2.default.wrap(function _callee17$(_context17) {
2663
2698
  while (1) {
2664
- switch (_context16.prev = _context16.next) {
2699
+ switch (_context17.prev = _context17.next) {
2665
2700
  case 0:
2666
2701
  IdbusiType = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.IdbusiType;
2667
2702
  CustomerPhone = _this2.context && _this2.context.viewModel && _this2.context.viewModel.data && _this2.context.viewModel.data.CustomerPhone;
@@ -2670,7 +2705,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2670
2705
  //预订时,若没录入买家手机号,或配送方式为快递时,弹框买家信息确认框
2671
2706
 
2672
2707
  if (!(IdbusiType == 38)) {
2673
- _context16.next = 14;
2708
+ _context17.next = 14;
2674
2709
  break;
2675
2710
  }
2676
2711
 
@@ -2681,11 +2716,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2681
2716
  });
2682
2717
 
2683
2718
  if (!(isEnableSerialNumber && resultObj && (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE'))) {
2684
- _context16.next = 9;
2719
+ _context17.next = 9;
2685
2720
  break;
2686
2721
  }
2687
2722
 
2688
- return _context16.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2723
+ return _context17.abrupt('return', _message2.default.error('启用了序列号管理和批号/有效期管理的商品,不支持快递和同城配送'));
2689
2724
 
2690
2725
  case 9:
2691
2726
 
@@ -2694,31 +2729,49 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2694
2729
  }
2695
2730
 
2696
2731
  if (!(!CustomerPhone && !_this2.context.viewModel.data.Member.Mobilephone || DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE')) {
2697
- _context16.next = 14;
2732
+ _context17.next = 14;
2698
2733
  break;
2699
2734
  }
2700
2735
 
2701
2736
  title = (DistributionMode.Id == 'ELECTRONIC' || DistributionMode.Id == 'CITY_DISTRIBUTE') && Address ? '收货地址确认' : '收货人';
2702
- _context16.next = 14;
2737
+ _context17.next = 14;
2703
2738
  return _this2.props.openBuyerModal(title);
2704
2739
 
2705
2740
  case 14:
2706
2741
 
2742
+ // 极速模式错误校验
2743
+
2744
+ productStore = _mutantsMicrofx.stores.productStore;
2745
+ _context17.next = 17;
2746
+ return productStore.checkShouldSettlement();
2747
+
2748
+ case 17:
2749
+ checkResult = _context17.sent;
2750
+
2751
+ if (checkResult) {
2752
+ _context17.next = 20;
2753
+ break;
2754
+ }
2755
+
2756
+ return _context17.abrupt('return', false);
2757
+
2758
+ case 20:
2759
+
2707
2760
  _this2.setState({
2708
2761
  bquick: bquick,
2709
2762
  isInputMember: true
2710
2763
  });
2711
2764
  _enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
2712
- _this2$store8 = _this2.store, paymode = _this2$store8.paymode, brefund = _this2$store8.brefund, boriginReturn = _this2$store8.boriginReturn, newStyle = _this2$store8.newStyle;
2765
+ _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
2713
2766
 
2714
2767
  if (!(bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type))) {
2715
- _context16.next = 19;
2768
+ _context17.next = 25;
2716
2769
  break;
2717
2770
  }
2718
2771
 
2719
- return _context16.abrupt('return', false);
2772
+ return _context17.abrupt('return', false);
2720
2773
 
2721
- case 19:
2774
+ case 25:
2722
2775
  status = false;
2723
2776
 
2724
2777
  paymode.thePaymodes.forEach(function (v) {
@@ -2731,13 +2784,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2731
2784
  });
2732
2785
 
2733
2786
  if (!_this2.btndebounced) {
2734
- _context16.next = 24;
2787
+ _context17.next = 30;
2735
2788
  break;
2736
2789
  }
2737
2790
 
2738
- return _context16.abrupt('return');
2791
+ return _context17.abrupt('return');
2739
2792
 
2740
- case 24:
2793
+ case 30:
2741
2794
  _this2.btndebounced = (0, _debounce3.default)(function () {
2742
2795
  if (bquick) {
2743
2796
  _this2.quickSettle(type);
@@ -2754,23 +2807,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2754
2807
  _this2.btndebounced = null;
2755
2808
  }, 2000);
2756
2809
 
2757
- case 27:
2810
+ case 33:
2758
2811
  case 'end':
2759
- return _context16.stop();
2812
+ return _context17.stop();
2760
2813
  }
2761
2814
  }
2762
- }, _callee16, _this3);
2815
+ }, _callee17, _this3);
2763
2816
  }));
2764
2817
 
2765
2818
  return function (_x10, _x11) {
2766
- return _ref27.apply(this, arguments);
2819
+ return _ref25.apply(this, arguments);
2767
2820
  };
2768
2821
  }();
2769
2822
 
2770
2823
  _this2.onCzkChange = function (v) {
2771
2824
  // console.log("czk change:"+new Date().toLocaleTimeString())
2772
- var _ref28 = _mutantsUtil.platform || {},
2773
- isNewRetailBCPos = _ref28.isNewRetailBCPos;
2825
+ var _ref26 = _mutantsUtil.platform || {},
2826
+ isNewRetailBCPos = _ref26.isNewRetailBCPos;
2774
2827
 
2775
2828
  if (!isNewRetailBCPos) {
2776
2829
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -2808,7 +2861,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2808
2861
  if (_this2.debounced) {
2809
2862
  _this2.debounced.cancel();
2810
2863
  _this2.debounced = null;
2811
- // console.log("debounce canceled");
2812
2864
  }
2813
2865
  if (!isKeyBorad) {
2814
2866
  _this2.debounced = (0, _debounce3.default)(function () {
@@ -2984,7 +3036,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2984
3036
  keyboard: false,
2985
3037
  closable: false,
2986
3038
  backdropStyle: {
2987
- 'z-index': '1004'
3039
+ 'zIndex': '1004'
2988
3040
  },
2989
3041
  width: 440,
2990
3042
  content: _react2.default.createElement(
@@ -3201,9 +3253,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3201
3253
  };
3202
3254
 
3203
3255
  _this2.checkCurrentModeHaveMutex = function (type) {
3204
- var _this2$store9 = _this2.store,
3205
- paymode = _this2$store9.paymode,
3206
- newStyle = _this2$store9.newStyle;
3256
+ var _this2$store8 = _this2.store,
3257
+ paymode = _this2$store8.paymode,
3258
+ newStyle = _this2$store8.newStyle;
3207
3259
 
3208
3260
  var _enumController$getEn28 = _mutantsUtil.enumController.getEnumOj(),
3209
3261
  PayStyle = _enumController$getEn28.PayStyle;
@@ -3379,12 +3431,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3379
3431
 
3380
3432
  _this2.hasElectron = hasElectron;
3381
3433
 
3382
- var _ref29 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3383
- MemberMeStorageCardInputByKeyBoard = _ref29.MemberMeStorageCardInputByKeyBoard,
3384
- ICCardServer = _ref29.ICCardServer,
3385
- ICCardPassword = _ref29.ICCardPassword,
3386
- PreSellOrBook = _ref29.PreSellOrBook,
3387
- PercentageWhenBook = _ref29.PercentageWhenBook;
3434
+ var _ref27 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3435
+ MemberMeStorageCardInputByKeyBoard = _ref27.MemberMeStorageCardInputByKeyBoard,
3436
+ ICCardServer = _ref27.ICCardServer,
3437
+ ICCardPassword = _ref27.ICCardPassword,
3438
+ PreSellOrBook = _ref27.PreSellOrBook,
3439
+ PercentageWhenBook = _ref27.PercentageWhenBook;
3388
3440
 
3389
3441
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3390
3442
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
@@ -3393,9 +3445,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3393
3445
  _this2.percentageWhenBook = PercentageWhenBook;
3394
3446
  //移动端环境下,没有读取IC卡的方式。
3395
3447
 
3396
- var _ref30 = _mutantsUtil.platform || {},
3397
- isHorizontalPad = _ref30.isHorizontalPad,
3398
- isHorizontalSunMi = _ref30.isHorizontalSunMi;
3448
+ var _ref28 = _mutantsUtil.platform || {},
3449
+ isHorizontalPad = _ref28.isHorizontalPad,
3450
+ isHorizontalSunMi = _ref28.isHorizontalSunMi;
3399
3451
 
3400
3452
  _this2.isHorizontalPad = !!isHorizontalPad;
3401
3453
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3404,6 +3456,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3404
3456
  _this2.setTimer = null;
3405
3457
  _this2.keypressStime = null;
3406
3458
  _this2.store = !(props.type == 1) ? _mutantsMicrofx.stores.settlementVoucherStore : _mutantsMicrofx.stores.settlementMemberStore;
3459
+ _this2.voucherRunningFast = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('vocherRunningFast') == '1';
3407
3460
  return _this2;
3408
3461
  }
3409
3462
 
@@ -3432,6 +3485,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3432
3485
  }
3433
3486
  }
3434
3487
 
3488
+ //是否退货
3489
+
3490
+
3491
+ //原单退货状态
3492
+
3493
+
3494
+ //非原单退货状态
3495
+
3496
+
3435
3497
  //对结算按钮超出的处理
3436
3498
 
3437
3499
  }, {
@@ -3534,15 +3596,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3534
3596
  * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3535
3597
  */
3536
3598
 
3599
+ // 极速模式下是否开启了支付有礼功能
3600
+
3537
3601
  // 处理客显显示功能
3538
3602
 
3603
+
3539
3604
  //that[`inputS${paymode.paymethodId}`]
3540
3605
 
3541
3606
  }, {
3542
3607
  key: 'isNoProductTip',
3543
3608
  value: function isNoProductTip(nonProductMap) {
3544
- var _ref31 = this.context.viewModel.data || {},
3545
- RetailDetails = _ref31.RetailDetails;
3609
+ var _ref29 = this.context.viewModel.data || {},
3610
+ RetailDetails = _ref29.RetailDetails;
3546
3611
 
3547
3612
  var temphtml = [];
3548
3613
  if ((0, _keys2.default)(nonProductMap).length > 0) {
@@ -3729,10 +3794,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3729
3794
  newPassConfirm = _state2.newPassConfirm,
3730
3795
  newPass = _state2.newPass,
3731
3796
  isNotAutoFocus = _state2.isNotAutoFocus;
3732
-
3733
- var _ref32 = _mutantsUtil.platform || {},
3734
- isNewRetailBCPos = _ref32.isNewRetailBCPos;
3735
-
3736
3797
  var _store2 = this.store,
3737
3798
  paymode = _store2.paymode,
3738
3799
  brefund = _store2.brefund,
@@ -3748,7 +3809,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3748
3809
  noIsMinAmount = _props.noIsMinAmount;
3749
3810
  // 原单退货
3750
3811
 
3751
- var boriginReturn = this.context && this.context.viewModel && this.context.viewModel.data && JSON.getCellValue(this.context.viewModel.data, "IsOriginalReturn");
3812
+ var boriginReturn = this.getBoriginReturn();
3752
3813
  var totalTaxAmount = this.context && this.context.viewModel && this.context.viewModel.data && this.context.viewModel.data.TotalTaxAmount;
3753
3814
 
3754
3815
  //收订金
@@ -3817,11 +3878,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3817
3878
  quantity4 = 0;
3818
3879
  var sumQuantity = 0; //数量总和的值,包括称重的。
3819
3880
 
3820
- var _ref33 = quantityDetail || {},
3821
- _ref33$buyQuantity = _ref33.buyQuantity,
3822
- buyQuantity = _ref33$buyQuantity === undefined ? 0 : _ref33$buyQuantity,
3823
- _ref33$returnQuantity = _ref33.returnQuantity,
3824
- returnQuantity = _ref33$returnQuantity === undefined ? 0 : _ref33$returnQuantity;
3881
+ var _ref30 = quantityDetail || {},
3882
+ _ref30$buyQuantity = _ref30.buyQuantity,
3883
+ buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3884
+ _ref30$returnQuantity = _ref30.returnQuantity,
3885
+ returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3825
3886
 
3826
3887
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3827
3888
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4013,7 +4074,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4013
4074
  onClose: this.handleCancel,
4014
4075
  visible: this.state.visible,
4015
4076
  destroyOnClose: true,
4016
- className: 'settlement-wraper',
4077
+ className: 'settlement-wraper ' + (this.voucherRunningFast ? 'no-zoom' : null),
4017
4078
  style: { 'zIndex': 1006 }
4018
4079
  },
4019
4080
  _react2.default.createElement(
@@ -4284,7 +4345,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4284
4345
  onClose: this.handleCancel,
4285
4346
  visible: this.state.visible,
4286
4347
  destroyOnClose: true,
4287
- className: 'settlement-wraper',
4348
+ className: 'settlement-wraper ' + (this.voucherRunningFast ? 'no-zoom' : ''),
4288
4349
  style: { 'zIndex': 1006 }
4289
4350
  },
4290
4351
  _react2.default.createElement(
@@ -4594,7 +4655,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4594
4655
  _react2.default.createElement(
4595
4656
  _modal2.default,
4596
4657
  {
4597
- wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4658
+ wrapClassName: 'czk ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4598
4659
  width: '400px',
4599
4660
  visible: this.state.czkVisible,
4600
4661
  maskClosable: false,
@@ -4706,22 +4767,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4706
4767
  return _this8.czkInput = input;
4707
4768
  },
4708
4769
  onKeyDown: function () {
4709
- var _ref34 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(e) {
4770
+ var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(e) {
4710
4771
  var time, _paymode;
4711
4772
 
4712
- return _regenerator2.default.wrap(function _callee17$(_context17) {
4773
+ return _regenerator2.default.wrap(function _callee18$(_context18) {
4713
4774
  while (1) {
4714
- switch (_context17.prev = _context17.next) {
4775
+ switch (_context18.prev = _context18.next) {
4715
4776
  case 0:
4716
4777
  if (!(e.keyCode == 13)) {
4717
- _context17.next = 14;
4778
+ _context18.next = 14;
4718
4779
  break;
4719
4780
  }
4720
4781
 
4721
4782
  time = Date.parse(new Date());
4722
4783
 
4723
4784
  if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
4724
- _context17.next = 7;
4785
+ _context18.next = 7;
4725
4786
  break;
4726
4787
  }
4727
4788
 
@@ -4730,11 +4791,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4730
4791
  _this8.setState({
4731
4792
  czkValue: null
4732
4793
  });
4733
- return _context17.abrupt('return');
4794
+ return _context18.abrupt('return');
4734
4795
 
4735
4796
  case 7:
4736
4797
  _this8.keypressStime = null;
4737
- _context17.next = 10;
4798
+ _context18.next = 10;
4738
4799
  return _this8.loadCzk(e.target.value);
4739
4800
 
4740
4801
  case 10:
@@ -4745,7 +4806,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4745
4806
  czkvalue: null
4746
4807
  });
4747
4808
  }
4748
- _context17.next = 15;
4809
+ _context18.next = 15;
4749
4810
  break;
4750
4811
 
4751
4812
  case 14:
@@ -4755,14 +4816,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4755
4816
 
4756
4817
  case 15:
4757
4818
  case 'end':
4758
- return _context17.stop();
4819
+ return _context18.stop();
4759
4820
  }
4760
4821
  }
4761
- }, _callee17, _this8);
4822
+ }, _callee18, _this8);
4762
4823
  }));
4763
4824
 
4764
4825
  return function (_x13) {
4765
- return _ref34.apply(this, arguments);
4826
+ return _ref31.apply(this, arguments);
4766
4827
  };
4767
4828
  }(),
4768
4829
  onFocus: function onFocus(e) {
@@ -4819,8 +4880,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4819
4880
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4820
4881
  },
4821
4882
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4822
- ref: function ref(_ref35) {
4823
- return _this8["inputCzkAmount"] = _ref35;
4883
+ ref: function ref(_ref32) {
4884
+ return _this8["inputCzkAmount"] = _ref32;
4824
4885
  },
4825
4886
  onFocus: function onFocus(e) {
4826
4887
  _this8.inputkey = "inputCzkAmount";
@@ -4872,7 +4933,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4872
4933
  _react2.default.createElement(
4873
4934
  _modal2.default,
4874
4935
  {
4875
- wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4936
+ wrapClassName: _index.hotKey.hotKeyBindClass('5', 'moreCzkModal') + ' ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
4876
4937
  width: '400px',
4877
4938
  visible: this.state.moreCzkVisible,
4878
4939
  maskClosable: false,
@@ -4914,7 +4975,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4914
4975
  _react2.default.createElement(
4915
4976
  _modal2.default,
4916
4977
  (0, _defineProperty3.default)({
4917
- wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : '') + ' passwordContainer',
4978
+ wrapClassName: 'djq ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : '') + ' passwordContainer',
4918
4979
  width: '400px',
4919
4980
  visible: this.state.showSetPwdModal,
4920
4981
  backdropClosable: false,
@@ -5011,7 +5072,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5011
5072
  _react2.default.createElement(
5012
5073
  _modal2.default,
5013
5074
  {
5014
- wrapClassName: 'djq ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5075
+ wrapClassName: 'djq ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5015
5076
  width: '810px',
5016
5077
  visible: this.state.djqVisible,
5017
5078
  maskClosable: false,
@@ -5335,7 +5396,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5335
5396
  _react2.default.createElement(
5336
5397
  _modal2.default,
5337
5398
  {
5338
- wrapClassName: 'czk ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5399
+ wrapClassName: 'czk ' + (this.voucherRunningFast ? 'no-zoom' : '') + ' ' + (this.isHorizontalPad ? 'extraHeight' : ''),
5339
5400
  width: '420px',
5340
5401
  visible: this.state.jfdxVisible,
5341
5402
  maskClosable: false,
@@ -5490,8 +5551,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5490
5551
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5491
5552
  },
5492
5553
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5493
- ref: function ref(_ref36) {
5494
- return _this8["inputJfdxAmount"] = _ref36;
5554
+ ref: function ref(_ref33) {
5555
+ return _this8["inputJfdxAmount"] = _ref33;
5495
5556
  },
5496
5557
  onFocus: function onFocus(e) {
5497
5558
  _this8.inputkey = "inputJfdxAmount";