| | |
| | | applyNo?: string; |
| | | supplierId?: number; |
| | | supplierName: string; |
| | | contactName?: string; |
| | | contactMobile?: string; |
| | | contactEmail?: string; |
| | | supplierType?: string; |
| | | companyNature?: string; |
| | | registeredCapital?: number; |
| | | businessLicenseNo?: string; |
| | | taxNo?: string; |
| | | address?: string; |
| | | bankName?: string; |
| | | bankAccount?: string; |
| | | taxNo?: string; |
| | | businessLicense?: string; |
| | | taxCertificate?: string; |
| | | orgCodeCertificate?: string; |
| | | contactName?: string; |
| | | contactMobile?: string; |
| | | contactEmail?: string; |
| | | applyUserName?: string; |
| | | applyTime?: string; |
| | | applyStatus?: number; |
| | | applyStatusLabel?: string; |
| | | auditComment?: string; |
| | | processInstanceId?: string; |
| | | remark?: string; |
| | | createTime?: string; |
| | | } |
| | | |
| | | export interface ReviewVO { |
| | | id: number; |
| | | passed: boolean; |
| | | comment?: string; |
| | | /** 协同办公审批流程定义 */ |
| | | export interface ProcessDefinition { |
| | | id: string; |
| | | key: string; |
| | | name: string; |
| | | } |
| | | } |
| | | |
| | |
| | | return requestClient.delete(`/srm/supplier-apply/delete?id=${id}`); |
| | | } |
| | | |
| | | /** 提交审核 */ |
| | | export function submitApply(id: number) { |
| | | return requestClient.put(`/srm/supplier-apply/submit?id=${id}`); |
| | | /** 获取审批流程列表(协同办公已发布流程) */ |
| | | export function getApproveProcessList() { |
| | | return requestClient.get<SrmSupplierApplyApi.ProcessDefinition[]>( |
| | | '/srm/supplier-apply/approve-process-list', |
| | | ); |
| | | } |
| | | |
| | | /** 采购审核 */ |
| | | export function reviewPurchase(data: SrmSupplierApplyApi.ReviewVO) { |
| | | return requestClient.put('/srm/supplier-apply/review-purchase', data); |
| | | } |
| | | |
| | | /** 质量审核 */ |
| | | export function reviewQuality(data: SrmSupplierApplyApi.ReviewVO) { |
| | | return requestClient.put('/srm/supplier-apply/review-quality', data); |
| | | } |
| | | |
| | | /** 财务审核 */ |
| | | export function reviewFinance(data: SrmSupplierApplyApi.ReviewVO) { |
| | | return requestClient.put('/srm/supplier-apply/review-finance', data); |
| | | /** 提交准入申请审批(启动协同办公流程) */ |
| | | export function submitApply(id: number, processDefinitionKey: string) { |
| | | return requestClient.put('/srm/supplier-apply/submit', null, { |
| | | params: { id, processDefinitionKey }, |
| | | }); |
| | | } |