Commit 28f5dc53 authored by GuanHua's avatar GuanHua
parents 4c1f583f 0ecdc5fe
......@@ -136,6 +136,8 @@ const AddBills: React.FC<{}> = (props: any) => {
...rest
} = res.data;
console.log('res', res.data.relevanceInvoicesId)
const details = invoicesDetailsList ? invoicesDetailsList.map(item => ({
...item,
product: item.productId,
......@@ -203,13 +205,7 @@ const AddBills: React.FC<{}> = (props: any) => {
deliveryType,
deliveryAddresId,
orderNo,
province,
city,
area,
addres,
addresName,
tel,
isDefault,
deliveryAddressInfo,
} = res.data;
addSchemaAction.setFieldState(
'*(invoicesTypeId,orderNo)',
......@@ -228,11 +224,11 @@ const AddBills: React.FC<{}> = (props: any) => {
id: +relevanceInvoicesId,
deliveryAddresId: +deliveryAddresId,
supplyMembersName,
fullAddress: `${province || ''}${city || ''}${area || ''}${addres || ''}`,
receiverName: addresName || '',
phone: tel || '',
deliveryType,
isDefault,
fullAddress: deliveryAddressInfo.fullAddress || '',
receiverName: deliveryAddressInfo.receiverName || '',
phone: deliveryAddressInfo.phone || '',
isDefault: deliveryAddressInfo.isDefault,
deliveryType: deliveryAddressInfo.deliveryType,
}
] :
[]
......@@ -258,13 +254,7 @@ const AddBills: React.FC<{}> = (props: any) => {
deliveryType,
deliveryAddresId,
orderNo,
province,
city,
area,
addres,
addresName,
tel,
isDefault,
deliveryAddressInfo,
} = res.data;
addSchemaAction.setFieldState(
'*(invoicesTypeId,orderNo)',
......@@ -283,11 +273,11 @@ const AddBills: React.FC<{}> = (props: any) => {
id: +relevanceInvoicesId,
deliveryAddresId: +deliveryAddresId,
supplyMembersName,
fullAddress: `${province || ''}${city || ''}${area || ''}${addres || ''}`,
receiverName: addresName || '',
phone: tel || '',
deliveryType,
isDefault,
fullAddress: deliveryAddressInfo.fullAddress || '',
receiverName: deliveryAddressInfo.receiverName || '',
phone: deliveryAddressInfo.phone || '',
isDefault: deliveryAddressInfo.isDefault,
deliveryType: deliveryAddressInfo.deliveryType,
}
] :
[]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment