!552 【代码优化】商城: 限时折扣

Merge pull request !552 from puhui999/dev-crm
pull/553/MERGE
芋道源码 2024-09-15 12:54:05 +00:00 committed by Gitee
commit 8dafe26b2b
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 0 additions and 5 deletions

View File

@ -89,9 +89,6 @@ const spuList = ref<DiscountActivityApi.SpuExtension[]>([]) // 选择的 spu
const spuPropertyList = ref<SpuProperty<DiscountActivityApi.SpuExtension>[]>([]) const spuPropertyList = ref<SpuProperty<DiscountActivityApi.SpuExtension>[]>([])
const spuIds = ref<number[]>([]) const spuIds = ref<number[]>([])
const selectSpu = (spuId: number, skuIds: number[]) => { const selectSpu = (spuId: number, skuIds: number[]) => {
// TODO puhui999: spu spuId spuIds 🤣
// TODO @puhui999DiscountActivityDO spuId DiscountProductDO
formRef.value.setValues({ spuId })
getSpuDetails(spuId, skuIds) getSpuDetails(spuId, skuIds)
} }
/** /**

View File

@ -1,10 +1,8 @@
import type { CrudSchema } from '@/hooks/web/useCrudSchemas' import type { CrudSchema } from '@/hooks/web/useCrudSchemas'
import { dateFormatter2 } from '@/utils/formatTime' import { dateFormatter2 } from '@/utils/formatTime'
// TODO @zhangshai
// 表单校验 // 表单校验
export const rules = reactive({ export const rules = reactive({
spuId: [required],
name: [required], name: [required],
startTime: [required], startTime: [required],
endTime: [required], endTime: [required],