kts-component-invoice-operate 3.2.226 → 3.2.228

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 (63) hide show
  1. package/dist/Invoice/Invoice-digtal/_test/pay/index.d.ts +4 -0
  2. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.d.ts +6 -0
  3. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.d.ts +12 -0
  4. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.d.ts +21 -0
  5. package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.d.ts +31 -0
  6. package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +2 -0
  7. package/dist/Invoice/InvoiceController/fns/addPay.d.ts +6 -0
  8. package/dist/Invoice/InvoiceController/fns/delPay.d.ts +6 -0
  9. package/dist/Invoice/InvoiceController/fns/saveEditPay.d.ts +6 -0
  10. package/dist/Invoice/InvoiceController/fns/setEditPay.d.ts +6 -0
  11. package/dist/Invoice/InvoiceController/fns/setPay.d.ts +6 -0
  12. package/dist/Invoice/InvoiceController/index.d.ts +6 -0
  13. package/dist/Invoice/index.d.ts +2 -0
  14. package/dist/Invoice/ui/digtal/PayList/hook/useColumns/index.d.ts +3 -0
  15. package/dist/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.d.ts +8 -0
  16. package/dist/Invoice/ui/digtal/PayList/hook/useOnRow/index.d.ts +8 -0
  17. package/dist/Invoice/ui/digtal/PayList/hook/useRowSelection/index.d.ts +8 -0
  18. package/dist/Invoice/ui/digtal/PayList/hook/useWindowClick/index.d.ts +5 -0
  19. package/dist/Invoice/ui/digtal/PayList/index.d.ts +18 -0
  20. package/dist/Invoice/ui/digtal/PayList/ui/AddRowButton/index.d.ts +3 -0
  21. package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +6 -0
  22. package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +6 -0
  23. package/dist/Invoice/ui/digtal/PayList/ui/TableRow/index.d.ts +3 -0
  24. package/dist/Invoice/ui/digtal/PayList/ui/TableVirtual/index.d.ts +4 -0
  25. package/dist/index.esm.js +8044 -5555
  26. package/dist/index.js +8044 -5555
  27. package/package.json +1 -1
  28. package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +40 -8
  29. package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +23 -17
  30. package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +14637 -0
  31. package/src/Invoice/Invoice-digtal/index.md +7 -6
  32. package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -0
  33. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.ts +10 -0
  34. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.ts +35 -0
  35. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.ts +81 -0
  36. package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.ts +40 -0
  37. package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +3 -0
  38. package/src/Invoice/InvoiceController/fns/addPay.ts +11 -0
  39. package/src/Invoice/InvoiceController/fns/delPay.ts +38 -0
  40. package/src/Invoice/InvoiceController/fns/saveEditPay.ts +23 -0
  41. package/src/Invoice/InvoiceController/fns/setEditPay.ts +16 -0
  42. package/src/Invoice/InvoiceController/fns/setPay.ts +11 -0
  43. package/src/Invoice/InvoiceController/index.ts +21 -0
  44. package/src/Invoice/index.tsx +3 -0
  45. package/src/Invoice/tools/useToGenerateId/index.ts +2 -0
  46. package/src/Invoice/ui/digtal/PayList/hook/useColumns/dist/index.js +616 -0
  47. package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +168 -0
  48. package/src/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.tsx +20 -0
  49. package/src/Invoice/ui/digtal/PayList/hook/useOnRow/index.tsx +37 -0
  50. package/src/Invoice/ui/digtal/PayList/hook/useRowSelection/index.tsx +120 -0
  51. package/src/Invoice/ui/digtal/PayList/hook/useWindowClick/index.tsx +19 -0
  52. package/src/Invoice/ui/digtal/PayList/index.less +73 -0
  53. package/src/Invoice/ui/digtal/PayList/index.tsx +132 -0
  54. package/src/Invoice/ui/digtal/PayList/ui/AddRowButton/index.tsx +75 -0
  55. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +50 -0
  56. package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +37 -0
  57. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.less +29 -0
  58. package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.tsx +21 -0
  59. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.less +39 -0
  60. package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.tsx +109 -0
  61. package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +2 -2
  62. package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +1 -1
  63. package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +523 -202
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.226",
3
+ "version": "3.2.228",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -2,12 +2,12 @@ import React from 'react';
2
2
  import Invoice from '../../..';
3
3
  import 'antd/dist/antd.css';
4
4
  import { Money } from '../../../tools/utils';
5
- import { chain, bignumber } from 'mathjs';
5
+ import { Button } from 'kts-components-antd-x3';
6
6
  export default () => {
7
7
  const callback = (e: any) => {
8
8
  console.log(e.target.checked)
9
9
  }
10
- const onTaxSwitchChange=(e:any)=>{
10
+ const onTaxSwitchChange = (e: any) => {
11
11
  console.log(e)
12
12
  }
13
13
  console.log(Money.toStringChinese(0))
@@ -125,10 +125,14 @@ export default () => {
125
125
  }
126
126
  React.useEffect(() => {
127
127
  controller.run(async s => {
128
- s.goodsListState.isRecalculateWhenSwitchTax = false;
129
- s.goodsListState.isValidateGood=false;
130
- s.goodsListState.isTaxIncluded = false;
131
-
128
+ // s.goodsListState.isRecalculateWhenSwitchTax = false;
129
+ // s.goodsListState.isValidateGood = false;
130
+ // s.goodsListState.isTaxIncluded = false;
131
+ s.stakeholder.disableds = Array.from(new Set([
132
+ 'buyerName',
133
+ 'buyerTaxId',
134
+ 'naturalPersonFlag'
135
+ ]));
132
136
  // s.stakeholder.enables = ['taxAmount'];
133
137
  // s.priceIntegerDigit = 25;
134
138
  // s.calculatingDigits = 25;
@@ -139,18 +143,46 @@ export default () => {
139
143
  // s.goodsListState.goodsList = data?.detailList?.map(e => sToCi(e)) ?? [];
140
144
  })
141
145
  }, [controller])
146
+ const onSave = async () => {
147
+ const formValues = await controller.validateFields();
148
+ console.log(formValues)
149
+ }
142
150
  return (
151
+ // <Invoice
152
+ // invoiceType='digtal'
153
+ // controller={controller}
154
+ // goodsList={<Invoice.GoodsListDigtal onTaxSwitchChange={onTaxSwitchChange} />}
155
+ // stakeholder={<Invoice.Stakeholder leqi={true} invoiceMarkCallback={callback} />}
156
+ // invoiceHeader={
157
+ // <Invoice.InvoiceHeader
158
+ // title='自定义'
159
+ // />
160
+ // }
161
+ // />
162
+ <>
163
+ <Button onClick={onSave}>输出表单内容</Button>
143
164
  <Invoice
144
165
  invoiceType='digtal'
145
166
  controller={controller}
146
167
  goodsList={<Invoice.GoodsListDigtal onTaxSwitchChange={onTaxSwitchChange} />}
147
- stakeholder={<Invoice.Stakeholder leqi={true} invoiceMarkCallback={callback} />}
168
+ // stakeholder={<Invoice.Stakeholder leqi={true} invoiceMarkCallback={callback} />}
148
169
  invoiceHeader={
149
170
  <Invoice.InvoiceHeader
150
- title='自定义'
171
+ title='农产品'
172
+ />
173
+ }
174
+ stakeholder={
175
+ <Invoice.StakeFarmerholder
176
+ isExpand={false}
177
+ isVatNormal={true}
178
+ isNaturalPerson={true}
179
+ isShowImportButton={true}
180
+ leqi={true}
151
181
  />
152
182
  }
153
183
  />
184
+ </>
185
+
154
186
  )
155
187
  };
156
188
  function sToCi(data: any) {
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import Invoice from '../../..';
3
3
  import moment from 'moment';
4
4
  import 'antd/dist/antd.css';
5
-
5
+ import { Button } from 'kts-components-antd-x3';
6
6
  export default () => {
7
7
 
8
8
  const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
@@ -14553,23 +14553,29 @@ export default () => {
14553
14553
  controller.state.freightListState.goodsList = [{ $index: '222', type: 'RAILWAY', itemName: '咖啡机', licensePlate: '渝bkb190', origin: ['北京', '市辖区', '东城区'], destination: ['北京', '市辖区', '东城区'] }]
14554
14554
  })
14555
14555
  }, [])
14556
-
14556
+ const onSave = async () => {
14557
+ const formValues = await controller.validateFields();
14558
+ console.log(formValues)
14559
+ }
14557
14560
  return (
14558
- <Invoice
14559
- invoiceType='digtal'
14560
- controller={controller}
14561
- specialInfor={<Invoice.FreightList
14562
- vehicleTypeList={[
14563
- { label: '铁路运输', value: 'RAILWAY' }
14564
- ]}
14565
- addressOptions={area}
14566
- fieldNames={{
14567
- label: 'name',
14568
- value: 'name',
14569
- children: 'children'
14570
- }}
14561
+ <>
14562
+ <Button onClick={onSave}>输出表单内容</Button>
14563
+ <Invoice
14564
+ invoiceType='digtal'
14565
+ controller={controller}
14566
+ specialInfor={<Invoice.FreightList
14567
+ vehicleTypeList={[
14568
+ { label: '铁路运输', value: 'RAILWAY' }
14569
+ ]}
14570
+ addressOptions={area}
14571
+ fieldNames={{
14572
+ label: 'name',
14573
+ value: 'name',
14574
+ children: 'children'
14575
+ }}
14576
+ />
14577
+ }
14571
14578
  />
14572
- }
14573
- />
14579
+ </>
14574
14580
  )
14575
14581
  };