Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -92,13 +92,19 @@ const baseForm = ref()
|
|||||||
|
|
||||||
const schema = computed(() => {
|
const schema = computed(() => {
|
||||||
return [
|
return [
|
||||||
|
{
|
||||||
|
label: '征集名称',
|
||||||
|
prop: 'requirementName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '所属公司',
|
label: '所属公司',
|
||||||
prop: 'affiliatedCompany',
|
prop: 'affiliatedCompany',
|
||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 12
|
||||||
}
|
}
|
||||||
// component:
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '征集类型',
|
label: '征集类型',
|
||||||
@@ -106,7 +112,6 @@ const schema = computed(() => {
|
|||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 12
|
||||||
}
|
}
|
||||||
// component:
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: '截止时间',
|
label: '截止时间',
|
||||||
@@ -114,16 +119,8 @@ const schema = computed(() => {
|
|||||||
colProps: {
|
colProps: {
|
||||||
span: 12
|
span: 12
|
||||||
}
|
}
|
||||||
// component:
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: '需求名称',
|
|
||||||
prop: 'requirementName',
|
|
||||||
colProps: {
|
|
||||||
span: 12
|
|
||||||
}
|
|
||||||
// component:
|
|
||||||
},
|
},
|
||||||
|
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -319,22 +319,13 @@ const getIsFund = async () => {
|
|||||||
// loading.value = false
|
// loading.value = false
|
||||||
formData.value.isSpecialFund = res.data.isSpecialFund
|
formData.value.isSpecialFund = res.data.isSpecialFund
|
||||||
if (res.data.isSpecialFund) {
|
if (res.data.isSpecialFund) {
|
||||||
res.data.specialFundId = getSpecialFundId(res.data.specialFund)
|
|
||||||
formData.value.specialFundId = res.data.specialFundId
|
formData.value.specialFundId = res.data.specialFundId
|
||||||
formData.value.specialFund = res.data.specialFund
|
formData.value.specialFund = res.data.specialFund
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
const getSpecialFundId = (val) => {
|
|
||||||
let value
|
|
||||||
specialFundOption.value.forEach(item => {
|
|
||||||
if (item.label == val) {
|
|
||||||
value = item.value
|
|
||||||
}
|
|
||||||
})
|
|
||||||
return value
|
|
||||||
}
|
|
||||||
const compositeParam = (item, type) => {
|
const compositeParam = (item, type) => {
|
||||||
let tag = ''
|
let tag = ''
|
||||||
if (name.value === 'Summary/add' || name.value === 'Summary/edit') {
|
if (name.value === 'Summary/add' || name.value === 'Summary/edit') {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<baseTitle title="基础信息"></baseTitle>
|
||||||
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||||
<el-form :model="attachment" inline style="margin-top: 15px">
|
<el-form :model="attachment" inline style="margin-top: 15px">
|
||||||
<el-form-item label="标签" prop="tag">
|
<el-form-item label="标签" prop="tag">
|
||||||
<el-select v-model="attachment.tag" placeholder="请选择标签" clearable filterable style="width: 300px">
|
<el-select v-model="attachment.tag" placeholder="请选择标签" clearable filterable style="width: 300px">
|
||||||
@@ -29,7 +31,9 @@
|
|||||||
import {downloadFile} from "@/api/project-demand";
|
import {downloadFile} from "@/api/project-demand";
|
||||||
import {searchFileList} from "@/api/project-manage/attachment.js";
|
import {searchFileList} from "@/api/project-manage/attachment.js";
|
||||||
import {getTags} from "@/api/project-manage";
|
import {getTags} from "@/api/project-manage";
|
||||||
import {ElNotification} from "element-plus";
|
import {ElLoading, ElNotification} from "element-plus";
|
||||||
|
import {computed, ref} from "vue";
|
||||||
|
import {getBaseInfoApi} from "@/components/steps/api";
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
@@ -37,6 +41,40 @@ const uploadState = ref(true)
|
|||||||
const attachment = reactive({
|
const attachment = reactive({
|
||||||
tag: ''
|
tag: ''
|
||||||
})
|
})
|
||||||
|
const schema = computed(() => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '征集名称',
|
||||||
|
prop: 'requirementName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '所属公司',
|
||||||
|
prop: 'affiliatedCompany',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
|
prop: 'projectName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '征集类型',
|
||||||
|
prop: 'collectType',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
})
|
||||||
|
const baseForm = ref()
|
||||||
const tagsOption = ref([])
|
const tagsOption = ref([])
|
||||||
const tableConfig = reactive({
|
const tableConfig = reactive({
|
||||||
columns: [
|
columns: [
|
||||||
@@ -80,6 +118,16 @@ const tableConfig = reactive({
|
|||||||
})
|
})
|
||||||
const showTable = ref(true)
|
const showTable = ref(true)
|
||||||
const otherFileList = ref([])
|
const otherFileList = ref([])
|
||||||
|
const getBaseInfo = async () => {
|
||||||
|
try {
|
||||||
|
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||||
|
baseForm.value.setValues(data)
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getBaseInfo()
|
||||||
|
|
||||||
const getTagsOption = () => {
|
const getTagsOption = () => {
|
||||||
if (!route.query.id) return
|
if (!route.query.id) return
|
||||||
getTags(route.query.id).then(res => {
|
getTags(route.query.id).then(res => {
|
||||||
|
|||||||
@@ -1,4 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
|
<baseTitle title="基础信息"></baseTitle>
|
||||||
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||||
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
<fvSearchForm :searchConfig="searchConfig" @search="search"></fvSearchForm>
|
||||||
<fvTable ref="tableIns" :tableConfig="tableConfig">
|
<fvTable ref="tableIns" :tableConfig="tableConfig">
|
||||||
<template #empty>
|
<template #empty>
|
||||||
@@ -9,8 +11,44 @@
|
|||||||
|
|
||||||
<script setup lang="jsx">
|
<script setup lang="jsx">
|
||||||
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
import fvSelect from '@/fvcomponents/fvSelect/index.vue'
|
||||||
|
import {computed, ref} from "vue";
|
||||||
|
import {getBaseInfoApi} from "@/components/steps/api";
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
const schema = computed(() => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '征集名称',
|
||||||
|
prop: 'requirementName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '所属公司',
|
||||||
|
prop: 'affiliatedCompany',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
|
prop: 'projectName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '征集类型',
|
||||||
|
prop: 'collectType',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
})
|
||||||
|
const baseForm = ref()
|
||||||
const searchConfig = reactive([
|
const searchConfig = reactive([
|
||||||
{
|
{
|
||||||
label: '关键词',
|
label: '关键词',
|
||||||
@@ -106,7 +144,15 @@ const tableConfig = reactive({
|
|||||||
projectId: route.query.id
|
projectId: route.query.id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const getBaseInfo = async () => {
|
||||||
|
try {
|
||||||
|
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||||
|
baseForm.value.setValues(data)
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getBaseInfo()
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<baseTitle title="上传费用"></baseTitle>
|
<baseTitle title="基础信息"></baseTitle>
|
||||||
|
<fvForm :schema="schema" @getInstance="(e)=>baseForm = e"></fvForm>
|
||||||
<el-form :model="tableForm" ref="form" class="query-form">
|
<el-form :model="tableForm" ref="form" class="query-form">
|
||||||
<el-form-item label="项目名称">
|
|
||||||
<span>{{projectName}}</span>
|
|
||||||
</el-form-item>
|
|
||||||
<el-table :data="tableForm.tableData" style="width: 100%">
|
<el-table :data="tableForm.tableData" style="width: 100%">
|
||||||
<el-table-column prop="time" label="时间">
|
<el-table-column prop="time" label="时间">
|
||||||
<template #default="scope">
|
<template #default="scope">
|
||||||
@@ -85,6 +83,8 @@ import {addLedger} from "@/api/project-manage";
|
|||||||
import {useTagsView} from '@/stores/tagsview.js'
|
import {useTagsView} from '@/stores/tagsview.js'
|
||||||
import {useRoute} from "vue-router";
|
import {useRoute} from "vue-router";
|
||||||
import {useCacheStore} from '@/stores/cache.js'
|
import {useCacheStore} from '@/stores/cache.js'
|
||||||
|
import {computed, ref} from "vue";
|
||||||
|
import {getBaseInfoApi} from "../../../components/steps/api";
|
||||||
|
|
||||||
const cacheStore = useCacheStore()
|
const cacheStore = useCacheStore()
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
@@ -92,7 +92,41 @@ const router = useRouter()
|
|||||||
const tagsViewStore = useTagsView()
|
const tagsViewStore = useTagsView()
|
||||||
const formData = ref({})
|
const formData = ref({})
|
||||||
const form = ref()
|
const form = ref()
|
||||||
const projectName=ref(localStorage.getItem('projectName'))
|
const projectName=ref()
|
||||||
|
const schema = computed(() => {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
label: '征集名称',
|
||||||
|
prop: 'requirementName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '所属公司',
|
||||||
|
prop: 'affiliatedCompany',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '项目名称',
|
||||||
|
prop: 'projectName',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: '征集类型',
|
||||||
|
prop: 'collectType',
|
||||||
|
colProps: {
|
||||||
|
span: 12
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
]
|
||||||
|
})
|
||||||
|
const baseForm = ref()
|
||||||
const rules = reactive({
|
const rules = reactive({
|
||||||
time: [{required: true, message: '请选择时间', trigger: 'blur'}],
|
time: [{required: true, message: '请选择时间', trigger: 'blur'}],
|
||||||
projectCost: [{required: true, message: '请输入项目费用', trigger: 'blur'}],
|
projectCost: [{required: true, message: '请输入项目费用', trigger: 'blur'}],
|
||||||
@@ -112,6 +146,16 @@ const tableForm = reactive({
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
const getBaseInfo = async () => {
|
||||||
|
try {
|
||||||
|
const {code, data} = await getBaseInfoApi(route.query.id)
|
||||||
|
baseForm.value.setValues(data)
|
||||||
|
} catch {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
getBaseInfo()
|
||||||
|
|
||||||
const handleAdd = () => {
|
const handleAdd = () => {
|
||||||
let row = {
|
let row = {
|
||||||
projectId: route.query.id,
|
projectId: route.query.id,
|
||||||
|
|||||||
Reference in New Issue
Block a user