licp
2024-11-26 e6c3fccc9e412e79964a6dc2dae4c3da0c80095c
src/components/view/b1-inspection-order.vue
@@ -489,6 +489,9 @@
               </el-row>
            </span>
      </el-dialog>
    <el-dialog title="报告下载" :visible.sync="downVisible" width="440px">
      <p v-for="(item,index) in downList" :key="index" style="text-align: left;">样品编号:{{item.codeUrl}} <el-button type="text" icon="el-icon-download" @click="handleDown(item)">报告下载</el-button></p>
    </el-dialog>
   </div>
</template>
@@ -571,7 +574,7 @@
                  type: 'text',
                  method: 'download',
                  disabFun: (row, index) => {
                     return row.state != 4 || row.reportId == null
                     return !row.reportDtos||row.reportDtos.length==0
                  }
               }, {
                  id: 'verify',
@@ -810,6 +813,8 @@
        currentRole:'',
        BZinfo:[],
        BZDialogVisible:false,
        downVisible:false,
        downList:[]
         }
      },
    watch:{
@@ -1079,6 +1084,10 @@
         },
         // 下载报告
         download(row) {
        this.downList = row.reportDtos
        this.downVisible = true;
      },
      handleDown(row){
        let url = row.urlS?row.urlS:row.url;
        if(url){
          url = url.split('.')[0]+'.pdf'