供应商评价任务管理详情 开发以及对接
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import request from '@/utils/request';
|
||||
import type { TaskDetailResponse } from '@/servers/types/supplierEvaluateTask';
|
||||
|
||||
/**
|
||||
* 获取所有模板列表
|
||||
@ -142,7 +143,7 @@ export async function getTaskList(params: SupplierEvaluate.TaskRequest) {
|
||||
* @returns Promise
|
||||
*/
|
||||
export async function getTaskDetail(id: string) {
|
||||
return request<API.APIResponse<SupplierEvaluate.TaskRecord>>(`/coscoEvaluate/task/${id}`, {
|
||||
return request<TaskDetailResponse>(`/coscoEvaluate/task/${id}`, {
|
||||
method: 'GET',
|
||||
});
|
||||
}
|
||||
|
3
src/servers/api/typings.d.ts
vendored
3
src/servers/api/typings.d.ts
vendored
@ -25,7 +25,8 @@ declare namespace API {
|
||||
export interface PersonnelItem {
|
||||
id: string;
|
||||
name: string;
|
||||
department: string;
|
||||
userDept: string;
|
||||
userDeptId: string;
|
||||
position?: string;
|
||||
selected?: boolean;
|
||||
}
|
||||
|
@ -9,7 +9,8 @@
|
||||
export interface PersonnelItem {
|
||||
id: string; // 人员ID
|
||||
name: string; // 人员姓名
|
||||
department: string; // 所属部门
|
||||
userDept: string; // 所属部门
|
||||
userDeptId: string; // 所属部门ID
|
||||
position?: string; // 职位(可选)
|
||||
selected?: boolean; // 是否被选中(用于UI显示)
|
||||
// 其他可能的API字段
|
||||
|
@ -3,3 +3,4 @@
|
||||
*/
|
||||
|
||||
export * from './evaluator';
|
||||
export * from './supplierEvaluateTask';
|
||||
|
79
src/servers/types/supplierEvaluateTask.ts
Normal file
79
src/servers/types/supplierEvaluateTask.ts
Normal file
@ -0,0 +1,79 @@
|
||||
/**
|
||||
* 供应商评价任务详情接口类型定义
|
||||
*/
|
||||
export interface IndicatorList {
|
||||
indicatorIds: string[];
|
||||
type: number;
|
||||
userId: string;
|
||||
}
|
||||
export interface User{
|
||||
userId: string;
|
||||
userName: string;
|
||||
userDept: string;
|
||||
userDeptId: string;
|
||||
}
|
||||
/**
|
||||
* 任务详情数据
|
||||
*/
|
||||
export interface TaskDetailData {
|
||||
categoryId: string | null;
|
||||
categoryLimitation: string | null;
|
||||
createBy: string | null;
|
||||
createDate: string | null;
|
||||
createTime: string | null;
|
||||
deleteFlag: string | null;
|
||||
delFlag: string;
|
||||
deptId: string | null;
|
||||
endTime: string | null;
|
||||
evaluateTheme: string | null;
|
||||
evaluateYear: string | null;
|
||||
id: string | null;
|
||||
indicatorList: IndicatorList[] | null;
|
||||
lastUpdateTime: string | null;
|
||||
startTime: string | null;
|
||||
status: string;
|
||||
supplierIds: {
|
||||
id: string;
|
||||
userIds: string[];
|
||||
}[] | null;
|
||||
userList: User[];
|
||||
suppliers: {
|
||||
id: string;
|
||||
supplierName: string;
|
||||
socialCreditCode?: string;
|
||||
category?: string;
|
||||
department?: string;
|
||||
evaluators: {
|
||||
id: string;
|
||||
name: string;
|
||||
department: string;
|
||||
position?: string;
|
||||
}[];
|
||||
[key: string]: any;
|
||||
}[] | null;
|
||||
templateId: string | null;
|
||||
tenantId: string | null;
|
||||
tenantName: string | null;
|
||||
updateBy: string | null;
|
||||
updateDate: string | null;
|
||||
updateTime: string | null;
|
||||
weightDept: string | null;
|
||||
weightStatus: number | null;
|
||||
weightValue: string | null;
|
||||
taskDeptWeightList: {
|
||||
weightDept: string;
|
||||
weightValue: string;
|
||||
}[] | null;
|
||||
[property: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* 任务详情响应
|
||||
*/
|
||||
export interface TaskDetailResponse {
|
||||
code: number;
|
||||
data: TaskDetailData;
|
||||
message: string;
|
||||
success: boolean;
|
||||
[property: string]: any;
|
||||
}
|
Reference in New Issue
Block a user