kts-component-invoice-operate 3.2.178 → 3.2.180

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 (67) hide show
  1. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +0 -5
  2. package/dist/Invoice/InvoiceController/index.d.ts +0 -10
  3. package/dist/Invoice/index.d.ts +0 -4
  4. package/dist/index.esm.js +47 -1958
  5. package/dist/index.js +47 -1958
  6. package/package.json +3 -3
  7. package/src/Invoice/Invoice-digtal/index.md +1 -7
  8. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +0 -6
  9. package/src/Invoice/InvoiceController/index.ts +1 -20
  10. package/src/Invoice/index.tsx +1 -8
  11. package/src/Invoice/tools/useToGenerateId/index.ts +0 -2
  12. package/src/Invoice/ui/default/EndowCodeDrawer/index.tsx +11 -10
  13. package/src/Invoice/ui/digtal/GoodsList/index.tsx +1 -0
  14. package/src/Invoice/ui/digtal/GoodsList/ui/TableRow/index.tsx +1 -0
  15. package/src/TaxClassificationCodeModal/index.less +8 -0
  16. package/src/TaxClassificationCodeModal/index.tsx +14 -6
  17. package/dist/Invoice/Invoice-digtal/_test/architecture/index.d.ts +0 -4
  18. package/dist/Invoice/Invoice-digtal/_test/freight/index.d.ts +0 -4
  19. package/dist/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IColumnsReplenish/index.d.ts +0 -6
  20. package/dist/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IGood/index.d.ts +0 -23
  21. package/dist/Invoice/InvoiceController/InvoiceControllerState/FreightListState/ImportGoods/index.d.ts +0 -21
  22. package/dist/Invoice/InvoiceController/InvoiceControllerState/FreightListState/index.d.ts +0 -31
  23. package/dist/Invoice/InvoiceController/fns/addFreight.d.ts +0 -6
  24. package/dist/Invoice/InvoiceController/fns/delFreight.d.ts +0 -6
  25. package/dist/Invoice/InvoiceController/fns/saveEditFreight.d.ts +0 -6
  26. package/dist/Invoice/InvoiceController/fns/setEditFreight.d.ts +0 -6
  27. package/dist/Invoice/InvoiceController/fns/setFreight.d.ts +0 -6
  28. package/dist/Invoice/ui/digtal/Architecture/index.d.ts +0 -15
  29. package/dist/Invoice/ui/digtal/FreightList/hook/useColumns/index.d.ts +0 -3
  30. package/dist/Invoice/ui/digtal/FreightList/hook/useColumns/ui/TitleText/index.d.ts +0 -8
  31. package/dist/Invoice/ui/digtal/FreightList/hook/useOnRow/index.d.ts +0 -8
  32. package/dist/Invoice/ui/digtal/FreightList/hook/useRowSelection/index.d.ts +0 -8
  33. package/dist/Invoice/ui/digtal/FreightList/hook/useWindowClick/index.d.ts +0 -8
  34. package/dist/Invoice/ui/digtal/FreightList/index.d.ts +0 -15
  35. package/dist/Invoice/ui/digtal/FreightList/ui/AddRowButton/index.d.ts +0 -3
  36. package/dist/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +0 -6
  37. package/dist/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +0 -6
  38. package/dist/Invoice/ui/digtal/FreightList/ui/TableRow/index.d.ts +0 -3
  39. package/dist/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.d.ts +0 -4
  40. package/src/Invoice/Invoice-digtal/_test/architecture/index.tsx +0 -22
  41. package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +0 -14575
  42. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IColumnsReplenish/index.ts +0 -10
  43. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/IGood/index.ts +0 -33
  44. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/ImportGoods/index.ts +0 -81
  45. package/src/Invoice/InvoiceController/InvoiceControllerState/FreightListState/index.ts +0 -40
  46. package/src/Invoice/InvoiceController/fns/addFreight.ts +0 -11
  47. package/src/Invoice/InvoiceController/fns/delFreight.ts +0 -38
  48. package/src/Invoice/InvoiceController/fns/saveEditFreight.ts +0 -24
  49. package/src/Invoice/InvoiceController/fns/setEditFreight.ts +0 -16
  50. package/src/Invoice/InvoiceController/fns/setFreight.ts +0 -11
  51. package/src/Invoice/ui/digtal/Architecture/index.less +0 -15
  52. package/src/Invoice/ui/digtal/Architecture/index.tsx +0 -166
  53. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/dist/index.js +0 -616
  54. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/index.tsx +0 -246
  55. package/src/Invoice/ui/digtal/FreightList/hook/useColumns/ui/TitleText/index.tsx +0 -20
  56. package/src/Invoice/ui/digtal/FreightList/hook/useOnRow/index.tsx +0 -37
  57. package/src/Invoice/ui/digtal/FreightList/hook/useRowSelection/index.tsx +0 -120
  58. package/src/Invoice/ui/digtal/FreightList/hook/useWindowClick/index.tsx +0 -23
  59. package/src/Invoice/ui/digtal/FreightList/index.less +0 -74
  60. package/src/Invoice/ui/digtal/FreightList/index.tsx +0 -129
  61. package/src/Invoice/ui/digtal/FreightList/ui/AddRowButton/index.tsx +0 -65
  62. package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +0 -50
  63. package/src/Invoice/ui/digtal/FreightList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +0 -37
  64. package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.less +0 -29
  65. package/src/Invoice/ui/digtal/FreightList/ui/TableRow/index.tsx +0 -21
  66. package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.less +0 -39
  67. package/src/Invoice/ui/digtal/FreightList/ui/TableVirtual/index.tsx +0 -109
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "kts-component-invoice-operate",
3
- "version": "3.2.178",
2
+ "name": "kts-component-invoice-operate",
3
+ "version": "3.2.180",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -34,7 +34,7 @@
34
34
  "kts-components-antd-x3": "^3.26.20-5",
35
35
  "kts-components-antd-x4": "5.0.0",
36
36
  "kts-components-antd-x4-v4": "npm:kts-components-antd-x4@^4.0.3",
37
- "kts-xui": "^2.1.79",
37
+ "kts-xui": "^2.1.76",
38
38
  "mathjs": "^9.4.2",
39
39
  "next": "^11.0.1",
40
40
  "nzh": "^1.0.4",
@@ -1,6 +1,6 @@
1
1
  # 数电
2
2
 
3
- <!-- ## 简单用法
3
+ ## 简单用法
4
4
  <code src="./_test/easiest/index.tsx"></code>
5
5
 
6
6
  ## 只读模式
@@ -32,9 +32,3 @@
32
32
 
33
33
  ## 不动产经营租赁服务
34
34
  <code src="./_test/realEstateInfo/index.tsx"></code>
35
-
36
- ## 建筑服务
37
- <code src="./_test/architecture/index.tsx"></code> -->
38
-
39
- ## 货物运输服务
40
- <code src="./_test/freight/index.tsx"></code>
@@ -1,5 +1,4 @@
1
1
  import GoodsListState from './GoodsListState';
2
- import FreightListState from './FreightListState';
3
2
  import BuyerState from './BuyerState';
4
3
  import Stakeholder from './Stakeholder';
5
4
  import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
@@ -63,9 +62,4 @@ export default class InvoiceControllerState {
63
62
  * 商品税收分类编码窗口
64
63
  * */
65
64
  taxClassificationProps?: TaxClassificationProps;
66
-
67
- /**
68
- * 货物运输列表
69
- */
70
- freightListState = new FreightListState();
71
65
  }
@@ -4,17 +4,12 @@ import { IGetBuyerListOption } from './InvoiceControllerState/BuyerState';
4
4
  import { IGetGoodsListOption } from './InvoiceControllerState/GoodsListState/ImportGoods';
5
5
  // import updateInvoiceNo from './fns/updateInvoiceNo';
6
6
  import setEditGood from './fns/setEditGood';
7
- import setEditFreight from './fns/setEditFreight';
8
7
  import setGoods from './fns/setGoods';
9
- import setFreight from './fns/setFreight';
10
8
  import delGood from './fns/delGood';
11
- import delFreight from './fns/delFreight';
12
9
  import addGoodDiscount from './fns/addGoodDiscount';
13
10
  import addGoodDiscountV2 from './fns/addGoodDiscountV2';
14
11
  import addGood from './fns/addGood';
15
- import addFreight from './fns/addFreight';
16
12
  import saveEditGood from './fns/saveEditGood';
17
- import saveEditFreight from './fns/saveEditFreight';
18
13
  import getGoodsSearch from './fns/getGoodsSearch';
19
14
  import mergeDetails from './fns/mergeDetails';
20
15
  import mergeDiscount from './fns/mergeDiscount';
@@ -24,7 +19,7 @@ import itemBlur from './fns/itemBlur';
24
19
  export { default as InvoiceControllerState } from './InvoiceControllerState';
25
20
  export { default as IGood } from './InvoiceControllerState/GoodsListState/IGood';
26
21
  export { default as LineAttributeType } from './InvoiceControllerState/GoodsListState/LineAttributeType';
27
- export { default as IGood2 } from './InvoiceControllerState/FreightListState/IGood';
22
+
28
23
  export default class InvoiceController extends InvoiceControllerForm {
29
24
  constructor(state = new InvoiceControllerState()) {
30
25
  super(state);
@@ -45,32 +40,18 @@ export default class InvoiceController extends InvoiceControllerForm {
45
40
  /** 设置单个货物属性 */
46
41
  setGoods = this.pipeline(setGoods);
47
42
 
48
- /** 设置货物运输属性 */
49
- setFreight = this.pipeline(setFreight);
50
-
51
- setEditFreight = this.pipeline(setEditFreight);
52
-
53
43
  /** 设置当前的编辑货物 */
54
44
  setEditGood = this.pipeline(setEditGood);
55
45
 
56
46
  /** 保存正在编辑的货物 */
57
47
  saveEditGood = this.pipeline<any>(saveEditGood);
58
48
 
59
- /** 保存正在编辑的货物运输 */
60
- saveEditFreight = this.pipeline<any>(saveEditFreight);
61
-
62
49
  /** 删除一个货物 */
63
50
  delGood = this.pipeline(delGood);
64
51
 
65
- /** 删除一个货物运输 */
66
- delFreight = this.pipeline(delFreight);
67
-
68
52
  /** 添加一个货物 */
69
53
  addGood = this.pipeline(addGood);
70
54
 
71
- /** 添加一个货物运输 */
72
- addFreight = this.pipeline(addFreight);
73
-
74
55
  /** 全单合并明细 */
75
56
  mergeDetails = this.pipeline(mergeDetails);
76
57
 
@@ -19,8 +19,6 @@ import StakeFarmerholder from './ui/digtal/StakeFarmerholder';
19
19
  import SignDigtal from './ui/digtal/Sign';
20
20
  import GoodsListDigtal from './ui/digtal/GoodsList';
21
21
  import RealEstateInfo from './ui/digtal/RealEstateInfo';
22
- import Architecture from './ui/digtal/Architecture';
23
- import FreightList from './ui/digtal/FreightList';
24
22
 
25
23
  import ImportBuyerDrawer from './ui/default/ImportBuyerDrawer';
26
24
  import ImportGoodsDrawer from './ui/default/ImportGoodsDrawer';
@@ -88,7 +86,7 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
88
86
 
89
87
  /** 干系人(数电) */
90
88
  static readonly Stakeholder = Stakeholder;
91
-
89
+
92
90
  /** 农产品干系人(数电) */
93
91
  static readonly StakeFarmerholder = StakeFarmerholder;
94
92
 
@@ -97,11 +95,6 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
97
95
 
98
96
  /** 特殊信息-不动产经营租赁服务(数电) */
99
97
  static readonly RealEstateInfo = RealEstateInfo;
100
-
101
- /** 特殊信息-建筑服务(数电) */
102
- static readonly Architecture = Architecture;
103
-
104
- static readonly FreightList = FreightList;
105
98
 
106
99
  /** 货物列表(数电) */
107
100
  static readonly GoodsListDigtal = GoodsListDigtal;
@@ -6,6 +6,4 @@ import InvoiceController from '../../InvoiceController'
6
6
  export default function useToGenerateId(controller: InvoiceController) {
7
7
  const goodsList = controller.useMemo(s => s.goodsListState.goodsList, []);
8
8
  React.useEffect(() => { goodsList.forEach((e, i) => { e.serialNo = i + 1 }) }, [goodsList])
9
- const freightList = controller.useMemo(s => s.freightListState.goodsList, []);
10
- React.useEffect(() => { freightList.forEach((e, i) => { e.sortNumber = i + 1 }) }, [freightList])
11
9
  }
@@ -379,30 +379,31 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
379
379
  // s.value = info.node.taxRate
380
380
  // }
381
381
  // });
382
-
382
+ let node = info.node || info;
383
383
  actions.setFieldState('taxClassificationCode', async s => {
384
- if(info.taxCategoryCode) {
385
- s.value = info.taxCategoryCode
384
+ if(node.taxCategoryCode) {
385
+ s.value = node.taxCategoryCode
386
386
  }
387
387
  });
388
388
 
389
389
  actions.setFieldState('shorthand', async (s) => {
390
- if (info.shorthand){
391
- s.value = info.shorthand
390
+ if (node.shorthand){
391
+ s.value = node.shorthand
392
392
  }
393
393
  });
394
394
  setOpen(false);
395
395
  }, [controller, actions]);
396
396
 
397
397
  const onSelect = React.useCallback((key: any, info: any) => {
398
+ let node = info.node || info;
398
399
  if (controller.state.goodsListState.isUpdateGoodsTaxRateList) {
399
- if (info.node.taxRateList?.length) {
400
- setGoodsTaxRateList(info.node.taxRateList);
400
+ if (node.taxRateList?.length) {
401
+ setGoodsTaxRateList(node.taxRateList);
401
402
  }
402
403
  if (!readOnlyTaxRate) {
403
404
  actions.setFieldState('taxRate', async s => {
404
- if (info.node.taxRateList && info.node.taxRateList?.length === 1) {
405
- s.value = info.node.taxRateList[0]
405
+ if (node.taxRateList && node.taxRateList?.length === 1) {
406
+ s.value = node.taxRateList[0]
406
407
  } else {
407
408
  s.value = undefined
408
409
  }
@@ -453,7 +454,7 @@ const DrawerBody = (props: { defaultValue: IGood }) => {
453
454
  info={info}
454
455
  onSelect={onSelect}
455
456
  onSubmit={onSubmit1}
456
- onCancel={()=> {setOpen(false)}}
457
+ onCancel={()=> {setOpen(false); setInfo({})}}
457
458
  onSearch={onSearch}
458
459
  onLoad={onLoad}
459
460
  />
@@ -121,6 +121,7 @@ const Main = decorator<IGoodsListProps, FormComponentProps & IGoodsListProps>(Fo
121
121
  React.useEffect(() => {
122
122
  controller.pipeline(async s => { s.goodsListState.isSwitchTax = props.isSwitchTax })()
123
123
  }, [controller, props.isSwitchTax])
124
+
124
125
  return (
125
126
  <div className="kts-invoice-operate-goods-list-digtal" onClick={(e) => { e.stopPropagation() }} >
126
127
  <div className="kts-invoice-operate-goods-list-able">
@@ -32,6 +32,7 @@ export default function TableRow(props: any) {
32
32
  }
33
33
  }, [rowKey, goodsMap])
34
34
 
35
+
35
36
  return rowKey === current && current
36
37
  ? (
37
38
  <tr style={{ height: 50, position: 'relative' }} >
@@ -6,5 +6,13 @@
6
6
  width: 340px;
7
7
  position: absolute;
8
8
  right: 30px;
9
+ top: 79px;
10
+ bottom: 50px;
11
+ min-height: 300px;
12
+ .taxdesc{
13
+ height: calc(100vh - 323px);
14
+ min-height: 105px;
15
+ overflow:auto
16
+ }
9
17
  }
10
18
  }
@@ -72,14 +72,22 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
72
72
  if(!values.taxCategoryCode){
73
73
  message.warn('请选择税收分类编码');
74
74
  return;
75
- }
76
- props.onCancel && props.onCancel();
75
+ }
77
76
  onChildrenDrawerClose();
78
77
  props.onSubmit && props.onSubmit(props.info?.key, {...props.info,...values});
79
78
  }).catch(errorInfo => {
80
79
  console.log('errorInfo', errorInfo);
81
80
  });
82
- }
81
+ }
82
+ React.useEffect(() => {
83
+ form.setFieldsValue({
84
+ ...form.getFieldsValue(),
85
+ taxCategoryCode: props?.info?.taxCategoryCode,
86
+ productName: props?.info?.productName,
87
+ shorthand: props?.info?.shorthand,
88
+ taxDesc: props?.info?.taxDesc,
89
+ })
90
+ },[props?.info?.key])
83
91
  return (
84
92
  <Drawer
85
93
  title="商品和服务税收分类编码"
@@ -123,8 +131,8 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
123
131
  </Form.Item>
124
132
  </Form>
125
133
  <Card className="taxrightbox">
126
- <Form form={form} key={props?.info?.key} {...layout} initialValues={props.info} >
127
- <Form.Item rules={[{ required: true, message: '请勾选税收分类编码' }, ]} initialValue={props.info?.taxCategoryCode} name={"taxCategoryCode"} label="编码">
134
+ <Form form={form} {...layout} initialValues={props.info} >
135
+ <Form.Item name={"taxCategoryCode"} label="编码">
128
136
  <FormReadOnly />
129
137
  </Form.Item>
130
138
  <Form.Item name={"productName"} label="货物和劳务名称">
@@ -133,7 +141,7 @@ export default function TaxClassificationModal(props: TaxClassificationProps) {
133
141
  <Form.Item name={"shorthand"} label="简称">
134
142
  <FormReadOnly />
135
143
  </Form.Item>
136
- <Form.Item name={"desc"} label="说明">
144
+ <Form.Item name={"taxDesc"} className="taxdesc" label="说明">
137
145
  <FormReadOnly />
138
146
  </Form.Item>
139
147
  </Form>
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import 'antd/dist/antd.css';
3
- declare const _default: () => JSX.Element;
4
- export default _default;
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import 'antd/dist/antd.css';
3
- declare const _default: () => JSX.Element;
4
- export default _default;
@@ -1,6 +0,0 @@
1
- /** 商品表格补充配置 */
2
- import { ValidationRule } from "kts-components-antd-x3/lib/form";
3
- export default interface IColumnsReplenish {
4
- /** 补充的规则 */
5
- rules: ValidationRule[];
6
- }
@@ -1,23 +0,0 @@
1
- export default interface IGood {
2
- /** 数据索引 */
3
- $index: string;
4
- /** 序号 */
5
- sortNumber?: number;
6
- /** 运输工具种类列表 */
7
- vehicleList?: any[] | null;
8
- /** 运输工具种类 */
9
- vehicle?: string;
10
- type: string;
11
- licensePlate: string;
12
- itemName: string;
13
- /** 运输工具牌号 */
14
- vehicleNo?: string;
15
- /** 起运地 */
16
- origin?: string[];
17
- /** 到达地 */
18
- destination?: string[];
19
- /** 运输货物名称 */
20
- goodName?: string;
21
- /** 地区 */
22
- area?: string[];
23
- }
@@ -1,21 +0,0 @@
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
- }
@@ -1,31 +0,0 @@
1
- import IGood from './IGood';
2
- import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
3
- export default class FreightListState {
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,6 +0,0 @@
1
- import { InvoiceControllerState } from '..';
2
- /**
3
- * 添加的编辑货物运输
4
- */
5
- declare const _default: (state: InvoiceControllerState, options?: any) => Promise<any>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import { InvoiceControllerState } from '..';
2
- /**
3
- * 删除一个货物运输
4
- */
5
- declare const _default: (state: InvoiceControllerState, $index?: string) => Promise<void>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import { InvoiceControllerState } from '..';
2
- /**
3
- * 保存正在编辑的货物
4
- */
5
- declare const _default: (state: InvoiceControllerState) => Promise<void>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import { InvoiceControllerState } from '..';
2
- /**
3
- * 设置当前的编辑货物运输
4
- */
5
- declare const _default: (state: InvoiceControllerState, newEditGood?: any) => Promise<void>;
6
- export default _default;
@@ -1,6 +0,0 @@
1
- import { InvoiceControllerState, IGood } from '..';
2
- /**
3
- * 设置单个货物属性
4
- */
5
- declare const _default: (state: InvoiceControllerState, options?: IGood) => Promise<void>;
6
- export default _default;
@@ -1,15 +0,0 @@
1
- import React from "react";
2
- import './index.less';
3
- export interface RealEstateInfoProps {
4
- /**
5
- * 建筑服务地址数据
6
- */
7
- addressOptions?: any[];
8
- /**
9
- * 建筑服务地址数据字段名
10
- */
11
- fieldNames?: any;
12
- }
13
- /** 特殊信息-建筑服务 */
14
- declare const _default: React.FunctionComponent<RealEstateInfoProps>;
15
- export default _default;
@@ -1,3 +0,0 @@
1
- import { WrappedFormUtils } from 'kts-components-antd-x3/lib/form/Form';
2
- declare const _default: (form: WrappedFormUtils) => any[];
3
- export default _default;
@@ -1,8 +0,0 @@
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;
@@ -1,8 +0,0 @@
1
- /**
2
- * 表格行事件
3
- */
4
- import IGood from '../../../../../InvoiceController/InvoiceControllerState/FreightListState/IGood';
5
- declare const _default: () => {
6
- onClick: (record: IGood) => Promise<void>;
7
- };
8
- export default _default;
@@ -1,8 +0,0 @@
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;
@@ -1,8 +0,0 @@
1
- /**
2
- * 点击组件外部 保存正在编辑的货物
3
- */
4
- import { InvoiceController } from "../../../../../..";
5
- /**
6
- * 点击组件外部 保存正在编辑的货物
7
- */
8
- export default function useWindowClick(controller: InvoiceController): void;
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import './index.less';
3
- export interface IGoodsListProps {
4
- /** 产品最大数 */
5
- goodMax?: number;
6
- addressOptions: any[];
7
- vehicleTypeList: any[];
8
- /**
9
- * 建筑服务地址数据字段名
10
- */
11
- fieldNames?: any;
12
- }
13
- export default class FreightList extends React.Component<IGoodsListProps> {
14
- render(): JSX.Element;
15
- }
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: () => JSX.Element;
3
- export default _default;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- declare const _default: () => {
3
- button: JSX.Element;
4
- menuItem: JSX.Element;
5
- };
6
- export default _default;
@@ -1,6 +0,0 @@
1
- /// <reference types="react" />
2
- /** 清空重填 */
3
- declare const _default: () => {
4
- button: JSX.Element;
5
- };
6
- export default _default;
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import './index.less';
3
- export default function TableRow(props: any): JSX.Element;
@@ -1,4 +0,0 @@
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;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import Invoice from '../../..';
3
- import moment from 'moment';
4
- import 'antd/dist/antd.css';
5
-
6
- export default () => {
7
-
8
- const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
9
-
10
- React.useEffect(() => {
11
- controller.run(async s => {
12
- })
13
- }, [])
14
-
15
- return (
16
- <Invoice
17
- invoiceType='digtal'
18
- controller={controller}
19
- specialInfor={<Invoice.Architecture />}
20
- />
21
- )
22
- };