import type { PageParam } from "@/api";
import { User } from "@/api/system/user/model";

/**
 * 合同
 */
export interface Worksheet {
    worksheetId?: any;
    type?: any;
    startUid?: any;
    projectId?: any;
    planInDate?: any;
    receiveDate?: any;
    equipmentType?: any;
    workType?: any;
    auditStatus?: number;
    status?: number;
    detail?: any;
    setUp?: any;
    parts?: any;
    check?: any;
    projectName?: any;
    projectRegion?: any;
    projectAddress?: string;
    address?: string;
    contactPhone?: any;
    productionMangerUser?: User;
    documentUser?: User;
    classManagerUser?: User;
    assetUser?: User;
    fixUser?: User;
    carDispatchUser?: User;
    auditList?: any[];
    carDispatchList?: any[];
    documentDoneTime?:string,
    assetDoneTime?:string,
    fixDoneTime?:string,
}

/**
 * 合同搜索条件
 */
export interface WorksheetParam extends PageParam {
    projectName?: string;
    contractNo?: string;
}

export const WORKSHEET_STATUS_LIST = [
    "已取消",
    "待派单",
    "待整理资料",
    "待到场",
    "待确认",
    "已完成"
];

export const WORKSHEET_EQUIPMENT_TYPE = ["塔式起重机", "施工升降机", "物料提升机"];
export const WORKSHEET_WORK_TYPE = ["安装单", "加高单", "拆卸单"];

export const WORKSHEET_AUDIT_STATUS_LIST = [
    "无需审核",
    "待审核",
    "审核通过",
    "审核解决",
]

