refactor: 重构工艺工序相关命名与数据模型
1. 全局替换"工序"为"工艺"统一术语,包括页面文案、枚举、注释
2. 重构工单与工件工艺数据模型:
- 新增工艺组合表flow_material作为备料/齐套唯一源头
- 新增工位状态表station_state支持自主停单/恢复接单
- 移除station_process派工表,改用工单工艺组合作为路线唯一源头
- 替换processCode为flowId作为工艺关联标识
- 重构工件当前进度字段为currentStationNo
3. 删除冗余的静态备份资源文件
4. 调整物料选择组件默认启用仅显示激活物料
5. 优化工单创建/编辑逻辑,新增工艺组合校验与保存
This commit is contained in:
@@ -10,13 +10,13 @@ export const getConfig = () => request.get('/api/config')
|
||||
export const getTaskCurrent = (stationNo) =>
|
||||
request.get('/api/task/current', { params: { stationNo } })
|
||||
|
||||
// 装机绑定面板(代理 MES):sn+processCode → 应绑/已绑清单
|
||||
// 装机绑定面板(代理 MES):sn+flowId → 应绑/已绑清单
|
||||
export const getBindPanel = (params) => request.get('/api/bind/panel', { params })
|
||||
|
||||
// 装机绑定一条(代理 MES):{sn, processCode, stationNo, items:[{materialCode, bindValue}]}
|
||||
// 装机绑定一条(代理 MES):{sn, flowId, stationNo, items:[{materialCode, bindValue}]}
|
||||
export const bindRecord = (data) => request.post('/api/bind/record', data)
|
||||
|
||||
// 撤销一条绑定(代理 MES):{sn, processCode, materialCode, bindValue}
|
||||
// 撤销一条绑定(代理 MES):{sn, flowId, materialCode, bindValue}
|
||||
export const bindRemove = (data) => request.post('/api/bind/remove', data)
|
||||
|
||||
// 我的工作量(代理 MES,按当前登录人查询)
|
||||
@@ -29,7 +29,7 @@ export const getTighteningList = (params) => request.get('/api/tightening/list',
|
||||
// {sn, workOrderNo, stepId, stepName, screwNo, torque, angle, result, operator}
|
||||
export const submitTorque = (data) => request.post('/api/tightening/record', data)
|
||||
|
||||
// 工序完成上报
|
||||
// 工艺完成上报
|
||||
export const reportProcessDone = (data) => request.post('/api/report/process-done', data)
|
||||
|
||||
// 暂存退库上报
|
||||
@@ -109,11 +109,18 @@ export const getBom = (params) => request.get('/api/bom', { params })
|
||||
// 工单查询(选工单带出产品编码/名称):{orderNo}
|
||||
export const queryOrder = (params) => request.get('/api/order/query', { params })
|
||||
|
||||
// 工件追溯(下线完工扫SN展示状态/工序时间线/拧紧):{sn}
|
||||
// 工件追溯(下线完工扫SN展示状态/工艺时间线/拧紧):{sn}
|
||||
export const getTrace = (params) => request.get('/api/trace', { params })
|
||||
|
||||
// 上线建档:{sn, orderNo, workOrderId, processSeq, operator}
|
||||
export const onlineRegister = (data) => request.post('/api/workpiece/online', data)
|
||||
|
||||
// 下线完工入库:{sn, batchItems, serialItems, operator}
|
||||
export const offlineFinish = (data) => request.post('/api/workpiece/done', data)
|
||||
export const offlineFinish = (data) => request.post('/api/workpiece/done', data)
|
||||
|
||||
// ---------- 工位停单 / 恢复接单(代理 MES 内部 API) ----------
|
||||
// 停单/恢复:{stationNo, paused, reason}(paused=true 停止接单,false 恢复)
|
||||
export const pauseStation = (data) => request.post('/api/station/pause', data)
|
||||
|
||||
// 当天停单状态:?date=yyyy-MM-dd(缺省当天)→ [{stationNo,paused,reason,operator}]
|
||||
export const getStationState = (params) => request.get('/api/station/state', { params })
|
||||
Reference in New Issue
Block a user