Răsfoiți Sursa

监理合同段相关

liuyc 3 ani în urmă
părinte
comite
81a9a30624
2 a modificat fișierele cu 29 adăugiri și 2 ștergeri
  1. 11 1
      src/api/manager/projectinfo.js
  2. 18 1
      src/views/manager/contractinfo/detail.vue

+ 11 - 1
src/api/manager/projectinfo.js

@@ -76,6 +76,16 @@ export const findProjectTree = (projectId, wbsId) => {
     })
 }
 
+export const getContractRelation = (contractId) => {
+  return request({
+    url: ' /api/blade-manager/contractInfo/searchContractRelationInfo',
+    method: 'get',
+    params: {
+      contractId,
+    }
+  })
+}
+
 export const submitWbsTreeInProject = (obj) => {
     return request({
         url: '/api/blade-manager/projectInfo/submitWbsTreeInProject',
@@ -102,4 +112,4 @@ export const treeAllConstruction = (params) => {
         method: 'get',
         params
     })
-}
+}

+ 18 - 1
src/views/manager/contractinfo/detail.vue

@@ -596,7 +596,7 @@
 </template>
 
 <script>
-import { getProjectDeatil, findProjectTree, treeAllConstruction } from "@/api/manager/projectinfo";
+import { getProjectDeatil, findProjectTree, treeAllConstruction,getContractRelation } from "@/api/manager/projectinfo";
 import {
   submitContractInfo, getContractInfo, getContractInfo2, delFileFromUrl, searchRole, findAllUserByCondition, findUserList,
   saveUserInfoByProjectTow, removeUsersByIds, resetPasswordByUserId,
@@ -862,6 +862,7 @@ export default {
       this.getContractTypeList();//获取合同类型
       this.getStoragePeriodList();//获取业务字典
       this.getSecurityLevelList();//获取安全等级
+      this.getContractRelation();//监理、业主关联施工
       this.setHeaders();
     },
     beforeLeave (activeName, oldActiveName) {
@@ -921,6 +922,19 @@ export default {
         })
       })
     },
+    getContractRelation () {
+      return new Promise((resolve) => {
+        getContractRelation(this.cid).then((res) => {
+          console.log("ids",res)
+          this.idList =  res.data.data && res.data.data.map(item=>{
+            return item.id
+          })
+          resolve();
+        }).finally(() => {
+          resolve();
+        })
+      })
+    },
     getContractInfo () {
       return new Promise((resolve) => {
         getContractInfo(this.cid).then((res) => {
@@ -1039,6 +1053,9 @@ export default {
       this.activeType = num.toString();
       this.btnLoad = false;
     },
+    getIds(){
+
+    },
 
     savecontract () {
       return new Promise((resolve, reject) => {