Commit bc63fe15 by 张恒

feat(scgl): 更新生产计划下发功能

- 添加了下发前的确认对话框
- 集成了产品输出相关API接口
- 重构了下发逻辑以支持异步操作
- 改进了用户交互体验和错误提示机制
parent dfc0ee13
...@@ -119,6 +119,7 @@ ...@@ -119,6 +119,7 @@
import { useConcurrentLock } from '/@/hooks/web/useConcurrentLock'; import { useConcurrentLock } from '/@/hooks/web/useConcurrentLock';
import {rksqMesProductOutput} from "/@/api/scgl/ccmx";
const pageParamsInfo = ref<any>({}); const pageParamsInfo = ref<any>({});
const { const {
...@@ -395,6 +396,13 @@ ...@@ -395,6 +396,13 @@
} }
function handleXiafa(record: Recordable) { function handleXiafa(record: Recordable) {
Modal.confirm({
title: t('提示信息'),
icon: createVNode(ExclamationCircleOutlined),
content: t('是否下发?'),
okText: t('确认'),
cancelText: t('取消'),
async onOk() {
if (selectedKeys.value.length === 0) { if (selectedKeys.value.length === 0) {
Modal.warning({ Modal.warning({
title: '提示', title: '提示',
...@@ -419,6 +427,10 @@ ...@@ -419,6 +427,10 @@
description: '下发成功!', description: '下发成功!',
}); });
}); });
},
onCancel() {},
});
} }
function getLessActions(record: Recordable) { function getLessActions(record: Recordable) {
......
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