Ben Lin
2024-05-29 cba73428d36a0e0b0f66394f29715b430808de3d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
import { MES_ROUTE } from './router';
import { BasicPageParams, BasicFetchResult } from '/@/api/model/baseModel';
 
export type OperParams = {
  OPER_CODE?: string;
  OPER_NAME?: string;
};
export type OperPageParams = BasicPageParams & OperParams;
export interface OperListItem {
  ID: string;
  OPER_CODE: string;
  OPER_NAME: string;
  OPER_TYPE: string;
  FACTORY: string;
  OPER_ACTION: string;
  IS_FPY: string;
  IS_REFLOW: string;
  CREATE_USER: string;
  UPDATE_USER: string;
  UPDATE_TIME: string;
  CREATE_TIME: string;
  REMARK: string;
}
 
export type CheckRuleParams = {
  RULE_CODE?: string;
  RULE_NAME?: string;
};
export type CheckRulePageParams = BasicPageParams & CheckRuleParams;
export interface CheckRuleListItem {
  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;
  RULE_CODE: string;
  RULE_NAME: string;
  RULE_DESC: string;
  RULE_TYPE: number;
  PRIORITY: number;
  CODE_LENGTH: number;
  CHECK_TYPE: number;
  CHECK_REGEX: string;
  REMARK: string;
}
 
export type CheckRuleDtlParams = {
  RULE_ID: string;
};
export interface iBAS_CODE_DTL {
  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;
  RULE_ID: string;
  RULE_SEQ: number;
  DESCRIPTION: string;
  DATA_TYPE: number;
  DATA_CASE: string;
  DATA_VALUE: string;
  SERIAL_MIN: number;
  SERIAL_MAX: number;
  SERIAL_RESET: number;
  CHECK_TABLE: string;
  CHECK_FIELD: string;
  CHECK_LENGTH: number;
  REPEAT_TIMES: number;
  START_DIGIT: string;
  DATA_REGEX: string;
  REMARK: string;
}
 
export type MeslineParams = {
  LINE_CODE?: string;
  LINE_NAME?: string;
};
export type MeslinePageParams = BasicPageParams & MeslineParams;
export interface MeslineListItem {
  ID: string;
  LINE_CODE: string;
  LINE_NAME: string;
  WORKSHOP_CODE: string;
  FACTORY_CODE: string;
  ORG_ID: string;
  SHIFTTYPE_CODE: string;
  LOCATION: string;
  IS_ACTIVE: string;
  CREATE_USER: string;
  UPDATE_USER: string;
  UPDATE_TIME: string;
  CREATE_TIME: string;
  REMARK: string;
}
 
export type MesBomParams = {
  MAT_ID?: string;
  PART_NO?: string;
  PARENT_NO?: string;
};
export type MesBomPageParams = BasicPageParams & MesBomParams;
export interface MesBomListItem {
  ID: string;
  MAT_ID: string;
  PART_NO: string;
  SPART_NO: string;
  FACTORY_CODE: string;
  QTY: string;
  EFFDATE: string;
  PARENT_NO: string;
  PART_STATUS: string;
  CREATE_USER: string;
  UPDATE_USER: string;
  UPDATE_TIME: string;
  CREATE_TIME: string;
  REMARK: string;
}
 
export type MesModelParams = {
  MAT_MODEL?: string;
  MODEL_NAME?: string;
};
export type MesModelPageParams = BasicPageParams & MesModelParams;
export interface MesModelListItem {
  ID: string;
  MAT_MODEL: string;
  MODEL_NAME: string;
  MODEL_DESC: string;
  FACTORY_CODE: string;
  MAT_LINE: string;
  IS_INV: string;
  MAT_FAMILY: string;
  CREATE_USER: string;
  UPDATE_USER: string;
  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 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>;