Commit 8f19fea9 by sunhaiwei

生产任务编辑的时候添加权限校验

parent 003b8592
...@@ -234,11 +234,11 @@ ...@@ -234,11 +234,11 @@
async function handleEdit(record: Recordable) { async function handleEdit(record: Recordable) {
const hasNonDraft = (record.zt !== '草稿'); const hasNonDraft = (record.zt !== '草稿' && record.zt !== '未开始');
if (hasNonDraft) { if (hasNonDraft) {
Modal.warning({ Modal.warning({
title: '提示', title: '提示',
content: '非草稿状态无法编辑', content: '开工之后无法编辑',
}); });
return; return;
} }
......
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