| | |
| | | export function downloadProduct(data){ |
| | | return request({ |
| | | url: '/mes/plan/customerOrder/getProduct', |
| | | method: 'get', |
| | | method: 'post', |
| | | responseType: 'blob', |
| | | params: data |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | |
| | | <el-table-column prop="testValue" label="检测值" min-width="160" v-for="(item,index) in empiricalValueAdd" :key="index"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="!scope.row.children"> |
| | | <el-select v-model="scope.row.testValueList[index]" |
| | | <el-select |
| | | v-model="scope.row.testValueList[index]" |
| | | ref="testValueSelect" |
| | | id="testValueSelect" |
| | | clearable |
| | | filterable |
| | | allow-create |
| | | default-first-option |
| | | @change="changeState(scope.row)" |
| | | @blur="onTypeBlur($event)"> |
| | | @blur="onTypeBlur($event,scope.row,scope.$index,index)"> |
| | | <el-option label="是" value="是"></el-option> |
| | | <el-option label="否" value="否"></el-option> |
| | | </el-select> |
| | |
| | | } |
| | | this.changeState(command) |
| | | }, |
| | | onTypeBlur(event){ |
| | | const enterKeyEvent = new KeyboardEvent('keyup', { |
| | | key: 'Enter', |
| | | keyCode: 13, |
| | | which: 13, |
| | | bubbles: true |
| | | }); |
| | | |
| | | // 模拟在输入框上触发按键事件 |
| | | this.$refs.testValueSelect.dispatchEvent(enterKeyEvent); |
| | | onTypeBlur(event,row,rowIndex,index){ |
| | | console.log("失焦",event,row,rowIndex,index); |
| | | console.log(event.target.value); |
| | | console.log(this.list[rowIndex-1]); |
| | | }, |
| | | changeState(row) { |
| | | if(row.use){ |