import type { WorkOrderFlowList } from './flow'

// 工单信息
export type orderInfo = {
	orderType: Number
    id: Number
	// teamLeaderId: Number | 0
    teamLeaderName: string | null
	// acceptUserId: Number | 0
    acceptUserName: string | null
    acceptTime: string | null
    assignTime: string | null
    assignUserName: string | null
    status: Number
    workOrderProjectNo: string | null
    workOrderStatus: string | null
    gxtCenterId: Number | 0
    gxtCenter: string | null
    pcsStationId: Number | 0
    pcsStationName: string | null
    pcsDeviceId: Number | 0
    pcsDeviceName: string | null
    brand: string | null
    model: string | null
    createTime: string | null
    workOrderFlowList?: WorkOrderFlowList | null
    // 工时相关字段
    issueHour: number | 0
    acceptHour: number | 0
    prepareHour: number | 0
    workHour: number | 0
    restartHour: number | 0
    handleHour: number | 0
    suspendHour: number | 0
	downtimeHour: number | 0
}

// 工单列表响应
export type orderListResponse = {
    code: number
    msg: string | null
    total: number
    rows: orderInfo[]
}

// 工单信息
export type acceptOrderInfo = {
	orderType: Number
    id: Number
	teamLeaderId: Number | 0
    teamLeaderName: string | null
	acceptUserId: Number | 0
    acceptUserName: string | null
    acceptTime: string | null
    assignTime: string | null
    assignUserName: string | null
    status: Number
    workOrderProjectNo: string | null
    workOrderStatus: string | null
    gxtCenterId: Number | 0
    gxtCenter: string | null
    pcsStationId: Number | 0
    pcsStationName: string | null
    pcsDeviceId: Number | 0
    pcsDeviceName: string | null
    brand: string | null
    model: string | null
    createTime: string | null
    workOrderFlowList?: WorkOrderFlowList | null
	suspendReason: string | null
	rejectionReason: string | null
	updateTime: string | null  // 新增字段
	workEndTime: string | null  // 新增字段
}

// 工单信息
export type acceptOrderInfo2 = {
	orderType: Number
    id: Number
	teamLeaderId: Number | 0
    teamLeaderName: string | null
	acceptUserId: Number | 0
    acceptUserName: string | null
    acceptTime: string | null
    assignTime: string | null
    assignUserName: string | null
    status: Number
    workOrderProjectNo: string | null
    workOrderStatus: string | null
    gxtCenterId: Number | 0
    gxtCenter: string | null
    pcsStationId: Number | 0
    pcsStationName: string | null
    pcsDeviceId: Number | 0
    pcsDeviceName: string | null
    brand: string | null
    model: string | null
    createTime: string | null
    workOrderFlowList?: WorkOrderFlowList | null
	suspendReason: string | null
	rejectionReason: string | null
	misNo: string | null
	content: string | null
	faultBarcode: string | null
	faultCode: string | null
	updateTime: string | null  // 新增字段
	workEndTime: string | null  // 新增字段
}
