diff --git a/apps/web-antd/src/api/property/businessManagement/workOrdersType/index.ts b/apps/web-antd/src/api/property/businessManagement/workOrdersType/index.ts index 7350e6cd..4cfbd81f 100644 --- a/apps/web-antd/src/api/property/businessManagement/workOrdersType/index.ts +++ b/apps/web-antd/src/api/property/businessManagement/workOrdersType/index.ts @@ -1,8 +1,6 @@ import type { WorkOrdersTypeVO, WorkOrdersTypeForm, WorkOrdersTypeQuery } from './model'; - import type { ID, IDS } from '#/api/common'; import type { PageResult } from '#/api/common'; - import { commonExport } from '#/api/helper'; import { requestClient } from '#/api/request'; diff --git a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts index 2cde0610..f1f10907 100644 --- a/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts +++ b/apps/web-antd/src/api/property/businessManagement/workOrdersType/model.d.ts @@ -35,7 +35,6 @@ export interface WorkOrdersTypeVO { * 是否支持转单(0支持,1不支持) */ isTransfers: number; - } export interface WorkOrdersTypeForm extends BaseEntity { @@ -73,7 +72,6 @@ export interface WorkOrdersTypeForm extends BaseEntity { * 是否支持转单(0支持,1不支持) */ isTransfers?: number; - } export interface WorkOrdersTypeQuery extends PageQuery { diff --git a/apps/web-antd/src/api/property/roomBooking/conferenceReservationRecords/index.ts b/apps/web-antd/src/api/property/roomBooking/conferenceReservationRecords/index.ts index 68986408..f9eaf014 100644 --- a/apps/web-antd/src/api/property/roomBooking/conferenceReservationRecords/index.ts +++ b/apps/web-antd/src/api/property/roomBooking/conferenceReservationRecords/index.ts @@ -46,7 +46,7 @@ export function bookingAdd(data: BookingForm) { * @returns void */ export function bookingUpdate(data: BookingForm) { - return requestClient.putWithMsg('/system/booking', data); + return requestClient.putWithMsg('/property/meetbooking', data); } /** diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts index 9ca14207..b8d89579 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/data.ts @@ -1,12 +1,13 @@ import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; - +import {renderDict} from "#/utils/render"; +import {getDictOptions} from "#/utils/dict"; export const querySchema: FormSchemaGetter = () => [ { component: 'Input', fieldName: 'orderTypeNo', - label: '类型编号', + label: '工单类型编号', }, { component: 'Input', @@ -16,6 +17,7 @@ export const querySchema: FormSchemaGetter = () => [ { component: 'Select', componentProps: { + options: getDictOptions('pro_operation_pattern'), }, fieldName: 'operationMode', label: '运作模式', @@ -25,7 +27,7 @@ export const querySchema: FormSchemaGetter = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, { - title: '类型编号', + title: '工单类型编号', field: 'orderTypeNo', }, { @@ -35,6 +37,12 @@ export const columns: VxeGridProps['columns'] = [ { title: '运作模式', field: 'operationMode', + slots: { + default: ({ row }) => { + return renderDict(row.operationMode, 'pro_operation_pattern'); + }, + }, + minWidth:'120' }, { title: '排序值', @@ -47,6 +55,12 @@ export const columns: VxeGridProps['columns'] = [ { title: '是否支持转单', field: 'isTransfers', + slots: { + default: ({ row }) => { + return renderDict(row.isTransfers, 'support_transferring_orders'); + }, + }, + minWidth:'120' }, { field: 'action', @@ -67,11 +81,6 @@ export const modalSchema: FormSchemaGetter = () => [ triggerFields: [''], }, }, - { - label: '类型编号', - fieldName: 'orderTypeNo', - component: 'Input', - }, { label: '类型名称', fieldName: 'orderTypeName', @@ -81,8 +90,24 @@ export const modalSchema: FormSchemaGetter = () => [ { label: '运作模式', fieldName: 'operationMode', - component: 'Input', + component: 'Select', componentProps: { + options: getDictOptions('pro_operation_pattern'), + }, + rules: 'selectRequired', + }, + { + label: '完成时效(小时)', + fieldName: 'isTransfers', + component: 'Input', + rules: 'required', + }, + { + label: '是否支持转单', + fieldName: 'isTransfers', + component: 'Select', + componentProps: { + options: getDictOptions('support_transferring_orders'), }, rules: 'selectRequired', }, @@ -90,15 +115,6 @@ export const modalSchema: FormSchemaGetter = () => [ label: '排序值', fieldName: 'sort', component: 'Input', - }, - { - label: '累计工单数量', - fieldName: 'number', - component: 'Input', - }, - { - label: '是否支持转单', - fieldName: 'isTransfers', - component: 'Input', + rules: 'required', }, ]; diff --git a/apps/web-antd/src/views/property/businessManagement/workOrdersType/index.vue b/apps/web-antd/src/views/property/businessManagement/workOrdersType/index.vue index 6e44d6c7..3f2d5ba7 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrdersType/index.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrdersType/index.vue @@ -1,29 +1,24 @@