08052026
This commit is contained in:
parent
b6ede42e5d
commit
59890053b9
@ -52,6 +52,9 @@ export interface OrderItem {
|
||||
routeCode?: string
|
||||
|
||||
workshopId?: number | null
|
||||
|
||||
/** 开工后关联的执行侧 mes_order_item.id */
|
||||
orderItemId?: number | null
|
||||
}
|
||||
|
||||
export interface KingdeePrdMo {
|
||||
@ -131,8 +134,8 @@ export const orderItemApi = {
|
||||
return request({ url: `/biz/orderItem/${id}/startWork`, method: 'post' })
|
||||
},
|
||||
|
||||
/** 按工艺路线编码查询工艺路线(含工序);可带 orderItemId 精确匹配 */
|
||||
getRoute(params: { routeCode?: string; orderItemId?: number | string }) {
|
||||
/** 按工艺路线编码查询;orderItemId/planId 均为计划订单 id(mes_order_item_plan.id) */
|
||||
getRoute(params: { routeCode?: string; orderItemId?: number | string; planId?: number | string }) {
|
||||
return request({ url: '/biz/orderItem/route', method: 'get', params })
|
||||
},
|
||||
//根据生产编号查询预生产订单
|
||||
|
||||
@ -619,7 +619,7 @@ async function openRouteDrawer(row: any) {
|
||||
try {
|
||||
const data: any = await orderItemApi.getRoute({
|
||||
routeCode: code,
|
||||
orderItemId: row.id,
|
||||
planId: row.id,
|
||||
})
|
||||
if (data) {
|
||||
routeDetail.value = data
|
||||
@ -1278,7 +1278,7 @@ function handleDelete(row: OrderItem) {
|
||||
function handleStartWork(row: OrderItem) {
|
||||
dialog.warning({
|
||||
title: '提示',
|
||||
content: `确定开工订单【${row.orderCode || row.name}】?开工后将生成工单。`,
|
||||
content: `确定开工订单【${row.orderCode || row.name}】?开工后将生成执行订单与工单,派工请在工单侧操作。`,
|
||||
positiveText: '确定',
|
||||
negativeText: '取消',
|
||||
onPositiveClick: async () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user