feat:巡检点二维码
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
2025-08-12 13:41:46 +08:00
parent 0d8bae5406
commit bc73f02c47
7 changed files with 130 additions and 20 deletions

View File

@@ -2,6 +2,8 @@ import type {FormSchemaGetter} from '#/adapter/form';
import type {VxeGridProps} from '#/adapter/vxe-table';
import {renderDict} from "#/utils/render";
import {getDictOptions} from "#/utils/dict";
import {z} from "#/adapter/form";
import {$t} from "@vben/locales";
export const querySchema: FormSchemaGetter = () => [
@@ -30,18 +32,10 @@ export const querySchema: FormSchemaGetter = () => [
export const columns: VxeGridProps['columns'] = [
{type: 'checkbox', width: 60},
{
title: '序号',
field: 'id',
slots: {
default: ({rowIndex}) => {
return (rowIndex + 1).toString();
}
}
},
{
title: '仓库名称',
field: 'depotName',
width:200
},
{
title: '仓库类型',
@@ -50,21 +44,23 @@ export const columns: VxeGridProps['columns'] = [
default: ({row}) => {
return renderDict(row.modelType, 'wy_cclx')
}
}
},
width:180
},
{
title: '状态',
field: 'state',
slots: {default: 'state'}
slots: {default: 'state'},
width:120
},
{
title: '创建时间',
field: 'createTime',
},
{
title: '描述信息',
field: 'msg',
},
{
title: '创建时间',
field: 'createTime',
minWidth:180,
},
{
field: 'action',
@@ -89,7 +85,7 @@ export const modalSchema: FormSchemaGetter = () => [
label: '仓库名称',
fieldName: 'depotName',
component: 'Input',
rules:'required'
rules: z.string().min(1,'请输入仓库名称').max(30, { message: '仓库名称过长' }),
},
{
label: '仓库类型',