1、入驻人员

This commit is contained in:
2025-06-23 09:39:53 +08:00
parent 255481861a
commit 8c5d26c12e
12 changed files with 696 additions and 137 deletions

View File

@@ -2,6 +2,7 @@ import type {FormSchemaGetter} from '#/adapter/form';
import type {VxeGridProps} from '#/adapter/vxe-table';
import {getDictOptions} from "#/utils/dict";
import {renderDict} from "#/utils/render";
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
@@ -30,13 +31,17 @@ export const columns: VxeGridProps['columns'] = [
field: 'id',
slots: {
default: ({ rowIndex }) => {
return rowIndex + 1;
return (rowIndex + 1).toString();
},
},
},
{
title: '单位编号',
field: 'unitNumber',
slots:{
default: ({ row }) => {
return row.id;
}}
},
{
title: '单位名称',
@@ -47,7 +52,7 @@ export const columns: VxeGridProps['columns'] = [
field: 'type',
slots: {
default: ({ row }) => {
return renderDict(row.type, 'wy_rzdwlx');
return renderDict(row.type, 'wy_qylx');
},
},
},
@@ -70,11 +75,7 @@ export const columns: VxeGridProps['columns'] = [
{
title: '状态',
field: 'state',
slots: {
default: ({ row }) => {
return renderDict(row.state, 'wy_state');
},
},
slots: {default: 'state'}
},
{
title: '员工数量',
@@ -112,15 +113,16 @@ export const modalSchema: FormSchemaGetter = () => [
fieldName: 'name',
component: 'Input',
rules: 'required',
},
{
label: '单位类型',
fieldName: 'type',
component: 'Select',
rules: 'required',
componentProps: {
options: getDictOptions('wy_rzdwlx'),
options: getDictOptions('wy_qylx'),
},
rules: 'required',
},
{
label: '联系人',
@@ -134,11 +136,13 @@ export const modalSchema: FormSchemaGetter = () => [
component: 'Input',
rules: 'required',
},
{
label: '入驻位置',
fieldName: 'location',
component: 'Input',
rules: 'required',
formItemClass: 'col-span-2'
},
{
label: '入驻时间',