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
d396db34
Commit
d396db34
authored
Dec 29, 2022
by
shenshaokai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'jinfa-20221102' into 'jinfa-20221102'
fix: bugId=37048 兼容生产环境目的港数据问题 See merge request project/jinfa-platform!495
parents
80b6914f
bd59e71f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
FreightInfo.tsx
src/pages/contract/manage/add/components/FreightInfo.tsx
+3
-3
No files found.
src/pages/contract/manage/add/components/FreightInfo.tsx
View file @
d396db34
import
{
useState
,
useEffect
,
forwardRef
}
from
'react'
;
import
{
Input
,
Select
,
DatePicker
,
Form
}
from
'antd'
import
{
Input
,
Select
,
DatePicker
,
Form
,
message
}
from
'antd'
import
style
from
'../../../constants/styles.less'
import
{
getContractSelectArrivalAreaList
,
getContractManageGetContractNo
,
getContractSelectArrivalPortTransitList
}
from
'@/services/ContractV2Api'
import
{
getIntl
}
from
'umi'
;
...
...
@@ -97,6 +97,7 @@ const FreightInfo = (props: any) => {
attrValueForm
.
validateFields
().
then
(
res
=>
{
const
arrivalArea
=
res
.
arrivalArea
.
split
(
'_+_'
)
const
arrivalPort
=
res
.
arrivalPort
.
split
(
'_+_'
)
const
destinationName
=
res
.
destination
?
((
portList
||
[]).
find
(
item
=>
item
.
code
==
res
.
destination
)?.
message
||
''
)
:
''
resolve
({
state
:
true
,
name
:
'freight'
,
...
...
@@ -105,6 +106,7 @@ const FreightInfo = (props: any) => {
arrivalAreaName
:
arrivalArea
[
1
],
arrivalPort
:
arrivalPort
[
0
],
arrivalPortName
:
arrivalPort
[
1
],
destinationName
:
destinationName
}),
})
}).
catch
(
error
=>
{
...
...
@@ -116,8 +118,6 @@ const FreightInfo = (props: any) => {
}
})
console
.
log
(
"contractFreightInformationVO--->"
,
contractFreightInformationVO
)
return
(
<
div
className=
{
style
.
revise_info
}
>
<
Form
...
...
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