合并代码
This commit is contained in:
@ -5,7 +5,7 @@ import request from '@/utils/request';
|
||||
/**
|
||||
* 供应商基本信息
|
||||
*/
|
||||
export const coscoSupplierBase = () => request.get(`/coscoSupplierBase/9c12e8ea-a681-4184-81ba-5fa276299a00`);
|
||||
export const coscoSupplierBase = () => request.get(`/coscoSupplierBase/1935265782606135296`);
|
||||
|
||||
/**
|
||||
* 资质分页列表
|
||||
@ -99,7 +99,7 @@ export const invoiceEdit = (data: invoiceAdd) => request.put('/invoice', { data
|
||||
|
||||
|
||||
/** bank
|
||||
* 开票分页列表
|
||||
* 银行分页列表
|
||||
*/
|
||||
interface bankGetPage {
|
||||
pageNo: number;
|
||||
@ -109,11 +109,11 @@ interface bankGetPage {
|
||||
export const bankGetPage = (data: bankGetPage) => request.post('/bank/getPage', { data });
|
||||
|
||||
/**
|
||||
* 开票详情
|
||||
* 银行详情
|
||||
*/
|
||||
export const bankView = (id: string) => request.get(`/bank/${id}`);
|
||||
/**
|
||||
* 开票新增
|
||||
* 银行新增
|
||||
*/
|
||||
interface bankAdd {
|
||||
id: string;
|
||||
@ -133,26 +133,104 @@ export const bankAdd = (data: bankAdd) => request.post('/bank', { data });
|
||||
/**
|
||||
* @param data
|
||||
* @returns
|
||||
* 开票修改
|
||||
* 银行修改
|
||||
*/
|
||||
export const bankEdit = (data: bankAdd) => request.put('/bank', { data });
|
||||
|
||||
|
||||
|
||||
/** attachments
|
||||
* 附件分页列表
|
||||
*/
|
||||
interface battachmentsGetPage {
|
||||
pageNo: number;
|
||||
pageSize: number;
|
||||
supplierId?: string;
|
||||
}
|
||||
export const battachmentsGetPage = (data: battachmentsGetPage) => request.post('/attachments/getPage', { data });
|
||||
|
||||
/**
|
||||
* 附件详情
|
||||
*/
|
||||
export const attachmentskView = (id: string) => request.get(`/attachments/${id}`);
|
||||
/**
|
||||
* 附件新增
|
||||
*/
|
||||
interface attachmentsAdd {
|
||||
id: string;
|
||||
attachmentsType: string;
|
||||
fileName: string;
|
||||
filePath: string;
|
||||
fileSize: string;
|
||||
fileType: string;
|
||||
fileUrl: string;
|
||||
supplierId: string;
|
||||
[property: string]: any;
|
||||
}
|
||||
export const attachmentsAdd = (data: attachmentsAdd) => request.post('/attachments', { data });
|
||||
/**
|
||||
* @param data
|
||||
* @returns
|
||||
* 附件修改
|
||||
*/
|
||||
export const attachmentsEdit = (data: attachmentsAdd) => request.put('/attachments', { data });
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 附件新增
|
||||
*/
|
||||
interface updateSupplierBase {
|
||||
title: string;
|
||||
changeDesc: string;
|
||||
coscoSupplierBase: coscoSupplierBases;
|
||||
coscoSupplierSurveyAttachments: coscoSupplierSurveyAttachment[];
|
||||
}
|
||||
interface coscoSupplierSurveyAttachment {
|
||||
attachmentsType: string;
|
||||
fileName: string;
|
||||
fileType: string;
|
||||
fileSize: string;
|
||||
filePath: string;
|
||||
fileUrl: string;
|
||||
}
|
||||
interface coscoSupplierBases {
|
||||
id?: string;
|
||||
supplierType?: string;
|
||||
name?: string;
|
||||
nameEn?: string;
|
||||
range?: string;
|
||||
workAddress?: string;
|
||||
parentCompanyInvestor?: string;
|
||||
legalPerson?: string;
|
||||
capital?: string;
|
||||
contactsName?: string;
|
||||
contactsPhone?: string;
|
||||
contactsEmail?: string;
|
||||
nation?: string;
|
||||
vat?: string;
|
||||
currency?: string;
|
||||
licenceAccessory?: string;
|
||||
licenceDate?: string;
|
||||
enterpriseType?: string;
|
||||
socialCreditCode?: string;
|
||||
regAddress?: string;
|
||||
idCard?: string;
|
||||
contactsType?: string;
|
||||
telephone?: string;
|
||||
}
|
||||
|
||||
export const updateSupplierBase = (data: updateSupplierBase) => request.post('/coscoSupplierBase/updateSupplierBase', { data });
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -170,4 +248,3 @@ export const bankEdit = (data: bankAdd) => request.put('/bank', { data });
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user