From df33895b6a072ce2963dc8b0688ebfd0989eef2c Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期四, 22 八月 2024 14:06:53 +0800
Subject: [PATCH] 变更检验下单

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

diff --git a/src/components/view/b1-inspect-order-plan.vue b/src/components/view/b1-inspect-order-plan.vue
index 365c1a5..53ece84 100644
--- a/src/components/view/b1-inspect-order-plan.vue
+++ b/src/components/view/b1-inspect-order-plan.vue
@@ -200,12 +200,12 @@
 			</span>
 		</el-dialog>
 		<div style="width: 100%;height: 100%;" v-if="activeFace >0">
-			<Add :active="activeFace" :currentId="currentId"/>
+			<Add :active="activeFace" :currentId="currentId" :examine="examine"/>
 		</div>
     <Inspection v-if="state>0" @goback="goback" :orderId="orderId" :inspectorList="inspectorList" :sonLaboratory="componentData.entity.sonLaboratory" :state="state"/>
       <el-dialog title="鏁版嵁鏌ョ湅" :visible.sync="dataDialogVisible" width="80%">
 				<div style="height: 70vh;overflow-y: auto;" v-if="dataDialogVisible">
-					<ValueTable ref="ValueTableDataLook" :url="$api.insOrder.selectSampleAndProductByOrderId"
+					<ValueTable ref="ValueTableDataLook" :rowKey="'insProductId'" :url="$api.insOrder.selectSampleAndProductByOrderId"
 						:componentData="componentDataDataLook"/>
 				</div>
 			</el-dialog>
@@ -228,6 +228,7 @@
 		},
 		data() {
 			return {
+				examine: null,
         inspectorList: [],//妫�楠屼汉鍛樺垪琛�
 				alone: false,
 				sampleUserForm: {
@@ -264,6 +265,10 @@
 								value: 0,
 								label: '涓嶅悎鏍�',
 								type: 'danger'
+							},{
+								value: 3,
+								label: '涓嶅垽瀹�',
+								type: ''
 							}]
 						}
 					},
@@ -581,6 +586,7 @@
 			},
 			selectAllByOne(row) {
 				this.activeFace = 2;
+				this.examine = 1;
 				this.currentId = parseInt(row.id)
 			},
 			playOrder(num) {
@@ -596,6 +602,10 @@
         if(row.userName){
           inspectorList = row.userName.split(',')
         }
+        let user = JSON.parse(localStorage.getItem('user'))
+        if(user){
+          inspectorList.push(user.name)
+        }
         this.inspectorList = inspectorList
         this.state = 1;
 				this.orderId = row.id

--
Gitblit v1.9.3