From 47a12cdb95cca6a749c931cb9cce9b7b53582523 Mon Sep 17 00:00:00 2001
From: yujk <990961482@qq.com>
Date: Sat, 23 Apr 2022 15:03:21 +0800
Subject: [PATCH] =?UTF-8?q?=E9=93=B6=E5=86=9C=E7=8B=AC=E7=AB=8Bapp?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../paymentApproval/approvalApproval.vue | 80 ++++++++++++-------
.../paymentApproval/approvalApproval11.vue | 67 +++++++++++++---
2 files changed, 107 insertions(+), 40 deletions(-)
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
index 207c21a6..53cb76d2 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval.vue
@@ -66,13 +66,31 @@
-
+ 附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}
+
+ {{index+1}}.{{item.fileName}}
+
+ 上传附件(发票)
+
+
+
+
+ 附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}
+
+ {{index+1}}.{{item.fileName}}
+
+ 上传附件(其他)
+
+
+
+
+ 附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}
+
{{index+1}}.{{item.fileName}}
@@ -156,7 +174,9 @@
ynType:'1'
},
projectFundType:'',
- fileList:[],
+ fileList1:[],
+ fileList2:[],
+ fileList3:[],
uploadFiles:[],
// 审核意见默认值
pass: "true",
@@ -231,35 +251,41 @@
}
});
},
- beforeRead(file) {
- this.uploadFiles.push(file.file);
- },
- deleteFile(file){
- console.log(file)
- this.uploadFiles.map((response,index) => {
- if(file.file == response){
- this.uploadFiles.splice(index,1)
- }
+ getFileList(){
+ let oData1= {
+ tableId: this.$route.query.id,
+ tableName: "t_yinnong_transfer",
+ bizPath: "transfer",
+ fileType: "1",
+ }
+ attachmentList(oData1).then(res => {
+ res.rows.map(r => {
+ let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
+ this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ })
})
- if(file.id){
- systemAttachment(file.id).then((res) => {
- });
+ let oData2= {
+ tableId: this.$route.query.id,
+ tableName: "t_yinnong_transfer",
+ bizPath: "transfer",
+ fileType: "2",
}
- },
- getFileList(){
- let oData= {
+ attachmentList(oData2).then(res => {
+ res.rows.map(r => {
+ let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
+ this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ })
+ })
+ let oData3= {
tableId: this.$route.query.id,
tableName: "t_yinnong_transfer",
bizPath: "transfer",
- fileType: "",
+ fileType: "3",
}
- attachmentList(oData).then(res => {
- console.log(res)
- console.log(location.protocol+"//"+location.host+request.defaults.baseURL)
+ attachmentList(oData1).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,"fileName":r.fileName})
- console.log(r)
+ this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
})
})
},
diff --git a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
index 00eac7db..b4aa0042 100644
--- a/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
+++ b/src/views/yinnong/bankAgriculture/paymentApproval/approvalApproval11.vue
@@ -60,13 +60,31 @@
- 上传附件
+ 上传附件(收据)
-
-
+
+
- 附件下载{{fileList&&fileList.length==0?':暂无可下载文件':''}}
-
+ 附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}
+
+ {{index+1}}.{{item.fileName}}
+
+ 上传附件(发票)
+
+
+
+
+ 附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}
+
+ {{index+1}}.{{item.fileName}}
+
+ 上传附件(其他)
+
+
+
+
+ 附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}
+
{{index+1}}.{{item.fileName}}
@@ -118,7 +136,9 @@
maxDate: new Date(2025, 10, 1),
currentDate: new Date(),
form:{},
- fileList:[],
+ fileList1:[],
+ fileList2:[],
+ fileList3:[],
capitalExpenditureType:'',
payee:'',
bankType:'',
@@ -397,19 +417,40 @@
})
},
getFileList(){
- let oData= {
+ let oData1= {
tableId: this.$route.query.id,
tableName: "t_yinnong_cash",
bizPath: "yinnong",
- fileType: "",
+ fileType: "1",
}
- attachmentList(oData).then(res => {
- console.log(res)
- console.log(location.protocol+"//"+location.host+request.defaults.baseURL)
+ attachmentList(oData1).then(res => {
+ res.rows.map(r => {
+ let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
+ this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ })
+ })
+ let oData2= {
+ tableId: this.$route.query.id,
+ tableName: "t_yinnong_cash",
+ bizPath: "yinnong",
+ fileType: "2",
+ }
+ attachmentList(oData2).then(res => {
+ res.rows.map(r => {
+ let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL
+ this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
+ })
+ })
+ let oData3= {
+ tableId: this.$route.query.id,
+ tableName: "t_yinnong_cash",
+ bizPath: "yinnong",
+ fileType: "3",
+ }
+ attachmentList(oData1).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,"fileName":r.fileName})
- console.log(r)
+ this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id,"fileName":r.fileName})
})
})
},