feat: 构架绿植租赁方案管理页面
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -41,6 +41,11 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '序号',
|
||||
field: 'id',
|
||||
slots: {
|
||||
default: ({ rowIndex }) => {
|
||||
return (rowIndex + 1).toString();
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '方案名称',
|
||||
@@ -57,10 +62,6 @@ export const columns: VxeGridProps['columns'] = [
|
||||
{
|
||||
title: '植物组合包',
|
||||
field: 'scene',
|
||||
},
|
||||
{
|
||||
title: '基础服务项',
|
||||
field: 'scene',
|
||||
},
|
||||
{
|
||||
title: '价格',
|
||||
@@ -70,10 +71,7 @@ export const columns: VxeGridProps['columns'] = [
|
||||
title: '状态',
|
||||
field: 'state',
|
||||
slots: {
|
||||
default: ({ row }) => {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KG 便于维护
|
||||
return renderDict(row.state, 'wy_kg');
|
||||
},
|
||||
default: 'state'
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -119,16 +117,6 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
label: '价格体系',
|
||||
fieldName: 'price',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '基础服务项',
|
||||
fieldName: 'price',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '优惠活动',
|
||||
fieldName: 'price',
|
||||
component: 'Input',
|
||||
},
|
||||
{
|
||||
label: '状态',
|
||||
@@ -136,7 +124,16 @@ export const modalSchema: FormSchemaGetter = () => [
|
||||
component: 'Select',
|
||||
componentProps: {
|
||||
// 可选从DictEnum中获取 DictEnum.WY_KG 便于维护
|
||||
options: getDictOptions('wy_kg'),
|
||||
options: [
|
||||
{
|
||||
label: '待支付',
|
||||
value: 0,
|
||||
},
|
||||
{
|
||||
label: '已支付',
|
||||
value: 1,
|
||||
},
|
||||
],
|
||||
},
|
||||
rules: 'selectRequired',
|
||||
},
|
||||
|
Reference in New Issue
Block a user