tplus-components-touch 3.26.7 → 3.26.11
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/README.md +16 -16
- package/dist/components/acCitySelect/CitySelect.js +18 -18
- package/dist/components/acCitySelect/CitySelect.js.map +1 -1
- package/dist/components/acCitySelect/CitySelect.less +9 -9
- package/dist/components/acCitySelect/citys.js.map +1 -1
- package/dist/components/acCitySelect/index.js.map +1 -1
- package/dist/components/acCitySelect/provinceData.js +7 -7
- package/dist/components/acCitySelect/provinceData.js.map +1 -1
- package/dist/components/addLog/AddLogProcessor.js +6 -6
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +3 -3
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/autoComplete/index.js +14 -14
- package/dist/components/autoComplete/index.js.map +1 -1
- package/dist/components/autoComplete/index.less +89 -89
- package/dist/components/autoComplete/option.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.js +14 -14
- package/dist/components/autoCompleteWithKeyboard/index.js.map +1 -1
- package/dist/components/autoCompleteWithKeyboard/index.less +7 -7
- package/dist/components/billSearch/api.js +29 -29
- package/dist/components/billSearch/api.js.map +1 -1
- package/dist/components/billSearch/index.js +18 -18
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +373 -373
- package/dist/components/cloudPrint/BTPrintFormatUtil.js +17 -17
- package/dist/components/cloudPrint/BTPrintFormatUtil.js.map +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -4
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +7 -7
- package/dist/components/cloudPrint/printDispatch.js.map +1 -1
- package/dist/components/commonForm/addressPicker/index.js +7 -7
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/addressPicker/style.less +10 -10
- package/dist/components/commonForm/autoComplete/index.js.map +1 -1
- package/dist/components/commonForm/autoComplete/style.less +2 -2
- package/dist/components/commonForm/datePicker/index.js.map +1 -1
- package/dist/components/commonForm/datePicker/style.less +4 -4
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/commonForm/index.js +4 -4
- package/dist/components/commonForm/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/index.js.map +1 -1
- package/dist/components/commonForm/inputNumber/style.less +10 -10
- package/dist/components/commonForm/radio/index.js.map +1 -1
- package/dist/components/commonForm/style.less +1 -1
- package/dist/components/deliverySearch/api.js +21 -21
- package/dist/components/deliverySearch/api.js.map +1 -1
- package/dist/components/deliverySearch/index.js +16 -12
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.less +553 -553
- package/dist/components/form/index.js.map +1 -1
- package/dist/components/hardwareAPI/index.js.map +1 -1
- package/dist/components/hotKey/config.js +23 -23
- package/dist/components/hotKey/config.js.map +1 -1
- package/dist/components/hotKey/hotKeyModal.js.map +1 -1
- package/dist/components/hotKey/index.js +26 -26
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/hotKey/style.less +96 -96
- package/dist/components/hotKey/utils.js.map +1 -1
- package/dist/components/input/index.js +6 -6
- package/dist/components/input/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/input/style.less +99 -99
- package/dist/components/input/tplusInput/index.js +30 -30
- package/dist/components/input/tplusInput/index.js.map +1 -1
- package/dist/components/input/tplusInput/inputContent.js.map +1 -1
- package/dist/components/input/tplusInput/inputs.js.map +1 -1
- package/dist/components/input/tplusInput/style.less +132 -132
- package/dist/components/input/utils/index.js.map +1 -1
- package/dist/components/inventorySearch/api.js +58 -58
- package/dist/components/inventorySearch/api.js.map +1 -1
- package/dist/components/inventorySearch/index.js +3 -3
- package/dist/components/inventorySearch/index.js.map +1 -1
- package/dist/components/inventorySearch/index.less +119 -119
- 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/keyboard/index.js.map +1 -1
- package/dist/components/keyboard/index.less +469 -469
- package/dist/components/keyboard/letterKeyboard.js +2 -2
- package/dist/components/keyboard/letterKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboard.js +4 -4
- package/dist/components/keyboard/numKeyboard.js.map +1 -1
- package/dist/components/keyboard/numKeyboardScan.js.map +1 -1
- package/dist/components/keyboard/numberButton_input.js +5 -5
- package/dist/components/keyboard/numberButton_input.js.map +1 -1
- package/dist/components/keyboard/numkeyboardPassword.js +4 -4
- package/dist/components/keyboard/numkeyboardPassword.js.map +1 -1
- package/dist/components/keyboard/onlyKeyboard.js +7 -7
- package/dist/components/keyboard/onlyKeyboard.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton.js +2 -2
- package/dist/components/keyboard/onlyLetterButton.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.js +2 -2
- package/dist/components/keyboard/onlyLetterButton2.js.map +1 -1
- package/dist/components/keyboard/onlyLetterButton2.less +161 -161
- package/dist/components/keyboard/onlyNumberButton.js +2 -2
- package/dist/components/keyboard/onlyNumberButton.js.map +1 -1
- package/dist/components/keyboard/onlyNumberButton2.js +3 -3
- package/dist/components/keyboard/onlyNumberButton2.js.map +1 -1
- package/dist/components/keyboard/textKeyboard.js.map +1 -1
- package/dist/components/layout/hamburger.js.map +1 -1
- package/dist/components/layout/index.js +10 -10
- package/dist/components/layout/index.js.map +1 -1
- package/dist/components/layout/layout.js.map +1 -1
- package/dist/components/layout/sider.js +12 -12
- package/dist/components/layout/sider.js.map +1 -1
- package/dist/components/layout/style.less +82 -82
- package/dist/components/loading/index.js +15 -15
- package/dist/components/loading/index.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 +70 -61
- package/dist/components/loading/utils.js.map +1 -1
- package/dist/components/message/index.js +16 -13
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +101 -101
- package/dist/components/modal/index.js.map +1 -1
- package/dist/components/modal/index.less +19 -19
- package/dist/components/modalVertical/index.js +7 -7
- package/dist/components/modalVertical/index.js.map +1 -1
- package/dist/components/modalVertical/style.less +60 -60
- package/dist/components/modalWraper/index.js +15 -15
- package/dist/components/modalWraper/index.js.map +1 -1
- package/dist/components/modalWraper/style.less +257 -257
- package/dist/components/modalWraper/utils.js.map +1 -1
- package/dist/components/notification/index.js +4 -4
- package/dist/components/notification/index.js.map +1 -1
- package/dist/components/notification/index.less +51 -51
- package/dist/components/overflowTip/index.js +15 -15
- package/dist/components/overflowTip/index.js.map +1 -1
- package/dist/components/overflowTip/style.less +66 -66
- package/dist/components/page/index.js.map +1 -1
- package/dist/components/page/index.less +21 -21
- package/dist/components/product/detail.js +7 -7
- package/dist/components/product/detail.js.map +1 -1
- package/dist/components/product/getCard.js +5 -5
- package/dist/components/product/getCard.js.map +1 -1
- package/dist/components/product/index.less +128 -128
- package/dist/components/progressState/EmptyAndErrorView.js.map +1 -1
- package/dist/components/progressState/ProgressState.js +10 -10
- package/dist/components/progressState/ProgressState.js.map +1 -1
- package/dist/components/progressState/index.js.map +1 -1
- package/dist/components/progressState/style.less +65 -65
- package/dist/components/scan/index.js.map +1 -1
- package/dist/components/scan/index.less +33 -33
- package/dist/components/select/index.js.map +1 -1
- package/dist/components/select/index.less +11 -11
- package/dist/components/settlement/asyncModal.js.map +1 -1
- package/dist/components/settlement/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/index.js.map +1 -1
- package/dist/components/settlement/prototypeTable/style.less +58 -58
- package/dist/components/settlement/prototypeTable/utils.js.map +1 -1
- package/dist/components/settlement/settlement.js +129 -121
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +1646 -1646
- package/dist/components/settlement/settlementStore.js +54 -52
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/settlement/utils.js.map +1 -1
- package/dist/components/socket/index.js +17 -16
- package/dist/components/socket/index.js.map +1 -1
- package/dist/components/spin/index.js +6 -6
- package/dist/components/spin/index.js.map +1 -1
- package/dist/components/spin/spin-style.less +436 -436
- package/dist/components/test/index.js +3 -3
- package/dist/components/test/index.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5248 -5248
- package/dist/components/ticon/iconfont/iconfont.css +895 -895
- package/dist/components/ticon/iconfont/iconfont.json +1549 -1549
- package/dist/components/ticon/iconfont/iconfont.svg +593 -593
- package/dist/components/ticon/index.js.map +1 -1
- package/dist/components/touchScroll/index.js +9 -9
- package/dist/components/touchScroll/index.js.map +1 -1
- package/dist/components/touchTable/AuthProcess.js.map +1 -1
- package/dist/components/touchTable/generateWater.js.map +1 -1
- package/dist/components/touchTable/index.js +9 -9
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/components/touchTable/index.less +369 -369
- package/dist/components/touchTable/utils.js.map +1 -1
- package/dist/demo/PopOverDemo.js.map +1 -1
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/util/tools.js +5 -7
- package/dist/util/tools.js.map +1 -1
- package/locales/zh/tplus-components-touch.json +1 -1
- package/locales/zh-CN/tplus-components-touch.json +1 -1
- package/mocks/memberInfo.json +79 -79
- package/package.json +35 -35
- package/tsconfig.json +26 -26
|
@@ -556,7 +556,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
556
556
|
|
|
557
557
|
_this2.showCzkModal = function () {
|
|
558
558
|
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(id, append, params) {
|
|
559
|
-
var _enumController$getEn2, PayStyle, currentMode, maxamount, brefund, value11
|
|
559
|
+
var _enumController$getEn2, PayStyle, 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,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3172
3177
|
|
|
3173
3178
|
_this2.hasElectron = hasElectron;
|
|
3174
3179
|
|
|
3175
|
-
var
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
var MemberMeStorageCardInputByKeyBoard = _ref26$loginInfo.MemberMeStorageCardInputByKeyBoard,
|
|
3180
|
-
ICCardServer = _ref26$loginInfo.ICCardServer,
|
|
3181
|
-
ICCardPassword = _ref26$loginInfo.ICCardPassword;
|
|
3180
|
+
var _ref27 = _mutantsMicrofx.stores.user.options.get('loginInfo') || {},
|
|
3181
|
+
MemberMeStorageCardInputByKeyBoard = _ref27.MemberMeStorageCardInputByKeyBoard,
|
|
3182
|
+
ICCardServer = _ref27.ICCardServer,
|
|
3183
|
+
ICCardPassword = _ref27.ICCardPassword;
|
|
3182
3184
|
|
|
3183
3185
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3184
3186
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3185
3187
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3186
3188
|
//移动端环境下,没有读取IC卡的方式。
|
|
3187
3189
|
|
|
3188
|
-
var
|
|
3189
|
-
isHorizontalPad =
|
|
3190
|
-
isHorizontalSunMi =
|
|
3190
|
+
var _ref28 = _mutantsUtil.platform || {},
|
|
3191
|
+
isHorizontalPad = _ref28.isHorizontalPad,
|
|
3192
|
+
isHorizontalSunMi = _ref28.isHorizontalSunMi;
|
|
3191
3193
|
|
|
3192
3194
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3193
3195
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3303,11 +3305,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3303
3305
|
//jfdx
|
|
3304
3306
|
|
|
3305
3307
|
|
|
3306
|
-
/**
|
|
3307
|
-
*
|
|
3308
|
-
* @param {*} thePaymodes 支付方式列表
|
|
3309
|
-
* @param {*} currenIndex 当前支付方式下标
|
|
3310
|
-
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3308
|
+
/**
|
|
3309
|
+
*
|
|
3310
|
+
* @param {*} thePaymodes 支付方式列表
|
|
3311
|
+
* @param {*} currenIndex 当前支付方式下标
|
|
3312
|
+
* @param {*} symbol 从当前currenIndex开始 还是从当前currenIndex截止
|
|
3311
3313
|
*/
|
|
3312
3314
|
|
|
3313
3315
|
// 处理客显显示功能
|
|
@@ -3422,10 +3424,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3422
3424
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3423
3425
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount,
|
|
3424
3426
|
storageValue = _state2.storageValue,
|
|
3425
|
-
czkValue = _state2.czkValue
|
|
3427
|
+
czkValue = _state2.czkValue,
|
|
3428
|
+
newPassConfirm = _state2.newPassConfirm,
|
|
3429
|
+
newPass = _state2.newPass;
|
|
3426
3430
|
|
|
3427
|
-
var
|
|
3428
|
-
isNewRetailBCPos =
|
|
3431
|
+
var _ref29 = _mutantsUtil.platform || {},
|
|
3432
|
+
isNewRetailBCPos = _ref29.isNewRetailBCPos;
|
|
3429
3433
|
|
|
3430
3434
|
var _store2 = this.store,
|
|
3431
3435
|
paymode = _store2.paymode,
|
|
@@ -3488,11 +3492,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3488
3492
|
quantity4 = 0;
|
|
3489
3493
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3490
3494
|
|
|
3491
|
-
var
|
|
3492
|
-
|
|
3493
|
-
buyQuantity =
|
|
3494
|
-
|
|
3495
|
-
returnQuantity =
|
|
3495
|
+
var _ref30 = quantityDetail || {},
|
|
3496
|
+
_ref30$buyQuantity = _ref30.buyQuantity,
|
|
3497
|
+
buyQuantity = _ref30$buyQuantity === undefined ? 0 : _ref30$buyQuantity,
|
|
3498
|
+
_ref30$returnQuantity = _ref30.returnQuantity,
|
|
3499
|
+
returnQuantity = _ref30$returnQuantity === undefined ? 0 : _ref30$returnQuantity;
|
|
3496
3500
|
|
|
3497
3501
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3498
3502
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -4829,7 +4833,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4829
4833
|
return _this8.czkInput = input;
|
|
4830
4834
|
},
|
|
4831
4835
|
onKeyDown: function () {
|
|
4832
|
-
var
|
|
4836
|
+
var _ref31 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4833
4837
|
var time, _paymode;
|
|
4834
4838
|
|
|
4835
4839
|
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
@@ -4885,7 +4889,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4885
4889
|
}));
|
|
4886
4890
|
|
|
4887
4891
|
return function (_x12) {
|
|
4888
|
-
return
|
|
4892
|
+
return _ref31.apply(this, arguments);
|
|
4889
4893
|
};
|
|
4890
4894
|
}(),
|
|
4891
4895
|
onFocus: function onFocus(e) {
|
|
@@ -4942,8 +4946,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4942
4946
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4943
4947
|
},
|
|
4944
4948
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
4945
|
-
ref: function ref(
|
|
4946
|
-
return _this8["inputCzkAmount"] =
|
|
4949
|
+
ref: function ref(_ref32) {
|
|
4950
|
+
return _this8["inputCzkAmount"] = _ref32;
|
|
4947
4951
|
},
|
|
4948
4952
|
onFocus: function onFocus(e) {
|
|
4949
4953
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5033,21 +5037,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5033
5037
|
_react2.default.createElement(
|
|
5034
5038
|
'div',
|
|
5035
5039
|
{ className: 'two' },
|
|
5036
|
-
_react2.default.createElement(
|
|
5040
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5037
5041
|
className: 'content',
|
|
5038
|
-
newType: 'positive',
|
|
5039
|
-
bordered: true,
|
|
5040
5042
|
placeholder: '\u8BF7\u8F93\u51656\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5041
5043
|
style: { width: 266, height: 32 },
|
|
5042
5044
|
maxLength: 6,
|
|
5045
|
+
value: newPass,
|
|
5043
5046
|
ref: function ref(input) {
|
|
5044
5047
|
return _this8.inputNewAmount = input;
|
|
5045
5048
|
},
|
|
5046
5049
|
onChange: function onChange(value) {
|
|
5047
|
-
return _this8.setPwdValue('newPass', value);
|
|
5050
|
+
return _this8.setPwdValue('newPass', value.target.value);
|
|
5048
5051
|
},
|
|
5049
5052
|
onBlur: function onBlur(value) {
|
|
5050
5053
|
return _this8.handleBlur('newPass');
|
|
5054
|
+
},
|
|
5055
|
+
onPressEnter: function onPressEnter() {
|
|
5056
|
+
return _this8.onPressEnterCzk('newPass');
|
|
5051
5057
|
}
|
|
5052
5058
|
})
|
|
5053
5059
|
)
|
|
@@ -5063,21 +5069,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5063
5069
|
_react2.default.createElement(
|
|
5064
5070
|
'div',
|
|
5065
5071
|
{ className: 'two' },
|
|
5066
|
-
_react2.default.createElement(
|
|
5072
|
+
_react2.default.createElement(_input2.default.Password, {
|
|
5067
5073
|
className: 'content',
|
|
5068
|
-
newType: 'positive',
|
|
5069
|
-
bordered: true,
|
|
5070
5074
|
placeholder: '\u8BF7\u786E\u8BA46\u4F4D\u6570\u5B57\u5BC6\u7801',
|
|
5071
5075
|
style: { width: 266, height: 32 },
|
|
5072
5076
|
maxLength: 6,
|
|
5077
|
+
value: newPassConfirm,
|
|
5073
5078
|
ref: function ref(input) {
|
|
5074
5079
|
return _this8.inputConfirmAmount = input;
|
|
5075
5080
|
},
|
|
5076
5081
|
onChange: function onChange(value) {
|
|
5077
|
-
return _this8.setPwdValue('newPassConfirm', value);
|
|
5082
|
+
return _this8.setPwdValue('newPassConfirm', value.target.value);
|
|
5078
5083
|
},
|
|
5079
5084
|
onBlur: function onBlur(value) {
|
|
5080
5085
|
return _this8.handleBlur('newPassConfirm');
|
|
5086
|
+
},
|
|
5087
|
+
onPressEnter: function onPressEnter() {
|
|
5088
|
+
return _this8.onPressEnterCzk('newPassConfirm');
|
|
5081
5089
|
}
|
|
5082
5090
|
})
|
|
5083
5091
|
)
|
|
@@ -5560,8 +5568,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5560
5568
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5561
5569
|
},
|
|
5562
5570
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5563
|
-
ref: function ref(
|
|
5564
|
-
return _this8["inputJfdxAmount"] =
|
|
5571
|
+
ref: function ref(_ref33) {
|
|
5572
|
+
return _this8["inputJfdxAmount"] = _ref33;
|
|
5565
5573
|
},
|
|
5566
5574
|
onFocus: function onFocus(e) {
|
|
5567
5575
|
_this8.inputkey = "inputJfdxAmount";
|