Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-platform
Commits
78240494
Commit
78240494
authored
Apr 25, 2022
by
leimo
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20418order' into 'v2-220418'
formatField deliveryVO 优化 See merge request linkseeks-design/pro-platform!544
parents
a1d843f8
b656c4b1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
5 deletions
+12
-5
HandleFormSubmit.ts
src/pages/order/assets/handles/HandleFormSubmit.ts
+11
-5
add.tsx
src/pages/order/deliveryNotice/create/add.tsx
+1
-0
No files found.
src/pages/order/assets/handles/HandleFormSubmit.ts
View file @
78240494
...
...
@@ -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
}
...
...
src/pages/order/deliveryNotice/create/add.tsx
View file @
78240494
...
...
@@ -66,6 +66,7 @@ const DeliveryNoticeManageSRMDetails: React.FC = () => {
let
formFeils
=
service
.
formatField
(
data
)
setTableDataSource
(
data
.
products
)
handleAnchor
(
data
?.
products
?.
length
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment