From 2fc58fbb10745abd97168b8da21d4142e11d7f2e Mon Sep 17 00:00:00 2001
From: chenhj <1263187585@qq.com>
Date: 星期四, 18 十二月 2025 13:36:43 +0800
Subject: [PATCH] 新增设备维修保养过程描述,上传对应附件

---
 src/views/procurementManagement/invoiceEntry/index.vue |   42 +++++++++++++++++++++++++++++-------------
 1 files changed, 29 insertions(+), 13 deletions(-)

diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue
index 4fdf385..8ac0455 100644
--- a/src/views/procurementManagement/invoiceEntry/index.vue
+++ b/src/views/procurementManagement/invoiceEntry/index.vue
@@ -7,8 +7,8 @@
               v-model="filters.supplierName"
               placeholder="璇疯緭鍏ュ悕绉版悳绱�"
               clearable
-              :prefix-icon="Search"
-              @change="handleQuery"
+              prefix-icon="Search"
+              @change="getTableData"
           />
         </el-form-item>
         <el-form-item label="閲囪喘璁㈠崟鍙凤細">
@@ -28,13 +28,13 @@
               clearable
           />
         </el-form-item>
-        <el-form-item label="椤圭洰鍚嶇О">
+        <!-- <el-form-item label="椤圭洰鍚嶇О">
           <el-input
               v-model="filters.projectName"
               placeholder="璇疯緭鍏ラ」鐩悕绉�"
               clearable
           />
-        </el-form-item>
+        </el-form-item> -->
         <el-form-item>
           <el-button type="primary" @click="getTableData"> 鎼滅储 </el-button>
           <el-button @click="resetFilters"> 閲嶇疆 </el-button>
@@ -45,10 +45,10 @@
       <div class="actions">
         <div></div>
         <div>
+          <el-button @click="handleExport" style="margin-right: 10px">瀵煎嚭</el-button>
           <el-button type="primary" @click="handleAdd('add')">
             鏂板鐧昏
           </el-button>
-<!--          <el-button @click="handleOut">瀵煎嚭</el-button>-->
 <!--          <el-button type="danger" plain @click="handleDelete">鍒犻櫎</el-button>-->
         </div>
       </div>
@@ -92,7 +92,7 @@
 <script setup>
 import { usePaginationApi } from "@/hooks/usePaginationApi";
 import {delRegistration, gePurchaseListPage} from "@/api/procurementManagement/invoiceEntry.js";
-import { nextTick, onMounted, getCurrentInstance } from "vue";
+import { nextTick, onMounted, getCurrentInstance, ref } from "vue";
 import ExpandTable from "./components/ExpandTable.vue";
 import Modal from "./components/Modal.vue";
 import {ElMessageBox} from "element-plus";
@@ -142,11 +142,11 @@
       prop: "supplierName",
       width:300
     },
-    {
-      label: "椤圭洰鍚嶇О",
-      prop: "projectName",
-      width:400
-    },
+    // {
+    //   label: "椤圭洰鍚嶇О",
+    //   prop: "projectName",
+    //   width:400
+    // },
     {
       label: "褰曞叆浜�",
       prop: "recorderName",
@@ -165,7 +165,7 @@
       },
     },
     {
-      label: "宸插紑绁ㄩ噾棰�(鍏�)",
+      label: "宸叉潵绁ㄩ噾棰�(鍏�)",
       prop: "receiptPaymentAmount",
       width:200,
       formatData: (val) => {
@@ -173,7 +173,7 @@
       },
     },
     {
-      label: "寰呭紑绁ㄩ噾棰�(鍏�)",
+      label: "寰呮潵绁ㄩ噾棰�(鍏�)",
       prop: "unReceiptPaymentAmount",
       width:200,
       formatData: (val) => {
@@ -223,6 +223,22 @@
 			proxy.$modal.msg("宸插彇娑�");
 		});
 };
+
+// 瀵煎嚭閲囪喘鍙拌处
+const handleExport = () => {
+	ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+		confirmButtonText: "纭",
+		cancelButtonText: "鍙栨秷",
+		type: "warning",
+	})
+		.then(() => {
+			proxy.download("/purchase/ledger/exportOne", {}, "鏉ョエ鐧昏.xlsx");
+		})
+		.catch(() => {
+			proxy.$modal.msg("宸插彇娑�");
+		});
+};
+
 // 鍒犻櫎
 const handleDelete = () => {
 	let ids = [];

--
Gitblit v1.9.3