Ben Lin
2024-07-24 50111114eb8254fe4d6fc15e9781f2c47e3db74a
src/api/tigerapi/model/mesModel.ts
@@ -1,3 +1,4 @@
import { MES_ROUTE } from './router';
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
export type OperParams = {
@@ -142,8 +143,168 @@
  UPDATE_TIME: string;
  CREATE_TIME: string;
}
export type RoutelistParams = {
  ROT_CODE?: string;
  ROT_NAME?: string;
  IS_ACTIVE?: string;
};
export type RoutelistPageParams = BasicPageParams & RoutelistParams;
export interface BIZ_MES_WO {
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  ORDER_NO: string;
  ORDER_TYPE: string;
  ORDER_DESC: string;
  PARENT_ORDER: string;
  STATUS: number;
  ITEM_CODE: string;
  ITEM_TYPE: string;
  ITEM_MODEL: string;
  PRIORITY: string;
  CUST_CODE: string;
  ROUTE_CODE: string;
  ROUTE_STATUS: number;
  FACTORY: string;
  PLAN_LINE: string;
  ACT_LINE: string;
  PLAN_START_TIME: Date;
  PLAN_END_TIME: Date;
  ACT_START_TIME: Date;
  ACT_END_TIME: Date;
  STD_WORKERS_QTY: number;
  ACT_WORKER_QTY: number;
  IMPORT_TIME: Date;
  RELEASE_TIME: Date;
  RELEASE_USER: string;
  CHANGE_TIME: Date;
  CHANGE_USER: string;
  PLAN_QTY: number;
  INPUT_QTY: number;
  OUTPUT_QTY: number;
  SCRAP_QTY: number;
  STOCK_IN_QTY: number;
  UPH: number;
  UPPH: number;
  LAST_HIST_ID: string;
  REMARK: string;
  FBILLNO_ID: string;
  PREP_MSG: string;
}
export type BIZ_MES_WOParams = {
  ORDER_NO?: string;
  ITEM_CODE?: string;
  STATUS?: number;
  ORDER_TYPE?: string;
};
export type MesWolistPageParams = BasicPageParams & BIZ_MES_WOParams;
export interface MES_WORKSHOP {
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  WS_CODE: string;
  WS_NAME: string;
  SHORT_NAME: string;
  FTY_CODE: string;
  ORG_CODE: string;
  IS_ACTIVE: string;
  REMARK: string;
}
export type MES_WORKSHOPParams = {
  WS_CODE?: string;
  WS_NAME?: string;
};
export type MesWslistPageParams = BasicPageParams & MES_WORKSHOPParams;
export interface BIZ_MES_WO_BATCH {
  ID: string;
  BATCH_NO: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  ORDER_NO: string;
  STATUS: number;
  ITEM_CODE: string;
  CUST_CODE: string;
  FACTORY: string;
  WS_CODE: string;
  ACT_LINE: string;
  ACT_START_TIME: Date;
  ACT_END_TIME: Date;
  STD_WORKER_QTY: number;
  ACT_WORKER_QTY: number;
  RELEASE_TIME: Date;
  RELEASE_USER: string;
  PLAN_QTY: number;
  INPUT_QTY: number;
  OUTPUT_QTY: number;
  SCRAP_QTY: number;
  STOCK_IN_QTY: number;
  UPH: number;
  UPPH: number;
  REMARK: string;
}
export interface BAS_DEFECT {
   ID: string;
   CREATE_TIME: Date;
   CREATE_USER: string;
   UPDATE_TIME: Date;
   UPDATE_USER: string;
   GHOST_ROW: boolean;
   AUTH_ORG: string;
   AUTH_PROD: string;
   AUTH_WH: string;
   DFT_CODE: string;
   DFT_NAME: string;
   DFTG_CODE: string;
   DFT_LEVEL: number;
   REMARK: string;
}
export interface SaveWoBatchInput {
   Wo: BIZ_MES_WO;
   WoBatch: BIZ_MES_WO_BATCH;
}
export type OperPageListGetResultModel = BasicFetchResult<OperListItem>;
export type CheckRulePageListGetResultModel = BasicFetchResult<CheckRuleListItem>;
export type MeslinePageListGetResultModel = BasicFetchResult<MeslineListItem>;
export type MesBomPageListGetResultModel = BasicFetchResult<MesBomListItem>;
export type MesModelPageListGetResultModel = BasicFetchResult<MesModelListItem>;
export type RoutePageListGetResultModel = BasicFetchResult<MES_ROUTE>;
export type BIZ_MES_WOPageListGetResultModel = BasicFetchResult<BIZ_MES_WO>;
export type MES_WORKSHOPPageListGetResultModel = BasicFetchResult<MES_WORKSHOP>;
export interface DelWoRotInput {
  rotId: string;
  rotCode: string;
  wo: string;
}
export interface DelProdRotInput {
  rotId: string;
  rotCode: string;
  prodCode: string;
}