资产审批
This commit is contained in:
@@ -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: '审批时间',
|
||||
|
Reference in New Issue
Block a user