tplus-components-touch 3.22.1 → 3.22.2
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/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/modalWraper/style.less +6 -0
- package/dist/components/settlement/settlement.js +187 -130
- package/dist/components/settlement/settlement.js.map +1 -1
- package/dist/components/settlement/settlement.less +62 -10
- package/dist/components/settlement/settlementStore.js +431 -190
- package/dist/components/settlement/settlementStore.js.map +1 -1
- package/dist/components/ticon/iconfont/demo_index.html +5202 -4949
- package/dist/components/ticon/iconfont/iconfont.css +887 -843
- 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 +1535 -1458
- 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 +1 -1
|
@@ -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
|
});
|
|
@@ -566,42 +567,42 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
566
567
|
duration: 4
|
|
567
568
|
});
|
|
568
569
|
} 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
|
-
|
|
570
|
+
// if (isNewRetailBCPos) {
|
|
571
|
+
// let { isReturn } = this.props;
|
|
572
|
+
// let sMember = this.store.member;
|
|
573
|
+
// if (!sMember.StorageCardEnable) {
|
|
574
|
+
// Message.warn("该储值卡已停用");
|
|
575
|
+
// return;
|
|
576
|
+
// }
|
|
577
|
+
// if (sMember && sMember.ID) {
|
|
578
|
+
// // noPlaySetPwd 点击结算方式设置密码,点加号不设置
|
|
579
|
+
// if (!sMember.WalletEnabled && params !== 'noPlaySetPwd' && !isReturn) {
|
|
580
|
+
// this.setState({
|
|
581
|
+
// newPass: '',
|
|
582
|
+
// newPassConfirm: '',
|
|
583
|
+
// showSetPwdModal: true
|
|
584
|
+
// })
|
|
585
|
+
// } else {
|
|
586
|
+
// this.setState({
|
|
587
|
+
// showSetPwdModal: false,
|
|
588
|
+
// czkVisible: true
|
|
589
|
+
// })
|
|
590
|
+
// }
|
|
591
|
+
// }
|
|
592
|
+
// // else {
|
|
593
|
+
// // Message.warn('请先录入会员');
|
|
594
|
+
// // }
|
|
595
|
+
// // this.setState({
|
|
596
|
+
// // czkVisible: true,
|
|
597
|
+
// // });
|
|
598
|
+
// } else {
|
|
599
|
+
// this.setState({
|
|
600
|
+
// czkVisible: true,
|
|
601
|
+
// });
|
|
602
|
+
// }
|
|
603
|
+
_this2.setState({
|
|
604
|
+
czkVisible: true
|
|
605
|
+
});
|
|
605
606
|
}
|
|
606
607
|
setTimeout(function () {
|
|
607
608
|
if (!currentMode.member || !currentMode.member.id) {
|
|
@@ -618,7 +619,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
618
619
|
|
|
619
620
|
_this2.handleCzkOk = function () {
|
|
620
621
|
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(e) {
|
|
621
|
-
var
|
|
622
|
+
var _enumController$getEn3, PayStyle;
|
|
622
623
|
|
|
623
624
|
return _regenerator2.default.wrap(function _callee$(_context) {
|
|
624
625
|
while (1) {
|
|
@@ -632,57 +633,46 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
632
633
|
// });
|
|
633
634
|
// return;
|
|
634
635
|
// }
|
|
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
636
|
_enumController$getEn3 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn3.PayStyle;
|
|
647
637
|
|
|
648
638
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
649
|
-
_context.next =
|
|
639
|
+
_context.next = 4;
|
|
650
640
|
break;
|
|
651
641
|
}
|
|
652
642
|
|
|
653
|
-
_context.next =
|
|
643
|
+
_context.next = 4;
|
|
654
644
|
return _this2.store.loadCzk(_this2.czkInput.input.value);
|
|
655
645
|
|
|
656
|
-
case
|
|
646
|
+
case 4:
|
|
657
647
|
if (_this2.store.paymode.currentMode.member.id) {
|
|
658
|
-
_context.next =
|
|
648
|
+
_context.next = 7;
|
|
659
649
|
break;
|
|
660
650
|
}
|
|
661
651
|
|
|
662
652
|
_message2.default.error("请录入储值卡!");
|
|
663
653
|
return _context.abrupt('return');
|
|
664
654
|
|
|
665
|
-
case
|
|
655
|
+
case 7:
|
|
666
656
|
if (!(0, _find3.default)(_this2.store.paymode.thePaymodes, function (mode) {
|
|
667
657
|
return mode.paymethodId != _this2.store.paymode.currentMode.paymethodId && mode.paymentType == PayStyle.hyczk && mode.member.id == _this2.store.paymode.currentMode.member.id;
|
|
668
658
|
})) {
|
|
669
|
-
_context.next =
|
|
659
|
+
_context.next = 10;
|
|
670
660
|
break;
|
|
671
661
|
}
|
|
672
662
|
|
|
673
663
|
_message2.default.error("该储值卡已使用。");
|
|
674
664
|
return _context.abrupt('return');
|
|
675
665
|
|
|
676
|
-
case
|
|
666
|
+
case 10:
|
|
677
667
|
if (!(_this2.store.bquick && _this2.store.paymode.amount != _this2.store.paymode.currentMode.value)) {
|
|
678
|
-
_context.next =
|
|
668
|
+
_context.next = 13;
|
|
679
669
|
break;
|
|
680
670
|
}
|
|
681
671
|
|
|
682
672
|
_message2.default.error("实收金额应等于应收金额。");
|
|
683
673
|
return _context.abrupt('return');
|
|
684
674
|
|
|
685
|
-
case
|
|
675
|
+
case 13:
|
|
686
676
|
|
|
687
677
|
_this2.setState({
|
|
688
678
|
czkVisible: false
|
|
@@ -691,7 +681,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
691
681
|
_this2.store.paymode.calcMemberBalance();
|
|
692
682
|
_this2.handleCzk();
|
|
693
683
|
|
|
694
|
-
case
|
|
684
|
+
case 17:
|
|
695
685
|
case 'end':
|
|
696
686
|
return _context.stop();
|
|
697
687
|
}
|
|
@@ -851,8 +841,10 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
851
841
|
|
|
852
842
|
_this2.store.setCurrentMode(id, PayStyle.djq);
|
|
853
843
|
_this2.setState({
|
|
854
|
-
djqVisible: true
|
|
844
|
+
djqVisible: true,
|
|
845
|
+
couponLight: true
|
|
855
846
|
});
|
|
847
|
+
_this2.store.paymode.calcCheckList();
|
|
856
848
|
setTimeout(function () {
|
|
857
849
|
_this2.inputdjq && _this2.inputdjq.input && _this2.inputdjq.input.focus();
|
|
858
850
|
}, 200);
|
|
@@ -1221,7 +1213,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1221
1213
|
_this2.showCzkModal(-1, bappend, params);
|
|
1222
1214
|
};
|
|
1223
1215
|
|
|
1224
|
-
_this2.djqChecked = function (q) {
|
|
1216
|
+
_this2.djqChecked = function (q, dto) {
|
|
1225
1217
|
var _enumController$getEn14 = _mutantsUtil.enumController.getEnumOj(),
|
|
1226
1218
|
Differentiate = _enumController$getEn14.Differentiate;
|
|
1227
1219
|
|
|
@@ -1229,7 +1221,17 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1229
1221
|
_message2.default.info('\u539F\u5355\u9000\u8D27\u65F6' + Differentiate.COUPON + '\u4E0D\u53EF\u4EE5\u53D6\u6D88\u3002');
|
|
1230
1222
|
return;
|
|
1231
1223
|
}
|
|
1232
|
-
|
|
1224
|
+
|
|
1225
|
+
var _ref8 = _mutantsUtil.platform || {},
|
|
1226
|
+
isNewRetailBCPos = _ref8.isNewRetailBCPos;
|
|
1227
|
+
|
|
1228
|
+
if (isNewRetailBCPos) {
|
|
1229
|
+
_this2.store.paymode.calcDjqCheckValue(q, _this2.store.dto);
|
|
1230
|
+
} else {
|
|
1231
|
+
_this2.store.paymode.calcDjqValue(q);
|
|
1232
|
+
}
|
|
1233
|
+
// this.props.onGetCouponList && this.props.onGetCouponList(this.store.dto, _filter(this.store.paymode.currentMode.djqs,(djq)=>{return djq.couponCategoryEnum !== 'RIGHT'}));
|
|
1234
|
+
// 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
1235
|
};
|
|
1234
1236
|
|
|
1235
1237
|
_this2.addDjq = function () {
|
|
@@ -1582,6 +1584,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1582
1584
|
//副屏-第二屏幕
|
|
1583
1585
|
if (_this.isHorizontalSunMi) {
|
|
1584
1586
|
window.sunMi_PresentationManager.sendMessageToSecondScreen(params);
|
|
1587
|
+
setTimeout(function () {
|
|
1588
|
+
window.sunMi_PresentationManager.sendMessageToSecondScreen({ step: 1 });
|
|
1589
|
+
}, 3000);
|
|
1585
1590
|
} else {
|
|
1586
1591
|
_mutantsMicrofx.nativeMs && _mutantsMicrofx.nativeMs.setIpcRendererMethod('ReplyScreen', params);
|
|
1587
1592
|
}
|
|
@@ -1661,13 +1666,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1661
1666
|
if (_this2.hasElectron === false) return;
|
|
1662
1667
|
var dt = _mutantsMicrofx.localStore.get('portsetting_hardSet') || [];
|
|
1663
1668
|
|
|
1664
|
-
var
|
|
1665
|
-
guestshow_enable =
|
|
1666
|
-
guestshow_clear =
|
|
1667
|
-
guestshow_welcome =
|
|
1668
|
-
guestshow_collect =
|
|
1669
|
-
guestshow_refund =
|
|
1670
|
-
guestshow_change =
|
|
1669
|
+
var _ref11 = dt || {},
|
|
1670
|
+
guestshow_enable = _ref11.guestshow_enable,
|
|
1671
|
+
guestshow_clear = _ref11.guestshow_clear,
|
|
1672
|
+
guestshow_welcome = _ref11.guestshow_welcome,
|
|
1673
|
+
guestshow_collect = _ref11.guestshow_collect,
|
|
1674
|
+
guestshow_refund = _ref11.guestshow_refund,
|
|
1675
|
+
guestshow_change = _ref11.guestshow_change;
|
|
1671
1676
|
|
|
1672
1677
|
var hasSuccess = _mutantsMicrofx.localStore && _mutantsMicrofx.localStore.get('portsetting_hardSet_isSuccess');
|
|
1673
1678
|
if (!guestshow_enable || !!guestshow_enable && hasSuccess == '0') return;
|
|
@@ -1702,9 +1707,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1702
1707
|
};
|
|
1703
1708
|
|
|
1704
1709
|
_this2.handleSettle = function () {
|
|
1705
|
-
var
|
|
1710
|
+
var _ref12 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee8(args) {
|
|
1706
1711
|
var handleUserInputs = function () {
|
|
1707
|
-
var
|
|
1712
|
+
var _ref14 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee7(promises) {
|
|
1708
1713
|
var results, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, p, _result;
|
|
1709
1714
|
|
|
1710
1715
|
return _regenerator2.default.wrap(function _callee7$(_context7) {
|
|
@@ -1795,7 +1800,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1795
1800
|
}));
|
|
1796
1801
|
|
|
1797
1802
|
return function handleUserInputs(_x4) {
|
|
1798
|
-
return
|
|
1803
|
+
return _ref14.apply(this, arguments);
|
|
1799
1804
|
};
|
|
1800
1805
|
}();
|
|
1801
1806
|
|
|
@@ -1898,7 +1903,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1898
1903
|
});
|
|
1899
1904
|
|
|
1900
1905
|
commit = function () {
|
|
1901
|
-
var
|
|
1906
|
+
var _ref13 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee6(values) {
|
|
1902
1907
|
var result;
|
|
1903
1908
|
return _regenerator2.default.wrap(function _callee6$(_context6) {
|
|
1904
1909
|
while (1) {
|
|
@@ -1972,7 +1977,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1972
1977
|
}));
|
|
1973
1978
|
|
|
1974
1979
|
return function commit(_x3) {
|
|
1975
|
-
return
|
|
1980
|
+
return _ref13.apply(this, arguments);
|
|
1976
1981
|
};
|
|
1977
1982
|
}();
|
|
1978
1983
|
|
|
@@ -1987,13 +1992,13 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
1987
1992
|
}));
|
|
1988
1993
|
|
|
1989
1994
|
return function (_x2) {
|
|
1990
|
-
return
|
|
1995
|
+
return _ref12.apply(this, arguments);
|
|
1991
1996
|
};
|
|
1992
1997
|
}();
|
|
1993
1998
|
|
|
1994
1999
|
_this2.handleCzk = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee11() {
|
|
1995
2000
|
var handleUserInputs = function () {
|
|
1996
|
-
var
|
|
2001
|
+
var _ref18 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee10(promises) {
|
|
1997
2002
|
var results, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, p, _result2;
|
|
1998
2003
|
|
|
1999
2004
|
return _regenerator2.default.wrap(function _callee10$(_context10) {
|
|
@@ -2090,11 +2095,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2090
2095
|
}));
|
|
2091
2096
|
|
|
2092
2097
|
return function handleUserInputs(_x6) {
|
|
2093
|
-
return
|
|
2098
|
+
return _ref18.apply(this, arguments);
|
|
2094
2099
|
};
|
|
2095
2100
|
}();
|
|
2096
2101
|
|
|
2097
|
-
var that, curmode, promises,
|
|
2102
|
+
var that, curmode, promises, _ref16, isNewRetailBCPos, _enumController$getEn20, PayStyle, isNeedPasswordForStoragePay, commit;
|
|
2098
2103
|
|
|
2099
2104
|
return _regenerator2.default.wrap(function _callee11$(_context11) {
|
|
2100
2105
|
while (1) {
|
|
@@ -2103,14 +2108,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2103
2108
|
that = _this2;
|
|
2104
2109
|
curmode = _this2.store.paymode.currentMode;
|
|
2105
2110
|
promises = [];
|
|
2106
|
-
|
|
2111
|
+
_ref16 = _mutantsUtil.platform || {}, isNewRetailBCPos = _ref16.isNewRetailBCPos;
|
|
2107
2112
|
|
|
2108
2113
|
if (isNewRetailBCPos) {
|
|
2109
2114
|
if (curmode.value > 0) {
|
|
2110
2115
|
_enumController$getEn20 = _mutantsUtil.enumController.getEnumOj(), PayStyle = _enumController$getEn20.PayStyle;
|
|
2111
2116
|
|
|
2112
2117
|
if (curmode.paymentType === PayStyle.hyczk) {
|
|
2113
|
-
|
|
2118
|
+
isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
2119
|
+
|
|
2120
|
+
if (isNeedPasswordForStoragePay) {
|
|
2121
|
+
promises.push(that.inputPwd(curmode));
|
|
2122
|
+
}
|
|
2114
2123
|
}
|
|
2115
2124
|
}
|
|
2116
2125
|
} else {
|
|
@@ -2120,7 +2129,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2120
2129
|
}
|
|
2121
2130
|
|
|
2122
2131
|
commit = function () {
|
|
2123
|
-
var
|
|
2132
|
+
var _ref17 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee9(values) {
|
|
2124
2133
|
var result;
|
|
2125
2134
|
return _regenerator2.default.wrap(function _callee9$(_context9) {
|
|
2126
2135
|
while (1) {
|
|
@@ -2170,7 +2179,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2170
2179
|
}));
|
|
2171
2180
|
|
|
2172
2181
|
return function commit(_x5) {
|
|
2173
|
-
return
|
|
2182
|
+
return _ref17.apply(this, arguments);
|
|
2174
2183
|
};
|
|
2175
2184
|
}();
|
|
2176
2185
|
|
|
@@ -2221,7 +2230,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2221
2230
|
};
|
|
2222
2231
|
|
|
2223
2232
|
_this2.inputPwd = function () {
|
|
2224
|
-
var
|
|
2233
|
+
var _ref19 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee12(paymode) {
|
|
2225
2234
|
var that, confirmPwd;
|
|
2226
2235
|
return _regenerator2.default.wrap(function _callee12$(_context12) {
|
|
2227
2236
|
while (1) {
|
|
@@ -2237,8 +2246,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2237
2246
|
// if (v !== '') {
|
|
2238
2247
|
modal.destroy();
|
|
2239
2248
|
|
|
2240
|
-
var
|
|
2241
|
-
confirmPwd =
|
|
2249
|
+
var _ref20 = that.state || {},
|
|
2250
|
+
confirmPwd = _ref20.confirmPwd;
|
|
2242
2251
|
|
|
2243
2252
|
setTimeout(function () {
|
|
2244
2253
|
paymode.authCode = v;
|
|
@@ -2328,8 +2337,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2328
2337
|
type: 'primary', size: 'large', onClick: function onClick() {
|
|
2329
2338
|
var v = (0, _trim3.default)(that['inputAmount']['input']['value']);
|
|
2330
2339
|
|
|
2331
|
-
var
|
|
2332
|
-
confirmPwd =
|
|
2340
|
+
var _ref21 = that.state || {},
|
|
2341
|
+
confirmPwd = _ref21.confirmPwd;
|
|
2333
2342
|
// if (v !== '') {
|
|
2334
2343
|
|
|
2335
2344
|
|
|
@@ -2370,7 +2379,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2370
2379
|
}));
|
|
2371
2380
|
|
|
2372
2381
|
return function (_x7) {
|
|
2373
|
-
return
|
|
2382
|
+
return _ref19.apply(this, arguments);
|
|
2374
2383
|
};
|
|
2375
2384
|
}();
|
|
2376
2385
|
|
|
@@ -2420,8 +2429,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2420
2429
|
|
|
2421
2430
|
_this2.onCzkChange = function (v) {
|
|
2422
2431
|
// console.log("czk change:"+new Date().toLocaleTimeString())
|
|
2423
|
-
var
|
|
2424
|
-
isNewRetailBCPos =
|
|
2432
|
+
var _ref22 = _mutantsUtil.platform || {},
|
|
2433
|
+
isNewRetailBCPos = _ref22.isNewRetailBCPos;
|
|
2425
2434
|
|
|
2426
2435
|
if (!isNewRetailBCPos) {
|
|
2427
2436
|
_this2.store.paymode.currentMode.member.setCardNo(v);
|
|
@@ -2988,22 +2997,28 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
2988
2997
|
}
|
|
2989
2998
|
};
|
|
2990
2999
|
|
|
3000
|
+
_this2.couponClick = function () {
|
|
3001
|
+
_this2.setState({
|
|
3002
|
+
couponLight: !_this2.state.couponLight
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
|
|
2991
3006
|
_this2.hasElectron = hasElectron;
|
|
2992
3007
|
|
|
2993
|
-
var
|
|
2994
|
-
|
|
3008
|
+
var _ref23 = _mutantsMicrofx.localStore.get('user') || {},
|
|
3009
|
+
_ref23$loginInfo = _ref23.loginInfo;
|
|
2995
3010
|
|
|
2996
|
-
|
|
2997
|
-
var ICCardServer =
|
|
2998
|
-
ICCardPassword =
|
|
3011
|
+
_ref23$loginInfo = _ref23$loginInfo === undefined ? {} : _ref23$loginInfo;
|
|
3012
|
+
var ICCardServer = _ref23$loginInfo.ICCardServer,
|
|
3013
|
+
ICCardPassword = _ref23$loginInfo.ICCardPassword;
|
|
2999
3014
|
|
|
3000
3015
|
_this2.iCCardServer = parseInt(ICCardServer); // 启用IC卡:0为禁用 1为启用
|
|
3001
3016
|
_this2.iCCardPassword = ICCardPassword; //IC卡密码
|
|
3002
3017
|
//移动端环境下,没有读取IC卡的方式。
|
|
3003
3018
|
|
|
3004
|
-
var
|
|
3005
|
-
isHorizontalPad =
|
|
3006
|
-
isHorizontalSunMi =
|
|
3019
|
+
var _ref24 = _mutantsUtil.platform || {},
|
|
3020
|
+
isHorizontalPad = _ref24.isHorizontalPad,
|
|
3021
|
+
isHorizontalSunMi = _ref24.isHorizontalSunMi;
|
|
3007
3022
|
|
|
3008
3023
|
_this2.isHorizontalPad = !!isHorizontalPad;
|
|
3009
3024
|
_this2.isHorizontalSunMi = !!isHorizontalSunMi;
|
|
@@ -3237,8 +3252,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3237
3252
|
discountRetailTotalAount = _state2.discountRetailTotalAount,
|
|
3238
3253
|
discountPrototypeTotalAmount = _state2.discountPrototypeTotalAmount;
|
|
3239
3254
|
|
|
3240
|
-
var
|
|
3241
|
-
isNewRetailBCPos =
|
|
3255
|
+
var _ref25 = _mutantsUtil.platform || {},
|
|
3256
|
+
isNewRetailBCPos = _ref25.isNewRetailBCPos;
|
|
3242
3257
|
|
|
3243
3258
|
var _store2 = this.store,
|
|
3244
3259
|
paymode = _store2.paymode,
|
|
@@ -3301,11 +3316,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3301
3316
|
quantity4 = 0;
|
|
3302
3317
|
var sumQuantity = 0; //数量总和的值,包括称重的。
|
|
3303
3318
|
|
|
3304
|
-
var
|
|
3305
|
-
|
|
3306
|
-
buyQuantity =
|
|
3307
|
-
|
|
3308
|
-
returnQuantity =
|
|
3319
|
+
var _ref26 = quantityDetail || {},
|
|
3320
|
+
_ref26$buyQuantity = _ref26.buyQuantity,
|
|
3321
|
+
buyQuantity = _ref26$buyQuantity === undefined ? 0 : _ref26$buyQuantity,
|
|
3322
|
+
_ref26$returnQuantity = _ref26.returnQuantity,
|
|
3323
|
+
returnQuantity = _ref26$returnQuantity === undefined ? 0 : _ref26$returnQuantity;
|
|
3309
3324
|
|
|
3310
3325
|
var quantityPrecision = (0, _tplusPoslogin.PosInitData)("QuantityPrecision");
|
|
3311
3326
|
quantityPrecision = quantityPrecision ? parseInt(quantityPrecision) : '';
|
|
@@ -3322,6 +3337,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3322
3337
|
}
|
|
3323
3338
|
sumQuantity = this.changeDecimalBuZero(sumQuantity, quantityPrecision);
|
|
3324
3339
|
}
|
|
3340
|
+
|
|
3341
|
+
var isNeedPasswordForStoragePay = (0, _tplusPoslogin.PosInitData)('IsNeedPasswordForStoragePay');
|
|
3325
3342
|
return _react2.default.createElement(
|
|
3326
3343
|
'div',
|
|
3327
3344
|
{ className: 'billingSettlement', ref: function ref(r) {
|
|
@@ -3562,6 +3579,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3562
3579
|
return _this8.handleChange(index, e);
|
|
3563
3580
|
}
|
|
3564
3581
|
})
|
|
3582
|
+
),
|
|
3583
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
3584
|
+
'div',
|
|
3585
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
3586
|
+
onClick: function onClick() {
|
|
3587
|
+
_this8.appendCzkmode(boriginReturn, 'noPlaySetPwd');
|
|
3588
|
+
} },
|
|
3589
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
3565
3590
|
)
|
|
3566
3591
|
),
|
|
3567
3592
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -3888,16 +3913,16 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
3888
3913
|
className: _index.hotKey.hotKeyNotFilter("paymode hotkey_" + _this8.compoundHotkeysList[hotkeyIndex]),
|
|
3889
3914
|
disabled: _this8.checkModeDisabled(mode.paymentType, brefund, boriginReturn),
|
|
3890
3915
|
onClick: function onClick() {
|
|
3891
|
-
|
|
3892
|
-
if (mode.paymentType === PayStyle.hyczk) {
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3916
|
+
// let czkinput = document.getElementById('inputS' + index);
|
|
3917
|
+
// if (mode.paymentType === PayStyle.hyczk) {
|
|
3918
|
+
// const { isProhibitMeStorageCard } = this.props;
|
|
3919
|
+
// if (isProhibitMeStorageCard) {
|
|
3920
|
+
// Message.warn('储值卡不可键盘录入,请刷卡!');
|
|
3921
|
+
// return;
|
|
3922
|
+
// }
|
|
3923
|
+
// }
|
|
3924
|
+
// mode.paymentType == PayStyle.hyczk && czkinput && czkinput.value !== '0.00' ? this.editCzkModal() :
|
|
3925
|
+
_this8.onHotKeyClick1(mode, index, boriginReturn);
|
|
3901
3926
|
},
|
|
3902
3927
|
value: mode.paymentType == PayStyle.hyczk ? (0, _utils.getFixedNumber)((0, _reduce3.default)((0, _filter3.default)(thePaymodes, function (tm) {
|
|
3903
3928
|
return tm.paymentType == PayStyle.hyczk;
|
|
@@ -4151,6 +4176,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4151
4176
|
return _this8.onFocusHack(index, mode, paymode, e);
|
|
4152
4177
|
}
|
|
4153
4178
|
})
|
|
4179
|
+
),
|
|
4180
|
+
!isNeedPasswordForStoragePay && _react2.default.createElement(
|
|
4181
|
+
'div',
|
|
4182
|
+
{ className: 'righticon', style: { display: mode.paymentType == PayStyle.hyczk ? 'inline-block' : 'none' },
|
|
4183
|
+
onClick: function onClick() {
|
|
4184
|
+
_this8.appendCzkmode('', 'noPlaySetPwd');
|
|
4185
|
+
} },
|
|
4186
|
+
_react2.default.createElement(_ticon2.default, { type: 'zengjia', className: 'plus primary-color' })
|
|
4154
4187
|
)
|
|
4155
4188
|
),
|
|
4156
4189
|
mode.paymentType == PayStyle.djq ? _react2.default.createElement(
|
|
@@ -4598,8 +4631,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4598
4631
|
type: 'text',
|
|
4599
4632
|
placeholder: '\u8BF7\u626B\u63CF\u6216\u8F93\u5165\u4F59\u989D\u5361'
|
|
4600
4633
|
// disabled={currentMode && !currentMode.member.StorageCardNo && isReturn ? true: false}
|
|
4601
|
-
,
|
|
4602
|
-
className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4634
|
+
, className: 'input ' + (this.hasElectron === true && this.iCCardServer === 1 || this.isHorizontalPad === true ? 'temp' : ''),
|
|
4603
4635
|
onChange: function onChange(e) {
|
|
4604
4636
|
return _this8.onCzkChange(e.target.value);
|
|
4605
4637
|
},
|
|
@@ -4665,8 +4697,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4665
4697
|
_this8.setCurrentModeValue(event.target.value, Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4666
4698
|
},
|
|
4667
4699
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(brefund ? currentMode.value : Math.min(currentMode.value, currentMode.maxamount, currentMode.member.balance)),
|
|
4668
|
-
ref: function ref(
|
|
4669
|
-
return _this8["inputCzkAmount"] =
|
|
4700
|
+
ref: function ref(_ref27) {
|
|
4701
|
+
return _this8["inputCzkAmount"] = _ref27;
|
|
4670
4702
|
},
|
|
4671
4703
|
onFocus: function onFocus(e) {
|
|
4672
4704
|
_this8.inputkey = "inputCzkAmount";
|
|
@@ -4676,11 +4708,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4676
4708
|
}, _this8.keyboardOnOk, _this8.keyboardOnClose)();
|
|
4677
4709
|
},
|
|
4678
4710
|
onBlur: function onBlur(e) {
|
|
4679
|
-
var sMember = _this8.store.member;
|
|
4680
|
-
if (!sMember.StorageCardEnable) {
|
|
4681
|
-
_message2.default.warn("该储值卡已停用");
|
|
4682
|
-
return;
|
|
4683
|
-
}
|
|
4684
4711
|
_keyboard2.default.close();
|
|
4685
4712
|
_this8.setCurrentModeValue((0, _utils.getFixedNumber)(_this8.inputCzkAmount.input.value), Math.min(currentMode.maxamount, currentMode.member.balance));
|
|
4686
4713
|
}
|
|
@@ -4888,6 +4915,25 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4888
4915
|
currentMode && currentMode.errinfo
|
|
4889
4916
|
)
|
|
4890
4917
|
),
|
|
4918
|
+
_react2.default.createElement(
|
|
4919
|
+
'div',
|
|
4920
|
+
{ className: 'col4' },
|
|
4921
|
+
_react2.default.createElement(
|
|
4922
|
+
_button2.default,
|
|
4923
|
+
{ className: '' + (this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4924
|
+
'\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4925
|
+
),
|
|
4926
|
+
_react2.default.createElement(
|
|
4927
|
+
_button2.default,
|
|
4928
|
+
{ className: '' + (!this.state.couponLight ? "primary-color b-theme" : 'couponBorder'), onClick: this.couponClick },
|
|
4929
|
+
'\u4E0D\u53EF\u7528\u4F18\u60E0\u5238'
|
|
4930
|
+
),
|
|
4931
|
+
_react2.default.createElement(
|
|
4932
|
+
'span',
|
|
4933
|
+
{ className: 'couponTip' },
|
|
4934
|
+
'\u9009\u62E9\u5238\u540E\u3001\u4E0D\u53EF\u53E0\u52A0\u3001\u91D1\u989D\u4E0D\u6EE1\u8DB3\u7684\u5238\u4F1A\u7F6E\u7070'
|
|
4935
|
+
)
|
|
4936
|
+
),
|
|
4891
4937
|
this.isHorizontalPad && _react2.default.createElement(
|
|
4892
4938
|
'div',
|
|
4893
4939
|
{ className: 'col3' },
|
|
@@ -4904,12 +4950,18 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4904
4950
|
'div',
|
|
4905
4951
|
{ className: 'djq2' },
|
|
4906
4952
|
(0, _map3.default)(currentMode && currentMode.djqs || [], function (q, index) {
|
|
4953
|
+
if (!_this8.state.couponLight && !q.count) {
|
|
4954
|
+
return;
|
|
4955
|
+
}
|
|
4956
|
+
if (_this8.state.couponLight && q.count && q.count === 1) {
|
|
4957
|
+
return;
|
|
4958
|
+
}
|
|
4907
4959
|
return _react2.default.createElement(
|
|
4908
4960
|
'div',
|
|
4909
4961
|
{ key: index + '', className: 'djqItem' },
|
|
4910
4962
|
!q.promoMethodEnum || q.promoMethodEnum == 'CASH_COUPON' ? _react2.default.createElement(
|
|
4911
4963
|
'div',
|
|
4912
|
-
{ className: 'djqLeft djqLeftCash' },
|
|
4964
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4913
4965
|
_react2.default.createElement(
|
|
4914
4966
|
'div',
|
|
4915
4967
|
{ className: 'amount' },
|
|
@@ -4931,7 +4983,7 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4931
4983
|
)
|
|
4932
4984
|
) : _react2.default.createElement(
|
|
4933
4985
|
'div',
|
|
4934
|
-
{ className: 'djqLeft
|
|
4986
|
+
{ className: 'djqLeft ' + (q.IsEnable ? 'djqLeftCash' : 'djqLeftCashGrey') },
|
|
4935
4987
|
_react2.default.createElement(
|
|
4936
4988
|
'div',
|
|
4937
4989
|
{ className: 'amount' },
|
|
@@ -4955,9 +5007,14 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
4955
5007
|
_react2.default.createElement(
|
|
4956
5008
|
'div',
|
|
4957
5009
|
{ className: (0, _classnames4.default)('djqRight', { 'djqRightSelected': q.checked }), onClick: function onClick(e) {
|
|
4958
|
-
return _this8.djqChecked(q);
|
|
5010
|
+
return q.IsEnable ? _this8.djqChecked(q, _this8.props.dto) : null;
|
|
4959
5011
|
} },
|
|
4960
|
-
_react2.default.createElement(
|
|
5012
|
+
q.checked ? _react2.default.createElement(_ticon2.default, { className: 'checkIcon primary-color', type: 'xuanzhong1' }) : _react2.default.createElement('span', { className: '' + (q.IsEnable ? 'noxuanzhong' : 'noxuanzhong1') }),
|
|
5013
|
+
q.checked ? _react2.default.createElement(
|
|
5014
|
+
'div',
|
|
5015
|
+
{ className: 'name overflow-hidden-point primary-color' },
|
|
5016
|
+
q.name
|
|
5017
|
+
) : _react2.default.createElement(
|
|
4961
5018
|
'div',
|
|
4962
5019
|
{ className: 'name overflow-hidden-point' },
|
|
4963
5020
|
q.name
|
|
@@ -5256,8 +5313,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
|
5256
5313
|
_this8.setCurrentModeValue(e.target.value, Math.min(currentMode.maxamount, currentMode.member.exchangable));
|
|
5257
5314
|
},
|
|
5258
5315
|
defaultValue: currentMode && (0, _utils.getFixedNumber)(Math.min(currentMode.value, currentMode.maxamount, currentMode.member.exchangable)),
|
|
5259
|
-
ref: function ref(
|
|
5260
|
-
return _this8["inputJfdxAmount"] =
|
|
5316
|
+
ref: function ref(_ref28) {
|
|
5317
|
+
return _this8["inputJfdxAmount"] = _ref28;
|
|
5261
5318
|
},
|
|
5262
5319
|
onFocus: function onFocus(e) {
|
|
5263
5320
|
_this8.inputkey = "inputJfdxAmount";
|