| | |
| | | ); |
| | | } |
| | | |
| | | /** 查询人资企业的甲方客户 GET /api/DataBoard/GetEnterpriseCustomers */ |
| | | export async function getEnterpriseCustomers(options?: API.RequestConfig) { |
| | | return request<any>('/api/DataBoard/GetEnterpriseCustomers', { |
| | | /** 查询产值 GET /api/DataBoard/GetEnterpriseOutputValue */ |
| | | export async function getEnterpriseOutputValue(options?: API.RequestConfig) { |
| | | return request<any>('/api/DataBoard/GetEnterpriseOutputValue', { |
| | | method: 'GET', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | | |
| | | /** 查询产值 GET /api/DataBoard/GetEnterpriseOutputValue */ |
| | | export async function getEnterpriseOutputValue(options?: API.RequestConfig) { |
| | | return request<any>('/api/DataBoard/GetEnterpriseOutputValue', { |
| | | method: 'GET', |
| | | /** 导入人资企业的甲方客户 POST /api/DataBoard/ImportEnterpriseCustomers */ |
| | | export async function importEnterpriseCustomers( |
| | | body: {}, |
| | | file?: File, |
| | | options?: API.RequestConfig |
| | | ) { |
| | | const formData = new FormData(); |
| | | |
| | | if (file) { |
| | | formData.append('file', file); |
| | | } |
| | | |
| | | Object.keys(body).forEach((ele) => { |
| | | const item = (body as any)[ele]; |
| | | |
| | | if (item !== undefined && item !== null) { |
| | | formData.append( |
| | | ele, |
| | | typeof item === 'object' && !(item instanceof File) ? JSON.stringify(item) : item |
| | | ); |
| | | } |
| | | }); |
| | | |
| | | return request<any>('/api/DataBoard/ImportEnterpriseCustomers', { |
| | | method: 'POST', |
| | | data: formData, |
| | | requestType: 'form', |
| | | ...(options || {}), |
| | | }); |
| | | } |
| | |
| | | } |
| | | ); |
| | | } |
| | | |
| | | /** 同步人资企业的甲方客户 POST /api/DataBoard/SyncEnterpriseCustomers */ |
| | | export async function syncEnterpriseCustomers(options?: API.RequestConfig) { |
| | | return request<any>('/api/DataBoard/SyncEnterpriseCustomers', { |
| | | method: 'POST', |
| | | ...(options || {}), |
| | | }); |
| | | } |