Commit 575dcf10 authored by jiaxu.yan's avatar jiaxu.yan

Merge branch 'develop' of http://gitlab.91isoft.com:90/purple-cloud/web-progeam into develop

parents cf7703c6 43b1ca85
import { FormSchema, BasicColumn } from '@/components/Table';
import {FormSchema, BasicColumn, FormProps} from '@/components/Table';
import { uploadApi } from '@/api/sys/upload';
export const formSchema: FormSchema[] = [
{
......@@ -130,6 +130,354 @@ export const formSchema: FormSchema[] = [
export const exportUrl = '/pro/export/investmentPlan';
//查询条件
export function getFormConfig(): Partial<FormProps> {
return {
labelWidth: 100,
schemas: [
{
field: 'filingCycle',
label: '填报年份',
component: 'DatePicker',
componentProps: {
placeholder: '选择填报周期',
picker: 'year',
valueFormat: 'YYYY',
format: 'YYYY',
style: {
width: '100%',
},
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '项目名称',
field: 'projectName',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '建设地点',
field: 'constructionSite',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '项目概况',
field: 'projectOverview',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '建设规模',
field: 'constructionScale',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '建设目的及项目功能',
field: 'constructionPurpose',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '建设模式',
field: 'constructionMode',
labelWidth: '140px',
component: 'Select',
componentProps: {
options: [
{
label: '全部项目',
value: undefined,
},
{
label: '自建',
value: '自建',
},
{
label: '委托建设',
value: '委托建设',
},
{
label: '代建',
value: '代建',
},
{
label: '承建',
value: '承建',
},
],
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '资金来源',
field: 'fundingSource',
labelWidth: '140px',
component: 'Select',
componentProps: {
options: [
{
label: '自筹',
value: '自筹',
key: '自筹',
},
{
label: '财政资金',
value: '财政资金',
key: '财政资金',
},
{
label: '专项债',
value: '专项债',
key: '专项债',
},
],
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '项目类型',
field: 'projectType',
labelWidth: '140px',
component: 'Select',
componentProps: {
options: [
{
label: '公共设施配套类',
value: '公共设施配套类',
key: '公共设施配套类',
},
{
label: '基础设施类',
value: '基础设施类',
key: '基础设施类',
},
{
label: '产业载体类',
value: '产业载体类',
key: '产业载体类',
},
{
label: '房地产类',
value: '房地产类',
key: '房地产类',
},
{
label: '存量盘活类',
value: '存量盘活类',
key: '存量盘活类',
},
{
label: '其他类(零星工程)',
value: '其他类(零星工程)',
key: '其他类(零星工程)',
},
],
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '总投资',
field: 'totalInvestment',
labelWidth: '140px',
component: 'InputNumber',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '该年之前总投资额(不含该年)',
field: 'totalBefore',
labelWidth: '140px',
component: 'InputNumber',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '该年计划投资额',
field: 'planNum',
labelWidth: '140px',
component: 'InputNumber',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '该年实际完成投资额',
field: 'actualOutputValue',
labelWidth: '140px',
component: 'InputNumber',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '该年计划资金',
field: 'planFunds',
labelWidth: '140px',
component: 'InputNumber',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '建设性质',
field: 'attribute',
labelWidth: '140px',
component: 'Select',
componentProps: {
options: [
{ label: '新建', value: '0' },
{ label: '结转', value: '1' },
{ label: '缓建', value: '2' },
],
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '开工竣工时间',
field: 'beginTime',
labelWidth: '140px',
component: 'DatePicker',
componentProps: {
picker: 'DatePicker',
valueFormat: 'YYYY-MM-DD',
format: 'YYYY-MM-DD',
style: {
width: '100%',
},
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '该年底形象进度',
field: 'completionSchedule',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '实施主体',
field: 'implementingEntity',
labelWidth: '140px',
component: 'Select',
componentProps: {
options: [
{
label: '了解产品',
value: '了解产品',
key: '了解产品',
},
{
label: '正在跟进',
value: '正在跟进',
key: '正在跟进',
},
{
label: '正在试用',
value: '正在试用',
key: '正在试用',
},
{
label: '准备购买',
value: '准备购买',
key: '准备购买',
},
{
label: '准备付款',
value: '准备付款',
key: '准备付款',
},
{
label: '已经购买',
value: '已经购买',
key: '已经购买',
},
{
label: '暂时闲置',
value: '暂时闲置',
key: '暂时闲置',
},
],
},
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '项目主管部门',
field: 'competentDepartment',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
{
label: '备注',
field: 'completionRemarks',
labelWidth: '140px',
component: 'Input',
colProps: {
xl: 8,
xxl: 4,
},
},
],
};
}
export const searchFormSchema: FormSchema[] = [
{
field: 'projecName',
......
......@@ -37,15 +37,13 @@ import { router } from '@/router';
import DetailDrawer from "@/views/statement/InvestmentPlanlDrawer/detailDrawer.vue";
import {useDrawer} from "@/components/Drawer";
import {useModal} from "@/components/Modal";
import {getFormConfig} from "@/views/statement/InvestmentPlanlDrawer/detail.data";
const [registerDrawer, { openDrawer }] = useDrawer();
const [registerModal, { openModal: openModal }] = useModal();
const [registerTable, { reload }] = useTable({
api: getInvestmentPlanList,
columns,
formConfig: {
labelWidth: 120,
schemas: searchFormSchema,
},
formConfig: getFormConfig(),
useSearchForm: true,
showTableSetting: false,
bordered: true,
......@@ -64,6 +62,7 @@ function handleExport() {
projectId: null,
exportUrl: exportUrl,
title:"投资计划",
searchData:getForm().getFieldsValue(),
exportData: getExportData(),
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment