王震
2023-08-30 ea477103772ab46e9a1770ca245bca1b73f156a5
src/views/experiment/inspectionApplication/Viewdetails/index.vue
@@ -1,7 +1,7 @@
<template>
<div> 
    <div style="overflow: hidden;">
        <el-card style="margin: 10px;" v-model="searchData" >
        <el-card style="margin: 10px;" >
        <div slot="header" class="clearfix">
            <span>
                <i slot="prefix" class="el-icon-s-home" />               
@@ -116,17 +116,17 @@
                    <el-table-column prop="userName" label="经验人">
                        <template slot-scope="scope">
                            <el-select v-model="value" size="small" slot="append" style="width: 220px;">
                            <el-option v-for="item in ZERENren" :key="item.id" :label="item.name"  :value="item.name"></el-option>
                            <el-option v-for="(item,indxe) in ZERENren" :key="indxe" :label="item.name"  :value="item.name"></el-option>
                            </el-select>
                        </template>
                    </el-table-column>
                    <el-table-column
                        prop="inspectionMaterialId"
                        label="实验设备">
                        <template>
                            <!-- <el-select v-model="scope.row.checker" size="small" slot="append" style="width: 260px;">
                            <el-option v-for="item in checkeroptions" :key="item.value" :label="item.label">{{ item.label }}</el-option>
                            </el-select> -->
                        <template slot-scope="scope">
                            <el-select v-model="SHEbei" size="small" slot="append" style="width: 220px;">
                            <el-option v-for="(item,index) in getDevices" :key="index" :label="item.name"></el-option>
                            </el-select>
                        </template>
                    </el-table-column>
                </el-table>
@@ -137,15 +137,27 @@
</div>       
</template>
<script>
  import { selectInspectsListById} from '@/api/experiment/planAssignments'
  import { selectInspectsListById,selectUser,chooseinstum} from '@/api/experiment/planAssignments'
export default {
    data(){
        return {
            searchData:{ },
            searchData:{
                formTime: '',
                supplier: '',
                code: '',
                name: '',
                specifications: '',
                unit: '',
                num: '',
                endTime: '',
                userName: '',
            },
            insProducts:[],
            uu:'',
            value:'',
            aaa:{}
            SHEbei:[],
            aaa:{},
            ZERENren:[],
            // getDevices:[]
        }
    },
    created(){
@@ -159,8 +171,8 @@
        // }
        console.log(this.aaa);
        this.selectInspectsListById()
        // this.selectUser()
        this.selectUser()
        this.chooseinstum()
    },
    methods: {
        //返回
@@ -171,9 +183,14 @@
      async selectUser(){
        const res = await selectUser()
        this.ZERENren = res.data
        // console.log(this.ZERENren);
        console.log(this.ZERENren);
      },
      //標準庫
    async chooseinstum(){
        const res =  await chooseinstum()
        this.getDevices = res.data
        console.log(this.getDevices);
    },
      //检验单表
      async selectInspectsListById() {
        const res = await selectInspectsListById({id:this.aaa.id})