Commit cdc3479d authored by LeeJiancong's avatar LeeJiancong

1

parent 4bbe31a5
...@@ -22,7 +22,6 @@ ...@@ -22,7 +22,6 @@
# mockStatic # mockStatic
/.idea /.idea
src/services/index.ts
config/base.config.json config/base.config.json
/src/services/index.ts /src/services/index.ts
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: LeeJiancong * @Author: LeeJiancong
* @Date: 2020-07-14 15:07:34 * @Date: 2020-07-14 15:07:34
* @LastEditors: LeeJiancong * @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 React, { Component, ReactNode, useRef, useState, useEffect } from 'react'
import { history } from 'umi' import { history } from 'umi'
...@@ -239,7 +239,9 @@ const OrderList: React.FC<ListProps> = (props) => { ...@@ -239,7 +239,9 @@ const OrderList: React.FC<ListProps> = (props) => {
删除 删除
</Button> </Button>
</Popconfirm> </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) => { ...@@ -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 => { PublicApi.postLogisticsOrderWaitSubmitDelete({ id: id }).then(res => {
ref.current.reload() ref.current.reload()
}) })
} }
const handleSubmit = (id:number) => {
PublicApi.postLogisticsOrderWaitSubmitSubmit({id:id}).then(res => {
ref.current.reload()
})
}
const handleSee = (id: number) => { const handleSee = (id: number) => {
history.push(`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil?id=${id}`) history.push(`/memberCenter/logisticsAbility/logisticsSubmit/orderSubmitDeatil?id=${id}`)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment