供应商信息检索启动安排准入明细与查看使用通用
This commit is contained in:
@ -205,11 +205,18 @@ const groupQualifiedSupplierQuery: React.FC<Props> = ({ dispatch }) => {
|
||||
title: '操作',
|
||||
key: 'option',
|
||||
align: 'center',
|
||||
width: 140,
|
||||
width: 80,
|
||||
render: (record: any) => (
|
||||
<Space>
|
||||
<a onClick={() => { setCurrentRecord(record.id); setViewVisible(true); }}>查看</a>
|
||||
<a onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细</a>
|
||||
<a onClick={() => {
|
||||
dispatch({
|
||||
type: 'globalModal/show',
|
||||
payload: {
|
||||
id: record.id,
|
||||
},
|
||||
});
|
||||
}}>查看</a>
|
||||
{/* <a onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细</a> */}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
@ -160,11 +160,18 @@ const mySupplierInquiry: React.FC<mySupplierInquiryProps> = ({ dispatch }) => {
|
||||
render: (record: any) => (
|
||||
<Space>
|
||||
<a
|
||||
onClick={() => { setCurrentRecord(record.id); setViewVisible(true); }}
|
||||
onClick={() => {
|
||||
dispatch({
|
||||
type: 'globalModal/show',
|
||||
payload: {
|
||||
id: record.id,
|
||||
},
|
||||
});
|
||||
}}
|
||||
>查看</a>
|
||||
<a
|
||||
{/* <a
|
||||
onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}
|
||||
>准入明细</a>
|
||||
>准入明细</a> */}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
@ -183,8 +183,15 @@ const PersonQualifiedSupplierQuery: React.FC<Props> = ({ dispatch }) => {
|
||||
width: 140,
|
||||
render: (record: any) => (
|
||||
<Space>
|
||||
<a onClick={() => { setCurrentRecord(record.id); setViewVisible(true); }}>查看</a>
|
||||
<a onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细</a>
|
||||
<a onClick={() => {
|
||||
dispatch({
|
||||
type: 'globalModal/show',
|
||||
payload: {
|
||||
id: record.id,
|
||||
},
|
||||
});
|
||||
}}>查看</a>
|
||||
{/* <a onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细</a> */}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
@ -1,10 +1,10 @@
|
||||
import React, { useState, useEffect } from "react";
|
||||
//第三方UI库/组件
|
||||
import { Modal, Form, Input, Button, Table, message, Tooltip } from "antd";
|
||||
import { Modal, Form, Input, Button, Table } from "antd";
|
||||
//类型定义
|
||||
import type { ColumnsType, TablePaginationConfig } from 'antd/es/table';
|
||||
//umi 相关
|
||||
import { useIntl } from 'umi';
|
||||
// import { useIntl } from 'umi';
|
||||
//本地服务/接口
|
||||
import { getCategoryPage } from '../services';
|
||||
|
||||
@ -26,7 +26,7 @@ interface SupplierAccessDetailModalProps {
|
||||
//主体
|
||||
const SupplierAccessDetailModal: React.FC<SupplierAccessDetailModalProps> = ({ visible, onCancel, record, }) => {
|
||||
//双语
|
||||
const intl = useIntl();
|
||||
// const intl = useIntl();
|
||||
//查询表单
|
||||
const [form] = Form.useForm();
|
||||
//列表渲染数据
|
||||
|
@ -156,15 +156,22 @@ const RegistrationQuery: React.FC<RegistrationQueryProps> = ({ dispatch }) => {
|
||||
title: '操作',
|
||||
key: 'option',
|
||||
align: 'center',
|
||||
width: 160,
|
||||
width: 80,
|
||||
render: (record) => (
|
||||
<Space>
|
||||
<a
|
||||
onClick={() => { setCurrentRecord(record.id); setViewVisible(true); }}
|
||||
onClick={() => {
|
||||
dispatch({
|
||||
type: 'globalModal/show',
|
||||
payload: {
|
||||
id: record.id,
|
||||
},
|
||||
});
|
||||
}}
|
||||
>查看</a>
|
||||
<a
|
||||
{/* <a
|
||||
onClick={() => { setCurrentRecord(record.id); setDetailVisible(true); }}
|
||||
>准入明细</a>
|
||||
>准入明细</a> */}
|
||||
</Space>
|
||||
),
|
||||
},
|
||||
|
Reference in New Issue
Block a user