From 644f9b827ac28d39f32c626712d5c574fe9acbf1 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 16 十二月 2025 17:23:01 +0800
Subject: [PATCH] 1.海川开心-入库管理-成品入库添加一个删除功能

---
 src/views/procurementManagement/procurementInvoiceLedger/index.vue |   33 ++++++++++++---------------------
 1 files changed, 12 insertions(+), 21 deletions(-)

diff --git a/src/views/procurementManagement/procurementInvoiceLedger/index.vue b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
index 3de88ec..5c01e3a 100644
--- a/src/views/procurementManagement/procurementInvoiceLedger/index.vue
+++ b/src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -63,23 +63,8 @@
             <el-button link :icon="Files" type="danger"> 闄勪欢 </el-button>
             <template #dropdown>
               <el-dropdown-menu>
-                <el-dropdown-item
-                  v-if="row.commonFiles.length !== 0"
-                  :icon="Download"
-                  command="download"
-                >
-                  涓嬭浇
-                </el-dropdown-item>
                 <el-dropdown-item :icon="Upload" command="upload">
                   涓婁紶
-                </el-dropdown-item>
-                <el-dropdown-item
-                  v-if="row.commonFiles.length !== 0"
-                  :icon="Delete"
-                  command="delete"
-                  style="color: #f56c6c;"
-                >
-                  鍒犻櫎
                 </el-dropdown-item>
               </el-dropdown-menu>
             </template>
@@ -88,14 +73,15 @@
         <template #operation="{ row }">
           <el-button
             type="primary"
-            text
+						link
             @click="openEdit(row)"
           >
             缂栬緫
           </el-button>
+					<el-button link type="primary" size="small" @click="downLoadFile(row)">闄勪欢</el-button>
           <el-button
             type="primary"
-            text
+						link
             @click="handleDelete(row)"
           >
             鍒犻櫎
@@ -103,6 +89,7 @@
         </template>
       </PIMTable>
     </div>
+		<FileList ref="fileListRef" />
     <UploadModal ref="modalRef" @uploadSuccess="uploadSuccess"></UploadModal>
     <EditModal ref="editmodalRef" @success="getTableData"></EditModal>
   </div>
@@ -130,9 +117,8 @@
 import UploadModal from "./Modal/UploadModal.vue";
 import EditModal from "./Modal/EditModal.vue";
 import useUserStore from "@/store/modules/user.js";
-import {delInvoiceLedgerByRegProductId} from "@/api/salesManagement/invoiceLedger.js";
 import dayjs from "dayjs";
-const userStore = useUserStore();
+import FileList from "./fileList.vue";
 
 defineOptions({
   name: "鏉ョエ鍙拌处",
@@ -236,7 +222,7 @@
     },
     {
       fixed: "right",
-      width: 150,
+      width: 190,
       label: "鎿嶄綔",
       dataType: "slot",
       slot: "operation",
@@ -272,7 +258,12 @@
 const handleSelectionChange = (val) => {
   multipleVal.value = val;
 };
-
+//闄勪欢鐩稿叧
+const fileListRef = ref(null)
+//鏌ョ湅闄勪欢
+const downLoadFile = (row) => {
+	fileListRef.value.open(row.commonFiles, row.id)
+}
 // 瀵煎嚭
 const handleOut = () => {
   ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {

--
Gitblit v1.9.3