From 15f18f555a4d728db4cd335ec36dab3f0671c3a5 Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期一, 25 三月 2024 18:01:20 +0800
Subject: [PATCH] 检验任务

---
 src/components/do/b1-ins-order/add.vue |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/components/do/b1-ins-order/add.vue b/src/components/do/b1-ins-order/add.vue
index 355ae0f..201c3e4 100644
--- a/src/components/do/b1-ins-order/add.vue
+++ b/src/components/do/b1-ins-order/add.vue
@@ -216,7 +216,7 @@
 			</div> -->
 			<el-table class="el-table sampleTable" ref="sampleTable" :data="sampleList" height="250px" tooltip-effect="dark"
 				border @selection-change="selectSample" highlight-current-row @row-click="rowClick" style="margin-top: 10px;" >
-				<el-table-column type="selection" width="60" :selectable="selectable"></el-table-column>
+				<el-table-column type="selection" width="60" :selectable="selectable" v-if="active==1"></el-table-column>
 				<el-table-column type="index" label="搴忓彿" width="65" align="center"></el-table-column>
 				<el-table-column prop="sample" label="鏍峰搧鍚嶇О" align="center" min-width="100">
 					<template slot-scope="scope">
@@ -245,7 +245,7 @@
 				</el-table-column>
 				<el-table-column prop="standardMethodListId" label="妫�楠屾爣鍑�" align="center" min-width="100">
 					<template slot-scope="scope">
-						<el-select v-model="scope.row.standardMethodListId" :disabled="scope.row.model==null" placeholder="妫�楠屾爣鍑�" size="small"
+						<el-select v-model="scope.row.standardMethodListId" :disabled="scope.row.model==null||active>1" placeholder="妫�楠屾爣鍑�" size="small"
 							:loading="methodLoad" @change="(value)=>methodChange(value, scope.row)" @focus="methodFocus" :readonly="active>1">
 							<el-option v-for="item in methods" :key="item.id" :label="item.code" :value="item.id">
 							</el-option>
@@ -295,7 +295,7 @@
 			<el-table class="el-table" ref="productTable" :data="productList" height="380px" tooltip-effect="dark" border
 				@selection-change="selectProduct" style="margin-bottom: 10px;" @select="upProductSelect"
 				:row-class-name="tableRowClassName" v-loading="getProductLoad" @select-all="handleAll">
-				<el-table-column type="selection" width="65" :selectable="selectable"></el-table-column>
+				<el-table-column type="selection" width="65" :selectable="selectable" v-if="active==1"></el-table-column>
 				<el-table-column prop="inspectionItem" label="妫�楠岄」" min-width="140" show-overflow-tooltip></el-table-column>
 				<el-table-column prop="inspectionItemSubclass" label="妫�楠岄」瀛愰」" min-width="140"
 					show-overflow-tooltip></el-table-column>
@@ -417,9 +417,9 @@
 				<el-button type="primary" @click="onSample()" :loading="getProductLoad">纭� 瀹�</el-button>
 			</span>
 		</el-dialog>
-		<el-dialog title="淇濆瓨妯℃澘" :visible.sync="templateDia" width="30%">
-			<div class="body" style="height: 10vh;display: flex;align-items: center;" v-if="templateDia">
-				<div class="search_label"><span class="required-span">* </span>妯℃澘鍚嶇О锛�</div>
+		<el-dialog title="淇濆瓨妯℃澘" :visible.sync="templateDia" width="400px">
+			<div class="body" style="display: flex;align-items: center;" v-if="templateDia">
+				<div class="search_label" style="width: 90px;"><span class="required-span">* </span>妯℃澘鍚嶇О锛�</div>
 				<div class="search_input">
 					<el-input size="small" clearable v-model="templateName"></el-input>
 				</div>

--
Gitblit v1.9.3