|
@@ -76,6 +76,9 @@
|
|
|
@close="subplanCloseClick"
|
|
|
@save="subplanSaveClick"
|
|
|
>
|
|
|
+ <template #extra>
|
|
|
+ <el-button size="small" type="primary" @click="addplan(row)">新增</el-button>
|
|
|
+ </template>
|
|
|
<HcTable :isIndex="false" :column="tableSubplanColumn" :datas="tableSubplanData">
|
|
|
<template #planTaskType="{row,index}">
|
|
|
<el-select v-model="row.planTaskType">
|
|
@@ -196,9 +199,9 @@ const getUserDict=async()=>{
|
|
|
//类型tab数据和相关处理
|
|
|
const tabKey = ref('')
|
|
|
const tabTab = ref([
|
|
|
- {key: 'construction', name: '施工单位成本'},
|
|
|
+ {key: 'build', name: '施工单位成本'},
|
|
|
{key: 'supervision', name: '监理单位成本'},
|
|
|
- {key: 'build', name: '建设单位成本'}
|
|
|
+ {key: 'construction', name: '建设单位成本'}
|
|
|
]);
|
|
|
const originTableData=ref([ {}])
|
|
|
|
|
@@ -338,7 +341,16 @@ const subplanSaveClick = () => {
|
|
|
// subPlanItem.value.childrenList=tableSubplanData.value
|
|
|
|
|
|
}
|
|
|
+const addplan=()=>{
|
|
|
+ tableSubplanData.value.push({
|
|
|
+ projectProcessValue:tableSubplanData.value[0]?.projectProcessValue,
|
|
|
+ budgetTypeValue:tableSubplanData.value[0]?.budgetTypeValue,
|
|
|
+ taskDetailValue:tableSubplanData.value[0]?.taskDetailValue,
|
|
|
+ planTaskType:tableSubplanData.value[0]?.planTaskType,
|
|
|
+
|
|
|
|
|
|
+ })
|
|
|
+}
|
|
|
|
|
|
|
|
|
const relatedModal = ref(false)
|