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
faae3a75
Commit
faae3a75
authored
Nov 09, 2020
by
前端-钟卫鹏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
parent
ecd67f1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
useOrderDetail.tsx
...ages/transaction/_public/order/effects/useOrderDetail.tsx
+6
-3
No files found.
src/pages/transaction/_public/order/effects/useOrderDetail.tsx
View file @
faae3a75
...
@@ -7,6 +7,7 @@ import { GlobalConfig } from '@/global/config'
...
@@ -7,6 +7,7 @@ import { GlobalConfig } from '@/global/config'
import
{
orderTypeLabel
}
from
'../constant'
import
{
orderTypeLabel
}
from
'../constant'
import
{
formatTimeString
}
from
'@/utils'
import
{
formatTimeString
}
from
'@/utils'
import
StatusColors
from
'../../../components/StatusColors'
import
StatusColors
from
'../../../components/StatusColors'
import
{
message
}
from
'antd'
interface
OrderDetailHookProps
{
interface
OrderDetailHookProps
{
// 采购、销售
// 采购、销售
...
@@ -42,9 +43,11 @@ export const useOrderDetail = (options: OrderDetailHookProps) => {
...
@@ -42,9 +43,11 @@ export const useOrderDetail = (options: OrderDetailHookProps) => {
const
reloadFormData
=
useCallback
(()
=>
{
const
reloadFormData
=
useCallback
(()
=>
{
if
(
id
)
{
if
(
id
)
{
const
fn
=
type
===
'purchaseOrder'
?
PublicApi
.
getOrderProcurementOrderDetails
:
PublicApi
.
getOrderPurchaseOrderDetails
const
fn
=
type
===
'purchaseOrder'
?
PublicApi
.
getOrderProcurementOrderDetails
:
PublicApi
.
getOrderPurchaseOrderDetails
fn
({
id
}).
then
(({
data
,
code
})
=>
{
fn
({
id
},
{
ctlType
:
"none"
}).
then
(
res
=>
{
if
(
code
===
1000
)
{
if
(
res
.
code
===
1000
)
{
setFormData
(
data
)
setFormData
(
res
.
data
)
}
else
{
message
.
error
(
res
.
message
)
}
}
})
})
}
}
...
...
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