This commit is contained in:
tzy 2026-08-05 10:39:08 +08:00
parent b6ede42e5d
commit 59890053b9
2 changed files with 7 additions and 4 deletions

View File

@ -52,6 +52,9 @@ export interface OrderItem {
routeCode?: string routeCode?: string
workshopId?: number | null workshopId?: number | null
/** 开工后关联的执行侧 mes_order_item.id */
orderItemId?: number | null
} }
export interface KingdeePrdMo { export interface KingdeePrdMo {
@ -131,8 +134,8 @@ export const orderItemApi = {
return request({ url: `/biz/orderItem/${id}/startWork`, method: 'post' }) return request({ url: `/biz/orderItem/${id}/startWork`, method: 'post' })
}, },
/** 按工艺路线编码查询工艺路线(含工序);可带 orderItemId 精确匹配 */ /** 按工艺路线编码查询orderItemId/planId 均为计划订单 idmes_order_item_plan.id */
getRoute(params: { routeCode?: string; orderItemId?: number | string }) { getRoute(params: { routeCode?: string; orderItemId?: number | string; planId?: number | string }) {
return request({ url: '/biz/orderItem/route', method: 'get', params }) return request({ url: '/biz/orderItem/route', method: 'get', params })
}, },
//根据生产编号查询预生产订单 //根据生产编号查询预生产订单

View File

@ -619,7 +619,7 @@ async function openRouteDrawer(row: any) {
try { try {
const data: any = await orderItemApi.getRoute({ const data: any = await orderItemApi.getRoute({
routeCode: code, routeCode: code,
orderItemId: row.id, planId: row.id,
}) })
if (data) { if (data) {
routeDetail.value = data routeDetail.value = data
@ -1278,7 +1278,7 @@ function handleDelete(row: OrderItem) {
function handleStartWork(row: OrderItem) { function handleStartWork(row: OrderItem) {
dialog.warning({ dialog.warning({
title: '提示', title: '提示',
content: `确定开工订单【${row.orderCode || row.name}】?开工后将生成工单。`, content: `确定开工订单【${row.orderCode || row.name}】?开工后将生成执行订单与工单,派工请在工单侧操作`,
positiveText: '确定', positiveText: '确定',
negativeText: '取消', negativeText: '取消',
onPositiveClick: async () => { onPositiveClick: async () => {