tplus-components-touch 3.26.8 → 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.
- package/dist/components/billSearch/index.js +14 -14
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -4
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +12 -8
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/input/scanInput.js +98 -0
- package/dist/components/input/scanInput.js.map +1 -0
- package/dist/components/input/scanInput.less +28 -0
- package/dist/components/inventorySearch/store.js +31 -12
- package/dist/components/inventorySearch/store.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +9 -2
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +13 -4
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +13 -4
- package/dist/components/message/index.js +8 -5
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/settlement/settlement.js +132 -116
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +53 -51
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/socket/index.js +6 -5
- package/dist/components/socket/index.js.map +1 -1
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,51 +565,46 @@ 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
|
-
_this2.
|
|
569
|
-
|
|
570
|
-
maxamount = Math.min(currentMode.maxamount, currentMode.balance);
|
|
568
|
+
_ref2 = _this2.state || {}, isInputMember = _ref2.isInputMember;
|
|
569
|
+
_context.t0 = isInputMember && _this2.store.paymode.currentMode.memberId;
|
|
571
570
|
|
|
572
|
-
if (!
|
|
573
|
-
_context.next =
|
|
571
|
+
if (!_context.t0) {
|
|
572
|
+
_context.next = 7;
|
|
574
573
|
break;
|
|
575
574
|
}
|
|
576
575
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
});
|
|
580
|
-
_context.next = 18;
|
|
581
|
-
break;
|
|
576
|
+
_context.next = 7;
|
|
577
|
+
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
582
578
|
|
|
583
|
-
case
|
|
584
|
-
_this2.
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
brefund = _this2.store.brefund;
|
|
588
|
-
value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance));
|
|
579
|
+
case 7:
|
|
580
|
+
_this2._val = _this2.store.paymode.currentMode.value;
|
|
581
|
+
currentMode = _this2.store.paymode.currentMode;
|
|
582
|
+
maxamount = Math.min(currentMode.maxamount, currentMode.balance);
|
|
589
583
|
|
|
590
|
-
_this2.
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
if (currentMode.storageCardNo) {
|
|
594
|
-
_this2.setState({
|
|
595
|
-
czkValue: currentMode.storageCardNo
|
|
584
|
+
if (_this2.store.bquick && currentMode.storageCardNo && parseFloat(_this2.store.paymode.amount) > parseFloat(maxamount)) {
|
|
585
|
+
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
586
|
+
duration: 4
|
|
596
587
|
});
|
|
597
588
|
} else {
|
|
598
589
|
_this2.setState({
|
|
599
|
-
|
|
590
|
+
czkVisible: true
|
|
600
591
|
});
|
|
601
|
-
|
|
602
|
-
|
|
592
|
+
brefund = _this2.store.brefund;
|
|
593
|
+
value11 = currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance));
|
|
603
594
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
595
|
+
_this2.setState({
|
|
596
|
+
storageValue: value11
|
|
597
|
+
});
|
|
598
|
+
if (currentMode.storageCardNo) {
|
|
599
|
+
_this2.setState({
|
|
600
|
+
czkValue: currentMode.storageCardNo
|
|
601
|
+
});
|
|
602
|
+
} else {
|
|
603
|
+
_this2.setState({
|
|
604
|
+
czkValue: null
|
|
605
|
+
});
|
|
606
|
+
}
|
|
607
607
|
}
|
|
608
|
-
|
|
609
|
-
_context.next = 18;
|
|
610
|
-
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
611
|
-
|
|
612
|
-
case 18:
|
|
613
608
|
setTimeout(function () {
|
|
614
609
|
if (!currentMode.storageCardNo) {
|
|
615
610
|
_this2.czkInput && _this2.czkInput.input.focus();
|
|
@@ -622,7 +617,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
622
617
|
}, 500);
|
|
623
618
|
_this2.connectRfCard();
|
|
624
619
|
|
|
625
|
-
case
|
|
620
|
+
case 13:
|
|
626
621
|
case 'end':
|
|
627
622
|
return _context.stop();
|
|
628
623
|
}
|
|
@@ -704,7 +699,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
704
699
|
}));
|
|
705
700
|
|
|
706
701
|
_this2.handleCzkOk = function () {
|
|
707
|
-
var
|
|
702
|
+
var _ref4 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
|
|
708
703
|
var _this2$store$paymode$, walletEnabled, cardTypeEnum;
|
|
709
704
|
|
|
710
705
|
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
@@ -714,7 +709,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
714
709
|
// 判断是否有密码
|
|
715
710
|
_this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum;
|
|
716
711
|
|
|
717
|
-
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
712
|
+
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled && !_this2.store.dto.FreePaymentPasswordStore) {
|
|
718
713
|
_this2.setState({
|
|
719
714
|
showSetPwdModal: true,
|
|
720
715
|
btnDissabled: true
|
|
@@ -732,7 +727,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
732
727
|
}));
|
|
733
728
|
|
|
734
729
|
return function (_x4) {
|
|
735
|
-
return
|
|
730
|
+
return _ref4.apply(this, arguments);
|
|
736
731
|
};
|
|
737
732
|
}();
|
|
738
733
|
|
|
@@ -827,13 +822,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
827
822
|
}, _callee4, _this3);
|
|
828
823
|
}));
|
|
829
824
|
|
|
825
|
+
_this2.onPressEnterCzk = function (field) {
|
|
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;
|
|
831
|
+
|
|
832
|
+
if (field === 'newPass' && newPass.length === 6) {
|
|
833
|
+
_this2.inputConfirmAmount.input.focus();
|
|
834
|
+
}
|
|
835
|
+
if (field === 'newPassConfirm' && newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
836
|
+
_this2.handleSetModal();
|
|
837
|
+
}
|
|
838
|
+
};
|
|
839
|
+
|
|
830
840
|
_this2.setPwdValue = function (field, value) {
|
|
841
|
+
if (!/^[0-9]*$/.test(value)) {
|
|
842
|
+
return;
|
|
843
|
+
}
|
|
831
844
|
_this2.setState((0, _defineProperty3.default)({}, field, value), function () {
|
|
832
|
-
var
|
|
833
|
-
|
|
834
|
-
newPass =
|
|
835
|
-
|
|
836
|
-
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;
|
|
837
850
|
|
|
838
851
|
if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
839
852
|
_this2.setState({
|
|
@@ -844,15 +857,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
844
857
|
};
|
|
845
858
|
|
|
846
859
|
_this2.handleBlur = function (field) {
|
|
847
|
-
var
|
|
848
|
-
|
|
849
|
-
newPass =
|
|
850
|
-
|
|
851
|
-
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;
|
|
852
865
|
|
|
853
866
|
setTimeout(function () {
|
|
854
|
-
var
|
|
855
|
-
showSetPwdModal =
|
|
867
|
+
var _ref9 = _this2.state || {},
|
|
868
|
+
showSetPwdModal = _ref9.showSetPwdModal;
|
|
856
869
|
|
|
857
870
|
if (!showSetPwdModal) return;
|
|
858
871
|
if (field === 'newPass' && newPass.length < 6) {
|
|
@@ -909,8 +922,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
909
922
|
|
|
910
923
|
// TODO: 测试优惠券支付
|
|
911
924
|
|
|
912
|
-
var
|
|
913
|
-
isNewRetailBCPos =
|
|
925
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
926
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
914
927
|
|
|
915
928
|
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
|
916
929
|
_this2.store.getCouponList();
|
|
@@ -994,8 +1007,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
994
1007
|
};
|
|
995
1008
|
|
|
996
1009
|
_this2.checkOfflineEnable = function (paymode, key) {
|
|
997
|
-
var
|
|
998
|
-
paymodes =
|
|
1010
|
+
var _ref11 = paymode || {},
|
|
1011
|
+
paymodes = _ref11.paymodes;
|
|
999
1012
|
|
|
1000
1013
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
1001
1014
|
|
|
@@ -1345,8 +1358,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1345
1358
|
return;
|
|
1346
1359
|
}
|
|
1347
1360
|
|
|
1348
|
-
var
|
|
1349
|
-
isNewRetailBCPos =
|
|
1361
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1362
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1350
1363
|
|
|
1351
1364
|
if (isNewRetailBCPos) {
|
|
1352
1365
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1826,13 +1839,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1826
1839
|
if (_this2.hasElectron === false) return;
|
|
1827
1840
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1828
1841
|
|
|
1829
|
-
var
|
|
1830
|
-
guestshow_enable =
|
|
1831
|
-
guestshow_clear =
|
|
1832
|
-
guestshow_welcome =
|
|
1833
|
-
guestshow_collect =
|
|
1834
|
-
guestshow_refund =
|
|
1835
|
-
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;
|
|
1836
1849
|
|
|
1837
1850
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1838
1851
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1867,9 +1880,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1867
1880
|
};
|
|
1868
1881
|
|
|
1869
1882
|
_this2.handleSettle = function () {
|
|
1870
|
-
var
|
|
1883
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
|
1871
1884
|
var handleUserInputs = function () {
|
|
1872
|
-
var
|
|
1885
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1873
1886
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1874
1887
|
|
|
1875
1888
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -1960,7 +1973,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1960
1973
|
}));
|
|
1961
1974
|
|
|
1962
1975
|
return function handleUserInputs(_x7) {
|
|
1963
|
-
return
|
|
1976
|
+
return _ref19.apply(this, arguments);
|
|
1964
1977
|
};
|
|
1965
1978
|
}();
|
|
1966
1979
|
|
|
@@ -2063,7 +2076,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2063
2076
|
});
|
|
2064
2077
|
|
|
2065
2078
|
commit = function () {
|
|
2066
|
-
var
|
|
2079
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2067
2080
|
var result;
|
|
2068
2081
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2069
2082
|
while (1) {
|
|
@@ -2137,7 +2150,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2137
2150
|
}));
|
|
2138
2151
|
|
|
2139
2152
|
return function commit(_x6) {
|
|
2140
|
-
return
|
|
2153
|
+
return _ref18.apply(this, arguments);
|
|
2141
2154
|
};
|
|
2142
2155
|
}();
|
|
2143
2156
|
|
|
@@ -2152,13 +2165,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2152
2165
|
}));
|
|
2153
2166
|
|
|
2154
2167
|
return function (_x5) {
|
|
2155
|
-
return
|
|
2168
|
+
return _ref17.apply(this, arguments);
|
|
2156
2169
|
};
|
|
2157
2170
|
}();
|
|
2158
2171
|
|
|
2159
2172
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2160
2173
|
var handleUserInputs = function () {
|
|
2161
|
-
var
|
|
2174
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
|
2162
2175
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2163
2176
|
|
|
2164
2177
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
@@ -2255,11 +2268,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2255
2268
|
}));
|
|
2256
2269
|
|
|
2257
2270
|
return function handleUserInputs(_x9) {
|
|
2258
|
-
return
|
|
2271
|
+
return _ref23.apply(this, arguments);
|
|
2259
2272
|
};
|
|
2260
2273
|
}();
|
|
2261
2274
|
|
|
2262
|
-
var that, curmode, promises,
|
|
2275
|
+
var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
|
2263
2276
|
|
|
2264
2277
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2265
2278
|
while (1) {
|
|
@@ -2268,14 +2281,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2268
2281
|
that = _this2;
|
|
2269
2282
|
curmode = _this2.store.paymode.currentMode;
|
|
2270
2283
|
promises = [];
|
|
2271
|
-
|
|
2284
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
2272
2285
|
|
|
2273
2286
|
if (isNewRetailBCPos) {
|
|
2274
2287
|
if (curmode.value > 0) {
|
|
2275
2288
|
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2276
2289
|
|
|
2277
2290
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2278
|
-
if (curmode.cardTypeEnum === 'BALANCE_CARD' || curmode.isNeedPassword) {
|
|
2291
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD' && !_this2.store.dto.FreePaymentPasswordStore || curmode.isNeedPassword) {
|
|
2279
2292
|
promises.push(that.inputPwd(curmode));
|
|
2280
2293
|
}
|
|
2281
2294
|
}
|
|
@@ -2287,7 +2300,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2287
2300
|
}
|
|
2288
2301
|
|
|
2289
2302
|
commit = function () {
|
|
2290
|
-
var
|
|
2303
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
|
2291
2304
|
var result;
|
|
2292
2305
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2293
2306
|
while (1) {
|
|
@@ -2337,7 +2350,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2337
2350
|
}));
|
|
2338
2351
|
|
|
2339
2352
|
return function commit(_x8) {
|
|
2340
|
-
return
|
|
2353
|
+
return _ref22.apply(this, arguments);
|
|
2341
2354
|
};
|
|
2342
2355
|
}();
|
|
2343
2356
|
|
|
@@ -2388,7 +2401,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2388
2401
|
};
|
|
2389
2402
|
|
|
2390
2403
|
_this2.inputPwd = function () {
|
|
2391
|
-
var
|
|
2404
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
|
2392
2405
|
var that, confirmPwd;
|
|
2393
2406
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2394
2407
|
while (1) {
|
|
@@ -2404,8 +2417,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2404
2417
|
// if (v !== '') {
|
|
2405
2418
|
modal.destroy();
|
|
2406
2419
|
|
|
2407
|
-
var
|
|
2408
|
-
confirmPwd =
|
|
2420
|
+
var _ref25 = that.state || {},
|
|
2421
|
+
confirmPwd = _ref25.confirmPwd;
|
|
2409
2422
|
|
|
2410
2423
|
setTimeout(function () {
|
|
2411
2424
|
paymode.authCode = v;
|
|
@@ -2495,8 +2508,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2495
2508
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2496
2509
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2497
2510
|
|
|
2498
|
-
var
|
|
2499
|
-
confirmPwd =
|
|
2511
|
+
var _ref26 = that.state || {},
|
|
2512
|
+
confirmPwd = _ref26.confirmPwd;
|
|
2500
2513
|
// if (v !== '') {
|
|
2501
2514
|
|
|
2502
2515
|
|
|
@@ -2537,7 +2550,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2537
2550
|
}));
|
|
2538
2551
|
|
|
2539
2552
|
return function (_x10) {
|
|
2540
|
-
return
|
|
2553
|
+
return _ref24.apply(this, arguments);
|
|
2541
2554
|
};
|
|
2542
2555
|
}();
|
|
2543
2556
|
|
|
@@ -2590,8 +2603,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2590
2603
|
|
|
2591
2604
|
_this2.onCzkChange = function (v) {
|
|
2592
2605
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2593
|
-
var
|
|
2594
|
-
isNewRetailBCPos =
|
|
2606
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2607
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
2595
2608
|
|
|
2596
2609
|
if (!isNewRetailBCPos) {
|
|
2597
2610
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3172,22 +3185,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3172
3185
|
|
|
3173
3186
|
_this2.hasElectron = hasElectron;
|
|
3174
3187
|
|
|
3175
|
-
var
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
var MemberMeStorageCardInputByKeyBoard = _ref26$loginInfo.MemberMeStorageCardInputByKeyBoard,
|
|
3180
|
-
ICCardServer = _ref26$loginInfo.ICCardServer,
|
|
3181
|
-
ICCardPassword = _ref26$loginInfo.ICCardPassword;
|
|
3188
|
+
var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3189
|
+
MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
|
|
3190
|
+
ICCardServer = _ref28.ICCardServer,
|
|
3191
|
+
ICCardPassword = _ref28.ICCardPassword;
|
|
3182
3192
|
|
|
3183
3193
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3184
3194
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3185
3195
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3186
3196
|
//移动端环境下,没有读取IC卡的方式。
|
|
3187
3197
|
|
|
3188
|
-
var
|
|
3189
|
-
isHorizontalPad =
|
|
3190
|
-
isHorizontalSunMi =
|
|
3198
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3199
|
+
isHorizontalPad = _ref29.isHorizontalPad,
|
|
3200
|
+
isHorizontalSunMi = _ref29.isHorizontalSunMi;
|
|
3191
3201
|
|
|
3192
3202
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3193
3203
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3422,10 +3432,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3422
3432
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3423
3433
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3424
3434
|
storageValue = _state2.storageValue,
|
|
3425
|
-
czkValue = _state2.czkValue
|
|
3435
|
+
czkValue = _state2.czkValue,
|
|
3436
|
+
newPassConfirm = _state2.newPassConfirm,
|
|
3437
|
+
newPass = _state2.newPass;
|
|
3426
3438
|
|
|
3427
|
-
var
|
|
3428
|
-
isNewRetailBCPos =
|
|
3439
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
3440
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
3429
3441
|
|
|
3430
3442
|
var _store2 = this.store,
|
|
3431
3443
|
paymode = _store2.paymode,
|
|
@@ -3488,11 +3500,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3488
3500
|
quantity4 = 0;
|
|
3489
3501
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3490
3502
|
|
|
3491
|
-
var
|
|
3492
|
-
|
|
3493
|
-
buyQuantity =
|
|
3494
|
-
|
|
3495
|
-
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;
|
|
3496
3508
|
|
|
3497
3509
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3498
3510
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4829,7 +4841,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4829
4841
|
return _this8.czkInput = input;
|
|
4830
4842
|
},
|
|
4831
4843
|
onKeyDown: function () {
|
|
4832
|
-
var
|
|
4844
|
+
var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4833
4845
|
var time, _paymode;
|
|
4834
4846
|
|
|
4835
4847
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
@@ -4885,7 +4897,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4885
4897
|
}));
|
|
4886
4898
|
|
|
4887
4899
|
return function (_x12) {
|
|
4888
|
-
return
|
|
4900
|
+
return _ref32.apply(this, arguments);
|
|
4889
4901
|
};
|
|
4890
4902
|
}(),
|
|
4891
4903
|
onFocus: function onFocus(e) {
|
|
@@ -4942,8 +4954,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4942
4954
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4943
4955
|
},
|
|
4944
4956
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
4945
|
-
ref: function ref(
|
|
4946
|
-
return _this8["inputCzkAmount"] =
|
|
4957
|
+
ref: function ref(_ref33) {
|
|
4958
|
+
return _this8["inputCzkAmount"] = _ref33;
|
|
4947
4959
|
},
|
|
4948
4960
|
onFocus: function onFocus(e) {
|
|
4949
4961
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5033,21 +5045,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5033
5045
|
_react2.default.createElement(
|
|
5034
5046
|
'div',
|
|
5035
5047
|
{ className: 'two' },
|
|
5036
|
-
_react2.default.createElement(
|
|
5048
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5037
5049
|
className: 'content',
|
|
5038
|
-
newType: 'positive',
|
|
5039
|
-
bordered: true,
|
|
5040
5050
|
placeholder: '\u8BF7\u8F93\u51656\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5041
5051
|
style: { width: 266, height: 32 },
|
|
5042
5052
|
maxLength: 6,
|
|
5053
|
+
value: newPass,
|
|
5043
5054
|
ref: function ref(input) {
|
|
5044
5055
|
return _this8.inputNewAmount = input;
|
|
5045
5056
|
},
|
|
5046
5057
|
onChange: function onChange(value) {
|
|
5047
|
-
return _this8.setPwdValue('newPass', value);
|
|
5058
|
+
return _this8.setPwdValue('newPass', value.target.value);
|
|
5048
5059
|
},
|
|
5049
5060
|
onBlur: function onBlur(value) {
|
|
5050
5061
|
return _this8.handleBlur('newPass');
|
|
5062
|
+
},
|
|
5063
|
+
onPressEnter: function onPressEnter() {
|
|
5064
|
+
return _this8.onPressEnterCzk('newPass');
|
|
5051
5065
|
}
|
|
5052
5066
|
})
|
|
5053
5067
|
)
|
|
@@ -5063,21 +5077,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5063
5077
|
_react2.default.createElement(
|
|
5064
5078
|
'div',
|
|
5065
5079
|
{ className: 'two' },
|
|
5066
|
-
_react2.default.createElement(
|
|
5080
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5067
5081
|
className: 'content',
|
|
5068
|
-
newType: 'positive',
|
|
5069
|
-
bordered: true,
|
|
5070
5082
|
placeholder: '\u8BF7\u786E\u8BA46\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5071
5083
|
style: { width: 266, height: 32 },
|
|
5072
5084
|
maxLength: 6,
|
|
5085
|
+
value: newPassConfirm,
|
|
5073
5086
|
ref: function ref(input) {
|
|
5074
5087
|
return _this8.inputConfirmAmount = input;
|
|
5075
5088
|
},
|
|
5076
5089
|
onChange: function onChange(value) {
|
|
5077
|
-
return _this8.setPwdValue('newPassConfirm', value);
|
|
5090
|
+
return _this8.setPwdValue('newPassConfirm', value.target.value);
|
|
5078
5091
|
},
|
|
5079
5092
|
onBlur: function onBlur(value) {
|
|
5080
5093
|
return _this8.handleBlur('newPassConfirm');
|
|
5094
|
+
},
|
|
5095
|
+
onPressEnter: function onPressEnter() {
|
|
5096
|
+
return _this8.onPressEnterCzk('newPassConfirm');
|
|
5081
5097
|
}
|
|
5082
5098
|
})
|
|
5083
5099
|
)
|
|
@@ -5560,8 +5576,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5560
5576
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5561
5577
|
},
|
|
5562
5578
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5563
|
-
ref: function ref(
|
|
5564
|
-
return _this8["inputJfdxAmount"] =
|
|
5579
|
+
ref: function ref(_ref34) {
|
|
5580
|
+
return _this8["inputJfdxAmount"] = _ref34;
|
|
5565
5581
|
},
|
|
5566
5582
|
onFocus: function onFocus(e) {
|
|
5567
5583
|
_this8.inputkey = "inputJfdxAmount";
|