From 7f177f5915a1dbdf8ad6cd840b4d7408b9f3598f Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期六, 14 九月 2024 15:16:41 +0800
Subject: [PATCH] Merge branch 'master' of http://47.96.225.205:8888/r/operation_pc-v2
---
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