diff --git a/apps/web-antd/src/views/mall/promotion/diy/page/data.ts b/apps/web-antd/src/views/mall/promotion/diy/page/data.ts
new file mode 100644
index 000000000..77864186f
--- /dev/null
+++ b/apps/web-antd/src/views/mall/promotion/diy/page/data.ts
@@ -0,0 +1,109 @@
+import type { VbenFormSchema } from '#/adapter/form';
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+
+/** 表单配置 */
+export function useFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'id',
+ component: 'Input',
+ dependencies: {
+ triggerFields: [''],
+ show: () => false,
+ },
+ },
+ {
+ fieldName: 'name',
+ label: '页面名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入页面名称',
+ },
+ rules: 'required',
+ },
+ {
+ fieldName: 'remark',
+ label: '备注',
+ component: 'Textarea',
+ componentProps: {
+ placeholder: '请输入备注',
+ rows: 4,
+ },
+ },
+ {
+ fieldName: 'previewPicUrls',
+ component: 'ImageUpload',
+ label: '预览图',
+ componentProps: {
+ maxNumber: 10,
+ multiple: true,
+ },
+ },
+ ];
+}
+
+/** 列表的搜索表单 */
+export function useGridFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'name',
+ label: '页面名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入页面名称',
+ clearable: true,
+ },
+ },
+ {
+ fieldName: 'createTime',
+ label: '创建时间',
+ component: 'RangePicker',
+ componentProps: {
+ placeholder: ['开始时间', '结束时间'],
+ clearable: true,
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ },
+ ];
+}
+
+/** 列表的字段 */
+export function useGridColumns(): VxeTableGridOptions['columns'] {
+ return [
+ {
+ field: 'id',
+ title: '编号',
+ minWidth: 80,
+ },
+ {
+ field: 'previewPicUrls',
+ title: '预览图',
+ minWidth: 120,
+ cellRender: {
+ name: 'CellImages',
+ },
+ },
+ {
+ field: 'name',
+ title: '页面名称',
+ minWidth: 150,
+ },
+ {
+ field: 'remark',
+ title: '备注',
+ minWidth: 200,
+ },
+ {
+ field: 'createTime',
+ title: '创建时间',
+ width: 180,
+ formatter: 'formatDateTime',
+ },
+ {
+ title: '操作',
+ width: 200,
+ fixed: 'right',
+ slots: { default: 'actions' },
+ },
+ ];
+}
diff --git a/apps/web-antd/src/views/mall/promotion/diy/page/index.vue b/apps/web-antd/src/views/mall/promotion/diy/page/index.vue
index 0354ae7e3..e4c8c7a74 100644
--- a/apps/web-antd/src/views/mall/promotion/diy/page/index.vue
+++ b/apps/web-antd/src/views/mall/promotion/diy/page/index.vue
@@ -1,29 +1,141 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/web-antd/src/views/mall/promotion/diy/page/modules/form.vue b/apps/web-antd/src/views/mall/promotion/diy/page/modules/form.vue
new file mode 100644
index 000000000..7d24c1712
--- /dev/null
+++ b/apps/web-antd/src/views/mall/promotion/diy/page/modules/form.vue
@@ -0,0 +1,92 @@
+
+
+
+
+
+
+
diff --git a/apps/web-antd/src/views/mall/promotion/diy/template/data.ts b/apps/web-antd/src/views/mall/promotion/diy/template/data.ts
new file mode 100644
index 000000000..58bd4ba04
--- /dev/null
+++ b/apps/web-antd/src/views/mall/promotion/diy/template/data.ts
@@ -0,0 +1,120 @@
+import type { VbenFormSchema } from '#/adapter/form';
+import type { VxeTableGridOptions } from '#/adapter/vxe-table';
+
+import { DICT_TYPE } from '#/utils/dict';
+
+/** 表单配置 */
+export function useFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'id',
+ component: 'Input',
+ dependencies: {
+ triggerFields: [''],
+ show: () => false,
+ },
+ },
+ {
+ fieldName: 'name',
+ label: '模板名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入模板名称',
+ },
+ rules: 'required',
+ },
+ {
+ fieldName: 'remark',
+ label: '备注',
+ component: 'Textarea',
+ componentProps: {
+ placeholder: '请输入备注',
+ rows: 4,
+ },
+ },
+ {
+ fieldName: 'previewPicUrls',
+ component: 'ImageUpload',
+ label: '预览图',
+ componentProps: {
+ maxNumber: 10,
+ multiple: true,
+ },
+ },
+ ];
+}
+
+/** 列表的搜索表单 */
+export function useGridFormSchema(): VbenFormSchema[] {
+ return [
+ {
+ fieldName: 'name',
+ label: '模板名称',
+ component: 'Input',
+ componentProps: {
+ placeholder: '请输入模板名称',
+ clearable: true,
+ },
+ },
+ {
+ fieldName: 'createTime',
+ label: '创建时间',
+ component: 'RangePicker',
+ componentProps: {
+ placeholder: ['开始时间', '结束时间'],
+ clearable: true,
+ valueFormat: 'YYYY-MM-DD HH:mm:ss',
+ },
+ },
+ ];
+}
+
+/** 列表的字段 */
+export function useGridColumns(): VxeTableGridOptions['columns'] {
+ return [
+ {
+ field: 'id',
+ title: '编号',
+ minWidth: 80,
+ },
+ {
+ field: 'previewPicUrls',
+ title: '预览图',
+ minWidth: 120,
+ cellRender: {
+ name: 'CellImages',
+ },
+ },
+ {
+ field: 'name',
+ title: '模板名称',
+ minWidth: 150,
+ },
+ {
+ field: 'used',
+ title: '是否使用',
+ width: 100,
+ cellRender: {
+ name: 'CellDict',
+ props: { type: DICT_TYPE.INFRA_BOOLEAN_STRING },
+ },
+ },
+ {
+ field: 'remark',
+ title: '备注',
+ minWidth: 200,
+ },
+ {
+ field: 'createTime',
+ title: '创建时间',
+ width: 180,
+ formatter: 'formatDateTime',
+ },
+ {
+ title: '操作',
+ width: 250,
+ fixed: 'right',
+ slots: { default: 'actions' },
+ },
+ ];
+}
diff --git a/apps/web-antd/src/views/mall/promotion/diy/template/index.vue b/apps/web-antd/src/views/mall/promotion/diy/template/index.vue
index 71683d9f4..74e47ed0e 100644
--- a/apps/web-antd/src/views/mall/promotion/diy/template/index.vue
+++ b/apps/web-antd/src/views/mall/promotion/diy/template/index.vue
@@ -1,29 +1,167 @@
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/apps/web-antd/src/views/mall/promotion/diy/template/modules/form.vue b/apps/web-antd/src/views/mall/promotion/diy/template/modules/form.vue
new file mode 100644
index 000000000..7370dce31
--- /dev/null
+++ b/apps/web-antd/src/views/mall/promotion/diy/template/modules/form.vue
@@ -0,0 +1,99 @@
+
+
+
+
+
+
+