| | |
| | | <el-select style="width: 100%" @change="handleSelectChangeprocessesCode(form.processesCode)" v-model="form.processesCode" placeholder="请选择工序编号"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.index" |
| | | :label="item.processesName" |
| | | :key="item.processesCode" |
| | | :label="item.processesCode" |
| | | :value="item.processesCode"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | |
| | | <script> |
| | | import {listStationConf, getStationConf, delStationConf, addStationConf, updateStationConf} from "@/api/main/sc/stationConf"; |
| | | import {listProcesses} from "@/api/main/bs/processes/processes"; |
| | | import {listProcesses, listProcessesNoPage} from "@/api/main/bs/processes/processes"; |
| | | |
| | | export default { |
| | | name: "StationConf", |
| | |
| | | processesCodeQueryParams:{ |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | processesCodes: null, |
| | | processesCode: null, |
| | | }, |
| | | // 表单参数 |
| | | form: {}, |
| | |
| | | methods: { |
| | | |
| | | handleSelectChangeprocessesCode(selectedOption) { |
| | | this.processesCodeQueryParams.processesCodes = selectedOption; |
| | | listProcesses(this.queryParams).then(response => { |
| | | this.processesCodeQueryParams.processesCode = selectedOption; |
| | | listProcesses(this.processesCodeQueryParams).then(response => { |
| | | this.form.processesName = response.rows[0].processesName; |
| | | }); |
| | | |
| | | }, |
| | | initProcesses(){ |
| | | listProcesses(this.queryParams).then(response => { |
| | | this.options = []; |
| | | listProcessesNoPage().then(response => { |
| | | this.options = response.rows; |
| | | }); |
| | | }, |