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.
- package/dist/Invoice/Invoice-digtal/_test/pay/index.d.ts +4 -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 +8044 -5555
- package/dist/index.js +8044 -5555
- 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/index.md +7 -6
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +11 -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 +2 -2
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +1 -1
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +523 -202
package/package.json
CHANGED
|
@@ -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 {
|
|
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
|
-
|
|
14559
|
-
|
|
14560
|
-
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
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
|
};
|