Skip to content

Commit 8dafe26

Browse files
YunaiVgitee-org
authored andcommitted
!552 【代码优化】商城: 限时折扣
Merge pull request !552 from puhui999/dev-crm
2 parents 8a225e6 + 370851a commit 8dafe26

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

src/views/mall/promotion/discountActivity/DiscountActivityForm.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,6 @@ const spuList = ref<DiscountActivityApi.SpuExtension[]>([]) // 选择的 spu
8989
const spuPropertyList = ref<SpuProperty<DiscountActivityApi.SpuExtension>[]>([])
9090
const spuIds = ref<number[]>([])
9191
const selectSpu = (spuId: number, skuIds: number[]) => {
92-
// TODO puhui999: 艿艿现在限时折扣活动可以选择多个 spu ,那么 spuId 是不是得改成 spuIds 来存放多个?🤣
93-
// TODO @puhui999:DiscountActivityDO 不存 spuId,在 DiscountProductDO 存储哈。
94-
formRef.value.setValues({ spuId })
9592
getSpuDetails(spuId, skuIds)
9693
}
9794
/**

src/views/mall/promotion/discountActivity/discountActivity.data.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
22
import { dateFormatter2 } from '@/utils/formatTime'
33

4-
// TODO @zhangshai
54
// 表单校验
65
export const rules = reactive({
7-
spuId: [required],
86
name: [required],
97
startTime: [required],
108
endTime: [required],

0 commit comments

Comments
 (0)