| | |
| | | } |
| | | </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;"> |
| | |
| | | <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> |
| | |
| | | <el-drawer |
| | | title="任务切换" |
| | | :visible.sync="taskVisible" |
| | | size="45%"> |
| | | :size="500"> |
| | | <ValueTable class="value-table" ref="insOrderPlan" |
| | | :url="$api.insOrderPlan.selectInsOrderPlanList" :componentData="componentData" |
| | | :key="upIndex"/> |
| | |
| | | sonLaboratory: null, |
| | | userId: 0 |
| | | }, |
| | | isIndex: true, |
| | | isIndex: false, |
| | | showSelect: true, |
| | | select: false, |
| | | selectMethod:'handleChangeTask', |
| | |
| | | urgentList:[], |
| | | currentSample:{},//当前样品信息 |
| | | tableList:[], |
| | | loading: false |
| | | } |
| | | }, |
| | | created() { |
| | |
| | | }, |
| | | watch:{ |
| | | id(val){ |
| | | this.loading = true |
| | | this.$axios.post(this.$api.insOrderPlan.doInsOrder,{ |
| | | id: val |
| | | }).then(res=>{ |
| | |
| | | }) |
| | | this.sampleProduct = res.data.sampleProduct |
| | | this.currentSample = this.sampleProduct[0] |
| | | if(this.currentSample.index==undefined)this.currentSample['index'] = 1 |
| | | this.loading = false |
| | | this.handleTableData() |
| | | }) |
| | | } |
| | |
| | | this.sampleVisible = false; |
| | | }, |
| | | handleChangeTask(row){ |
| | | this.id = row[0].id; |
| | | if(row.length > 0)this.id = row[0].id; |
| | | this.taskVisible = false; |
| | | }, |
| | | getTypeDicts() { |