查看
+
复制
编辑
提交法务
审批记录
@@ -156,6 +157,7 @@ import MixedSignModal from "./components/mixedSignModal.vue";
import { getContractTypeSimpleLabel } from "./contractLaunchOptions.js";
import {
archiveLaunch,
+ copyLaunchDraft,
createLaunchDraft,
deleteLaunchRecord,
getLaunchDetail,
@@ -403,6 +405,19 @@ function handleEdit(row) {
});
}
+function handleCopy(row) {
+ copyLaunchDraft(row.id).then((res) => {
+ if (!isSuccessResponse(res) || !getDataResult(res)) {
+ message.error(getResponseMessage(res, "复制合同失败"));
+ return;
+ }
+ const copiedRecord = getDataResult(res);
+ message.success("合同已复制为新草稿,请继续完善后保存");
+ getList();
+ contractModalRef.value?.showModal(copiedRecord, "edit");
+ });
+}
+
function handleSubmit(row) {
submitLaunchRecord(row.id).then((res) => {
if (!isSuccessResponse(res)) {