fix
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user