kts-component-invoice-operate 3.2.181-19 → 3.2.181-20
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/index.esm.js
CHANGED
|
@@ -11150,7 +11150,7 @@ var useDelItem = (function (goods) {
|
|
|
11150
11150
|
return {
|
|
11151
11151
|
key: 'delItem',
|
|
11152
11152
|
title: '删除',
|
|
11153
|
-
|
|
11153
|
+
onClick: onClick
|
|
11154
11154
|
}; // return React.useMemo(() => {
|
|
11155
11155
|
// return <Menu.Item key="delItem" onClick={onClick}><Text strong type="danger">删除</Text></Menu.Item>
|
|
11156
11156
|
// }, [onClick])
|
package/dist/index.js
CHANGED
|
@@ -11160,7 +11160,7 @@ var useDelItem = (function (goods) {
|
|
|
11160
11160
|
return {
|
|
11161
11161
|
key: 'delItem',
|
|
11162
11162
|
title: '删除',
|
|
11163
|
-
|
|
11163
|
+
onClick: onClick
|
|
11164
11164
|
}; // return React.useMemo(() => {
|
|
11165
11165
|
// return <Menu.Item key="delItem" onClick={onClick}><Text strong type="danger">删除</Text></Menu.Item>
|
|
11166
11166
|
// }, [onClick])
|
package/package.json
CHANGED
package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
// import { Menu, Typography } from 'kts-components-antd-x3';
|
|
3
3
|
import { IGood, LineAttributeType } from '../../../../../../../../../InvoiceController';
|
|
4
|
-
import Invoice from '../../../../../../../../..';
|
|
4
|
+
import Invoice from '../../../../../../../../..';
|
|
5
5
|
|
|
6
6
|
// const { Text } = Typography;
|
|
7
7
|
|
|
@@ -15,12 +15,11 @@ export default (goods: IGood) => {
|
|
|
15
15
|
|
|
16
16
|
const onClick = React.useCallback(() => {
|
|
17
17
|
controller.delGood(goods.$index);
|
|
18
|
-
}, [controller, goods.$index]);
|
|
19
|
-
|
|
18
|
+
}, [controller, goods.$index]);
|
|
19
|
+
|
|
20
20
|
if (goods.lineAttribute === LineAttributeType.正常 && goods?.referenceLines && goods?.referenceLines?.length > 0 ) {
|
|
21
21
|
return undefined;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
23
|
if (goods.lineAttribute === LineAttributeType.被折扣行) {
|
|
25
24
|
return undefined;
|
|
26
25
|
}
|
|
@@ -36,7 +35,6 @@ export default (goods: IGood) => {
|
|
|
36
35
|
return {
|
|
37
36
|
key:'delItem',
|
|
38
37
|
title:'删除',
|
|
39
|
-
disabled:
|
|
40
38
|
onClick,
|
|
41
39
|
}
|
|
42
40
|
|