1、绿植租赁订单
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-06-30 14:45:06 +08:00
parent d24d03457a
commit 9eac725934
11 changed files with 148 additions and 76 deletions

View File

@@ -6,11 +6,6 @@ import {resident_unitList} from "#/api/property/resident/unit";
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'unitId',
label: '所属单位',
},
{
component: 'ApiSelect',
fieldName: 'unitId',
@@ -24,8 +19,8 @@ export const querySchema: FormSchemaGetter = () => [
debounceTime: 500,
allowClear: true,
placeholder: '请选择所属单位',
filterOption:true
},
rules: 'required',
},
{
component: 'Input',
@@ -56,23 +51,27 @@ export const columns: VxeGridProps['columns'] = [
{
title: '员工编号',
field: 'userId',
width: 100
},
{
title: '员工名称',
field: 'userName',
width: 100
},
{
title: '联系电话',
field: 'phone',
width: 100
},
{
title: '性别',
field: 'gender',
slots:{
default: ({row})=>{
return renderDict(row.gender,'wy_rzryzt')
return renderDict(row.gender,'sys_user_sex')
}
}
},
width: 100
},
{
field: 'img',
@@ -83,18 +82,21 @@ export const columns: VxeGridProps['columns'] = [
{
title: '所属单位',
field: 'unitName',
width: 100
},
{
title: '入驻位置',
field: 'locathon',
},
// {
// title: '入驻位置',
// field: 'locathon',
// },
{
title: '入驻时间',
field: 'time',
width: 100
},
{
title: '车牌号码',
field: 'carNumber',
width: 100
},
{
title: '状态',
@@ -103,18 +105,20 @@ export const columns: VxeGridProps['columns'] = [
default: ({row})=>{
return renderDict(row.state,'wy_rzryzt')
}
}
},
width: 100
},
{
title: '备注',
field: 'remark',
width: 100
},
{
field: 'action',
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
minWidth: 180,
},
];
@@ -168,6 +172,7 @@ export const modalSchema: FormSchemaGetter = () => [
format: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD HH:mm:ss',
},
rules:"required"
},
{
label: '车牌号码',
@@ -181,6 +186,7 @@ export const modalSchema: FormSchemaGetter = () => [
componentProps: {
options: getDictOptions('wy_rzryzt'),
},
rules:'selectRequired'
},
{
label: '备注',
@@ -280,8 +286,8 @@ export async function getUnitList(): Promise<{ value: number; label: string }[]>
res.rows.forEach((r: any) => {
data.push({
value: r.name,
label: r.id,
value: r.id,
label: r.name,
});
});
return data;