From 21ac6eaa16c46edfe331627c59fc1974f78003fb Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期五, 22 三月 2024 14:52:45 +0800
Subject: [PATCH] 功能调整
---
src/components/do/b1-inspect-order-plan/Inspection.vue | 8 +++++++-
src/components/view/b1-inspect-order-plan.vue | 6 ++++--
2 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index a6a26d2..62d69ab 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -130,6 +130,7 @@
<script>
export default {
+ props: ['orderId'],
data() {
return {
sampleVisible:false,
@@ -138,10 +139,15 @@
sampleName: null,
state: null
},
- productList:[]
+ productList:[],
+ id: 0
}
},
created() {
+ this.id = this.orderId
+ },
+ mounted() {
+
},
methods: {
handleChangeSample(row){
diff --git a/src/components/view/b1-inspect-order-plan.vue b/src/components/view/b1-inspect-order-plan.vue
index 7575a36..4cba208 100644
--- a/src/components/view/b1-inspect-order-plan.vue
+++ b/src/components/view/b1-inspect-order-plan.vue
@@ -164,7 +164,7 @@
<div style="width: 100%;height: 100%;" v-if="activeFace >0">
<Add :active="activeFace" :currentId="currentId"/>
</div>
- <Inspection v-if="state==1" @goback="state=0"/>
+ <Inspection v-if="state==1" @goback="state=0" :orderId="orderId"/>
</div>
</template>
@@ -269,7 +269,8 @@
state:0,//0:鍙拌处椤碉紝1锛氭楠岄〉闈紝榛樿涓�0
activeFace: 0, //1锛氫笅鍗曪紝2锛氭煡鐪嬶紝3锛氬鏍�
currentId: null,
- entityCopy: {}
+ entityCopy: {},
+ orderId: 0
}
},
created() {
@@ -414,6 +415,7 @@
},
handleInspection(row){
this.state = 1;
+ this.orderId = row.id
}
}
}
--
Gitblit v1.9.3