Commit 2cfa3314 authored by 前端-黄佳鑫's avatar 前端-黄佳鑫

🐞 fix: 修改确认采购报价BUG

parent 8fe78b9a
......@@ -132,7 +132,7 @@ const BasicInfo: React.FC<IProps> = (props: any) => {
<Form.Item name='telPrefix' rules={[{ required: true, message: '请选择区号' }]}>
<Select placeholder="+86">
{telCode.map((item: any) => (
<Option value={item}>{item}</Option>
<Option key={item} value={item}>{item}</Option>
))}
</Select>
</Form.Item>
......
......@@ -91,7 +91,7 @@ const AuditOffterOne = () => {
<>
<Button
type='link'
onClick={() => history.push(`/memberCenter/procurementAbility/offter/auditOffterOne/detail?id=${record.id}&number=${record.quotedPriceNo}`)}
onClick={() => history.push(`/memberCenter/procurementAbility/offter/auditOffterOne/detail?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`)}
>
审核
</Button>
......
......@@ -92,7 +92,7 @@ const AuditOffterTwo = () => {
<>
<Button
type='link'
onClick={() => history.push(`/memberCenter/procurementAbility/offter/auditOffterTwo/detail?id=${record.id}&number=${record.quotedPriceNo}`)}
onClick={() => history.push(`/memberCenter/procurementAbility/offter/auditOffterTwo/detail?id=${record.id}&number=${record.quotedPriceNo}&turn=${record.turn}`)}
>
审核
</Button>
......
......@@ -39,8 +39,8 @@ const Inquiry = () => {
render: (text: any, record: any) => format(text)
}, {
title: '报价截止时间',
key: 'quotationAsTime',
dataIndex: 'quotationAsTime',
key: 'offerEndTime',
dataIndex: 'offerEndTime',
render: (text: any, record: any) => format(text)
}, {
title: '单据时间',
......
......@@ -33,7 +33,7 @@ interface Iprops {
currentRef: any,
fetchdata: { [key: string]: any },
onBadge?: Function,
badgeIndex? : number
badgeIndex?: number
}
const { Link } = Typography
......@@ -54,7 +54,7 @@ const Demand: React.FC<Iprops> = (props: any) => {
const [menberVisible, setMenberVidible] = useState<boolean>(false);
const [rowCtl, setRowCtl] = useState<any>([])
const handleGetSwitch = (e: any, index: number) => {
const handleGetSwitch = (e: any, index: number) => {
const state = e ? 1 : 0;
const params = [...rowCtl];
params[index].state = state;
......@@ -93,14 +93,27 @@ const Demand: React.FC<Iprops> = (props: any) => {
key: 'membershipOrNot',
dataIndex: 'membershipOrNot',
render: (_text: any, _record: any) => <>
{ value === 3 && <Typography.Text type='success'></Typography.Text> }
{ value === 3 && <Typography.Text type='success'></Typography.Text>}
</>
},
{
title: '状态',
title: (
<>
<span>需求发送</span>
<Tooltip placement="top" title='打开开关,审核通过后,将发送需求至选择的归属会员'>
<QuestionCircleOutlined
style={{
marginLeft: '5px',
fontSize: '14px',
color: '#909399'
}}
/>
</Tooltip>
</>
),
key: 'state',
dataIndex: 'state',
render: (_text: any, _record: any, index:number) => (
render: (_text: any, _record: any, index: number) => (
<Form.Item
style={{ marginBottom: 0 }}
>
......@@ -302,7 +315,7 @@ const Demand: React.FC<Iprops> = (props: any) => {
<Store
visible={visible}
storeList={storeList}
onCancel={() => handleCancel() }
onCancel={() => handleCancel()}
getStroeList={handleStoreIds}
/>
<SelectMenber
......@@ -316,7 +329,7 @@ const Demand: React.FC<Iprops> = (props: any) => {
}
Demand.defaultProps = {
badgeIndex : 3
badgeIndex: 3
}
export default Demand;
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