ysy 1 år sedan
förälder
incheckning
fa72c0ac24

BIN
dist.rar


+ 1 - 1
src/views/factoryModel/workshop/index.vue

@@ -170,7 +170,7 @@
         let par = {
           type: 1,
           size: 9999,
-          type: 2,
+
         };
         getFactoryarea(par).then((res) => {
           this.dict.factory = res.list;

+ 1 - 1
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -969,7 +969,7 @@
           </ele-pro-table>
         </el-tab-pane>
 
-        <el-tab-pane label="" name="工艺文件">
+        <el-tab-pane label="标准产出" name="标准产出">
           <ele-pro-table
             ref="fileTable"
             :columns="jobColumns1"

+ 21 - 2
src/views/material/BOMmanage/details.vue

@@ -107,7 +107,10 @@
                 label="工艺路线"
                 name="工艺路线"
               >
-                <routing :taskParam="currentNodeData"></routing>
+                <routing
+                  ref="routingRef"
+                  :taskParam="currentNodeData"
+                ></routing>
               </el-tab-pane>
               <el-tab-pane
                 v-if="currentNodeData.bomType == 2"
@@ -205,7 +208,13 @@
           this.getTreeData();
       },
       handleClick(tab) {
-        console.log(tab);
+        if (
+          tab.name === '工艺路线' &&
+          this.currentNodeData.children?.length < 1
+        ) {
+          this.$refs.routingRef.reload();
+        }
+
         if (tab.name === '工艺' && this.currentNodeData.children?.length < 1) {
           this.$refs.workmanshipRef.reload();
         }
@@ -302,6 +311,16 @@
           getBomGetById(id).then((res) => {
             this.versions = res.data.versions;
             this.currentNodeData = res.data;
+
+            if (
+              this.activeName == '工艺路线' &&
+              this.currentNodeData.children?.length < 1
+            ) {
+              this.$nextTick(() => {
+                this.$refs.routingRef.reload();
+              });
+            }
+
             if (
               this.activeName == '工艺' &&
               this.currentNodeData.children?.length < 1