增加品类审核功能
This commit is contained in:
@ -11,7 +11,7 @@ import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect';
|
||||
import AccessDepartmentSelect from "@/components/AccessDepartmentSelect"
|
||||
//接口与字典
|
||||
import { getDictList } from '@/servers/api/dicts'
|
||||
import { getPage, approval } from './services';
|
||||
import { getPage, approval, supplierChangeApprove } from './services';
|
||||
//统一列表分页
|
||||
import tableProps from '@/utils/tableProps'
|
||||
import moment from 'moment';
|
||||
@ -182,15 +182,30 @@ const CategoryLibraryManage: React.FC = () => {
|
||||
提交审批
|
||||
</a>
|
||||
) : (
|
||||
<a
|
||||
onClick={() => {
|
||||
setCurrentStoreId(record.id);
|
||||
setViewVisible(true);
|
||||
}}
|
||||
>
|
||||
审批记录
|
||||
</a>
|
||||
<>
|
||||
<a
|
||||
onClick={() => {
|
||||
setCurrentStoreId(record.id);
|
||||
setViewVisible(true);
|
||||
}}
|
||||
>
|
||||
审批记录
|
||||
</a>
|
||||
{record.approveStatus === 3 && (
|
||||
<Button type="link" onClick={() => {
|
||||
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
|
||||
handleReset()
|
||||
})
|
||||
}}>
|
||||
审批
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
|
||||
);
|
||||
|
||||
|
||||
|
||||
}
|
||||
},
|
||||
];
|
||||
|
@ -114,3 +114,4 @@ export const uploadFile = async (file: File) => {
|
||||
}
|
||||
export const approval = (data: approvalData) => request.post(`/cosco/library/approval`, { data });
|
||||
|
||||
export const supplierChangeApprove = (data: { workFlowId:string; approveStatus:number }) => request.post('/synchronous/categroyLibraryApproval', { data });
|
||||
|
@ -12,7 +12,7 @@ import AccessStatusSelect from '@/components/CommonSelect/AccessStatusSelect';
|
||||
import AccessDepartmentSelect from "@/components/AccessDepartmentSelect"
|
||||
//接口
|
||||
import { getDictList } from '@/servers/api/dicts'
|
||||
import { getPage, approval } from './services';
|
||||
import { getPage, approval, supplierChangeApprove } from './services';
|
||||
//统一列表分页
|
||||
import tableProps from '@/utils/tableProps'
|
||||
|
||||
@ -177,14 +177,25 @@ const CategoryLibraryManage: React.FC = () => {
|
||||
提交审批
|
||||
</a>
|
||||
) : (
|
||||
<a
|
||||
onClick={() => {
|
||||
setCurrentStoreId(record.id);
|
||||
setViewVisible(true);
|
||||
}}
|
||||
>
|
||||
审批记录
|
||||
</a>
|
||||
<>
|
||||
<a
|
||||
onClick={() => {
|
||||
setCurrentStoreId(record.id);
|
||||
setViewVisible(true);
|
||||
}}
|
||||
>
|
||||
审批记录
|
||||
</a>
|
||||
{record.approveStatus === '0' && (
|
||||
<Button type="link" onClick={() => {
|
||||
supplierChangeApprove({ workFlowId: record.workFlowId, approveStatus: 1 }).then(() => {
|
||||
handleReset()
|
||||
})
|
||||
}}>
|
||||
审批
|
||||
</Button>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
||||
},
|
||||
|
@ -114,3 +114,5 @@ export const uploadFile = async (file: File) => {
|
||||
}
|
||||
export const approval = (data: approvalData) => request.post(`/cosco/apply/approval`, { data });
|
||||
|
||||
|
||||
export const supplierChangeApprove = (data: { workFlowId:string; approveStatus:number }) => request.post('/synchronous/librarySupplierApply', { data });
|
Reference in New Issue
Block a user