kts-component-invoice-operate 3.2.242 → 3.2.244
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/Invoice/Invoice-digtal/_test/pay/index.d.ts +4 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.d.ts +6 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.d.ts +12 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.d.ts +21 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.d.ts +31 -0
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +2 -0
- package/dist/Invoice/InvoiceController/fns/addPay.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/delPay.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/saveEditPay.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/setEditPay.d.ts +6 -0
- package/dist/Invoice/InvoiceController/fns/setPay.d.ts +6 -0
- package/dist/Invoice/InvoiceController/index.d.ts +6 -0
- package/dist/Invoice/index.d.ts +2 -0
- package/dist/Invoice/ui/digtal/PayList/hook/useColumns/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PayList/hook/useOnRow/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PayList/hook/useRowSelection/index.d.ts +8 -0
- package/dist/Invoice/ui/digtal/PayList/hook/useWindowClick/index.d.ts +5 -0
- package/dist/Invoice/ui/digtal/PayList/index.d.ts +18 -0
- package/dist/Invoice/ui/digtal/PayList/ui/AddRowButton/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
- package/dist/Invoice/ui/digtal/PayList/ui/TableRow/index.d.ts +3 -0
- package/dist/Invoice/ui/digtal/PayList/ui/TableVirtual/index.d.ts +4 -0
- package/dist/index.esm.js +8763 -5735
- package/dist/index.js +8762 -5734
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +40 -8
- package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +23 -17
- package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +14637 -0
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +47 -0
- package/src/Invoice/Invoice-digtal/index.md +7 -6
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +3 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.ts +10 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.ts +35 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.ts +81 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.ts +40 -0
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +3 -0
- package/src/Invoice/InvoiceController/fns/addPay.ts +11 -0
- package/src/Invoice/InvoiceController/fns/delPay.ts +38 -0
- package/src/Invoice/InvoiceController/fns/saveEditPay.ts +23 -0
- package/src/Invoice/InvoiceController/fns/setEditPay.ts +16 -0
- package/src/Invoice/InvoiceController/fns/setPay.ts +11 -0
- package/src/Invoice/InvoiceController/index.ts +21 -0
- package/src/Invoice/index.tsx +3 -0
- package/src/Invoice/tools/useToGenerateId/index.ts +2 -0
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/dist/index.js +616 -0
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +168 -0
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.tsx +20 -0
- package/src/Invoice/ui/digtal/PayList/hook/useOnRow/index.tsx +37 -0
- package/src/Invoice/ui/digtal/PayList/hook/useRowSelection/index.tsx +120 -0
- package/src/Invoice/ui/digtal/PayList/hook/useWindowClick/index.tsx +19 -0
- package/src/Invoice/ui/digtal/PayList/index.less +73 -0
- package/src/Invoice/ui/digtal/PayList/index.tsx +132 -0
- package/src/Invoice/ui/digtal/PayList/ui/AddRowButton/index.tsx +75 -0
- package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
- package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -0
- package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.less +29 -0
- package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.tsx +21 -0
- package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.less +39 -0
- package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.tsx +109 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +246 -37
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +1 -1
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +809 -204
package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ColumnProps } from 'kts-components-antd-x3/lib/Table/interface';
|
|
2
|
+
import { PaginationConfig } from 'kts-components-antd-x3/lib/Table';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
export interface IGetGoodsListOption {
|
|
5
|
+
/** 分页数据 */
|
|
6
|
+
pagination: PaginationConfig;
|
|
7
|
+
}
|
|
8
|
+
export default class ImportGoods<ColumnType = any> {
|
|
9
|
+
/** 表头 */
|
|
10
|
+
columns: ColumnProps<ColumnType>[];
|
|
11
|
+
/** 货物列表 */
|
|
12
|
+
dataSource: ColumnType[];
|
|
13
|
+
/** 分页数据 */
|
|
14
|
+
pagination: PaginationConfig;
|
|
15
|
+
/** 是否显示导入 */
|
|
16
|
+
isVisibleDrawer: boolean;
|
|
17
|
+
/** 顶部扩展 */
|
|
18
|
+
topExpand?: React.ReactNode;
|
|
19
|
+
/** 导入时校验函数 */
|
|
20
|
+
verifyFn: (record: any) => Promise<boolean>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import IGood from './IGood';
|
|
2
|
+
import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
|
|
3
|
+
export default class PayListState {
|
|
4
|
+
/** 产品最大数 */
|
|
5
|
+
goodMax?: number;
|
|
6
|
+
/** 正在编辑的货物 */
|
|
7
|
+
editGood?: IGood;
|
|
8
|
+
/** 是否可以添加行 */
|
|
9
|
+
isAddRow: boolean;
|
|
10
|
+
/** 是否可以删除行 */
|
|
11
|
+
isRemRow: boolean;
|
|
12
|
+
/** 货物字典 */
|
|
13
|
+
goodsMap: Map<string, IGood>;
|
|
14
|
+
/** 被编辑行的form对象 */
|
|
15
|
+
form?: WrappedFormUtils;
|
|
16
|
+
/** 运输工具种类列表 */
|
|
17
|
+
vehicleTypeList: any[];
|
|
18
|
+
/** 货物列表 */
|
|
19
|
+
goodsList: IGood[];
|
|
20
|
+
/** 列表选中的货物索引列表 */
|
|
21
|
+
selectedGoodIndex: string[];
|
|
22
|
+
/** 地区 */
|
|
23
|
+
area: any[];
|
|
24
|
+
addressFieldNames: IFieldNames;
|
|
25
|
+
}
|
|
26
|
+
interface IFieldNames {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
children: string;
|
|
30
|
+
}
|
|
31
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import GoodsListState from './GoodsListState';
|
|
2
2
|
import FreightListState from './FreightListState';
|
|
3
|
+
import PayListState from './PayListState';
|
|
3
4
|
import BuyerState from './BuyerState';
|
|
4
5
|
import Stakeholder from './Stakeholder';
|
|
5
6
|
import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
|
|
@@ -54,5 +55,6 @@ export default class InvoiceControllerState {
|
|
|
54
55
|
* 货物运输列表
|
|
55
56
|
*/
|
|
56
57
|
freightListState: FreightListState;
|
|
58
|
+
payListState: PayListState;
|
|
57
59
|
addGoodsCheck?: any;
|
|
58
60
|
}
|
|
@@ -7,6 +7,7 @@ export { default as InvoiceControllerState } from './InvoiceControllerState';
|
|
|
7
7
|
export { default as IGood } from './InvoiceControllerState/GoodsListState/IGood';
|
|
8
8
|
export { default as LineAttributeType } from './InvoiceControllerState/GoodsListState/LineAttributeType';
|
|
9
9
|
export { default as IGood2 } from './InvoiceControllerState/FreightListState/IGood';
|
|
10
|
+
export { default as IGood3 } from './InvoiceControllerState/PayListState/IGood';
|
|
10
11
|
export default class InvoiceController extends InvoiceControllerForm {
|
|
11
12
|
constructor(state?: InvoiceControllerState);
|
|
12
13
|
/** 更新发票单据编号 */
|
|
@@ -17,21 +18,26 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
17
18
|
setGoods: (option?: import("./InvoiceControllerState/GoodsListState/IGood").default | undefined) => Promise<any>;
|
|
18
19
|
/** 设置货物运输属性 */
|
|
19
20
|
setFreight: (option?: import("./InvoiceControllerState/GoodsListState/IGood").default | undefined) => Promise<any>;
|
|
21
|
+
setPay: (option?: import("./InvoiceControllerState/GoodsListState/IGood").default | undefined) => Promise<any>;
|
|
20
22
|
setEditFreight: (option?: any) => Promise<any>;
|
|
23
|
+
setEditPay: (option?: any) => Promise<any>;
|
|
21
24
|
/** 设置当前的编辑货物 */
|
|
22
25
|
setEditGood: (option?: any) => Promise<any>;
|
|
23
26
|
/** 保存正在编辑的货物 */
|
|
24
27
|
saveEditGood: (option?: any) => Promise<any>;
|
|
25
28
|
/** 保存正在编辑的货物运输 */
|
|
26
29
|
saveEditFreight: (option?: any) => Promise<any>;
|
|
30
|
+
saveEditPay: (option?: any) => Promise<any>;
|
|
27
31
|
/** 删除一个货物 */
|
|
28
32
|
delGood: (option?: string | undefined) => Promise<any>;
|
|
29
33
|
/** 删除一个货物运输 */
|
|
30
34
|
delFreight: (option?: string | undefined) => Promise<any>;
|
|
35
|
+
delPay: (option?: string | undefined) => Promise<any>;
|
|
31
36
|
/** 添加一个货物 */
|
|
32
37
|
addGood: (option?: any) => Promise<any>;
|
|
33
38
|
/** 添加一个货物运输 */
|
|
34
39
|
addFreight: (option?: any) => Promise<any>;
|
|
40
|
+
addPay: (option?: any) => Promise<any>;
|
|
35
41
|
/** 全单合并明细 */
|
|
36
42
|
mergeDetails: (option?: string[] | undefined) => Promise<any>;
|
|
37
43
|
/** 全单合并折扣 */
|
package/dist/Invoice/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ import Seller from './ui/default/Seller';
|
|
|
8
8
|
import Buyer from './ui/default/Buyer';
|
|
9
9
|
import GoodsListDigtal from './ui/digtal/GoodsList';
|
|
10
10
|
import FreightList from './ui/digtal/FreightList';
|
|
11
|
+
import PayList from './ui/digtal/PayList';
|
|
11
12
|
/** 发票组件的上下文 */
|
|
12
13
|
export declare const InvoiceContext: React.Context<InvoiceController>;
|
|
13
14
|
export interface IInvoiceProps {
|
|
@@ -58,6 +59,7 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
|
58
59
|
/** 特殊信息-建筑服务(数电) */
|
|
59
60
|
static readonly Architecture: React.FunctionComponent<import("./ui/digtal/Architecture").RealEstateInfoProps>;
|
|
60
61
|
static readonly FreightList: typeof FreightList;
|
|
62
|
+
static readonly PayList: typeof PayList;
|
|
61
63
|
/** 货物列表(数电) */
|
|
62
64
|
static readonly GoodsListDigtal: typeof GoodsListDigtal;
|
|
63
65
|
/** 货物索引生成器 */
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './index.less';
|
|
3
|
+
export interface IGoodsListProps {
|
|
4
|
+
/** 产品最大数 */
|
|
5
|
+
goodMax?: number;
|
|
6
|
+
addressOptions?: any[];
|
|
7
|
+
/**
|
|
8
|
+
* 支付方式枚举
|
|
9
|
+
*/
|
|
10
|
+
vehicleTypeList: any[];
|
|
11
|
+
/**
|
|
12
|
+
* 地址数据字段名
|
|
13
|
+
*/
|
|
14
|
+
fieldNames?: any;
|
|
15
|
+
}
|
|
16
|
+
export default class PayList extends React.Component<IGoodsListProps> {
|
|
17
|
+
render(): JSX.Element;
|
|
18
|
+
}
|