feat: 保洁接口对接
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
fyy
2025-06-27 18:03:13 +08:00
parent f01cb4abce
commit 3e8ba86305
10 changed files with 62158 additions and 366 deletions

View File

@@ -1,14 +1,12 @@
import type { FormSchemaGetter } from '#/adapter/form';
import type { VxeGridProps } from '#/adapter/vxe-table';
export const querySchema: FormSchemaGetter = () => [
{
component: 'Input',
fieldName: 'name',
label: '劳务名称',
},
{
component: 'Input',
fieldName: 'method',
@@ -18,7 +16,7 @@ export const querySchema: FormSchemaGetter = () => [
component: 'Select',
fieldName: 'stater',
label: '状态',
componentProps: {
componentProps: {
options: [
{ label: '下架', value: 0 },
{ label: '上架', value: 1 },
@@ -34,7 +32,8 @@ export const columns: VxeGridProps['columns'] = [
{
title: '序号',
field: 'id',
slots: {
width: '60',
slots: {
default: ({ rowIndex }) => {
return (rowIndex + 1).toString();
},
@@ -43,17 +42,17 @@ export const columns: VxeGridProps['columns'] = [
{
title: '劳务名称',
field: 'name',
width:'120'
width: '120',
},
{
title: '计量单位',
field: 'measure',
width:'120'
width: '120',
},
{
title: '计算方式',
field: 'method',
width:'120'
width: '120',
},
{
title: '申报单价含税(元)',
@@ -63,30 +62,30 @@ export const columns: VxeGridProps['columns'] = [
{
title: '保洁频率',
field: 'frequency',
width:'120'
width: '120',
},
// {
// title: '保洁内容',
// field: 'standard',
// },
{
{
title: '保洁标准',
field: 'standard',
width:'200'
width: '200',
},
{
title: '备注',
field: 'remark',
width:'200'
width: '200',
},
{
title: '状态',
field: 'stater',
width:'120',
width: '120',
slots: {
default: ({ row }) => row.stater === 1 ? '上架' : '下架',
default: ({ row }) => (row.stater === 1 ? '上架' : '下架'),
},
},
},
// {
// title: '创建时间',
// field: 'stater',
@@ -147,7 +146,7 @@ export const modalSchema: FormSchemaGetter = () => [
// component: 'Input',
// rules: 'required',
// },
{
{
label: '保洁标准',
fieldName: 'standard',
component: 'Input',
@@ -175,7 +174,7 @@ export const modalSchema: FormSchemaGetter = () => [
// },
// rules: 'required',
// },
{
{
label: '状态',
fieldName: 'stater',
component: 'Select',