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
cdc3479d
Commit
cdc3479d
authored
Aug 01, 2020
by
LeeJiancong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4bbe31a5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
4 deletions
+11
-4
.gitignore
.gitignore
+0
-1
toOrderSumitList.tsx
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
+11
-3
No files found.
.gitignore
View file @
cdc3479d
...
...
@@ -22,7 +22,6 @@
# mockStatic
/.idea
src/services/index.ts
config/base.config.json
/src/services/index.ts
src/pages/logistics/logisticsSubmit/toOrderSumitList.tsx
View file @
cdc3479d
...
...
@@ -2,7 +2,7 @@
* @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong
* @LastEditTime: 2020-07-31
19:35:54
* @LastEditTime: 2020-07-31
20:20:19
*/
import
React
,
{
Component
,
ReactNode
,
useRef
,
useState
,
useEffect
}
from
'react'
import
{
history
}
from
'umi'
...
...
@@ -239,7 +239,9 @@ const OrderList: React.FC<ListProps> = (props) => {
删除
</
Button
>
</
Popconfirm
>
<
Button
type=
'link'
>
提交
</
Button
>
<
Popconfirm
title=
"确定要提交吗?"
okText=
"是"
cancelText=
"否"
onConfirm=
{
()
=>
handleSubmit
(
record
.
id
)
}
>
<
Button
type=
'link'
>
提交
</
Button
>
</
Popconfirm
>
</>
}
...
...
@@ -286,11 +288,17 @@ const OrderList: React.FC<ListProps> = (props) => {
})
}
const
handleDelete
=
(
id
:
number
|
string
)
=>
{
const
handleDelete
=
(
id
:
number
)
=>
{
PublicApi
.
postLogisticsOrderWaitSubmitDelete
({
id
:
id
}).
then
(
res
=>
{
ref
.
current
.
reload
()
})
}
const
handleSubmit
=
(
id
:
number
)
=>
{
PublicApi
.
postLogisticsOrderWaitSubmitSubmit
({
id
:
id
}).
then
(
res
=>
{
ref
.
current
.
reload
()
})
}
const
handleSee
=
(
id
:
number
)
=>
{
history
.
push
(
`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil?id=
${
id
}
`
)
}
...
...
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