kts-component-invoice-operate 3.2.239 → 3.2.241
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/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.d.ts +0 -1
- package/dist/Invoice/InvoiceController/InvoiceControllerState/index.d.ts +0 -2
- package/dist/Invoice/InvoiceController/index.d.ts +0 -6
- package/dist/Invoice/index.d.ts +0 -2
- package/dist/index.esm.js +2749 -5772
- package/dist/index.js +2748 -5771
- package/package.json +1 -1
- package/src/Invoice/Invoice-digtal/_test/easiest/index.tsx +8 -40
- package/src/Invoice/Invoice-digtal/_test/freight/index.tsx +17 -23
- package/src/Invoice/Invoice-digtal/_test/realEstateInfo/index.tsx +0 -47
- package/src/Invoice/Invoice-digtal/index.md +6 -7
- package/src/Invoice/InvoiceController/InvoiceControllerForm/index.ts +0 -11
- package/src/Invoice/InvoiceController/InvoiceControllerState/GoodsListState/IGood/index.ts +0 -2
- package/src/Invoice/InvoiceController/InvoiceControllerState/index.ts +0 -3
- package/src/Invoice/InvoiceController/index.ts +0 -21
- package/src/Invoice/index.tsx +0 -3
- package/src/Invoice/tools/useToGenerateId/index.ts +0 -2
- package/src/Invoice/ui/default/GoodsList/hook/useColumns/index.tsx +7 -0
- package/src/Invoice/ui/digtal/RealEstateInfo/index.tsx +37 -246
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.less +1 -1
- package/src/Invoice/ui/digtal/StakeFarmerholder/index.tsx +204 -809
- package/dist/Invoice/Invoice-digtal/_test/pay/index.d.ts +0 -4
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.d.ts +0 -6
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.d.ts +0 -12
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.d.ts +0 -21
- package/dist/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.d.ts +0 -31
- package/dist/Invoice/InvoiceController/fns/addPay.d.ts +0 -6
- package/dist/Invoice/InvoiceController/fns/delPay.d.ts +0 -6
- package/dist/Invoice/InvoiceController/fns/saveEditPay.d.ts +0 -6
- package/dist/Invoice/InvoiceController/fns/setEditPay.d.ts +0 -6
- package/dist/Invoice/InvoiceController/fns/setPay.d.ts +0 -6
- package/dist/Invoice/ui/digtal/PayList/hook/useColumns/index.d.ts +0 -3
- package/dist/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.d.ts +0 -8
- package/dist/Invoice/ui/digtal/PayList/hook/useOnRow/index.d.ts +0 -8
- package/dist/Invoice/ui/digtal/PayList/hook/useRowSelection/index.d.ts +0 -8
- package/dist/Invoice/ui/digtal/PayList/hook/useWindowClick/index.d.ts +0 -5
- package/dist/Invoice/ui/digtal/PayList/index.d.ts +0 -18
- package/dist/Invoice/ui/digtal/PayList/ui/AddRowButton/index.d.ts +0 -3
- package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.d.ts +0 -6
- package/dist/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.d.ts +0 -6
- package/dist/Invoice/ui/digtal/PayList/ui/TableRow/index.d.ts +0 -3
- package/dist/Invoice/ui/digtal/PayList/ui/TableVirtual/index.d.ts +0 -4
- package/src/Invoice/Invoice-digtal/_test/pay/index.tsx +0 -14637
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IColumnsReplenish/index.ts +0 -10
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/IGood/index.ts +0 -35
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/ImportGoods/index.ts +0 -81
- package/src/Invoice/InvoiceController/InvoiceControllerState/PayListState/index.ts +0 -40
- package/src/Invoice/InvoiceController/fns/addPay.ts +0 -11
- package/src/Invoice/InvoiceController/fns/delPay.ts +0 -38
- package/src/Invoice/InvoiceController/fns/saveEditPay.ts +0 -23
- package/src/Invoice/InvoiceController/fns/setEditPay.ts +0 -16
- package/src/Invoice/InvoiceController/fns/setPay.ts +0 -11
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/dist/index.js +0 -616
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/index.tsx +0 -168
- package/src/Invoice/ui/digtal/PayList/hook/useColumns/ui/TitleText/index.tsx +0 -20
- package/src/Invoice/ui/digtal/PayList/hook/useOnRow/index.tsx +0 -37
- package/src/Invoice/ui/digtal/PayList/hook/useRowSelection/index.tsx +0 -120
- package/src/Invoice/ui/digtal/PayList/hook/useWindowClick/index.tsx +0 -19
- package/src/Invoice/ui/digtal/PayList/index.less +0 -73
- package/src/Invoice/ui/digtal/PayList/index.tsx +0 -132
- package/src/Invoice/ui/digtal/PayList/ui/AddRowButton/index.tsx +0 -75
- package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useDelRowButton/index.tsx +0 -50
- package/src/Invoice/ui/digtal/PayList/ui/BulkMenu/hooks/useEmptyRefill/index.tsx +0 -37
- package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.less +0 -29
- package/src/Invoice/ui/digtal/PayList/ui/TableRow/index.tsx +0 -21
- package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.less +0 -39
- package/src/Invoice/ui/digtal/PayList/ui/TableVirtual/index.tsx +0 -109
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 { chain, bignumber } from 'mathjs';
|
|
6
6
|
export default () => {
|
|
7
7
|
const callback = (e: any) => {
|
|
8
8
|
console.log(e.target.checked)
|
|
9
9
|
}
|
|
10
|
-
const onTaxSwitchChange
|
|
10
|
+
const onTaxSwitchChange=(e:any)=>{
|
|
11
11
|
console.log(e)
|
|
12
12
|
}
|
|
13
13
|
console.log(Money.toStringChinese(0))
|
|
@@ -125,14 +125,10 @@ export default () => {
|
|
|
125
125
|
}
|
|
126
126
|
React.useEffect(() => {
|
|
127
127
|
controller.run(async s => {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
'buyerName',
|
|
133
|
-
'buyerTaxId',
|
|
134
|
-
'naturalPersonFlag'
|
|
135
|
-
]));
|
|
128
|
+
s.goodsListState.isRecalculateWhenSwitchTax = false;
|
|
129
|
+
s.goodsListState.isValidateGood=false;
|
|
130
|
+
s.goodsListState.isTaxIncluded = false;
|
|
131
|
+
|
|
136
132
|
// s.stakeholder.enables = ['taxAmount'];
|
|
137
133
|
// s.priceIntegerDigit = 25;
|
|
138
134
|
// s.calculatingDigits = 25;
|
|
@@ -143,46 +139,18 @@ export default () => {
|
|
|
143
139
|
// s.goodsListState.goodsList = data?.detailList?.map(e => sToCi(e)) ?? [];
|
|
144
140
|
})
|
|
145
141
|
}, [controller])
|
|
146
|
-
const onSave = async () => {
|
|
147
|
-
const formValues = await controller.validateFields();
|
|
148
|
-
console.log(formValues)
|
|
149
|
-
}
|
|
150
142
|
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>
|
|
164
143
|
<Invoice
|
|
165
144
|
invoiceType='digtal'
|
|
166
145
|
controller={controller}
|
|
167
146
|
goodsList={<Invoice.GoodsListDigtal onTaxSwitchChange={onTaxSwitchChange} />}
|
|
168
|
-
|
|
147
|
+
stakeholder={<Invoice.Stakeholder leqi={true} invoiceMarkCallback={callback} />}
|
|
169
148
|
invoiceHeader={
|
|
170
149
|
<Invoice.InvoiceHeader
|
|
171
|
-
title='
|
|
172
|
-
/>
|
|
173
|
-
}
|
|
174
|
-
stakeholder={
|
|
175
|
-
<Invoice.StakeFarmerholder
|
|
176
|
-
isExpand={false}
|
|
177
|
-
isVatNormal={true}
|
|
178
|
-
isNaturalPerson={true}
|
|
179
|
-
isShowImportButton={true}
|
|
180
|
-
leqi={true}
|
|
150
|
+
title='自定义'
|
|
181
151
|
/>
|
|
182
152
|
}
|
|
183
153
|
/>
|
|
184
|
-
</>
|
|
185
|
-
|
|
186
154
|
)
|
|
187
155
|
};
|
|
188
156
|
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
|
+
|
|
6
6
|
export default () => {
|
|
7
7
|
|
|
8
8
|
const controller = React.useMemo(() => new Invoice.InvoiceController(), []);
|
|
@@ -14553,29 +14553,23 @@ export default () => {
|
|
|
14553
14553
|
controller.state.freightListState.goodsList = [{ $index: '222', type: 'RAILWAY', itemName: '咖啡机', licensePlate: '渝bkb190', origin: ['北京', '市辖区', '东城区'], destination: ['北京', '市辖区', '东城区'] }]
|
|
14554
14554
|
})
|
|
14555
14555
|
}, [])
|
|
14556
|
-
|
|
14557
|
-
const formValues = await controller.validateFields();
|
|
14558
|
-
console.log(formValues)
|
|
14559
|
-
}
|
|
14556
|
+
|
|
14560
14557
|
return (
|
|
14561
|
-
|
|
14562
|
-
|
|
14563
|
-
|
|
14564
|
-
|
|
14565
|
-
|
|
14566
|
-
|
|
14567
|
-
|
|
14568
|
-
|
|
14569
|
-
|
|
14570
|
-
|
|
14571
|
-
|
|
14572
|
-
|
|
14573
|
-
|
|
14574
|
-
children: 'children'
|
|
14575
|
-
}}
|
|
14576
|
-
/>
|
|
14577
|
-
}
|
|
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
|
+
}}
|
|
14578
14571
|
/>
|
|
14579
|
-
|
|
14572
|
+
}
|
|
14573
|
+
/>
|
|
14580
14574
|
)
|
|
14581
14575
|
};
|
|
@@ -9,53 +9,6 @@ export default () => {
|
|
|
9
9
|
|
|
10
10
|
React.useEffect(() => {
|
|
11
11
|
controller.run(async s => {
|
|
12
|
-
controller.state.goodsListState.goodsList = [{
|
|
13
|
-
"taxRate": 3,
|
|
14
|
-
"lineAttribute": 0,
|
|
15
|
-
"$index": "88a5549b-ede2-488a-962b-26dc1d5e4e3a",
|
|
16
|
-
"serialNo": 1,
|
|
17
|
-
"itemName": "车辆停放服务",
|
|
18
|
-
"lineAmountIncludeTax": 6,
|
|
19
|
-
"taxAmount": 0.17,
|
|
20
|
-
"lineAmountExcludeTax": 5.83,
|
|
21
|
-
cd:3,
|
|
22
|
-
},{
|
|
23
|
-
"taxRate": 3,
|
|
24
|
-
"lineAttribute": 0,
|
|
25
|
-
"$index": "88a5549b-ede2-488a-962b-26dc1d5e4e31",
|
|
26
|
-
"serialNo": 1,
|
|
27
|
-
"itemName": "车辆停放服务",
|
|
28
|
-
"lineAmountIncludeTax": 6,
|
|
29
|
-
"taxAmount": 0.17,
|
|
30
|
-
"lineAmountExcludeTax": 5.83,
|
|
31
|
-
cd:2
|
|
32
|
-
}]
|
|
33
|
-
window.setTimeout(() => {
|
|
34
|
-
controller.formList.get('realEstateInfo')?.setFieldsValue({
|
|
35
|
-
realEstateDataDto: [
|
|
36
|
-
{
|
|
37
|
-
"$index": "88a5549b-ede2-488a-962b-26dc1d5e4e3a",
|
|
38
|
-
realEstateAddress: ['北京市', '北京市', '东城区'],
|
|
39
|
-
realEstateDetailedAddress: '东城区东华门大街',
|
|
40
|
-
leaseTerm: [moment('2023-07-06 10:43'), moment('2023-07-06 10:59')],
|
|
41
|
-
crossCitiesSign: 'Y',
|
|
42
|
-
realEstateNumber: '123456789',
|
|
43
|
-
realEstateUnit: '平方米',
|
|
44
|
-
cphList:['京b22132','渝a12345','渝a1x212'],
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"$index": "88a5549b-ede2-488a-962b-26dc1d5e4e31",
|
|
48
|
-
realEstateAddress: ['北京市', '北京市', '东城区'],
|
|
49
|
-
realEstateDetailedAddress: '东城区东华门大街',
|
|
50
|
-
leaseTerm: [moment('2023-07-06 10:43'), moment('2023-07-06 10:59')],
|
|
51
|
-
crossCitiesSign: 'Y',
|
|
52
|
-
realEstateNumber: '123456789',
|
|
53
|
-
realEstateUnit: '平方米',
|
|
54
|
-
cphList:['渝b22132','陕a12345',],
|
|
55
|
-
}
|
|
56
|
-
]
|
|
57
|
-
})
|
|
58
|
-
}, 1000)
|
|
59
12
|
})
|
|
60
13
|
}, [])
|
|
61
14
|
const onSave = async () => {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
# 数电
|
|
2
2
|
|
|
3
|
-
## 简单用法
|
|
4
|
-
<code src="./_test/
|
|
5
|
-
<!-- <code src="./_test/easiest/index.tsx"></code> -->
|
|
3
|
+
<!-- ## 简单用法
|
|
4
|
+
<code src="./_test/easiest/index.tsx"></code> -->
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
<code src="./_test/realEstateInfo/index.tsx"></code>
|
|
6
|
+
## 不动产经营租赁服务
|
|
7
|
+
<code src="./_test/realEstateInfo/index.tsx"></code>
|
|
9
8
|
|
|
10
9
|
<!-- ## 建筑服务
|
|
11
10
|
<code src="./_test/architecture/index.tsx"></code> -->
|
|
@@ -40,6 +39,6 @@
|
|
|
40
39
|
|
|
41
40
|
|
|
42
41
|
-->
|
|
43
|
-
|
|
44
|
-
## 货物运输服务
|
|
42
|
+
|
|
43
|
+
<!-- ## 货物运输服务
|
|
45
44
|
<code src="./_test/freight/index.tsx"></code> -->
|
|
@@ -58,17 +58,6 @@ export default class InvoiceControllerForm extends GreyReactBox<InvoiceControlle
|
|
|
58
58
|
|
|
59
59
|
_values.set('freightList', this.state.freightListState.goodsList.slice());
|
|
60
60
|
|
|
61
|
-
//支付
|
|
62
|
-
if (this.state.payListState.form) {
|
|
63
|
-
try {
|
|
64
|
-
await this.state.payListState.form?.validateFields()
|
|
65
|
-
} catch (error: any) {
|
|
66
|
-
_errors.set('payList', error.errors);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
_values.set('payList', this.state.payListState.goodsList.slice());
|
|
71
|
-
|
|
72
61
|
// 金额(含税)
|
|
73
62
|
_values.set('lineAmountIncludeTax', (() => {
|
|
74
63
|
let sum = chain(bignumber(0));
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import GoodsListState from './GoodsListState';
|
|
2
2
|
import FreightListState from './FreightListState';
|
|
3
|
-
import PayListState from './PayListState';
|
|
4
3
|
import BuyerState from './BuyerState';
|
|
5
4
|
import Stakeholder from './Stakeholder';
|
|
6
5
|
import { IInvoiceTypeModalProps } from '../../../InvoiceTypeModal';
|
|
@@ -69,8 +68,6 @@ export default class InvoiceControllerState {
|
|
|
69
68
|
* 货物运输列表
|
|
70
69
|
*/
|
|
71
70
|
freightListState = new FreightListState();
|
|
72
|
-
|
|
73
|
-
payListState=new PayListState();
|
|
74
71
|
|
|
75
72
|
addGoodsCheck?: any;
|
|
76
73
|
}
|
|
@@ -5,27 +5,16 @@ import { IGetGoodsListOption } from './InvoiceControllerState/GoodsListState/Imp
|
|
|
5
5
|
// import updateInvoiceNo from './fns/updateInvoiceNo';
|
|
6
6
|
import setEditGood from './fns/setEditGood';
|
|
7
7
|
import setEditFreight from './fns/setEditFreight';
|
|
8
|
-
import setEditPay from './fns/setEditPay';
|
|
9
|
-
|
|
10
8
|
import setGoods from './fns/setGoods';
|
|
11
9
|
import setFreight from './fns/setFreight';
|
|
12
|
-
import setPay from './fns/setPay';
|
|
13
|
-
|
|
14
10
|
import delGood from './fns/delGood';
|
|
15
11
|
import delFreight from './fns/delFreight';
|
|
16
|
-
import delPay from './fns/delPay';
|
|
17
|
-
|
|
18
12
|
import addGoodDiscount from './fns/addGoodDiscount';
|
|
19
13
|
import addGoodDiscountV2 from './fns/addGoodDiscountV2';
|
|
20
|
-
|
|
21
14
|
import addGood from './fns/addGood';
|
|
22
15
|
import addFreight from './fns/addFreight';
|
|
23
|
-
import addPay from './fns/addPay';
|
|
24
|
-
|
|
25
16
|
import saveEditGood from './fns/saveEditGood';
|
|
26
17
|
import saveEditFreight from './fns/saveEditFreight';
|
|
27
|
-
import saveEditPay from './fns/saveEditPay';
|
|
28
|
-
|
|
29
18
|
import getGoodsSearch from './fns/getGoodsSearch';
|
|
30
19
|
import mergeDetails from './fns/mergeDetails';
|
|
31
20
|
import mergeDiscount from './fns/mergeDiscount';
|
|
@@ -36,7 +25,6 @@ export { default as InvoiceControllerState } from './InvoiceControllerState';
|
|
|
36
25
|
export { default as IGood } from './InvoiceControllerState/GoodsListState/IGood';
|
|
37
26
|
export { default as LineAttributeType } from './InvoiceControllerState/GoodsListState/LineAttributeType';
|
|
38
27
|
export { default as IGood2 } from './InvoiceControllerState/FreightListState/IGood';
|
|
39
|
-
export { default as IGood3 } from './InvoiceControllerState/PayListState/IGood';
|
|
40
28
|
export default class InvoiceController extends InvoiceControllerForm {
|
|
41
29
|
constructor(state = new InvoiceControllerState()) {
|
|
42
30
|
super(state);
|
|
@@ -60,12 +48,8 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
60
48
|
/** 设置货物运输属性 */
|
|
61
49
|
setFreight = this.pipeline(setFreight);
|
|
62
50
|
|
|
63
|
-
setPay = this.pipeline(setPay);
|
|
64
|
-
|
|
65
51
|
setEditFreight = this.pipeline(setEditFreight);
|
|
66
52
|
|
|
67
|
-
setEditPay = this.pipeline(setEditPay);
|
|
68
|
-
|
|
69
53
|
/** 设置当前的编辑货物 */
|
|
70
54
|
setEditGood = this.pipeline(setEditGood);
|
|
71
55
|
|
|
@@ -75,23 +59,18 @@ export default class InvoiceController extends InvoiceControllerForm {
|
|
|
75
59
|
/** 保存正在编辑的货物运输 */
|
|
76
60
|
saveEditFreight = this.pipeline<any>(saveEditFreight);
|
|
77
61
|
|
|
78
|
-
saveEditPay=this.pipeline<any>(saveEditPay);
|
|
79
62
|
/** 删除一个货物 */
|
|
80
63
|
delGood = this.pipeline(delGood);
|
|
81
64
|
|
|
82
65
|
/** 删除一个货物运输 */
|
|
83
66
|
delFreight = this.pipeline(delFreight);
|
|
84
67
|
|
|
85
|
-
delPay = this.pipeline(delPay);
|
|
86
|
-
|
|
87
68
|
/** 添加一个货物 */
|
|
88
69
|
addGood = this.pipeline(addGood);
|
|
89
70
|
|
|
90
71
|
/** 添加一个货物运输 */
|
|
91
72
|
addFreight = this.pipeline(addFreight);
|
|
92
73
|
|
|
93
|
-
addPay = this.pipeline(addPay);
|
|
94
|
-
|
|
95
74
|
/** 全单合并明细 */
|
|
96
75
|
mergeDetails = this.pipeline(mergeDetails);
|
|
97
76
|
|
package/src/Invoice/index.tsx
CHANGED
|
@@ -21,7 +21,6 @@ import GoodsListDigtal from './ui/digtal/GoodsList';
|
|
|
21
21
|
import RealEstateInfo from './ui/digtal/RealEstateInfo';
|
|
22
22
|
import Architecture from './ui/digtal/Architecture';
|
|
23
23
|
import FreightList from './ui/digtal/FreightList';
|
|
24
|
-
import PayList from './ui/digtal/PayList';
|
|
25
24
|
|
|
26
25
|
import ImportBuyerDrawer from './ui/default/ImportBuyerDrawer';
|
|
27
26
|
import ImportGoodsDrawer from './ui/default/ImportGoodsDrawer';
|
|
@@ -111,8 +110,6 @@ export default class Invoice extends React.PureComponent<IInvoiceProps> {
|
|
|
111
110
|
|
|
112
111
|
static readonly FreightList = FreightList;
|
|
113
112
|
|
|
114
|
-
static readonly PayList = PayList;
|
|
115
|
-
|
|
116
113
|
/** 货物列表(数电) */
|
|
117
114
|
static readonly GoodsListDigtal = GoodsListDigtal;
|
|
118
115
|
|
|
@@ -8,6 +8,4 @@ export default function useToGenerateId(controller: InvoiceController) {
|
|
|
8
8
|
React.useEffect(() => { goodsList.forEach((e, i) => { e.serialNo = i + 1 }) }, [goodsList])
|
|
9
9
|
const freightList = controller.useMemo(s => s.freightListState.goodsList, []);
|
|
10
10
|
React.useEffect(() => { freightList.forEach((e, i) => { e.sortNumber = i + 1 }) }, [freightList])
|
|
11
|
-
const payList = controller.useMemo(s => s.payListState.goodsList, []);
|
|
12
|
-
React.useEffect(() => { payList.forEach((e, i) => { e.sortNumber = i + 1 }) }, [payList])
|
|
13
11
|
}
|