|
|
@ -101,6 +101,9 @@
|
|
|
|
<template #dropdown>
|
|
|
|
<template #dropdown>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-menu>
|
|
|
|
<el-dropdown-item command="detail">查看详情</el-dropdown-item>
|
|
|
|
<el-dropdown-item command="detail">查看详情</el-dropdown-item>
|
|
|
|
|
|
|
|
<el-dropdown-item command="Productioncompleted" v-if="scope.row.status!==4&&scope.row.status!==3">
|
|
|
|
|
|
|
|
生产完成
|
|
|
|
|
|
|
|
</el-dropdown-item>
|
|
|
|
<!-- <el-dropdown-item command="printProjectPlan">
|
|
|
|
<!-- <el-dropdown-item command="printProjectPlan">
|
|
|
|
打印生产计划单
|
|
|
|
打印生产计划单
|
|
|
|
</el-dropdown-item>
|
|
|
|
</el-dropdown-item>
|
|
|
@ -182,7 +185,42 @@ const handleCommand = async (command, id, code) => {
|
|
|
|
case 'A3printProjectPlan':
|
|
|
|
case 'A3printProjectPlan':
|
|
|
|
A3printHandle(id)
|
|
|
|
A3printHandle(id)
|
|
|
|
break
|
|
|
|
break
|
|
|
|
|
|
|
|
case 'Productioncompleted':
|
|
|
|
|
|
|
|
outHandle(id)
|
|
|
|
|
|
|
|
break
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// 生产完成
|
|
|
|
|
|
|
|
const production =ref({
|
|
|
|
|
|
|
|
id:undefined,
|
|
|
|
|
|
|
|
status: 3,
|
|
|
|
|
|
|
|
projectId:0
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
const outHandle=(id)=>{
|
|
|
|
|
|
|
|
production.value.id=id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ElMessageBox.confirm('是否确认生产完成?', '提示', {
|
|
|
|
|
|
|
|
confirmButtonText: '确认',
|
|
|
|
|
|
|
|
cancelButtonText: '取消',
|
|
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.then(async () => {
|
|
|
|
|
|
|
|
const data = production.value
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
await PlanApi.updatePlanStauts(data)
|
|
|
|
|
|
|
|
ElMessage({
|
|
|
|
|
|
|
|
type: 'success',
|
|
|
|
|
|
|
|
message: '生产完成'
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
getList()
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
.catch(() => {
|
|
|
|
|
|
|
|
// ElMessage({
|
|
|
|
|
|
|
|
// type: 'info',
|
|
|
|
|
|
|
|
// message: '取消',
|
|
|
|
|
|
|
|
// })
|
|
|
|
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// 打印启动单
|
|
|
|
// 打印启动单
|
|
|
|