review 营销活动

This commit is contained in:
YunaiV
2023-06-24 18:53:57 +08:00
parent fa71d3e7dd
commit 5d613e69b3
9 changed files with 45 additions and 23 deletions

View File

@@ -1,5 +1,5 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter } from '@/utils/formatTime'
import { dateFormatter, dateFormatter2 } from '@/utils/formatTime'
import { getListAllSimple } from '@/api/mall/promotion/seckill/seckillConfig'
// 表单校验
@@ -16,6 +16,7 @@ export const rules = reactive({
})
// CrudSchema https://doc.iocoder.cn/vue3/crud-schema/
// TODO @puhui999table 宽度调整下,有点太长啦;部分字段可以隐藏哈,根据需求;
const crudSchemas = reactive<CrudSchema[]>([
{
label: '秒杀活动名称',
@@ -33,12 +34,12 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: '活动开始时间',
field: 'startTime',
formatter: dateFormatter,
formatter: dateFormatter2,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
@@ -57,12 +58,12 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: '活动结束时间',
field: 'endTime',
formatter: dateFormatter,
formatter: dateFormatter2,
isSearch: true,
search: {
component: 'DatePicker',
componentProps: {
valueFormat: 'YYYY-MM-DD HH:mm:ss',
valueFormat: 'YYYY-MM-DD',
type: 'daterange',
defaultTime: [new Date('1 00:00:00'), new Date('1 23:59:59')]
}
@@ -79,7 +80,7 @@ const crudSchemas = reactive<CrudSchema[]>([
}
},
{
label: '秒杀时段',
label: '秒杀时段', // todo @PUHUI999: 在列表界面,格式化不对
field: 'configIds',
form: {
component: 'Select',
@@ -178,7 +179,7 @@ const crudSchemas = reactive<CrudSchema[]>([
}
},
{
label: '秒杀活动商品',
label: '秒杀活动商品', // TODO @puhui999格式化的商品不对
field: 'spuId',
form: {
colProps: {
@@ -219,7 +220,7 @@ const crudSchemas = reactive<CrudSchema[]>([
},
{
label: '状态',
field: 'status',
field: 'status', // TODO @puhui999状态在 table 格式化不对;
dictType: DICT_TYPE.COMMON_STATUS,
dictClass: 'number',
isForm: false,