春风项目四线(合箱线、总装线)
cl
2024-01-22 250f676eb929055d098d28772ee033bab5bd2a6e
jcdm-ui/src/views/main/bs/technologyRouteChild/index.vue
@@ -193,21 +193,27 @@
        <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="请输入加工顺序" />
@@ -260,6 +266,7 @@
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",
@@ -298,6 +305,14 @@
        keyProcessesFlag: null,
        routeCode: undefined,
      },
      ProcessesqueryParams: {
        pageNum: 1,
        pageSize: 10,
        processesCode: null,
        processesName: null,
        keyProcessesFlag: null,
        routeCode: undefined,
      },
      headerInformationData:{
        routeCode: "",
        routeName: "",
@@ -326,8 +341,17 @@
    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;