From 23213c63022ee4dd7f4d8f678838865f01e9b2df Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期五, 19 一月 2024 11:06:48 +0800
Subject: [PATCH] Merge branch 'master' of ssh://192.168.0.189:29418/Jcdm041-Mes

---
 jcdm-ui/src/views/main/bs/technologyRouteChild/index.vue |   40 ++++++++++++++++++++++++++++++++--------
 1 files changed, 32 insertions(+), 8 deletions(-)

diff --git a/jcdm-ui/src/views/main/bs/technologyRouteChild/index.vue b/jcdm-ui/src/views/main/bs/technologyRouteChild/index.vue
index 0a22f6c..ed644c8 100644
--- a/jcdm-ui/src/views/main/bs/technologyRouteChild/index.vue
+++ b/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;

--
Gitblit v1.9.3