BUG修改
This commit is contained in:
@ -259,7 +259,6 @@ const TreeCategorySelector: React.FC<Props> = ({
|
|||||||
const next = valueArray.length ? valueArray[0] : null;
|
const next = valueArray.length ? valueArray[0] : null;
|
||||||
if (selectedKey !== next) setSelectedKey(next);
|
if (selectedKey !== next) setSelectedKey(next);
|
||||||
}
|
}
|
||||||
setSearch('');
|
|
||||||
setDisplayTree(origin);
|
setDisplayTree(origin);
|
||||||
setAutoExpandParent(true);
|
setAutoExpandParent(true);
|
||||||
}, [open, multiple, valueArray, origin]);
|
}, [open, multiple, valueArray, origin]);
|
||||||
@ -467,7 +466,7 @@ const TreeCategorySelector: React.FC<Props> = ({
|
|||||||
width={720}
|
width={720}
|
||||||
footer={multiple ? undefined : null}
|
footer={multiple ? undefined : null}
|
||||||
>
|
>
|
||||||
<Spin spinning={loading}>
|
|
||||||
<Search
|
<Search
|
||||||
allowClear
|
allowClear
|
||||||
placeholder="请输入品类名称"
|
placeholder="请输入品类名称"
|
||||||
@ -476,6 +475,7 @@ const TreeCategorySelector: React.FC<Props> = ({
|
|||||||
value={search}
|
value={search}
|
||||||
style={{ marginBottom: 8 }}
|
style={{ marginBottom: 8 }}
|
||||||
/>
|
/>
|
||||||
|
<Spin spinning={loading}>
|
||||||
<div
|
<div
|
||||||
style={{
|
style={{
|
||||||
height,
|
height,
|
||||||
|
@ -34,6 +34,7 @@ interface coscoAccessSupplierLists {
|
|||||||
interface coscoAccessWorks {
|
interface coscoAccessWorks {
|
||||||
deptId: string;
|
deptId: string;
|
||||||
deptName: string;
|
deptName: string;
|
||||||
|
orgName: string;
|
||||||
startTime: string;
|
startTime: string;
|
||||||
endTime: string;
|
endTime: string;
|
||||||
reviewStatusText: string;
|
reviewStatusText: string;
|
||||||
@ -79,6 +80,7 @@ const ViewModal: React.FC<{
|
|||||||
<Spin spinning={loading}>
|
<Spin spinning={loading}>
|
||||||
{data && (
|
{data && (
|
||||||
<Descriptions bordered column={1} labelStyle={{ width: 160 }}>
|
<Descriptions bordered column={1} labelStyle={{ width: 160 }}>
|
||||||
|
<Descriptions.Item label="准入单位">{data.coscoAccessWork.orgName}</Descriptions.Item>
|
||||||
<Descriptions.Item label="准入部门">{data.coscoAccessWork.deptName}</Descriptions.Item>
|
<Descriptions.Item label="准入部门">{data.coscoAccessWork.deptName}</Descriptions.Item>
|
||||||
<Descriptions.Item label="准入供应商">
|
<Descriptions.Item label="准入供应商">
|
||||||
{data.coscoAccessSupplierList.map((item) => {
|
{data.coscoAccessSupplierList.map((item) => {
|
||||||
|
@ -58,9 +58,9 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
|
|||||||
setLoading(true);
|
setLoading(true);
|
||||||
try {
|
try {
|
||||||
const values = form.getFieldsValue();
|
const values = form.getFieldsValue();
|
||||||
const { changeTime } = values;
|
const { Time } = values;
|
||||||
const startTime = changeTime ? moment(changeTime[0]).format('YYYY-MM-DD') : '';
|
const startTime = Time ? moment(Time[0]).format('YYYY-MM-DD') : '';
|
||||||
const endTime = changeTime ? moment(changeTime[1]).format('YYYY-MM-DD') : '';
|
const endTime = Time ? moment(Time[1]).format('YYYY-MM-DD') : '';
|
||||||
|
|
||||||
const { code, data, message } = await getPage({
|
const { code, data, message } = await getPage({
|
||||||
pageNo: pagination.current,
|
pageNo: pagination.current,
|
||||||
@ -242,7 +242,7 @@ const SupplierChangeReviewManage: React.FC<Props> = ({ dispatch }) => {
|
|||||||
))}
|
))}
|
||||||
</Select>
|
</Select>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item name="changeTime" label="提交变更时间">
|
<Form.Item name="Time" label="提交变更时间">
|
||||||
<RangePicker style={{ width: 220 }} />
|
<RangePicker style={{ width: 220 }} />
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
|
|
||||||
|
@ -34,20 +34,20 @@ const SupplierRegisterAgent: React.FC = () => {
|
|||||||
const [currentRecord, setCurrentRecord] = useState('');
|
const [currentRecord, setCurrentRecord] = useState('');
|
||||||
// 新增与修改
|
// 新增与修改
|
||||||
const [exitModalVisible, setExitModalVisible] = useState(false);
|
const [exitModalVisible, setExitModalVisible] = useState(false);
|
||||||
const [exitId, setExitId] = useState('');
|
// const [exitId, setExitId] = useState('');
|
||||||
const supplierDetailModal = useSupplierDetailModal();
|
const supplierDetailModal = useSupplierDetailModal();
|
||||||
|
|
||||||
// 查询数据
|
// 查询数据
|
||||||
const fetchData = async (page = 1, pageSize = 10) => {
|
const fetchData = async (page = 1, pageSize = 10) => {
|
||||||
setLoading(true);
|
setLoading(true);
|
||||||
// 获取表单参数
|
// 获取表单参数
|
||||||
const { keyword, dateRange } = form.getFieldsValue();
|
const { name, dateRange } = form.getFieldsValue();
|
||||||
let params: any = {
|
let params: any = {
|
||||||
pageNo: page,
|
pageNo: page,
|
||||||
pageSize,
|
pageSize,
|
||||||
|
name,
|
||||||
supplierType: tabKey,
|
supplierType: tabKey,
|
||||||
};
|
};
|
||||||
if (keyword) params.keyword = keyword;
|
|
||||||
if (dateRange && dateRange.length === 2) {
|
if (dateRange && dateRange.length === 2) {
|
||||||
params.startDate = dateRange[0].format('YYYY-MM-DD');
|
params.startDate = dateRange[0].format('YYYY-MM-DD');
|
||||||
params.endDate = dateRange[1].format('YYYY-MM-DD');
|
params.endDate = dateRange[1].format('YYYY-MM-DD');
|
||||||
@ -95,10 +95,6 @@ const SupplierRegisterAgent: React.FC = () => {
|
|||||||
form.resetFields();
|
form.resetFields();
|
||||||
fetchData(1, pagination.pageSize);
|
fetchData(1, pagination.pageSize);
|
||||||
};
|
};
|
||||||
// 切页
|
|
||||||
const handleTableChange = (pag: any) => {
|
|
||||||
fetchData(pag.current, pag.pageSize);
|
|
||||||
};
|
|
||||||
|
|
||||||
// 列 境内
|
// 列 境内
|
||||||
const columnsDvs: ColumnsType<Columns> = [
|
const columnsDvs: ColumnsType<Columns> = [
|
||||||
@ -202,7 +198,7 @@ const SupplierRegisterAgent: React.FC = () => {
|
|||||||
{
|
{
|
||||||
title: '创建单位',
|
title: '创建单位',
|
||||||
dataIndex: 'orgName',
|
dataIndex: 'orgName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 120,
|
width: 120,
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
},
|
},
|
||||||
@ -346,7 +342,9 @@ const SupplierRegisterAgent: React.FC = () => {
|
|||||||
rowKey="id"
|
rowKey="id"
|
||||||
loading={loading}
|
loading={loading}
|
||||||
pagination={{ ...tableProps.pagination, total: pagination.total }}
|
pagination={{ ...tableProps.pagination, total: pagination.total }}
|
||||||
onChange={(current, pageSize) => handleTableChange({ current, pageSize })}
|
onChange={(pagination) => {
|
||||||
|
fetchData(pagination.current, pagination.pageSize);
|
||||||
|
}}
|
||||||
style={{ flex: 1, minHeight: 0 }}
|
style={{ flex: 1, minHeight: 0 }}
|
||||||
scroll={{ y: 'calc(100vh - 350px)' }}
|
scroll={{ y: 'calc(100vh - 350px)' }}
|
||||||
/>
|
/>
|
||||||
@ -358,7 +356,7 @@ const SupplierRegisterAgent: React.FC = () => {
|
|||||||
/>
|
/>
|
||||||
<SupplierExitModal
|
<SupplierExitModal
|
||||||
visible={exitModalVisible}
|
visible={exitModalVisible}
|
||||||
exitId={exitId}
|
exitId={''}
|
||||||
onOk={() => {
|
onOk={() => {
|
||||||
fetchData(1, pagination.pageSize);
|
fetchData(1, pagination.pageSize);
|
||||||
setExitModalVisible(false)
|
setExitModalVisible(false)
|
||||||
|
@ -5,11 +5,7 @@ import request from '@/utils/request';
|
|||||||
* 供应商变更审批管理分页列表
|
* 供应商变更审批管理分页列表
|
||||||
*/
|
*/
|
||||||
interface getPageAgent {
|
interface getPageAgent {
|
||||||
pageNo: number;
|
pageNo: number; pageSize: number; name: string; supplierType: string; startDate:string; endDate:string;
|
||||||
pageSize: number;
|
|
||||||
accessStatus?: string;
|
|
||||||
name?: string;
|
|
||||||
supplierType?: string;
|
|
||||||
}
|
}
|
||||||
export const getPageAgent = (data: getPageAgent) => request.post('/coscoSupplierBase/getPageAgent', { data });
|
export const getPageAgent = (data: getPageAgent) => request.post('/coscoSupplierBase/getPageAgent', { data });
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user