|
@@ -13,6 +13,7 @@ import { ref, watch } from 'vue'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
import { getObjValue, isNullES } from 'js-fast-way'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import { getDictionaryData } from '~uti/tools'
|
|
import mainApi from '~api/project/contract'
|
|
import mainApi from '~api/project/contract'
|
|
|
|
+import projectApi from '~api/project/project'
|
|
|
|
|
|
const props = defineProps({
|
|
const props = defineProps({
|
|
data: {
|
|
data: {
|
|
@@ -91,12 +92,22 @@ const getContractInfo = async () => {
|
|
|
|
|
|
//获取合同段基本信息
|
|
//获取合同段基本信息
|
|
const getContractInfo2 = 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 getContractRelation = async () => {
|
|
-
|
|
|
|
|
|
+ const { cid } = getObjValue(dataInfo.value)
|
|
|
|
+ if (isNullES(cid)) return
|
|
|
|
+ const { data } = await projectApi.getContractRelation(cid)
|
|
|
|
+ console.log(data)
|
|
}
|
|
}
|
|
|
|
|
|
//获取业务字典
|
|
//获取业务字典
|