增加品类审核功能

This commit is contained in:
孙景学
2025-08-05 14:15:02 +08:00
parent 84793a372a
commit 15a5ae851b
4 changed files with 47 additions and 18 deletions

View File

@ -11,7 +11,7 @@ import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect';
import AccessDepartmentSelect from "@/components/AccessDepartmentSelect" import AccessDepartmentSelect from "@/components/AccessDepartmentSelect"
//接口与字典 //接口与字典
import { getDictList } from '@/servers/api/dicts' import { getDictList } from '@/servers/api/dicts'
import { getPage, approval } from './services'; import { getPage, approval, supplierChangeApprove } from './services';
//统一列表分页 //统一列表分页
import tableProps from '@/utils/tableProps' import tableProps from '@/utils/tableProps'
import moment from 'moment'; import moment from 'moment';
@ -182,15 +182,30 @@ const CategoryLibraryManage: React.FC = () => {
</a> </a>
) : ( ) : (
<a <>
onClick={() => { <a
setCurrentStoreId(record.id); onClick={() => {
setViewVisible(true); setCurrentStoreId(record.id);
}} setViewVisible(true);
> }}
>
</a>
</a>
{record.approveStatus === 3 && (
<Button type="link" onClick={() => {
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
handleReset()
})
}}>
</Button>
)}
</>
); );
} }
}, },
]; ];

View File

@ -114,3 +114,4 @@ export const uploadFile = async (file: File) => {
} }
export const approval = (data: approvalData) => request.post(`/cosco/library/approval`, { data }); export const approval = (data: approvalData) => request.post(`/cosco/library/approval`, { data });
export const supplierChangeApprove = (data: { workFlowId:string; approveStatus:number }) => request.post('/synchronous/categroyLibraryApproval', { data });

View File

@ -12,7 +12,7 @@ import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect';
import AccessDepartmentSelect from "@/components/AccessDepartmentSelect" import AccessDepartmentSelect from "@/components/AccessDepartmentSelect"
//接口 //接口
import { getDictList } from '@/servers/api/dicts' import { getDictList } from '@/servers/api/dicts'
import { getPage, approval } from './services'; import { getPage, approval, supplierChangeApprove } from './services';
//统一列表分页 //统一列表分页
import tableProps from '@/utils/tableProps' import tableProps from '@/utils/tableProps'
@ -177,14 +177,25 @@ const CategoryLibraryManage: React.FC = () => {
</a> </a>
) : ( ) : (
<a <>
onClick={() => { <a
setCurrentStoreId(record.id); onClick={() => {
setViewVisible(true); setCurrentStoreId(record.id);
}} setViewVisible(true);
> }}
>
</a>
</a>
{record.approveStatus === '0' && (
<Button type="link" onClick={() => {
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
handleReset()
})
}}>
</Button>
)}
</>
); );
} }
}, },

View File

@ -113,4 +113,6 @@ export const uploadFile = async (file: File) => {
id: string; id: string;
} }
export const approval = (data: approvalData) => request.post(`/cosco/apply/approval`, { data }); export const approval = (data: approvalData) => request.post(`/cosco/apply/approval`, { data });
export const supplierChangeApprove = (data: { workFlowId:string; approveStatus:number }) => request.post('/synchronous/librarySupplierApply', { data });