From d4c26d13eaee05b7002088a3b837125185c43fe0 Mon Sep 17 00:00:00 2001 From: fyy <2717885210@qq.com> Date: Mon, 23 Jun 2025 16:50:37 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=AE=9E=E7=8E=B0=E4=BF=9D=E6=B4=81?= =?UTF-8?q?=E7=AE=A1=E7=90=86=E4=B8=9A=E5=8A=A1=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/property/clean_order/model.d.ts | 4 +- .../clean/cleanOrders/clean-modal.vue | 84 +++++- .../views/property/clean/cleanOrders/data.ts | 253 ++++++++++++------ .../property/clean/cleanOrders/index.vue | 17 +- .../clean/cleanSettings/clean-modal.vue | 101 +++++++ .../property/clean/cleanSettings/data.ts | 189 +++++++++++++ .../property/clean/cleanSettings/index.vue | 181 ++++++++++++- .../conferenceReservations/index.vue | 135 +--------- 8 files changed, 737 insertions(+), 227 deletions(-) create mode 100644 apps/web-antd/src/views/property/clean/cleanSettings/clean-modal.vue create mode 100644 apps/web-antd/src/views/property/clean/cleanSettings/data.ts diff --git a/apps/web-antd/src/api/property/clean_order/model.d.ts b/apps/web-antd/src/api/property/clean_order/model.d.ts index 423116ff..688abd97 100644 --- a/apps/web-antd/src/api/property/clean_order/model.d.ts +++ b/apps/web-antd/src/api/property/clean_order/model.d.ts @@ -19,7 +19,7 @@ export interface Clean_orderVO { /** * 保洁id */ - cleanId: string | number; + cleanId: string | null; /** * 名称 @@ -54,7 +54,7 @@ export interface Clean_orderVO { /** * 单位id */ - unitId: string | number; + unitId: string | null; /** * 申请单位 diff --git a/apps/web-antd/src/views/property/clean/cleanOrders/clean-modal.vue b/apps/web-antd/src/views/property/clean/cleanOrders/clean-modal.vue index 8be6af3d..bdb449e4 100644 --- a/apps/web-antd/src/views/property/clean/cleanOrders/clean-modal.vue +++ b/apps/web-antd/src/views/property/clean/cleanOrders/clean-modal.vue @@ -1,13 +1,17 @@ + + + diff --git a/apps/web-antd/src/views/property/clean/cleanSettings/data.ts b/apps/web-antd/src/views/property/clean/cleanSettings/data.ts new file mode 100644 index 00000000..259dd71a --- /dev/null +++ b/apps/web-antd/src/views/property/clean/cleanSettings/data.ts @@ -0,0 +1,189 @@ +import type { FormSchemaGetter } from '#/adapter/form'; +import type { VxeGridProps } from '#/adapter/vxe-table'; + + +export const querySchema: FormSchemaGetter = () => [ + { + component: 'Input', + fieldName: 'name', + label: '劳务名称', + }, + + { + component: 'Input', + fieldName: 'method', + label: '计算方式', + }, + { + component: 'Select', + fieldName: 'stater', + label: '状态', + componentProps: { + options: [ + { label: '下架', value: 0 }, + { label: '上架', value: 1 }, + ], + placeholder: '请选择类型', + }, + }, +]; + +// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 +// export const columns: () => VxeGridProps['columns'] = () => [ +export const columns: VxeGridProps['columns'] = [ + { type: 'checkbox', width: 60 }, + { + title: '序号', + field: 'id', + width: 60, + slots: { + default: ({ rowIndex }) => { + return (rowIndex + 1).toString(); + }, + }, + }, + { + title: '劳务名称', + field: 'name', + }, + { + title: '计量单位', + field: 'measure', + }, + { + title: '计算方式', + field: 'method', + }, + { + title: '申报单价含税(元)', + field: 'peices', + }, + { + title: '保洁频率', + field: 'frequency', + }, + // { + // title: '保洁内容', + // field: 'standard', + // }, + { + title: '保洁标准', + field: 'standard', + }, + { + title: '备注', + field: 'remark', + }, + { + title: '状态', + field: 'stater', + slots: { + default: ({ row }) => row.stater === 1 ? '上架' : '下架', + }, + }, + // { + // title: '创建时间', + // field: 'stater', + // }, + { + field: 'action', + fixed: 'right', + slots: { default: 'action' }, + title: '操作', + width: 180, + }, +]; + +export const modalSchema: FormSchemaGetter = () => [ + { + label: '主键id', + fieldName: 'id', + component: 'Input', + dependencies: { + show: () => false, + triggerFields: [''], + }, + }, + { + label: '劳务名称', + fieldName: 'name', + component: 'Input', + rules: 'required', + }, + { + label: '计量单位', + fieldName: 'measure', + component: 'Input', + rules: 'required', + }, + { + label: '计算方式', + fieldName: 'method', + component: 'Input', + rules: 'required', + }, + { + label: '申报单价含税(元)', + fieldName: 'peices', + component: 'Input', + rules: 'required', + }, + { + label: '保洁频率', + fieldName: 'frequency', + component: 'Input', + rules: 'required', + }, + // { + // label: '保洁内容', + // fieldName: 'standard', + // component: 'Input', + // rules: 'required', + // }, + { + label: '保洁标准', + fieldName: 'standard', + component: 'Input', + rules: 'required', + }, + // { + // label: '开始时间', + // fieldName: 'starTime', + // component: 'DatePicker', + // componentProps: { + // showTime: true, + // format: 'YYYY-MM-DD HH:mm:ss', + // placeholder: '请选择开始时间' + // }, + // rules: 'required', + // }, + // { + // label: '结束时间', + // fieldName: 'endTime', + // component: 'DatePicker', + // componentProps: { + // showTime: true, + // format: 'YYYY-MM-DD HH:mm:ss', + // placeholder: '请选择结束时间' + // }, + // rules: 'required', + // }, + { + label: '状态', + fieldName: 'stater', + component: 'Select', + componentProps: { + options: [ + { label: '下架', value: 0 }, + { label: '上架', value: 1 }, + ], + placeholder: '请选择类型', + }, + rules: 'required', + }, + { + label: '备注', + fieldName: 'remark', + component: 'Input', + }, +]; diff --git a/apps/web-antd/src/views/property/clean/cleanSettings/index.vue b/apps/web-antd/src/views/property/clean/cleanSettings/index.vue index 5062955b..dcdcc307 100644 --- a/apps/web-antd/src/views/property/clean/cleanSettings/index.vue +++ b/apps/web-antd/src/views/property/clean/cleanSettings/index.vue @@ -1,4 +1,181 @@ + + - \ No newline at end of file diff --git a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue index c1a49beb..408e5397 100644 --- a/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue +++ b/apps/web-antd/src/views/property/roomBooking/conferenceReservations/index.vue @@ -1,134 +1,5 @@ - - - - \ No newline at end of file + + \ No newline at end of file