增加品类审核功能
This commit is contained in:
@ -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>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
|
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
@ -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 });
|
||||||
|
@ -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>
|
||||||
|
)}
|
||||||
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -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 });
|
Reference in New Issue
Block a user