diff --git a/apps/web-antd/src/api/property/chargeManagement/model.d.ts b/apps/web-antd/src/api/property/chargeManagement/model.d.ts index 68cc125c..8313b1d2 100644 --- a/apps/web-antd/src/api/property/chargeManagement/model.d.ts +++ b/apps/web-antd/src/api/property/chargeManagement/model.d.ts @@ -65,7 +65,6 @@ export interface OrderChargeVO { * 收费状态 */ chargeStatus: number; - } export interface OrderChargeForm extends BaseEntity { @@ -133,7 +132,6 @@ export interface OrderChargeForm extends BaseEntity { * 收费状态 */ chargeStatus?: number; - } export interface OrderChargeQuery extends PageQuery { @@ -202,3 +200,70 @@ export interface OrderChargeQuery extends PageQuery { */ params?: any; } + +export interface orderChargeDetailForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 订单id + */ + orderId?: string | number; + + /** + * 租赁人id(系统用户) + */ + userId?: string | number; + + /** + * 租赁人名称 + */ + userName?: string; + + /** + * 租金 + */ + rent?: number; + + /** + * 押金 + */ + deposit?: number; + + /** + * 违约金 + */ + penalty?: number; + + /** + * 总金额 + */ + totalAmount?: number; + + /** + * 收费日期 + */ + chargeDate?: string; + + /** + * 支付方式 + */ + paymentMethod?: number; + + /** + * 开票状态 + */ + invoiceStatus?: number; + + /** + * 发票类型 + */ + invoiceType?: number; + + /** + * 收费状态 + */ + chargeStatus?: number; +} diff --git a/apps/web-antd/src/api/property/conservationManagement/index.ts b/apps/web-antd/src/api/property/conservationManagement/index.ts new file mode 100644 index 00000000..033529c0 --- /dev/null +++ b/apps/web-antd/src/api/property/conservationManagement/index.ts @@ -0,0 +1,59 @@ +import type { OrderMaintainVO, OrderMaintainForm, OrderMaintainQuery } 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'; + +/** +* 查询绿植租赁-订单养护管理列表 +* @param params +* @returns 绿植租赁-订单养护管理列表 +*/ +export function orderMaintainList(params?: OrderMaintainQuery) { + return requestClient.get>('/property/orderMaintain/list', { params }); +} + +/** + * 导出绿植租赁-订单养护管理列表 + * @param params + * @returns 绿植租赁-订单养护管理列表 + */ +export function orderMaintainExport(params?: OrderMaintainQuery) { + return commonExport('/property/orderMaintain/export', params ?? {}); +} + +/** + * 查询绿植租赁-订单养护管理详情 + * @param id id + * @returns 绿植租赁-订单养护管理详情 + */ +export function orderMaintainInfo(id: ID) { + return requestClient.get(`/property/orderMaintain/${id}`); +} + +/** + * 新增绿植租赁-订单养护管理 + * @param data + * @returns void + */ +export function orderMaintainAdd(data: OrderMaintainForm) { + return requestClient.postWithMsg('/property/orderMaintain', data); +} + +/** + * 更新绿植租赁-订单养护管理 + * @param data + * @returns void + */ +export function orderMaintainUpdate(data: OrderMaintainForm) { + return requestClient.putWithMsg('/property/orderMaintain', data); +} + +/** + * 删除绿植租赁-订单养护管理 + * @param id id + * @returns void + */ +export function orderMaintainRemove(id: ID | IDS) { + return requestClient.deleteWithMsg(`/property/orderMaintain/${id}`); +} diff --git a/apps/web-antd/src/api/property/conservationManagement/model.d.ts b/apps/web-antd/src/api/property/conservationManagement/model.d.ts new file mode 100644 index 00000000..6207f3b7 --- /dev/null +++ b/apps/web-antd/src/api/property/conservationManagement/model.d.ts @@ -0,0 +1,247 @@ +import type { PageQuery, BaseEntity } from '#/api/common'; + +export interface OrderMaintainVO { + /** + * 主键 + */ + id: string | number; + + /** + * 养护名称 + */ + maintainName: string; + + /** + * 小区id + */ + communityId: string | number; + + /** + * 建筑id + */ + buildingId: string | number; + + /** + * 楼层id + */ + floorId: string | number; + + /** + * 服务类型 + */ + serveType: number; + + /** + * 养护周期类型 + */ + periodType: number; + + /** + * 养护周期频次 + */ + periodFrequency: number; + + /** + * 订单id + */ + orderId: string | number; + + /** + * 计划执行时间 + */ + startTime: string; + + /** + * 计划完成时间 + */ + endTime: string; + + /** + * 巡检结果 + */ + inspectResult: number; + + /** + * 处理措施 + */ + measure: string; + + /** + * 客户评分 + */ + customerScore: number; + + /** + * 客户反馈 + */ + customerAdvice: string; + + /** + * 处理状态 + */ + state: number; +} + +export interface OrderMaintainForm extends BaseEntity { + /** + * 主键 + */ + id?: string | number; + + /** + * 养护名称 + */ + maintainName?: string; + + /** + * 小区id + */ + communityId?: string | number; + + /** + * 建筑id + */ + buildingId?: string | number; + + /** + * 楼层id + */ + floorId?: string | number; + + /** + * 服务类型 + */ + serveType?: number; + + /** + * 养护周期类型 + */ + periodType?: number; + + /** + * 养护周期频次 + */ + periodFrequency?: number; + + /** + * 订单id + */ + orderId?: string | number; + + /** + * 计划执行时间 + */ + startTime?: string; + + /** + * 计划完成时间 + */ + endTime?: string; + + /** + * 巡检结果 + */ + inspectResult?: number; + + /** + * 处理措施 + */ + measure?: string; + + /** + * 客户评分 + */ + customerScore?: number; + + /** + * 客户反馈 + */ + customerAdvice?: string; + + /** + * 处理状态 + */ + state?: number; +} + +export interface OrderMaintainQuery extends PageQuery { + /** + * 养护名称 + */ + maintainName?: string; + + /** + * 小区id + */ + communityId?: string | number; + + /** + * 建筑id + */ + buildingId?: string | number; + + /** + * 楼层id + */ + floorId?: string | number; + + /** + * 服务类型 + */ + serveType?: number; + + /** + * 养护周期类型 + */ + periodType?: number; + + /** + * 养护周期频次 + */ + periodFrequency?: number; + + /** + * 订单id + */ + orderId?: string | number; + + /** + * 计划执行时间 + */ + startTime?: string; + + /** + * 计划完成时间 + */ + endTime?: string; + + /** + * 巡检结果 + */ + inspectResult?: number; + + /** + * 处理措施 + */ + measure?: string; + + /** + * 客户评分 + */ + customerScore?: number; + + /** + * 客户反馈 + */ + customerAdvice?: string; + + /** + * 处理状态 + */ + state?: number; + + /** + * 日期范围参数 + */ + params?: any; +} diff --git a/apps/web-antd/src/api/property/productManagement/model.d.ts b/apps/web-antd/src/api/property/productManagement/model.d.ts index 684c2026..5d611320 100644 --- a/apps/web-antd/src/api/property/productManagement/model.d.ts +++ b/apps/web-antd/src/api/property/productManagement/model.d.ts @@ -19,7 +19,7 @@ export interface PropertyVO { /** * 产品分类 */ - plantType: number; + plantType: number|string; /** * 产品图片 @@ -44,7 +44,7 @@ export interface PropertyVO { /** * 状态(0下架 1上架 ) */ - state: number; + state: number|string; /** * 备注 @@ -72,8 +72,7 @@ export interface PropertyForm extends BaseEntity { /** * 产品分类 */ - plantType?: number; - + plantType?: number|string; /** * 产品图片 */ @@ -97,7 +96,7 @@ export interface PropertyForm extends BaseEntity { /** * 状态(0下架 1上架 ) */ - state?: number; + state?: number|string; /** * 备注 @@ -120,7 +119,7 @@ export interface PropertyQuery extends PageQuery { /** * 产品分类 */ - plantType?: number; + plantType?: number|string; /** * 产品图片 @@ -145,7 +144,7 @@ export interface PropertyQuery extends PageQuery { /** * 状态(0下架 1上架 ) */ - state?: number; + state?: number|string; /** * 日期范围参数 @@ -172,7 +171,7 @@ export interface plantsProduct extends BaseEntity { /** * 产品分类 */ - plantType?: number; + plantType?: number|string; /** * 产品图片 @@ -182,7 +181,7 @@ export interface plantsProduct extends BaseEntity { /** * 规格 */ - specification?: string; + specification?: number|string; /** * 租金 @@ -197,7 +196,7 @@ export interface plantsProduct extends BaseEntity { /** * 状态(0下架 1上架 ) */ - state?: number; + state?: number|string; /** * 备注 diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/data.ts b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/data.ts index 47ed6132..d19cd563 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/data.ts +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/data.ts @@ -2,18 +2,14 @@ import type { FormSchemaGetter } from '#/adapter/form'; import type { VxeGridProps } from '#/adapter/vxe-table'; import { getDictOptions } from '#/utils/dict'; import { renderDict } from '#/utils/render'; +import {orderChargeList} from "#/api/property/chargeManagement"; export const querySchema: FormSchemaGetter = () => [ { - component: 'Input', + component: 'Select', fieldName: 'orderId', label: '订单号', }, - { - component: 'Input', - fieldName: 'userId', - label: '租赁人id', - }, { component: 'Select', componentProps: { @@ -27,16 +23,19 @@ export const querySchema: FormSchemaGetter = () => [ fieldName: 'userName', label: '租赁人', }, - { - component: 'DatePicker', - componentProps: { - showTime: true, - format: 'YYYY-MM-DD HH:mm:ss', - valueFormat: 'YYYY-MM-DD HH:mm:ss', - }, - fieldName: 'chargeDate', - label: '收费日期', - }, + // { + // component: 'RangePicker', + // componentProps: { + // showTime: { + // format: 'HH:mm:ss' + // }, + // format: 'YYYY-MM-DD HH:mm:ss', + // valueFormat: 'YYYY-MM-DD HH:mm:ss', + // placeholder: ['开始时间', '结束时间'] + // }, + // fieldName: 'chargeDate', + // label: '收费日期', + // }, { component: 'Select', componentProps: { @@ -71,7 +70,7 @@ export const columns: VxeGridProps['columns'] = [ field: 'orderId', }, { - title: '租赁人id', + title: '租赁合同编号', field: 'userId', }, { @@ -129,6 +128,10 @@ export const columns: VxeGridProps['columns'] = [ }, }, }, + { + title: '创建时间', + field: 'createTime', + }, { field: 'action', fixed: 'right', @@ -148,16 +151,21 @@ export const modalSchema: FormSchemaGetter = () => [ triggerFields: [''], }, }, + // { + // label: '订单号', + // fieldName: 'orderId', + // component: 'Input', + // rules: 'required', + // }, { label: '订单号', fieldName: 'orderId', - component: 'Input', - rules: 'required', - }, - { - label: '租赁人id', - fieldName: 'userId', - component: 'Input', + component: 'ApiSelect', + componentProps: { + api: orderChargeList, + resultField: 'rows', + valueField: 'orderId', + }, rules: 'required', }, { diff --git a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue index 9fabaeb0..718a2cf7 100644 --- a/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue +++ b/apps/web-antd/src/views/property/greenPlantRentalManagement/chargeManagement/index.vue @@ -8,13 +8,12 @@ import { type VxeGridProps } from '#/adapter/vxe-table'; import { - orderChargeExport, orderChargeList, orderChargeRemove, } from '#/api/property/chargeManagement'; import type { OrderChargeForm } from '#/api/property/chargeManagement/model'; -import { commonDownloadExcel } from '#/utils/file/download'; import orderChargeModal from './orderCharge-modal.vue'; +import orderChargeDetail from './orderCharge-detail.vue'; import { columns, querySchema } from './data'; const formOptions: VbenFormProps = { @@ -63,6 +62,15 @@ const [OrderChargeModal, modalApi] = useVbenModal({ connectedComponent: orderChargeModal, }); +const [orderChargeDetailModal, orderChargeDetailApi] = useVbenModal({ + connectedComponent: orderChargeDetail, +}); + +async function handleInfo(row: Required) { + orderChargeDetailApi.setData({ id: row.id }); + orderChargeDetailApi.open(); +} + function handleAdd() { modalApi.setData({}); modalApi.open(); @@ -91,12 +99,6 @@ function handleMultiDelete() { }, }); } - -function handleDownloadExcel() { - commonDownloadExcel(orderChargeExport, '绿植租赁-订单收费数据', tableApi.formApi.form.values, { - fieldMappingTime: formOptions.fieldMappingTime, - }); -}