|
@@ -110,8 +110,8 @@
|
|
<HcDialog bgColor="#ffffff" isToBody isTable :footer="false" :show="relatedModal" title="关联回款里程碑" widths="70%" @close="relatedCloseClick">
|
|
<HcDialog bgColor="#ffffff" isToBody isTable :footer="false" :show="relatedModal" title="关联回款里程碑" widths="70%" @close="relatedCloseClick">
|
|
<HcTable :column="tableRelatedColumn" :datas="tableRelatedData">
|
|
<HcTable :column="tableRelatedColumn" :datas="tableRelatedData">
|
|
<template #action="{row,index}">
|
|
<template #action="{row,index}">
|
|
- <el-button size="small" type="success" v-if="row.isRelation=='1'" @click="relation(row,'0')">取消关联</el-button>
|
|
|
|
- <el-button size="small" type="primary" v-else @click="relation(row,'1')">关联</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="success" v-if="row.isRelation==1" @click="relation(row,0)">取消关联</el-button>
|
|
|
|
+ <el-button size="small" type="primary" v-else @click="relation(row,1)">关联</el-button>
|
|
</template>
|
|
</template>
|
|
</HcTable>
|
|
</HcTable>
|
|
</HcDialog>
|
|
</HcDialog>
|
|
@@ -313,8 +313,9 @@ const relatedModal = ref(false)
|
|
const rePlanid=ref('')
|
|
const rePlanid=ref('')
|
|
const relatedModalShow = (row) => {
|
|
const relatedModalShow = (row) => {
|
|
relatedModal.value = true
|
|
relatedModal.value = true
|
|
- getListByProjectId(row.projectId)
|
|
|
|
rePlanid.value=row.id
|
|
rePlanid.value=row.id
|
|
|
|
+ getListByProjectId(row.projectId)
|
|
|
|
+
|
|
}
|
|
}
|
|
//关联回款
|
|
//关联回款
|
|
const relation=async(row,type)=>{
|
|
const relation=async(row,type)=>{
|
|
@@ -346,8 +347,8 @@ const tableRelatedData = ref([
|
|
])
|
|
])
|
|
//合同里程碑
|
|
//合同里程碑
|
|
|
|
|
|
-const getListByProjectId=async(projectId)=>{
|
|
|
|
- const {error, code, data} = await contractApi.getListByProjectId({projectId})
|
|
|
|
|
|
+const getListByProjectId=async(projectId,planId)=>{
|
|
|
|
+ const {error, code, data} = await contractApi.getListByProjectId({projectId,planId:rePlanid.value})
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
tableRelatedData.value=getArrValue(data)
|
|
tableRelatedData.value=getArrValue(data)
|
|
|
|
|