This commit is contained in:
吴红兵
2026-03-08 15:17:13 +08:00
parent a0218f1c8f
commit 5a53648ee7
10 changed files with 61 additions and 2207 deletions

View File

@@ -89,6 +89,7 @@
<script setup lang="ts" name="PurchasingImplement">
import { ref, computed, onMounted, onUnmounted } from 'vue';
import { ElMessageBox } from 'element-plus';
import { getObj, assignAgent, sendToAgent, revokeAgent, saveImplementType } from '/@/api/purchase/purchasingrequisition';
import { getPage as getAgentPage } from '/@/api/purchase/purchaseagent';
import { useMessage } from '/@/hooks/message';
@@ -276,13 +277,30 @@ const handleAssignAgentDesignated = async () => {
}
};
/** 发送招标代理 */
/** 发送招标代理 - 带确认弹窗 */
const handleSendToAgent = async () => {
const id = applyRow.value?.id ?? applyId.value;
if (!id) {
useMessage().warning('无法获取申请单ID');
return;
}
// 确认弹窗
try {
await ElMessageBox.confirm(
'是否确认发送至招标代理启动招标文件审核流程?',
'确认发送',
{
confirmButtonText: '确认',
cancelButtonText: '取消',
type: 'warning',
}
);
} catch {
// 用户取消
return;
}
sendToAgentSubmitting.value = true;
try {
await sendToAgent(id);