Newer
Older
smart-metering-front / src / views / business / schedule / task / task-interface.ts
Stephanie on 17 Feb 2023 2 KB feat<views>: 任务管理联调
import type { ISampleEdit } from '@/views/customer/sample/list/sample_list_interface'

// 任务列表查询条件
export interface ITaskQuery {
  sampleNo: string // 样品编号
  sampleName: string // 样品名称
  orderNo: string // 委托书编号
  customerNo: string // 委托方代码
  customerName: string // 委托方名称
  isUrgent: string // 是否加急
  sampleAttr: string // 样品属性
  sampleStatus: string // 分发状态
  limit: number
  offset: number
}

// 任务列表-返回值
export interface ITaskList {
  orderId: string // 委托书编号
  sampleId: string // 样品唯一标识
  sampleNo: string // 样品编号
  sampleName: string // 样品名称
  sampleModel: string // 型号
  manufacturingNo: string // 出厂编号
  orderNo: string // 委托书编号
  customerNo: string // 委托方代码
  customerName: string // 委托方名称
  isUrgent: string // 是否加急
  requireOverTime: string // 应检完时间
  sampleAttr: string // 样品属性
  sampleAttrName: string // 样品属性
  currentMeasureState: string // 当前检定环节
  currentMeasureStateName: string // 当前检定环节
  currentCertifications: number // 已出具证书总数
  requireCertifications: number // 应出具证书总数
  labelBind: string // 绑定标签
  distributeState: string // 分发性质-初次分发、退回分发
  distributeStateName: string // 分发性质-初次分发、退回分发
}

// 检测流程节点
export interface ISchedule {
  executivePerson: string // 执行人
  executivePersonName: string // 执行人名称
  executiveDept: string // 执行部门
  executiveDeptName: string // 执行部门名称
  executiveItem: string // 检定项目
  currentCertifications?: number // 已出具证书总数
  requireCertifications: number // 应出具证书总数
  measureState: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消
  updateTime: string // 流程更新时间
  backTime: string // 退回时间
  backReason: string // 退回原因
  backPerson: string // 退回人
  distributePerson: string // 分配人
  distributeTime: string // 分配时间
  startTime: string // 检定开始时间
  overTime: string // 检定完成时间
}

// 样品检测信息
export interface ISampleMeasure extends ISampleEdit {
  orderId: string // 委托单id
  certifications: string // 证书类别
}