From a4b23bbf535f10c5ecc31b16bc8177bcfc23e996 Mon Sep 17 00:00:00 2001
From: hailin <1356886193@qq.com>
Date: 星期一, 07 八月 2023 09:44:13 +0800
Subject: [PATCH] 添加原材料检验单第一次

---
 src/components/view/rawInsBox.vue |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/src/components/view/rawInsBox.vue b/src/components/view/rawInsBox.vue
index 352e496..57710f5 100644
--- a/src/components/view/rawInsBox.vue
+++ b/src/components/view/rawInsBox.vue
@@ -5,8 +5,8 @@
 
 <template>
   <div class="rawInsBox">
-    <RawIns v-show="!showDetail" :goDetail="goDetail"></RawIns>
-    <RawInsDetail v-show="showDetail" :goBack="goBack" :detail="detail"></RawInsDetail>
+    <RawIns v-if="!showDetail" :goDetail="goDetail"></RawIns>
+    <RawInsDetail v-if="showDetail" :goBack="goBack" :detailId="id"></RawInsDetail>
   </div>
 </template>
 
@@ -18,13 +18,16 @@
     data() {
         return {
             showDetail: false,
-            detail:{}
+            id:0
         }
     },
+    mounted(){
+    },
     methods:{
-        goDetail(detail) {
+        goDetail(id) {
             this.showDetail = true
-            this.detail = detail
+            this.id = id
+            console.log(this.id)
         },
         goBack() {
             this.showDetail = false

--
Gitblit v1.9.3