tplus-components-touch 3.39.9 → 3.39.12
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 +1 -1
- package/dist/components/billSearch/index.js.map +1 -1
- package/dist/components/deliverySearch/index.js +1 -1
- package/dist/components/deliverySearch/index.js.map +1 -1
- package/dist/components/hotKey/index.js +5 -0
- package/dist/components/hotKey/index.js.map +1 -1
- package/dist/components/inventorySearch/tab.js +1 -1
- package/dist/components/inventorySearch/tab.js.map +1 -1
- package/dist/components/loading/loadingContent.js +1 -1
- package/dist/components/loading/loadingContent.js.map +1 -1
- package/dist/components/settlement/settlement.js +30 -19
- package/dist/components/settlement/settlement.js.map +1 -1
- package/package.json +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["tplus-components-touch/components/loading/loadingContent.js"],"names":["LoaingContent","state","closeAnimate","percent","title","readyClose","e","setState","setTimeout","close","stopPropagation","clearCloseTimer","props","onClose","startLoadingTimer","closeTimer","duration","clearTimeout","setPercent","params","getLoadingIcon","theme","localStore","get","img","style","text","node","className","target","delay","opacity","showProgress","showTip","tip","loadingNode","containerClass","trim","targetStyle","position","delayDuration","animation","WebkitAnimation","style2","Component","propTypes","PropTypes","string","object","element","func","number","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;;;AACA;;;;IAEMA,a;;;;;;;;;;;;;;0NAkBJC,K,GAAQ;AACNC,oBAAc,KADR;AAENC,eAAS,CAFH;AAGNC,aAAO;AAHD,K,QAgBRC,U,GAAa,UAACC,CAAD,EAAO;AAClB,YAAKC,QAAL,CAAc,EAACL,cAAc,IAAf,EAAd,EAAoC,YAAM;AACxCM,mBAAW,YAAM;AACf,gBAAKC,KAAL;AACD,SAFD,EAEG,GAFH;AAGD,OAJD;AAKD,K,QAEDA,K,GAAQ,UAACH,CAAD,EAAO;AACb,UAAIA,CAAJ,E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A,YAFD;AAAA,UAEeC,OAFf,UAEeA,OAFf;AAAA,UAEwBC,KAFxB,UAEwBA,KAFxB;;AAGP,UAAM6B,UAAUP,SAAS,KAAzB;AACA,UAAMQ,MAAMH,UAAU,yBAAV,GAAsC,EAAlD;AACA,UAAMI,cACJ;AAAC,uBAAD;AAAA;AACE;AAAA;AAAA,YAAK,WAAU,uBAAf;AAEIH,2BAAiB,IAAjB,GACE,oDAAU,eAAc,QAAxB,EAAiC,SAAS7B,OAA1C,GADF,GAGE;AAAA;AAAA,cAAK,WAAU,SAAf;AACE,mDAAK,KAAK,KAAKiB,cAAL,EAAV,EAAiC,WAAU,
|
1
|
+
{"version":3,"sources":["tplus-components-touch/components/loading/loadingContent.js"],"names":["LoaingContent","state","closeAnimate","percent","title","readyClose","e","setState","setTimeout","close","stopPropagation","clearCloseTimer","props","onClose","startLoadingTimer","closeTimer","duration","clearTimeout","setPercent","params","getLoadingIcon","theme","localStore","get","img","style","text","node","className","target","delay","opacity","showProgress","showTip","tip","loadingNode","containerClass","trim","targetStyle","position","delayDuration","animation","WebkitAnimation","style2","Component","propTypes","PropTypes","string","object","element","func","number","defaultProps"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AAEA;;AACA;;;;AACA;;;;IAEMA,a;;;;;;;;;;;;;;0NAkBJC,K,GAAQ;AACNC,oBAAc,KADR;AAENC,eAAS,CAFH;AAGNC,aAAO;AAHD,K,QAgBRC,U,GAAa,UAACC,CAAD,EAAO;AAClB,YAAKC,QAAL,CAAc,EAACL,cAAc,IAAf,EAAd,EAAoC,YAAM;AACxCM,mBAAW,YAAM;AACf,gBAAKC,KAAL;AACD,SAFD,EAEG,GAFH;AAGD,OAJD;AAKD,K,QAEDA,K,GAAQ,UAACH,CAAD,EAAO;AACb,UAAIA,CAAJ,EAAO;AACLA,UAAEI,eAAF;AACD;AACD,YAAKC,eAAL;AACA,YAAKC,KAAL,CAAWC,OAAX;AACD,K,QAEDC,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OAJC;AAKjBpC,WAASiC,oBAAUI,IALF;AAMjBlC,YAAU8B,oBAAUK,MANH;AAOjBtB,UAAQiB,oBAAUC;AAPD,C,SAUZK,Y,GAAe;AACpBvC,SADoB,qBACV,CAAE,CADQ;;AAEpBe,aAAW,EAFS;AAGpBH,SAAO,EAHa;AAIpBC,QAAM;AAJc,C;kBAmGT1B,a","file":"loadingContent.js","sourcesContent":["import React, {Component, Fragment, isValidElement} from 'react';\nimport { Progress } from 'antd';\nimport { localStore } from 'mutants-util';\nimport PropTypes from 'prop-types';\nimport './style.less';\n\nclass LoaingContent extends Component {\n static propTypes = {\n text: PropTypes.string,\n className: PropTypes.string,\n style: PropTypes.object,\n node: PropTypes.element,\n onClose: PropTypes.func,\n duration: PropTypes.number,\n target: PropTypes.string\n };\n\n static defaultProps = {\n onClose() {},\n className: '',\n style: {},\n text: '加载中,请稍后...',\n };\n\n state = {\n closeAnimate: false,\n percent: 0,\n title: ''\n };\n\n componentDidMount() {\n if (typeof this.props.duration === 'number') {\n this.startLoadingTimer();\n }\n }\n\n componentWillUnmount() {\n this.clearCloseTimer();\n }\n\n readyClose = (e) => {\n this.setState({closeAnimate: true}, () => {\n setTimeout(() => {\n this.close();\n }, 250)\n })\n }\n\n close = (e) => {\n if (e) {\n e.stopPropagation();\n }\n this.clearCloseTimer();\n this.props.onClose();\n }\n\n startLoadingTimer = () => {\n this.closeTimer = setTimeout(() => {\n this.readyClose();\n }, this.props.duration);\n }\n\n clearCloseTimer = () => {\n if (this.closeTimer) {\n clearTimeout(this.closeTimer);\n this.closeTimer = null;\n }\n }\n\n setPercent = (params) => {\n const { percent, title } = params\n this.setState({ percent, title })\n }\n\n getLoadingIcon = () => {\n const theme = localStore.get('theme');\n const img = `https://newretail.static.chanjet.com/bc_pos/loading${(theme == 'blue' || theme == 'dark') ? '4' : '3'}.gif`;\n return img;\n }\n\n render() {\n const { style, text, node, className, target, delay, opacity, showProgress } = this.props;\n const { closeAnimate, percent, title } = this.state;\n const showTip = text !== false;\n const tip = opacity ? 'tplus-loading-tip-color' : '';\n const loadingNode = (\n <Fragment>\n <div className='tplus-loading-spinner'>\n {\n showProgress === true ?\n <Progress strokeLinecap=\"square\" percent={percent} />\n :\n <div className='shadows'>\n <img src={this.getLoadingIcon()} className='loading-img-symbol default-spinner-gif' />\n </div>\n }\n </div>\n {\n showTip && <p className={`tplus-loading-tip ${tip}`}>{showProgress === true ? `档案数据【${title}】下载中` : text}</p>\n }\n </Fragment>\n );\n const containerClass = `tplus-loading ${closeAnimate ? 'loading-close-animate' : ''} ${className}`.trim();\n const targetStyle = target ? {position: 'absolute'} : {};\n const delayDuration = delay ? {animation: `loading-delay-animation ${delay}ms`, WebkitAnimation: `loading-delay-animation ${delay}ms`} : {};\n const style2 = opacity ? { 'background-color': `rgba(2555, 255, 255, ${opacity})` } : {};\n return (\n <div className={containerClass} style={Object.assign(targetStyle, delayDuration, style, style2)}>\n <div className={`tplus-loading-content${showProgress === true ? ' tplus-loading-progress' : ''}`}>\n {isValidElement(node) ? node : loadingNode}\n </div>\n </div>\n );\n }\n}\n\nexport default LoaingContent;\n"]}
|
@@ -1217,6 +1217,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1217
1217
|
};
|
1218
1218
|
|
1219
1219
|
_this2.onTabsClick = function (key, bookType) {
|
1220
|
+
if (!_this2.isDjqValidated(key)) {
|
1221
|
+
return;
|
1222
|
+
};
|
1220
1223
|
var _this2$store3 = _this2.store,
|
1221
1224
|
paymode = _this2$store3.paymode,
|
1222
1225
|
brefund = _this2$store3.brefund,
|
@@ -1226,15 +1229,6 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1226
1229
|
PayStyle = _enumController$getEn9.PayStyle,
|
1227
1230
|
Differentiate = _enumController$getEn9.Differentiate;
|
1228
1231
|
|
1229
|
-
if (key === PayStyle.djq && Math.Minus(paymode.received, paymode.amount) > 0) {
|
1230
|
-
_modalWraper2.default.info({
|
1231
|
-
title: '提示',
|
1232
|
-
content: '实收金额已大于应收金额,不允许使用优惠券',
|
1233
|
-
okText: '确定',
|
1234
|
-
okType: 'primary'
|
1235
|
-
});
|
1236
|
-
return;
|
1237
|
-
}
|
1238
1232
|
if (key === PayStyle.hyczk) {
|
1239
1233
|
var isProhibitMeStorageCard = _this2.props.isProhibitMeStorageCard;
|
1240
1234
|
|
@@ -1533,6 +1527,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
1533
1527
|
};
|
1534
1528
|
|
1535
1529
|
_this2.onHotKeyClick1 = function (mode, index, boriginReturn, bookType) {
|
1530
|
+
if (!_this2.isDjqValidated(mode.paymentType)) {
|
1531
|
+
return;
|
1532
|
+
};
|
1536
1533
|
// if (bookType == 'bookPay' && this.store.paymode.isNotFullOnlyBook && mode.virtualPay){
|
1537
1534
|
// return Message.error("付订金时不可使用零售抵现类结算方式!");
|
1538
1535
|
// }
|
@@ -3515,6 +3512,20 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3515
3512
|
|
3516
3513
|
//jfdx
|
3517
3514
|
|
3515
|
+
}, {
|
3516
|
+
key: 'isDjqValidated',
|
3517
|
+
value: function isDjqValidated(key) {
|
3518
|
+
var paymode = this.store.paymode;
|
3519
|
+
|
3520
|
+
var _enumController$getEn32 = _mutantsUtil.enumController.getEnumOj(),
|
3521
|
+
PayStyle = _enumController$getEn32.PayStyle;
|
3522
|
+
|
3523
|
+
if (key === PayStyle.djq && Math.Minus(paymode.received, paymode.amount) > 0) {
|
3524
|
+
_message2.default.warn('实收金额已大于应收金额,不允许使用优惠券');
|
3525
|
+
return false;
|
3526
|
+
}
|
3527
|
+
return true;
|
3528
|
+
}
|
3518
3529
|
|
3519
3530
|
/**
|
3520
3531
|
*
|
@@ -3605,8 +3616,8 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3605
3616
|
}, {
|
3606
3617
|
key: 'onKeyboardChange',
|
3607
3618
|
value: function onKeyboardChange(key) {
|
3608
|
-
var _enumController$
|
3609
|
-
PayStyle = _enumController$
|
3619
|
+
var _enumController$getEn33 = _mutantsUtil.enumController.getEnumOj(),
|
3620
|
+
PayStyle = _enumController$getEn33.PayStyle;
|
3610
3621
|
|
3611
3622
|
if (this.currentInput) {
|
3612
3623
|
if (this.store.paymode.currentMode) {
|
@@ -3627,9 +3638,9 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3627
3638
|
value: function renderToolbtn(mode, index, bookType) {
|
3628
3639
|
var _this7 = this;
|
3629
3640
|
|
3630
|
-
var _enumController$
|
3631
|
-
PayIcon = _enumController$
|
3632
|
-
PayStyle = _enumController$
|
3641
|
+
var _enumController$getEn34 = _mutantsUtil.enumController.getEnumOj(),
|
3642
|
+
PayIcon = _enumController$getEn34.PayIcon,
|
3643
|
+
PayStyle = _enumController$getEn34.PayStyle;
|
3633
3644
|
|
3634
3645
|
var isReturn = this.props.isReturn;
|
3635
3646
|
var _store = this.store,
|
@@ -3701,11 +3712,11 @@ var Settlement = (0, _mobxReact.observer)(_class = (_temp = _class2 = function (
|
|
3701
3712
|
value: function render() {
|
3702
3713
|
var _this8 = this;
|
3703
3714
|
|
3704
|
-
var _enumController$
|
3705
|
-
PayIcon = _enumController$
|
3706
|
-
PayIcon2 = _enumController$
|
3707
|
-
PayStyle = _enumController$
|
3708
|
-
Differentiate = _enumController$
|
3715
|
+
var _enumController$getEn35 = _mutantsUtil.enumController.getEnumOj(),
|
3716
|
+
PayIcon = _enumController$getEn35.PayIcon,
|
3717
|
+
PayIcon2 = _enumController$getEn35.PayIcon2,
|
3718
|
+
PayStyle = _enumController$getEn35.PayStyle,
|
3719
|
+
Differentiate = _enumController$getEn35.Differentiate;
|
3709
3720
|
|
3710
3721
|
var _state2 = this.state,
|
3711
3722
|
btnDissabled = _state2.btnDissabled,
|