From 8079ae9231ab4236b97be71f9f8bbe2ca3a445bb Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 03 十一月 2026 16:30:22 +0800
Subject: [PATCH] feat(input-invoice): 进项发票增加附件查看/上传入口
---
src/views/financialManagement/payable/input-invoice.vue | 22 ++++++++++++++++++++--
1 files changed, 20 insertions(+), 2 deletions(-)
diff --git a/src/views/financialManagement/payable/input-invoice.vue b/src/views/financialManagement/payable/input-invoice.vue
index ae40709..bdede63 100644
--- a/src/views/financialManagement/payable/input-invoice.vue
+++ b/src/views/financialManagement/payable/input-invoice.vue
@@ -76,6 +76,7 @@
</template>
<template #operation="{ row }">
<el-button type="primary" link @click="view(row)">鏌ョ湅</el-button>
+ <el-button type="primary" link @click="openFileDialog(row)">闄勪欢</el-button>
<el-button type="warning" link @click="handleCancel(row)" v-if="isNormalStatus(row.status)">浣滃簾</el-button>
<el-button type="danger" link @click="handleDelete(row)">鍒犻櫎</el-button>
</template>
@@ -283,11 +284,18 @@
<el-button @click="inboundSelectVisible = false">鍙栨秷</el-button>
</template>
</el-dialog>
+
+ <FileList
+ v-if="fileDialogVisible"
+ v-model:visible="fileDialogVisible"
+ record-type="account_purchase_invoice"
+ :record-id="currentRecordId"
+ />
</div>
</template>
<script setup>
-import { ref, reactive, computed, onMounted, nextTick, getCurrentInstance } from "vue";
+import { ref, reactive, computed, onMounted, nextTick, getCurrentInstance, defineAsyncComponent } from "vue";
import { ElMessage, ElMessageBox } from "element-plus";
import FormDialog from "@/components/Dialog/FormDialog.vue";
import { getOptions } from "@/api/procurementManagement/procurementLedger.js";
@@ -298,6 +306,8 @@
cancelAccountPurchaseInvoice,
deleteAccountPurchaseInvoice,
} from "@/api/financialManagement/accountPurchaseInvoice.js";
+
+const FileList = defineAsyncComponent(() => import("@/components/Dialog/FileList.vue"));
defineOptions({
name: "杩涢」鍙戠エ",
@@ -328,7 +338,7 @@
{ label: "浠风◣鍚堣", prop: "totalAmount", dataType: "slot", slot: "totalAmount" },
{ label: "鍙戠エ绫诲瀷", prop: "invoiceType", width: "130" },
{ label: "鐘舵��", prop: "status", dataType: "slot", slot: "status", width: "90", align: "center" },
- { label: "鎿嶄綔", prop: "operation", dataType: "slot", slot: "operation", width: "200", fixed: "right" },
+ { label: "鎿嶄綔", prop: "operation", dataType: "slot", slot: "operation", width: "240", fixed: "right" },
];
const dataList = ref([]);
@@ -729,6 +739,14 @@
dialogVisible.value = true;
};
+const fileDialogVisible = ref(false);
+const currentRecordId = ref(0);
+
+const openFileDialog = (row) => {
+ currentRecordId.value = row.id;
+ fileDialogVisible.value = true;
+};
+
const view = (row) => {
isView.value = true;
dialogTitle.value = "鏌ョ湅鍙戠エ";
--
Gitblit v1.9.3