tplus-components-touch 3.26.6 → 3.26.10
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, currentMode, maxamount, brefund, value11;
|
|
560
560
|
|
|
561
561
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
562
562
|
while (1) {
|
|
@@ -565,51 +565,38 @@ 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;
|
|
569
|
+
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
570
|
+
|
|
571
|
+
case 4:
|
|
568
572
|
_this2._val = _this2.store.paymode.currentMode.value;
|
|
569
573
|
currentMode = _this2.store.paymode.currentMode;
|
|
570
574
|
maxamount = Math.min(currentMode.maxamount, currentMode.balance);
|
|
571
575
|
|
|
572
|
-
if (
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}
|
|
576
|
-
|
|
577
|
-
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
578
|
-
duration: 4
|
|
579
|
-
});
|
|
580
|
-
_context.next = 18;
|
|
581
|
-
break;
|
|
582
|
-
|
|
583
|
-
case 9:
|
|
584
|
-
_this2.setState({
|
|
585
|
-
czkVisible: true
|
|
586
|
-
});
|
|
587
|
-
brefund = _this2.store.brefund;
|
|
588
|
-
value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance));
|
|
589
|
-
|
|
590
|
-
_this2.setState({
|
|
591
|
-
storageValue: value11
|
|
592
|
-
});
|
|
593
|
-
if (currentMode.storageCardNo) {
|
|
594
|
-
_this2.setState({
|
|
595
|
-
czkValue: currentMode.storageCardNo
|
|
576
|
+
if (_this2.store.bquick && currentMode.storageCardNo && parseFloat(_this2.store.paymode.amount) > parseFloat(maxamount)) {
|
|
577
|
+
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
578
|
+
duration: 4
|
|
596
579
|
});
|
|
597
580
|
} else {
|
|
598
581
|
_this2.setState({
|
|
599
|
-
|
|
582
|
+
czkVisible: true
|
|
600
583
|
});
|
|
601
|
-
|
|
602
|
-
|
|
584
|
+
brefund = _this2.store.brefund;
|
|
585
|
+
value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance));
|
|
603
586
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
587
|
+
_this2.setState({
|
|
588
|
+
storageValue: value11
|
|
589
|
+
});
|
|
590
|
+
if (currentMode.storageCardNo) {
|
|
591
|
+
_this2.setState({
|
|
592
|
+
czkValue: currentMode.storageCardNo
|
|
593
|
+
});
|
|
594
|
+
} else {
|
|
595
|
+
_this2.setState({
|
|
596
|
+
czkValue: null
|
|
597
|
+
});
|
|
598
|
+
}
|
|
607
599
|
}
|
|
608
|
-
|
|
609
|
-
_context.next = 18;
|
|
610
|
-
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
611
|
-
|
|
612
|
-
case 18:
|
|
613
600
|
setTimeout(function () {
|
|
614
601
|
if (!currentMode.storageCardNo) {
|
|
615
602
|
_this2.czkInput && _this2.czkInput.input.focus();
|
|
@@ -622,7 +609,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
622
609
|
}, 500);
|
|
623
610
|
_this2.connectRfCard();
|
|
624
611
|
|
|
625
|
-
case
|
|
612
|
+
case 10:
|
|
626
613
|
case 'end':
|
|
627
614
|
return _context.stop();
|
|
628
615
|
}
|
|
@@ -714,7 +701,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
714
701
|
// 判断是否有密码
|
|
715
702
|
_this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum;
|
|
716
703
|
|
|
717
|
-
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
704
|
+
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled && !_this2.store.dto.FreePaymentPasswordStore) {
|
|
718
705
|
_this2.setState({
|
|
719
706
|
showSetPwdModal: true,
|
|
720
707
|
btnDissabled: true
|
|
@@ -827,13 +814,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
827
814
|
}, _callee4, _this3);
|
|
828
815
|
}));
|
|
829
816
|
|
|
817
|
+
_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;
|
|
823
|
+
|
|
824
|
+
if (field === 'newPass' && newPass.length === 6) {
|
|
825
|
+
_this2.inputConfirmAmount.input.focus();
|
|
826
|
+
}
|
|
827
|
+
if (field === 'newPassConfirm' && newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
828
|
+
_this2.handleSetModal();
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
|
|
830
832
|
_this2.setPwdValue = function (field, value) {
|
|
833
|
+
if (!/^[0-9]*$/.test(value)) {
|
|
834
|
+
return;
|
|
835
|
+
}
|
|
831
836
|
_this2.setState((0, _defineProperty3.default)({}, field, value), function () {
|
|
832
|
-
var
|
|
833
|
-
|
|
834
|
-
newPass =
|
|
835
|
-
|
|
836
|
-
newPassConfirm =
|
|
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;
|
|
837
842
|
|
|
838
843
|
if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
839
844
|
_this2.setState({
|
|
@@ -844,15 +849,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
844
849
|
};
|
|
845
850
|
|
|
846
851
|
_this2.handleBlur = function (field) {
|
|
847
|
-
var
|
|
848
|
-
|
|
849
|
-
newPass =
|
|
850
|
-
|
|
851
|
-
newPassConfirm =
|
|
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;
|
|
852
857
|
|
|
853
858
|
setTimeout(function () {
|
|
854
|
-
var
|
|
855
|
-
showSetPwdModal =
|
|
859
|
+
var _ref8 = _this2.state || {},
|
|
860
|
+
showSetPwdModal = _ref8.showSetPwdModal;
|
|
856
861
|
|
|
857
862
|
if (!showSetPwdModal) return;
|
|
858
863
|
if (field === 'newPass' && newPass.length < 6) {
|
|
@@ -909,8 +914,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
909
914
|
|
|
910
915
|
// TODO: 测试优惠券支付
|
|
911
916
|
|
|
912
|
-
var
|
|
913
|
-
isNewRetailBCPos =
|
|
917
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
918
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
914
919
|
|
|
915
920
|
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
|
916
921
|
_this2.store.getCouponList();
|
|
@@ -994,8 +999,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
994
999
|
};
|
|
995
1000
|
|
|
996
1001
|
_this2.checkOfflineEnable = function (paymode, key) {
|
|
997
|
-
var
|
|
998
|
-
paymodes =
|
|
1002
|
+
var _ref10 = paymode || {},
|
|
1003
|
+
paymodes = _ref10.paymodes;
|
|
999
1004
|
|
|
1000
1005
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
1001
1006
|
|
|
@@ -1345,8 +1350,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1345
1350
|
return;
|
|
1346
1351
|
}
|
|
1347
1352
|
|
|
1348
|
-
var
|
|
1349
|
-
isNewRetailBCPos =
|
|
1353
|
+
var _ref11 = _mutantsUtil.platform || {},
|
|
1354
|
+
isNewRetailBCPos = _ref11.isNewRetailBCPos;
|
|
1350
1355
|
|
|
1351
1356
|
if (isNewRetailBCPos) {
|
|
1352
1357
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1826,13 +1831,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1826
1831
|
if (_this2.hasElectron === false) return;
|
|
1827
1832
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1828
1833
|
|
|
1829
|
-
var
|
|
1830
|
-
guestshow_enable =
|
|
1831
|
-
guestshow_clear =
|
|
1832
|
-
guestshow_welcome =
|
|
1833
|
-
guestshow_collect =
|
|
1834
|
-
guestshow_refund =
|
|
1835
|
-
guestshow_change =
|
|
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;
|
|
1836
1841
|
|
|
1837
1842
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1838
1843
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1867,9 +1872,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1867
1872
|
};
|
|
1868
1873
|
|
|
1869
1874
|
_this2.handleSettle = function () {
|
|
1870
|
-
var
|
|
1875
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
|
1871
1876
|
var handleUserInputs = function () {
|
|
1872
|
-
var
|
|
1877
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1873
1878
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1874
1879
|
|
|
1875
1880
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -1960,7 +1965,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1960
1965
|
}));
|
|
1961
1966
|
|
|
1962
1967
|
return function handleUserInputs(_x7) {
|
|
1963
|
-
return
|
|
1968
|
+
return _ref18.apply(this, arguments);
|
|
1964
1969
|
};
|
|
1965
1970
|
}();
|
|
1966
1971
|
|
|
@@ -2063,7 +2068,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2063
2068
|
});
|
|
2064
2069
|
|
|
2065
2070
|
commit = function () {
|
|
2066
|
-
var
|
|
2071
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2067
2072
|
var result;
|
|
2068
2073
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2069
2074
|
while (1) {
|
|
@@ -2137,7 +2142,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2137
2142
|
}));
|
|
2138
2143
|
|
|
2139
2144
|
return function commit(_x6) {
|
|
2140
|
-
return
|
|
2145
|
+
return _ref17.apply(this, arguments);
|
|
2141
2146
|
};
|
|
2142
2147
|
}();
|
|
2143
2148
|
|
|
@@ -2152,13 +2157,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2152
2157
|
}));
|
|
2153
2158
|
|
|
2154
2159
|
return function (_x5) {
|
|
2155
|
-
return
|
|
2160
|
+
return _ref16.apply(this, arguments);
|
|
2156
2161
|
};
|
|
2157
2162
|
}();
|
|
2158
2163
|
|
|
2159
2164
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2160
2165
|
var handleUserInputs = function () {
|
|
2161
|
-
var
|
|
2166
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
|
2162
2167
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2163
2168
|
|
|
2164
2169
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
@@ -2255,11 +2260,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2255
2260
|
}));
|
|
2256
2261
|
|
|
2257
2262
|
return function handleUserInputs(_x9) {
|
|
2258
|
-
return
|
|
2263
|
+
return _ref22.apply(this, arguments);
|
|
2259
2264
|
};
|
|
2260
2265
|
}();
|
|
2261
2266
|
|
|
2262
|
-
var that, curmode, promises,
|
|
2267
|
+
var that, curmode, promises, _ref20, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
|
2263
2268
|
|
|
2264
2269
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2265
2270
|
while (1) {
|
|
@@ -2268,14 +2273,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2268
2273
|
that = _this2;
|
|
2269
2274
|
curmode = _this2.store.paymode.currentMode;
|
|
2270
2275
|
promises = [];
|
|
2271
|
-
|
|
2276
|
+
_ref20 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref20.isNewRetailBCPos;
|
|
2272
2277
|
|
|
2273
2278
|
if (isNewRetailBCPos) {
|
|
2274
2279
|
if (curmode.value > 0) {
|
|
2275
2280
|
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2276
2281
|
|
|
2277
2282
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2278
|
-
if (curmode.cardTypeEnum === 'BALANCE_CARD' || curmode.isNeedPassword) {
|
|
2283
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD' && !_this2.store.dto.FreePaymentPasswordStore || curmode.isNeedPassword) {
|
|
2279
2284
|
promises.push(that.inputPwd(curmode));
|
|
2280
2285
|
}
|
|
2281
2286
|
}
|
|
@@ -2287,7 +2292,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2287
2292
|
}
|
|
2288
2293
|
|
|
2289
2294
|
commit = function () {
|
|
2290
|
-
var
|
|
2295
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
|
2291
2296
|
var result;
|
|
2292
2297
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2293
2298
|
while (1) {
|
|
@@ -2337,7 +2342,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2337
2342
|
}));
|
|
2338
2343
|
|
|
2339
2344
|
return function commit(_x8) {
|
|
2340
|
-
return
|
|
2345
|
+
return _ref21.apply(this, arguments);
|
|
2341
2346
|
};
|
|
2342
2347
|
}();
|
|
2343
2348
|
|
|
@@ -2388,7 +2393,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2388
2393
|
};
|
|
2389
2394
|
|
|
2390
2395
|
_this2.inputPwd = function () {
|
|
2391
|
-
var
|
|
2396
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
|
2392
2397
|
var that, confirmPwd;
|
|
2393
2398
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2394
2399
|
while (1) {
|
|
@@ -2404,8 +2409,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2404
2409
|
// if (v !== '') {
|
|
2405
2410
|
modal.destroy();
|
|
2406
2411
|
|
|
2407
|
-
var
|
|
2408
|
-
confirmPwd =
|
|
2412
|
+
var _ref24 = that.state || {},
|
|
2413
|
+
confirmPwd = _ref24.confirmPwd;
|
|
2409
2414
|
|
|
2410
2415
|
setTimeout(function () {
|
|
2411
2416
|
paymode.authCode = v;
|
|
@@ -2495,8 +2500,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2495
2500
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2496
2501
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2497
2502
|
|
|
2498
|
-
var
|
|
2499
|
-
confirmPwd =
|
|
2503
|
+
var _ref25 = that.state || {},
|
|
2504
|
+
confirmPwd = _ref25.confirmPwd;
|
|
2500
2505
|
// if (v !== '') {
|
|
2501
2506
|
|
|
2502
2507
|
|
|
@@ -2537,7 +2542,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2537
2542
|
}));
|
|
2538
2543
|
|
|
2539
2544
|
return function (_x10) {
|
|
2540
|
-
return
|
|
2545
|
+
return _ref23.apply(this, arguments);
|
|
2541
2546
|
};
|
|
2542
2547
|
}();
|
|
2543
2548
|
|
|
@@ -2590,8 +2595,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2590
2595
|
|
|
2591
2596
|
_this2.onCzkChange = function (v) {
|
|
2592
2597
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2593
|
-
var
|
|
2594
|
-
isNewRetailBCPos =
|
|
2598
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
2599
|
+
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
2595
2600
|
|
|
2596
2601
|
if (!isNewRetailBCPos) {
|
|
2597
2602
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3172,22 +3177,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3172
3177
|
|
|
3173
3178
|
_this2.hasElectron = hasElectron;
|
|
3174
3179
|
|
|
3175
|
-
var
|
|
3176
|
-
|
|
3180
|
+
var _ref27 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3181
|
+
_ref27$loginInfo = _ref27.loginInfo;
|
|
3177
3182
|
|
|
3178
|
-
|
|
3179
|
-
var MemberMeStorageCardInputByKeyBoard =
|
|
3180
|
-
ICCardServer =
|
|
3181
|
-
ICCardPassword =
|
|
3183
|
+
_ref27$loginInfo = _ref27$loginInfo === undefined ? {} : _ref27$loginInfo;
|
|
3184
|
+
var MemberMeStorageCardInputByKeyBoard = _ref27$loginInfo.MemberMeStorageCardInputByKeyBoard,
|
|
3185
|
+
ICCardServer = _ref27$loginInfo.ICCardServer,
|
|
3186
|
+
ICCardPassword = _ref27$loginInfo.ICCardPassword;
|
|
3182
3187
|
|
|
3183
3188
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3184
3189
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3185
3190
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3186
3191
|
//移动端环境下,没有读取IC卡的方式。
|
|
3187
3192
|
|
|
3188
|
-
var
|
|
3189
|
-
isHorizontalPad =
|
|
3190
|
-
isHorizontalSunMi =
|
|
3193
|
+
var _ref28 = _mutantsUtil.platform || {},
|
|
3194
|
+
isHorizontalPad = _ref28.isHorizontalPad,
|
|
3195
|
+
isHorizontalSunMi = _ref28.isHorizontalSunMi;
|
|
3191
3196
|
|
|
3192
3197
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3193
3198
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3422,10 +3427,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3422
3427
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3423
3428
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3424
3429
|
storageValue = _state2.storageValue,
|
|
3425
|
-
czkValue = _state2.czkValue
|
|
3430
|
+
czkValue = _state2.czkValue,
|
|
3431
|
+
newPassConfirm = _state2.newPassConfirm,
|
|
3432
|
+
newPass = _state2.newPass;
|
|
3426
3433
|
|
|
3427
|
-
var
|
|
3428
|
-
isNewRetailBCPos =
|
|
3434
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3435
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
3429
3436
|
|
|
3430
3437
|
var _store2 = this.store,
|
|
3431
3438
|
paymode = _store2.paymode,
|
|
@@ -3488,11 +3495,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3488
3495
|
quantity4 = 0;
|
|
3489
3496
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3490
3497
|
|
|
3491
|
-
var
|
|
3492
|
-
|
|
3493
|
-
buyQuantity =
|
|
3494
|
-
|
|
3495
|
-
returnQuantity =
|
|
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;
|
|
3496
3503
|
|
|
3497
3504
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3498
3505
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4829,7 +4836,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4829
4836
|
return _this8.czkInput = input;
|
|
4830
4837
|
},
|
|
4831
4838
|
onKeyDown: function () {
|
|
4832
|
-
var
|
|
4839
|
+
var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4833
4840
|
var time, _paymode;
|
|
4834
4841
|
|
|
4835
4842
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
@@ -4885,7 +4892,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4885
4892
|
}));
|
|
4886
4893
|
|
|
4887
4894
|
return function (_x12) {
|
|
4888
|
-
return
|
|
4895
|
+
return _ref31.apply(this, arguments);
|
|
4889
4896
|
};
|
|
4890
4897
|
}(),
|
|
4891
4898
|
onFocus: function onFocus(e) {
|
|
@@ -4942,8 +4949,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4942
4949
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4943
4950
|
},
|
|
4944
4951
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
4945
|
-
ref: function ref(
|
|
4946
|
-
return _this8["inputCzkAmount"] =
|
|
4952
|
+
ref: function ref(_ref32) {
|
|
4953
|
+
return _this8["inputCzkAmount"] = _ref32;
|
|
4947
4954
|
},
|
|
4948
4955
|
onFocus: function onFocus(e) {
|
|
4949
4956
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5033,21 +5040,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5033
5040
|
_react2.default.createElement(
|
|
5034
5041
|
'div',
|
|
5035
5042
|
{ className: 'two' },
|
|
5036
|
-
_react2.default.createElement(
|
|
5043
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5037
5044
|
className: 'content',
|
|
5038
|
-
newType: 'positive',
|
|
5039
|
-
bordered: true,
|
|
5040
5045
|
placeholder: '\u8BF7\u8F93\u51656\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5041
5046
|
style: { width: 266, height: 32 },
|
|
5042
5047
|
maxLength: 6,
|
|
5048
|
+
value: newPass,
|
|
5043
5049
|
ref: function ref(input) {
|
|
5044
5050
|
return _this8.inputNewAmount = input;
|
|
5045
5051
|
},
|
|
5046
5052
|
onChange: function onChange(value) {
|
|
5047
|
-
return _this8.setPwdValue('newPass', value);
|
|
5053
|
+
return _this8.setPwdValue('newPass', value.target.value);
|
|
5048
5054
|
},
|
|
5049
5055
|
onBlur: function onBlur(value) {
|
|
5050
5056
|
return _this8.handleBlur('newPass');
|
|
5057
|
+
},
|
|
5058
|
+
onPressEnter: function onPressEnter() {
|
|
5059
|
+
return _this8.onPressEnterCzk('newPass');
|
|
5051
5060
|
}
|
|
5052
5061
|
})
|
|
5053
5062
|
)
|
|
@@ -5063,21 +5072,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5063
5072
|
_react2.default.createElement(
|
|
5064
5073
|
'div',
|
|
5065
5074
|
{ className: 'two' },
|
|
5066
|
-
_react2.default.createElement(
|
|
5075
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5067
5076
|
className: 'content',
|
|
5068
|
-
newType: 'positive',
|
|
5069
|
-
bordered: true,
|
|
5070
5077
|
placeholder: '\u8BF7\u786E\u8BA46\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5071
5078
|
style: { width: 266, height: 32 },
|
|
5072
5079
|
maxLength: 6,
|
|
5080
|
+
value: newPassConfirm,
|
|
5073
5081
|
ref: function ref(input) {
|
|
5074
5082
|
return _this8.inputConfirmAmount = input;
|
|
5075
5083
|
},
|
|
5076
5084
|
onChange: function onChange(value) {
|
|
5077
|
-
return _this8.setPwdValue('newPassConfirm', value);
|
|
5085
|
+
return _this8.setPwdValue('newPassConfirm', value.target.value);
|
|
5078
5086
|
},
|
|
5079
5087
|
onBlur: function onBlur(value) {
|
|
5080
5088
|
return _this8.handleBlur('newPassConfirm');
|
|
5089
|
+
},
|
|
5090
|
+
onPressEnter: function onPressEnter() {
|
|
5091
|
+
return _this8.onPressEnterCzk('newPassConfirm');
|
|
5081
5092
|
}
|
|
5082
5093
|
})
|
|
5083
5094
|
)
|
|
@@ -5560,8 +5571,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5560
5571
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5561
5572
|
},
|
|
5562
5573
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5563
|
-
ref: function ref(
|
|
5564
|
-
return _this8["inputJfdxAmount"] =
|
|
5574
|
+
ref: function ref(_ref33) {
|
|
5575
|
+
return _this8["inputJfdxAmount"] = _ref33;
|
|
5565
5576
|
},
|
|
5566
5577
|
onFocus: function onFocus(e) {
|
|
5567
5578
|
_this8.inputkey = "inputJfdxAmount";
|