From a23ff27703d6d275c9356a8fea0eaad0d8fd3f04 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 18 九月 2024 14:45:59 +0800
Subject: [PATCH] 1.优惠券-活动优惠券-修改-图片初始化的校验规则设置 2.优惠券-活动优惠券-发布-如果当前时间大于优惠券的领取结束时间,按钮隐藏
---
pages/warehouse.vue | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/pages/warehouse.vue b/pages/warehouse.vue
index d7de41e..a69bf7c 100644
--- a/pages/warehouse.vue
+++ b/pages/warehouse.vue
@@ -104,6 +104,21 @@
newText: '新增仓位',
hasPagination: false,
extraParentKeys: ['warehouseId'],
+ afterRequest: (list) => {
+ return list.map((item) => {
+ const orderList = item.orderDTO || []
+ const goodsItems = orderList.reduce((total, current) => {
+ total = total.concat(
+ current.items.map((i) => ({
+ ...i,
+ orderNo: current.orderNo,
+ }))
+ )
+ return total
+ }, [])
+ return { ...item, goodsItems }
+ })
+ },
searchForm: [
{
type: 'row',
--
Gitblit v1.9.3