Commit 003b8592 by sunhaiwei

生产工单编辑的时候添加权限校验

parent ad8aa6ba
...@@ -230,6 +230,14 @@ ...@@ -230,6 +230,14 @@
async function handleEdit(record: Recordable) { async function handleEdit(record: Recordable) {
const hasNonDraft = (record.zt !== '草稿' && record.zt !== '未开始');
if (hasNonDraft) {
Modal.warning({
title: '提示',
content: '进行中或者已完成的工单无法编辑',
});
return;
}
let field = 'id'; let field = 'id';
try { try {
let hasIn = handleHasEnableLocke(buttonConfigs.value, 'edit'); 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