diff --git a/apps/web-antd/src/api/property/assetManage/asset/model.d.ts b/apps/web-antd/src/api/property/assetManage/asset/model.d.ts index 213c5268..505a3b25 100644 --- a/apps/web-antd/src/api/property/assetManage/asset/model.d.ts +++ b/apps/web-antd/src/api/property/assetManage/asset/model.d.ts @@ -59,7 +59,7 @@ export interface AssetVO { /** * 固定资产类型 */ - type: number; + type: string; /** * 创建时间 diff --git a/apps/web-antd/src/api/property/floor/index.ts b/apps/web-antd/src/api/property/floor/index.ts index 69cee4af..bc47ff77 100644 --- a/apps/web-antd/src/api/property/floor/index.ts +++ b/apps/web-antd/src/api/property/floor/index.ts @@ -61,9 +61,9 @@ export function floorRemove(id: ID | IDS) { } /** - * 根据单元ID查询楼层 + * 根据楼层ID查询楼层 * @param id id */ -export function queryByUnitId(id: ID | IDS) { - return requestClient.get(`/property/floor/queryByUnitId/${id}`); +export function queryByBuildingId(id: ID | IDS) { + return requestClient.get(`/property/floor/queryByBuildingId/${id}`); } diff --git a/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts b/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts index 5fd773eb..0e25360d 100644 --- a/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts +++ b/apps/web-antd/src/api/sis/elevatorInfo/model.d.ts @@ -96,6 +96,22 @@ export interface ElevatorInfoVO { */ controlPwd: string + elevatorControlDeviceId: { + value: number, + deviceIp: string, + deviceId: number, + } + + remoteCallElevatorDeviceId: { + value: number, + deviceIp: string, + deviceId: number, + }[] + + /** + * 建筑ID + */ + buildingId?: number | string } export interface ElevatorInfoForm extends BaseEntity { @@ -195,10 +211,9 @@ export interface ElevatorInfoForm extends BaseEntity { controlPwd?: string /** - * 单元ID + * 建筑ID */ - unitId?: number - + buildingId?: number } export interface ElevatorInfoQuery extends PageQuery { @@ -299,9 +314,9 @@ export interface ElevatorInfoQuery extends PageQuery { } export interface ElevatorFloorRefVo { - /** - * - */ + /** + * + */ elevatorId: string | number /** diff --git a/apps/web-antd/src/views/property/assetManage/application/application-modal.vue b/apps/web-antd/src/views/property/assetManage/application/application-modal.vue index 9c9dac78..0ba82bec 100644 --- a/apps/web-antd/src/views/property/assetManage/application/application-modal.vue +++ b/apps/web-antd/src/views/property/assetManage/application/application-modal.vue @@ -1,20 +1,25 @@ - + diff --git a/apps/web-antd/src/views/property/assetManage/log/data.ts b/apps/web-antd/src/views/property/assetManage/log/data.ts index 142c10c5..96bed83e 100644 --- a/apps/web-antd/src/views/property/assetManage/log/data.ts +++ b/apps/web-antd/src/views/property/assetManage/log/data.ts @@ -1,130 +1,137 @@ import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; +import {getDictOptions} from "#/utils/dict"; export const querySchema: FormSchemaGetter = () => [ - { - component: 'Input', - fieldName: 'depotId', - label: '仓库id', - }, - { - component: 'Input', - fieldName: 'assetId', - label: '资产id', - }, + // { + // component: 'Input', + // fieldName: 'depotId', + // label: '仓库id', + // }, + // { + // component: 'Input', + // fieldName: 'assetId', + // label: '资产id', + // }, { component: 'Select', componentProps: { + options:getDictOptions('wy_cklzlx') }, fieldName: 'type', label: '流转类型', }, - { - component: 'DatePicker', - componentProps: { - showTime: true, - format: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - }, - fieldName: 'time', - label: '流转时间', - }, - { - component: 'Input', - fieldName: 'userId', - label: '操作人id', - }, - { - component: 'Input', - fieldName: 'state', - label: '状态', - }, - { - component: 'Input', - fieldName: 'price', - label: '价格', - }, - { - component: 'Input', - fieldName: 'priceSum', - label: '总价', - }, - { - component: 'Input', - fieldName: 'number', - label: '数量', - }, - { - component: 'Input', - fieldName: 'supplierId', - label: '供应商id', - }, + // { + // component: 'DatePicker', + // componentProps: { + // showTime: true, + // format: 'YYYY-MM-DD HH:mm:ss', + // valueFormat: 'YYYY-MM-DD HH:mm:ss', + // }, + // fieldName: 'time', + // label: '流转时间', + // }, + // { + // component: 'Input', + // fieldName: 'userId', + // label: '操作人id', + // }, + // { + // component: 'Input', + // fieldName: 'state', + // label: '状态', + // }, + // { + // component: 'Input', + // fieldName: 'price', + // label: '价格', + // }, + // { + // component: 'Input', + // fieldName: 'priceSum', + // label: '总价', + // }, + // { + // component: 'Input', + // fieldName: 'number', + // label: '数量', + // }, + // { + // component: 'Input', + // fieldName: 'supplierId', + // label: '供应商id', + // }, ]; // 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新 // export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, - { - title: '主键', - field: 'id', - }, { title: '仓库id', field: 'depotId', + minWidth:150, }, { title: '资产id', field: 'assetId', + width:180, }, { title: '流转类型', field: 'type', + width:120, + }, + + { + title: '数量', + field: 'number', + width:120, }, { title: '流转时间', field: 'time', + width:150, }, { title: '操作人id', field: 'userId', - }, - { - title: '状态', - field: 'state', + width:150, }, { title: '备注', field: 'remark', + width:180, }, - { - title: '价格', - field: 'price', - }, - { - title: '总价', - field: 'priceSum', - }, - { - title: '数量', - field: 'number', - }, - { - title: '供应商id', - field: 'supplierId', - }, - { - title: '创建时间', - field: 'createTime', - }, - { - field: 'action', - fixed: 'right', - slots: { default: 'action' }, - title: '操作', - width: 180, - }, + // { + // title: '状态', + // field: 'state', + // width:150, + // }, + // { + // title: '价格', + // field: 'price', + // }, + // { + // title: '总价', + // field: 'priceSum', + // }, + // { + // title: '供应商id', + // field: 'supplierId', + // }, + // { + // title: '创建时间', + // field: 'createTime', + // }, + // { + // field: 'action', + // fixed: 'right', + // slots: { default: 'action' }, + // title: '操作', + // width: 180, + // }, ]; export const modalSchema: FormSchemaGetter = () => [ diff --git a/apps/web-antd/src/views/property/assetManage/log/index.vue b/apps/web-antd/src/views/property/assetManage/log/index.vue index a4767f2e..d0162211 100644 --- a/apps/web-antd/src/views/property/assetManage/log/index.vue +++ b/apps/web-antd/src/views/property/assetManage/log/index.vue @@ -135,47 +135,47 @@ function handleDownloadExcel() { > {{ $t('pages.common.export') }} - - {{ $t('pages.common.delete') }} - - - {{ $t('pages.common.add') }} - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts index e25fafe2..5ecf2907 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/data.ts @@ -24,6 +24,14 @@ export const querySchema: FormSchemaGetter = () => [ fieldName: 'status', label: '状态', }, + { + component: 'Select', + componentProps: { + options: getDictOptions('pro_processing_weight'), + }, + fieldName: 'processingWeight', + label: '处理权重', + }, ]; export const columns: VxeGridProps['columns'] = [ @@ -148,6 +156,15 @@ export const modalSchema: FormSchemaGetter = () => [ componentProps: {}, rules: 'selectRequired', }, + { + label: '处理权重', + fieldName: 'processingWeight', + component: 'Select', + componentProps: { + options: getDictOptions('pro_processing_weight'), + }, + rules: 'selectRequired', + }, // { // label: '状态', // fieldName: 'status', @@ -216,9 +233,8 @@ export const modalSchema: FormSchemaGetter = () => [ // }, { label: '备注', - fieldName: 'remarkremark', + fieldName: 'remark', component: 'Textarea', - rules: 'required', }, // { // label: '是否超时', @@ -230,6 +246,15 @@ export const modalSchema: FormSchemaGetter = () => [ // }, // rules: 'selectRequired', // }, + { + label: '工单图片', + fieldName: 'orderImgUrl', + component: 'ImageUpload', + componentProps: { + maxCount: 1, + }, + formItemClass: 'col-span-2', + }, ]; export const ordersModalSchema: FormSchemaGetter = () => [ { diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/work-orders-detail.vue b/apps/web-antd/src/views/property/businessManagement/workOrders/work-orders-detail.vue index bcd5349b..95c8420c 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/work-orders-detail.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/work-orders-detail.vue @@ -77,6 +77,11 @@ async function handleOpenChange(open: boolean) { {{ orderDetail.compleTime }} + + + {{ orderDetail.imgUrl }} + + {{ orderDetail.orderImgUrl }} + 处理记录 diff --git a/apps/web-antd/src/views/property/businessManagement/workOrders/workOrders-modal.vue b/apps/web-antd/src/views/property/businessManagement/workOrders/workOrders-modal.vue index 8de52792..a641283f 100644 --- a/apps/web-antd/src/views/property/businessManagement/workOrders/workOrders-modal.vue +++ b/apps/web-antd/src/views/property/businessManagement/workOrders/workOrders-modal.vue @@ -48,6 +48,7 @@ const {onBeforeClose, markInitialized, resetInitialized} = useBeforeCloseDiff( }, ); +const recordEdit = ref({}); const [BasicModal, modalApi] = useVbenModal({ // 在这里更改宽度 class: 'w-[70%]', @@ -61,7 +62,7 @@ const [BasicModal, modalApi] = useVbenModal({ } modalApi.modalLoading(true); await queryPersonData() - await queryWorkOrdersType() + const {id} = modalApi.getData() as { id?: number | string }; isUpdate.value = !!id; @@ -69,6 +70,7 @@ const [BasicModal, modalApi] = useVbenModal({ const record = await workOrdersInfo(id); record.isTimeOut = record.isTimeOut?.toString() await formApi.setValues(record); + recordEdit.value = record; } await markInitialized(); @@ -85,6 +87,9 @@ async function handleConfirm() { } // getValues获取为一个readonly的对象 需要修改必须先深拷贝一次 const data = cloneDeep(await formApi.getValues()); + if(isUpdate.value){ + data.status = recordEdit?.value.status + } await (isUpdate.value ? workOrdersUpdate(data) : workOrdersAdd(data)); resetInitialized(); emit('reload'); @@ -129,30 +134,6 @@ async function queryPersonData() { }]) } -async function queryWorkOrdersType() { - let params = { - pageSize: 1000, - pageNum: 1 - } - const res = await workOrdersTypeList(params) - const options = res.rows.map((item) => ({ - label: item.orderTypeName, - value: item.id, - })); - formApi.updateSchema([{ - componentProps: () => ({ - options: options, - filterOption: filterOption, - showSearch:true, - }), - fieldName: 'type', - }]) -} - -const filterOption = (input: string, option: any) => { - return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0; -}; -