From e6c3fccc9e412e79964a6dc2dae4c3da0c80095c Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期二, 26 十一月 2024 15:22:28 +0800
Subject: [PATCH] 完成检验下单、检验任务、报告生成变更

---
 src/components/view/b1-inspection-order.vue |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue
index c97ecc1..7996d58 100644
--- a/src/components/view/b1-inspection-order.vue
+++ b/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'

--
Gitblit v1.9.3