소스 검색

修复工序匹配的问题

695593266@qq.com 6 달 전
부모
커밋
fedea706cc
1개의 변경된 파일5개의 추가작업 그리고 2개의 파일을 삭제
  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>
           </el-tab-pane>
 
-          <el-tab-pane label="记录详情" v-if="sourceTaskId && routeObj && sourceTaskId != '-1'">
+          <el-tab-pane
+            label="记录详情"
+            v-if="sourceTaskId && routeObj && sourceTaskId != '-1'"
+          >
             <recordRules
               :produceTaskId="sourceTaskId"
               :workOrderInfo="routeObj"
@@ -108,7 +111,7 @@
 
           // 使用findIndex方法查找
           const index = this.routeList.findIndex(
-            (item) => Number(item.taskId) == Number(this.routeObj.taskId)
+            (item) => item.taskId == this.routeObj.taskId
           );
 
           this.desIndex = index;