tplus-components-touch 3.26.10 → 3.26.14

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.
@@ -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) {
@@ -701,7 +709,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
701
709
  // 判断是否有密码
702
710
  _this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum;
703
711
 
704
- if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled && !_this2.store.dto.FreePaymentPasswordStore) {
712
+ if (cardTypeEnum === 'BALANCE_CARD' && _this2.store.dto.FreePaymentPasswordStore) {
713
+ _this2.handleCzkData();
714
+ } else if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
705
715
  _this2.setState({
706
716
  showSetPwdModal: true,
707
717
  btnDissabled: true
@@ -719,7 +729,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
719
729
  }));
720
730
 
721
731
  return function (_x4) {
722
- return _ref3.apply(this, arguments);
732
+ return _ref4.apply(this, arguments);
723
733
  };
724
734
  }();
725
735
 
@@ -815,11 +825,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
815
825
  }));
816
826
 
817
827
  _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;
828
+ var _ref6 = _this2.state || {},
829
+ _ref6$newPass = _ref6.newPass,
830
+ newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
831
+ _ref6$newPassConfirm = _ref6.newPassConfirm,
832
+ newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
823
833
 
824
834
  if (field === 'newPass' && newPass.length === 6) {
825
835
  _this2.inputConfirmAmount.input.focus();
@@ -834,11 +844,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
834
844
  return;
835
845
  }
836
846
  _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;
847
+ var _ref7 = _this2.state || {},
848
+ _ref7$newPass = _ref7.newPass,
849
+ newPass = _ref7$newPass === undefined ? '' : _ref7$newPass,
850
+ _ref7$newPassConfirm = _ref7.newPassConfirm,
851
+ newPassConfirm = _ref7$newPassConfirm === undefined ? '' : _ref7$newPassConfirm;
842
852
 
843
853
  if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
844
854
  _this2.setState({
@@ -849,15 +859,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
849
859
  };
850
860
 
851
861
  _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;
862
+ var _ref8 = _this2.state || {},
863
+ _ref8$newPass = _ref8.newPass,
864
+ newPass = _ref8$newPass === undefined ? '' : _ref8$newPass,
865
+ _ref8$newPassConfirm = _ref8.newPassConfirm,
866
+ newPassConfirm = _ref8$newPassConfirm === undefined ? '' : _ref8$newPassConfirm;
857
867
 
858
868
  setTimeout(function () {
859
- var _ref8 = _this2.state || {},
860
- showSetPwdModal = _ref8.showSetPwdModal;
869
+ var _ref9 = _this2.state || {},
870
+ showSetPwdModal = _ref9.showSetPwdModal;
861
871
 
862
872
  if (!showSetPwdModal) return;
863
873
  if (field === 'newPass' && newPass.length < 6) {
@@ -914,8 +924,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
914
924
 
915
925
  // TODO: 测试优惠券支付
916
926
 
917
- var _ref9 = _mutantsUtil.platform || {},
918
- isNewRetailBCPos = _ref9.isNewRetailBCPos;
927
+ var _ref10 = _mutantsUtil.platform || {},
928
+ isNewRetailBCPos = _ref10.isNewRetailBCPos;
919
929
 
920
930
  if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
921
931
  _this2.store.getCouponList();
@@ -999,8 +1009,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
999
1009
  };
1000
1010
 
1001
1011
  _this2.checkOfflineEnable = function (paymode, key) {
1002
- var _ref10 = paymode || {},
1003
- paymodes = _ref10.paymodes;
1012
+ var _ref11 = paymode || {},
1013
+ paymodes = _ref11.paymodes;
1004
1014
 
1005
1015
  var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
1006
1016
 
@@ -1032,7 +1042,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1032
1042
  switch (key) {
1033
1043
  case PayStyle.hyczk:
1034
1044
  _this2.showCzkModal(-1);
1035
- _this2.store.dto.Idmember && _this2.setState({
1045
+ _this2.setState({
1036
1046
  isInputMember: true
1037
1047
  });
1038
1048
  break;
@@ -1350,8 +1360,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1350
1360
  return;
1351
1361
  }
1352
1362
 
1353
- var _ref11 = _mutantsUtil.platform || {},
1354
- isNewRetailBCPos = _ref11.isNewRetailBCPos;
1363
+ var _ref12 = _mutantsUtil.platform || {},
1364
+ isNewRetailBCPos = _ref12.isNewRetailBCPos;
1355
1365
 
1356
1366
  if (isNewRetailBCPos) {
1357
1367
  _this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
@@ -1831,13 +1841,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1831
1841
  if (_this2.hasElectron === false) return;
1832
1842
  var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
1833
1843
 
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;
1844
+ var _ref16 = dt || {},
1845
+ guestshow_enable = _ref16.guestshow_enable,
1846
+ guestshow_clear = _ref16.guestshow_clear,
1847
+ guestshow_welcome = _ref16.guestshow_welcome,
1848
+ guestshow_collect = _ref16.guestshow_collect,
1849
+ guestshow_refund = _ref16.guestshow_refund,
1850
+ guestshow_change = _ref16.guestshow_change;
1841
1851
 
1842
1852
  var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
1843
1853
  if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
@@ -1872,9 +1882,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1872
1882
  };
1873
1883
 
1874
1884
  _this2.handleSettle = function () {
1875
- var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1885
+ var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
1876
1886
  var handleUserInputs = function () {
1877
- var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1887
+ var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
1878
1888
  var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
1879
1889
 
1880
1890
  return _regenerator2.default.wrap(function _callee10$(_context10) {
@@ -1965,7 +1975,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
1965
1975
  }));
1966
1976
 
1967
1977
  return function handleUserInputs(_x7) {
1968
- return _ref18.apply(this, arguments);
1978
+ return _ref19.apply(this, arguments);
1969
1979
  };
1970
1980
  }();
1971
1981
 
@@ -2068,7 +2078,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2068
2078
  });
2069
2079
 
2070
2080
  commit = function () {
2071
- var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2081
+ var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
2072
2082
  var result;
2073
2083
  return _regenerator2.default.wrap(function _callee9$(_context9) {
2074
2084
  while (1) {
@@ -2142,7 +2152,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2142
2152
  }));
2143
2153
 
2144
2154
  return function commit(_x6) {
2145
- return _ref17.apply(this, arguments);
2155
+ return _ref18.apply(this, arguments);
2146
2156
  };
2147
2157
  }();
2148
2158
 
@@ -2157,13 +2167,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2157
2167
  }));
2158
2168
 
2159
2169
  return function (_x5) {
2160
- return _ref16.apply(this, arguments);
2170
+ return _ref17.apply(this, arguments);
2161
2171
  };
2162
2172
  }();
2163
2173
 
2164
2174
  _this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
2165
2175
  var handleUserInputs = function () {
2166
- var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2176
+ var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
2167
2177
  var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
2168
2178
 
2169
2179
  return _regenerator2.default.wrap(function _callee13$(_context13) {
@@ -2260,11 +2270,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2260
2270
  }));
2261
2271
 
2262
2272
  return function handleUserInputs(_x9) {
2263
- return _ref22.apply(this, arguments);
2273
+ return _ref23.apply(this, arguments);
2264
2274
  };
2265
2275
  }();
2266
2276
 
2267
- var that, curmode, promises, _ref20, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2277
+ var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
2268
2278
 
2269
2279
  return _regenerator2.default.wrap(function _callee14$(_context14) {
2270
2280
  while (1) {
@@ -2273,15 +2283,21 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2273
2283
  that = _this2;
2274
2284
  curmode = _this2.store.paymode.currentMode;
2275
2285
  promises = [];
2276
- _ref20 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref20.isNewRetailBCPos;
2286
+ _ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
2277
2287
 
2278
2288
  if (isNewRetailBCPos) {
2279
2289
  if (curmode.value > 0) {
2280
2290
  _enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
2281
2291
 
2282
2292
  if (curmode.paymentType === PayStyle.hyczk) {
2283
- if (curmode.cardTypeEnum === 'BALANCE_CARD' && !_this2.store.dto.FreePaymentPasswordStore || curmode.isNeedPassword) {
2284
- promises.push(that.inputPwd(curmode));
2293
+ if (curmode.cardTypeEnum === 'BALANCE_CARD') {
2294
+ !_this2.store.dto.FreePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2295
+ } else {
2296
+ if (_this2.store.dto.Idmember === curmode.memberId) {
2297
+ !_this2.store.dto.FreePaymentPasswordStore && promises.push(that.inputPwd(curmode));
2298
+ } else {
2299
+ curmode.isNeedPassword && promises.push(that.inputPwd(curmode));
2300
+ }
2285
2301
  }
2286
2302
  }
2287
2303
  }
@@ -2292,7 +2308,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2292
2308
  }
2293
2309
 
2294
2310
  commit = function () {
2295
- var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2311
+ var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
2296
2312
  var result;
2297
2313
  return _regenerator2.default.wrap(function _callee12$(_context12) {
2298
2314
  while (1) {
@@ -2342,7 +2358,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2342
2358
  }));
2343
2359
 
2344
2360
  return function commit(_x8) {
2345
- return _ref21.apply(this, arguments);
2361
+ return _ref22.apply(this, arguments);
2346
2362
  };
2347
2363
  }();
2348
2364
 
@@ -2393,7 +2409,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2393
2409
  };
2394
2410
 
2395
2411
  _this2.inputPwd = function () {
2396
- var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2412
+ var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
2397
2413
  var that, confirmPwd;
2398
2414
  return _regenerator2.default.wrap(function _callee15$(_context15) {
2399
2415
  while (1) {
@@ -2409,8 +2425,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2409
2425
  // if (v !== '') {
2410
2426
  modal.destroy();
2411
2427
 
2412
- var _ref24 = that.state || {},
2413
- confirmPwd = _ref24.confirmPwd;
2428
+ var _ref25 = that.state || {},
2429
+ confirmPwd = _ref25.confirmPwd;
2414
2430
 
2415
2431
  setTimeout(function () {
2416
2432
  paymode.authCode = v;
@@ -2500,8 +2516,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2500
2516
  type: 'primary', size: 'large', onClick: function onClick() {
2501
2517
  var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
2502
2518
 
2503
- var _ref25 = that.state || {},
2504
- confirmPwd = _ref25.confirmPwd;
2519
+ var _ref26 = that.state || {},
2520
+ confirmPwd = _ref26.confirmPwd;
2505
2521
  // if (v !== '') {
2506
2522
 
2507
2523
 
@@ -2542,7 +2558,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2542
2558
  }));
2543
2559
 
2544
2560
  return function (_x10) {
2545
- return _ref23.apply(this, arguments);
2561
+ return _ref24.apply(this, arguments);
2546
2562
  };
2547
2563
  }();
2548
2564
 
@@ -2595,8 +2611,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
2595
2611
 
2596
2612
  _this2.onCzkChange = function (v) {
2597
2613
  // console.log("czk change:"+new Date().toLocaleTimeString())
2598
- var _ref26 = _mutantsUtil.platform || {},
2599
- isNewRetailBCPos = _ref26.isNewRetailBCPos;
2614
+ var _ref27 = _mutantsUtil.platform || {},
2615
+ isNewRetailBCPos = _ref27.isNewRetailBCPos;
2600
2616
 
2601
2617
  if (!isNewRetailBCPos) {
2602
2618
  _this2.store.paymode.currentMode.member.setCardNo(v);
@@ -3177,22 +3193,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3177
3193
 
3178
3194
  _this2.hasElectron = hasElectron;
3179
3195
 
3180
- var _ref27 = _mutantsMicrofx.localStore.get('user') || {},
3181
- _ref27$loginInfo = _ref27.loginInfo;
3182
-
3183
- _ref27$loginInfo = _ref27$loginInfo === undefined ? {} : _ref27$loginInfo;
3184
- var MemberMeStorageCardInputByKeyBoard = _ref27$loginInfo.MemberMeStorageCardInputByKeyBoard,
3185
- ICCardServer = _ref27$loginInfo.ICCardServer,
3186
- ICCardPassword = _ref27$loginInfo.ICCardPassword;
3196
+ var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
3197
+ MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
3198
+ ICCardServer = _ref28.ICCardServer,
3199
+ ICCardPassword = _ref28.ICCardPassword;
3187
3200
 
3188
3201
  _this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
3189
3202
  _this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
3190
3203
  _this2.iCCardPassword = ICCardPassword; //IC卡密码
3191
3204
  //移动端环境下,没有读取IC卡的方式。
3192
3205
 
3193
- var _ref28 = _mutantsUtil.platform || {},
3194
- isHorizontalPad = _ref28.isHorizontalPad,
3195
- isHorizontalSunMi = _ref28.isHorizontalSunMi;
3206
+ var _ref29 = _mutantsUtil.platform || {},
3207
+ isHorizontalPad = _ref29.isHorizontalPad,
3208
+ isHorizontalSunMi = _ref29.isHorizontalSunMi;
3196
3209
 
3197
3210
  _this2.isHorizontalPad = !!isHorizontalPad;
3198
3211
  _this2.isHorizontalSunMi = !!isHorizontalSunMi;
@@ -3431,8 +3444,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3431
3444
  newPassConfirm = _state2.newPassConfirm,
3432
3445
  newPass = _state2.newPass;
3433
3446
 
3434
- var _ref29 = _mutantsUtil.platform || {},
3435
- isNewRetailBCPos = _ref29.isNewRetailBCPos;
3447
+ var _ref30 = _mutantsUtil.platform || {},
3448
+ isNewRetailBCPos = _ref30.isNewRetailBCPos;
3436
3449
 
3437
3450
  var _store2 = this.store,
3438
3451
  paymode = _store2.paymode,
@@ -3495,11 +3508,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
3495
3508
  quantity4 = 0;
3496
3509
  var sumQuantity = 0; //数量总和的值,包括称重的。
3497
3510
 
3498
- var _ref30 = quantityDetail || {},
3499
- _ref30$buyQuantity = _ref30.buyQuantity,
3500
- buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
3501
- _ref30$returnQuantity = _ref30.returnQuantity,
3502
- returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
3511
+ var _ref31 = quantityDetail || {},
3512
+ _ref31$buyQuantity = _ref31.buyQuantity,
3513
+ buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
3514
+ _ref31$returnQuantity = _ref31.returnQuantity,
3515
+ returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
3503
3516
 
3504
3517
  var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
3505
3518
  quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
@@ -4836,7 +4849,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4836
4849
  return _this8.czkInput = input;
4837
4850
  },
4838
4851
  onKeyDown: function () {
4839
- var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4852
+ var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
4840
4853
  var time, _paymode;
4841
4854
 
4842
4855
  return _regenerator2.default.wrap(function _callee16$(_context16) {
@@ -4892,7 +4905,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4892
4905
  }));
4893
4906
 
4894
4907
  return function (_x12) {
4895
- return _ref31.apply(this, arguments);
4908
+ return _ref32.apply(this, arguments);
4896
4909
  };
4897
4910
  }(),
4898
4911
  onFocus: function onFocus(e) {
@@ -4949,8 +4962,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
4949
4962
  _this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
4950
4963
  },
4951
4964
  defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
4952
- ref: function ref(_ref32) {
4953
- return _this8["inputCzkAmount"] = _ref32;
4965
+ ref: function ref(_ref33) {
4966
+ return _this8["inputCzkAmount"] = _ref33;
4954
4967
  },
4955
4968
  onFocus: function onFocus(e) {
4956
4969
  _this8.inputkey = "inputCzkAmount";
@@ -5571,8 +5584,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
5571
5584
  _this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
5572
5585
  },
5573
5586
  defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
5574
- ref: function ref(_ref33) {
5575
- return _this8["inputJfdxAmount"] = _ref33;
5587
+ ref: function ref(_ref34) {
5588
+ return _this8["inputJfdxAmount"] = _ref34;
5576
5589
  },
5577
5590
  onFocus: function onFocus(e) {
5578
5591
  _this8.inputkey = "inputJfdxAmount";