Browse Source

成本分配表-附件上传

jbb 1 year ago
parent
commit
7b118ab79b
1 changed files with 13 additions and 1 deletions
  1. 13 1
      src/views/reportForms/cost-allocation-table.vue

+ 13 - 1
src/views/reportForms/cost-allocation-table.vue

@@ -524,6 +524,18 @@ export default {
             this.PrintButton = false
              this.loading = false
             this.detailsPlanNum = res.result //所有详情
+            var fileList =  this.detailsPlanNum.attachs!==''?this.detailsPlanNum.attachs.split(","):[]
+              this.fileList = []
+              if(fileList.length!==0){
+                fileList.map(item=>{
+                  this.fileList.push({
+                    uid: '-1',
+                    name: item,
+                    status: 'done',
+                    url:'http://www.myfitt.cn:18001/jeecg-boot/sys/common/static' +'/'+item
+                  })
+              })
+              }
             //调整表头格式
             this.adjustingHeader()
             this.accidentListData = res.result.syCostAllocationAccidentList //事故单
@@ -626,7 +638,7 @@ export default {
         if(data.fileList.length>this.fileList.length&&data.file.status=='uploading'){ 
           var that =this
           setTimeout(()=>{
-            that.onSearch(this.detailsPlanNum.planNum,'query')
+            that.onSearch('query')
         },1000)
           
         }