| @@ -66,13 +66,31 @@ | |||||
| <van-field readonly label="所属银行" v-model="item.bankTypeText" input-align="right" /> | <van-field readonly label="所属银行" v-model="item.bankTypeText" input-align="right" /> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <p class="main_title">上传附件</p> | |||||
| <p class="main_title">上传附件(收据)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | <div class="main_box" style="padding: 5px 0 0 8px;"> | ||||
| <van-uploader v-model="fileList" v-if="fileList==null||fileList.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList" v-if="fileList!=null&&fileList.length>0" :deletable="false" :max-count="fileList.length" ></van-uploader> | |||||
| <van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" :max-count="fileList1.length" ></van-uploader> | |||||
| </div> | </div> | ||||
| <p style="margin-top:20px;padding: 0 10px">附件下载{{fileList&&fileList.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList" :key="index"> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList1" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | |||||
| </van-cell> | |||||
| <p class="main_title">上传附件(发票)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | |||||
| <van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" :max-count="fileList2.length" ></van-uploader> | |||||
| </div> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList2" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | |||||
| </van-cell> | |||||
| <p class="main_title">上传附件(其他)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | |||||
| <van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" :max-count="fileList3.length" ></van-uploader> | |||||
| </div> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList3" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | ||||
| </van-cell> | </van-cell> | ||||
| <div class="main_box examine_box" v-if="this.$route.query.type != 'done'"> | <div class="main_box examine_box" v-if="this.$route.query.type != 'done'"> | ||||
| @@ -156,7 +174,9 @@ | |||||
| ynType:'1' | ynType:'1' | ||||
| }, | }, | ||||
| projectFundType:'', | projectFundType:'', | ||||
| fileList:[], | |||||
| fileList1:[], | |||||
| fileList2:[], | |||||
| fileList3:[], | |||||
| uploadFiles:[], | uploadFiles:[], | ||||
| // 审核意见默认值 | // 审核意见默认值 | ||||
| pass: "true", | 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, | tableId: this.$route.query.id, | ||||
| tableName: "t_yinnong_transfer", | tableName: "t_yinnong_transfer", | ||||
| bizPath: "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 => { | res.rows.map(r => { | ||||
| let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | 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}) | |||||
| }) | }) | ||||
| }) | }) | ||||
| }, | }, | ||||
| @@ -60,13 +60,31 @@ | |||||
| <van-field readonly label="资金用途" v-model="item.remark" input-align="right" label-width="auto"/> | <van-field readonly label="资金用途" v-model="item.remark" input-align="right" label-width="auto"/> | ||||
| </div> | </div> | ||||
| </div> | </div> | ||||
| <p class="main_title">上传附件</p> | |||||
| <p class="main_title">上传附件(收据)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | <div class="main_box" style="padding: 5px 0 0 8px;"> | ||||
| <van-uploader v-model="fileList" v-if="fileList==null||fileList.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList" v-if="fileList!=null&&fileList.length>0" :deletable="false" :max-count="fileList.length" ></van-uploader> | |||||
| <van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" :max-count="fileList1.length" ></van-uploader> | |||||
| </div> | </div> | ||||
| <p style="margin-top:20px;padding: 0 10px">附件下载{{fileList&&fileList.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList" :key="index"> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(收据){{fileList1&&fileList1.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList1" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | |||||
| </van-cell> | |||||
| <p class="main_title">上传附件(发票)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | |||||
| <van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" :max-count="fileList2.length" ></van-uploader> | |||||
| </div> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(发票){{fileList2&&fileList2.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList2" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | |||||
| </van-cell> | |||||
| <p class="main_title">上传附件(其他)</p> | |||||
| <div class="main_box" style="padding: 5px 0 0 8px;"> | |||||
| <van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'"></van-uploader> | |||||
| <van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" :max-count="fileList3.length" ></van-uploader> | |||||
| </div> | |||||
| <p style="margin-top:20px;padding: 0 10px">附件下载(其他){{fileList3&&fileList3.length==0?':暂无可下载文件':''}}</p> | |||||
| <van-cell v-for="(item,index) in fileList3" :key="index"> | |||||
| <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | <a :href="item.url">{{index+1}}.{{item.fileName}}</a> | ||||
| </van-cell> | </van-cell> | ||||
| <div class="main_box examine_box" v-if="this.$route.query.type != 'done'"> | <div class="main_box examine_box" v-if="this.$route.query.type != 'done'"> | ||||
| @@ -118,7 +136,9 @@ | |||||
| maxDate: new Date(2025, 10, 1), | maxDate: new Date(2025, 10, 1), | ||||
| currentDate: new Date(), | currentDate: new Date(), | ||||
| form:{}, | form:{}, | ||||
| fileList:[], | |||||
| fileList1:[], | |||||
| fileList2:[], | |||||
| fileList3:[], | |||||
| capitalExpenditureType:'', | capitalExpenditureType:'', | ||||
| payee:'', | payee:'', | ||||
| bankType:'', | bankType:'', | ||||
| @@ -397,19 +417,40 @@ | |||||
| }) | }) | ||||
| }, | }, | ||||
| getFileList(){ | getFileList(){ | ||||
| let oData= { | |||||
| let oData1= { | |||||
| tableId: this.$route.query.id, | tableId: this.$route.query.id, | ||||
| tableName: "t_yinnong_cash", | tableName: "t_yinnong_cash", | ||||
| bizPath: "yinnong", | 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 => { | res.rows.map(r => { | ||||
| let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | 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}) | |||||
| }) | }) | ||||
| }) | }) | ||||
| }, | }, | ||||