| | |
| | | entity: { |
| | | viewSelf: false, |
| | | state: 1, |
| | | childrenLaboratory: null, |
| | | sonLaboratory: null, |
| | | insState: null, |
| | | sampleName: null, |
| | | orderBy: { |
| | |
| | | this.$nextTick(() => { |
| | | this.refreshTable() |
| | | }) |
| | | }, |
| | | watch: { |
| | | tabList(newVal) { |
| | | if (newVal && newVal.length > 0) { |
| | | this.componentData.entity.childrenLaboratory = newVal[0].value |
| | | this.$nextTick(() => { |
| | | this.refreshTable() |
| | | }) |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | upUser() { |
| | |
| | | }, |
| | | handleTab(m, i) { |
| | | this.tabIndex = i; |
| | | this.componentData.entity.childrenLaboratory = m.value |
| | | this.componentData.entity.sonLaboratory = m.value |
| | | this.refreshTable() |
| | | }, |
| | | getTypeDicts() { |
| | |
| | | label: ele.label, |
| | | value: ele.value |
| | | } |
| | | }) |
| | | this.$nextTick(() => { |
| | | this.componentData.entity.childrenLaboratory = this.tabList[0].value |
| | | }) |
| | | }) |
| | | } |
| | |
| | | v-model="componentData.entity.entrustCode" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label">样品名称:</div> |
| | | <div class="search_label">样品类型:</div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="componentData.entity.sample" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | v-model="componentData.entity.sampleType" @keyup.enter.native="refreshTable()"></el-input></div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | |
| | | componentData: { |
| | | entity: { |
| | | entrustCode: null, |
| | | sample: null, |
| | | sampleType: null, |
| | | state: 0, |
| | | orderBy: { |
| | | field: 'id', |