mayf
2024-09-08 80a53a817a70e34c412c133d56cf3b9918b35212
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',