From f6105835bb6552ef6964652e10c4de96dab7e3e7 Mon Sep 17 00:00:00 2001 From: wbc <942429426@qq.com> Date: Tue, 1 Apr 2025 09:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=A5=E6=9C=9F=E6=90=9C?= =?UTF-8?q?=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../projectInfo/projectInfo.data.ts | 106 +++++++++++- .../projectLib/workReport/detaiWorkReport.vue | 154 +++++++++--------- 2 files changed, 185 insertions(+), 75 deletions(-) diff --git a/src/views/projectLib/projectInfo/projectInfo.data.ts b/src/views/projectLib/projectInfo/projectInfo.data.ts index 0a93cee..678a232 100644 --- a/src/views/projectLib/projectInfo/projectInfo.data.ts +++ b/src/views/projectLib/projectInfo/projectInfo.data.ts @@ -80,6 +80,109 @@ export const columns: BasicColumn[] = [ }, ]; +export const ShowDetailFormSchema: FormSchema[] = [ + { + label: '日期', + field: 'yearMonth', + component: 'DatePicker', + componentProps:{ + valueFormat:'YYYY-MM', + format:'YYYY-MM' + }, + colProps: { span: 6 }, + }, + { + label: '行政区划', + field: 'adminDivision', + component: 'Select', + labelWidth: 'auto', + componentProps: { + options: [ + { + label: "市本级", + value: "市本级" + }, + { + label: "吴兴区", + value: "吴兴区" + }, + { + label: "南浔区", + value: "南浔区" + }, + { + label: "德清县", + value: "德清县" + }, + { + label: "长兴县", + value: "长兴县" + }, + { + label: "安吉县", + value: "安吉县" + }, + ] + } + //colProps: { span: 6 }, + }, + { + //标题名称 + label: '责任单位', + //字段 + field: 'dutyWorkplace', + //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType + component: 'ApiSelect', + componentProps: () => { + return { + api: () =>getDutyWorkplaceOptions() + } + }, + labelWidth: 'auto' + }, + { + //标题名称 + label: '单位属性', + //字段 + field: 'workplaceProperties', + //组件 支持组件详见 components/Form/src/types/index.ts 中的 ComponentType + component: 'Select', + componentProps: { + options: [ + { + label: "医疗机构", + value: "医疗机构" + }, + { + label: "卫生行政部门", + value: "卫生行政部门" + } + ] + }, + labelWidth: 'auto', + colProps: { span: 6 }, + }, + { + field: 'reformName', + label: '改革所属项目', + component: 'DictSelect', + componentProps: { + dictType: 'reformTasks', + }, + itemProps: { validateTrigger: 'blur' }, + labelWidth: 'auto' + }, + { + field: 'superLeader', + label: '上级指导处室', + component: 'DictSelect', + componentProps: { + dictType: 'superLeader', + }, + labelWidth: 'auto' + + }, +]; export const searchFormSchema: FormSchema[] = [ { @@ -157,7 +260,8 @@ export const searchFormSchema: FormSchema[] = [ } ] }, - labelWidth: 'auto' + labelWidth: 'auto', + colProps: { span: 6 }, }, { field: 'reformName', diff --git a/src/views/projectLib/workReport/detaiWorkReport.vue b/src/views/projectLib/workReport/detaiWorkReport.vue index 9279e05..9dc7e16 100644 --- a/src/views/projectLib/workReport/detaiWorkReport.vue +++ b/src/views/projectLib/workReport/detaiWorkReport.vue @@ -1,95 +1,101 @@ - \ No newline at end of file +