From 636e2cae8b77fd62496ba4d2006965f6376668f2 Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期二, 18 十一月 2025 17:41:35 +0800
Subject: [PATCH] yys 1.销售、采购关于发票的改成不必填 2.回款类型字典改-下 3.销售台账、采购台账可能不开票直接回款 4.销售台账要直接查产品名字 5.指标维护-内控值为非必填 6.所有税率都自己填,有时候可能不含税

---
 src/views/procurementManagement/invoiceEntry/index.vue |   27 ++++++++++++++++++++++-----
 1 files changed, 22 insertions(+), 5 deletions(-)

diff --git a/src/views/procurementManagement/invoiceEntry/index.vue b/src/views/procurementManagement/invoiceEntry/index.vue
index 256377f..3d34f26 100644
--- a/src/views/procurementManagement/invoiceEntry/index.vue
+++ b/src/views/procurementManagement/invoiceEntry/index.vue
@@ -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";
@@ -117,9 +117,10 @@
   resetFilters,
   onCurrentChange,
 } = usePaginationApi(
-  gePurchaseListPage,
+    gePurchaseListPage,
   {
     purchaseContractNumber: undefined,
+    isInvoice:1,
   },
   [
     {
@@ -165,7 +166,7 @@
       },
     },
     {
-      label: "宸插紑绁ㄩ噾棰�(鍏�)",
+      label: "宸叉潵绁ㄩ噾棰�(鍏�)",
       prop: "receiptPaymentAmount",
       width:200,
       formatData: (val) => {
@@ -173,7 +174,7 @@
       },
     },
     {
-      label: "寰呭紑绁ㄩ噾棰�(鍏�)",
+      label: "寰呮潵绁ㄩ噾棰�(鍏�)",
       prop: "unReceiptPaymentAmount",
       width:200,
       formatData: (val) => {
@@ -223,6 +224,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