| | |
| | | .product_table .el-table { |
| | | height: 100%; |
| | | } |
| | | |
| | | .sort{ |
| | | width: 80% !important; |
| | | overflow: hidden; |
| | |
| | | <!-- <el-table-column prop="inspectionItemClassify" label="检验项类型" width="120" show-overflow-tooltip></el-table-column> --> |
| | | <el-table-column prop="inspectionItemSubclass" label="检验项子项" min-width="140" |
| | | show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="sonLaboratory" label="子实验室" width="130" show-overflow-tooltip></el-table-column> |
| | | <el-table-column prop="sonLaboratory" label="子实验室" width="130" show-overflow-tooltip :filters="filters" |
| | | :filter-method="filterHandler"></el-table-column> |
| | | <el-table-column prop="ask" label="要求值" min-width="200px"> |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求值" v-model="scope.row.ask" clearable |
| | |
| | | }, |
| | | selectField: {}, |
| | | }, |
| | | expandedKeys: [] |
| | | expandedKeys: [], |
| | | filters: [] |
| | | } |
| | | }, |
| | | mounted() { |
| | |
| | | this.selectEnumByCategoryForValue() |
| | | this.selectEnumByCategoryForSpecial() |
| | | this.selectEnumByCategoryForInspectionValueType() |
| | | this.selectEnumByCategoryForSonLaboratory() |
| | | }, |
| | | methods: { |
| | | filterNode(value, data) { |
| | |
| | | category: "工厂" |
| | | }).then(res => { |
| | | this.factory = res.data |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForSonLaboratory() { |
| | | this.$axios.post(this.$api.enums.selectEnumByCategory, { |
| | | category: "子实验室" |
| | | }).then(res => { |
| | | this.factory = [] |
| | | res.data.forEach(a=>{ |
| | | this.filters.push({ |
| | | text: a.label, |
| | | value: a.value |
| | | }) |
| | | }) |
| | | }) |
| | | }, |
| | | selectEnumByCategoryForsampleType() { |
| | |
| | | this.$message.success('已保存') |
| | | }) |
| | | }, |
| | | filterHandler(value, row, column) { |
| | | const property = column['property']; |
| | | return row[property] === value; |
| | | } |
| | | } |
| | | } |
| | | </script> |