Commit 78240494 authored by leimo's avatar leimo

Merge branch '20418order' into 'v2-220418'

formatField deliveryVO 优化 See merge request linkseeks-design/pro-platform!544
parents a1d843f8 b656c4b1
......@@ -97,11 +97,6 @@ export class HandleFormSubmit {
moment().startOf('day'),
moment().endOf('day')
],
deliveryVO: {
...data?.deliverVO,
shipperName: data?.deliverVO?.consignee,
fullAddress: data?.deliverVO?.provinceName ?? '' + data?.deliverVO?.cityName ?? '' + data?.deliverVO?.districtName ?? '' + data?.deliverVO?.streetName ?? ''
},
receiveVO: {
...data?.receiverBO,
receiverName: data?.receiverBO?.consignee,
......@@ -126,6 +121,17 @@ export class HandleFormSubmit {
deliveryNo: data?.deliveryNo
}
if (data?.deliveryVO) {
formField = Object.assign(
formField, {
deliveryVO: {
...data?.deliverVO,
shipperName: data?.deliverVO?.consignee ?? '',
fullAddress: `${data?.deliverVO?.provinceName ?? ''}${data?.deliverVO?.cityName ?? ''}${data?.deliverVO?.districtName ?? ''}${data?.deliverVO?.streetName ?? ''}`
},
})
}
return formField
}
......
......@@ -66,6 +66,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
let formFeils = service.formatField(data)
setTableDataSource(data.products)
handleAnchor(data?.products?.length)
......
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