Newer
Older
smart-metering-front / src / views / business / lab / myMeasure / task-interface.ts
// 任务列表查询条件
export interface ITaskQuery {
  sampleNo: string // 样品编号
  sampleName: string // 样品名称
  orderNo: string // 委托单编号
  customerNo: string // 委托方代码
  customerName: string // 委托方名称
  isUrgent: string // 是否加急
  sampleBelong: string // 样品属性
  sampleStatus: string // 分发状态
  startTime: string //	应检定开始时间
  endTime: string //	应检定结束时间
  limit: number
  offset: number
}

// 我的检测/部门检测查询条件
export interface ILabQuery {
  sampleNo: string // 样品编号
  sampleName: string // 样品名称
  orderNo: string // 委托单编号
  customerNo: string // 委托方代码
  customerName: string // 委托方名称
  isUrgent: string // 是否加急
  sampleBelong: string // 样品属性
  measureStatus: string // 分发状态
  startTime: string | number //	应检定开始时间
  endTime: string | number //	应检定结束时间
  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: number // 是否加急
  isUrgentName?: string // 是否加急
  requireOverTime: string // 应检完时间
  sampleBelong: string // 样品属性
  sampleBelongName: string // 样品属性
  currentMeasureState: string // 当前检定环节
  currentMeasureStateName: string // 当前检定环节
  alreadyCertifications: number // 已出具证书总数
  requireCertifications: number // 应出具证书总数
  distributeState: string // 分发性质-初次分发、退回分发
  handOutProperty: string // 分发性质-初次分发、退回分发
  id?: string // 实验室id
}

// 实验室检测/我的检测列表
export interface IlabMeasureList extends ITaskList {
  id: string // 实验室检测id
  measurePersonId: string // 检测人id
  measureSegmentId: string // 检测部门id
  currentSegmentId: string // 检测部门id (新)
}

// 全部检测流程节点
export interface ISchedule {
  measurePersonId: string // 执行人
  measurePerson: string // 执行人名称
  measureSegmentId: string // 执行部门
  measureSegment: string // 执行部门名称
  executiveItem: string // 检定项目
  alreadyCertifications?: number // 已出具证书总数
  requireCertifications: number // 应出具证书总数
  measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消
  measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消
  updateTime: string // 流程更新时间
  sendBackTime: string // 退回时间
  sendBackReason: string // 退回原因
  sendBackPersonId: string // 退回人
  sendBackPerson: string // 退回人
  distributePerson: string // 分配人
  distributeTime: string // 分配时间
  startTime: string // 检定开始时间
  overTime: string // 检定完成时间
}
// 检测流程节点
export interface IScheduleSet {
  measurePersonId: string // 执行人
  measurePerson: string // 执行人名称
  measureSegmentId: string // 执行部门
  measureSegment: string // 执行部门名称
  executiveItem: string // 检定项目
  alreadyCertifications?: number // 已出具证书总数
  requireCertifications: number // 应出具证书总数
  measureStatus: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消
  measureStatusName: string // 检测状态: 待分配,待检测,检测中,检测完, 已退回/取消
  updateTime: string // 流程更新时间
  measureSequence?: string // 检测顺序
}
// 退回流程节点
export interface IScheduleBack {
  measurePersonId: string // 执行人
  measurePerson: string // 执行人名称
  measureSegmentId: string // 执行部门
  measureSegment: string // 执行部门名称
  executiveItem: string // 检定项目
  alreadyCertifications?: number // 已出具证书总数
  requireCertifications?: number // 应出具证书总数
  sendBackTime: string // 退回时间
  sendBackReason: string // 退回原因
  sendBackPersonId: string // 退回人
  sendBackPerson: string // 退回人
}

// 样品检测信息
export interface ISampleMeasure {
  id: string // 样品id
  sampleNo: string // 样品编号
  sampleName: string // 样品名称
  sampleModel: string // 样品型号
  manufacturingNo: string // 出厂编号
  customerNo: string // 委托方代码
  customerId: string // 委托方id
  customerName: string // 委托方名称
  phone: string // 委托方电话
  postalCode: string // 委托方邮编
  customerAddress: string // 委托方地址
  measureCategory: string // 检校类别
  manufacturer: string // 生产厂家
  manufacturerCountry: string // 厂家国别
  manufacturingDate: string // 出厂年月
  abc: string // ABC
  measurePeriod: string // 检定周期
  minioFileName: string // 说明书
  labelBind: string // 标签绑定
  measureType: string // 检定方式
  measureTypeName: string // 检定方式
  measureLastTime?: string // 检定日期
  validDeadline: string // 有效日期
  powerVoltage: string // 电源电压
  sampleBelong: string // 样品所属
  sampleBelongName: string // 样品所属
  remark: string // 备注
}

export interface ITaskDetail {
  measureContent: string // 检定项目
  measureProcessList: ISchedule[] // 检定流程
  measureSendBackList: ISchedule[] // 退回信息
  remark: string // 备注
  orderId: string // 委托单id
  orderCode: string // 委托单编号
  certifications: string // 证书类别
  planDeliverTime: string // 预约送达时间
  requireOverTime: string // 要求检完时间
  specialRequire: string // 客户特殊要求
  deliverer: string // 送检人
  delivererTel: string // 送检人联系方式
}

// 退回
export interface ISendBack {
  id: string // 实验室检测id
  measurePersonId: string // 检定人员id
  measureSegmentId: string //	检定环节,实验室id
  operateReason: string // 退回原因
  orderId: string // 委托单id
  sampleId: string //	样品id
}