资产审批

This commit is contained in:
2025-06-25 11:37:28 +08:00
parent f620debe43
commit 8d517b3133
18 changed files with 606 additions and 341 deletions

View File

@@ -1,5 +1,8 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
import { renderDict } from "#/utils/render";
import { DictEnum } from '@vben/constants';
export const querySchema: FormSchemaGetter = () => [
@@ -59,12 +62,12 @@ export const columns: VxeGridProps['columns'] = [
field: 'id',
},
{
title: '资产id',
field: 'assetId',
title: '资产',
field: 'assetName',
},
{
title: '领用人id',
field: 'userId',
title: '领用人',
field: 'userName',
},
{
title: '数量',
@@ -73,10 +76,15 @@ export const columns: VxeGridProps['columns'] = [
{
title: '状态',
field: 'state',
slots: {
default: ({ row }) => {
return renderDict(row.state, DictEnum.WY_ZCSHZT);
},
},
},
{
title: '审批人id',
field: 'acceptanceUserId',
title: '审批人',
field: 'acceptanceUserName',
},
{
title: '审批时间',