From e2140d53c0d017da55bbebc22a24671662febd12 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期五, 22 三月 2024 10:21:15 +0800
Subject: [PATCH] 完成部分检验任务前端

---
 src/components/view/b1-inspect-order-plan.vue |   32 ++++++++++++--------------------
 1 files changed, 12 insertions(+), 20 deletions(-)

diff --git a/src/components/view/b1-inspect-order-plan.vue b/src/components/view/b1-inspect-order-plan.vue
index bb8dcaf..9ad143a 100644
--- a/src/components/view/b1-inspect-order-plan.vue
+++ b/src/components/view/b1-inspect-order-plan.vue
@@ -82,8 +82,8 @@
 </style>
 <template>
 	<div class="ins-order-plan-main">
-		<p style="font-size: 16px;padding:19.5px 0px">妫�楠屼换鍔�</p>
-		<div class="search">
+		<p style="font-size: 16px;padding:19.5px 0px" v-show="state==0">妫�楠屼换鍔�</p>
+		<div class="search" v-show="state==0">
 			<el-form :inline="true" :model="searchForm" class="form-inline">
 				<el-form-item label="鏍峰搧鍚嶇О:">
 					<el-input clearable v-model="searchForm.sampleName" size="small" placeholder="璇疯緭鍏�"></el-input>
@@ -100,7 +100,7 @@
 				</el-form-item>
 			</el-form>
 		</div>
-		<div class="center">
+		<div class="center" v-show="state==0">
 			<div class="center-options">
 				<el-row>
 					<el-col :span="21">
@@ -127,6 +127,7 @@
 				:url="$api.insOrderPlan.selectInsOrderPlanList" :upUrl="$api.user.updateUser" :componentData="componentData"
 				:key="upIndex" @upUser="upUser" />
 		</div>
+    <Inspection v-if="state==1" @goback="state=0"/>
 		<el-dialog title="鎻愮ず" :visible.sync="claimVisible" width="400px">
 			鏄惁璁ら濮旀墭缂栧彿<span style="color:#33C130">{{sampleUserForm.entrustCode}}</span>鐨勪换鍔�
 			<span slot="footer" class="dialog-footer">
@@ -139,12 +140,14 @@
 
 <script>
 	import ValueTable from '../tool/value-table.vue'
+  import Inspection from '../do/b1-inspect-order-plan/Inspection.vue'
 	import {
 		getYearAndMonthAndDays
 	} from '../../util/date'
 	export default {
 		components: {
-			ValueTable
+			ValueTable,
+      Inspection
 		},
 		data() {
 			return {
@@ -166,7 +169,7 @@
 					entity: {
 						viewSelf: false,
 						state: 1,
-						childrenLaboratory: null,
+						sonLaboratory: null,
 						insState: null,
 						sampleName: null,
 						orderBy: {
@@ -177,6 +180,7 @@
 					isIndex: true,
 					showSelect: false,
 					select: false,
+					sort: false,
 					do: [{
 							id: '',
 							font: '妫�楠�',
@@ -218,7 +222,8 @@
 				},
 				upIndex: 0,
 				planTotal: 0,
-				insStateList: []
+				insStateList: [],
+        state:0//0:鍙拌处椤碉紝1锛氭楠岄〉闈紝榛樿涓�0
 			}
 		},
 		created() {
@@ -228,16 +233,6 @@
 			this.$nextTick(() => {
 				this.refreshTable()
 			})
-		},
-		watch: {
-			tabList(newVal) {
-				if (newVal && newVal.length > 0) {
-					this.componentData.entity.childrenLaboratory = newVal[0].value
-					this.$nextTick(() => {
-						this.refreshTable()
-					})
-				}
-			}
 		},
 		methods: {
 			upUser() {
@@ -308,7 +303,7 @@
 			},
 			handleTab(m, i) {
 				this.tabIndex = i;
-				this.componentData.entity.childrenLaboratory = m.value
+				this.componentData.entity.sonLaboratory = m.value
 				this.refreshTable()
 			},
 			getTypeDicts() {
@@ -356,9 +351,6 @@
 							label: ele.label,
 							value: ele.value
 						}
-					})
-					this.$nextTick(() => {
-						this.componentData.entity.childrenLaboratory = this.tabList[0].value
 					})
 				})
 			}

--
Gitblit v1.9.3