ZaiZai hai 9 meses
pai
achega
094c20c203
Modificáronse 1 ficheiros con 13 adicións e 2 borrados
  1. 13 2
      src/views/project/detail/detail.vue

+ 13 - 2
src/views/project/detail/detail.vue

@@ -13,6 +13,7 @@ import { ref, watch } from 'vue'
 import { getObjValue, isNullES } from 'js-fast-way'
 import { getDictionaryData } from '~uti/tools'
 import mainApi from '~api/project/contract'
+import projectApi from '~api/project/project'
 
 const props = defineProps({
     data: {
@@ -91,12 +92,22 @@ const getContractInfo = async () => {
 
 //获取合同段基本信息
 const getContractInfo2 = async () => {
-
+    const { cid, type } = getObjValue(dataInfo.value)
+    contractForm.value = {}
+    if (isNullES(cid)) return
+    const { data } = await mainApi.detail2({
+        id: cid,
+        contractType: type,
+    })
+    contractForm.value = getObjValue(data)
 }
 
 //监理、业主关联施工
 const getContractRelation = async () => {
-
+    const { cid } = getObjValue(dataInfo.value)
+    if (isNullES(cid)) return
+    const { data } = await projectApi.getContractRelation(cid)
+    console.log(data)
 }
 
 //获取业务字典