| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">样品编号:</div> |
| | | <div class="search_input"> |
| | | <el-input size="small" placeholder="请输入" clearable v-model="componentData.entity.sampleCOde" |
| | | <el-input size="small" placeholder="请输入" clearable v-model="componentData.entity.sampleCode" |
| | | @keyup.enter.native="refreshTable()"></el-input> |
| | | </div> |
| | | </div> |
| | |
| | | </el-table> |
| | | <div style="display: flex;justify-content: flex-end;width: 100%;margin-top: 10px;"> |
| | | <span></span> |
| | | <el-pagination @size-change="refreshTable" @current-change="refreshTable" :current-page="page.current" |
| | | :page-sizes="[10, 20, 30, 50, 100]" :page-size="page.size" layout="total, sizes, prev, pager, next, jumper" |
| | | :total="total"> |
| | | <el-pagination @size-change="m => refreshTable('size', m)" @current-change="m => refreshTable('current', m)" |
| | | :current-page="page.current" :page-sizes="[10, 20, 30, 50, 100]" :page-size="page.size" |
| | | layout="total, sizes, prev, pager, next, jumper" :total="total"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | |
| | | Inspection, |
| | | Add |
| | | }, |
| | | props: ['entrustCodeNew', 'laboratoryNew'], |
| | | |
| | | data() { |
| | | return { |
| | | currentHistory: {}, |
| | |
| | | this.loading = false; |
| | | this.$message.success("认领成功") |
| | | this.claimVisible = false |
| | | this.refreshTable('page') |
| | | this.refreshTable() |
| | | } else { |
| | | this.loading = false; |
| | | } |
| | |
| | | this.loading = false; |
| | | }) |
| | | }, |
| | | refreshTable() { |
| | | refreshTable(type, val) { |
| | | if (type && val) { |
| | | this.page[type] = val; |
| | | } |
| | | this.tableLoading = true |
| | | this.$axios.post(this.$api.insOrderPlan.selectInsOrderPlanList, { |
| | | entity: this.componentData.entity, |
| | |
| | | if (this.tabList.length > 0) { |
| | | this.componentData.entity.sonLaboratory = this.tabList[0].value |
| | | } |
| | | this.refreshTable() |
| | | if (this.entrustCodeNew) { |
| | | this.componentData.entity.entrustCode = this.entrustCodeNew |
| | | |
| | | } |
| | | if (this.laboratoryNew) { |
| | | let index = this.tabList.findIndex(item => item.label == this.laboratoryNew) |
| | | this.componentData.entity.sonLaboratory = this.tabList[index].label |
| | | this.tabIndex = index; |
| | | this.refreshTable() |
| | | } |
| | | }) |
| | | }, |
| | | selectAllByOne(row) { |