Commit 66628f55 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

修改提交商品询价不能拒绝的问题

parent 44bd470c
import React, { useState, useEffect } from 'react';
import style from './index.less';
import { history } from 'umi';
import { Button, Tabs, Steps, Table } from 'antd';
import { Button, Tabs, Steps, Table, Popconfirm } from 'antd';
import { ColumnType } from 'antd/lib/table/interface';
import { CheckSquareOutlined, LinkOutlined } from '@ant-design/icons'
import { PageHeaderWrapper } from '@ant-design/pro-layout';
......@@ -240,6 +240,18 @@ const Details: React.FC<parmas> = (props) => {
})
}, [])
const handleSubmit = () => {
const value = {
id,
state: 1,
}
PublicApi.postOrderInquiryListSubmit(value).then(res => {
if(res.code === 1000) {
history.goBack()
}
})
}
return (
<PageHeaderWrapper
className={style.header}
......@@ -267,9 +279,17 @@ const Details: React.FC<parmas> = (props) => {
}
{
(last === 'details' && Number(page_type) === 6 && data.interiorState === 1) &&
<Button className={style['saveBtn']} onClick={() => setvisible(true)}>
<CheckSquareOutlined />提交
<Popconfirm
title="确定要提交吗?"
okText="是"
cancelText="否"
onConfirm={handleSubmit}
>
<Button className={style['saveBtn']}>
<CheckSquareOutlined />提交
</Button>
</Popconfirm>
}
</>
}
......
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