From ca1cbb4d2ffb48095d5b2625788efd4e08a5eff8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 20 一月 2026 14:07:24 +0800
Subject: [PATCH] 湟水峡 1.采购模块不要项目名称 2.加一个有待回款登记的提示 3.回款登记、付款登记改成和销售订单价格关联,并且可以多个一起回款或付款 4.合同管理不要下载合同了,跟合同相关的字段可以去掉了

---
 src/views/personnelManagement/contractManagement/index.vue |   54 ++----------------------------------------------------
 1 files changed, 2 insertions(+), 52 deletions(-)

diff --git a/src/views/personnelManagement/contractManagement/index.vue b/src/views/personnelManagement/contractManagement/index.vue
index 10cd508..30aefb9 100644
--- a/src/views/personnelManagement/contractManagement/index.vue
+++ b/src/views/personnelManagement/contractManagement/index.vue
@@ -74,11 +74,10 @@
 import { onMounted, ref, reactive, toRefs, getCurrentInstance, nextTick } from "vue";
 import FormDia from "@/views/personnelManagement/contractManagement/components/formDia.vue";
 import { ElMessageBox } from "element-plus";
-import { staffOnJobListPage, staffOnJobExportCopy } from "@/api/personnelManagement/employeeRecord.js";
+import { staffOnJobListPage } from "@/api/personnelManagement/employeeRecord.js";
 import dayjs from "dayjs";
 import { getToken } from "@/utils/auth.js";
 import FilesDia from "./filesDia.vue";
-import axios from "axios";
 const data = reactive({
   searchForm: {
     staffName: "",
@@ -184,7 +183,7 @@
     label: "鎿嶄綔",
     align: "center",
     fixed: 'right',
-    width: 180,
+    width: 130,
     operation: [
       {
         name: "璇︽儏",
@@ -198,13 +197,6 @@
         type: "text",
         clickFun: (row) => {
           openFilesFormDia(row);
-        },
-      },
-      {
-        name: "涓嬭浇鍚堝悓",
-        type: "text",
-        clickFun: (row) => {
-          handleDownloadContract(row);
         },
       },
     ],
@@ -284,48 +276,6 @@
     })
     .catch(() => {
       proxy.$modal.msg("宸插彇娑�");
-    });
-};
-// 涓嬭浇鍚堝悓
-const handleDownloadContract = (row) => {
-  const fileName = `${row.staffName || "鍚堝悓"}鍔冲姩鍚堝悓.docx`;
-  proxy.$modal?.loading?.("姝e湪鐢熸垚鍚堝悓锛岃绋嶅��...");
-  staffOnJobExportCopy({ ...row })
-    .then((res) => {
-      proxy.$modal?.closeLoading?.();
-      if (res?.code === 200 && res?.msg) {
-        const javaApi = proxy.javaApi || import.meta.env.VITE_JAVA_API || "";
-        const downloadPath = res.msg.startsWith("/") ? res.msg : `/${res.msg}`;
-        const downloadUrl = `${javaApi}${downloadPath}`;
-        axios({
-          url: downloadUrl,
-          method: "get",
-          responseType: "blob",
-          headers: { Authorization: "Bearer " + getToken() }
-        })
-          .then((resp) => {
-            const blob = new Blob([resp.data], {
-              type: "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
-            });
-            const url = window.URL.createObjectURL(blob);
-            const link = document.createElement("a");
-            link.href = url;
-            link.download = fileName;
-            document.body.appendChild(link);
-            link.click();
-            document.body.removeChild(link);
-            window.URL.revokeObjectURL(url);
-          })
-          .catch(() => {
-            proxy.$modal.msgError("鍚堝悓涓嬭浇澶辫触锛岃绋嶅悗閲嶈瘯");
-          });
-      } else {
-        proxy.$modal.msgError(res?.msg || "鍚堝悓鐢熸垚澶辫触");
-      }
-    })
-    .catch(() => {
-      proxy.$modal?.closeLoading?.();
-      proxy.$modal.msgError("鍚堝悓鐢熸垚澶辫触锛岃绋嶅悗閲嶈瘯");
     });
 };
 const upload = reactive({

--
Gitblit v1.9.3