From 80a53a817a70e34c412c133d56cf3b9918b35212 Mon Sep 17 00:00:00 2001 From: mayf <m13160102112@163.com> Date: 星期日, 08 九月 2024 17:28:42 +0800 Subject: [PATCH] 打印,仓库修改 --- 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