Sfoglia il codice sorgente

fix:显示产品文档

luoxiao 4 settimane fa
parent
commit
96daa12467
1 ha cambiato i file con 15 aggiunte e 20 eliminazioni
  1. 15 20
      src/views/pro-steps/components/operates.vue

+ 15 - 20
src/views/pro-steps/components/operates.vue

@@ -115,10 +115,10 @@ const stepComponents = ref([
     compentName: "印刷板",
     compentType: "printboard",
   },
-  // {
-  //   compentName: "检验批号",
-  //   compentType: "jianyanpihao",
-  // },
+  {
+    compentName: "产品文档",
+    compentType: "pdmfile",
+  },
 ]);
 const setComponents = () => {
   // if (store.scanInfo.inspection == 1 || store.scanInfo.firstCheck == 1) {
@@ -130,22 +130,17 @@ const setComponents = () => {
   //     compentType: "xunjian",
   //   });
   // }
-  if (store.processInfo.documentShow == 1) {
-    stepComponents.value = stepComponents.value.filter(
-      (item) => item.compentName !== "产品文档"
-    );
-    stepComponents.value.push({
-      compentName: "产品文档",
-      compentType: "pdmfile",
-    });
-  }
-  if (
-    store.odersData.operationType == "SX" ||
-    store.odersData.operationType == "RX"
-  ) {
-    stepComponents.value = stepComponents.value.filter(
-      (item) => item.compentName !== "返工"
-    );
+  // if (store.processInfo.documentShow == 1) {
+  //   stepComponents.value = stepComponents.value.filter(
+  //     (item) => item.compentName !== "产品文档"
+  //   );
+  //   stepComponents.value.push({
+  //     compentName: "产品文档",
+  //     compentType: "pdmfile",
+  //   });
+  // }
+  if (store.odersData.operationType == "SX" || store.odersData.operationType == "RX") {
+    stepComponents.value = stepComponents.value.filter((item) => item.compentName !== "返工");
   }
 };
 onMounted(async () => {