wy
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import type { FormSchemaGetter } from '#/adapter/form';
|
||||
import type { VxeGridProps } from '#/adapter/vxe-table';
|
||||
|
||||
import { getDictOptions } from '#/utils/dict';
|
||||
import { renderDict } from '#/utils/render';
|
||||
|
||||
export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
@@ -19,9 +21,7 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
label: '服务数量',
|
||||
},
|
||||
{
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
fieldName: 'serveType',
|
||||
label: '服务分类',
|
||||
},
|
||||
@@ -33,27 +33,14 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
{
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
options: getDictOptions('wy_qrzt'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
fieldName: 'serveStatus',
|
||||
label: '预订状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'createById',
|
||||
label: '创建人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'updateById',
|
||||
label: '更新人id',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'confirmId',
|
||||
label: '确认人id',
|
||||
},
|
||||
{
|
||||
component: 'DatePicker',
|
||||
componentProps: {
|
||||
@@ -79,11 +66,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
fieldName: 'servePrice',
|
||||
label: '服务总价格',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'dataStauts',
|
||||
label: '数据状态',
|
||||
},
|
||||
{
|
||||
component: 'Input',
|
||||
fieldName: 'serveImage',
|
||||
@@ -100,10 +82,6 @@ export const querySchema: FormSchemaGetter = () => [
|
||||
// export const columns: () => VxeGridProps['columns'] = () => [
|
||||
export const columns: VxeGridProps['columns'] = [
|
||||
{ type: 'checkbox', width: 60 },
|
||||
{
|
||||
title: 'id',
|
||||
field: 'id',
|
||||
},
|
||||
{
|
||||
title: '分类id',
|
||||
field: 'classificationId',
|
||||
@@ -119,6 +97,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '服务分类',
|
||||
field: 'serveType',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_FWFL 便于维护
|
||||
return renderDict(row.serveType, 'wy_fwfl');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '产品名称',
|
||||
@@ -127,18 +111,12 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '预订状态',
|
||||
field: 'serveStatus',
|
||||
},
|
||||
{
|
||||
title: '创建人id',
|
||||
field: 'createById',
|
||||
},
|
||||
{
|
||||
title: '更新人id',
|
||||
field: 'updateById',
|
||||
},
|
||||
{
|
||||
title: '确认人id',
|
||||
field: 'confirmId',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
return renderDict(row.serveStatus, 'wy_qrzt');
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '服务开始时间',
|
||||
@@ -152,10 +130,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '服务总价格',
|
||||
field: 'servePrice',
|
||||
},
|
||||
{
|
||||
title: '数据状态',
|
||||
field: 'dataStauts',
|
||||
},
|
||||
{
|
||||
title: '产品图片',
|
||||
field: 'serveImage',
|
||||
@@ -187,52 +161,43 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '分类id',
|
||||
fieldName: 'classificationId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预订id',
|
||||
fieldName: 'roomBookId',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务数量',
|
||||
fieldName: 'serveNum',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务分类',
|
||||
fieldName: 'serveType',
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
},
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '产品名称',
|
||||
fieldName: 'serveName',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '预订状态',
|
||||
fieldName: 'serveStatus',
|
||||
component: 'RadioGroup',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_QRZT 便于维护
|
||||
options: getDictOptions('wy_qrzt'),
|
||||
buttonStyle: 'solid',
|
||||
optionType: 'button',
|
||||
},
|
||||
},
|
||||
{
|
||||
label: '创建人id',
|
||||
fieldName: 'createById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '更新人id',
|
||||
fieldName: 'updateById',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '确认人id',
|
||||
fieldName: 'confirmId',
|
||||
component: 'Input',
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
{
|
||||
label: '服务开始时间',
|
||||
@@ -243,6 +208,7 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务结束时间',
|
||||
@@ -253,16 +219,13 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
format: 'YYYY-MM-DD HH:mm:ss',
|
||||
valueFormat: 'YYYY-MM-DD HH:mm:ss',
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '服务总价格',
|
||||
fieldName: 'servePrice',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '数据状态',
|
||||
fieldName: 'dataStauts',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '产品图片',
|
||||
@@ -272,10 +235,12 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
// accept: 'image/*', // 可选拓展名或者mime类型 ,拼接
|
||||
// maxCount: 1, // 最大上传文件数 默认为1 为1会绑定为string而非string[]类型
|
||||
},
|
||||
rules: 'required',
|
||||
},
|
||||
{
|
||||
label: '排序',
|
||||
fieldName: 'sort',
|
||||
component: 'Input',
|
||||
rules: 'required',
|
||||
},
|
||||
];
|
||||
|
@@ -118,7 +118,7 @@ function handleMultiDelete() {
|
||||
}
|
||||
|
||||
function handleDownloadExcel() {
|
||||
commonDownloadExcel(ceremonialServeExport, '服务数据', tableApi.formApi.form.values, {
|
||||
commonDownloadExcel(ceremonialServeExport, '会议服务数据', tableApi.formApi.form.values, {
|
||||
fieldMappingTime: formOptions.fieldMappingTime,
|
||||
});
|
||||
}
|
||||
@@ -126,7 +126,7 @@ function handleDownloadExcel() {
|
||||
|
||||
<template>
|
||||
<Page :auto-content-height="true">
|
||||
<BasicTable table-title="服务列表">
|
||||
<BasicTable table-title="会议服务列表">
|
||||
<template #toolbar-tools>
|
||||
<Space>
|
||||
<a-button
|
||||
|
Reference in New Issue
Block a user