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
f6456f8f
Commit
f6456f8f
authored
Sep 24, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'处理报错'
parent
a460f054
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
9 deletions
+11
-9
pageOrderLog.tsx
src/pages/logistics/components/pageOrderLog.tsx
+11
-9
No files found.
src/pages/logistics/components/pageOrderLog.tsx
View file @
f6456f8f
...
...
@@ -3,7 +3,7 @@
* @Date: 2020-09-23 10:24:42
* @LastEditors: LeeJiancong
* @Copyright: 1549414730@qq.com
* @LastEditTime: 2020-09-24 14:
18:30
* @LastEditTime: 2020-09-24 14:
21:32
* 外部流转记录
*/
import
React
,
{
Component
,
useRef
,
ReactNode
}
from
'react'
;
...
...
@@ -70,18 +70,20 @@ export interface Params{
const
Log
:
React
.
FC
<
Params
>
=
(
props
)
=>
{
const
ref
=
useRef
<
any
>
({})
const
fetchData
=
(
params
:
any
)
=>
{
if
(
!
props
.
id
){
return
[]
}
//待提交新增物流单
if
(
props
.
type
===
'Submit'
){
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getLogisticsOrderWaitSubmitPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
resolve
(
res
.
data
)
}
})
if
(
!
props
.
id
){
resolve
([])
}
else
{
PublicApi
.
getLogisticsOrderWaitSubmitPageOrderLog
({...
params
,
orderId
:
props
.
id
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
){
resolve
(
res
.
data
)
}
})
}
});
}
//物流单提交-物流单查询
...
...
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