Commit e3a7f46a by 张恒

fix(scgl): 解决生产计划和生产任务编辑权限控制问题

- 在生产计划模块中添加状态检查,非草稿状态的任务无法编辑并显示提示
- 在生产任务模块中添加状态检查,非草稿状态的任务无法编辑并显示提示
- 集成Modal警告对话框用于用户状态提醒
- 保持原有编辑功能逻辑不变,仅增加前置状态验证
parent bc63fe15
......@@ -289,6 +289,14 @@
}
async function handleEdit(record: Recordable) {
const hasNonDraft = (record.zt !== '草稿');
if (hasNonDraft) {
Modal.warning({
title: '提示',
content: '已下发任务无法编辑',
});
return;
}
let field = 'id';
try {
let hasIn = handleHasEnableLocke(buttonConfigs.value, 'edit');
......
......@@ -234,6 +234,14 @@
async function handleEdit(record: Recordable) {
const hasNonDraft = (record.zt !== '草稿');
if (hasNonDraft) {
Modal.warning({
title: '提示',
content: '非草稿状态无法编辑',
});
return;
}
let field = 'id';
try {
let hasIn = handleHasEnableLocke(buttonConfigs.value, 'edit');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment