From 974f6c7a5b03649ccbf2eb53857cffad6ddc57b6 Mon Sep 17 00:00:00 2001 From: zhouxiaofeng <2946471396@qq.com> Date: Mon, 8 Jun 2026 16:15:58 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=92=E6=A1=A3=E5=8A=9F=E8=83=BD=E5=AE=8C?= =?UTF-8?q?=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/ContractArchiveModal.vue | 447 ++++++++++++++++++ src/views/contract/launch/index.vue | 34 +- 2 files changed, 461 insertions(+), 20 deletions(-) create mode 100644 src/views/contract/launch/components/ContractArchiveModal.vue diff --git a/src/views/contract/launch/components/ContractArchiveModal.vue b/src/views/contract/launch/components/ContractArchiveModal.vue new file mode 100644 index 0000000..6cf60c7 --- /dev/null +++ b/src/views/contract/launch/components/ContractArchiveModal.vue @@ -0,0 +1,447 @@ + + + + + diff --git a/src/views/contract/launch/index.vue b/src/views/contract/launch/index.vue index 4ba636a..227cea8 100644 --- a/src/views/contract/launch/index.vue +++ b/src/views/contract/launch/index.vue @@ -116,7 +116,7 @@ 上传已签署版本 测试签署完成 测试采集 - 测试归档 + 归档 终止 删除 @@ -142,6 +142,7 @@ + @@ -157,9 +158,9 @@ import { Input, message, Modal } from "ant-design-vue"; import ContractPartyPlaceholderModal from "./components/ContractPartyPlaceholderModal.vue"; import MixedSignModal from "./components/mixedSignModal.vue"; import UploadSignedModal from "./components/UploadSignedModal.vue"; +import ContractArchiveModal from "./components/ContractArchiveModal.vue"; import { getContractTypeSimpleLabel } from "./contractLaunchOptions.js"; import { - archiveLaunch, copyLaunchDraft, createLaunchChangeDraft, createLaunchDraft, @@ -197,6 +198,7 @@ const toolbarRef = ref(null); const contractModalRef = ref(null); const mixedSignModalRef = ref(null); const uploadSignedModalRef = ref(null); +const contractArchiveModalRef = ref(null); const total = ref(0); const loading = ref(false); @@ -685,27 +687,19 @@ function handleMockCollect(row) { } function handleArchive(row) { - Modal.confirm({ - title: "确认归档合同", - content: h("div", [ - h("p", `确认将合同【${row.contractName}】归档?`), - h("p", { style: { color: "#999", fontSize: "12px" } }, "归档后合同进入「已完成」状态,全生命周期结束。"), - ]), - okText: "确认归档", - cancelText: "取消", - onOk: () => - archiveLaunch(row.id, {}).then((res) => { - if (!isSuccessResponse(res)) { - message.error(getResponseMessage(res, "测试归档失败")); - return; - } - message.success("测试归档完成,合同已流转到已完成"); - getList(); - }), - icon: null, + getLaunchDetail(row.id).then((res) => { + if (!isSuccessResponse(res) || !getDataResult(res)) { + message.error(getResponseMessage(res, "获取归档详情失败")); + return; + } + contractArchiveModalRef.value?.showModal(getDataResult(res)); }); } +function handleArchiveDone() { + getList(); +} + function handleTerminate(row) { let terminateReason = ""; Modal.confirm({