|
@@ -66,7 +66,7 @@
|
|
</el-select>
|
|
</el-select>
|
|
</template>
|
|
</template>
|
|
<template #projectTypeValue="{ row, index }">
|
|
<template #projectTypeValue="{ row, index }">
|
|
- <el-input v-model="row.projectTypeValue" disabled :getdata="getprojectType(row)" />
|
|
|
|
|
|
+ <el-input v-model="row.projectTypeValue" disabled />
|
|
</template>
|
|
</template>
|
|
<template #contractTypeValue="{ row, index }">
|
|
<template #contractTypeValue="{ row, index }">
|
|
<el-input v-model="row.contractTypeValue" disabled :getdata="getprojectType(row)" />
|
|
<el-input v-model="row.contractTypeValue" disabled :getdata="getprojectType(row)" />
|
|
@@ -81,7 +81,7 @@
|
|
<el-input v-model="row.predictAnnualReturned" onkeyup="this.value=this.value.match(/\d+\.?\d{0,2}/)" />
|
|
<el-input v-model="row.predictAnnualReturned" onkeyup="this.value=this.value.match(/\d+\.?\d{0,2}/)" />
|
|
</template>
|
|
</template>
|
|
<template #action="{ row, index }">
|
|
<template #action="{ row, index }">
|
|
- <el-button size="small" type="primary" @click="addRow">
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="addRow(row, index)">
|
|
<HcIcon name="add" />
|
|
<HcIcon name="add" />
|
|
<span>新增</span>
|
|
<span>新增</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -141,7 +141,7 @@
|
|
<el-input v-model="row.december" onkeyup="this.value=this.value.match(/\d+\.?\d{0,2}/)" />
|
|
<el-input v-model="row.december" onkeyup="this.value=this.value.match(/\d+\.?\d{0,2}/)" />
|
|
</template>
|
|
</template>
|
|
<template #action="{ row, index }">
|
|
<template #action="{ row, index }">
|
|
- <el-button size="small" type="primary" @click="addRow1">
|
|
|
|
|
|
+ <el-button size="small" type="primary" @click="addRow1(row, index)">
|
|
<HcIcon name="add" />
|
|
<HcIcon name="add" />
|
|
<span>新增</span>
|
|
<span>新增</span>
|
|
</el-button>
|
|
</el-button>
|
|
@@ -268,23 +268,13 @@ const getBudgetTypeList = async ()=>{
|
|
}
|
|
}
|
|
const secondBudgetTypeList = ref({})
|
|
const secondBudgetTypeList = ref({})
|
|
const getsecondBudgetTypeList = async (val, index)=>{
|
|
const getsecondBudgetTypeList = async (val, index)=>{
|
|
- let id = ''
|
|
|
|
budgetTypeList.value.forEach((ele)=>{
|
|
budgetTypeList.value.forEach((ele)=>{
|
|
if (ele.dictValue === val) {
|
|
if (ele.dictValue === val) {
|
|
- id = ele.id
|
|
|
|
|
|
+ secondBudgetTypeList.value[index] = ele.children
|
|
}
|
|
}
|
|
})
|
|
})
|
|
- if (id.length > 0) {
|
|
|
|
- const { error, code, data } = await costApi.getChlidList({ parentId:id, type:1 })
|
|
|
|
- if (!error && code === 200) {
|
|
|
|
- secondBudgetTypeList.value[index] = getArrValue(data)
|
|
|
|
- } else {
|
|
|
|
- secondBudgetTypeList.value[index] = []
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
//设置表单tabs样式
|
|
//设置表单tabs样式
|
|
@@ -348,8 +338,9 @@ const changeTab = (val)=>{
|
|
const tableData = ref([
|
|
const tableData = ref([
|
|
{ id: 1 }, { id: 2 },
|
|
{ id: 1 }, { id: 2 },
|
|
])
|
|
])
|
|
-const addRow = ()=>{
|
|
|
|
- incomeTable.value.push({})
|
|
|
|
|
|
+const addRow = (row, index)=>{
|
|
|
|
+ // incomeTable.value.push({})
|
|
|
|
+ incomeTable.value.splice(index + 1, 0, {})
|
|
}
|
|
}
|
|
const delRow = (row, index)=>{
|
|
const delRow = (row, index)=>{
|
|
incomeTable.value.splice(index, 1)
|
|
incomeTable.value.splice(index, 1)
|
|
@@ -358,8 +349,9 @@ const delRow = (row, index)=>{
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
-const addRow1 = ()=>{
|
|
|
|
- costTable.value.push({})
|
|
|
|
|
|
+const addRow1 = (row, index)=>{
|
|
|
|
+ // costTable.value.push({})
|
|
|
|
+ costTable.value.splice(index + 1, 0, {})
|
|
}
|
|
}
|
|
const delRow1 = (row, index)=>{
|
|
const delRow1 = (row, index)=>{
|
|
costTable.value.splice(index, 1)
|
|
costTable.value.splice(index, 1)
|