💪 optimize: 红包批次号UUID长度优化

This commit is contained in:
wangsongsole 2023-06-30 10:35:11 +08:00
parent 52ab4669f4
commit e5dc183139
2 changed files with 3 additions and 3 deletions

View File

@ -249,7 +249,7 @@ export default class addKnockGold extends Component {
model.effect_date = []
model.effect_date[0] = begin_time
model.effect_date[1] = end_time
model.copy && (model.cash_activity_id = uuid(12)) /* 是否是复制 */
model.copy && (model.cash_activity_id = uuid(8)) /* 是否是复制 */
/* 以下操作 筛选出输入框的预警值并经行填充 */
const copy_early_per = early_per || []
copy_early_per.map((item) => {
@ -568,7 +568,7 @@ export default class addKnockGold extends Component {
<Button
type="icon"
icon="refresh"
onClick={() => this.onHandleChange(uuid(12), "cash_activity_id")}
onClick={() => this.onHandleChange(uuid(8), "cash_activity_id")}
disabled={this.state.isEdit}
></Button>
</FormItem>

View File

@ -25,7 +25,7 @@ export function model({ data }) {
model: {
channel: 1, // 渠道
cash_amount_type: "1", // 红包类型
cash_activity_id: uuid(12), // 红包批次号
cash_activity_id: uuid(8), // 红包批次号
batch_goods_name: "", // 批次商品名称
num: "", // 红包个数
denomination: "", // 面额