From feea9dfd47be6256271975fe23e1626e997c51bd Mon Sep 17 00:00:00 2001
From: QI_YUJIE <2878090898@qq.com>
Date: Sat, 10 Aug 2024 16:52:58 +0800
Subject: [PATCH] =?UTF-8?q?task=20=E9=93=B6=E5=86=9C=E7=9B=B4=E8=81=94=20?=
=?UTF-8?q?=E8=B5=84=E9=87=91=E7=94=B3=E8=AF=B7=E5=AE=A1=E6=89=B9=E6=9F=A5?=
=?UTF-8?q?=E7=9C=8B=E9=99=84=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../cashExpense/cashExpenseApproval.vue | 34 +++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/src/views/yinnong/bankAgriculture/cashExpense/cashExpenseApproval.vue b/src/views/yinnong/bankAgriculture/cashExpense/cashExpenseApproval.vue
index e4848d47..dd5cc3bb 100644
--- a/src/views/yinnong/bankAgriculture/cashExpense/cashExpenseApproval.vue
+++ b/src/views/yinnong/bankAgriculture/cashExpense/cashExpenseApproval.vue
@@ -65,6 +65,19 @@
@cancel="showTemplate = false"
/>
+
+
+
+ 查看附件
+
+
+
+
+
+ 附件
+
+
+
@@ -96,6 +109,8 @@
import {selectApprovalByTemplateId, listTemplate, approval} from "@/api/onlineHome/bankAgriculture/paymentApproval";
import { getCashExpense } from "@/api/onlineHome/bankAgriculture/cashExpense";
+import {attachmentList} from "@/api/sunVillage_info/fixedAssets";
+import request from "@/utils/request";
export default {
name: "cashExpenseApproval",
@@ -119,6 +134,9 @@ export default {
// 审核意见默认值
pass: "true",
comment: "同意",
+
+ showAttachment: false,
+ fileList: [],
};
},
created() {
@@ -215,6 +233,22 @@ export default {
goFlow(){
this.$router.push({path: '/yinnong/cashExpenseProcess', query: { id: this.form.id, templateId: this.form.approvalTemplateId }});
},
+ openAttachment(id) {
+ this.showAttachment = true;
+ this.fileList = [];
+ let params = {
+ tableId: id,
+ tableName: "t_yinnong_cashexpense",
+ bizPath: "yinnong",
+ fileType: '',
+ };
+ attachmentList(params).then(res => {
+ res.rows.map(r => {
+ let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL;
+ this.fileList.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id});
+ });
+ });
+ },
}
}