Jelajahi Sumber

修复工序匹配的问题

695593266@qq.com 6 bulan lalu
induk
melakukan
fedea706cc
1 mengubah file dengan 5 tambahan dan 2 penghapusan
  1. 5 2
      src/views/produce/components/routings.vue

+ 5 - 2
src/views/produce/components/routings.vue

@@ -55,7 +55,10 @@
             <productionDetails :workOrderInfo="routeObj"></productionDetails>
             <productionDetails :workOrderInfo="routeObj"></productionDetails>
           </el-tab-pane>
           </el-tab-pane>
 
 
-          <el-tab-pane label="记录详情" v-if="sourceTaskId && routeObj && sourceTaskId != '-1'">
+          <el-tab-pane
+            label="记录详情"
+            v-if="sourceTaskId && routeObj && sourceTaskId != '-1'"
+          >
             <recordRules
             <recordRules
               :produceTaskId="sourceTaskId"
               :produceTaskId="sourceTaskId"
               :workOrderInfo="routeObj"
               :workOrderInfo="routeObj"
@@ -108,7 +111,7 @@
 
 
           // 使用findIndex方法查找
           // 使用findIndex方法查找
           const index = this.routeList.findIndex(
           const index = this.routeList.findIndex(
-            (item) => Number(item.taskId) == Number(this.routeObj.taskId)
+            (item) => item.taskId == this.routeObj.taskId
           );
           );
 
 
           this.desIndex = index;
           this.desIndex = index;