tplus-components-touch 3.39.10 → 3.39.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.
@@ -1217,6 +1217,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1217
1217
|
};
|
1218
1218
|
|
1219
1219
|
_this2.onTabsClick = function (key, bookType) {
|
1220
|
+
if (!_this2.isDjqValidated(key)) {
|
1221
|
+
return;
|
1222
|
+
};
|
1220
1223
|
var _this2$store3 = _this2.store,
|
1221
1224
|
paymode = _this2$store3.paymode,
|
1222
1225
|
brefund = _this2$store3.brefund,
|
@@ -1226,10 +1229,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1226
1229
|
PayStyle = _enumController$getEn9.PayStyle,
|
1227
1230
|
Differentiate = _enumController$getEn9.Differentiate;
|
1228
1231
|
|
1229
|
-
if (key === PayStyle.djq && Math.Minus(paymode.received, paymode.amount) > 0) {
|
1230
|
-
_message2.default.warn('实收金额已大于应收金额,不允许使用优惠券');
|
1231
|
-
return;
|
1232
|
-
}
|
1233
1232
|
if (key === PayStyle.hyczk) {
|
1234
1233
|
var isProhibitMeStorageCard = _this2.props.isProhibitMeStorageCard;
|
1235
1234
|
|
@@ -1528,6 +1527,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1528
1527
|
};
|
1529
1528
|
|
1530
1529
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn, bookType) {
|
1530
|
+
if (!_this2.isDjqValidated(mode.paymentType)) {
|
1531
|
+
return;
|
1532
|
+
};
|
1531
1533
|
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1532
1534
|
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1533
1535
|
// }
|
@@ -3510,6 +3512,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3510
3512
|
|
3511
3513
|
//jfdx
|
3512
3514
|
|
3515
|
+
}, {
|
3516
|
+
key: 'isDjqValidated',
|
3517
|
+
value: function isDjqValidated(key) {
|
3518
|
+
var paymode = this.store.paymode;
|
3519
|
+
|
3520
|
+
var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
|
3521
|
+
PayStyle = _enumController$getEn32.PayStyle;
|
3522
|
+
|
3523
|
+
if (key === PayStyle.djq && Math.Minus(paymode.received, paymode.amount) > 0) {
|
3524
|
+
_message2.default.warn('实收金额已大于应收金额,不允许使用优惠券');
|
3525
|
+
return false;
|
3526
|
+
}
|
3527
|
+
return true;
|
3528
|
+
}
|
3513
3529
|
|
3514
3530
|
/**
|
3515
3531
|
*
|
@@ -3600,8 +3616,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3600
3616
|
}, {
|
3601
3617
|
key: 'onKeyboardChange',
|
3602
3618
|
value: function onKeyboardChange(key) {
|
3603
|
-
var _enumController$
|
3604
|
-
PayStyle = _enumController$
|
3619
|
+
var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
|
3620
|
+
PayStyle = _enumController$getEn33.PayStyle;
|
3605
3621
|
|
3606
3622
|
if (this.currentInput) {
|
3607
3623
|
if (this.store.paymode.currentMode) {
|
@@ -3622,9 +3638,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3622
3638
|
value: function renderToolbtn(mode, index, bookType) {
|
3623
3639
|
var _this7 = this;
|
3624
3640
|
|
3625
|
-
var _enumController$
|
3626
|
-
PayIcon = _enumController$
|
3627
|
-
PayStyle = _enumController$
|
3641
|
+
var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
|
3642
|
+
PayIcon = _enumController$getEn34.PayIcon,
|
3643
|
+
PayStyle = _enumController$getEn34.PayStyle;
|
3628
3644
|
|
3629
3645
|
var isReturn = this.props.isReturn;
|
3630
3646
|
var _store = this.store,
|
@@ -3696,11 +3712,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3696
3712
|
value: function render() {
|
3697
3713
|
var _this8 = this;
|
3698
3714
|
|
3699
|
-
var _enumController$
|
3700
|
-
PayIcon = _enumController$
|
3701
|
-
PayIcon2 = _enumController$
|
3702
|
-
PayStyle = _enumController$
|
3703
|
-
Differentiate = _enumController$
|
3715
|
+
var _enumController$getEn35 = _mutantsUtil.enumController.getEnumOj(),
|
3716
|
+
PayIcon = _enumController$getEn35.PayIcon,
|
3717
|
+
PayIcon2 = _enumController$getEn35.PayIcon2,
|
3718
|
+
PayStyle = _enumController$getEn35.PayStyle,
|
3719
|
+
Differentiate = _enumController$getEn35.Differentiate;
|
3704
3720
|
|
3705
3721
|
var _state2 = this.state,
|
3706
3722
|
btnDissabled = _state2.btnDissabled,
|