From 4944f8d2aec1ebd5eb18afa7b500c0c27edbbade Mon Sep 17 00:00:00 2001
From: 李林 <z1292839451@163.com>
Date: 星期五, 22 三月 2024 16:28:15 +0800
Subject: [PATCH] 功能调整

---
 src/components/do/b1-inspect-order-plan/Inspection.vue |   32 +++++++++++++++++++++++++-------
 1 files changed, 25 insertions(+), 7 deletions(-)

diff --git a/src/components/do/b1-inspect-order-plan/Inspection.vue b/src/components/do/b1-inspect-order-plan/Inspection.vue
index 42075d7..4167ba1 100644
--- a/src/components/do/b1-inspect-order-plan/Inspection.vue
+++ b/src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -1,10 +1,10 @@
 <style scoped>
-	.ins-order-plan-main .title {
+	.title {
 		height: 60px;
 		line-height: 60px;
 	}
 
-	.ins-order-plan-main .search {
+	.search {
 		width: 100%;
 		margin-bottom: 10px;
 		height: 140px;
@@ -18,7 +18,7 @@
 		padding-left: 50px;
 	}
 
-	.ins-order-plan-main .center {
+	.center {
 		width: calc(100% - 40px);
 		height: calc(100% - 60px - 80px - 40px);
 		background-color: #fff;
@@ -27,7 +27,7 @@
 	}
 </style>
 <style>
-	.ins-order-plan-main .el-form-item__label{
+	.el-form-item__label{
 		color: #000;
 	}
   .el-drawer__header::before {
@@ -45,7 +45,7 @@
   }
 </style>
 <template>
-	<div class="ins-order-plan-main">
+	<div>
 		<el-row class="title">
 					<el-col :span="12" style="padding-left: 20px;">鏍峰搧璇︽儏</el-col>
 					<el-col :span="12" style="text-align: right;">
@@ -130,6 +130,7 @@
 
 <script>
 	export default {
+		props: ['orderId'],
 		data() {
 			return {
         sampleVisible:false,
@@ -138,10 +139,27 @@
 					sampleName: null,
 					state: null
 				},
-        productList:[]
+        productList:[],
+				id: 0,
+				insOrder: {},
+				sampleProduct: []
 			}
 		},
 		created() {
+			this.id = this.orderId
+		},
+		mounted() {
+			
+		},
+		watch:{
+			id(val){
+				this.$axios.post(this.$api.insOrderPlan.doInsOrder,{
+					id: val
+				}).then(res=>{
+					this.insOrder = res.data.insOrder
+					this.sampleProduct = res.data.sampleProduct
+				})
+			}
 		},
 		methods: {
       handleChangeSample(row){
@@ -151,7 +169,7 @@
       handleChangeTask(row){
         console.log(222222222,row)
         this.taskVisible = false;
-      }
+      },
 		}
 	}
 </script>

--
Gitblit v1.9.3