| | |
| | | <div class="search_thing" v-if="currentTab=='绝缘'"> |
| | | <div class="search_label">检验标准:</div> |
| | | <el-select v-model="insulating.standardMethodListId" placeholder="请选择检验标准" size="small" |
| | | @change="(value)=>methodChange(value)"> |
| | | @change="(value)=>methodChange(value)" multiple> |
| | | <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | <div class="search_thing" v-if="currentTab=='护套'"> |
| | | <div class="search_label">检验标准:</div> |
| | | <el-select v-model="sheath.standardMethodListId" placeholder="请选择检验标准" size="small" |
| | | @change="(value)=>methodChange(value)"> |
| | | @change="(value)=>methodChange(value)" multiple> |
| | | <el-option v-for="item in standards" :key="item.id" :label="item.code" :value="item.id"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | <template slot-scope="scope"> |
| | | <el-input size="small" placeholder="要求值" v-model="scope.row.ask" clearable type="textarea" |
| | | :autosize="{ minRows: 1, maxRows: 3}" @change="e=>requestChange(e,scope.row)" |
| | | v-if="active==1&&isAskOnlyRead"></el-input> |
| | | v-if="active==1"></el-input> |
| | | <span v-else>{{ scope.row.ask }}</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | tree: '', |
| | | standards: [], |
| | | insulating: { |
| | | standardMethodListId: null, |
| | | standardMethodListId: [], |
| | | insProduct: [], |
| | | num: 1 |
| | | }, |
| | | sheath: { |
| | | standardMethodListId: null, |
| | | standardMethodListId: [], |
| | | insProduct: [] |
| | | }, |
| | | isAskOnlyRead: false |
| | |
| | | }, |
| | | methodChange(val) { |
| | | if (val === null || val === '') return |
| | | let standard = this.standards.find(a => a.id === val) |
| | | if(standard!=null && standard.code==='委托要求'){ |
| | | this.isAskOnlyRead = true |
| | | }else{ |
| | | this.isAskOnlyRead = false |
| | | } |
| | | this.$axios.post(this.$api.standardTree.selectStandardProductList, { |
| | | model: this.$parent.addObj.model, |
| | | standardMethodListId: val, |
| | | standardMethodListId: val.join(','), |
| | | factory: this.tree + ' - ' |
| | | }, { |
| | | headers: { |