绿植管理

This commit is contained in:
FLL
2025-07-02 11:02:14 +08:00
parent b6f7558aaa
commit 79fe4c6412
17 changed files with 1031 additions and 133 deletions

View File

@@ -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',
},
{