|
@@ -254,7 +254,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<!--分解子计划-->
|
|
<!--分解子计划-->
|
|
- <HcDialog bgColor="#ffffff" isToBody isTable
|
|
|
|
|
|
+ <HcDialog bgColor="#ffffff" isToBody isTable isRowFooter
|
|
title="分解子计划" widths="80%"
|
|
title="分解子计划" widths="80%"
|
|
saveText="保存"
|
|
saveText="保存"
|
|
:show="subplanModal"
|
|
:show="subplanModal"
|
|
@@ -288,9 +288,13 @@
|
|
<el-input v-model="row.key9" clearable :disabled="row?.isShowDelete===0"/>
|
|
<el-input v-model="row.key9" clearable :disabled="row?.isShowDelete===0"/>
|
|
</template>
|
|
</template>
|
|
<template #action="{row,index}">
|
|
<template #action="{row,index}">
|
|
- <el-button size="small" type="primary" @click="delSubplan(row,index)" :disabled="row?.isShowDelete===0">删除</el-button>
|
|
|
|
|
|
+ <el-button size="small" type="danger" @click="delSubplan(row,index)" :disabled="row?.isShowDelete===0">删除</el-button>
|
|
</template>
|
|
</template>
|
|
|
|
+
|
|
</HcTable>
|
|
</HcTable>
|
|
|
|
+ <template #footer>
|
|
|
|
+ <el-button type="primary" @click="updateChildPlanClick" size="large" :loading="updateChildPlanLoading">保存</el-button>
|
|
|
|
+ </template>
|
|
</HcDialog>
|
|
</HcDialog>
|
|
|
|
|
|
<!--关联回款里程碑-->
|
|
<!--关联回款里程碑-->
|
|
@@ -608,12 +612,15 @@ const updateMainPlanClick=async(row)=>{
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+const updateChildPlanLoading=ref(false)
|
|
//编辑子计划传入父级
|
|
//编辑子计划传入父级
|
|
const updateChildPlanClick=async()=>{
|
|
const updateChildPlanClick=async()=>{
|
|
subPlanItem.value.childrenList=tableSubplanData.value
|
|
subPlanItem.value.childrenList=tableSubplanData.value
|
|
|
|
+ updateChildPlanLoading.value=true
|
|
const {error, code, data,msg} = await projectApi.updateChildrenPlan(
|
|
const {error, code, data,msg} = await projectApi.updateChildrenPlan(
|
|
subPlanItem.value,
|
|
subPlanItem.value,
|
|
)
|
|
)
|
|
|
|
+ updateChildPlanLoading.value=false
|
|
if (!error && code === 200) {
|
|
if (!error && code === 200) {
|
|
window.$message.success(msg)
|
|
window.$message.success(msg)
|
|
tableData.value.forEach((ele)=>{
|
|
tableData.value.forEach((ele)=>{
|
|
@@ -630,6 +637,10 @@ const updateChildPlanClick=async()=>{
|
|
ele.planTaskTypeValue=data.planTaskTypeValue
|
|
ele.planTaskTypeValue=data.planTaskTypeValue
|
|
ele.planStartTime=data.planStartTime
|
|
ele.planStartTime=data.planStartTime
|
|
ele.planEndTime=data.planEndTime
|
|
ele.planEndTime=data.planEndTime
|
|
|
|
+ //子计划不显示保存按钮,且其他按钮禁用
|
|
|
|
+ ele.childrenList.forEach((item)=>{
|
|
|
|
+ item.isEdit=false
|
|
|
|
+ })
|
|
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|