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
黄庭坚
jinfa-platform
Commits
4cd9f946
Commit
4cd9f946
authored
Jul 21, 2021
by
GuanHua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 商城询价单下单获取订单信息方式修改
parent
666412d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
3 deletions
+20
-3
addForm.tsx
...ion/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
+20
-3
No files found.
src/pages/transaction/dealAbility/productInquiry/waitAddInquiry/addForm.tsx
View file @
4cd9f946
import
React
,
{
useState
,
Fragment
,
useEffect
}
from
"react"
;
import
{
Form
,
Button
}
from
"antd"
;
import
{
Form
,
Button
,
message
}
from
"antd"
;
import
{
history
,
Prompt
}
from
'umi'
;
import
moment
from
'moment'
;
import
AddedLayout
from
"@/pages/transaction/components/detailLayout"
;
...
...
@@ -108,10 +108,23 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
})
}
useEffect
(()
=>
{
const
getCacheOrderInfoByKey
=
(
key
:
string
)
=>
{
return
new
Promise
((
resolve
)
=>
{
PublicApi
.
getOrderCacheGet
({
key
}).
then
((
res
)
=>
{
message
.
destroy
()
if
(
res
.
data
)
{
resolve
(
JSON
.
parse
(
res
.
data
))
}
else
{
resolve
(
undefined
)
}
})
})
}
const
init
=
async
()
=>
{
if
(
isEdit
&&
spam
)
{
// const data: any = JSON.parse(sessionStorage.getItem(spam));
const
data
:
any
=
getCookie
(
spam
)
const
data
:
any
=
await
getCacheOrderInfoByKey
(
spam
)
if
(
!
data
)
return
const
inquiryListProductRequests
:
any
[]
=
[];
inquiryListProductRequests
.
push
({
...
...
@@ -163,6 +176,10 @@ const AddedFormLayout: React.FC<AddedFormLayoutProps> = (props: any) => {
})
})
}
}
useEffect
(()
=>
{
init
()
},
[
isEdit
])
return
(
...
...
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