feat: 更新保洁页面

This commit is contained in:
fyy
2025-06-26 18:02:43 +08:00
parent 2b10dc8fa2
commit 730d8ca6f2
5 changed files with 533 additions and 42 deletions

View File

@@ -31,11 +31,9 @@ export const querySchema: FormSchemaGetter = () => [
// 需要使用i18n注意这里要改成getter形式 否则切换语言不会刷新
// export const columns: () => VxeGridProps['columns'] = () => [
export const columns: VxeGridProps['columns'] = [
{ type: 'checkbox', width: 60 },
{
title: '序号',
field: 'id',
width: 60,
slots: {
default: ({ rowIndex }) => {
return (rowIndex + 1).toString();
@@ -45,22 +43,27 @@ export const columns: VxeGridProps['columns'] = [
{
title: '劳务名称',
field: 'name',
width:'120'
},
{
title: '计量单位',
field: 'measure',
width:'120'
},
{
title: '计算方式',
field: 'method',
width:'120'
},
{
title: '申报单价含税(元)',
field: 'peices',
width: 'auto',
},
{
title: '保洁频率',
field: 'frequency',
width:'120'
},
// {
// title: '保洁内容',
@@ -69,14 +72,17 @@ export const columns: VxeGridProps['columns'] = [
{
title: '保洁标准',
field: 'standard',
width:'200'
},
{
title: '备注',
field: 'remark',
width:'200'
},
{
title: '状态',
field: 'stater',
width:'120',
slots: {
default: ({ row }) => row.stater === 1 ? '上架' : '下架',
},
@@ -90,7 +96,7 @@ export const columns: VxeGridProps['columns'] = [
fixed: 'right',
slots: { default: 'action' },
title: '操作',
width: 180,
width: 'auto',
},
];
@@ -127,6 +133,7 @@ export const modalSchema: FormSchemaGetter = () => [
fieldName: 'peices',
component: 'Input',
rules: 'required',
width: 300,
},
{
label: '保洁频率',