tplus-components-touch 3.26.11 → 3.26.12

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 (185) 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 +7 -7
  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 +373 -373
  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/commonForm/addressPicker/index.js +7 -7
  32. package/dist/components/commonForm/addressPicker/index.js.map +1 -1
  33. package/dist/components/commonForm/addressPicker/style.less +10 -10
  34. package/dist/components/commonForm/autoComplete/index.js.map +1 -1
  35. package/dist/components/commonForm/autoComplete/style.less +2 -2
  36. package/dist/components/commonForm/datePicker/index.js.map +1 -1
  37. package/dist/components/commonForm/datePicker/style.less +4 -4
  38. package/dist/components/commonForm/formControl/index.js.map +1 -1
  39. package/dist/components/commonForm/index.js +4 -4
  40. package/dist/components/commonForm/index.js.map +1 -1
  41. package/dist/components/commonForm/inputNumber/index.js.map +1 -1
  42. package/dist/components/commonForm/inputNumber/style.less +10 -10
  43. package/dist/components/commonForm/radio/index.js.map +1 -1
  44. package/dist/components/commonForm/style.less +1 -1
  45. package/dist/components/deliverySearch/api.js +21 -21
  46. package/dist/components/deliverySearch/api.js.map +1 -1
  47. package/dist/components/deliverySearch/index.js +6 -6
  48. package/dist/components/deliverySearch/index.js.map +1 -1
  49. package/dist/components/deliverySearch/index.less +553 -553
  50. package/dist/components/form/index.js.map +1 -1
  51. package/dist/components/hardwareAPI/index.js.map +1 -1
  52. package/dist/components/hotKey/config.js +23 -23
  53. package/dist/components/hotKey/config.js.map +1 -1
  54. package/dist/components/hotKey/hotKeyModal.js.map +1 -1
  55. package/dist/components/hotKey/index.js +26 -26
  56. package/dist/components/hotKey/index.js.map +1 -1
  57. package/dist/components/hotKey/localConfig.js.map +1 -1
  58. package/dist/components/hotKey/style.less +96 -96
  59. package/dist/components/hotKey/utils.js.map +1 -1
  60. package/dist/components/input/index.js +6 -6
  61. package/dist/components/input/index.js.map +1 -1
  62. package/dist/components/input/scanInput.js.map +1 -1
  63. package/dist/components/input/scanInput.less +27 -27
  64. package/dist/components/input/style.less +99 -99
  65. package/dist/components/input/tplusInput/index.js +30 -30
  66. package/dist/components/input/tplusInput/index.js.map +1 -1
  67. package/dist/components/input/tplusInput/inputContent.js.map +1 -1
  68. package/dist/components/input/tplusInput/inputs.js.map +1 -1
  69. package/dist/components/input/tplusInput/style.less +132 -132
  70. package/dist/components/input/utils/index.js.map +1 -1
  71. package/dist/components/inventorySearch/api.js +58 -58
  72. package/dist/components/inventorySearch/api.js.map +1 -1
  73. package/dist/components/inventorySearch/index.js +3 -3
  74. package/dist/components/inventorySearch/index.js.map +1 -1
  75. package/dist/components/inventorySearch/index.less +119 -119
  76. package/dist/components/inventorySearch/store.js.map +1 -1
  77. package/dist/components/inventorySearch/tab.js.map +1 -1
  78. package/dist/components/keyboard/index.js.map +1 -1
  79. package/dist/components/keyboard/index.less +469 -469
  80. package/dist/components/keyboard/letterKeyboard.js +2 -2
  81. package/dist/components/keyboard/letterKeyboard.js.map +1 -1
  82. package/dist/components/keyboard/numKeyboard.js +4 -4
  83. package/dist/components/keyboard/numKeyboard.js.map +1 -1
  84. package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
  85. package/dist/components/keyboard/numberButton_input.js +5 -5
  86. package/dist/components/keyboard/numberButton_input.js.map +1 -1
  87. package/dist/components/keyboard/numkeyboardPassword.js +4 -4
  88. package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
  89. package/dist/components/keyboard/onlyKeyboard.js +7 -7
  90. package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
  91. package/dist/components/keyboard/onlyLetterButton.js +2 -2
  92. package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
  93. package/dist/components/keyboard/onlyLetterButton2.js +2 -2
  94. package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
  95. package/dist/components/keyboard/onlyLetterButton2.less +161 -161
  96. package/dist/components/keyboard/onlyNumberButton.js +2 -2
  97. package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
  98. package/dist/components/keyboard/onlyNumberButton2.js +3 -3
  99. package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
  100. package/dist/components/keyboard/textKeyboard.js.map +1 -1
  101. package/dist/components/layout/hamburger.js.map +1 -1
  102. package/dist/components/layout/index.js +10 -10
  103. package/dist/components/layout/index.js.map +1 -1
  104. package/dist/components/layout/layout.js.map +1 -1
  105. package/dist/components/layout/sider.js +12 -12
  106. package/dist/components/layout/sider.js.map +1 -1
  107. package/dist/components/layout/style.less +82 -82
  108. package/dist/components/loading/index.js +15 -15
  109. package/dist/components/loading/index.js.map +1 -1
  110. package/dist/components/loading/loadingContent.js.map +1 -1
  111. package/dist/components/loading/style.less +70 -70
  112. package/dist/components/loading/utils.js.map +1 -1
  113. package/dist/components/message/index.js +8 -8
  114. package/dist/components/message/index.js.map +1 -1
  115. package/dist/components/message/index.less +101 -101
  116. package/dist/components/modal/index.js.map +1 -1
  117. package/dist/components/modal/index.less +19 -19
  118. package/dist/components/modalVertical/index.js +7 -7
  119. package/dist/components/modalVertical/index.js.map +1 -1
  120. package/dist/components/modalVertical/style.less +60 -60
  121. package/dist/components/modalWraper/index.js +15 -15
  122. package/dist/components/modalWraper/index.js.map +1 -1
  123. package/dist/components/modalWraper/style.less +257 -257
  124. package/dist/components/modalWraper/utils.js.map +1 -1
  125. package/dist/components/notification/index.js +4 -4
  126. package/dist/components/notification/index.js.map +1 -1
  127. package/dist/components/notification/index.less +51 -51
  128. package/dist/components/overflowTip/index.js +15 -15
  129. package/dist/components/overflowTip/index.js.map +1 -1
  130. package/dist/components/overflowTip/style.less +66 -66
  131. package/dist/components/page/index.js.map +1 -1
  132. package/dist/components/page/index.less +21 -21
  133. package/dist/components/product/detail.js +7 -7
  134. package/dist/components/product/detail.js.map +1 -1
  135. package/dist/components/product/getCard.js +5 -5
  136. package/dist/components/product/getCard.js.map +1 -1
  137. package/dist/components/product/index.less +128 -128
  138. package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
  139. package/dist/components/progressState/ProgressState.js +10 -10
  140. package/dist/components/progressState/ProgressState.js.map +1 -1
  141. package/dist/components/progressState/index.js.map +1 -1
  142. package/dist/components/progressState/style.less +65 -65
  143. package/dist/components/scan/index.js.map +1 -1
  144. package/dist/components/scan/index.less +33 -33
  145. package/dist/components/select/index.js.map +1 -1
  146. package/dist/components/select/index.less +11 -11
  147. package/dist/components/settlement/asyncModal.js.map +1 -1
  148. package/dist/components/settlement/index.js.map +1 -1
  149. package/dist/components/settlement/prototypeTable/index.js.map +1 -1
  150. package/dist/components/settlement/prototypeTable/style.less +58 -58
  151. package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
  152. package/dist/components/settlement/settlement.js +89 -81
  153. package/dist/components/settlement/settlement.js.map +1 -1
  154. package/dist/components/settlement/settlement.less +1646 -1646
  155. package/dist/components/settlement/settlementStore.js.map +1 -1
  156. package/dist/components/settlement/utils.js.map +1 -1
  157. package/dist/components/socket/index.js +11 -11
  158. package/dist/components/socket/index.js.map +1 -1
  159. package/dist/components/spin/index.js +6 -6
  160. package/dist/components/spin/index.js.map +1 -1
  161. package/dist/components/spin/spin-style.less +436 -436
  162. package/dist/components/test/index.js +3 -3
  163. package/dist/components/test/index.js.map +1 -1
  164. package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
  165. package/dist/components/ticon/iconfont/iconfont.css +895 -895
  166. package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
  167. package/dist/components/ticon/iconfont/iconfont.svg +593 -593
  168. package/dist/components/ticon/index.js.map +1 -1
  169. package/dist/components/touchScroll/index.js +9 -9
  170. package/dist/components/touchScroll/index.js.map +1 -1
  171. package/dist/components/touchTable/AuthProcess.js.map +1 -1
  172. package/dist/components/touchTable/generateWater.js.map +1 -1
  173. package/dist/components/touchTable/index.js +9 -9
  174. package/dist/components/touchTable/index.js.map +1 -1
  175. package/dist/components/touchTable/index.less +369 -369
  176. package/dist/components/touchTable/utils.js.map +1 -1
  177. package/dist/demo/PopOverDemo.js.map +1 -1
  178. package/dist/index.js +7 -7
  179. package/dist/index.js.map +1 -1
  180. package/dist/util/tools.js.map +1 -1
  181. package/locales/zh/tplus-components-touch.json +1 -1
  182. package/locales/zh-CN/tplus-components-touch.json +1 -1
  183. package/mocks/memberInfo.json +79 -79
  184. package/package.json +35 -35
  185. package/tsconfig.json +26 -26
@@ -556,7 +556,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
556
556
 
557
557
  _this2.showCzkModal = function () {
558
558
  var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, append, params) {
559
- var _enumController$getEn2, PayStyle, currentMode, maxamount, brefund, value11;
559
+ var _enumController$getEn2, PayStyle, _ref2, isInputMember, currentMode, maxamount, brefund, value11;
560
560
 
561
561
  return _regenerator2.default.wrap(function _callee$(_context) {
562
562
  while (1) {
@@ -565,10 +565,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
565
565
  _enumController$getEn2 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn2.PayStyle;
566
566
 
567
567
  _this2.store.setCurrentMode(id, PayStyle.hyczk, append);
568
- _context.next = 4;
568
+ _ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
569
+ _context.t0 = isInputMember && _this2.store.paymode.currentMode.memberId;
570
+
571
+ if (!_context.t0) {
572
+ _context.next = 7;
573
+ break;
574
+ }
575
+
576
+ _context.next = 7;
569
577
  return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
570
578
 
571
- case 4:
579
+ case 7:
572
580
  _this2._val = _this2.store.paymode.currentMode.value;
573
581
  currentMode = _this2.store.paymode.currentMode;
574
582
  maxamount = Math.min(currentMode.maxamount, currentMode.balance);
@@ -609,7 +617,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
609
617
  }, 500);
610
618
  _this2.connectRfCard();
611
619
 
612
- case 10:
620
+ case 13:
613
621
  case 'end':
614
622
  return _context.stop();
615
623
  }
@@ -691,7 +699,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
691
699
  }));
692
700
 
693
701
  _this2.handleCzkOk = function () {
694
- var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
702
+ var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
695
703
  var _this2$store$paymode$, walletEnabled, cardTypeEnum;
696
704
 
697
705
  return _regenerator2.default.wrap(function _callee3$(_context3) {
@@ -719,7 +727,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
719
727
  }));
720
728
 
721
729
  return function (_x4) {
722
- return _ref3.apply(this, arguments);
730
+ return _ref4.apply(this, arguments);
723
731
  };
724
732
  }();
725
733
 
@@ -815,11 +823,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
815
823
  }));
816
824
 
817
825
  _this2.onPressEnterCzk = function (field) {
818
- var _ref5 = _this2.state || {},
819
- _ref5$newPass = _ref5.newPass,
820
- newPass = _ref5$newPass === undefined ? '' : _ref5$newPass,
821
- _ref5$newPassConfirm = _ref5.newPassConfirm,
822
- newPassConfirm = _ref5$newPassConfirm === undefined ? '' : _ref5$newPassConfirm;
826
+ var _ref6 = _this2.state || {},
827
+ _ref6$newPass = _ref6.newPass,
828
+ newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
829
+ _ref6$newPassConfirm = _ref6.newPassConfirm,
830
+ newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
823
831
 
824
832
  if (field === 'newPass' && newPass.length === 6) {
825
833
  _this2.inputConfirmAmount.input.focus();
@@ -834,11 +842,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
834
842
  return;
835
843
  }
836
844
  _this2.setState((0, _defineProperty3.default)({}, field, value), function () {
837
- var _ref6 = _this2.state || {},
838
- _ref6$newPass = _ref6.newPass,
839
- newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
840
- _ref6$newPassConfirm = _ref6.newPassConfirm,
841
- newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
845
+ var _ref7 = _this2.state || {},
846
+ _ref7$newPass = _ref7.newPass,
847
+ newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
848
+ _ref7$newPassConfirm = _ref7.newPassConfirm,
849
+ newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
842
850
 
843
851
  if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
844
852
  _this2.setState({
@@ -849,15 +857,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
849
857
  };
850
858
 
851
859
  _this2.handleBlur = function (field) {
852
- var _ref7 = _this2.state || {},
853
- _ref7$newPass = _ref7.newPass,
854
- newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
855
- _ref7$newPassConfirm = _ref7.newPassConfirm,
856
- newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
860
+ var _ref8 = _this2.state || {},
861
+ _ref8$newPass = _ref8.newPass,
862
+ newPass = _ref8$newPass === undefined ? '' : _ref8$newPass,
863
+ _ref8$newPassConfirm = _ref8.newPassConfirm,
864
+ newPassConfirm = _ref8$newPassConfirm === undefined ? '' : _ref8$newPassConfirm;
857
865
 
858
866
  setTimeout(function () {
859
- var _ref8 = _this2.state || {},
860
- showSetPwdModal = _ref8.showSetPwdModal;
867
+ var _ref9 = _this2.state || {},
868
+ showSetPwdModal = _ref9.showSetPwdModal;
861
869
 
862
870
  if (!showSetPwdModal) return;
863
871
  if (field === 'newPass' && newPass.length < 6) {
@@ -914,8 +922,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
914
922
 
915
923
  // TODO: 测试优惠券支付
916
924
 
917
- var _ref9 = _mutantsUtil.platform || {},
918
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
925
+ var _ref10 = _mutantsUtil.platform || {},
926
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
919
927
 
920
928
  if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
921
929
  _this2.store.getCouponList();
@@ -999,8 +1007,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
999
1007
  };
1000
1008
 
1001
1009
  _this2.checkOfflineEnable = function (paymode, key) {
1002
- var _ref10 = paymode || {},
1003
- paymodes = _ref10.paymodes;
1010
+ var _ref11 = paymode || {},
1011
+ paymodes = _ref11.paymodes;
1004
1012
 
1005
1013
  var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
1006
1014
 
@@ -1350,8 +1358,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1350
1358
  return;
1351
1359
  }
1352
1360
 
1353
- var _ref11 = _mutantsUtil.platform || {},
1354
- isNewRetailBCPos = _ref11.isNewRetailBCPos;
1361
+ var _ref12 = _mutantsUtil.platform || {},
1362
+ isNewRetailBCPos = _ref12.isNewRetailBCPos;
1355
1363
 
1356
1364
  if (isNewRetailBCPos) {
1357
1365
  _this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
@@ -1831,13 +1839,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1831
1839
  if (_this2.hasElectron === false) return;
1832
1840
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1833
1841
 
1834
- var _ref15 = dt || {},
1835
- guestshow_enable = _ref15.guestshow_enable,
1836
- guestshow_clear = _ref15.guestshow_clear,
1837
- guestshow_welcome = _ref15.guestshow_welcome,
1838
- guestshow_collect = _ref15.guestshow_collect,
1839
- guestshow_refund = _ref15.guestshow_refund,
1840
- guestshow_change = _ref15.guestshow_change;
1842
+ var _ref16 = dt || {},
1843
+ guestshow_enable = _ref16.guestshow_enable,
1844
+ guestshow_clear = _ref16.guestshow_clear,
1845
+ guestshow_welcome = _ref16.guestshow_welcome,
1846
+ guestshow_collect = _ref16.guestshow_collect,
1847
+ guestshow_refund = _ref16.guestshow_refund,
1848
+ guestshow_change = _ref16.guestshow_change;
1841
1849
 
1842
1850
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
1843
1851
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -1872,9 +1880,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1872
1880
  };
1873
1881
 
1874
1882
  _this2.handleSettle = function () {
1875
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1883
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1876
1884
  var handleUserInputs = function () {
1877
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1885
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1878
1886
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1879
1887
 
1880
1888
  return _regenerator2.default.wrap(function _callee10$(_context10) {
@@ -1965,7 +1973,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1965
1973
  }));
1966
1974
 
1967
1975
  return function handleUserInputs(_x7) {
1968
- return _ref18.apply(this, arguments);
1976
+ return _ref19.apply(this, arguments);
1969
1977
  };
1970
1978
  }();
1971
1979
 
@@ -2068,7 +2076,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2068
2076
  });
2069
2077
 
2070
2078
  commit = function () {
2071
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2079
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2072
2080
  var result;
2073
2081
  return _regenerator2.default.wrap(function _callee9$(_context9) {
2074
2082
  while (1) {
@@ -2142,7 +2150,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2142
2150
  }));
2143
2151
 
2144
2152
  return function commit(_x6) {
2145
- return _ref17.apply(this, arguments);
2153
+ return _ref18.apply(this, arguments);
2146
2154
  };
2147
2155
  }();
2148
2156
 
@@ -2157,13 +2165,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2157
2165
  }));
2158
2166
 
2159
2167
  return function (_x5) {
2160
- return _ref16.apply(this, arguments);
2168
+ return _ref17.apply(this, arguments);
2161
2169
  };
2162
2170
  }();
2163
2171
 
2164
2172
  _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2165
2173
  var handleUserInputs = function () {
2166
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2174
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2167
2175
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2168
2176
 
2169
2177
  return _regenerator2.default.wrap(function _callee13$(_context13) {
@@ -2260,11 +2268,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2260
2268
  }));
2261
2269
 
2262
2270
  return function handleUserInputs(_x9) {
2263
- return _ref22.apply(this, arguments);
2271
+ return _ref23.apply(this, arguments);
2264
2272
  };
2265
2273
  }();
2266
2274
 
2267
- var that, curmode, promises, _ref20, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2275
+ var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2268
2276
 
2269
2277
  return _regenerator2.default.wrap(function _callee14$(_context14) {
2270
2278
  while (1) {
@@ -2273,7 +2281,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2273
2281
  that = _this2;
2274
2282
  curmode = _this2.store.paymode.currentMode;
2275
2283
  promises = [];
2276
- _ref20 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref20.isNewRetailBCPos;
2284
+ _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2277
2285
 
2278
2286
  if (isNewRetailBCPos) {
2279
2287
  if (curmode.value > 0) {
@@ -2292,7 +2300,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2292
2300
  }
2293
2301
 
2294
2302
  commit = function () {
2295
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2303
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2296
2304
  var result;
2297
2305
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2298
2306
  while (1) {
@@ -2342,7 +2350,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2342
2350
  }));
2343
2351
 
2344
2352
  return function commit(_x8) {
2345
- return _ref21.apply(this, arguments);
2353
+ return _ref22.apply(this, arguments);
2346
2354
  };
2347
2355
  }();
2348
2356
 
@@ -2393,7 +2401,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2393
2401
  };
2394
2402
 
2395
2403
  _this2.inputPwd = function () {
2396
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2404
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2397
2405
  var that, confirmPwd;
2398
2406
  return _regenerator2.default.wrap(function _callee15$(_context15) {
2399
2407
  while (1) {
@@ -2409,8 +2417,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2409
2417
  // if (v !== '') {
2410
2418
  modal.destroy();
2411
2419
 
2412
- var _ref24 = that.state || {},
2413
- confirmPwd = _ref24.confirmPwd;
2420
+ var _ref25 = that.state || {},
2421
+ confirmPwd = _ref25.confirmPwd;
2414
2422
 
2415
2423
  setTimeout(function () {
2416
2424
  paymode.authCode = v;
@@ -2500,8 +2508,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2500
2508
  type: 'primary', size: 'large', onClick: function onClick() {
2501
2509
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2502
2510
 
2503
- var _ref25 = that.state || {},
2504
- confirmPwd = _ref25.confirmPwd;
2511
+ var _ref26 = that.state || {},
2512
+ confirmPwd = _ref26.confirmPwd;
2505
2513
  // if (v !== '') {
2506
2514
 
2507
2515
 
@@ -2542,7 +2550,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2542
2550
  }));
2543
2551
 
2544
2552
  return function (_x10) {
2545
- return _ref23.apply(this, arguments);
2553
+ return _ref24.apply(this, arguments);
2546
2554
  };
2547
2555
  }();
2548
2556
 
@@ -2595,8 +2603,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2595
2603
 
2596
2604
  _this2.onCzkChange = function (v) {
2597
2605
  // console.log("czk change:"+new Date().toLocaleTimeString())
2598
- var _ref26 = _mutantsUtil.platform || {},
2599
- isNewRetailBCPos = _ref26.isNewRetailBCPos;
2606
+ var _ref27 = _mutantsUtil.platform || {},
2607
+ isNewRetailBCPos = _ref27.isNewRetailBCPos;
2600
2608
 
2601
2609
  if (!isNewRetailBCPos) {
2602
2610
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -3177,19 +3185,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3177
3185
 
3178
3186
  _this2.hasElectron = hasElectron;
3179
3187
 
3180
- var _ref27 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3181
- MemberMeStorageCardInputByKeyBoard = _ref27.MemberMeStorageCardInputByKeyBoard,
3182
- ICCardServer = _ref27.ICCardServer,
3183
- ICCardPassword = _ref27.ICCardPassword;
3188
+ var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3189
+ MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
3190
+ ICCardServer = _ref28.ICCardServer,
3191
+ ICCardPassword = _ref28.ICCardPassword;
3184
3192
 
3185
3193
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3186
3194
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3187
3195
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3188
3196
  //移动端环境下,没有读取IC卡的方式。
3189
3197
 
3190
- var _ref28 = _mutantsUtil.platform || {},
3191
- isHorizontalPad = _ref28.isHorizontalPad,
3192
- isHorizontalSunMi = _ref28.isHorizontalSunMi;
3198
+ var _ref29 = _mutantsUtil.platform || {},
3199
+ isHorizontalPad = _ref29.isHorizontalPad,
3200
+ isHorizontalSunMi = _ref29.isHorizontalSunMi;
3193
3201
 
3194
3202
  _this2.isHorizontalPad = !!isHorizontalPad;
3195
3203
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3305,11 +3313,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3305
3313
  //jfdx
3306
3314
 
3307
3315
 
3308
- /**
3309
- *
3310
- * @param {*} thePaymodes 支付方式列表
3311
- * @param {*} currenIndex 当前支付方式下标
3312
- * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3316
+ /**
3317
+ *
3318
+ * @param {*} thePaymodes 支付方式列表
3319
+ * @param {*} currenIndex 当前支付方式下标
3320
+ * @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
3313
3321
  */
3314
3322
 
3315
3323
  // 处理客显显示功能
@@ -3428,8 +3436,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3428
3436
  newPassConfirm = _state2.newPassConfirm,
3429
3437
  newPass = _state2.newPass;
3430
3438
 
3431
- var _ref29 = _mutantsUtil.platform || {},
3432
- isNewRetailBCPos = _ref29.isNewRetailBCPos;
3439
+ var _ref30 = _mutantsUtil.platform || {},
3440
+ isNewRetailBCPos = _ref30.isNewRetailBCPos;
3433
3441
 
3434
3442
  var _store2 = this.store,
3435
3443
  paymode = _store2.paymode,
@@ -3492,11 +3500,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3492
3500
  quantity4 = 0;
3493
3501
  var sumQuantity = 0; //数量总和的值,包括称重的。
3494
3502
 
3495
- var _ref30 = quantityDetail || {},
3496
- _ref30$buyQuantity = _ref30.buyQuantity,
3497
- buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3498
- _ref30$returnQuantity = _ref30.returnQuantity,
3499
- returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3503
+ var _ref31 = quantityDetail || {},
3504
+ _ref31$buyQuantity = _ref31.buyQuantity,
3505
+ buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
3506
+ _ref31$returnQuantity = _ref31.returnQuantity,
3507
+ returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
3500
3508
 
3501
3509
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3502
3510
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4833,7 +4841,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4833
4841
  return _this8.czkInput = input;
4834
4842
  },
4835
4843
  onKeyDown: function () {
4836
- var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4844
+ var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4837
4845
  var time, _paymode;
4838
4846
 
4839
4847
  return _regenerator2.default.wrap(function _callee16$(_context16) {
@@ -4889,7 +4897,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4889
4897
  }));
4890
4898
 
4891
4899
  return function (_x12) {
4892
- return _ref31.apply(this, arguments);
4900
+ return _ref32.apply(this, arguments);
4893
4901
  };
4894
4902
  }(),
4895
4903
  onFocus: function onFocus(e) {
@@ -4946,8 +4954,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4946
4954
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4947
4955
  },
4948
4956
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4949
- ref: function ref(_ref32) {
4950
- return _this8["inputCzkAmount"] = _ref32;
4957
+ ref: function ref(_ref33) {
4958
+ return _this8["inputCzkAmount"] = _ref33;
4951
4959
  },
4952
4960
  onFocus: function onFocus(e) {
4953
4961
  _this8.inputkey = "inputCzkAmount";
@@ -5568,8 +5576,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5568
5576
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5569
5577
  },
5570
5578
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5571
- ref: function ref(_ref33) {
5572
- return _this8["inputJfdxAmount"] = _ref33;
5579
+ ref: function ref(_ref34) {
5580
+ return _this8["inputJfdxAmount"] = _ref34;
5573
5581
  },
5574
5582
  onFocus: function onFocus(e) {
5575
5583
  _this8.inputkey = "inputJfdxAmount";