| | |
| | | if(row.section === null) { |
| | | row.section = "" |
| | | } |
| | | let arr = this.productList.filter(m=>m.state==1&&row.section.includes(m.section)&&m.ask&&m.section.indexOf('[')==-1) |
| | | // console.log(row,this.productList) |
| | | let arr = this.productList.filter(m=>m.state==1&&m.bsmRow&&m.bsmRow.section==row.section&&row.section.includes(m.section)&&m.ask&&m.section.indexOf('[')==-1) |
| | | if (row.bsm === '1' && row.section !== '' && row.section !== null && row.state === 1&&arr.length==0) { |
| | | if (row.section.indexOf('[') > -1) { |
| | | row.bsmRow = this.HaveJson(row) |
| | |
| | | renderedHandler() { |
| | | console.log("渲染完成") |
| | | this.isDocShow = true |
| | | this.resetStyle() |
| | | }, |
| | | errorHandler() { |
| | | console.log("渲染失败") |
| | |
| | | } |
| | | return result |
| | | }, |
| | | resetStyle(){ |
| | | const elements = document.querySelectorAll('[style*="pt"]'); |
| | | for (const element of elements) { |
| | | const style = element.getAttribute('style'); |
| | | if (!!style) { |
| | | element.setAttribute('style', style.replace(/pt/g, 'px')); |
| | | } |
| | | } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |
| | | <el-button size="small" @click="refresh()">重 置</el-button> |
| | | <el-button size="small" type="primary" @click="refreshTable()">查 询</el-button> |
| | | <el-button size="small" type="primary" @click="list=[],refreshTable()">查 询</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="table" v-if="radio==1" v-loading="pageLoading" @scroll="scrollFn"> |
| | |
| | | this.list=[]; |
| | | this.entity={ |
| | | name: null, |
| | | orderBy: {field: "id", order: "asc"} |
| | | // orderBy: {field: "id", order: "asc"} |
| | | }; |
| | | this.refreshTable() |
| | | } |
| | |
| | | <div class="search_thing"> |
| | | <div class="search_label">样品编号:</div> |
| | | <div class="search_input"> |
| | | <el-input placeholder="请输入样品编号" v-model="searchSampleCode" size="small" autocomplete="off"> |
| | | <el-input placeholder="请输入样品编号" v-model="searchSampleCode" size="small"> |
| | | <el-button slot="append" icon="el-icon-search" @click="handleSearch"></el-button> |
| | | </el-input> |
| | | </div> |
| | |
| | | clearInterval(this.startTime) |
| | | } |
| | | }, |
| | | isEdit(newVal){ |
| | | if(!newVal){ |
| | | this.shelves = {} |
| | | } |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.selectList() |
| | |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="query.userName" placeholder="请输入人员名称" size="small" style="width: 140px;margin: 0 16px;" clearable @keyup.enter.native="refreshTable()"></el-input> |
| | | <el-select v-model="query.laboratory" placeholder="请选择实验室" style="width: 140px;" size="small" clearable @change="refreshTable()"> |
| | | <!-- <el-select v-model="query.laboratory" placeholder="请选择实验室" style="width: 140px;" size="small" clearable @change="refreshTable()"> |
| | | <el-option |
| | | v-for="item in laboratory" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-select> --> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing" style="padding-left: 30px;"> |