| | |
| | | <el-form-item label="流程编码"> |
| | | <el-input v-model="queryRouteCode" :disabled="true" /> |
| | | </el-form-item> |
| | | <!-- <el-form-item label="工序编码" prop="processesCode">--> |
| | | <el-form-item label="工序编码" prop="processesCode"> |
| | | <!-- <el-input v-model="form.processesCode" placeholder="请输入工序编码" />--> |
| | | <!-- </el-form-item>--> |
| | | <!-- <el-form-item label="工序名称" prop="processesName">--> |
| | | <!-- <el-input v-model="form.processesName" placeholder="请输入工序名称" />--> |
| | | <!-- </el-form-item>--> |
| | | <el-form-item label="工序名称" prop="processesName"> |
| | | <el-select style="width: 100%" v-model="form.processesCode" placeholder="请选择"> |
| | | <el-select style="width: 100%" @change="handleSelectChange(form.processesCode)" v-model="form.processesCode" placeholder="请选择"> |
| | | <el-option |
| | | v-for="item in options" |
| | | :key="item.processesCode" |
| | | :label="item.processesName" |
| | | :label="item.processesCode" |
| | | :value="item.processesCode"> |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="工序名称" prop="processesName"> |
| | | <el-input disabled v-model="form.processesName" placeholder="请输入工序编码" /> |
| | | <!-- <el-select style="width: 100%" v-model="form.processesCode" placeholder="请选择">--> |
| | | <!-- <el-option--> |
| | | <!-- v-for="item in options"--> |
| | | <!-- :key="item.processesCode"--> |
| | | <!-- :label="item.processesName"--> |
| | | <!-- :value="item.processesCode">--> |
| | | <!-- </el-option>--> |
| | | <!-- </el-select>--> |
| | | </el-form-item> |
| | | <el-form-item label="加工顺序" prop="stepNo"> |
| | | <el-input v-model="form.stepNo" placeholder="请输入加工顺序" /> |
| | |
| | | import { listProcesses} from "@/api/main/bs/processes/processes"; |
| | | import { listTechnologyRoute} from "@/api/main/bs/technologyRoute/technologyRoute"; |
| | | import { listTechnologyRouteChild, getTechnologyRouteChild, delTechnologyRouteChild, addTechnologyRouteChild, updateTechnologyRouteChild } from "@/api/main/bs/technologyRouteChild/technologyRouteChild"; |
| | | import {listProductBom} from "@/api/main/bs/ProductBom/ProductBom"; |
| | | |
| | | export default { |
| | | name: "TechnologyRouteChild", |
| | |
| | | keyProcessesFlag: null, |
| | | routeCode: undefined, |
| | | }, |
| | | ProcessesqueryParams: { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | processesCode: null, |
| | | processesName: null, |
| | | keyProcessesFlag: null, |
| | | routeCode: undefined, |
| | | }, |
| | | headerInformationData:{ |
| | | routeCode: "", |
| | | routeName: "", |
| | |
| | | this.getList(); |
| | | this.headerInformation(); |
| | | this.getProcesses(); |
| | | this.initProcesses(); |
| | | }, |
| | | methods: { |
| | | |
| | | handleSelectChange(selectedOption) { |
| | | this.ProcessesqueryParams.processesCode = selectedOption; |
| | | listProcesses(this.ProcessesqueryParams).then(response => { |
| | | this.form.processesName = response.rows[0].processesName; |
| | | }); |
| | | }, |
| | | |
| | | getProcesses() { |
| | | listProcesses(null).then(response => { |
| | | this.options = response.rows; |