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