From 73ab08a3493c1b1d86f8d3006b40e2f7419308c3 Mon Sep 17 00:00:00 2001 From: zch Date: Wed, 2 Apr 2025 14:37:31 +0800 Subject: [PATCH] =?UTF-8?q?add(dms):=20=E6=96=B0=E5=A2=9E=E4=BF=9D?= =?UTF-8?q?=E5=85=BB=E9=83=A8=E4=BD=8D=E4=B8=8E=E4=BF=9D=E5=85=BB=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E4=B8=80=E5=AF=B9=E5=A4=9A=E5=85=B3=E8=81=94=EF=BC=8C?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E4=BF=9D=E5=85=BB=E9=A1=B9=E7=9B=AE=E5=89=8D?= =?UTF-8?q?=E5=BF=85=E9=A1=BB=E5=85=88=E8=A7=A3=E7=BB=91=E4=BF=9D=E5=85=BB?= =?UTF-8?q?=E9=83=A8=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将保养部位基础信息中的设备类型输入框改为下拉选择框 - 添加了保养项目多选下拉组件 - 初始化保养部位基础信息表单中的激活标识为 '1' - 移除了润滑部位重复验证 --- src/api/dms/dmsBaseMaintStation/types.ts | 15 ++++++++ src/views/dms/dmsBaseLubeStation/index.vue | 3 -- src/views/dms/dmsBaseMaintStation/index.vue | 41 ++++++++++++++++++--- 3 files changed, 50 insertions(+), 9 deletions(-) diff --git a/src/api/dms/dmsBaseMaintStation/types.ts b/src/api/dms/dmsBaseMaintStation/types.ts index ae0bc16..b98f163 100644 --- a/src/api/dms/dmsBaseMaintStation/types.ts +++ b/src/api/dms/dmsBaseMaintStation/types.ts @@ -34,6 +34,11 @@ export interface DmsBaseMaintStationVO { */ remark: string; + /** + * 保养项目ID数组 + */ + maintProjectIds: (string | number)[] | null; + } export interface DmsBaseMaintStationForm extends BaseEntity { @@ -72,6 +77,11 @@ export interface DmsBaseMaintStationForm extends BaseEntity { */ remark?: string; + /** + * 保养项目ID数组 + */ + maintProjectIds?: (string | number)[] | null; + } export interface DmsBaseMaintStationQuery extends PageQuery { @@ -110,6 +120,11 @@ export interface DmsBaseMaintStationQuery extends PageQuery { * 日期范围参数 */ params?: any; + + /** + * 保养项目ID数组 + */ + maintProjectIds?: (string | number)[] | null; } diff --git a/src/views/dms/dmsBaseLubeStation/index.vue b/src/views/dms/dmsBaseLubeStation/index.vue index 14b9bcd..39ce73f 100644 --- a/src/views/dms/dmsBaseLubeStation/index.vue +++ b/src/views/dms/dmsBaseLubeStation/index.vue @@ -212,9 +212,6 @@ const data = reactive> activeFlag: [ { required: true, message: "激活标识不能为空", trigger: "change" } ], - deviceTypeId: [ - { required: true, message: "设备类型不能为空", trigger: "change" } - ], } }); diff --git a/src/views/dms/dmsBaseMaintStation/index.vue b/src/views/dms/dmsBaseMaintStation/index.vue index 3155e15..7a7414c 100644 --- a/src/views/dms/dmsBaseMaintStation/index.vue +++ b/src/views/dms/dmsBaseMaintStation/index.vue @@ -87,12 +87,20 @@ --> - + + + + - + @@ -101,6 +109,19 @@ + + + + + + + + (proxy?.useDict('active_flag')); @@ -173,8 +196,9 @@ const initFormData: DmsBaseMaintStationForm = { maintStandardId: undefined, maintStationCode: undefined, maintStationName: undefined, - activeFlag: undefined, + activeFlag: '1', remark: undefined, + maintProjectIds: [] } const data = reactive>({ form: {...initFormData}, @@ -298,9 +322,6 @@ const handleExport = () => { }, `dmsBaseMaintStation_${new Date().getTime()}.xlsx`) } - - - // 保养标准 let maintStandardOption = ref([]); const getMaintStandardOtions = async () => { @@ -315,9 +336,17 @@ const getDviceTypeOption = async () => { dviceTypeOptions.value = res.data; } +// 保养项目选项 +const maintProjectOptions = ref([]); +const getMaintProjectOptions = async () => { + const res = await getDmsBaseMaintProjectList(null); + maintProjectOptions.value = res.data; +} + onMounted(() => { getMaintStandardOtions(); getDviceTypeOption(); + getMaintProjectOptions(); getList(); });