code review:限时折扣

(cherry picked from commit 423ea319e0)
This commit is contained in:
YunaiV 2023-10-21 18:18:40 +08:00 committed by shizhong
parent 6bffc7991f
commit b7c81fb37d
2 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,10 @@
:schema="allSchemas.formSchema" :schema="allSchemas.formSchema"
> >
<!-- 先选择 --> <!-- 先选择 -->
<!-- TODO @zhangshuai商品允许选择多个 -->
<!-- TODO @zhangshuai选择后的 SKU需要后面加个删除按钮 -->
<!-- TODO @zhangshuai展示的金额貌似不对大了 100 需要看下 -->
<!-- TODO @zhangshuai优惠类型是每个 SKU 可以自定义已设置哈因为每个商品 SKU 的折扣和减少价格可能不同具体交互可以注册一个 youzan.com 看看它的交互方式是如果设置了优惠金额则算减价如果再次设置了折扣百分比就算打折这样形成一个互斥的优惠类型 -->
<template #spuId> <template #spuId>
<el-button @click="spuSelectRef.open()">选择商品</el-button> <el-button @click="spuSelectRef.open()">选择商品</el-button>
<SpuAndSkuList <SpuAndSkuList

View File

@ -1,6 +1,7 @@
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], spuId: [required],