kts-component-invoice-operate 3.2.257 → 3.2.259

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 (61) hide show
  1. package/dist/Invoice/Invoice-digtal/_test/passenger/index.d.ts +4 -0
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IColumnsReplenish/index.d.ts +6 -0
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IGood/index.d.ts +24 -0
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/index.d.ts +44 -0
  5. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +5 -0
  6. package/dist/Invoice/InvoiceController/fns/addPassenger.d.ts +6 -0
  7. package/dist/Invoice/InvoiceController/fns/delPassenger.d.ts +6 -0
  8. package/dist/Invoice/InvoiceController/fns/saveEditPassenger.d.ts +6 -0
  9. package/dist/Invoice/InvoiceController/fns/setEditPassenger.d.ts +6 -0
  10. package/dist/Invoice/InvoiceController/index.d.ts +12 -0
  11. package/dist/Invoice/index.d.ts +2 -0
  12. package/dist/Invoice/ui/components/CustomCascader/index.d.ts +20 -0
  13. package/dist/Invoice/ui/default/ImportPassengerDrawer/index.d.ts +3 -0
  14. package/dist/Invoice/ui/digtal/PassengerList/hook/useColumns/index.d.ts +3 -0
  15. package/dist/Invoice/ui/digtal/PassengerList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  16. package/dist/Invoice/ui/digtal/PassengerList/hook/useOnRow/index.d.ts +8 -0
  17. package/dist/Invoice/ui/digtal/PassengerList/hook/useRowSelection/index.d.ts +8 -0
  18. package/dist/Invoice/ui/digtal/PassengerList/hook/useWindowClick/index.d.ts +8 -0
  19. package/dist/Invoice/ui/digtal/PassengerList/index.d.ts +18 -0
  20. package/dist/Invoice/ui/digtal/PassengerList/ui/AddRowButton/index.d.ts +3 -0
  21. package/dist/Invoice/ui/digtal/PassengerList/ui/BatchImportButton/index.d.ts +3 -0
  22. package/dist/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
  23. package/dist/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
  24. package/dist/Invoice/ui/digtal/PassengerList/ui/TableRow/index.d.ts +3 -0
  25. package/dist/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.d.ts +4 -0
  26. package/dist/Invoice/ui/digtal/Stakeholder/index.d.ts +2 -0
  27. package/dist/index.esm.js +3501 -45
  28. package/dist/index.js +3491 -35
  29. package/package.json +1 -1
  30. package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +12 -0
  31. package/src/Invoice/Invoice-digtal/_test/passenger/index.tsx +14602 -0
  32. package/src/Invoice/Invoice-digtal/index.md +3 -0
  33. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -0
  34. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IColumnsReplenish/index.ts +10 -0
  35. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/IGood/index.ts +34 -0
  36. package/src/Invoice/InvoiceController/InvoiceControllerState/PassengerListState/index.ts +179 -0
  37. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +8 -2
  38. package/src/Invoice/InvoiceController/fns/addPassenger.ts +11 -0
  39. package/src/Invoice/InvoiceController/fns/delPassenger.ts +38 -0
  40. package/src/Invoice/InvoiceController/fns/saveEditPassenger.ts +24 -0
  41. package/src/Invoice/InvoiceController/fns/setEditPassenger.ts +16 -0
  42. package/src/Invoice/InvoiceController/index.ts +23 -1
  43. package/src/Invoice/index.tsx +5 -0
  44. package/src/Invoice/ui/components/CustomCascader/index.tsx +356 -0
  45. package/src/Invoice/ui/default/ImportPassengerDrawer/index.tsx +214 -0
  46. package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/index.tsx +428 -0
  47. package/src/Invoice/ui/digtal/PassengerList/hook/useColumns/ui/TitleText/index.tsx +20 -0
  48. package/src/Invoice/ui/digtal/PassengerList/hook/useOnRow/index.tsx +37 -0
  49. package/src/Invoice/ui/digtal/PassengerList/hook/useRowSelection/index.tsx +120 -0
  50. package/src/Invoice/ui/digtal/PassengerList/hook/useWindowClick/index.tsx +23 -0
  51. package/src/Invoice/ui/digtal/PassengerList/index.less +73 -0
  52. package/src/Invoice/ui/digtal/PassengerList/index.tsx +152 -0
  53. package/src/Invoice/ui/digtal/PassengerList/ui/AddRowButton/index.tsx +75 -0
  54. package/src/Invoice/ui/digtal/PassengerList/ui/BatchImportButton/index.tsx +74 -0
  55. package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
  56. package/src/Invoice/ui/digtal/PassengerList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -0
  57. package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.less +29 -0
  58. package/src/Invoice/ui/digtal/PassengerList/ui/TableRow/index.tsx +21 -0
  59. package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.less +39 -0
  60. package/src/Invoice/ui/digtal/PassengerList/ui/TableVirtual/index.tsx +109 -0
  61. package/src/Invoice/ui/digtal/Stakeholder/index.tsx +22 -17
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import 'antd/dist/antd.css';
3
+ declare const _default: () => JSX.Element;
4
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /** 商品表格补充配置 */
2
+ import { ValidationRule } from "kts-components-antd-x3/lib/form";
3
+ export default interface IColumnsReplenish {
4
+ /** 补充的规则 */
5
+ rules: ValidationRule[];
6
+ }
@@ -0,0 +1,24 @@
1
+ export default interface IGood {
2
+ /** 数据索引 */
3
+ $index: string;
4
+ /** 出行人序号 */
5
+ cxrxh?: number;
6
+ /** 出行人 */
7
+ cxr?: string;
8
+ /** 证件类型 */
9
+ cxrzjlxDm?: string;
10
+ /** 有效身份证件号 */
11
+ sfzjhm?: string;
12
+ /** 出行日期 */
13
+ chuxrq?: string;
14
+ /** 旅客出发地 */
15
+ cfd?: string[];
16
+ /** 旅客到达地 */
17
+ ddd?: string[];
18
+ /** 等级 */
19
+ zwdj?: string;
20
+ /** 交通工具类型列表 */
21
+ jtgjlxDm?: string;
22
+ /** 地区 */
23
+ area?: string[];
24
+ }
@@ -0,0 +1,44 @@
1
+ import IGood from './IGood';
2
+ import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
3
+ import { PaginationConfig } from 'kts-components-antd-x3/lib/pagination';
4
+ export default class PassengerListState {
5
+ /** 产品最大数 */
6
+ goodMax?: number;
7
+ /** 正在编辑的货物 */
8
+ editGood?: IGood;
9
+ /** 是否可以添加行 */
10
+ isAddRow: boolean;
11
+ /** 是否可以删除行 */
12
+ isRemRow: boolean;
13
+ /** 是否可以批量导入 */
14
+ isBatchImport: boolean;
15
+ /** 批量导入弹窗 */
16
+ isVisibleDrawer: boolean;
17
+ /** 货物字典 */
18
+ goodsMap: Map<string, IGood>;
19
+ /** 被编辑行的form对象 */
20
+ form?: WrappedFormUtils;
21
+ /** 证件类型列表 */
22
+ certificateTypeList: any[];
23
+ /** 交通工具类型列表 */
24
+ vehicleTypeList: any[];
25
+ /** 货物列表 */
26
+ goodsList: IGood[];
27
+ /** 列表选中的货物索引列表 */
28
+ selectedGoodIndex: string[];
29
+ /** 地区 */
30
+ area: any[];
31
+ addressFieldNames: IFieldNames;
32
+ /** 批量导入列表 */
33
+ dataSource: any[];
34
+ /** 分页数据 */
35
+ pagination: PaginationConfig;
36
+ /** 表头 */
37
+ columns: any[];
38
+ }
39
+ interface IFieldNames {
40
+ label: string;
41
+ value: string;
42
+ children: string;
43
+ }
44
+ export {};
@@ -6,6 +6,7 @@ import Stakeholder from './Stakeholder';
6
6
  import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
7
7
  import { TaxClassificationProps } from '../../../TaxClassificationCodeModal';
8
8
  import AutoComplete from './AutoComplete';
9
+ import PassengerListState from './PassengerListState';
9
10
  export default class InvoiceControllerState {
10
11
  /**
11
12
  * 组件模式
@@ -56,5 +57,9 @@ export default class InvoiceControllerState {
56
57
  */
57
58
  freightListState: FreightListState;
58
59
  payListState: PayListState;
60
+ /**
61
+ * 旅客运输列表
62
+ */
63
+ passengerListState: PassengerListState;
59
64
  addGoodsCheck?: any;
60
65
  }
@@ -0,0 +1,6 @@
1
+ import { InvoiceControllerState } from '..';
2
+ /**
3
+ * 添加的编旅客运输
4
+ */
5
+ declare const _default: (state: InvoiceControllerState, options?: any) => Promise<any>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { InvoiceControllerState } from '..';
2
+ /**
3
+ * 删除一个货物运输
4
+ */
5
+ declare const _default: (state: InvoiceControllerState, $index?: string) => Promise<void>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { InvoiceControllerState } from '..';
2
+ /**
3
+ * 保存正在编辑的货物
4
+ */
5
+ declare const _default: (state: InvoiceControllerState) => Promise<void>;
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { InvoiceControllerState } from '..';
2
+ /**
3
+ * 设置当前的编辑货物运输
4
+ */
5
+ declare const _default: (state: InvoiceControllerState, newEditGood?: any) => Promise<void>;
6
+ export default _default;
@@ -8,6 +8,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
10
  export { default as IGood3 } from './InvoiceControllerState/PayListState/IGood';
11
+ export { default as IGoodPassenger } from './InvoiceControllerState/PassengerListState/IGood';
11
12
  export default class InvoiceController extends InvoiceControllerForm {
12
13
  constructor(state?: InvoiceControllerState);
13
14
  /** 更新发票单据编号 */
@@ -20,6 +21,7 @@ export default class InvoiceController extends InvoiceControllerForm {
20
21
  setFreight: (option?: import("./InvoiceControllerState/GoodsListState/IGood").default | undefined) => Promise<any>;
21
22
  setPay: (option?: import("./InvoiceControllerState/GoodsListState/IGood").default | undefined) => Promise<any>;
22
23
  setEditFreight: (option?: any) => Promise<any>;
24
+ setEditPassenger: (option?: any) => Promise<any>;
23
25
  setEditPay: (option?: any) => Promise<any>;
24
26
  /** 设置当前的编辑货物 */
25
27
  setEditGood: (option?: any) => Promise<any>;
@@ -27,16 +29,22 @@ export default class InvoiceController extends InvoiceControllerForm {
27
29
  saveEditGood: (option?: any) => Promise<any>;
28
30
  /** 保存正在编辑的货物运输 */
29
31
  saveEditFreight: (option?: any) => Promise<any>;
32
+ /** 保存正在编辑的旅客运输 */
33
+ saveEditPassenger: (option?: undefined) => Promise<any>;
30
34
  saveEditPay: (option?: any) => Promise<any>;
31
35
  /** 删除一个货物 */
32
36
  delGood: (option?: string | undefined) => Promise<any>;
33
37
  /** 删除一个货物运输 */
34
38
  delFreight: (option?: string | undefined) => Promise<any>;
39
+ /** 删除一个货物运输 */
40
+ delPassenger: (option?: string | undefined) => Promise<any>;
35
41
  delPay: (option?: string | undefined) => Promise<any>;
36
42
  /** 添加一个货物 */
37
43
  addGood: (option?: any) => Promise<any>;
38
44
  /** 添加一个货物运输 */
39
45
  addFreight: (option?: any) => Promise<any>;
46
+ /** 添加一个旅客运输 */
47
+ addPassenger: (option?: any) => Promise<any>;
40
48
  addPay: (option?: any) => Promise<any>;
41
49
  /** 全单合并明细 */
42
50
  mergeDetails: (option?: string[] | undefined) => Promise<any>;
@@ -60,4 +68,8 @@ export default class InvoiceController extends InvoiceControllerForm {
60
68
  getGoodsTaxRateList?: (taxClassificationCode: string) => Promise<number[] | undefined | null>;
61
69
  /** 商品列表配置器 */
62
70
  setColumnsConfig?: (columns: any[]) => any[];
71
+ /** 下载模板 */
72
+ downloadPassengerTpt?: () => Promise<any>;
73
+ /** 获取 商品 列表 */
74
+ uploadPassenger?: (file: any) => Promise<any>;
63
75
  }
@@ -9,6 +9,7 @@ import Buyer from './ui/default/Buyer';
9
9
  import GoodsListDigtal from './ui/digtal/GoodsList';
10
10
  import FreightList from './ui/digtal/FreightList';
11
11
  import PayList from './ui/digtal/PayList';
12
+ import PassengerList from './ui/digtal/PassengerList';
12
13
  /** 发票组件的上下文 */
13
14
  export declare const InvoiceContext: React.Context<InvoiceController>;
14
15
  export interface IInvoiceProps {
@@ -61,6 +62,7 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
61
62
  /** 特殊信息-建筑服务(数电) */
62
63
  static readonly Architecture: React.FunctionComponent<import("./ui/digtal/Architecture").RealEstateInfoProps>;
63
64
  static readonly FreightList: typeof FreightList;
65
+ static readonly PassengerList: typeof PassengerList;
64
66
  static readonly PayList: typeof PayList;
65
67
  /** 货物列表(数电) */
66
68
  static readonly GoodsListDigtal: typeof GoodsListDigtal;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import type { CascaderProps } from 'kts-components-antd-x4/es/cascader';
3
+ export interface CustomCascaderOption {
4
+ [key: string]: any;
5
+ }
6
+ export interface CustomCascaderFieldNames {
7
+ label?: string;
8
+ value?: string;
9
+ children?: string;
10
+ }
11
+ export interface CustomCascaderProps extends Omit<CascaderProps<CustomCascaderOption>, 'value' | 'onChange' | 'options' | 'open' | 'onDropdownVisibleChange' | 'fieldNames' | 'getPopupContainer'> {
12
+ options?: CustomCascaderOption[];
13
+ fieldNames?: CustomCascaderFieldNames;
14
+ placeholder?: string;
15
+ onChange?: (value: (string | number)[] | undefined, selectedOptions?: CustomCascaderOption[]) => void;
16
+ value?: (string | number)[];
17
+ onBlur?: (e: React.FocusEvent) => void;
18
+ }
19
+ declare const CustomCascader: React.ForwardRefExoticComponent<CustomCascaderProps & React.RefAttributes<any>>;
20
+ export default CustomCascader;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
2
+ declare const _default: (form: WrappedFormUtils, isRequired?: boolean) => any[];
3
+ export default _default;
@@ -0,0 +1,8 @@
1
+ import React from 'react';
2
+ import { ValidationRule } from 'kts-components-antd-x3/lib/form';
3
+ declare const _default: (props: {
4
+ children?: React.ReactNode;
5
+ required?: boolean;
6
+ rules?: ValidationRule[];
7
+ }) => JSX.Element;
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 表格行事件
3
+ */
4
+ import IGood from '../../../../../InvoiceController/InvoiceControllerState/PassengerListState/IGood';
5
+ declare const _default: () => {
6
+ onClick: (record: IGood) => Promise<void>;
7
+ };
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => {
3
+ columnWidth: number;
4
+ columnTitle: JSX.Element;
5
+ onSelect: (record: any, selected: any) => Promise<void>;
6
+ selectedRowKeys: string[];
7
+ } | undefined;
8
+ export default _default;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * 点击组件外部 保存正在编辑的行
3
+ */
4
+ import { InvoiceController } from "../../../../../..";
5
+ /**
6
+ * 点击组件外部 保存正在编辑的货物
7
+ */
8
+ export default function useWindowClick(controller: InvoiceController): void;
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ export interface IGoodsListProps {
4
+ /** 产品最大数 */
5
+ goodMax?: number;
6
+ /** 必填校验 */
7
+ required?: boolean;
8
+ certificateTypeList?: any[];
9
+ vehicleTypeList?: any[];
10
+ addressOptions: any[];
11
+ /**
12
+ * 地址数据字段名
13
+ */
14
+ fieldNames?: any;
15
+ }
16
+ export default class PassengerList extends React.Component<IGoodsListProps> {
17
+ render(): JSX.Element;
18
+ }
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => JSX.Element;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ declare const _default: () => {
3
+ button: JSX.Element;
4
+ menuItem: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ /** 清空重填 */
3
+ declare const _default: () => {
4
+ button: JSX.Element;
5
+ };
6
+ export default _default;
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ import './index.less';
3
+ export default function TableRow(props: any): JSX.Element;
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import { TableProps } from "kts-xui";
3
+ import './index.less';
4
+ export default function <T extends object = any>(props: TableProps<T>): JSX.Element;
@@ -16,6 +16,8 @@ export interface IStakeholder {
16
16
  isExpand?: boolean;
17
17
  /** 购方,销方银行信息 勾选按钮是否显示 **/
18
18
  leqi?: boolean;
19
+ /** 是否允许编辑勾选按钮 */
20
+ allowEditFlag?: boolean;
19
21
  /** 购方,销方地址电话 勾选按钮是否显示 **/
20
22
  riskData?: boolean;
21
23
  invoiceMarkCallback?: (value: any) => void;