|
@@ -290,7 +290,7 @@
|
|
</template>
|
|
</template>
|
|
<HcTable :is-index="false" :column="tableSubplanColumn" :datas="tableSubplanData">
|
|
<HcTable :is-index="false" :column="tableSubplanColumn" :datas="tableSubplanData">
|
|
<template #planTaskType="{ row }">
|
|
<template #planTaskType="{ row }">
|
|
- <el-select v-model="row.planTaskType" clearable :disabled="row?.isShowDelete === 0" @change="changePlanTaskType($event, row)">
|
|
|
|
|
|
+ <el-select v-model="row.planTaskType" clearable :disabled="row?.isShowDelete === 0 || row?.iscanSelect " @change="changePlanTaskType($event, row)">
|
|
<el-option v-for="item in taskTypeList" :key="item.id" :label="item.dictName" :value="item.id" />
|
|
<el-option v-for="item in taskTypeList" :key="item.id" :label="item.dictName" :value="item.id" />
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
@@ -562,13 +562,27 @@ const subplanCloseClick = () => {
|
|
}
|
|
}
|
|
|
|
|
|
const addplan = ()=>{
|
|
const addplan = ()=>{
|
|
- tableSubplanData.value.push({
|
|
|
|
|
|
+ if (tableSubplanData.value.length > 0) {
|
|
|
|
+ tableSubplanData.value.push({
|
|
|
|
+ projectProcessValue:subPlanItem.value?.projectProcessValue,
|
|
|
|
+ budgetTypeValue:subPlanItem.value?.budgetTypeValue,
|
|
|
|
+ taskDetailValue:subPlanItem.value?.taskDetailValue,
|
|
|
|
+ planTaskTypeValue:tableSubplanData.value[0]?.planTaskTypeValue,
|
|
|
|
+ planTaskType:tableSubplanData.value[0]?.planTaskType,
|
|
|
|
+ isEdit:false,
|
|
|
|
+ iscanSelect:true,
|
|
|
|
+ })
|
|
|
|
+ } else {
|
|
|
|
+ tableSubplanData.value.push({
|
|
projectProcessValue:subPlanItem.value?.projectProcessValue,
|
|
projectProcessValue:subPlanItem.value?.projectProcessValue,
|
|
budgetTypeValue:subPlanItem.value?.budgetTypeValue,
|
|
budgetTypeValue:subPlanItem.value?.budgetTypeValue,
|
|
taskDetailValue:subPlanItem.value?.taskDetailValue,
|
|
taskDetailValue:subPlanItem.value?.taskDetailValue,
|
|
planTaskTypeValue:subPlanItem.value?.planTaskTypeValue,
|
|
planTaskTypeValue:subPlanItem.value?.planTaskTypeValue,
|
|
|
|
+ planTaskType:subPlanItem.value?.planTaskTypeValue,
|
|
isEdit:false,
|
|
isEdit:false,
|
|
- })
|
|
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+
|
|
}
|
|
}
|
|
const changePlanTaskType = (val)=>{
|
|
const changePlanTaskType = (val)=>{
|
|
tableSubplanData.value.forEach((ele)=>{
|
|
tableSubplanData.value.forEach((ele)=>{
|