|
@@ -51,7 +51,7 @@
|
|
|
<HcTable :isIndex="false" :column="tableColumn" :datas="incomeTable" >
|
|
|
<template #projectId="{row,index}">
|
|
|
<el-select v-model="row.projectId">
|
|
|
- <el-option v-for="item in projectData" :label="item.projectName" :value="item.projectId"/>
|
|
|
+ <el-option v-for="item in projectData" :label="item.name" :value="item.id"/>
|
|
|
</el-select>
|
|
|
</template>
|
|
|
<template #incomeType="{row,index}">
|
|
@@ -61,10 +61,10 @@
|
|
|
</el-select>
|
|
|
</template>
|
|
|
<template #projectTypeValue="{row,index}">
|
|
|
- <el-input v-model="row.projectTypeValue" disabled/>
|
|
|
+ <el-input v-model="row.projectTypeValue" disabled :getdata="getprojectType(row)"/>
|
|
|
</template>
|
|
|
<template #contractTypeValue="{row,index}">
|
|
|
- <el-input v-model="row.contractTypeValue" disabled/>
|
|
|
+ <el-input v-model="row.contractTypeValue" disabled :getdata="getprojectType(row)"/>
|
|
|
</template>
|
|
|
<template #predictSignDate="{row,index}">
|
|
|
<el-date-picker class="block" v-model="row.predictSignDate" format="YYYY-MM-DD" type="date" value-format="YYYY-MM-DD"/>
|
|
@@ -222,7 +222,7 @@ const getDetail = async() => {
|
|
|
//获取项目数据
|
|
|
const projectData = ref([])
|
|
|
const getProjectData = async () => {
|
|
|
- const {error, code, data} = await getProjectList()
|
|
|
+ const {error, code, data} = await annualApi.getProjectList()
|
|
|
//判断状态
|
|
|
if (!error && code === 200) {
|
|
|
projectData.value = getArrValue(data)
|
|
@@ -230,6 +230,14 @@ const getProjectData = async () => {
|
|
|
projectData.value = []
|
|
|
}
|
|
|
}
|
|
|
+const getprojectType=(row)=>{
|
|
|
+ projectData.value.forEach((ele)=>{
|
|
|
+ if(row.projectId===ele.id){
|
|
|
+ row.contractTypeValue=ele.contractTypeValue
|
|
|
+ row.projectTypeValue=ele.projectTypeValue
|
|
|
+ }
|
|
|
+ })
|
|
|
+}
|
|
|
//收入类型字典
|
|
|
const incomeTypeData = ref([])
|
|
|
const getIncomeType = async () => {
|