kts-component-invoice-operate 3.2.60 → 3.2.62

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.
Files changed (28) hide show
  1. package/README.md +4 -1
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.d.ts +2 -0
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.d.ts +2 -1
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.d.ts +2 -0
  5. package/dist/Invoice/tools/coolingFn/index.d.ts +1 -1
  6. package/dist/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.d.ts +1 -1
  7. package/dist/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/uaeSalesDiscount/index.d.ts +6 -0
  8. package/dist/index.esm.js +358 -118
  9. package/dist/index.js +358 -118
  10. package/package.json +1 -1
  11. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/Drag/index.ts +3 -0
  12. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/LineAttributeType/index.ts +2 -1
  13. package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/index.ts +4 -1
  14. package/src/Invoice/_test/endowCode/index.tsx +53 -2
  15. package/src/Invoice/tools/coolingFn/index.ts +1 -1
  16. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/Drag/index.tsx +24 -21
  17. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useDelItem/index.tsx +4 -0
  18. package/src/Invoice/ui/default/GoodsList/hook/useColumns/ui/RowMenu/hook/useEndowCode/index.tsx +5 -1
  19. package/src/Invoice/ui/default/GoodsList/hook/useRowSelection/index.tsx +1 -1
  20. package/src/Invoice/ui/default/GoodsList/index.tsx +7 -0
  21. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/uaeSalesDiscount/index.tsx +104 -0
  22. package/src/Invoice/ui/default/GoodsList/ui/BulkMenu/hooks/useEndowCodeButton/index.tsx +8 -1
  23. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.less +16 -1
  24. package/src/Invoice/ui/default/GoodsList/ui/TableRow/index.tsx +12 -1
  25. package/src/Invoice/ui/digtal/GoodsList/hook/useColumns/ui/Drag/index.tsx +56 -37
  26. package/src/Invoice/ui/digtal/GoodsList/ui/BulkMenu/hooks/useAddDiscountRowButton/index.tsx +0 -2
  27. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.less +16 -1
  28. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +14 -1
package/README.md CHANGED
@@ -3,4 +3,7 @@
3
3
  文档地址:http://kts-component-invoice-operate.dev.kingxunlian.com/
4
4
 
5
5
 
6
- 南湖:https://lanhuapp.com/web/#/item/project/detailDetach?pid=7daf94b0-9aa7-4372-89a7-226f389b021d&project_id=7daf94b0-9aa7-4372-89a7-226f389b021d&image_id=3bc42812-5718-4aa5-b088-5bc7e0c9a62f&fromEditor=true
6
+ 南湖:https://lanhuapp.com/web/#/item/project/detailDetach?pid=7daf94b0-9aa7-4372-89a7-226f389b021d&project_id=7daf94b0-9aa7-4372-89a7-226f389b021d&image_id=3bc42812-5718-4aa5-b088-5bc7e0c9a62f&fromEditor=true
7
+
8
+
9
+ node 16.20.2
@@ -6,4 +6,6 @@ export default class Drag {
6
6
  current?: string;
7
7
  /** 准备插入的货物索引 */
8
8
  container?: string;
9
+ /** 插入位置 */
10
+ site?: 'u' | 'd';
9
11
  }
@@ -1,6 +1,7 @@
1
1
  declare enum LineAttributeType {
2
2
  正常 = 0,
3
3
  折扣行 = 1,
4
- 被折扣行 = 2
4
+ 被折扣行 = 2,
5
+ 折让行 = 3
5
6
  }
6
7
  export default LineAttributeType;
@@ -70,6 +70,8 @@ export default class GoodsListState {
70
70
  isMergeDetails: boolean;
71
71
  /** 是否可以合并折扣 */
72
72
  isMergeDiscount: boolean;
73
+ /** 是否可以销售折让 */
74
+ isSalesDiscount: boolean;
73
75
  /** 正在 添加商品对照 的货物 */
74
76
  addComparisonIndex?: string;
75
77
  /** 商品拖拽数据 */
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * 有冷却时间的函数
3
- * @param fn 方法
4
3
  * @param key 方法key
5
4
  * @param delayed 冷却时间
5
+ * @param fn 方法
6
6
  */
7
7
  declare const _default: (key: string | undefined, delayed: number | undefined, fn: Function) => void;
8
8
  export default _default;
@@ -3,5 +3,5 @@ declare const _default: (goods: IGood) => {
3
3
  key: string;
4
4
  title: string;
5
5
  onClick: () => Promise<void>;
6
- };
6
+ } | undefined;
7
7
  export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /** 销售折让 */
3
+ export default function uaeSalesDiscount(): {
4
+ /** 按钮 */
5
+ button: JSX.Element;
6
+ };