tplus-components-touch 3.26.3 → 3.26.7
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/settlement/settlement.js +317 -308
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +3 -0
- package/dist/components/settlement/settlementStore.js +242 -195
- package/dist/components/settlement/settlementStore.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, isInputMember
|
|
559
|
+
var _enumController$getEn2, PayStyle, currentMode, maxamount, brefund, value11, isInputMember;
|
|
560
560
|
|
|
561
561
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
562
562
|
while (1) {
|
|
@@ -577,7 +577,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
577
577
|
_message2.default.error("本单最大可用储值卡结算金额为:" + (0, _utils.getFixedNumber)(maxamount) + ",请使用复合结算!", {
|
|
578
578
|
duration: 4
|
|
579
579
|
});
|
|
580
|
-
_context.next =
|
|
580
|
+
_context.next = 18;
|
|
581
581
|
break;
|
|
582
582
|
|
|
583
583
|
case 9:
|
|
@@ -602,7 +602,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
602
602
|
isInputMember = _this2.state.isInputMember;
|
|
603
603
|
|
|
604
604
|
if (!isInputMember) {
|
|
605
|
-
_context.next =
|
|
605
|
+
_context.next = 18;
|
|
606
606
|
break;
|
|
607
607
|
}
|
|
608
608
|
|
|
@@ -610,16 +610,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
610
610
|
return _this2.store.updateCurrentMode(_this2.store.paymode.currentMode.memberId);
|
|
611
611
|
|
|
612
612
|
case 18:
|
|
613
|
-
walletEnabled = currentMode.walletEnabled, cardTypeEnum = currentMode.cardTypeEnum;
|
|
614
|
-
|
|
615
|
-
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
616
|
-
_this2.setState({
|
|
617
|
-
showSetPwdModal: true,
|
|
618
|
-
btnDissabled: true
|
|
619
|
-
});
|
|
620
|
-
}
|
|
621
|
-
|
|
622
|
-
case 20:
|
|
623
613
|
setTimeout(function () {
|
|
624
614
|
if (!currentMode.storageCardNo) {
|
|
625
615
|
_this2.czkInput && _this2.czkInput.input.focus();
|
|
@@ -632,7 +622,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
632
622
|
}, 500);
|
|
633
623
|
_this2.connectRfCard();
|
|
634
624
|
|
|
635
|
-
case
|
|
625
|
+
case 20:
|
|
636
626
|
case 'end':
|
|
637
627
|
return _context.stop();
|
|
638
628
|
}
|
|
@@ -645,77 +635,104 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
645
635
|
};
|
|
646
636
|
}();
|
|
647
637
|
|
|
648
|
-
_this2.
|
|
649
|
-
var
|
|
650
|
-
var _enumController$getEn3, PayStyle;
|
|
638
|
+
_this2.handleCzkData = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
|
|
639
|
+
var _enumController$getEn3, PayStyle;
|
|
651
640
|
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
662
|
-
_context2.next = 5;
|
|
663
|
-
break;
|
|
664
|
-
}
|
|
641
|
+
return _regenerator2.default.wrap(function _callee2$(_context2) {
|
|
642
|
+
while (1) {
|
|
643
|
+
switch (_context2.prev = _context2.next) {
|
|
644
|
+
case 0:
|
|
645
|
+
_this2.setState({
|
|
646
|
+
isInputMember: false
|
|
647
|
+
});
|
|
648
|
+
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
665
649
|
|
|
650
|
+
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
666
651
|
_context2.next = 5;
|
|
667
|
-
|
|
652
|
+
break;
|
|
653
|
+
}
|
|
668
654
|
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
_context2.next = 8;
|
|
672
|
-
break;
|
|
673
|
-
}
|
|
655
|
+
_context2.next = 5;
|
|
656
|
+
return _this2.store.loadCzk(_this2.czkInput.input.value);
|
|
674
657
|
|
|
675
|
-
|
|
676
|
-
|
|
658
|
+
case 5:
|
|
659
|
+
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
660
|
+
_context2.next = 8;
|
|
661
|
+
break;
|
|
662
|
+
}
|
|
677
663
|
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.storageCardNo == _this2.store.paymode.currentMode.storageCardNo;
|
|
681
|
-
})) {
|
|
682
|
-
_context2.next = 11;
|
|
683
|
-
break;
|
|
684
|
-
}
|
|
664
|
+
_message2.default.error("请录入储值卡!");
|
|
665
|
+
return _context2.abrupt('return');
|
|
685
666
|
|
|
686
|
-
|
|
687
|
-
|
|
667
|
+
case 8:
|
|
668
|
+
if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
669
|
+
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.storageCardNo == _this2.store.paymode.currentMode.storageCardNo;
|
|
670
|
+
})) {
|
|
671
|
+
_context2.next = 11;
|
|
672
|
+
break;
|
|
673
|
+
}
|
|
688
674
|
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
_context2.next = 14;
|
|
692
|
-
break;
|
|
693
|
-
}
|
|
675
|
+
_message2.default.error("该储值卡已使用。");
|
|
676
|
+
return _context2.abrupt('return');
|
|
694
677
|
|
|
695
|
-
|
|
696
|
-
|
|
678
|
+
case 11:
|
|
679
|
+
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
680
|
+
_context2.next = 14;
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
697
683
|
|
|
698
|
-
|
|
684
|
+
_message2.default.error("实收金额应等于应收金额。");
|
|
685
|
+
return _context2.abrupt('return');
|
|
699
686
|
|
|
700
|
-
|
|
701
|
-
czkVisible: false,
|
|
702
|
-
storageValue: '0.00',
|
|
703
|
-
czkValue: null
|
|
704
|
-
});
|
|
705
|
-
_this2.closeRfCard();
|
|
706
|
-
_this2.store.paymode.calcMemberBalance();
|
|
707
|
-
_this2.handleCzk();
|
|
687
|
+
case 14:
|
|
708
688
|
|
|
709
|
-
|
|
689
|
+
_this2.setState({
|
|
690
|
+
czkVisible: false,
|
|
691
|
+
storageValue: '0.00',
|
|
692
|
+
czkValue: null
|
|
693
|
+
});
|
|
694
|
+
_this2.closeRfCard();
|
|
695
|
+
_this2.store.paymode.calcMemberBalance();
|
|
696
|
+
_this2.handleCzk();
|
|
697
|
+
|
|
698
|
+
case 18:
|
|
699
|
+
case 'end':
|
|
700
|
+
return _context2.stop();
|
|
701
|
+
}
|
|
702
|
+
}
|
|
703
|
+
}, _callee2, _this3);
|
|
704
|
+
}));
|
|
705
|
+
|
|
706
|
+
_this2.handleCzkOk = function () {
|
|
707
|
+
var _ref3 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee3(e) {
|
|
708
|
+
var _this2$store$paymode$, walletEnabled, cardTypeEnum;
|
|
709
|
+
|
|
710
|
+
return _regenerator2.default.wrap(function _callee3$(_context3) {
|
|
711
|
+
while (1) {
|
|
712
|
+
switch (_context3.prev = _context3.next) {
|
|
713
|
+
case 0:
|
|
714
|
+
// 判断是否有密码
|
|
715
|
+
_this2$store$paymode$ = _this2.store.paymode.currentMode, walletEnabled = _this2$store$paymode$.walletEnabled, cardTypeEnum = _this2$store$paymode$.cardTypeEnum;
|
|
716
|
+
|
|
717
|
+
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
718
|
+
_this2.setState({
|
|
719
|
+
showSetPwdModal: true,
|
|
720
|
+
btnDissabled: true
|
|
721
|
+
});
|
|
722
|
+
} else {
|
|
723
|
+
_this2.handleCzkData();
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
case 2:
|
|
710
727
|
case 'end':
|
|
711
|
-
return
|
|
728
|
+
return _context3.stop();
|
|
712
729
|
}
|
|
713
730
|
}
|
|
714
|
-
},
|
|
731
|
+
}, _callee3, _this3);
|
|
715
732
|
}));
|
|
716
733
|
|
|
717
734
|
return function (_x4) {
|
|
718
|
-
return
|
|
735
|
+
return _ref3.apply(this, arguments);
|
|
719
736
|
};
|
|
720
737
|
}();
|
|
721
738
|
|
|
@@ -740,24 +757,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
740
757
|
});
|
|
741
758
|
};
|
|
742
759
|
|
|
743
|
-
_this2.handleSetModal = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
760
|
+
_this2.handleSetModal = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee4() {
|
|
744
761
|
var _this2$state, newPass, newPassConfirm, isInputMember, updataMemberInfo, result, cardTypeEnum, resp;
|
|
745
762
|
|
|
746
|
-
return _regenerator2.default.wrap(function
|
|
763
|
+
return _regenerator2.default.wrap(function _callee4$(_context4) {
|
|
747
764
|
while (1) {
|
|
748
|
-
switch (
|
|
765
|
+
switch (_context4.prev = _context4.next) {
|
|
749
766
|
case 0:
|
|
750
767
|
_this2$state = _this2.state, newPass = _this2$state.newPass, newPassConfirm = _this2$state.newPassConfirm, isInputMember = _this2$state.isInputMember;
|
|
751
768
|
updataMemberInfo = _this2.props.updataMemberInfo;
|
|
752
|
-
|
|
769
|
+
_context4.next = 4;
|
|
753
770
|
return _this2.store.queryPwd(newPass, newPassConfirm);
|
|
754
771
|
|
|
755
772
|
case 4:
|
|
756
|
-
result =
|
|
773
|
+
result = _context4.sent;
|
|
757
774
|
cardTypeEnum = _this2.store.paymode.currentMode.cardTypeEnum;
|
|
758
775
|
|
|
759
776
|
if (!result) {
|
|
760
|
-
|
|
777
|
+
_context4.next = 21;
|
|
761
778
|
break;
|
|
762
779
|
}
|
|
763
780
|
|
|
@@ -768,6 +785,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
768
785
|
newPassConfirm: ''
|
|
769
786
|
});
|
|
770
787
|
_message2.default.warn('设置成功');
|
|
788
|
+
_this2.handleCzkData();
|
|
771
789
|
setTimeout(function () {
|
|
772
790
|
if (_this2.inputCzkAmount && _this2.inputCzkAmount.input) {
|
|
773
791
|
_this2.inputCzkAmount.input.focus();
|
|
@@ -777,45 +795,45 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
777
795
|
_this2.connectRfCard();
|
|
778
796
|
|
|
779
797
|
if (!isInputMember) {
|
|
780
|
-
|
|
798
|
+
_context4.next = 19;
|
|
781
799
|
break;
|
|
782
800
|
}
|
|
783
801
|
|
|
784
|
-
|
|
802
|
+
_context4.next = 15;
|
|
785
803
|
return _this2.store.updateMemberInfo(_this2.store);
|
|
786
804
|
|
|
787
|
-
case
|
|
788
|
-
resp =
|
|
805
|
+
case 15:
|
|
806
|
+
resp = _context4.sent;
|
|
789
807
|
|
|
790
808
|
updataMemberInfo(resp);
|
|
791
|
-
|
|
809
|
+
_context4.next = 20;
|
|
792
810
|
break;
|
|
793
811
|
|
|
794
|
-
case
|
|
812
|
+
case 19:
|
|
795
813
|
if (cardTypeEnum === 'BALANCE_CARD') {
|
|
796
814
|
_this2.store.updateCardInfo();
|
|
797
815
|
}
|
|
798
816
|
|
|
799
|
-
case
|
|
817
|
+
case 20:
|
|
800
818
|
_this2.setState({
|
|
801
819
|
isInputMember: false
|
|
802
820
|
});
|
|
803
821
|
|
|
804
|
-
case
|
|
822
|
+
case 21:
|
|
805
823
|
case 'end':
|
|
806
|
-
return
|
|
824
|
+
return _context4.stop();
|
|
807
825
|
}
|
|
808
826
|
}
|
|
809
|
-
},
|
|
827
|
+
}, _callee4, _this3);
|
|
810
828
|
}));
|
|
811
829
|
|
|
812
830
|
_this2.setPwdValue = function (field, value) {
|
|
813
831
|
_this2.setState((0, _defineProperty3.default)({}, field, value), function () {
|
|
814
|
-
var
|
|
815
|
-
|
|
816
|
-
newPass =
|
|
817
|
-
|
|
818
|
-
newPassConfirm =
|
|
832
|
+
var _ref5 = _this2.state || {},
|
|
833
|
+
_ref5$newPass = _ref5.newPass,
|
|
834
|
+
newPass = _ref5$newPass === undefined ? '' : _ref5$newPass,
|
|
835
|
+
_ref5$newPassConfirm = _ref5.newPassConfirm,
|
|
836
|
+
newPassConfirm = _ref5$newPassConfirm === undefined ? '' : _ref5$newPassConfirm;
|
|
819
837
|
|
|
820
838
|
if (newPassConfirm.length === 6 && newPass.length === 6 && newPass === newPassConfirm) {
|
|
821
839
|
_this2.setState({
|
|
@@ -826,15 +844,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
826
844
|
};
|
|
827
845
|
|
|
828
846
|
_this2.handleBlur = function (field) {
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
newPass =
|
|
832
|
-
|
|
833
|
-
newPassConfirm =
|
|
847
|
+
var _ref6 = _this2.state || {},
|
|
848
|
+
_ref6$newPass = _ref6.newPass,
|
|
849
|
+
newPass = _ref6$newPass === undefined ? '' : _ref6$newPass,
|
|
850
|
+
_ref6$newPassConfirm = _ref6.newPassConfirm,
|
|
851
|
+
newPassConfirm = _ref6$newPassConfirm === undefined ? '' : _ref6$newPassConfirm;
|
|
834
852
|
|
|
835
853
|
setTimeout(function () {
|
|
836
|
-
var
|
|
837
|
-
showSetPwdModal =
|
|
854
|
+
var _ref7 = _this2.state || {},
|
|
855
|
+
showSetPwdModal = _ref7.showSetPwdModal;
|
|
838
856
|
|
|
839
857
|
if (!showSetPwdModal) return;
|
|
840
858
|
if (field === 'newPass' && newPass.length < 6) {
|
|
@@ -891,8 +909,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
891
909
|
|
|
892
910
|
// TODO: 测试优惠券支付
|
|
893
911
|
|
|
894
|
-
var
|
|
895
|
-
isNewRetailBCPos =
|
|
912
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
913
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
896
914
|
|
|
897
915
|
if (isNewRetailBCPos && !_this2.store.paymode.currentMode.boriginReturn) {
|
|
898
916
|
_this2.store.getCouponList();
|
|
@@ -976,8 +994,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
976
994
|
};
|
|
977
995
|
|
|
978
996
|
_this2.checkOfflineEnable = function (paymode, key) {
|
|
979
|
-
var
|
|
980
|
-
paymodes =
|
|
997
|
+
var _ref9 = paymode || {},
|
|
998
|
+
paymodes = _ref9.paymodes;
|
|
981
999
|
|
|
982
1000
|
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
983
1001
|
|
|
@@ -1327,8 +1345,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1327
1345
|
return;
|
|
1328
1346
|
}
|
|
1329
1347
|
|
|
1330
|
-
var
|
|
1331
|
-
isNewRetailBCPos =
|
|
1348
|
+
var _ref10 = _mutantsUtil.platform || {},
|
|
1349
|
+
isNewRetailBCPos = _ref10.isNewRetailBCPos;
|
|
1332
1350
|
|
|
1333
1351
|
if (isNewRetailBCPos) {
|
|
1334
1352
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1363,37 +1381,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1363
1381
|
if (_this2.czkdebounced) {
|
|
1364
1382
|
return;
|
|
1365
1383
|
}
|
|
1366
|
-
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1367
|
-
var _this2$store$paymode
|
|
1384
|
+
_this2.czkdebounced = (0, _debounce3.default)((0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee5() {
|
|
1385
|
+
var _this2$store$paymode$2, cardTypeEnum, walletEnabled;
|
|
1368
1386
|
|
|
1369
|
-
return _regenerator2.default.wrap(function
|
|
1387
|
+
return _regenerator2.default.wrap(function _callee5$(_context5) {
|
|
1370
1388
|
while (1) {
|
|
1371
|
-
switch (
|
|
1389
|
+
switch (_context5.prev = _context5.next) {
|
|
1372
1390
|
case 0:
|
|
1373
|
-
|
|
1391
|
+
_context5.next = 2;
|
|
1374
1392
|
return _this2.store.loadCzk(v);
|
|
1375
1393
|
|
|
1376
1394
|
case 2:
|
|
1377
|
-
_this2$store$paymode$ = _this2.store.paymode.currentMode, cardTypeEnum = _this2$store$paymode
|
|
1395
|
+
_this2$store$paymode$2 = _this2.store.paymode.currentMode, cardTypeEnum = _this2$store$paymode$2.cardTypeEnum, walletEnabled = _this2$store$paymode$2.walletEnabled;
|
|
1378
1396
|
|
|
1379
|
-
if (cardTypeEnum === 'BALANCE_CARD' && !walletEnabled) {
|
|
1380
|
-
_this2.setState({
|
|
1381
|
-
showSetPwdModal: true,
|
|
1382
|
-
btnDissabled: true
|
|
1383
|
-
});
|
|
1384
|
-
}
|
|
1385
1397
|
if (_this2.store.paymode.currentMode.storageCardNo) {
|
|
1386
1398
|
_this2.setState({
|
|
1387
1399
|
czkValue: _this2.store.paymode.currentMode.storageCardNo
|
|
1388
1400
|
});
|
|
1389
1401
|
}
|
|
1390
1402
|
|
|
1391
|
-
case
|
|
1403
|
+
case 4:
|
|
1392
1404
|
case 'end':
|
|
1393
|
-
return
|
|
1405
|
+
return _context5.stop();
|
|
1394
1406
|
}
|
|
1395
1407
|
}
|
|
1396
|
-
},
|
|
1408
|
+
}, _callee5, _this3);
|
|
1397
1409
|
})), 1000, {
|
|
1398
1410
|
'leading': true,
|
|
1399
1411
|
'trailing': false
|
|
@@ -1590,11 +1602,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1590
1602
|
}
|
|
1591
1603
|
};
|
|
1592
1604
|
|
|
1593
|
-
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1605
|
+
_this2.settleUnReturn = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7() {
|
|
1594
1606
|
var that;
|
|
1595
|
-
return _regenerator2.default.wrap(function
|
|
1607
|
+
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
1596
1608
|
while (1) {
|
|
1597
|
-
switch (
|
|
1609
|
+
switch (_context7.prev = _context7.next) {
|
|
1598
1610
|
case 0:
|
|
1599
1611
|
that = _this2;
|
|
1600
1612
|
|
|
@@ -1617,18 +1629,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1617
1629
|
onOk: function onOk() {
|
|
1618
1630
|
var _this4 = this;
|
|
1619
1631
|
|
|
1620
|
-
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1632
|
+
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6() {
|
|
1621
1633
|
var result;
|
|
1622
|
-
return _regenerator2.default.wrap(function
|
|
1634
|
+
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1623
1635
|
while (1) {
|
|
1624
|
-
switch (
|
|
1636
|
+
switch (_context6.prev = _context6.next) {
|
|
1625
1637
|
case 0:
|
|
1626
1638
|
window.__queryingModal = (0, _utils.openQueryingModal)();
|
|
1627
|
-
|
|
1639
|
+
_context6.next = 3;
|
|
1628
1640
|
return that.store.querySettleResult();
|
|
1629
1641
|
|
|
1630
1642
|
case 3:
|
|
1631
|
-
result =
|
|
1643
|
+
result = _context6.sent;
|
|
1632
1644
|
|
|
1633
1645
|
setTimeout(function () {
|
|
1634
1646
|
if (window.__queryingModal) {
|
|
@@ -1636,34 +1648,34 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1636
1648
|
window.__queryingModal = null;
|
|
1637
1649
|
}
|
|
1638
1650
|
}, 0);
|
|
1639
|
-
|
|
1640
|
-
|
|
1651
|
+
_context6.t0 = result.Flag;
|
|
1652
|
+
_context6.next = _context6.t0 === "0" ? 8 : _context6.t0 === "1" ? 11 : _context6.t0 === "2" ? 13 : 15;
|
|
1641
1653
|
break;
|
|
1642
1654
|
|
|
1643
1655
|
case 8:
|
|
1644
1656
|
//成功
|
|
1645
1657
|
that.store.setDtoID(result.ID);
|
|
1646
1658
|
that.settleSuccess();
|
|
1647
|
-
return
|
|
1659
|
+
return _context6.abrupt('break', 15);
|
|
1648
1660
|
|
|
1649
1661
|
case 11:
|
|
1650
1662
|
//处理中
|
|
1651
1663
|
that.settleUnReturn();
|
|
1652
1664
|
// Message.info("结算正在处理中,请稍后再次查询。");
|
|
1653
|
-
return
|
|
1665
|
+
return _context6.abrupt('break', 15);
|
|
1654
1666
|
|
|
1655
1667
|
case 13:
|
|
1656
1668
|
//失败
|
|
1657
1669
|
_message2.default.info('\u7ED3\u7B97\u5931\u8D25\uFF0C\u539F\u56E0:' + result.Message + '\u3002');
|
|
1658
1670
|
// that.settleCanceled();
|
|
1659
|
-
return
|
|
1671
|
+
return _context6.abrupt('break', 15);
|
|
1660
1672
|
|
|
1661
1673
|
case 15:
|
|
1662
1674
|
case 'end':
|
|
1663
|
-
return
|
|
1675
|
+
return _context6.stop();
|
|
1664
1676
|
}
|
|
1665
1677
|
}
|
|
1666
|
-
},
|
|
1678
|
+
}, _callee6, _this4);
|
|
1667
1679
|
}))();
|
|
1668
1680
|
},
|
|
1669
1681
|
onCancel: function onCancel() {
|
|
@@ -1673,10 +1685,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1673
1685
|
|
|
1674
1686
|
case 2:
|
|
1675
1687
|
case 'end':
|
|
1676
|
-
return
|
|
1688
|
+
return _context7.stop();
|
|
1677
1689
|
}
|
|
1678
1690
|
}
|
|
1679
|
-
},
|
|
1691
|
+
}, _callee7, _this3);
|
|
1680
1692
|
}));
|
|
1681
1693
|
|
|
1682
1694
|
_this2.settleCanceled = function () {
|
|
@@ -1685,12 +1697,12 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1685
1697
|
_this2.cancelState();
|
|
1686
1698
|
};
|
|
1687
1699
|
|
|
1688
|
-
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
1700
|
+
_this2.settleSuccess = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8() {
|
|
1689
1701
|
var _enumController$getEn20, PayStyle, _this2$store$paymode, amount, received, thePaymodes, IdbusiType, charge, openCashBox, _this, showTwoScreen, getSettleGift, type, resp1;
|
|
1690
1702
|
|
|
1691
|
-
return _regenerator2.default.wrap(function
|
|
1703
|
+
return _regenerator2.default.wrap(function _callee8$(_context8) {
|
|
1692
1704
|
while (1) {
|
|
1693
|
-
switch (
|
|
1705
|
+
switch (_context8.prev = _context8.next) {
|
|
1694
1706
|
case 0:
|
|
1695
1707
|
//提示成功
|
|
1696
1708
|
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
@@ -1751,22 +1763,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1751
1763
|
resp1 = false;
|
|
1752
1764
|
|
|
1753
1765
|
if (!(type !== 1)) {
|
|
1754
|
-
|
|
1766
|
+
_context8.next = 20;
|
|
1755
1767
|
break;
|
|
1756
1768
|
}
|
|
1757
1769
|
|
|
1758
|
-
|
|
1759
|
-
|
|
1770
|
+
_context8.prev = 11;
|
|
1771
|
+
_context8.next = 14;
|
|
1760
1772
|
return getSettleGift();
|
|
1761
1773
|
|
|
1762
1774
|
case 14:
|
|
1763
|
-
resp1 =
|
|
1764
|
-
|
|
1775
|
+
resp1 = _context8.sent;
|
|
1776
|
+
_context8.next = 20;
|
|
1765
1777
|
break;
|
|
1766
1778
|
|
|
1767
1779
|
case 17:
|
|
1768
|
-
|
|
1769
|
-
|
|
1780
|
+
_context8.prev = 17;
|
|
1781
|
+
_context8.t0 = _context8['catch'](11);
|
|
1770
1782
|
|
|
1771
1783
|
console.log("获取支付礼包getSettleGift失败");
|
|
1772
1784
|
|
|
@@ -1804,23 +1816,23 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1804
1816
|
|
|
1805
1817
|
case 21:
|
|
1806
1818
|
case 'end':
|
|
1807
|
-
return
|
|
1819
|
+
return _context8.stop();
|
|
1808
1820
|
}
|
|
1809
1821
|
}
|
|
1810
|
-
},
|
|
1822
|
+
}, _callee8, _this3, [[11, 17]]);
|
|
1811
1823
|
}));
|
|
1812
1824
|
|
|
1813
1825
|
_this2.handleGuestShow = function (dtype, value) {
|
|
1814
1826
|
if (_this2.hasElectron === false) return;
|
|
1815
1827
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1816
1828
|
|
|
1817
|
-
var
|
|
1818
|
-
guestshow_enable =
|
|
1819
|
-
guestshow_clear =
|
|
1820
|
-
guestshow_welcome =
|
|
1821
|
-
guestshow_collect =
|
|
1822
|
-
guestshow_refund =
|
|
1823
|
-
guestshow_change =
|
|
1829
|
+
var _ref14 = dt || {},
|
|
1830
|
+
guestshow_enable = _ref14.guestshow_enable,
|
|
1831
|
+
guestshow_clear = _ref14.guestshow_clear,
|
|
1832
|
+
guestshow_welcome = _ref14.guestshow_welcome,
|
|
1833
|
+
guestshow_collect = _ref14.guestshow_collect,
|
|
1834
|
+
guestshow_refund = _ref14.guestshow_refund,
|
|
1835
|
+
guestshow_change = _ref14.guestshow_change;
|
|
1824
1836
|
|
|
1825
1837
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1826
1838
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1855,108 +1867,108 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1855
1867
|
};
|
|
1856
1868
|
|
|
1857
1869
|
_this2.handleSettle = function () {
|
|
1858
|
-
var
|
|
1870
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11(args) {
|
|
1859
1871
|
var handleUserInputs = function () {
|
|
1860
|
-
var
|
|
1872
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1861
1873
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1862
1874
|
|
|
1863
|
-
return _regenerator2.default.wrap(function
|
|
1875
|
+
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
1864
1876
|
while (1) {
|
|
1865
|
-
switch (
|
|
1877
|
+
switch (_context10.prev = _context10.next) {
|
|
1866
1878
|
case 0:
|
|
1867
1879
|
results = [];
|
|
1868
|
-
|
|
1880
|
+
_context10.prev = 1;
|
|
1869
1881
|
_iteratorNormalCompletion = true;
|
|
1870
1882
|
_didIteratorError = false;
|
|
1871
1883
|
_iteratorError = undefined;
|
|
1872
|
-
|
|
1884
|
+
_context10.prev = 5;
|
|
1873
1885
|
_iterator = (0, _getIterator3.default)(promises);
|
|
1874
1886
|
|
|
1875
1887
|
case 7:
|
|
1876
1888
|
if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
|
|
1877
|
-
|
|
1889
|
+
_context10.next = 16;
|
|
1878
1890
|
break;
|
|
1879
1891
|
}
|
|
1880
1892
|
|
|
1881
1893
|
p = _step.value;
|
|
1882
|
-
|
|
1894
|
+
_context10.next = 11;
|
|
1883
1895
|
return p;
|
|
1884
1896
|
|
|
1885
1897
|
case 11:
|
|
1886
|
-
_result =
|
|
1898
|
+
_result = _context10.sent;
|
|
1887
1899
|
|
|
1888
1900
|
results.push(_result);
|
|
1889
1901
|
|
|
1890
1902
|
case 13:
|
|
1891
1903
|
_iteratorNormalCompletion = true;
|
|
1892
|
-
|
|
1904
|
+
_context10.next = 7;
|
|
1893
1905
|
break;
|
|
1894
1906
|
|
|
1895
1907
|
case 16:
|
|
1896
|
-
|
|
1908
|
+
_context10.next = 22;
|
|
1897
1909
|
break;
|
|
1898
1910
|
|
|
1899
1911
|
case 18:
|
|
1900
|
-
|
|
1901
|
-
|
|
1912
|
+
_context10.prev = 18;
|
|
1913
|
+
_context10.t0 = _context10['catch'](5);
|
|
1902
1914
|
_didIteratorError = true;
|
|
1903
|
-
_iteratorError =
|
|
1915
|
+
_iteratorError = _context10.t0;
|
|
1904
1916
|
|
|
1905
1917
|
case 22:
|
|
1906
|
-
|
|
1907
|
-
|
|
1918
|
+
_context10.prev = 22;
|
|
1919
|
+
_context10.prev = 23;
|
|
1908
1920
|
|
|
1909
1921
|
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
1910
1922
|
_iterator.return();
|
|
1911
1923
|
}
|
|
1912
1924
|
|
|
1913
1925
|
case 25:
|
|
1914
|
-
|
|
1926
|
+
_context10.prev = 25;
|
|
1915
1927
|
|
|
1916
1928
|
if (!_didIteratorError) {
|
|
1917
|
-
|
|
1929
|
+
_context10.next = 28;
|
|
1918
1930
|
break;
|
|
1919
1931
|
}
|
|
1920
1932
|
|
|
1921
1933
|
throw _iteratorError;
|
|
1922
1934
|
|
|
1923
1935
|
case 28:
|
|
1924
|
-
return
|
|
1936
|
+
return _context10.finish(25);
|
|
1925
1937
|
|
|
1926
1938
|
case 29:
|
|
1927
|
-
return
|
|
1939
|
+
return _context10.finish(22);
|
|
1928
1940
|
|
|
1929
1941
|
case 30:
|
|
1930
1942
|
window.__loadingModal = (0, _utils.openLoadingModal)();
|
|
1931
|
-
|
|
1943
|
+
_context10.next = 33;
|
|
1932
1944
|
return commit(results);
|
|
1933
1945
|
|
|
1934
1946
|
case 33:
|
|
1935
|
-
|
|
1947
|
+
_context10.next = 37;
|
|
1936
1948
|
break;
|
|
1937
1949
|
|
|
1938
1950
|
case 35:
|
|
1939
|
-
|
|
1940
|
-
|
|
1951
|
+
_context10.prev = 35;
|
|
1952
|
+
_context10.t1 = _context10['catch'](1);
|
|
1941
1953
|
|
|
1942
1954
|
case 37:
|
|
1943
1955
|
case 'end':
|
|
1944
|
-
return
|
|
1956
|
+
return _context10.stop();
|
|
1945
1957
|
}
|
|
1946
1958
|
}
|
|
1947
|
-
},
|
|
1959
|
+
}, _callee10, this, [[1, 35], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
1948
1960
|
}));
|
|
1949
1961
|
|
|
1950
1962
|
return function handleUserInputs(_x7) {
|
|
1951
|
-
return
|
|
1963
|
+
return _ref17.apply(this, arguments);
|
|
1952
1964
|
};
|
|
1953
1965
|
}();
|
|
1954
1966
|
|
|
1955
1967
|
var _enumController$getEn21, PayStyle, _this2$store6, paymode, brefund, boriginReturn, newStyle, isQuickPay, that, status, zeromode, promises, thePaymodes, quickmode, commit;
|
|
1956
1968
|
|
|
1957
|
-
return _regenerator2.default.wrap(function
|
|
1969
|
+
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
1958
1970
|
while (1) {
|
|
1959
|
-
switch (
|
|
1971
|
+
switch (_context11.prev = _context11.next) {
|
|
1960
1972
|
case 0:
|
|
1961
1973
|
_this2.setState({
|
|
1962
1974
|
settleDisabled: true
|
|
@@ -1988,7 +2000,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1988
2000
|
});
|
|
1989
2001
|
|
|
1990
2002
|
if (!(that.checkCharge() && Math.abs(paymode.receivable) > that.props.initData("posChangeUpperAmount"))) {
|
|
1991
|
-
|
|
2003
|
+
_context11.next = 13;
|
|
1992
2004
|
break;
|
|
1993
2005
|
}
|
|
1994
2006
|
|
|
@@ -1996,11 +2008,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1996
2008
|
_this2.setState({
|
|
1997
2009
|
settleDisabled: false
|
|
1998
2010
|
});
|
|
1999
|
-
return
|
|
2011
|
+
return _context11.abrupt('return');
|
|
2000
2012
|
|
|
2001
2013
|
case 13:
|
|
2002
2014
|
if (!(args !== "zero" && !newStyle)) {
|
|
2003
|
-
|
|
2015
|
+
_context11.next = 19;
|
|
2004
2016
|
break;
|
|
2005
2017
|
}
|
|
2006
2018
|
|
|
@@ -2009,7 +2021,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2009
2021
|
});
|
|
2010
2022
|
|
|
2011
2023
|
if (!zeromode) {
|
|
2012
|
-
|
|
2024
|
+
_context11.next = 19;
|
|
2013
2025
|
break;
|
|
2014
2026
|
}
|
|
2015
2027
|
|
|
@@ -2017,7 +2029,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2017
2029
|
settleDisabled: false
|
|
2018
2030
|
});
|
|
2019
2031
|
_message2.default.error(zeromode.name + ' 的结算金额为零,不可以结算。');
|
|
2020
|
-
return
|
|
2032
|
+
return _context11.abrupt('return');
|
|
2021
2033
|
|
|
2022
2034
|
case 19:
|
|
2023
2035
|
promises = [];
|
|
@@ -2026,14 +2038,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2026
2038
|
}) : paymode.thePaymodes, 'orderBy');
|
|
2027
2039
|
|
|
2028
2040
|
if (!isQuickPay) {
|
|
2029
|
-
|
|
2041
|
+
_context11.next = 27;
|
|
2030
2042
|
break;
|
|
2031
2043
|
}
|
|
2032
2044
|
|
|
2033
2045
|
quickmode = thePaymodes[0];
|
|
2034
2046
|
|
|
2035
2047
|
if (!_this2.checkModeDisabled(quickmode.paymentType, brefund, boriginReturn)) {
|
|
2036
|
-
|
|
2048
|
+
_context11.next = 27;
|
|
2037
2049
|
break;
|
|
2038
2050
|
}
|
|
2039
2051
|
|
|
@@ -2041,7 +2053,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2041
2053
|
settleDisabled: false
|
|
2042
2054
|
});
|
|
2043
2055
|
_message2.default.error('退款不能使用' + quickmode.name + '结算,请使用其他结算方式!');
|
|
2044
|
-
return
|
|
2056
|
+
return _context11.abrupt('return');
|
|
2045
2057
|
|
|
2046
2058
|
case 27:
|
|
2047
2059
|
(0, _forEach3.default)(thePaymodes, function (mode) {
|
|
@@ -2051,27 +2063,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2051
2063
|
});
|
|
2052
2064
|
|
|
2053
2065
|
commit = function () {
|
|
2054
|
-
var
|
|
2066
|
+
var _ref16 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2055
2067
|
var result;
|
|
2056
|
-
return _regenerator2.default.wrap(function
|
|
2068
|
+
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2057
2069
|
while (1) {
|
|
2058
|
-
switch (
|
|
2070
|
+
switch (_context9.prev = _context9.next) {
|
|
2059
2071
|
case 0:
|
|
2060
|
-
|
|
2072
|
+
_context9.next = 2;
|
|
2061
2073
|
return _this2.store.commit(_this2.props.bTest);
|
|
2062
2074
|
|
|
2063
2075
|
case 2:
|
|
2064
|
-
result =
|
|
2076
|
+
result = _context9.sent;
|
|
2065
2077
|
|
|
2066
2078
|
if (!(result === true)) {
|
|
2067
|
-
|
|
2079
|
+
_context9.next = 8;
|
|
2068
2080
|
break;
|
|
2069
2081
|
}
|
|
2070
2082
|
|
|
2071
2083
|
//成功
|
|
2072
2084
|
that.settleSuccess();
|
|
2073
2085
|
_promise2.default.resolve();
|
|
2074
|
-
|
|
2086
|
+
_context9.next = 23;
|
|
2075
2087
|
break;
|
|
2076
2088
|
|
|
2077
2089
|
case 8:
|
|
@@ -2088,24 +2100,24 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2088
2100
|
}, 0);
|
|
2089
2101
|
|
|
2090
2102
|
if (!(result && (result.Code || result.code))) {
|
|
2091
|
-
|
|
2103
|
+
_context9.next = 20;
|
|
2092
2104
|
break;
|
|
2093
2105
|
}
|
|
2094
2106
|
|
|
2095
|
-
|
|
2096
|
-
|
|
2107
|
+
_context9.t0 = result.Code || result.code;
|
|
2108
|
+
_context9.next = _context9.t0 === 'RE_Settle_UnReturn' ? 14 : _context9.t0 === 'ECONNABORTED' ? 18 : 20;
|
|
2097
2109
|
break;
|
|
2098
2110
|
|
|
2099
2111
|
case 14:
|
|
2100
2112
|
console.log('settlement--RE_Settle_UnReturn--调用清除数据==Focus==');
|
|
2101
2113
|
_this2.props.clearVoucherData && _this2.props.clearVoucherData();
|
|
2102
2114
|
_this2.cancelState();
|
|
2103
|
-
return
|
|
2115
|
+
return _context9.abrupt('break', 20);
|
|
2104
2116
|
|
|
2105
2117
|
case 18:
|
|
2106
2118
|
//error.code === 'ECONNABORTED' && error.message.indexOf('timeout')
|
|
2107
2119
|
result.message.indexOf('timeout') > -1 && that.settleUnReturn();
|
|
2108
|
-
return
|
|
2120
|
+
return _context9.abrupt('break', 20);
|
|
2109
2121
|
|
|
2110
2122
|
case 20:
|
|
2111
2123
|
if (isQuickPay) {
|
|
@@ -2113,19 +2125,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2113
2125
|
that.cancelState();
|
|
2114
2126
|
}
|
|
2115
2127
|
|
|
2116
|
-
|
|
2128
|
+
_context9.next = 23;
|
|
2117
2129
|
return _promise2.default.reject();
|
|
2118
2130
|
|
|
2119
2131
|
case 23:
|
|
2120
2132
|
case 'end':
|
|
2121
|
-
return
|
|
2133
|
+
return _context9.stop();
|
|
2122
2134
|
}
|
|
2123
2135
|
}
|
|
2124
|
-
},
|
|
2136
|
+
}, _callee9, _this3);
|
|
2125
2137
|
}));
|
|
2126
2138
|
|
|
2127
2139
|
return function commit(_x6) {
|
|
2128
|
-
return
|
|
2140
|
+
return _ref16.apply(this, arguments);
|
|
2129
2141
|
};
|
|
2130
2142
|
}();
|
|
2131
2143
|
|
|
@@ -2133,102 +2145,102 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2133
2145
|
|
|
2134
2146
|
case 30:
|
|
2135
2147
|
case 'end':
|
|
2136
|
-
return
|
|
2148
|
+
return _context11.stop();
|
|
2137
2149
|
}
|
|
2138
2150
|
}
|
|
2139
|
-
},
|
|
2151
|
+
}, _callee11, _this3);
|
|
2140
2152
|
}));
|
|
2141
2153
|
|
|
2142
2154
|
return function (_x5) {
|
|
2143
|
-
return
|
|
2155
|
+
return _ref15.apply(this, arguments);
|
|
2144
2156
|
};
|
|
2145
2157
|
}();
|
|
2146
2158
|
|
|
2147
|
-
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function
|
|
2159
|
+
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee14() {
|
|
2148
2160
|
var handleUserInputs = function () {
|
|
2149
|
-
var
|
|
2161
|
+
var _ref21 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee13(promises) {
|
|
2150
2162
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2151
2163
|
|
|
2152
|
-
return _regenerator2.default.wrap(function
|
|
2164
|
+
return _regenerator2.default.wrap(function _callee13$(_context13) {
|
|
2153
2165
|
while (1) {
|
|
2154
|
-
switch (
|
|
2166
|
+
switch (_context13.prev = _context13.next) {
|
|
2155
2167
|
case 0:
|
|
2156
2168
|
results = [];
|
|
2157
|
-
|
|
2169
|
+
_context13.prev = 1;
|
|
2158
2170
|
_iteratorNormalCompletion2 = true;
|
|
2159
2171
|
_didIteratorError2 = false;
|
|
2160
2172
|
_iteratorError2 = undefined;
|
|
2161
|
-
|
|
2173
|
+
_context13.prev = 5;
|
|
2162
2174
|
_iterator2 = (0, _getIterator3.default)(promises);
|
|
2163
2175
|
|
|
2164
2176
|
case 7:
|
|
2165
2177
|
if (_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done) {
|
|
2166
|
-
|
|
2178
|
+
_context13.next = 16;
|
|
2167
2179
|
break;
|
|
2168
2180
|
}
|
|
2169
2181
|
|
|
2170
2182
|
p = _step2.value;
|
|
2171
|
-
|
|
2183
|
+
_context13.next = 11;
|
|
2172
2184
|
return p;
|
|
2173
2185
|
|
|
2174
2186
|
case 11:
|
|
2175
|
-
_result2 =
|
|
2187
|
+
_result2 = _context13.sent;
|
|
2176
2188
|
|
|
2177
2189
|
results.push(_result2);
|
|
2178
2190
|
|
|
2179
2191
|
case 13:
|
|
2180
2192
|
_iteratorNormalCompletion2 = true;
|
|
2181
|
-
|
|
2193
|
+
_context13.next = 7;
|
|
2182
2194
|
break;
|
|
2183
2195
|
|
|
2184
2196
|
case 16:
|
|
2185
|
-
|
|
2197
|
+
_context13.next = 22;
|
|
2186
2198
|
break;
|
|
2187
2199
|
|
|
2188
2200
|
case 18:
|
|
2189
|
-
|
|
2190
|
-
|
|
2201
|
+
_context13.prev = 18;
|
|
2202
|
+
_context13.t0 = _context13['catch'](5);
|
|
2191
2203
|
_didIteratorError2 = true;
|
|
2192
|
-
_iteratorError2 =
|
|
2204
|
+
_iteratorError2 = _context13.t0;
|
|
2193
2205
|
|
|
2194
2206
|
case 22:
|
|
2195
|
-
|
|
2196
|
-
|
|
2207
|
+
_context13.prev = 22;
|
|
2208
|
+
_context13.prev = 23;
|
|
2197
2209
|
|
|
2198
2210
|
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
2199
2211
|
_iterator2.return();
|
|
2200
2212
|
}
|
|
2201
2213
|
|
|
2202
2214
|
case 25:
|
|
2203
|
-
|
|
2215
|
+
_context13.prev = 25;
|
|
2204
2216
|
|
|
2205
2217
|
if (!_didIteratorError2) {
|
|
2206
|
-
|
|
2218
|
+
_context13.next = 28;
|
|
2207
2219
|
break;
|
|
2208
2220
|
}
|
|
2209
2221
|
|
|
2210
2222
|
throw _iteratorError2;
|
|
2211
2223
|
|
|
2212
2224
|
case 28:
|
|
2213
|
-
return
|
|
2225
|
+
return _context13.finish(25);
|
|
2214
2226
|
|
|
2215
2227
|
case 29:
|
|
2216
|
-
return
|
|
2228
|
+
return _context13.finish(22);
|
|
2217
2229
|
|
|
2218
2230
|
case 30:
|
|
2219
|
-
|
|
2231
|
+
_context13.next = 32;
|
|
2220
2232
|
return commit(results);
|
|
2221
2233
|
|
|
2222
2234
|
case 32:
|
|
2223
|
-
|
|
2235
|
+
_context13.next = 37;
|
|
2224
2236
|
break;
|
|
2225
2237
|
|
|
2226
2238
|
case 34:
|
|
2227
|
-
|
|
2228
|
-
|
|
2239
|
+
_context13.prev = 34;
|
|
2240
|
+
_context13.t1 = _context13['catch'](1);
|
|
2229
2241
|
|
|
2230
|
-
if (
|
|
2231
|
-
_message2.default.error(
|
|
2242
|
+
if (_context13.t1 != "cancelpwd") {
|
|
2243
|
+
_message2.default.error(_context13.t1);
|
|
2232
2244
|
setTimeout(function () {
|
|
2233
2245
|
that.handleCzk();
|
|
2234
2246
|
}, 500);
|
|
@@ -2236,27 +2248,27 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2236
2248
|
|
|
2237
2249
|
case 37:
|
|
2238
2250
|
case 'end':
|
|
2239
|
-
return
|
|
2251
|
+
return _context13.stop();
|
|
2240
2252
|
}
|
|
2241
2253
|
}
|
|
2242
|
-
},
|
|
2254
|
+
}, _callee13, this, [[1, 34], [5, 18, 22, 30], [23,, 25, 29]]);
|
|
2243
2255
|
}));
|
|
2244
2256
|
|
|
2245
2257
|
return function handleUserInputs(_x9) {
|
|
2246
|
-
return
|
|
2258
|
+
return _ref21.apply(this, arguments);
|
|
2247
2259
|
};
|
|
2248
2260
|
}();
|
|
2249
2261
|
|
|
2250
|
-
var that, curmode, promises,
|
|
2262
|
+
var that, curmode, promises, _ref19, isNewRetailBCPos, _enumController$getEn22, PayStyle, commit;
|
|
2251
2263
|
|
|
2252
|
-
return _regenerator2.default.wrap(function
|
|
2264
|
+
return _regenerator2.default.wrap(function _callee14$(_context14) {
|
|
2253
2265
|
while (1) {
|
|
2254
|
-
switch (
|
|
2266
|
+
switch (_context14.prev = _context14.next) {
|
|
2255
2267
|
case 0:
|
|
2256
2268
|
that = _this2;
|
|
2257
2269
|
curmode = _this2.store.paymode.currentMode;
|
|
2258
2270
|
promises = [];
|
|
2259
|
-
|
|
2271
|
+
_ref19 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref19.isNewRetailBCPos;
|
|
2260
2272
|
|
|
2261
2273
|
if (isNewRetailBCPos) {
|
|
2262
2274
|
if (curmode.value > 0) {
|
|
@@ -2275,60 +2287,57 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2275
2287
|
}
|
|
2276
2288
|
|
|
2277
2289
|
commit = function () {
|
|
2278
|
-
var
|
|
2290
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(values) {
|
|
2279
2291
|
var result;
|
|
2280
|
-
return _regenerator2.default.wrap(function
|
|
2292
|
+
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2281
2293
|
while (1) {
|
|
2282
|
-
switch (
|
|
2294
|
+
switch (_context12.prev = _context12.next) {
|
|
2283
2295
|
case 0:
|
|
2284
2296
|
if (!(values.length > 0)) {
|
|
2285
|
-
|
|
2297
|
+
_context12.next = 6;
|
|
2286
2298
|
break;
|
|
2287
2299
|
}
|
|
2288
2300
|
|
|
2289
|
-
|
|
2301
|
+
_context12.next = 3;
|
|
2290
2302
|
return that.store.validePwd(values[0]);
|
|
2291
2303
|
|
|
2292
2304
|
case 3:
|
|
2293
|
-
|
|
2294
|
-
|
|
2305
|
+
_context12.t0 = _context12.sent;
|
|
2306
|
+
_context12.next = 7;
|
|
2295
2307
|
break;
|
|
2296
2308
|
|
|
2297
2309
|
case 6:
|
|
2298
|
-
|
|
2310
|
+
_context12.t0 = "";
|
|
2299
2311
|
|
|
2300
2312
|
case 7:
|
|
2301
|
-
result =
|
|
2313
|
+
result = _context12.t0;
|
|
2302
2314
|
|
|
2303
2315
|
if (!(result == "")) {
|
|
2304
|
-
|
|
2316
|
+
_context12.next = 13;
|
|
2305
2317
|
break;
|
|
2306
2318
|
}
|
|
2307
2319
|
|
|
2308
2320
|
//成功
|
|
2309
2321
|
//返回
|
|
2310
|
-
if (values.length > 0) {
|
|
2311
|
-
_message2.default.success('密码确认成功!');
|
|
2312
|
-
}
|
|
2313
2322
|
that.setCurrentFocusAndAddPay(curmode.paymentType, curmode.paymethodId);
|
|
2314
2323
|
_promise2.default.resolve();
|
|
2315
|
-
|
|
2324
|
+
_context12.next = 15;
|
|
2316
2325
|
break;
|
|
2317
2326
|
|
|
2318
|
-
case
|
|
2319
|
-
|
|
2327
|
+
case 13:
|
|
2328
|
+
_context12.next = 15;
|
|
2320
2329
|
return _promise2.default.reject(result);
|
|
2321
2330
|
|
|
2322
|
-
case
|
|
2331
|
+
case 15:
|
|
2323
2332
|
case 'end':
|
|
2324
|
-
return
|
|
2333
|
+
return _context12.stop();
|
|
2325
2334
|
}
|
|
2326
2335
|
}
|
|
2327
|
-
},
|
|
2336
|
+
}, _callee12, _this3);
|
|
2328
2337
|
}));
|
|
2329
2338
|
|
|
2330
2339
|
return function commit(_x8) {
|
|
2331
|
-
return
|
|
2340
|
+
return _ref20.apply(this, arguments);
|
|
2332
2341
|
};
|
|
2333
2342
|
}();
|
|
2334
2343
|
|
|
@@ -2336,10 +2345,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2336
2345
|
|
|
2337
2346
|
case 7:
|
|
2338
2347
|
case 'end':
|
|
2339
|
-
return
|
|
2348
|
+
return _context14.stop();
|
|
2340
2349
|
}
|
|
2341
2350
|
}
|
|
2342
|
-
},
|
|
2351
|
+
}, _callee14, _this3);
|
|
2343
2352
|
}));
|
|
2344
2353
|
|
|
2345
2354
|
_this2.fKeyboardOnOk = function (paymethodeId) {
|
|
@@ -2379,15 +2388,15 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2379
2388
|
};
|
|
2380
2389
|
|
|
2381
2390
|
_this2.inputPwd = function () {
|
|
2382
|
-
var
|
|
2391
|
+
var _ref22 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee15(paymode) {
|
|
2383
2392
|
var that, confirmPwd;
|
|
2384
|
-
return _regenerator2.default.wrap(function
|
|
2393
|
+
return _regenerator2.default.wrap(function _callee15$(_context15) {
|
|
2385
2394
|
while (1) {
|
|
2386
|
-
switch (
|
|
2395
|
+
switch (_context15.prev = _context15.next) {
|
|
2387
2396
|
case 0:
|
|
2388
2397
|
that = _this2;
|
|
2389
2398
|
confirmPwd = _this2.state.confirmPwd;
|
|
2390
|
-
return
|
|
2399
|
+
return _context15.abrupt('return', new _promise2.default(function (resolve, reject) {
|
|
2391
2400
|
var modal = (0, _asyncModal2.default)({
|
|
2392
2401
|
onPressEnter: function onPressEnter() {
|
|
2393
2402
|
_keyboard2.default.close();
|
|
@@ -2395,8 +2404,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2395
2404
|
// if (v !== '') {
|
|
2396
2405
|
modal.destroy();
|
|
2397
2406
|
|
|
2398
|
-
var
|
|
2399
|
-
confirmPwd =
|
|
2407
|
+
var _ref23 = that.state || {},
|
|
2408
|
+
confirmPwd = _ref23.confirmPwd;
|
|
2400
2409
|
|
|
2401
2410
|
setTimeout(function () {
|
|
2402
2411
|
paymode.authCode = v;
|
|
@@ -2486,8 +2495,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2486
2495
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2487
2496
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2488
2497
|
|
|
2489
|
-
var
|
|
2490
|
-
confirmPwd =
|
|
2498
|
+
var _ref24 = that.state || {},
|
|
2499
|
+
confirmPwd = _ref24.confirmPwd;
|
|
2491
2500
|
// if (v !== '') {
|
|
2492
2501
|
|
|
2493
2502
|
|
|
@@ -2521,14 +2530,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2521
2530
|
|
|
2522
2531
|
case 3:
|
|
2523
2532
|
case 'end':
|
|
2524
|
-
return
|
|
2533
|
+
return _context15.stop();
|
|
2525
2534
|
}
|
|
2526
2535
|
}
|
|
2527
|
-
},
|
|
2536
|
+
}, _callee15, _this3);
|
|
2528
2537
|
}));
|
|
2529
2538
|
|
|
2530
2539
|
return function (_x10) {
|
|
2531
|
-
return
|
|
2540
|
+
return _ref22.apply(this, arguments);
|
|
2532
2541
|
};
|
|
2533
2542
|
}();
|
|
2534
2543
|
|
|
@@ -2581,8 +2590,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2581
2590
|
|
|
2582
2591
|
_this2.onCzkChange = function (v) {
|
|
2583
2592
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2584
|
-
var
|
|
2585
|
-
isNewRetailBCPos =
|
|
2593
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
2594
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
2586
2595
|
|
|
2587
2596
|
if (!isNewRetailBCPos) {
|
|
2588
2597
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3163,22 +3172,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3163
3172
|
|
|
3164
3173
|
_this2.hasElectron = hasElectron;
|
|
3165
3174
|
|
|
3166
|
-
var
|
|
3167
|
-
|
|
3175
|
+
var _ref26 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3176
|
+
_ref26$loginInfo = _ref26.loginInfo;
|
|
3168
3177
|
|
|
3169
|
-
|
|
3170
|
-
var MemberMeStorageCardInputByKeyBoard =
|
|
3171
|
-
ICCardServer =
|
|
3172
|
-
ICCardPassword =
|
|
3178
|
+
_ref26$loginInfo = _ref26$loginInfo === undefined ? {} : _ref26$loginInfo;
|
|
3179
|
+
var MemberMeStorageCardInputByKeyBoard = _ref26$loginInfo.MemberMeStorageCardInputByKeyBoard,
|
|
3180
|
+
ICCardServer = _ref26$loginInfo.ICCardServer,
|
|
3181
|
+
ICCardPassword = _ref26$loginInfo.ICCardPassword;
|
|
3173
3182
|
|
|
3174
3183
|
_this2.isStorageCardInputType = MemberMeStorageCardInputByKeyBoard; // 仅储值卡是否禁用键盘输入,'0'为不禁用 '1'为禁用
|
|
3175
3184
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3176
3185
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3177
3186
|
//移动端环境下,没有读取IC卡的方式。
|
|
3178
3187
|
|
|
3179
|
-
var
|
|
3180
|
-
isHorizontalPad =
|
|
3181
|
-
isHorizontalSunMi =
|
|
3188
|
+
var _ref27 = _mutantsUtil.platform || {},
|
|
3189
|
+
isHorizontalPad = _ref27.isHorizontalPad,
|
|
3190
|
+
isHorizontalSunMi = _ref27.isHorizontalSunMi;
|
|
3182
3191
|
|
|
3183
3192
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3184
3193
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3415,8 +3424,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3415
3424
|
storageValue = _state2.storageValue,
|
|
3416
3425
|
czkValue = _state2.czkValue;
|
|
3417
3426
|
|
|
3418
|
-
var
|
|
3419
|
-
isNewRetailBCPos =
|
|
3427
|
+
var _ref28 = _mutantsUtil.platform || {},
|
|
3428
|
+
isNewRetailBCPos = _ref28.isNewRetailBCPos;
|
|
3420
3429
|
|
|
3421
3430
|
var _store2 = this.store,
|
|
3422
3431
|
paymode = _store2.paymode,
|
|
@@ -3479,11 +3488,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3479
3488
|
quantity4 = 0;
|
|
3480
3489
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3481
3490
|
|
|
3482
|
-
var
|
|
3483
|
-
|
|
3484
|
-
buyQuantity =
|
|
3485
|
-
|
|
3486
|
-
returnQuantity =
|
|
3491
|
+
var _ref29 = quantityDetail || {},
|
|
3492
|
+
_ref29$buyQuantity = _ref29.buyQuantity,
|
|
3493
|
+
buyQuantity = _ref29$buyQuantity === undefined ? 0 : _ref29$buyQuantity,
|
|
3494
|
+
_ref29$returnQuantity = _ref29.returnQuantity,
|
|
3495
|
+
returnQuantity = _ref29$returnQuantity === undefined ? 0 : _ref29$returnQuantity;
|
|
3487
3496
|
|
|
3488
3497
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3489
3498
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3784,7 +3793,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3784
3793
|
(0, _utils.getFixedNumber)(mode.balance)
|
|
3785
3794
|
),
|
|
3786
3795
|
_react2.default.createElement('br', null),
|
|
3787
|
-
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && _react2.default.createElement(
|
|
3796
|
+
themodeHyczk && themodeHyczk.length && themodeHyczk[themodeHyczk.length - 1].paymethodId === mode.paymethodId && !isReturn && _react2.default.createElement(
|
|
3788
3797
|
_button2.default,
|
|
3789
3798
|
{ onClick: function onClick() {
|
|
3790
3799
|
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
@@ -4820,22 +4829,22 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4820
4829
|
return _this8.czkInput = input;
|
|
4821
4830
|
},
|
|
4822
4831
|
onKeyDown: function () {
|
|
4823
|
-
var
|
|
4832
|
+
var _ref30 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee16(e) {
|
|
4824
4833
|
var time, _paymode;
|
|
4825
4834
|
|
|
4826
|
-
return _regenerator2.default.wrap(function
|
|
4835
|
+
return _regenerator2.default.wrap(function _callee16$(_context16) {
|
|
4827
4836
|
while (1) {
|
|
4828
|
-
switch (
|
|
4837
|
+
switch (_context16.prev = _context16.next) {
|
|
4829
4838
|
case 0:
|
|
4830
4839
|
if (!(e.keyCode == 13)) {
|
|
4831
|
-
|
|
4840
|
+
_context16.next = 14;
|
|
4832
4841
|
break;
|
|
4833
4842
|
}
|
|
4834
4843
|
|
|
4835
4844
|
time = Date.parse(new Date());
|
|
4836
4845
|
|
|
4837
4846
|
if (!(_this8.isStorageCardInputType && time - _this8.keypressStime > 350)) {
|
|
4838
|
-
|
|
4847
|
+
_context16.next = 7;
|
|
4839
4848
|
break;
|
|
4840
4849
|
}
|
|
4841
4850
|
|
|
@@ -4844,11 +4853,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4844
4853
|
_this8.setState({
|
|
4845
4854
|
czkValue: null
|
|
4846
4855
|
});
|
|
4847
|
-
return
|
|
4856
|
+
return _context16.abrupt('return');
|
|
4848
4857
|
|
|
4849
4858
|
case 7:
|
|
4850
4859
|
_this8.keypressStime = null;
|
|
4851
|
-
|
|
4860
|
+
_context16.next = 10;
|
|
4852
4861
|
return _this8.loadCzk(e.target.value);
|
|
4853
4862
|
|
|
4854
4863
|
case 10:
|
|
@@ -4859,7 +4868,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4859
4868
|
czkvalue: null
|
|
4860
4869
|
});
|
|
4861
4870
|
}
|
|
4862
|
-
|
|
4871
|
+
_context16.next = 15;
|
|
4863
4872
|
break;
|
|
4864
4873
|
|
|
4865
4874
|
case 14:
|
|
@@ -4869,14 +4878,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4869
4878
|
|
|
4870
4879
|
case 15:
|
|
4871
4880
|
case 'end':
|
|
4872
|
-
return
|
|
4881
|
+
return _context16.stop();
|
|
4873
4882
|
}
|
|
4874
4883
|
}
|
|
4875
|
-
},
|
|
4884
|
+
}, _callee16, _this8);
|
|
4876
4885
|
}));
|
|
4877
4886
|
|
|
4878
4887
|
return function (_x12) {
|
|
4879
|
-
return
|
|
4888
|
+
return _ref30.apply(this, arguments);
|
|
4880
4889
|
};
|
|
4881
4890
|
}(),
|
|
4882
4891
|
onFocus: function onFocus(e) {
|
|
@@ -4933,8 +4942,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4933
4942
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.balance));
|
|
4934
4943
|
},
|
|
4935
4944
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.balance)),
|
|
4936
|
-
ref: function ref(
|
|
4937
|
-
return _this8["inputCzkAmount"] =
|
|
4945
|
+
ref: function ref(_ref31) {
|
|
4946
|
+
return _this8["inputCzkAmount"] = _ref31;
|
|
4938
4947
|
},
|
|
4939
4948
|
onFocus: function onFocus(e) {
|
|
4940
4949
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -5551,8 +5560,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5551
5560
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5552
5561
|
},
|
|
5553
5562
|
defaultValue: currentMode && currentMode.member && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5554
|
-
ref: function ref(
|
|
5555
|
-
return _this8["inputJfdxAmount"] =
|
|
5563
|
+
ref: function ref(_ref32) {
|
|
5564
|
+
return _this8["inputJfdxAmount"] = _ref32;
|
|
5556
5565
|
},
|
|
5557
5566
|
onFocus: function onFocus(e) {
|
|
5558
5567
|
_this8.inputkey = "inputJfdxAmount";
|