tplus-components-touch 3.21.2 → 3.22.4
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 +178 -126
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +12 -2
- package/dist/components/settlement/settlementStore.js +274 -252
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo.css +539 -539
- package/dist/components/ticon/iconfont/demo_index.html +5202 -5041
- package/dist/components/ticon/iconfont/iconfont.css +887 -859
- package/dist/components/ticon/iconfont/iconfont.js +4 -4
- package/dist/components/ticon/iconfont/iconfont.js.map +1 -1
- package/dist/components/ticon/iconfont/iconfont.json +1535 -1486
- 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
|
@@ -277,7 +277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
if (b.lastChild) {
|
|
280
|
-
|
|
280
|
+
// 原来bWidth < cWidth,过渡过程中右边按钮会隐藏,+20之后解决
|
|
281
|
+
if (bWidth < cWidth + 20) {
|
|
281
282
|
b.lastChild.className = 'btns voucherMode';
|
|
282
283
|
} else {
|
|
283
284
|
b.lastChild.className = 'btns';
|
|
@@ -432,6 +433,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
432
433
|
//有赠品的情况,不在考虑是否促销
|
|
433
434
|
if (item.IsPresent) {
|
|
434
435
|
item.badge = { text: '赠', position: 'leftTop', className: '' };
|
|
436
|
+
} else if (item.IsGWPBuyGift) {
|
|
437
|
+
item.badge = { text: '换', position: 'leftTop', className: '' };
|
|
435
438
|
} else if (item.PromotionDetails && item.PromotionDetails.length > 0) {
|
|
436
439
|
item.badge = { text: '促', position: 'leftTop', className: '' };
|
|
437
440
|
} else {
|
|
@@ -565,42 +568,42 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
565
568
|
duration: 4
|
|
566
569
|
});
|
|
567
570
|
} else {
|
|
568
|
-
if (isNewRetailBCPos) {
|
|
569
|
-
|
|
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
|
-
} else {
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
}
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
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
|
+
});
|
|
604
607
|
}
|
|
605
608
|
setTimeout(function () {
|
|
606
609
|
if (!currentMode.member || !currentMode.member.id) {
|
|
@@ -617,7 +620,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
617
620
|
|
|
618
621
|
_this2.handleCzkOk = function () {
|
|
619
622
|
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(e) {
|
|
620
|
-
var
|
|
623
|
+
var _enumController$getEn3, PayStyle;
|
|
621
624
|
|
|
622
625
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
623
626
|
while (1) {
|
|
@@ -631,57 +634,46 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
631
634
|
// });
|
|
632
635
|
// return;
|
|
633
636
|
// }
|
|
634
|
-
sMember = _this2.store.member;
|
|
635
|
-
|
|
636
|
-
if (sMember.StorageCardEnable) {
|
|
637
|
-
_context.next = 4;
|
|
638
|
-
break;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
_message2.default.warn("该储值卡已停用");
|
|
642
|
-
return _context.abrupt('return');
|
|
643
|
-
|
|
644
|
-
case 4:
|
|
645
637
|
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
646
638
|
|
|
647
639
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
648
|
-
_context.next =
|
|
640
|
+
_context.next = 4;
|
|
649
641
|
break;
|
|
650
642
|
}
|
|
651
643
|
|
|
652
|
-
_context.next =
|
|
644
|
+
_context.next = 4;
|
|
653
645
|
return _this2.store.loadCzk(_this2.czkInput.input.value);
|
|
654
646
|
|
|
655
|
-
case
|
|
647
|
+
case 4:
|
|
656
648
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
657
|
-
_context.next =
|
|
649
|
+
_context.next = 7;
|
|
658
650
|
break;
|
|
659
651
|
}
|
|
660
652
|
|
|
661
653
|
_message2.default.error("请录入储值卡!");
|
|
662
654
|
return _context.abrupt('return');
|
|
663
655
|
|
|
664
|
-
case
|
|
656
|
+
case 7:
|
|
665
657
|
if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
666
658
|
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.member.id == _this2.store.paymode.currentMode.member.id;
|
|
667
659
|
})) {
|
|
668
|
-
_context.next =
|
|
660
|
+
_context.next = 10;
|
|
669
661
|
break;
|
|
670
662
|
}
|
|
671
663
|
|
|
672
664
|
_message2.default.error("该储值卡已使用。");
|
|
673
665
|
return _context.abrupt('return');
|
|
674
666
|
|
|
675
|
-
case
|
|
667
|
+
case 10:
|
|
676
668
|
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
677
|
-
_context.next =
|
|
669
|
+
_context.next = 13;
|
|
678
670
|
break;
|
|
679
671
|
}
|
|
680
672
|
|
|
681
673
|
_message2.default.error("实收金额应等于应收金额。");
|
|
682
674
|
return _context.abrupt('return');
|
|
683
675
|
|
|
684
|
-
case
|
|
676
|
+
case 13:
|
|
685
677
|
|
|
686
678
|
_this2.setState({
|
|
687
679
|
czkVisible: false
|
|
@@ -690,7 +682,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
690
682
|
_this2.store.paymode.calcMemberBalance();
|
|
691
683
|
_this2.handleCzk();
|
|
692
684
|
|
|
693
|
-
case
|
|
685
|
+
case 17:
|
|
694
686
|
case 'end':
|
|
695
687
|
return _context.stop();
|
|
696
688
|
}
|
|
@@ -944,6 +936,31 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
944
936
|
});
|
|
945
937
|
};
|
|
946
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
|
+
|
|
947
964
|
_this2.onTabsClick2 = function (paymode, brefund, themode, key) {
|
|
948
965
|
var _enumController$getEn7 = _mutantsUtil.enumController.getEnumOj(),
|
|
949
966
|
PayStyle = _enumController$getEn7.PayStyle,
|
|
@@ -1061,6 +1078,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1061
1078
|
boriginReturn = _this2$store3.boriginReturn;
|
|
1062
1079
|
var noAlreadyWarn = _this2.state.noAlreadyWarn;
|
|
1063
1080
|
|
|
1081
|
+
|
|
1082
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(key)) return false;
|
|
1083
|
+
|
|
1064
1084
|
if (_this2.checkModeDisabled(key, brefund, boriginReturn)) {
|
|
1065
1085
|
return;
|
|
1066
1086
|
}
|
|
@@ -1149,6 +1169,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1149
1169
|
};
|
|
1150
1170
|
|
|
1151
1171
|
_this2.handleChange = function (index, e) {
|
|
1172
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(_this2.store.paymode.currentFocus)) return;
|
|
1152
1173
|
var currentInput = e.target;
|
|
1153
1174
|
var amountMaxLength = parseInt(_this2.props.initData["AmountMaxLength"] || 10);
|
|
1154
1175
|
if (!isNaN(e.target.value) || e.target.value == '-') {
|
|
@@ -1231,8 +1252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1231
1252
|
return;
|
|
1232
1253
|
}
|
|
1233
1254
|
|
|
1234
|
-
var
|
|
1235
|
-
isNewRetailBCPos =
|
|
1255
|
+
var _ref9 = _mutantsUtil.platform || {},
|
|
1256
|
+
isNewRetailBCPos = _ref9.isNewRetailBCPos;
|
|
1236
1257
|
|
|
1237
1258
|
if (isNewRetailBCPos) {
|
|
1238
1259
|
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
@@ -1276,6 +1297,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1276
1297
|
};
|
|
1277
1298
|
|
|
1278
1299
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn) {
|
|
1300
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1279
1301
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1280
1302
|
return;
|
|
1281
1303
|
}
|
|
@@ -1315,6 +1337,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1315
1337
|
};
|
|
1316
1338
|
|
|
1317
1339
|
_this2.onHotKeyClick2 = function (index, mode, paymode, e) {
|
|
1340
|
+
if (!_mutantsMicrofx.stores.offlineSys.shouldSettlement(mode.paymentType)) return false;
|
|
1318
1341
|
if (_this2.hotkeydebouncedPayMode == mode) {
|
|
1319
1342
|
return;
|
|
1320
1343
|
}
|
|
@@ -1369,7 +1392,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1369
1392
|
thePaymodes.forEach(function (paymodes, index) {
|
|
1370
1393
|
if (paymodes.paymethodId == _this2.state.currentIndex) payIndex = index;
|
|
1371
1394
|
});
|
|
1372
|
-
|
|
1373
1395
|
_this2.setFocusAndSelectionMode(thePaymodes, payIndex);
|
|
1374
1396
|
}
|
|
1375
1397
|
}, 500, {
|
|
@@ -1415,7 +1437,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1415
1437
|
var findIndex = currenIndex;
|
|
1416
1438
|
var endCurrentMode = thePaymodes.find(function (mode, index) {
|
|
1417
1439
|
findIndex++;
|
|
1418
|
-
return (symbol ? index > currenIndex : index < currenIndex) && mode.paymentType != PayStyle.hyczk && mode.paymentType != PayStyle.djq && mode.paymentType != PayStyle.jfdx;
|
|
1440
|
+
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);
|
|
1419
1441
|
});
|
|
1420
1442
|
if (endCurrentMode) return { mode: endCurrentMode, index: findIndex };
|
|
1421
1443
|
return null;
|
|
@@ -1593,6 +1615,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1593
1615
|
//副屏-第二屏幕
|
|
1594
1616
|
if (_this.isHorizontalSunMi) {
|
|
1595
1617
|
window.sunMi_PresentationManager.sendMessageToSecondScreen(params);
|
|
1618
|
+
setTimeout(function () {
|
|
1619
|
+
window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 1 });
|
|
1620
|
+
}, 3000);
|
|
1596
1621
|
} else {
|
|
1597
1622
|
_mutantsMicrofx.nativeMs && _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReplyScreen', params);
|
|
1598
1623
|
}
|
|
@@ -1653,7 +1678,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1653
1678
|
} else if (MemberPoints && Number(amount) == Number(0)) {
|
|
1654
1679
|
message = "兑换成功";
|
|
1655
1680
|
}
|
|
1656
|
-
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, stores, function () {
|
|
1681
|
+
window.__successModal = (0, _utils.showSuccessModal)(amount, received, charge, _this.props.onModalClose, isXianjin, message, resp1 && resp1.data, _mutantsMicrofx.stores, function () {
|
|
1657
1682
|
_this.handleGuestShow(5);
|
|
1658
1683
|
});
|
|
1659
1684
|
_this2.setState({ isXianjin: false });
|
|
@@ -1672,13 +1697,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1672
1697
|
if (_this2.hasElectron === false) return;
|
|
1673
1698
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1674
1699
|
|
|
1675
|
-
var
|
|
1676
|
-
guestshow_enable =
|
|
1677
|
-
guestshow_clear =
|
|
1678
|
-
guestshow_welcome =
|
|
1679
|
-
guestshow_collect =
|
|
1680
|
-
guestshow_refund =
|
|
1681
|
-
guestshow_change =
|
|
1700
|
+
var _ref12 = dt || {},
|
|
1701
|
+
guestshow_enable = _ref12.guestshow_enable,
|
|
1702
|
+
guestshow_clear = _ref12.guestshow_clear,
|
|
1703
|
+
guestshow_welcome = _ref12.guestshow_welcome,
|
|
1704
|
+
guestshow_collect = _ref12.guestshow_collect,
|
|
1705
|
+
guestshow_refund = _ref12.guestshow_refund,
|
|
1706
|
+
guestshow_change = _ref12.guestshow_change;
|
|
1682
1707
|
|
|
1683
1708
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1684
1709
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1713,9 +1738,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1713
1738
|
};
|
|
1714
1739
|
|
|
1715
1740
|
_this2.handleSettle = function () {
|
|
1716
|
-
var
|
|
1741
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1717
1742
|
var handleUserInputs = function () {
|
|
1718
|
-
var
|
|
1743
|
+
var _ref15 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1719
1744
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1720
1745
|
|
|
1721
1746
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1806,7 +1831,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1806
1831
|
}));
|
|
1807
1832
|
|
|
1808
1833
|
return function handleUserInputs(_x4) {
|
|
1809
|
-
return
|
|
1834
|
+
return _ref15.apply(this, arguments);
|
|
1810
1835
|
};
|
|
1811
1836
|
}();
|
|
1812
1837
|
|
|
@@ -1909,7 +1934,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1909
1934
|
});
|
|
1910
1935
|
|
|
1911
1936
|
commit = function () {
|
|
1912
|
-
var
|
|
1937
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1913
1938
|
var result;
|
|
1914
1939
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1915
1940
|
while (1) {
|
|
@@ -1983,7 +2008,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1983
2008
|
}));
|
|
1984
2009
|
|
|
1985
2010
|
return function commit(_x3) {
|
|
1986
|
-
return
|
|
2011
|
+
return _ref14.apply(this, arguments);
|
|
1987
2012
|
};
|
|
1988
2013
|
}();
|
|
1989
2014
|
|
|
@@ -1998,13 +2023,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1998
2023
|
}));
|
|
1999
2024
|
|
|
2000
2025
|
return function (_x2) {
|
|
2001
|
-
return
|
|
2026
|
+
return _ref13.apply(this, arguments);
|
|
2002
2027
|
};
|
|
2003
2028
|
}();
|
|
2004
2029
|
|
|
2005
2030
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
2006
2031
|
var handleUserInputs = function () {
|
|
2007
|
-
var
|
|
2032
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
2008
2033
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
2009
2034
|
|
|
2010
2035
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2101,11 +2126,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2101
2126
|
}));
|
|
2102
2127
|
|
|
2103
2128
|
return function handleUserInputs(_x6) {
|
|
2104
|
-
return
|
|
2129
|
+
return _ref19.apply(this, arguments);
|
|
2105
2130
|
};
|
|
2106
2131
|
}();
|
|
2107
2132
|
|
|
2108
|
-
var that, curmode, promises,
|
|
2133
|
+
var that, curmode, promises, _ref17, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2109
2134
|
|
|
2110
2135
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2111
2136
|
while (1) {
|
|
@@ -2114,14 +2139,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2114
2139
|
that = _this2;
|
|
2115
2140
|
curmode = _this2.store.paymode.currentMode;
|
|
2116
2141
|
promises = [];
|
|
2117
|
-
|
|
2142
|
+
_ref17 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref17.isNewRetailBCPos;
|
|
2118
2143
|
|
|
2119
2144
|
if (isNewRetailBCPos) {
|
|
2120
2145
|
if (curmode.value > 0) {
|
|
2121
2146
|
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
2122
2147
|
|
|
2123
2148
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2124
|
-
|
|
2149
|
+
isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
2150
|
+
|
|
2151
|
+
if (isNeedPasswordForStoragePay) {
|
|
2152
|
+
promises.push(that.inputPwd(curmode));
|
|
2153
|
+
}
|
|
2125
2154
|
}
|
|
2126
2155
|
}
|
|
2127
2156
|
} else {
|
|
@@ -2131,7 +2160,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2131
2160
|
}
|
|
2132
2161
|
|
|
2133
2162
|
commit = function () {
|
|
2134
|
-
var
|
|
2163
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2135
2164
|
var result;
|
|
2136
2165
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2137
2166
|
while (1) {
|
|
@@ -2181,7 +2210,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2181
2210
|
}));
|
|
2182
2211
|
|
|
2183
2212
|
return function commit(_x5) {
|
|
2184
|
-
return
|
|
2213
|
+
return _ref18.apply(this, arguments);
|
|
2185
2214
|
};
|
|
2186
2215
|
}();
|
|
2187
2216
|
|
|
@@ -2232,7 +2261,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2232
2261
|
};
|
|
2233
2262
|
|
|
2234
2263
|
_this2.inputPwd = function () {
|
|
2235
|
-
var
|
|
2264
|
+
var _ref20 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2236
2265
|
var that, confirmPwd;
|
|
2237
2266
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2238
2267
|
while (1) {
|
|
@@ -2248,8 +2277,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2248
2277
|
// if (v !== '') {
|
|
2249
2278
|
modal.destroy();
|
|
2250
2279
|
|
|
2251
|
-
var
|
|
2252
|
-
confirmPwd =
|
|
2280
|
+
var _ref21 = that.state || {},
|
|
2281
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2253
2282
|
|
|
2254
2283
|
setTimeout(function () {
|
|
2255
2284
|
paymode.authCode = v;
|
|
@@ -2339,8 +2368,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2339
2368
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2340
2369
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2341
2370
|
|
|
2342
|
-
var
|
|
2343
|
-
confirmPwd =
|
|
2371
|
+
var _ref22 = that.state || {},
|
|
2372
|
+
confirmPwd = _ref22.confirmPwd;
|
|
2344
2373
|
// if (v !== '') {
|
|
2345
2374
|
|
|
2346
2375
|
|
|
@@ -2381,7 +2410,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2381
2410
|
}));
|
|
2382
2411
|
|
|
2383
2412
|
return function (_x7) {
|
|
2384
|
-
return
|
|
2413
|
+
return _ref20.apply(this, arguments);
|
|
2385
2414
|
};
|
|
2386
2415
|
}();
|
|
2387
2416
|
|
|
@@ -2399,6 +2428,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2399
2428
|
boriginReturn = _this2$store7.boriginReturn,
|
|
2400
2429
|
newStyle = _this2$store7.newStyle;
|
|
2401
2430
|
|
|
2431
|
+
|
|
2432
|
+
if (bquick && !_mutantsMicrofx.stores.offlineSys.shouldSettlement(type)) return false;
|
|
2433
|
+
|
|
2402
2434
|
var status = false;
|
|
2403
2435
|
paymode.thePaymodes.forEach(function (v) {
|
|
2404
2436
|
if (v.paymentType === PayStyle.xianjin && v.value !== '0.00') {
|
|
@@ -2431,8 +2463,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2431
2463
|
|
|
2432
2464
|
_this2.onCzkChange = function (v) {
|
|
2433
2465
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2434
|
-
var
|
|
2435
|
-
isNewRetailBCPos =
|
|
2466
|
+
var _ref23 = _mutantsUtil.platform || {},
|
|
2467
|
+
isNewRetailBCPos = _ref23.isNewRetailBCPos;
|
|
2436
2468
|
|
|
2437
2469
|
if (!isNewRetailBCPos) {
|
|
2438
2470
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -3007,20 +3039,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3007
3039
|
|
|
3008
3040
|
_this2.hasElectron = hasElectron;
|
|
3009
3041
|
|
|
3010
|
-
var
|
|
3011
|
-
|
|
3042
|
+
var _ref24 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3043
|
+
_ref24$loginInfo = _ref24.loginInfo;
|
|
3012
3044
|
|
|
3013
|
-
|
|
3014
|
-
var ICCardServer =
|
|
3015
|
-
ICCardPassword =
|
|
3045
|
+
_ref24$loginInfo = _ref24$loginInfo === undefined ? {} : _ref24$loginInfo;
|
|
3046
|
+
var ICCardServer = _ref24$loginInfo.ICCardServer,
|
|
3047
|
+
ICCardPassword = _ref24$loginInfo.ICCardPassword;
|
|
3016
3048
|
|
|
3017
3049
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3018
3050
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3019
3051
|
//移动端环境下,没有读取IC卡的方式。
|
|
3020
3052
|
|
|
3021
|
-
var
|
|
3022
|
-
isHorizontalPad =
|
|
3023
|
-
isHorizontalSunMi =
|
|
3053
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3054
|
+
isHorizontalPad = _ref25.isHorizontalPad,
|
|
3055
|
+
isHorizontalSunMi = _ref25.isHorizontalSunMi;
|
|
3024
3056
|
|
|
3025
3057
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3026
3058
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3254,8 +3286,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3254
3286
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3255
3287
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3256
3288
|
|
|
3257
|
-
var
|
|
3258
|
-
isNewRetailBCPos =
|
|
3289
|
+
var _ref26 = _mutantsUtil.platform || {},
|
|
3290
|
+
isNewRetailBCPos = _ref26.isNewRetailBCPos;
|
|
3259
3291
|
|
|
3260
3292
|
var _store2 = this.store,
|
|
3261
3293
|
paymode = _store2.paymode,
|
|
@@ -3318,11 +3350,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3318
3350
|
quantity4 = 0;
|
|
3319
3351
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3320
3352
|
|
|
3321
|
-
var
|
|
3322
|
-
|
|
3323
|
-
buyQuantity =
|
|
3324
|
-
|
|
3325
|
-
returnQuantity =
|
|
3353
|
+
var _ref27 = quantityDetail || {},
|
|
3354
|
+
_ref27$buyQuantity = _ref27.buyQuantity,
|
|
3355
|
+
buyQuantity = _ref27$buyQuantity === undefined ? 0 : _ref27$buyQuantity,
|
|
3356
|
+
_ref27$returnQuantity = _ref27.returnQuantity,
|
|
3357
|
+
returnQuantity = _ref27$returnQuantity === undefined ? 0 : _ref27$returnQuantity;
|
|
3326
3358
|
|
|
3327
3359
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3328
3360
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3339,6 +3371,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3339
3371
|
}
|
|
3340
3372
|
sumQuantity = this.changeDecimalBuZero(sumQuantity, quantityPrecision);
|
|
3341
3373
|
}
|
|
3374
|
+
|
|
3375
|
+
var isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
3342
3376
|
return _react2.default.createElement(
|
|
3343
3377
|
'div',
|
|
3344
3378
|
{ className: 'billingSettlement', ref: function ref(r) {
|
|
@@ -3579,6 +3613,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3579
3613
|
return _this8.handleChange(index, e);
|
|
3580
3614
|
}
|
|
3581
3615
|
})
|
|
3616
|
+
),
|
|
3617
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
3618
|
+
'div',
|
|
3619
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
3620
|
+
onClick: function onClick() {
|
|
3621
|
+
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
3622
|
+
} },
|
|
3623
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
3582
3624
|
)
|
|
3583
3625
|
),
|
|
3584
3626
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -3905,16 +3947,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3905
3947
|
className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
|
|
3906
3948
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
|
|
3907
3949
|
onClick: function onClick() {
|
|
3908
|
-
|
|
3909
|
-
if (mode.paymentType === PayStyle.hyczk) {
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
|
|
3950
|
+
// let czkinput = document.getElementById('inputS' + index);
|
|
3951
|
+
// if (mode.paymentType === PayStyle.hyczk) {
|
|
3952
|
+
// const { isProhibitMeStorageCard } = this.props;
|
|
3953
|
+
// if (isProhibitMeStorageCard) {
|
|
3954
|
+
// Message.warn('储值卡不可键盘录入,请刷卡!');
|
|
3955
|
+
// return;
|
|
3956
|
+
// }
|
|
3957
|
+
// }
|
|
3958
|
+
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
3959
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
3918
3960
|
},
|
|
3919
3961
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
3920
3962
|
return tm.paymentType == PayStyle.hyczk;
|
|
@@ -4168,6 +4210,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4168
4210
|
return _this8.onFocusHack(index, mode, paymode, e);
|
|
4169
4211
|
}
|
|
4170
4212
|
})
|
|
4213
|
+
),
|
|
4214
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
4215
|
+
'div',
|
|
4216
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
4217
|
+
onClick: function onClick() {
|
|
4218
|
+
_this8.appendCzkmode('', 'noPlaySetPwd');
|
|
4219
|
+
} },
|
|
4220
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
4171
4221
|
)
|
|
4172
4222
|
),
|
|
4173
4223
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -4615,8 +4665,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4615
4665
|
type: 'text',
|
|
4616
4666
|
placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u4F59\u989D\u5361'
|
|
4617
4667
|
// disabled={currentMode && !currentMode.member.StorageCardNo && isReturn ? true: false}
|
|
4618
|
-
,
|
|
4619
|
-
className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4668
|
+
, className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4620
4669
|
onChange: function onChange(e) {
|
|
4621
4670
|
return _this8.onCzkChange(e.target.value);
|
|
4622
4671
|
},
|
|
@@ -4665,7 +4714,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4665
4714
|
),
|
|
4666
4715
|
_react2.default.createElement(
|
|
4667
4716
|
'div',
|
|
4668
|
-
{ className: 'received' },
|
|
4717
|
+
{ className: 'received receivedNumber' },
|
|
4669
4718
|
_react2.default.createElement(
|
|
4670
4719
|
'span',
|
|
4671
4720
|
null,
|
|
@@ -4674,16 +4723,19 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4674
4723
|
_react2.default.createElement(
|
|
4675
4724
|
'span',
|
|
4676
4725
|
null,
|
|
4677
|
-
_react2.default.createElement(
|
|
4726
|
+
_react2.default.createElement(_numKeyboard2.default, {
|
|
4678
4727
|
id: 'paymentAmount',
|
|
4728
|
+
className: _index.hotKey.hotKeyNotFilter('input') + ' receivedInput',
|
|
4679
4729
|
type: 'text',
|
|
4680
|
-
|
|
4681
|
-
onChange: function onChange(
|
|
4682
|
-
_this8.setCurrentModeValue(
|
|
4730
|
+
style: { width: 230 },
|
|
4731
|
+
onChange: function onChange(value) {
|
|
4732
|
+
_this8.setCurrentModeValue(value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4683
4733
|
},
|
|
4684
4734
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4685
|
-
|
|
4686
|
-
|
|
4735
|
+
maxLength: 12,
|
|
4736
|
+
precisionLength: 2,
|
|
4737
|
+
ref: function ref(input) {
|
|
4738
|
+
return _this8.inputCzkAmount = input;
|
|
4687
4739
|
},
|
|
4688
4740
|
onFocus: function onFocus(e) {
|
|
4689
4741
|
_this8.inputkey = "inputCzkAmount";
|