cz 1 年之前
父节点
当前提交
1e74738fcf
共有 2 个文件被更改,包括 17 次插入0 次删除
  1. 16 0
      src/components/process/Contract.vue
  2. 1 0
      src/views/process/dealWith/index.vue

+ 16 - 0
src/components/process/Contract.vue

@@ -1362,6 +1362,22 @@ onMounted(() => {
       }
     });
   }
+if(route.query&&route.query.businessId){
+    proxy.post("/contract/detail", { id: route.query.businessId }).then((res) => {
+      setTimeout(()=>{
+        formData.data.id = res.id
+        for (let i = 0; i < formData.data.contractProductList.length; i++) {
+          formData.data.contractProductList[i].id=res.contractProductList[i].id
+        }
+        for (let i = 0; i < formData.data.contractProjectList.length; i++) {
+          formData.data.contractProjectList[i].id=res.contractProjectList[i].id
+        }
+        for (let i = 0; i < formData.data.contractShipmentList.length; i++) {
+          formData.data.contractShipmentList[i].id=res.contractShipmentList[i].id
+        }
+      },2000)
+    });
+  }
 });
 </script>
 

+ 1 - 0
src/views/process/dealWith/index.vue

@@ -188,6 +188,7 @@ const config = computed(() => {
 											flowKey: row.flowKey,
 											id: row.id,
 											processType:nodeType == 1 ? 30 : 10,
+												businessId: row.businessId,
 											version:row.version
 										},
 									});