| | |
| | | <div class="main_div"> |
| | | <div class="top_div"> |
| | | <span>样品名称:</span> |
| | | <el-select v-model="params.material" size="small" placeholder="请选择样品名称"> |
| | | <el-select v-model="params.material" size="small" placeholder="请选择样品名称" @change="selectProductModelTable()"> |
| | | <el-option v-for="item in productModelSelectmater" :value="item" :key="item.index" :label="item"></el-option> |
| | | </el-select> |
| | | <span class="top_div_span">项目分组:</span> |
| | |
| | | message: res.message, |
| | | type: "success", |
| | | }); |
| | | this.selectProductMaster(); |
| | | this.selectProductModelTable(); |
| | | }); |
| | | } |
| | |
| | | childrenClick(scope) { |
| | | this.isUpdate = true; |
| | | let father = ""; |
| | | this.form = { |
| | | material: "", // 样品名称 |
| | | father: "", // 项目分组 |
| | | name: "", // 项目名称 |
| | | unit: "", // 单位 |
| | | id: "" |
| | | } |
| | | selectproductModelByIdApi(scope.row.id).then((res) => { |
| | | let result = res.data; |
| | | this.form.name = result.name; |
| | |
| | | this.selectProductModelTable(); |
| | | }); |
| | | }, |
| | | |
| | | // 表格树全部选中配置 |
| | | // 全选/取消选操作 |
| | | selectAll(val) { |
| | |
| | | }, |
| | | createFilter(queryString) { |
| | | return (restaurant) => { |
| | | console.log(restaurant); |
| | | return (restaurant.value.toLowerCase().indexOf(queryString.toLowerCase()) === 0); |
| | | }; |
| | | }, |
| | |
| | | name: null |
| | | } |
| | | this.selectProductModelTable() |
| | | }, |
| | | selectList(){ |
| | | this.selectProductMaster().then((res) => { |
| | | this.params.material = this.productModelSelectmater[0]; |
| | | this.selectProductModelTable(); |
| | | }) |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.selectProductMaster().then((res) => { |
| | | this.params.material = this.productModelSelectmater[0]; |
| | | this.selectProductModelTable(); |
| | | }); |
| | | this.selectList() |
| | | }, |
| | | watch: { |
| | | centerDialogVisible: { |