Browse Source

fix:查看合同时,判断是否为非合同工单

(cherry picked from commit c54d08065959d3fcb17bff630a255a28e25c2f2b)
ly 10 months ago
parent
commit
53c414a1f6
1 changed files with 5 additions and 1 deletions
  1. 5 1
      src/views/business/production/onceWork/index.vue

+ 5 - 1
src/views/business/production/onceWork/index.vue

@@ -514,7 +514,11 @@
   }
   const viewContract = (row) =>{
     const id = row.contractId || ids.value;
-    proxy.$refs.contractRef.open(id);
+    if(id === "0"){
+      proxy.$modal.msgError("此工单为非合同工单");
+    }else{
+      proxy.$refs.contractRef.open(id);
+    }
   }
   const textFormat = (text)=>{
     if(text){