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 | 22 ++++++++++++++++++++-- 1 files changed, 20 insertions(+), 2 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..4167ba1 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,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