Commit 423ea319 by YunaiV

code review:限时折扣

parent bb594595
...@@ -8,6 +8,10 @@ ...@@ -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
......
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],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment