Commit 04272107 by 宋春膨

fix(scjh): 解决任务重复下发问题

- 添加状态检查逻辑避免重复下发任务
- 当选中项中存在已下发状态的任务时阻止提交
- 添加警告提示告知用户请勿重复下发任务
- 保持原有下发功能逻辑不变
parent 04990a39
...@@ -207,6 +207,14 @@ ...@@ -207,6 +207,14 @@
const store = useUserStore() const store = useUserStore()
const ids = selectedRowsData.value.map((x) => x.id) const ids = selectedRowsData.value.map((x) => x.id)
if (code === 'xiafa') { if (code === 'xiafa') {
//如果状态是已下发就直接禁止提交 提示警告
if (selectedRowsData.value.some((x) => x.status === '已下发')) {
notification.warning({
message: '提示信息',
description: '请勿重复下发任务!',
});
return;
}else{
Modal.confirm({ Modal.confirm({
title: '提示信息', title: '提示信息',
icon: createVNode(ExclamationCircleOutlined), icon: createVNode(ExclamationCircleOutlined),
...@@ -226,6 +234,8 @@ ...@@ -226,6 +234,8 @@
}); });
}, },
}); });
}
} }
btnEvent[code](); btnEvent[code]();
......
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