From 07506d995a2ecff9decc0b3545caf1052308a228 Mon Sep 17 00:00:00 2001 From: 李林 <z1292839451@163.com> Date: 星期一, 18 三月 2024 15:21:53 +0800 Subject: [PATCH] 功能调整 --- src/components/view/b1-inspection-order.vue | 38 +++++++++++++++++++++++--------------- 1 files changed, 23 insertions(+), 15 deletions(-) diff --git a/src/components/view/b1-inspection-order.vue b/src/components/view/b1-inspection-order.vue index 4e3f189..ac0a7ca 100644 --- a/src/components/view/b1-inspection-order.vue +++ b/src/components/view/b1-inspection-order.vue @@ -16,13 +16,13 @@ align-items: center; height: 50px; } - + .search_label { width: 120px; font-size: 14px; text-align: right; } - + .search_input { width: calc(100% - 120px); } @@ -179,8 +179,8 @@ </div> </el-dialog> </div> - <div style="width: 100%;height: 100%;" v-if="active == 1"> - <Add /> + <div style="width: 100%;height: 100%;" v-if="active >0"> + <Add :active="active" :currentId="currentId" /> </div> </div> </template> @@ -241,7 +241,7 @@ type: 'text', method: 'download', disabFun: (row, index) => { - return row.state != 1 + return row.state != 1 || row.reportId == null } }, { id: 'verify', @@ -255,7 +255,10 @@ id: 'quash', font: '鎾ら攢', type: 'text', - method: 'handlEquash' + method: 'handlEquash', + disabFun: (row, index) => { + return row.state == 2 || row.state == 3 + } }, { font: '涓嬪彂', type: 'text', @@ -347,7 +350,8 @@ }, ], tabIndex: 0, - active: 0 + active: 0,//1锛氫笅鍗曪紝2锛氭煡鐪嬶紝3锛氬鏍� + currentId:null } }, mounted() { @@ -411,12 +415,14 @@ }, // 璇︽儏 selectAllByOne(row) { - console.log(row); - //鎵撳紑寮规 - this.dialogVisible = true; - //row = 鐐瑰嚮瀵瑰簲琛屽�� - //澶嶅埗缁檉ormData - this.formData = this.HaveJson(row); + this.active = 2; + // console.log(row); + // //鎵撳紑寮规 + // this.dialogVisible = true; + // //row = 鐐瑰嚮瀵瑰簲琛屽�� + // //澶嶅埗缁檉ormData + // this.formData = this.HaveJson(row); + this.currentId = row.id }, // 鏁版嵁鏌ョ湅 handleDataLook(row) { @@ -427,7 +433,9 @@ }, // 瀹℃牳 handleVerify(row) { - this.verifyDialogVisible = true; + // this.verifyDialogVisible = true; + this.active = 3; + this.currentId = row.id }, // 鎾ら攢 handlEquash(row) { @@ -501,4 +509,4 @@ } } } -</script> \ No newline at end of file +</script> -- Gitblit v1.9.3