tplus-components-touch 3.47.3 → 3.47.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +16 -16
  2. package/dist/components/acCitySelect/CitySelect.js +18 -18
  3. package/dist/components/acCitySelect/CitySelect.js.map +1 -1
  4. package/dist/components/acCitySelect/CitySelect.less +9 -9
  5. package/dist/components/acCitySelect/citys.js.map +1 -1
  6. package/dist/components/acCitySelect/index.js.map +1 -1
  7. package/dist/components/acCitySelect/provinceData.js +7 -7
  8. package/dist/components/acCitySelect/provinceData.js.map +1 -1
  9. package/dist/components/addLog/AddLogProcessor.js +6 -6
  10. package/dist/components/addLog/AddLogProcessor.js.map +1 -1
  11. package/dist/components/addLog/OperationLogApi.js +3 -3
  12. package/dist/components/addLog/OperationLogApi.js.map +1 -1
  13. package/dist/components/autoComplete/index.js +14 -14
  14. package/dist/components/autoComplete/index.js.map +1 -1
  15. package/dist/components/autoComplete/index.less +89 -89
  16. package/dist/components/autoComplete/option.js.map +1 -1
  17. package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
  18. package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
  19. package/dist/components/autoCompleteWithKeyboard/index.less +18 -18
  20. package/dist/components/billSearch/api.js +29 -29
  21. package/dist/components/billSearch/api.js.map +1 -1
  22. package/dist/components/billSearch/index.js +6 -6
  23. package/dist/components/billSearch/index.js.map +1 -1
  24. package/dist/components/billSearch/index.less +384 -384
  25. package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
  26. package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
  27. package/dist/components/cloudPrint/api.js.map +1 -1
  28. package/dist/components/cloudPrint/index.js.map +1 -1
  29. package/dist/components/cloudPrint/printDispatch.js +7 -7
  30. package/dist/components/cloudPrint/printDispatch.js.map +1 -1
  31. package/dist/components/cloudPrint/printTemplate/dialy_one.json +238 -238
  32. package/dist/components/cloudPrint/printTemplate/duty_one.json +238 -238
  33. package/dist/components/cloudPrint/printTemplate/retail_one.json +203 -203
  34. package/dist/components/cloudPrint/printTemplate/retail_two.json +219 -219
  35. package/dist/components/cloudPrint/printTemplate/storage_one.json +128 -128
  36. package/dist/components/cloudPrint/printTemplate/template.js +7 -7
  37. package/dist/components/cloudPrint/printTemplate/template.js.map +1 -1
  38. package/dist/components/commonForm/addressPicker/index.js +7 -7
  39. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  40. package/dist/components/commonForm/addressPicker/style.less +10 -10
  41. package/dist/components/commonForm/autoComplete/index.js.map +1 -1
  42. package/dist/components/commonForm/autoComplete/style.less +2 -2
  43. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  44. package/dist/components/commonForm/datePicker/style.less +4 -4
  45. package/dist/components/commonForm/formControl/index.js.map +1 -1
  46. package/dist/components/commonForm/index.js +4 -4
  47. package/dist/components/commonForm/index.js.map +1 -1
  48. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  49. package/dist/components/commonForm/inputNumber/style.less +10 -10
  50. package/dist/components/commonForm/radio/index.js.map +1 -1
  51. package/dist/components/commonForm/style.less +1 -1
  52. package/dist/components/deliverySearch/api.js +21 -21
  53. package/dist/components/deliverySearch/api.js.map +1 -1
  54. package/dist/components/deliverySearch/index.js +6 -6
  55. package/dist/components/deliverySearch/index.js.map +1 -1
  56. package/dist/components/deliverySearch/index.less +553 -553
  57. package/dist/components/form/index.js.map +1 -1
  58. package/dist/components/hardwareAPI/index.js +7 -7
  59. package/dist/components/hardwareAPI/index.js.map +1 -1
  60. package/dist/components/hotKey/config.js +23 -23
  61. package/dist/components/hotKey/config.js.map +1 -1
  62. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  63. package/dist/components/hotKey/index.js +26 -26
  64. package/dist/components/hotKey/index.js.map +1 -1
  65. package/dist/components/hotKey/localConfig.js.map +1 -1
  66. package/dist/components/hotKey/style.less +96 -96
  67. package/dist/components/hotKey/utils.js.map +1 -1
  68. package/dist/components/input/index.js +6 -6
  69. package/dist/components/input/index.js.map +1 -1
  70. package/dist/components/input/scanInput.js.map +1 -1
  71. package/dist/components/input/scanInput.less +30 -30
  72. package/dist/components/input/style.less +106 -106
  73. package/dist/components/input/tplusInput/index.js +30 -30
  74. package/dist/components/input/tplusInput/index.js.map +1 -1
  75. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  76. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  77. package/dist/components/input/tplusInput/style.less +132 -132
  78. package/dist/components/input/utils/index.js.map +1 -1
  79. package/dist/components/inventorySearch/api.js +58 -58
  80. package/dist/components/inventorySearch/api.js.map +1 -1
  81. package/dist/components/inventorySearch/index.js +3 -3
  82. package/dist/components/inventorySearch/index.js.map +1 -1
  83. package/dist/components/inventorySearch/index.less +119 -119
  84. package/dist/components/inventorySearch/store.js.map +1 -1
  85. package/dist/components/inventorySearch/tab.js.map +1 -1
  86. package/dist/components/keyboard/index.js.map +1 -1
  87. package/dist/components/keyboard/index.less +485 -485
  88. package/dist/components/keyboard/letterKeyboard.js +2 -2
  89. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  90. package/dist/components/keyboard/numKeyboard.js +4 -4
  91. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  92. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  93. package/dist/components/keyboard/numberButton_input.js +5 -5
  94. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  95. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  96. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  97. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  98. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  99. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  100. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  101. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  102. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  103. package/dist/components/keyboard/onlyLetterButton2.less +156 -156
  104. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  105. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  106. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  107. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  108. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  109. package/dist/components/layout/hamburger.js.map +1 -1
  110. package/dist/components/layout/index.js +10 -10
  111. package/dist/components/layout/index.js.map +1 -1
  112. package/dist/components/layout/layout.js.map +1 -1
  113. package/dist/components/layout/sider.js +12 -12
  114. package/dist/components/layout/sider.js.map +1 -1
  115. package/dist/components/layout/style.less +82 -82
  116. package/dist/components/loading/index.js +15 -15
  117. package/dist/components/loading/index.js.map +1 -1
  118. package/dist/components/loading/loadingContent.js.map +1 -1
  119. package/dist/components/loading/style.less +72 -72
  120. package/dist/components/loading/utils.js.map +1 -1
  121. package/dist/components/message/index.js +8 -8
  122. package/dist/components/message/index.js.map +1 -1
  123. package/dist/components/message/index.less +101 -101
  124. package/dist/components/modal/index.js.map +1 -1
  125. package/dist/components/modal/index.less +19 -19
  126. package/dist/components/modalVertical/index.js +7 -7
  127. package/dist/components/modalVertical/index.js.map +1 -1
  128. package/dist/components/modalVertical/style.less +60 -60
  129. package/dist/components/modalWraper/index.js +15 -15
  130. package/dist/components/modalWraper/index.js.map +1 -1
  131. package/dist/components/modalWraper/style.less +262 -262
  132. package/dist/components/modalWraper/utils.js.map +1 -1
  133. package/dist/components/notification/index.js +4 -4
  134. package/dist/components/notification/index.js.map +1 -1
  135. package/dist/components/notification/index.less +51 -51
  136. package/dist/components/overflowTip/index.js +15 -15
  137. package/dist/components/overflowTip/index.js.map +1 -1
  138. package/dist/components/overflowTip/style.less +66 -66
  139. package/dist/components/page/index.js.map +1 -1
  140. package/dist/components/page/index.less +21 -21
  141. package/dist/components/presale/pickup.js.map +1 -1
  142. package/dist/components/presale/style.less +58 -58
  143. package/dist/components/product/detail.js +7 -7
  144. package/dist/components/product/detail.js.map +1 -1
  145. package/dist/components/product/getCard.js +5 -5
  146. package/dist/components/product/getCard.js.map +1 -1
  147. package/dist/components/product/index.less +128 -128
  148. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  149. package/dist/components/progressState/ProgressState.js +10 -10
  150. package/dist/components/progressState/ProgressState.js.map +1 -1
  151. package/dist/components/progressState/index.js.map +1 -1
  152. package/dist/components/progressState/style.less +65 -65
  153. package/dist/components/scan/index.js.map +1 -1
  154. package/dist/components/scan/index.less +33 -33
  155. package/dist/components/select/index.js.map +1 -1
  156. package/dist/components/select/index.less +11 -11
  157. package/dist/components/settlement/asyncModal.js.map +1 -1
  158. package/dist/components/settlement/index.js.map +1 -1
  159. package/dist/components/settlement/moreCzkTable/index.js.map +1 -1
  160. package/dist/components/settlement/moreCzkTable/style.less +6 -6
  161. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  162. package/dist/components/settlement/prototypeTable/style.less +58 -58
  163. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  164. package/dist/components/settlement/settlement.js +101 -126
  165. package/dist/components/settlement/settlement.js.map +1 -1
  166. package/dist/components/settlement/settlement.less +1707 -1707
  167. package/dist/components/settlement/settlementApi.js +7 -7
  168. package/dist/components/settlement/settlementApi.js.map +1 -1
  169. package/dist/components/settlement/settlementStore.js +6 -6
  170. package/dist/components/settlement/settlementStore.js.map +1 -1
  171. package/dist/components/settlement/utils.js.map +1 -1
  172. package/dist/components/socket/index.js +11 -11
  173. package/dist/components/socket/index.js.map +1 -1
  174. package/dist/components/spin/index.js +6 -6
  175. package/dist/components/spin/index.js.map +1 -1
  176. package/dist/components/spin/spin-style.less +436 -436
  177. package/dist/components/test/index.js +3 -3
  178. package/dist/components/test/index.js.map +1 -1
  179. package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
  180. package/dist/components/ticon/iconfont/iconfont.css +895 -895
  181. package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
  182. package/dist/components/ticon/index.js.map +1 -1
  183. package/dist/components/touchScroll/index.js +9 -9
  184. package/dist/components/touchScroll/index.js.map +1 -1
  185. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  186. package/dist/components/touchTable/generateWater.js.map +1 -1
  187. package/dist/components/touchTable/index.js +9 -9
  188. package/dist/components/touchTable/index.js.map +1 -1
  189. package/dist/components/touchTable/index.less +376 -376
  190. package/dist/components/touchTable/utils.js.map +1 -1
  191. package/dist/demo/PopOverDemo.js.map +1 -1
  192. package/dist/index.js +7 -7
  193. package/dist/index.js.map +1 -1
  194. package/dist/util/tools.js.map +1 -1
  195. package/locales/zh/tplus-components-touch.json +1 -1
  196. package/locales/zh-CN/tplus-components-touch.json +1 -1
  197. package/mocks/memberInfo.json +79 -79
  198. package/package.json +34 -34
  199. package/tsconfig.json +26 -26
@@ -268,7 +268,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
268
268
  couponLight: true,
269
269
  storageValue: '0.00',
270
270
  czkValue: null,
271
- isInputMember: false,
272
271
  selectedRowIndex: 0,
273
272
  isNotAutoFocus: true };
274
273
  _this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
@@ -390,7 +389,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
390
389
 
391
390
  _promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ isNotAutoFocus: true, fn: function fn(data) {
392
391
  return _this2.isNoProductTip(data);
393
- } })).then(function (result) {
392
+ }, type: type })).then(function (result) {
394
393
  if (result) {
395
394
  _this2.setState({
396
395
  settleDisabled: false
@@ -513,7 +512,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
513
512
  // 支持异步验证过程
514
513
  _promise2.default.resolve(!_this2.props.onValidate || _this2.props.onValidate({ fn: function fn(data) {
515
514
  return _this2.isNoProductTip(data);
516
- } })).then(function (result) {
515
+ }, type: type })).then(function (result) {
517
516
  if (result) {
518
517
  _this2.setState({
519
518
  settleDisabled: false
@@ -646,33 +645,32 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
646
645
 
647
646
  _this2.showCzkModal = function () {
648
647
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, append) {
649
- var _ref2, isInputMember, returnType, _enumController$getEn2, PayStyle, memberId, memberdata1;
648
+ var returnType, _enumController$getEn2, PayStyle, memberId, memberdata1;
650
649
 
651
650
  return _regenerator2.default.wrap(function _callee$(_context) {
652
651
  while (1) {
653
652
  switch (_context.prev = _context.next) {
654
653
  case 0:
655
- _ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
656
654
  returnType = _this2.getNotBoriginReturn();
657
655
  _enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn2.PayStyle;
658
656
 
659
657
  _this2.store.setCurrentMode(id, PayStyle.hyczk, append);
660
658
  _this2.connectRfCard();
661
659
  memberId = _this2.store && _this2.store.member && _this2.store.member.ID;
662
- _context.t0 = isInputMember && memberId;
660
+ _context.t0 = memberId;
663
661
 
664
662
  if (!_context.t0) {
665
- _context.next = 11;
663
+ _context.next = 10;
666
664
  break;
667
665
  }
668
666
 
669
- _context.next = 10;
667
+ _context.next = 9;
670
668
  return _this2.store.updateCurrentMode(memberId, returnType);
671
669
 
672
- case 10:
670
+ case 9:
673
671
  _context.t0 = _context.sent;
674
672
 
675
- case 11:
673
+ case 10:
676
674
  memberdata1 = _context.t0;
677
675
 
678
676
  _this2.setState({ czkVisible: true });
@@ -691,7 +689,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
691
689
  }, 300);
692
690
  }
693
691
 
694
- case 14:
692
+ case 13:
695
693
  case 'end':
696
694
  return _context.stop();
697
695
  }
@@ -741,61 +739,57 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
741
739
  while (1) {
742
740
  switch (_context2.prev = _context2.next) {
743
741
  case 0:
744
- _this2.setState({
745
- isInputMember: false
746
- });
747
742
  _enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
748
743
 
749
744
  if (_this2.store.paymode.currentMode.storageCardNo) {
750
- _context2.next = 6;
745
+ _context2.next = 5;
751
746
  break;
752
747
  }
753
748
 
754
749
  returnType = _this2.getNotBoriginReturn();
755
- _context2.next = 6;
750
+ _context2.next = 5;
756
751
  return _this2.store.loadCzk(_this2.czkInput.input.value, returnType);
757
752
 
758
- case 6:
753
+ case 5:
759
754
  if (_this2.store.paymode.currentMode.storageCardNo) {
760
- _context2.next = 9;
755
+ _context2.next = 8;
761
756
  break;
762
757
  }
763
758
 
764
759
  _message2.default.error("请录入储值卡!");
765
760
  return _context2.abrupt('return');
766
761
 
767
- case 9:
762
+ case 8:
768
763
  if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
769
764
  return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.storageCardNo == _this2.store.paymode.currentMode.storageCardNo;
770
765
  })) {
771
- _context2.next = 12;
766
+ _context2.next = 11;
772
767
  break;
773
768
  }
774
769
 
775
770
  _message2.default.error("该储值卡已使用。");
776
771
  return _context2.abrupt('return');
777
772
 
778
- case 12:
773
+ case 11:
779
774
  if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
780
- _context2.next = 15;
775
+ _context2.next = 14;
781
776
  break;
782
777
  }
783
778
 
784
779
  _message2.default.error("实收金额应等于应收金额。");
785
780
  return _context2.abrupt('return');
786
781
 
787
- case 15:
782
+ case 14:
788
783
 
789
784
  _this2.setState({
790
785
  czkVisible: false,
791
786
  storageValue: '0.00',
792
787
  czkValue: null
793
788
  });
794
- _this2.closeRfCard();
795
789
  _this2.store.paymode.calcMemberBalance();
796
790
  _this2.handleCzk();
797
791
 
798
- case 19:
792
+ case 17:
799
793
  case 'end':
800
794
  return _context2.stop();
801
795
  }
@@ -804,7 +798,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
804
798
  }));
805
799
 
806
800
  _this2.handleCzkOk = function () {
807
- var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
801
+ var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
808
802
  var _this2$store$paymode$, walletEnabled, cardTypeEnum, freePaymentPasswordStore, isNeedPassword;
809
803
 
810
804
  return _regenerator2.default.wrap(function _callee3$(_context3) {
@@ -834,7 +828,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
834
828
  }));
835
829
 
836
830
  return function (_x3) {
837
- return _ref4.apply(this, arguments);
831
+ return _ref3.apply(this, arguments);
838
832
  };
839
833
  }();
840
834
 
@@ -848,7 +842,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
848
842
  storageValue: '0.00',
849
843
  czkValue: null
850
844
  });
851
- _this2.closeRfCard();
852
845
  _keyboard2.default.close();
853
846
  _this2.setInventoryFocus();
854
847
  };
@@ -860,13 +853,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
860
853
  };
861
854
 
862
855
  _this2.handleSetModal = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
863
- var _this2$state2, newPass, newPassConfirm, isInputMember, updataMemberInfo, result, cardTypeEnum, resp;
856
+ var _this2$state2, newPass, newPassConfirm, updataMemberInfo, result, cardTypeEnum, resp;
864
857
 
865
858
  return _regenerator2.default.wrap(function _callee4$(_context4) {
866
859
  while (1) {
867
860
  switch (_context4.prev = _context4.next) {
868
861
  case 0:
869
- _this2$state2 = _this2.state, newPass = _this2$state2.newPass, newPassConfirm = _this2$state2.newPassConfirm, isInputMember = _this2$state2.isInputMember;
862
+ _this2$state2 = _this2.state, newPass = _this2$state2.newPass, newPassConfirm = _this2$state2.newPassConfirm;
870
863
  updataMemberInfo = _this2.props.updataMemberInfo;
871
864
  _context4.next = 4;
872
865
  return _this2.store.queryPwd(newPass, newPassConfirm);
@@ -876,7 +869,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
876
869
  cardTypeEnum = _this2.store.paymode.currentMode.cardTypeEnum;
877
870
 
878
871
  if (!result) {
879
- _context4.next = 18;
872
+ _context4.next = 17;
880
873
  break;
881
874
  }
882
875
 
@@ -895,7 +888,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
895
888
  }
896
889
  }, 350);
897
890
 
898
- if (!(isInputMember && _this2.store.member.ID)) {
891
+ if (!_this2.store.member.ID) {
899
892
  _context4.next = 16;
900
893
  break;
901
894
  }
@@ -912,11 +905,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
912
905
  if (cardTypeEnum === 'BALANCE_CARD') {
913
906
  _this2.store.paymode.updateCardInfo();
914
907
  }
915
- _this2.setState({
916
- isInputMember: false
917
- });
918
908
 
919
- case 18:
909
+ case 17:
920
910
  case 'end':
921
911
  return _context4.stop();
922
912
  }
@@ -925,11 +915,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
925
915
  }));
926
916
 
927
917
  _this2.onPressEnterCzk = function (field) {
928
- var _ref6 = _this2.state || {},
929
- _ref6$newPass = _ref6.newPass,
930
- newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
931
- _ref6$newPassConfirm = _ref6.newPassConfirm,
932
- newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
918
+ var _ref5 = _this2.state || {},
919
+ _ref5$newPass = _ref5.newPass,
920
+ newPass = _ref5$newPass === undefined ? '' : _ref5$newPass,
921
+ _ref5$newPassConfirm = _ref5.newPassConfirm,
922
+ newPassConfirm = _ref5$newPassConfirm === undefined ? '' : _ref5$newPassConfirm;
933
923
 
934
924
  if (field === 'newPass' && newPass.length === 6) {
935
925
  _this2.inputConfirmAmount.input.focus();
@@ -944,11 +934,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
944
934
  return;
945
935
  }
946
936
  _this2.setState((0, _defineProperty3.default)({}, field, value), function () {
947
- var _ref7 = _this2.state || {},
948
- _ref7$newPass = _ref7.newPass,
949
- newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
950
- _ref7$newPassConfirm = _ref7.newPassConfirm,
951
- newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
937
+ var _ref6 = _this2.state || {},
938
+ _ref6$newPass = _ref6.newPass,
939
+ newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
940
+ _ref6$newPassConfirm = _ref6.newPassConfirm,
941
+ newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
952
942
 
953
943
  if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
954
944
  _this2.setState({
@@ -959,15 +949,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
959
949
  };
960
950
 
961
951
  _this2.handleBlur = function (field) {
962
- var _ref8 = _this2.state || {},
963
- _ref8$newPass = _ref8.newPass,
964
- newPass = _ref8$newPass === undefined ? '' : _ref8$newPass,
965
- _ref8$newPassConfirm = _ref8.newPassConfirm,
966
- newPassConfirm = _ref8$newPassConfirm === undefined ? '' : _ref8$newPassConfirm;
952
+ var _ref7 = _this2.state || {},
953
+ _ref7$newPass = _ref7.newPass,
954
+ newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
955
+ _ref7$newPassConfirm = _ref7.newPassConfirm,
956
+ newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
967
957
 
968
958
  setTimeout(function () {
969
- var _ref9 = _this2.state || {},
970
- showSetPwdModal = _ref9.showSetPwdModal;
959
+ var _ref8 = _this2.state || {},
960
+ showSetPwdModal = _ref8.showSetPwdModal;
971
961
 
972
962
  if (!showSetPwdModal) return;
973
963
  if (field === 'newPass' && newPass.length < 6) {
@@ -1105,8 +1095,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1105
1095
  };
1106
1096
 
1107
1097
  _this2.checkOfflineEnable = function (paymode, key) {
1108
- var _ref10 = paymode || {},
1109
- paymodes = _ref10.paymodes;
1098
+ var _ref9 = paymode || {},
1099
+ paymodes = _ref9.paymodes;
1110
1100
 
1111
1101
  var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
1112
1102
 
@@ -1137,11 +1127,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1137
1127
  paymode.currentMode = null;
1138
1128
  switch (key) {
1139
1129
  case PayStyle.hyczk:
1140
- _this2.setState({
1141
- isInputMember: true
1142
- }, function () {
1143
- _this2.showCzkModal(-1);
1144
- });
1130
+ _this2.showCzkModal(-1);
1145
1131
  break;
1146
1132
  case PayStyle.jfdx:
1147
1133
  _this2.showJfdxModal(-1);
@@ -1988,13 +1974,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1988
1974
  if (_this2.hasElectron === false) return;
1989
1975
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1990
1976
 
1991
- var _ref15 = dt || {},
1992
- guestshow_enable = _ref15.guestshow_enable,
1993
- guestshow_clear = _ref15.guestshow_clear,
1994
- guestshow_welcome = _ref15.guestshow_welcome,
1995
- guestshow_collect = _ref15.guestshow_collect,
1996
- guestshow_refund = _ref15.guestshow_refund,
1997
- guestshow_change = _ref15.guestshow_change;
1977
+ var _ref14 = dt || {},
1978
+ guestshow_enable = _ref14.guestshow_enable,
1979
+ guestshow_clear = _ref14.guestshow_clear,
1980
+ guestshow_welcome = _ref14.guestshow_welcome,
1981
+ guestshow_collect = _ref14.guestshow_collect,
1982
+ guestshow_refund = _ref14.guestshow_refund,
1983
+ guestshow_change = _ref14.guestshow_change;
1998
1984
 
1999
1985
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
2000
1986
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -2029,9 +2015,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2029
2015
  };
2030
2016
 
2031
2017
  _this2.handleSettle = function () {
2032
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
2018
+ var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(args) {
2033
2019
  var handleUserInputs = function () {
2034
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
2020
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(promises) {
2035
2021
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
2036
2022
 
2037
2023
  return _regenerator2.default.wrap(function _callee11$(_context11) {
@@ -2122,7 +2108,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2122
2108
  }));
2123
2109
 
2124
2110
  return function handleUserInputs(_x6) {
2125
- return _ref18.apply(this, arguments);
2111
+ return _ref17.apply(this, arguments);
2126
2112
  };
2127
2113
  }();
2128
2114
 
@@ -2215,7 +2201,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2215
2201
  });
2216
2202
 
2217
2203
  commit = function () {
2218
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
2204
+ var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(values) {
2219
2205
  var result;
2220
2206
  return _regenerator2.default.wrap(function _callee10$(_context10) {
2221
2207
  while (1) {
@@ -2289,7 +2275,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2289
2275
  }));
2290
2276
 
2291
2277
  return function commit(_x5) {
2292
- return _ref17.apply(this, arguments);
2278
+ return _ref16.apply(this, arguments);
2293
2279
  };
2294
2280
  }();
2295
2281
 
@@ -2304,13 +2290,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2304
2290
  }));
2305
2291
 
2306
2292
  return function (_x4) {
2307
- return _ref16.apply(this, arguments);
2293
+ return _ref15.apply(this, arguments);
2308
2294
  };
2309
2295
  }();
2310
2296
 
2311
2297
  _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15() {
2312
2298
  var handleUserInputs = function () {
2313
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2299
+ var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14(promises) {
2314
2300
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2315
2301
 
2316
2302
  return _regenerator2.default.wrap(function _callee14$(_context14) {
@@ -2407,7 +2393,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2407
2393
  }));
2408
2394
 
2409
2395
  return function handleUserInputs(_x8) {
2410
- return _ref21.apply(this, arguments);
2396
+ return _ref20.apply(this, arguments);
2411
2397
  };
2412
2398
  }();
2413
2399
 
@@ -2434,7 +2420,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2434
2420
  }
2435
2421
 
2436
2422
  commit = function () {
2437
- var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2423
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(values) {
2438
2424
  var result;
2439
2425
  return _regenerator2.default.wrap(function _callee13$(_context13) {
2440
2426
  while (1) {
@@ -2484,7 +2470,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2484
2470
  }));
2485
2471
 
2486
2472
  return function commit(_x7) {
2487
- return _ref20.apply(this, arguments);
2473
+ return _ref19.apply(this, arguments);
2488
2474
  };
2489
2475
  }();
2490
2476
 
@@ -2535,7 +2521,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2535
2521
  };
2536
2522
 
2537
2523
  _this2.inputPwd = function () {
2538
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2524
+ var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(paymode) {
2539
2525
  var that, confirmPwd;
2540
2526
  return _regenerator2.default.wrap(function _callee16$(_context16) {
2541
2527
  while (1) {
@@ -2551,8 +2537,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2551
2537
  // if (v !== '') {
2552
2538
  modal.destroy();
2553
2539
 
2554
- var _ref23 = that.state || {},
2555
- confirmPwd = _ref23.confirmPwd;
2540
+ var _ref22 = that.state || {},
2541
+ confirmPwd = _ref22.confirmPwd;
2556
2542
 
2557
2543
  setTimeout(function () {
2558
2544
  paymode.authCode = v;
@@ -2643,8 +2629,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2643
2629
  type: 'primary', size: 'large', onClick: function onClick() {
2644
2630
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2645
2631
 
2646
- var _ref24 = that.state || {},
2647
- confirmPwd = _ref24.confirmPwd;
2632
+ var _ref23 = that.state || {},
2633
+ confirmPwd = _ref23.confirmPwd;
2648
2634
  // if (v !== '') {
2649
2635
 
2650
2636
 
@@ -2685,12 +2671,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2685
2671
  }));
2686
2672
 
2687
2673
  return function (_x9) {
2688
- return _ref22.apply(this, arguments);
2674
+ return _ref21.apply(this, arguments);
2689
2675
  };
2690
2676
  }();
2691
2677
 
2692
2678
  _this2.btnDebounced = function () {
2693
- var _ref25 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(type, bquick) {
2679
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee17(type, bquick) {
2694
2680
  var IdbusiType, CustomerPhone, DistributionMode, Address, isEnableSerialNumber, resultObj, title, productStore, checkResult, _enumController$getEn23, PayStyle, _this2$store7, paymode, brefund, boriginReturn, newStyle, status;
2695
2681
 
2696
2682
  return _regenerator2.default.wrap(function _callee17$(_context17) {
@@ -2757,8 +2743,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2757
2743
  case 20:
2758
2744
 
2759
2745
  _this2.setState({
2760
- bquick: bquick,
2761
- isInputMember: true
2746
+ bquick: bquick
2762
2747
  });
2763
2748
  _enumController$getEn23 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn23.PayStyle;
2764
2749
  _this2$store7 = _this2.store, paymode = _this2$store7.paymode, brefund = _this2$store7.brefund, boriginReturn = _this2$store7.boriginReturn, newStyle = _this2$store7.newStyle;
@@ -2815,13 +2800,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2815
2800
  }));
2816
2801
 
2817
2802
  return function (_x10, _x11) {
2818
- return _ref25.apply(this, arguments);
2803
+ return _ref24.apply(this, arguments);
2819
2804
  };
2820
2805
  }();
2821
2806
 
2822
2807
  _this2.onCzkChange = function (v) {
2823
- var _ref26 = _mutantsUtil.platform || {},
2824
- isNewRetailBCPos = _ref26.isNewRetailBCPos;
2808
+ var _ref25 = _mutantsUtil.platform || {},
2809
+ isNewRetailBCPos = _ref25.isNewRetailBCPos;
2825
2810
 
2826
2811
  if (!isNewRetailBCPos) {
2827
2812
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -3422,12 +3407,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3422
3407
 
3423
3408
  _this2.hasElectron = hasElectron;
3424
3409
 
3425
- var _ref27 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3426
- MemberMeStorageCardInputByKeyBoard = _ref27.MemberMeStorageCardInputByKeyBoard,
3427
- ICCardServer = _ref27.ICCardServer,
3428
- ICCardPassword = _ref27.ICCardPassword,
3429
- PreSellOrBook = _ref27.PreSellOrBook,
3430
- PercentageWhenBook = _ref27.PercentageWhenBook;
3410
+ var _ref26 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3411
+ MemberMeStorageCardInputByKeyBoard = _ref26.MemberMeStorageCardInputByKeyBoard,
3412
+ ICCardServer = _ref26.ICCardServer,
3413
+ ICCardPassword = _ref26.ICCardPassword,
3414
+ PreSellOrBook = _ref26.PreSellOrBook,
3415
+ PercentageWhenBook = _ref26.PercentageWhenBook;
3431
3416
 
3432
3417
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3433
3418
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
@@ -3436,9 +3421,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3436
3421
  _this2.percentageWhenBook = PercentageWhenBook;
3437
3422
  //移动端环境下,没有读取IC卡的方式。
3438
3423
 
3439
- var _ref28 = _mutantsUtil.platform || {},
3440
- isHorizontalPad = _ref28.isHorizontalPad,
3441
- isHorizontalSunMi = _ref28.isHorizontalSunMi;
3424
+ var _ref27 = _mutantsUtil.platform || {},
3425
+ isHorizontalPad = _ref27.isHorizontalPad,
3426
+ isHorizontalSunMi = _ref27.isHorizontalSunMi;
3442
3427
 
3443
3428
  _this2.isHorizontalPad = !!isHorizontalPad;
3444
3429
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3544,16 +3529,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3544
3529
  }
3545
3530
  }
3546
3531
 
3547
- //IC卡关闭
3548
-
3549
- }, {
3550
- key: 'closeRfCard',
3551
- value: function closeRfCard() {
3552
- if (this.hasElectron === true && this.iCCardServer === 1) {
3553
- _mutantsMicrofx.nativeMs.setIpcRendererMethod('CloseRfCard');
3554
- }
3555
- }
3556
-
3557
3532
  //czk
3558
3533
 
3559
3534
 
@@ -3580,11 +3555,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3580
3555
  return true;
3581
3556
  }
3582
3557
 
3583
- /**
3584
- *
3585
- * @param {*} thePaymodes 支付方式列表
3586
- * @param {*} currenIndex 当前支付方式下标
3587
- * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3558
+ /**
3559
+ *
3560
+ * @param {*} thePaymodes 支付方式列表
3561
+ * @param {*} currenIndex 当前支付方式下标
3562
+ * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3588
3563
  */
3589
3564
 
3590
3565
  // 极速模式下是否开启了支付有礼功能
@@ -3597,8 +3572,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3597
3572
  }, {
3598
3573
  key: 'isNoProductTip',
3599
3574
  value: function isNoProductTip(nonProductMap) {
3600
- var _ref29 = this.context.viewModel.data || {},
3601
- RetailDetails = _ref29.RetailDetails;
3575
+ var _ref28 = this.context.viewModel.data || {},
3576
+ RetailDetails = _ref28.RetailDetails;
3602
3577
 
3603
3578
  var temphtml = [];
3604
3579
  if ((0, _keys2.default)(nonProductMap).length > 0) {
@@ -3869,11 +3844,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3869
3844
  quantity4 = 0;
3870
3845
  var sumQuantity = 0; //数量总和的值,包括称重的。
3871
3846
 
3872
- var _ref30 = quantityDetail || {},
3873
- _ref30$buyQuantity = _ref30.buyQuantity,
3874
- buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3875
- _ref30$returnQuantity = _ref30.returnQuantity,
3876
- returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3847
+ var _ref29 = quantityDetail || {},
3848
+ _ref29$buyQuantity = _ref29.buyQuantity,
3849
+ buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
3850
+ _ref29$returnQuantity = _ref29.returnQuantity,
3851
+ returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
3877
3852
 
3878
3853
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3879
3854
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4758,7 +4733,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4758
4733
  return _this8.czkInput = input;
4759
4734
  },
4760
4735
  onKeyDown: function () {
4761
- var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(e) {
4736
+ var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee18(e) {
4762
4737
  var time, _paymode;
4763
4738
 
4764
4739
  return _regenerator2.default.wrap(function _callee18$(_context18) {
@@ -4814,7 +4789,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4814
4789
  }));
4815
4790
 
4816
4791
  return function (_x13) {
4817
- return _ref31.apply(this, arguments);
4792
+ return _ref30.apply(this, arguments);
4818
4793
  };
4819
4794
  }(),
4820
4795
  onFocus: function onFocus(e) {
@@ -4871,8 +4846,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4871
4846
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4872
4847
  },
4873
4848
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4874
- ref: function ref(_ref32) {
4875
- return _this8["inputCzkAmount"] = _ref32;
4849
+ ref: function ref(_ref31) {
4850
+ return _this8["inputCzkAmount"] = _ref31;
4876
4851
  },
4877
4852
  onFocus: function onFocus(e) {
4878
4853
  _this8.inputkey = "inputCzkAmount";
@@ -5542,8 +5517,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5542
5517
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5543
5518
  },
5544
5519
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5545
- ref: function ref(_ref33) {
5546
- return _this8["inputJfdxAmount"] = _ref33;
5520
+ ref: function ref(_ref32) {
5521
+ return _this8["inputJfdxAmount"] = _ref32;
5547
5522
  },
5548
5523
  onFocus: function onFocus(e) {
5549
5524
  _this8.inputkey = "inputJfdxAmount";