李林
2024-03-22 4944f8d2aec1ebd5eb18afa7b500c0c27edbbade
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>