tplus-components-touch 3.26.9 → 3.26.13
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 +114 -124
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlementStore.js +45 -49
- 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,18 +709,16 @@ 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
|
-
_this2.
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
// // this.handleCzkData();
|
|
728
|
-
// }
|
|
712
|
+
if (cardTypeEnum === 'BALANCE_CARD' && _this2.store.dto.FreePaymentPasswordStore) {
|
|
713
|
+
_this2.handleCzkData();
|
|
714
|
+
} else if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
715
|
+
_this2.setState({
|
|
716
|
+
showSetPwdModal: true,
|
|
717
|
+
btnDissabled: true
|
|
718
|
+
});
|
|
719
|
+
} else {
|
|
720
|
+
_this2.handleCzkData();
|
|
721
|
+
}
|
|
729
722
|
|
|
730
723
|
case 2:
|
|
731
724
|
case 'end':
|
|
@@ -736,7 +729,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
736
729
|
}));
|
|
737
730
|
|
|
738
731
|
return function (_x4) {
|
|
739
|
-
return
|
|
732
|
+
return _ref4.apply(this, arguments);
|
|
740
733
|
};
|
|
741
734
|
}();
|
|
742
735
|
|
|
@@ -832,11 +825,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
832
825
|
}));
|
|
833
826
|
|
|
834
827
|
_this2.onPressEnterCzk = function (field) {
|
|
835
|
-
var
|
|
836
|
-
|
|
837
|
-
newPass =
|
|
838
|
-
|
|
839
|
-
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;
|
|
840
833
|
|
|
841
834
|
if (field === 'newPass' && newPass.length === 6) {
|
|
842
835
|
_this2.inputConfirmAmount.input.focus();
|
|
@@ -851,11 +844,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
851
844
|
return;
|
|
852
845
|
}
|
|
853
846
|
_this2.setState((0, _defineProperty3.default)({}, field, value), function () {
|
|
854
|
-
var
|
|
855
|
-
|
|
856
|
-
newPass =
|
|
857
|
-
|
|
858
|
-
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;
|
|
859
852
|
|
|
860
853
|
if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
861
854
|
_this2.setState({
|
|
@@ -866,15 +859,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
866
859
|
};
|
|
867
860
|
|
|
868
861
|
_this2.handleBlur = function (field) {
|
|
869
|
-
var
|
|
870
|
-
|
|
871
|
-
newPass =
|
|
872
|
-
|
|
873
|
-
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;
|
|
874
867
|
|
|
875
868
|
setTimeout(function () {
|
|
876
|
-
var
|
|
877
|
-
showSetPwdModal =
|
|
869
|
+
var _ref9 = _this2.state || {},
|
|
870
|
+
showSetPwdModal = _ref9.showSetPwdModal;
|
|
878
871
|
|
|
879
872
|
if (!showSetPwdModal) return;
|
|
880
873
|
if (field === 'newPass' && newPass.length < 6) {
|
|
@@ -931,8 +924,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
931
924
|
|
|
932
925
|
// TODO: 测试优惠券支付
|
|
933
926
|
|
|
934
|
-
var
|
|
935
|
-
isNewRetailBCPos =
|
|
927
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
928
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
936
929
|
|
|
937
930
|
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
|
938
931
|
_this2.store.getCouponList();
|
|
@@ -1016,8 +1009,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1016
1009
|
};
|
|
1017
1010
|
|
|
1018
1011
|
_this2.checkOfflineEnable = function (paymode, key) {
|
|
1019
|
-
var
|
|
1020
|
-
paymodes =
|
|
1012
|
+
var _ref11 = paymode || {},
|
|
1013
|
+
paymodes = _ref11.paymodes;
|
|
1021
1014
|
|
|
1022
1015
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
1023
1016
|
|
|
@@ -1049,7 +1042,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1049
1042
|
switch (key) {
|
|
1050
1043
|
case PayStyle.hyczk:
|
|
1051
1044
|
_this2.showCzkModal(-1);
|
|
1052
|
-
_this2.
|
|
1045
|
+
_this2.setState({
|
|
1053
1046
|
isInputMember: true
|
|
1054
1047
|
});
|
|
1055
1048
|
break;
|
|
@@ -1367,8 +1360,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1367
1360
|
return;
|
|
1368
1361
|
}
|
|
1369
1362
|
|
|
1370
|
-
var
|
|
1371
|
-
isNewRetailBCPos =
|
|
1363
|
+
var _ref12 = _mutantsUtil.platform || {},
|
|
1364
|
+
isNewRetailBCPos = _ref12.isNewRetailBCPos;
|
|
1372
1365
|
|
|
1373
1366
|
if (isNewRetailBCPos) {
|
|
1374
1367
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1848,13 +1841,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1848
1841
|
if (_this2.hasElectron === false) return;
|
|
1849
1842
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1850
1843
|
|
|
1851
|
-
var
|
|
1852
|
-
guestshow_enable =
|
|
1853
|
-
guestshow_clear =
|
|
1854
|
-
guestshow_welcome =
|
|
1855
|
-
guestshow_collect =
|
|
1856
|
-
guestshow_refund =
|
|
1857
|
-
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;
|
|
1858
1851
|
|
|
1859
1852
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1860
1853
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1889,9 +1882,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1889
1882
|
};
|
|
1890
1883
|
|
|
1891
1884
|
_this2.handleSettle = function () {
|
|
1892
|
-
var
|
|
1885
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
|
1893
1886
|
var handleUserInputs = function () {
|
|
1894
|
-
var
|
|
1887
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1895
1888
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1896
1889
|
|
|
1897
1890
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -1982,7 +1975,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1982
1975
|
}));
|
|
1983
1976
|
|
|
1984
1977
|
return function handleUserInputs(_x7) {
|
|
1985
|
-
return
|
|
1978
|
+
return _ref19.apply(this, arguments);
|
|
1986
1979
|
};
|
|
1987
1980
|
}();
|
|
1988
1981
|
|
|
@@ -2085,7 +2078,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2085
2078
|
});
|
|
2086
2079
|
|
|
2087
2080
|
commit = function () {
|
|
2088
|
-
var
|
|
2081
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2089
2082
|
var result;
|
|
2090
2083
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2091
2084
|
while (1) {
|
|
@@ -2159,7 +2152,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2159
2152
|
}));
|
|
2160
2153
|
|
|
2161
2154
|
return function commit(_x6) {
|
|
2162
|
-
return
|
|
2155
|
+
return _ref18.apply(this, arguments);
|
|
2163
2156
|
};
|
|
2164
2157
|
}();
|
|
2165
2158
|
|
|
@@ -2174,13 +2167,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2174
2167
|
}));
|
|
2175
2168
|
|
|
2176
2169
|
return function (_x5) {
|
|
2177
|
-
return
|
|
2170
|
+
return _ref17.apply(this, arguments);
|
|
2178
2171
|
};
|
|
2179
2172
|
}();
|
|
2180
2173
|
|
|
2181
2174
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2182
2175
|
var handleUserInputs = function () {
|
|
2183
|
-
var
|
|
2176
|
+
var _ref23 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
|
2184
2177
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2185
2178
|
|
|
2186
2179
|
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
@@ -2277,11 +2270,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2277
2270
|
}));
|
|
2278
2271
|
|
|
2279
2272
|
return function handleUserInputs(_x9) {
|
|
2280
|
-
return
|
|
2273
|
+
return _ref23.apply(this, arguments);
|
|
2281
2274
|
};
|
|
2282
2275
|
}();
|
|
2283
2276
|
|
|
2284
|
-
var that, curmode, promises,
|
|
2277
|
+
var that, curmode, promises, _ref21, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
|
2285
2278
|
|
|
2286
2279
|
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2287
2280
|
while (1) {
|
|
@@ -2290,14 +2283,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2290
2283
|
that = _this2;
|
|
2291
2284
|
curmode = _this2.store.paymode.currentMode;
|
|
2292
2285
|
promises = [];
|
|
2293
|
-
|
|
2286
|
+
_ref21 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref21.isNewRetailBCPos;
|
|
2294
2287
|
|
|
2295
2288
|
if (isNewRetailBCPos) {
|
|
2296
2289
|
if (curmode.value > 0) {
|
|
2297
2290
|
_enumController$getEn22 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn22.PayStyle;
|
|
2298
2291
|
|
|
2299
2292
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2300
|
-
if (curmode.cardTypeEnum === 'BALANCE_CARD' || curmode.isNeedPassword) {
|
|
2293
|
+
if (curmode.cardTypeEnum === 'BALANCE_CARD' && !_this2.store.dto.FreePaymentPasswordStore || curmode.isNeedPassword) {
|
|
2301
2294
|
promises.push(that.inputPwd(curmode));
|
|
2302
2295
|
}
|
|
2303
2296
|
}
|
|
@@ -2309,7 +2302,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2309
2302
|
}
|
|
2310
2303
|
|
|
2311
2304
|
commit = function () {
|
|
2312
|
-
var
|
|
2305
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
|
2313
2306
|
var result;
|
|
2314
2307
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2315
2308
|
while (1) {
|
|
@@ -2359,7 +2352,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2359
2352
|
}));
|
|
2360
2353
|
|
|
2361
2354
|
return function commit(_x8) {
|
|
2362
|
-
return
|
|
2355
|
+
return _ref22.apply(this, arguments);
|
|
2363
2356
|
};
|
|
2364
2357
|
}();
|
|
2365
2358
|
|
|
@@ -2410,7 +2403,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2410
2403
|
};
|
|
2411
2404
|
|
|
2412
2405
|
_this2.inputPwd = function () {
|
|
2413
|
-
var
|
|
2406
|
+
var _ref24 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
|
2414
2407
|
var that, confirmPwd;
|
|
2415
2408
|
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2416
2409
|
while (1) {
|
|
@@ -2426,8 +2419,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2426
2419
|
// if (v !== '') {
|
|
2427
2420
|
modal.destroy();
|
|
2428
2421
|
|
|
2429
|
-
var
|
|
2430
|
-
confirmPwd =
|
|
2422
|
+
var _ref25 = that.state || {},
|
|
2423
|
+
confirmPwd = _ref25.confirmPwd;
|
|
2431
2424
|
|
|
2432
2425
|
setTimeout(function () {
|
|
2433
2426
|
paymode.authCode = v;
|
|
@@ -2517,8 +2510,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2517
2510
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2518
2511
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2519
2512
|
|
|
2520
|
-
var
|
|
2521
|
-
confirmPwd =
|
|
2513
|
+
var _ref26 = that.state || {},
|
|
2514
|
+
confirmPwd = _ref26.confirmPwd;
|
|
2522
2515
|
// if (v !== '') {
|
|
2523
2516
|
|
|
2524
2517
|
|
|
@@ -2559,7 +2552,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2559
2552
|
}));
|
|
2560
2553
|
|
|
2561
2554
|
return function (_x10) {
|
|
2562
|
-
return
|
|
2555
|
+
return _ref24.apply(this, arguments);
|
|
2563
2556
|
};
|
|
2564
2557
|
}();
|
|
2565
2558
|
|
|
@@ -2612,8 +2605,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2612
2605
|
|
|
2613
2606
|
_this2.onCzkChange = function (v) {
|
|
2614
2607
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2615
|
-
var
|
|
2616
|
-
isNewRetailBCPos =
|
|
2608
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
2609
|
+
isNewRetailBCPos = _ref27.isNewRetailBCPos;
|
|
2617
2610
|
|
|
2618
2611
|
if (!isNewRetailBCPos) {
|
|
2619
2612
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3194,22 +3187,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3194
3187
|
|
|
3195
3188
|
_this2.hasElectron = hasElectron;
|
|
3196
3189
|
|
|
3197
|
-
var
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
var MemberMeStorageCardInputByKeyBoard = _ref27$loginInfo.MemberMeStorageCardInputByKeyBoard,
|
|
3202
|
-
ICCardServer = _ref27$loginInfo.ICCardServer,
|
|
3203
|
-
ICCardPassword = _ref27$loginInfo.ICCardPassword;
|
|
3190
|
+
var _ref28 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3191
|
+
MemberMeStorageCardInputByKeyBoard = _ref28.MemberMeStorageCardInputByKeyBoard,
|
|
3192
|
+
ICCardServer = _ref28.ICCardServer,
|
|
3193
|
+
ICCardPassword = _ref28.ICCardPassword;
|
|
3204
3194
|
|
|
3205
3195
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3206
3196
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3207
3197
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3208
3198
|
//移动端环境下,没有读取IC卡的方式。
|
|
3209
3199
|
|
|
3210
|
-
var
|
|
3211
|
-
isHorizontalPad =
|
|
3212
|
-
isHorizontalSunMi =
|
|
3200
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3201
|
+
isHorizontalPad = _ref29.isHorizontalPad,
|
|
3202
|
+
isHorizontalSunMi = _ref29.isHorizontalSunMi;
|
|
3213
3203
|
|
|
3214
3204
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3215
3205
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3448,8 +3438,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3448
3438
|
newPassConfirm = _state2.newPassConfirm,
|
|
3449
3439
|
newPass = _state2.newPass;
|
|
3450
3440
|
|
|
3451
|
-
var
|
|
3452
|
-
isNewRetailBCPos =
|
|
3441
|
+
var _ref30 = _mutantsUtil.platform || {},
|
|
3442
|
+
isNewRetailBCPos = _ref30.isNewRetailBCPos;
|
|
3453
3443
|
|
|
3454
3444
|
var _store2 = this.store,
|
|
3455
3445
|
paymode = _store2.paymode,
|
|
@@ -3512,11 +3502,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3512
3502
|
quantity4 = 0;
|
|
3513
3503
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3514
3504
|
|
|
3515
|
-
var
|
|
3516
|
-
|
|
3517
|
-
buyQuantity =
|
|
3518
|
-
|
|
3519
|
-
returnQuantity =
|
|
3505
|
+
var _ref31 = quantityDetail || {},
|
|
3506
|
+
_ref31$buyQuantity = _ref31.buyQuantity,
|
|
3507
|
+
buyQuantity = _ref31$buyQuantity === undefined ? 0 : _ref31$buyQuantity,
|
|
3508
|
+
_ref31$returnQuantity = _ref31.returnQuantity,
|
|
3509
|
+
returnQuantity = _ref31$returnQuantity === undefined ? 0 : _ref31$returnQuantity;
|
|
3520
3510
|
|
|
3521
3511
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3522
3512
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4853,7 +4843,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4853
4843
|
return _this8.czkInput = input;
|
|
4854
4844
|
},
|
|
4855
4845
|
onKeyDown: function () {
|
|
4856
|
-
var
|
|
4846
|
+
var _ref32 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4857
4847
|
var time, _paymode;
|
|
4858
4848
|
|
|
4859
4849
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
@@ -4909,7 +4899,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4909
4899
|
}));
|
|
4910
4900
|
|
|
4911
4901
|
return function (_x12) {
|
|
4912
|
-
return
|
|
4902
|
+
return _ref32.apply(this, arguments);
|
|
4913
4903
|
};
|
|
4914
4904
|
}(),
|
|
4915
4905
|
onFocus: function onFocus(e) {
|
|
@@ -4966,8 +4956,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4966
4956
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4967
4957
|
},
|
|
4968
4958
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
4969
|
-
ref: function ref(
|
|
4970
|
-
return _this8["inputCzkAmount"] =
|
|
4959
|
+
ref: function ref(_ref33) {
|
|
4960
|
+
return _this8["inputCzkAmount"] = _ref33;
|
|
4971
4961
|
},
|
|
4972
4962
|
onFocus: function onFocus(e) {
|
|
4973
4963
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5588,8 +5578,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5588
5578
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5589
5579
|
},
|
|
5590
5580
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5591
|
-
ref: function ref(
|
|
5592
|
-
return _this8["inputJfdxAmount"] =
|
|
5581
|
+
ref: function ref(_ref34) {
|
|
5582
|
+
return _this8["inputJfdxAmount"] = _ref34;
|
|
5593
5583
|
},
|
|
5594
5584
|
onFocus: function onFocus(e) {
|
|
5595
5585
|
_this8.inputkey = "inputJfdxAmount";
|