| | |
| | | background-color: #fff; |
| | | border-radius: 3px; |
| | | padding: 20px; |
| | | } |
| | | </style> |
| | | <style> |
| | | .el-form-item__label{ |
| | | color: #000; |
| | | } |
| | | .el-drawer__header::before { |
| | | content: ""; |
| | | display: inline-block; |
| | | width: 4px; |
| | | height: 30.24px; |
| | | background: #3A7BFA; |
| | | border-radius: 10px; |
| | | margin-left: 32px; |
| | | margin-right: 8.5px; |
| | | } |
| | | .el-drawer__header{ |
| | | color: #303133; |
| | | } |
| | | .center{ |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | flex-wrap: wrap; |
| | | } |
| | | } |
| | | .tables{ |
| | | width: 800px; |
| | | } |
| | |
| | | align-items: end; |
| | | } |
| | | </style> |
| | | <style> |
| | | .el-form-item__label{ |
| | | color: #000; |
| | | } |
| | | .el-drawer__header::before { |
| | | content: ""; |
| | | display: inline-block; |
| | | width: 4px; |
| | | height: 30.24px; |
| | | background: #3A7BFA; |
| | | border-radius: 10px; |
| | | margin-left: 32px; |
| | | margin-right: 8.5px; |
| | | } |
| | | .el-drawer__header{ |
| | | color: #303133; |
| | | } |
| | | </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() { |