From aae37a0534f682cb413c5bce1333820d44214dfc Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 05 九月 2023 10:10:48 +0800
Subject: [PATCH] 	modified:   .env.development 	modified:   src/utils/GlobalClickMixin.js 	modified:   src/views/experiment/inspectionApplication/Viewdetails/index.vue 	modified:   src/views/inspectionManagement/commissionInspection/index.vue 	modified:   src/views/laboratory/ledger/index.vue

---
 src/views/inspectionManagement/commissionInspection/index.vue |   23 ++++++++++++++---------
 1 files changed, 14 insertions(+), 9 deletions(-)

diff --git a/src/views/inspectionManagement/commissionInspection/index.vue b/src/views/inspectionManagement/commissionInspection/index.vue
index b6dec7b..cf60294 100644
--- a/src/views/inspectionManagement/commissionInspection/index.vue
+++ b/src/views/inspectionManagement/commissionInspection/index.vue
@@ -1,6 +1,6 @@
 <template>
 	<div>
-		<div v-if="!showDetail">
+		<div>
 			<div class="content-main">
 				<div class="top-bar">
 					<el-form ref="form" :inline="true" :model="searchData">
@@ -24,19 +24,19 @@
 						</el-form-item>
 					</el-form>
 					<el-form>
-						<el-popover placement="left" width="350" trigger="click">
+						<el-popover placement="left" width="400" trigger="click">
 							<div class="vue_qr_div">
 								<el-row>
 									<el-col>
 										<el-input v-model="view" readonly size="medium" style="width: 250px;margin-right: 10px;"></el-input>
-										<el-button size="small" type="primary" v-if="viewId==null" @click="viewDia=true">鐢熸垚</el-button>
-										<el-button size="small" type="primary" v-else-if="viewId!=null" @click="copy">澶嶅埗</el-button>
+										<el-button size="small" type="primary" @click="viewDia=true">鐢熸垚</el-button>
+										<el-button size="small" type="primary" @click="copy">澶嶅埗</el-button>
 									</el-col>
 								</el-row>
 								<el-row style="margin-top: 10px;">
 									<el-col v-if="viewId==null">褰撳墠閾炬帴宸茶繃鏈燂紝璇风偣鍑荤敓鎴愭寜閽噸鏂扮敓鎴�</el-col>
 									<el-col
-										v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime)/60/60)>1?(parseInt(viewTime)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col>
+										v-else-if="viewId!=null">褰撳墠閾炬帴灏嗗湪{{(parseInt(viewTime2)/60/60)>1?(parseInt(viewTime2)/60/60).toFixed(1)+'灏忔椂':Math.round(parseInt(viewTime2)/60)+'鍒嗛挓'}}鍚庤繃鏈�</el-col>
 								</el-row>
 							</div>
 							<el-button slot="reference" class="rightBtn" type="primary" @click="goToaddCommision">鏂板濮旀墭</el-button>
@@ -97,9 +97,6 @@
 					</div>
 				</div>
 			</div>
-		</div>
-		<div v-else>
-			<router-view />
 		</div>
 		<el-dialog title="閾炬帴鏃堕暱璁剧疆" :visible.sync="viewDia" width="30%">
 			<div>
@@ -228,7 +225,15 @@
 				view: null,
 				viewId: null,
 				viewTime: 1,
+				viewTime2: 1,
 				viewDia: false
+			}
+		},
+		watch:{
+			addReportDialog(newVal){
+				if(newVal === false){
+					this.resetForm("addInspectionForm");
+				}
 			}
 		},
 		created() {
@@ -471,7 +476,7 @@
 				}).then(res => {
 					this.view = `${this.vueIp}addCommision/${res.data.id}`
 					this.viewId = res.data.id
-					this.viewTime = res.data.time
+					this.viewTime2 = res.data.time
 				})
 			},
 			getViewId() {

--
Gitblit v1.9.3