tplus-components-touch 3.22.1 → 3.22.5
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/addLog/AddLogProcessor.js +1 -5
- package/dist/components/addLog/AddLogProcessor.js.map +1 -1
- package/dist/components/addLog/OperationLogApi.js +6 -45
- package/dist/components/addLog/OperationLogApi.js.map +1 -1
- package/dist/components/billSearch/index.js +64 -4
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/billSearch/index.less +12 -2
- package/dist/components/cloudPrint/api.js +1 -1
- package/dist/components/cloudPrint/api.js.map +1 -1
- package/dist/components/cloudPrint/index.js +57 -33
- package/dist/components/cloudPrint/index.js.map +1 -1
- package/dist/components/cloudPrint/printDispatch.js +223 -0
- package/dist/components/cloudPrint/printDispatch.js.map +1 -0
- package/dist/components/commonForm/addressPicker/index.js +4 -2
- package/dist/components/commonForm/addressPicker/index.js.map +1 -1
- package/dist/components/commonForm/formControl/index.js +3 -0
- package/dist/components/commonForm/formControl/index.js.map +1 -1
- package/dist/components/hotKey/localConfig.js +14 -1
- package/dist/components/hotKey/localConfig.js.map +1 -1
- package/dist/components/keyboard/index.js +1 -1
- package/dist/components/keyboard/index.js.map +1 -1
- package/dist/components/loading/index.js +5 -0
- package/dist/components/loading/index.js.map +1 -1
- package/dist/components/loading/loadingContent.js +23 -6
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/loading/style.less +12 -2
- package/dist/components/message/index.js +11 -0
- package/dist/components/message/index.js.map +1 -1
- package/dist/components/message/index.less +16 -1
- package/dist/components/modalWraper/style.less +6 -0
- package/dist/components/settlement/settlement.js +243 -142
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +73 -11
- package/dist/components/settlement/settlementStore.js +523 -243
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +256 -3
- package/dist/components/ticon/iconfont/iconfont.css +47 -3
- package/dist/components/ticon/iconfont/iconfont.js +1 -1
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +77 -0
- package/dist/components/ticon/iconfont/iconfont.ttf +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff +0 -0
- package/dist/components/ticon/iconfont/iconfont.woff2 +0 -0
- package/dist/components/touchTable/index.js +8 -0
- package/dist/components/touchTable/index.js.map +1 -1
- package/dist/index.js +17 -2
- package/dist/index.js.map +1 -1
- package/package.json +35 -35
|
@@ -250,7 +250,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
250
250
|
discountRetailTotalAount: null,
|
|
251
251
|
discountPrototypeTotalAmount: null,
|
|
252
252
|
bquick: false,
|
|
253
|
-
currentKey: null
|
|
253
|
+
currentKey: null,
|
|
254
|
+
couponLight: true };
|
|
254
255
|
_this2.compoundHotkeysList = (window.$.operationControl[5] ? window.$.operationControl[5].control || [] : []).map(function (key) {
|
|
255
256
|
return key.toLocaleUpperCase();
|
|
256
257
|
});
|
|
@@ -276,7 +277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
276
277
|
});
|
|
277
278
|
}
|
|
278
279
|
if (b.lastChild) {
|
|
279
|
-
|
|
280
|
+
// 原来bWidth < cWidth,过渡过程中右边按钮会隐藏,+20之后解决
|
|
281
|
+
if (bWidth < cWidth + 20) {
|
|
280
282
|
b.lastChild.className = 'btns voucherMode';
|
|
281
283
|
} else {
|
|
282
284
|
b.lastChild.className = 'btns';
|
|
@@ -566,42 +568,42 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
566
568
|
duration: 4
|
|
567
569
|
});
|
|
568
570
|
} else {
|
|
569
|
-
if (isNewRetailBCPos) {
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
} else {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
571
|
+
// if (isNewRetailBCPos) {
|
|
572
|
+
// let { isReturn } = this.props;
|
|
573
|
+
// let sMember = this.store.member;
|
|
574
|
+
// if (!sMember.StorageCardEnable) {
|
|
575
|
+
// Message.warn("该储值卡已停用");
|
|
576
|
+
// return;
|
|
577
|
+
// }
|
|
578
|
+
// if (sMember && sMember.ID) {
|
|
579
|
+
// // noPlaySetPwd 点击结算方式设置密码,点加号不设置
|
|
580
|
+
// if (!sMember.WalletEnabled && params !== 'noPlaySetPwd' && !isReturn) {
|
|
581
|
+
// this.setState({
|
|
582
|
+
// newPass: '',
|
|
583
|
+
// newPassConfirm: '',
|
|
584
|
+
// showSetPwdModal: true
|
|
585
|
+
// })
|
|
586
|
+
// } else {
|
|
587
|
+
// this.setState({
|
|
588
|
+
// showSetPwdModal: false,
|
|
589
|
+
// czkVisible: true
|
|
590
|
+
// })
|
|
591
|
+
// }
|
|
592
|
+
// }
|
|
593
|
+
// // else {
|
|
594
|
+
// // Message.warn('请先录入会员');
|
|
595
|
+
// // }
|
|
596
|
+
// // this.setState({
|
|
597
|
+
// // czkVisible: true,
|
|
598
|
+
// // });
|
|
599
|
+
// } else {
|
|
600
|
+
// this.setState({
|
|
601
|
+
// czkVisible: true,
|
|
602
|
+
// });
|
|
603
|
+
// }
|
|
604
|
+
_this2.setState({
|
|
605
|
+
czkVisible: true
|
|
606
|
+
});
|
|
605
607
|
}
|
|
606
608
|
setTimeout(function () {
|
|
607
609
|
if (!currentMode.member || !currentMode.member.id) {
|
|
@@ -618,7 +620,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
618
620
|
|
|
619
621
|
_this2.handleCzkOk = function () {
|
|
620
622
|
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(e) {
|
|
621
|
-
var
|
|
623
|
+
var _enumController$getEn3, PayStyle;
|
|
622
624
|
|
|
623
625
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
624
626
|
while (1) {
|
|
@@ -632,57 +634,46 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
632
634
|
// });
|
|
633
635
|
// return;
|
|
634
636
|
// }
|
|
635
|
-
sMember = _this2.store.member;
|
|
636
|
-
|
|
637
|
-
if (sMember.StorageCardEnable) {
|
|
638
|
-
_context.next = 4;
|
|
639
|
-
break;
|
|
640
|
-
}
|
|
641
|
-
|
|
642
|
-
_message2.default.warn("该储值卡已停用");
|
|
643
|
-
return _context.abrupt('return');
|
|
644
|
-
|
|
645
|
-
case 4:
|
|
646
637
|
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
647
638
|
|
|
648
639
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
649
|
-
_context.next =
|
|
640
|
+
_context.next = 4;
|
|
650
641
|
break;
|
|
651
642
|
}
|
|
652
643
|
|
|
653
|
-
_context.next =
|
|
644
|
+
_context.next = 4;
|
|
654
645
|
return _this2.store.loadCzk(_this2.czkInput.input.value);
|
|
655
646
|
|
|
656
|
-
case
|
|
647
|
+
case 4:
|
|
657
648
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
658
|
-
_context.next =
|
|
649
|
+
_context.next = 7;
|
|
659
650
|
break;
|
|
660
651
|
}
|
|
661
652
|
|
|
662
653
|
_message2.default.error("请录入储值卡!");
|
|
663
654
|
return _context.abrupt('return');
|
|
664
655
|
|
|
665
|
-
case
|
|
656
|
+
case 7:
|
|
666
657
|
if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
667
658
|
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.member.id == _this2.store.paymode.currentMode.member.id;
|
|
668
659
|
})) {
|
|
669
|
-
_context.next =
|
|
660
|
+
_context.next = 10;
|
|
670
661
|
break;
|
|
671
662
|
}
|
|
672
663
|
|
|
673
664
|
_message2.default.error("该储值卡已使用。");
|
|
674
665
|
return _context.abrupt('return');
|
|
675
666
|
|
|
676
|
-
case
|
|
667
|
+
case 10:
|
|
677
668
|
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
678
|
-
_context.next =
|
|
669
|
+
_context.next = 13;
|
|
679
670
|
break;
|
|
680
671
|
}
|
|
681
672
|
|
|
682
673
|
_message2.default.error("实收金额应等于应收金额。");
|
|
683
674
|
return _context.abrupt('return');
|
|
684
675
|
|
|
685
|
-
case
|
|
676
|
+
case 13:
|
|
686
677
|
|
|
687
678
|
_this2.setState({
|
|
688
679
|
czkVisible: false
|
|
@@ -691,7 +682,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
691
682
|
_this2.store.paymode.calcMemberBalance();
|
|
692
683
|
_this2.handleCzk();
|
|
693
684
|
|
|
694
|
-
case
|
|
685
|
+
case 17:
|
|
695
686
|
case 'end':
|
|
696
687
|
return _context.stop();
|
|
697
688
|
}
|
|
@@ -851,8 +842,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
851
842
|
|
|
852
843
|
_this2.store.setCurrentMode(id, PayStyle.djq);
|
|
853
844
|
_this2.setState({
|
|
854
|
-
djqVisible: true
|
|
845
|
+
djqVisible: true,
|
|
846
|
+
couponLight: true
|
|
855
847
|
});
|
|
848
|
+
_this2.store.paymode.calcCheckList();
|
|
856
849
|
setTimeout(function () {
|
|
857
850
|
_this2.inputdjq && _this2.inputdjq.input && _this2.inputdjq.input.focus();
|
|
858
851
|
}, 200);
|
|
@@ -943,6 +936,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
943
936
|
});
|
|
944
937
|
};
|
|
945
938
|
|
|
939
|
+
_this2.checkOfflineEnable = function (paymode, key) {
|
|
940
|
+
var _ref8 = paymode || {},
|
|
941
|
+
paymodes = _ref8.paymodes;
|
|
942
|
+
|
|
943
|
+
var isOffline = _mutantsMicrofx.stores.offlineSys.isOffline;
|
|
944
|
+
|
|
945
|
+
if (isOffline) {
|
|
946
|
+
if (paymodes) {
|
|
947
|
+
var currentPayMode = paymodes.find(function (item) {
|
|
948
|
+
return item.paymentType === key;
|
|
949
|
+
});
|
|
950
|
+
if (currentPayMode && !currentPayMode.offlineDisable) {
|
|
951
|
+
return true;
|
|
952
|
+
} else {
|
|
953
|
+
_message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u4E0D\u652F\u6301\u6B64\u7ED3\u7B97\u65B9\u5F0F');
|
|
954
|
+
return false;
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
_message2.default.warn('\u79BB\u7EBF\u6A21\u5F0F\u4E0B\u7ED3\u7B97\u65B9\u5F0F\u6570\u636E\u9519\u8BEF');
|
|
958
|
+
return false;
|
|
959
|
+
} else {
|
|
960
|
+
return true;
|
|
961
|
+
}
|
|
962
|
+
};
|
|
963
|
+
|
|
946
964
|
_this2.onTabsClick2 = function (paymode, brefund, themode, key) {
|
|
947
965
|
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
948
966
|
PayStyle = _enumController$getEn7.PayStyle,
|
|
@@ -1060,6 +1078,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1060
1078
|
boriginReturn = _this2$store3.boriginReturn;
|
|
1061
1079
|
var noAlreadyWarn = _this2.state.noAlreadyWarn;
|
|
1062
1080
|
|
|
1081
|
+
|
|
1082
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
|
|
1083
|
+
|
|
1063
1084
|
if (_this2.checkModeDisabled(key, brefund, boriginReturn)) {
|
|
1064
1085
|
return;
|
|
1065
1086
|
}
|
|
@@ -1148,6 +1169,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1148
1169
|
};
|
|
1149
1170
|
|
|
1150
1171
|
_this2.handleChange = function (index, e) {
|
|
1172
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
|
1151
1173
|
var currentInput = e.target;
|
|
1152
1174
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
|
1153
1175
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
|
@@ -1221,7 +1243,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1221
1243
|
_this2.showCzkModal(-1, bappend, params);
|
|
1222
1244
|
};
|
|
1223
1245
|
|
|
1224
|
-
_this2.djqChecked = function (q) {
|
|
1246
|
+
_this2.djqChecked = function (q, dto) {
|
|
1225
1247
|
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1226
1248
|
Differentiate = _enumController$getEn14.Differentiate;
|
|
1227
1249
|
|
|
@@ -1229,7 +1251,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1229
1251
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
|
1230
1252
|
return;
|
|
1231
1253
|
}
|
|
1232
|
-
|
|
1254
|
+
|
|
1255
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
1256
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
1257
|
+
|
|
1258
|
+
if (isNewRetailBCPos) {
|
|
1259
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
1260
|
+
} else {
|
|
1261
|
+
_this2.store.paymode.calcDjqValue(q);
|
|
1262
|
+
}
|
|
1263
|
+
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
|
1264
|
+
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.checked}), this.store.paymode.currentMode.djqs);
|
|
1233
1265
|
};
|
|
1234
1266
|
|
|
1235
1267
|
_this2.addDjq = function () {
|
|
@@ -1242,8 +1274,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1242
1274
|
// return ;
|
|
1243
1275
|
// }
|
|
1244
1276
|
_this2.store.checkCoupon(v).then(function () {
|
|
1245
|
-
_this2.inputdjq.input.value = '';
|
|
1246
1277
|
_this2.inputdjq.input.focus();
|
|
1278
|
+
}).finally(function () {
|
|
1279
|
+
setTimeout(function () {
|
|
1280
|
+
_this2.inputdjq.input.value = '';
|
|
1281
|
+
var ele = document.getElementById('djqInput');
|
|
1282
|
+
ele.value = '';
|
|
1283
|
+
}, 100);
|
|
1247
1284
|
});
|
|
1248
1285
|
};
|
|
1249
1286
|
|
|
@@ -1265,6 +1302,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1265
1302
|
};
|
|
1266
1303
|
|
|
1267
1304
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
|
1305
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1268
1306
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1269
1307
|
return;
|
|
1270
1308
|
}
|
|
@@ -1304,6 +1342,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1304
1342
|
};
|
|
1305
1343
|
|
|
1306
1344
|
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
|
1345
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1307
1346
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1308
1347
|
return;
|
|
1309
1348
|
}
|
|
@@ -1358,7 +1397,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1358
1397
|
thePaymodes.forEach(function (paymodes, index) {
|
|
1359
1398
|
if (paymodes.paymethodId == _this2.state.currentIndex) payIndex = index;
|
|
1360
1399
|
});
|
|
1361
|
-
|
|
1362
1400
|
_this2.setFocusAndSelectionMode(thePaymodes, payIndex);
|
|
1363
1401
|
}
|
|
1364
1402
|
}, 500, {
|
|
@@ -1404,7 +1442,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1404
1442
|
var findIndex = currenIndex;
|
|
1405
1443
|
var endCurrentMode = thePaymodes.find(function (mode, index) {
|
|
1406
1444
|
findIndex++;
|
|
1407
|
-
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx;
|
|
1445
|
+
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx && _mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType, true);
|
|
1408
1446
|
});
|
|
1409
1447
|
if (endCurrentMode) return { mode: endCurrentMode, index: findIndex };
|
|
1410
1448
|
return null;
|
|
@@ -1582,6 +1620,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1582
1620
|
//副屏-第二屏幕
|
|
1583
1621
|
if (_this.isHorizontalSunMi) {
|
|
1584
1622
|
window.sunMi_PresentationManager.sendMessageToSecondScreen(params);
|
|
1623
|
+
setTimeout(function () {
|
|
1624
|
+
window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 1 });
|
|
1625
|
+
}, 3000);
|
|
1585
1626
|
} else {
|
|
1586
1627
|
_mutantsMicrofx.nativeMs && _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReplyScreen', params);
|
|
1587
1628
|
}
|
|
@@ -1642,7 +1683,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1642
1683
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
|
1643
1684
|
message = "兑换成功";
|
|
1644
1685
|
}
|
|
1645
|
-
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, stores, function () {
|
|
1686
|
+
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
|
|
1646
1687
|
_this.handleGuestShow(5);
|
|
1647
1688
|
});
|
|
1648
1689
|
_this2.setState({ isXianjin: false });
|
|
@@ -1661,13 +1702,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1661
1702
|
if (_this2.hasElectron === false) return;
|
|
1662
1703
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1663
1704
|
|
|
1664
|
-
var
|
|
1665
|
-
guestshow_enable =
|
|
1666
|
-
guestshow_clear =
|
|
1667
|
-
guestshow_welcome =
|
|
1668
|
-
guestshow_collect =
|
|
1669
|
-
guestshow_refund =
|
|
1670
|
-
guestshow_change =
|
|
1705
|
+
var _ref12 = dt || {},
|
|
1706
|
+
guestshow_enable = _ref12.guestshow_enable,
|
|
1707
|
+
guestshow_clear = _ref12.guestshow_clear,
|
|
1708
|
+
guestshow_welcome = _ref12.guestshow_welcome,
|
|
1709
|
+
guestshow_collect = _ref12.guestshow_collect,
|
|
1710
|
+
guestshow_refund = _ref12.guestshow_refund,
|
|
1711
|
+
guestshow_change = _ref12.guestshow_change;
|
|
1671
1712
|
|
|
1672
1713
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1673
1714
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1702,9 +1743,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1702
1743
|
};
|
|
1703
1744
|
|
|
1704
1745
|
_this2.handleSettle = function () {
|
|
1705
|
-
var
|
|
1746
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1706
1747
|
var handleUserInputs = function () {
|
|
1707
|
-
var
|
|
1748
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1708
1749
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1709
1750
|
|
|
1710
1751
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1795,7 +1836,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1795
1836
|
}));
|
|
1796
1837
|
|
|
1797
1838
|
return function handleUserInputs(_x4) {
|
|
1798
|
-
return
|
|
1839
|
+
return _ref15.apply(this, arguments);
|
|
1799
1840
|
};
|
|
1800
1841
|
}();
|
|
1801
1842
|
|
|
@@ -1898,7 +1939,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1898
1939
|
});
|
|
1899
1940
|
|
|
1900
1941
|
commit = function () {
|
|
1901
|
-
var
|
|
1942
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1902
1943
|
var result;
|
|
1903
1944
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1904
1945
|
while (1) {
|
|
@@ -1972,7 +2013,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1972
2013
|
}));
|
|
1973
2014
|
|
|
1974
2015
|
return function commit(_x3) {
|
|
1975
|
-
return
|
|
2016
|
+
return _ref14.apply(this, arguments);
|
|
1976
2017
|
};
|
|
1977
2018
|
}();
|
|
1978
2019
|
|
|
@@ -1987,13 +2028,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1987
2028
|
}));
|
|
1988
2029
|
|
|
1989
2030
|
return function (_x2) {
|
|
1990
|
-
return
|
|
2031
|
+
return _ref13.apply(this, arguments);
|
|
1991
2032
|
};
|
|
1992
2033
|
}();
|
|
1993
2034
|
|
|
1994
2035
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
1995
2036
|
var handleUserInputs = function () {
|
|
1996
|
-
var
|
|
2037
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1997
2038
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
1998
2039
|
|
|
1999
2040
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2090,11 +2131,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2090
2131
|
}));
|
|
2091
2132
|
|
|
2092
2133
|
return function handleUserInputs(_x6) {
|
|
2093
|
-
return
|
|
2134
|
+
return _ref19.apply(this, arguments);
|
|
2094
2135
|
};
|
|
2095
2136
|
}();
|
|
2096
2137
|
|
|
2097
|
-
var that, curmode, promises,
|
|
2138
|
+
var that, curmode, promises, _ref17, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2098
2139
|
|
|
2099
2140
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2100
2141
|
while (1) {
|
|
@@ -2103,14 +2144,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2103
2144
|
that = _this2;
|
|
2104
2145
|
curmode = _this2.store.paymode.currentMode;
|
|
2105
2146
|
promises = [];
|
|
2106
|
-
|
|
2147
|
+
_ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
|
|
2107
2148
|
|
|
2108
2149
|
if (isNewRetailBCPos) {
|
|
2109
2150
|
if (curmode.value > 0) {
|
|
2110
2151
|
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
2111
2152
|
|
|
2112
2153
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2113
|
-
|
|
2154
|
+
isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
2155
|
+
|
|
2156
|
+
if (isNeedPasswordForStoragePay) {
|
|
2157
|
+
promises.push(that.inputPwd(curmode));
|
|
2158
|
+
}
|
|
2114
2159
|
}
|
|
2115
2160
|
}
|
|
2116
2161
|
} else {
|
|
@@ -2120,7 +2165,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2120
2165
|
}
|
|
2121
2166
|
|
|
2122
2167
|
commit = function () {
|
|
2123
|
-
var
|
|
2168
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2124
2169
|
var result;
|
|
2125
2170
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2126
2171
|
while (1) {
|
|
@@ -2170,7 +2215,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2170
2215
|
}));
|
|
2171
2216
|
|
|
2172
2217
|
return function commit(_x5) {
|
|
2173
|
-
return
|
|
2218
|
+
return _ref18.apply(this, arguments);
|
|
2174
2219
|
};
|
|
2175
2220
|
}();
|
|
2176
2221
|
|
|
@@ -2221,7 +2266,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2221
2266
|
};
|
|
2222
2267
|
|
|
2223
2268
|
_this2.inputPwd = function () {
|
|
2224
|
-
var
|
|
2269
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2225
2270
|
var that, confirmPwd;
|
|
2226
2271
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2227
2272
|
while (1) {
|
|
@@ -2237,8 +2282,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2237
2282
|
// if (v !== '') {
|
|
2238
2283
|
modal.destroy();
|
|
2239
2284
|
|
|
2240
|
-
var
|
|
2241
|
-
confirmPwd =
|
|
2285
|
+
var _ref21 = that.state || {},
|
|
2286
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2242
2287
|
|
|
2243
2288
|
setTimeout(function () {
|
|
2244
2289
|
paymode.authCode = v;
|
|
@@ -2328,8 +2373,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2328
2373
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2329
2374
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2330
2375
|
|
|
2331
|
-
var
|
|
2332
|
-
confirmPwd =
|
|
2376
|
+
var _ref22 = that.state || {},
|
|
2377
|
+
confirmPwd = _ref22.confirmPwd;
|
|
2333
2378
|
// if (v !== '') {
|
|
2334
2379
|
|
|
2335
2380
|
|
|
@@ -2370,7 +2415,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2370
2415
|
}));
|
|
2371
2416
|
|
|
2372
2417
|
return function (_x7) {
|
|
2373
|
-
return
|
|
2418
|
+
return _ref20.apply(this, arguments);
|
|
2374
2419
|
};
|
|
2375
2420
|
}();
|
|
2376
2421
|
|
|
@@ -2388,6 +2433,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2388
2433
|
boriginReturn = _this2$store7.boriginReturn,
|
|
2389
2434
|
newStyle = _this2$store7.newStyle;
|
|
2390
2435
|
|
|
2436
|
+
|
|
2437
|
+
if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
|
|
2438
|
+
|
|
2391
2439
|
var status = false;
|
|
2392
2440
|
paymode.thePaymodes.forEach(function (v) {
|
|
2393
2441
|
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
|
@@ -2420,8 +2468,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2420
2468
|
|
|
2421
2469
|
_this2.onCzkChange = function (v) {
|
|
2422
2470
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2423
|
-
var
|
|
2424
|
-
isNewRetailBCPos =
|
|
2471
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
2472
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
2425
2473
|
|
|
2426
2474
|
if (!isNewRetailBCPos) {
|
|
2427
2475
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2988,22 +3036,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2988
3036
|
}
|
|
2989
3037
|
};
|
|
2990
3038
|
|
|
3039
|
+
_this2.couponClick = function () {
|
|
3040
|
+
_this2.setState({
|
|
3041
|
+
couponLight: !_this2.state.couponLight
|
|
3042
|
+
});
|
|
3043
|
+
};
|
|
3044
|
+
|
|
2991
3045
|
_this2.hasElectron = hasElectron;
|
|
2992
3046
|
|
|
2993
|
-
var
|
|
2994
|
-
|
|
3047
|
+
var _ref24 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3048
|
+
_ref24$loginInfo = _ref24.loginInfo;
|
|
2995
3049
|
|
|
2996
|
-
|
|
2997
|
-
var ICCardServer =
|
|
2998
|
-
ICCardPassword =
|
|
3050
|
+
_ref24$loginInfo = _ref24$loginInfo === undefined ? {} : _ref24$loginInfo;
|
|
3051
|
+
var ICCardServer = _ref24$loginInfo.ICCardServer,
|
|
3052
|
+
ICCardPassword = _ref24$loginInfo.ICCardPassword;
|
|
2999
3053
|
|
|
3000
3054
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3001
3055
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3002
3056
|
//移动端环境下,没有读取IC卡的方式。
|
|
3003
3057
|
|
|
3004
|
-
var
|
|
3005
|
-
isHorizontalPad =
|
|
3006
|
-
isHorizontalSunMi =
|
|
3058
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3059
|
+
isHorizontalPad = _ref25.isHorizontalPad,
|
|
3060
|
+
isHorizontalSunMi = _ref25.isHorizontalSunMi;
|
|
3007
3061
|
|
|
3008
3062
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3009
3063
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3237,8 +3291,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3237
3291
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3238
3292
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3239
3293
|
|
|
3240
|
-
var
|
|
3241
|
-
isNewRetailBCPos =
|
|
3294
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3295
|
+
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
3242
3296
|
|
|
3243
3297
|
var _store2 = this.store,
|
|
3244
3298
|
paymode = _store2.paymode,
|
|
@@ -3301,11 +3355,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3301
3355
|
quantity4 = 0;
|
|
3302
3356
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3303
3357
|
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3306
|
-
buyQuantity =
|
|
3307
|
-
|
|
3308
|
-
returnQuantity =
|
|
3358
|
+
var _ref27 = quantityDetail || {},
|
|
3359
|
+
_ref27$buyQuantity = _ref27.buyQuantity,
|
|
3360
|
+
buyQuantity = _ref27$buyQuantity === undefined ? 0 : _ref27$buyQuantity,
|
|
3361
|
+
_ref27$returnQuantity = _ref27.returnQuantity,
|
|
3362
|
+
returnQuantity = _ref27$returnQuantity === undefined ? 0 : _ref27$returnQuantity;
|
|
3309
3363
|
|
|
3310
3364
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3311
3365
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3322,6 +3376,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3322
3376
|
}
|
|
3323
3377
|
sumQuantity = this.changeDecimalBuZero(sumQuantity, quantityPrecision);
|
|
3324
3378
|
}
|
|
3379
|
+
|
|
3380
|
+
var isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
3325
3381
|
return _react2.default.createElement(
|
|
3326
3382
|
'div',
|
|
3327
3383
|
{ className: 'billingSettlement', ref: function ref(r) {
|
|
@@ -3562,6 +3618,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3562
3618
|
return _this8.handleChange(index, e);
|
|
3563
3619
|
}
|
|
3564
3620
|
})
|
|
3621
|
+
),
|
|
3622
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
3623
|
+
'div',
|
|
3624
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
3625
|
+
onClick: function onClick() {
|
|
3626
|
+
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
3627
|
+
} },
|
|
3628
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
3565
3629
|
)
|
|
3566
3630
|
),
|
|
3567
3631
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -3888,16 +3952,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3888
3952
|
className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
|
|
3889
3953
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
|
|
3890
3954
|
onClick: function onClick() {
|
|
3891
|
-
|
|
3892
|
-
if (mode.paymentType === PayStyle.hyczk) {
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3955
|
+
// let czkinput = document.getElementById('inputS' + index);
|
|
3956
|
+
// if (mode.paymentType === PayStyle.hyczk) {
|
|
3957
|
+
// const { isProhibitMeStorageCard } = this.props;
|
|
3958
|
+
// if (isProhibitMeStorageCard) {
|
|
3959
|
+
// Message.warn('储值卡不可键盘录入,请刷卡!');
|
|
3960
|
+
// return;
|
|
3961
|
+
// }
|
|
3962
|
+
// }
|
|
3963
|
+
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
3964
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
3901
3965
|
},
|
|
3902
3966
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
3903
3967
|
return tm.paymentType == PayStyle.hyczk;
|
|
@@ -4151,6 +4215,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4151
4215
|
return _this8.onFocusHack(index, mode, paymode, e);
|
|
4152
4216
|
}
|
|
4153
4217
|
})
|
|
4218
|
+
),
|
|
4219
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
4220
|
+
'div',
|
|
4221
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
4222
|
+
onClick: function onClick() {
|
|
4223
|
+
_this8.appendCzkmode('', 'noPlaySetPwd');
|
|
4224
|
+
} },
|
|
4225
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
4154
4226
|
)
|
|
4155
4227
|
),
|
|
4156
4228
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -4598,8 +4670,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4598
4670
|
type: 'text',
|
|
4599
4671
|
placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u4F59\u989D\u5361'
|
|
4600
4672
|
// disabled={currentMode && !currentMode.member.StorageCardNo && isReturn ? true: false}
|
|
4601
|
-
,
|
|
4602
|
-
className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4673
|
+
, className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4603
4674
|
onChange: function onChange(e) {
|
|
4604
4675
|
return _this8.onCzkChange(e.target.value);
|
|
4605
4676
|
},
|
|
@@ -4648,7 +4719,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4648
4719
|
),
|
|
4649
4720
|
_react2.default.createElement(
|
|
4650
4721
|
'div',
|
|
4651
|
-
{ className: 'received' },
|
|
4722
|
+
{ className: 'received receivedNumber' },
|
|
4652
4723
|
_react2.default.createElement(
|
|
4653
4724
|
'span',
|
|
4654
4725
|
null,
|
|
@@ -4657,16 +4728,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4657
4728
|
_react2.default.createElement(
|
|
4658
4729
|
'span',
|
|
4659
4730
|
null,
|
|
4660
|
-
_react2.default.createElement(
|
|
4731
|
+
_react2.default.createElement(_numKeyboard2.default, {
|
|
4661
4732
|
id: 'paymentAmount',
|
|
4733
|
+
className: _index.hotKey.hotKeyNotFilter('input') + ' receivedInput',
|
|
4662
4734
|
type: 'text',
|
|
4663
|
-
|
|
4664
|
-
onChange: function onChange(
|
|
4665
|
-
_this8.setCurrentModeValue(
|
|
4735
|
+
style: { width: 230 },
|
|
4736
|
+
onChange: function onChange(value) {
|
|
4737
|
+
_this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4666
4738
|
},
|
|
4667
4739
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4668
|
-
|
|
4669
|
-
|
|
4740
|
+
maxLength: 12,
|
|
4741
|
+
precisionLength: 2,
|
|
4742
|
+
ref: function ref(input) {
|
|
4743
|
+
return _this8.inputCzkAmount = input;
|
|
4670
4744
|
},
|
|
4671
4745
|
onFocus: function onFocus(e) {
|
|
4672
4746
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -4676,11 +4750,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4676
4750
|
}, _this8.keyboardOnOk, _this8.keyboardOnClose)();
|
|
4677
4751
|
},
|
|
4678
4752
|
onBlur: function onBlur(e) {
|
|
4679
|
-
var sMember = _this8.store.member;
|
|
4680
|
-
if (!sMember.StorageCardEnable) {
|
|
4681
|
-
_message2.default.warn("该储值卡已停用");
|
|
4682
|
-
return;
|
|
4683
|
-
}
|
|
4684
4753
|
_keyboard2.default.close();
|
|
4685
4754
|
_this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4686
4755
|
}
|
|
@@ -4820,6 +4889,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4820
4889
|
visible: this.state.djqVisible,
|
|
4821
4890
|
maskClosable: false,
|
|
4822
4891
|
onOk: this.handleDjqOk,
|
|
4892
|
+
destroyOnClose: true,
|
|
4823
4893
|
onCancel: this.handleDjqCancel,
|
|
4824
4894
|
centered: !this.isHorizontalPad ? true : false,
|
|
4825
4895
|
title: Differentiate.COUPON + '支付',
|
|
@@ -4859,7 +4929,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4859
4929
|
_react2.default.createElement(_input2.default, {
|
|
4860
4930
|
type: 'text',
|
|
4861
4931
|
placeholder: '\u626B\u63CF/\u8F93\u5165' + Differentiate.COUPON + '\u53F7\u5E76\u56DE\u8F66',
|
|
4862
|
-
className: 'input'
|
|
4932
|
+
className: 'input',
|
|
4933
|
+
id: 'djqInput'
|
|
4863
4934
|
// onChange={this.onDjqChange}
|
|
4864
4935
|
// value={currentMode && currentMode.member.cardNo}
|
|
4865
4936
|
, ref: function ref(input) {
|
|
@@ -4878,7 +4949,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4878
4949
|
}, _this8.djqKeyboardOnOk, _this8.djqKeyboardOnClose)();
|
|
4879
4950
|
},
|
|
4880
4951
|
onBlur: function onBlur(e) {
|
|
4881
|
-
_keyboard2.default.close();
|
|
4952
|
+
_keyboard2.default.close();_this8.inputdjq.input.value = '';
|
|
4882
4953
|
}
|
|
4883
4954
|
})
|
|
4884
4955
|
),
|
|
@@ -4888,6 +4959,25 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4888
4959
|
currentMode && currentMode.errinfo
|
|
4889
4960
|
)
|
|
4890
4961
|
),
|
|
4962
|
+
_react2.default.createElement(
|
|
4963
|
+
'div',
|
|
4964
|
+
{ className: 'col4' },
|
|
4965
|
+
_react2.default.createElement(
|
|
4966
|
+
_button2.default,
|
|
4967
|
+
{ className: '' + (this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4968
|
+
'\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4969
|
+
),
|
|
4970
|
+
_react2.default.createElement(
|
|
4971
|
+
_button2.default,
|
|
4972
|
+
{ className: '' + (!this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4973
|
+
'\u4E0D\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4974
|
+
),
|
|
4975
|
+
_react2.default.createElement(
|
|
4976
|
+
'span',
|
|
4977
|
+
{ className: 'couponTip' },
|
|
4978
|
+
'\u9009\u62E9\u5238\u540E\u3001\u4E0D\u53EF\u53E0\u52A0\u3001\u91D1\u989D\u4E0D\u6EE1\u8DB3\u7684\u5238\u4F1A\u7F6E\u7070'
|
|
4979
|
+
)
|
|
4980
|
+
),
|
|
4891
4981
|
this.isHorizontalPad && _react2.default.createElement(
|
|
4892
4982
|
'div',
|
|
4893
4983
|
{ className: 'col3' },
|
|
@@ -4904,12 +4994,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4904
4994
|
'div',
|
|
4905
4995
|
{ className: 'djq2' },
|
|
4906
4996
|
(0, _map3.default)(currentMode && currentMode.djqs || [], function (q, index) {
|
|
4997
|
+
if (!_this8.state.couponLight && !q.count) {
|
|
4998
|
+
return;
|
|
4999
|
+
}
|
|
5000
|
+
if (_this8.state.couponLight && q.count && q.count === 1) {
|
|
5001
|
+
return;
|
|
5002
|
+
}
|
|
4907
5003
|
return _react2.default.createElement(
|
|
4908
5004
|
'div',
|
|
4909
5005
|
{ key: index + '', className: 'djqItem' },
|
|
4910
5006
|
!q.promoMethodEnum || q.promoMethodEnum == 'CASH_COUPON' ? _react2.default.createElement(
|
|
4911
5007
|
'div',
|
|
4912
|
-
{ className: 'djqLeft djqLeftCash' },
|
|
5008
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4913
5009
|
_react2.default.createElement(
|
|
4914
5010
|
'div',
|
|
4915
5011
|
{ className: 'amount' },
|
|
@@ -4931,7 +5027,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4931
5027
|
)
|
|
4932
5028
|
) : _react2.default.createElement(
|
|
4933
5029
|
'div',
|
|
4934
|
-
{ className: 'djqLeft
|
|
5030
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4935
5031
|
_react2.default.createElement(
|
|
4936
5032
|
'div',
|
|
4937
5033
|
{ className: 'amount' },
|
|
@@ -4955,9 +5051,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4955
5051
|
_react2.default.createElement(
|
|
4956
5052
|
'div',
|
|
4957
5053
|
{ className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
|
|
4958
|
-
return _this8.djqChecked(q);
|
|
5054
|
+
return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
|
|
4959
5055
|
} },
|
|
4960
|
-
_react2.default.createElement(
|
|
5056
|
+
q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
|
|
5057
|
+
q.checked ? _react2.default.createElement(
|
|
5058
|
+
'div',
|
|
5059
|
+
{ className: 'name overflow-hidden-point primary-color' },
|
|
5060
|
+
q.name
|
|
5061
|
+
) : _react2.default.createElement(
|
|
4961
5062
|
'div',
|
|
4962
5063
|
{ className: 'name overflow-hidden-point' },
|
|
4963
5064
|
q.name
|
|
@@ -5256,8 +5357,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5256
5357
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5257
5358
|
},
|
|
5258
5359
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5259
|
-
ref: function ref(
|
|
5260
|
-
return _this8["inputJfdxAmount"] =
|
|
5360
|
+
ref: function ref(_ref28) {
|
|
5361
|
+
return _this8["inputJfdxAmount"] = _ref28;
|
|
5261
5362
|
},
|
|
5262
5363
|
onFocus: function onFocus(e) {
|
|
5263
5364
|
_this8.inputkey = "inputJfdxAmount";
|