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 @@
+
+
+
+
+
+ {{ row?.contractName || "-" }}
+
+
+ {{ row?.contractCode || "-" }}
+
+
+ {{ row?.lawContractCode || "-" }}
+
+
+ {{ row?.status || "-" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ handleRemoveEleAttach(ele, file)"
+ multiple
+ >
+ 点击或拖拽上传电子档案附件
+ 支持多个附件,当前仅本地上传到业务系统文件服务
+
+
+
+
+
+
+
+
+
+
+
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({