李林
2024-03-25 d66eade2e194c38170930961fc67375400967aa6
src/components/do/b1-inspect-order-plan/Inspection.vue
@@ -85,7 +85,7 @@
  }
</style>
<template>
   <div>
   <div v-loading="loading">
      <el-row class="title">
               <el-col :span="12" style="padding-left: 20px;">检验单详情</el-col>
               <el-col :span="12" style="text-align: right;">
@@ -118,7 +118,7 @@
               <el-input clearable v-model="insOrder.appointed" disabled size="small" placeholder="请输入"></el-input>
            </el-form-item>
        <el-form-item label="当前样品位数:" >
          <span v-if="currentSample.index">{{ `NO.${currentSample.index}` }}</span>
          <el-tag v-if="currentSample.index">{{ `NO.${currentSample.index}` }}</el-tag>
        </el-form-item>
         </el-form>
      </div>
@@ -170,7 +170,7 @@
    <el-drawer
      title="任务切换"
      :visible.sync="taskVisible"
      size="45%">
      :size="500">
      <ValueTable class="value-table" ref="insOrderPlan"
               :url="$api.insOrderPlan.selectInsOrderPlanList" :componentData="componentData"
               :key="upIndex"/>
@@ -199,7 +199,7 @@
                  sonLaboratory: null,
                  userId: 0
               },
               isIndex: true,
               isIndex: false,
               showSelect: true,
               select: false,
          selectMethod:'handleChangeTask',
@@ -226,6 +226,7 @@
        urgentList:[],
        currentSample:{},//当前样品信息
        tableList:[],
        loading: false
         }
      },
      created() {
@@ -238,6 +239,7 @@
      },
      watch:{
         id(val){
            this.loading = true
            this.$axios.post(this.$api.insOrderPlan.doInsOrder,{
               id: val
            }).then(res=>{
@@ -249,6 +251,8 @@
          })
               this.sampleProduct = res.data.sampleProduct
          this.currentSample = this.sampleProduct[0]
               if(this.currentSample.index==undefined)this.currentSample['index'] = 1
               this.loading = false
          this.handleTableData()
            })
         }
@@ -260,7 +264,7 @@
        this.sampleVisible = false;
      },
      handleChangeTask(row){
        this.id = row[0].id;
            if(row.length > 0)this.id = row[0].id;
        this.taskVisible = false;
      },
      getTypeDicts() {