fix : 添加征集详情

This commit is contained in:
2024-06-30 19:17:56 +08:00
parent e43213d9a7
commit fd3231db4d
11 changed files with 182 additions and 58 deletions

View File

@@ -103,6 +103,20 @@ const schema = computed(() => {
span: 12
}
},
{
label: '项目名称',
prop: 'projectName',
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
@@ -110,13 +124,6 @@ const schema = computed(() => {
span: 12
}
},
{
label: '项目名称',
prop: 'projectName',
colProps: {
span: 12
}
}
]
})

View File

@@ -39,7 +39,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -45,7 +45,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -38,35 +38,35 @@ const formDataArray = ref([
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 12
span: 8
}
},
{
label: '项目名称',
prop: 'projectName',
colProps: {
span: 12
span: 8
}
},
{
label: '项目负责人',
prop: 'projectChargePerson',
colProps: {
span: 12
span: 8
}
},
{
label: '项目开始时间',
prop: 'startTime',
colProps: {
span: 12
span: 8
}
},
{
label: '项目预计持续时间',
prop: 'endTime',
colProps: {
span: 12
span: 8
}
},
{
@@ -84,7 +84,7 @@ const formDataArray = ref([
}
},
{
label: '项目总体完成率%',
label: '项目总体完成率',
prop: 'projectCompletionRate',
colProps: {
span: 6
@@ -257,10 +257,25 @@ const getBaseInfo = async () => {
try {
const {code, data} = await getBaseInfoApi(route.query.id)
baseForm.value.setValues(data)
await init()
} catch {
}
}
const init = async () => {
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
console.log('data',data)
if (data) {
tableData.value = data
baseForm.value.setValues(data)
}
// if (code !== 1000) {
// ElNotification({
// title: '提示',
// message: msg,
// type: 'error'
// })
// }
}
getBaseInfo()
const headBtnClick = (key) => {
switch (key) {
@@ -308,21 +323,7 @@ const search = (val) => {
tableConfig.params = {...val, projectId: route.query.id}
tableIns.value.refresh()
}
const init = async () => {
const {code, msg, data} = await searchUpdateLedgerData(route.query.id)
if (data) {
tableData.value = data
baseForm.value.setValues(data)
}
// if (code !== 1000) {
// ElNotification({
// title: '提示',
// message: msg,
// type: 'error'
// })
// }
}
init()
</script>
<style scoped>

View File

@@ -56,6 +56,20 @@ const schema = computed(() => {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -74,7 +74,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -38,7 +38,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -10,10 +10,8 @@
</template>
<script setup lang="jsx">
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
import {computed, ref} from "vue";
import {getBaseInfoApi} from "@/components/steps/api";
import {getResearchUser} from "@/api/expense-manage";
const route = useRoute()
const schema = computed(() => {
@@ -31,7 +29,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -59,7 +59,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -2,7 +2,7 @@
<baseTitle title="基础信息"></baseTitle>
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
<el-form :model="tableForm" ref="form" class="query-form">
<el-table :data="tableForm.tableData" style="width: 100%">
<el-table :data="tableForm.tableData">
<el-table-column prop="time" label="时间" width="180">
<template #default="scope">
<el-form-item prop="time" :rules="scope.row.time?'1':rules.time">
@@ -108,7 +108,21 @@ const schema = computed(() => {
colProps: {
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})
const baseForm = ref()

View File

@@ -101,24 +101,30 @@ const schema = computed(() => {
label: '征集名称',
prop: 'requirementName',
colProps: {
span: 24
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 24
span: 12
}
},
{
label: '项目名称',
prop: 'projectName',
colProps: {
span: 24
span: 12
}
},
{
label: '征集描述',
prop: 'collectExplain',
colProps: {
span: 12
}
},
{
label: '所属公司',
prop: 'affiliatedCompany',
colProps: {
span: 12
}
},
]
})