From 370851ac376c1863ef123ce4920a4437ac5ef495 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Sun, 15 Sep 2024 14:06:35 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BB=A3=E7=A0=81=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E5=95=86=E5=9F=8E:=20=E9=99=90=E6=97=B6=E6=8A=98?= =?UTF-8?q?=E6=89=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mall/promotion/discountActivity/DiscountActivityForm.vue | 3 --- .../mall/promotion/discountActivity/discountActivity.data.ts | 2 -- 2 files changed, 5 deletions(-) diff --git a/src/views/mall/promotion/discountActivity/DiscountActivityForm.vue b/src/views/mall/promotion/discountActivity/DiscountActivityForm.vue index 2f2b441b..6c2469f6 100644 --- a/src/views/mall/promotion/discountActivity/DiscountActivityForm.vue +++ b/src/views/mall/promotion/discountActivity/DiscountActivityForm.vue @@ -89,9 +89,6 @@ const spuList = ref([]) // 选择的 spu const spuPropertyList = ref[]>([]) const spuIds = ref([]) const selectSpu = (spuId: number, skuIds: number[]) => { - // TODO puhui999: 艿艿现在限时折扣活动可以选择多个 spu ,那么 spuId 是不是得改成 spuIds 来存放多个?🤣 - // TODO @puhui999:DiscountActivityDO 不存 spuId,在 DiscountProductDO 存储哈。 - formRef.value.setValues({ spuId }) getSpuDetails(spuId, skuIds) } /** diff --git a/src/views/mall/promotion/discountActivity/discountActivity.data.ts b/src/views/mall/promotion/discountActivity/discountActivity.data.ts index a4c93ffb..81540b0f 100644 --- a/src/views/mall/promotion/discountActivity/discountActivity.data.ts +++ b/src/views/mall/promotion/discountActivity/discountActivity.data.ts @@ -1,10 +1,8 @@ import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import { dateFormatter2 } from '@/utils/formatTime' -// TODO @zhangshai: // 表单校验 export const rules = reactive({ - spuId: [required], name: [required], startTime: [required], endTime: [required],