From 51416d367ec8a2f05dd370c9dc0507e16c3c939c Mon Sep 17 00:00:00 2001 From: liufumingren Date: Sat, 11 Jul 2026 10:11:18 +0800 Subject: [PATCH] 1 --- src/api/storage.report/report.ts | 34 ++ src/router/map.ts | 2 + src/views/stock/external_stock/index.vue | 356 ++++++++++++- src/views/storage/report/store.vue | 644 +++++++++++++++++++++++ src/views/store/stores/index.vue | 44 +- src/views/store/stores/store-config.ts | 3 +- 6 files changed, 1058 insertions(+), 25 deletions(-) create mode 100644 src/views/storage/report/store.vue diff --git a/src/api/storage.report/report.ts b/src/api/storage.report/report.ts index f7e0a292..8c092072 100644 --- a/src/api/storage.report/report.ts +++ b/src/api/storage.report/report.ts @@ -97,6 +97,23 @@ export function searchInventoryReport( } as any) } +/** 货主侧库存报表查询 */ +export function searchStoreReport( + data?: StorageReportSearchBody +): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.report.searchStore', + v, + timestamp: new Date().getTime() + }, + data: data ?? {}, + isSystemApi: true + } as any) +} + export function exportInventoryReport( data?: StorageReportExportBody ): Promise { @@ -113,6 +130,23 @@ export function exportInventoryReport( } as any) } +/** 货主侧库存报表导出 */ +export function exportStoreReport( + data?: StorageReportExportBody +): Promise { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storage.report.exportStore', + v, + timestamp: new Date().getTime() + }, + data: data ?? {}, + isSystemApi: true + } as any) +} + export function getExportTaskProgress( data: StorageReportExportTaskProgressParams ): Promise { diff --git a/src/router/map.ts b/src/router/map.ts index 8979b84a..4cbe75ac 100644 --- a/src/router/map.ts +++ b/src/router/map.ts @@ -27,6 +27,8 @@ export const componentMap: Record = { 'storage/management/replenishmentDemand/index': () => import('@/views/storage/management/replenishmentDemand/index.vue'), 'storage/receiving': () => import('@/views/storage/receiving/index.vue'), 'storage/report': () => import('@/views/storage/report/index.vue'), + /** 货主侧库存报表 */ + 'store/report': () => import('@/views/storage/report/store.vue'), 'storage/entry': () => import('@/views/storage/entry/index.vue'), 'storage/inventory': () => import('@/views/storage/inventory/index.vue'), 'storage/stockout': () => import('@/views/storage/stockout/index.vue'), diff --git a/src/views/stock/external_stock/index.vue b/src/views/stock/external_stock/index.vue index 88d80932..31d2ff9f 100644 --- a/src/views/stock/external_stock/index.vue +++ b/src/views/stock/external_stock/index.vue @@ -16,6 +16,7 @@ 刷新 + 字段设置
可用库存 {{ summary.total_available ?? 0 }}
-
- +
+ + + + — - + {{ selectedRow.is_sn_mgmt === 'Y' ? '是' : '否' }} @@ -147,8 +179,35 @@ {{ selectedRow.update_at_display || '—' }} + + + + +
+ +
+ + +
+ +
+ - {{ selectedRow['store_stock.warehouse.company_name'] || '—' }} + {{ selectedRow['warehouse_remask'] || '—' }} {{ selectedRow['store_stock.store_remask'] || '—' }} {{ selectedRow.quantity ?? '—' }} {{ selectedRow.locked_quantity ?? '—' }} @@ -157,41 +216,137 @@
-
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/store/stores/index.vue b/src/views/store/stores/index.vue index c64490e8..ded2dc79 100644 --- a/src/views/store/stores/index.vue +++ b/src/views/store/stores/index.vue @@ -74,6 +74,10 @@ {{ row.auth_status_label || getAuthStatusLabel(row.auth_status) }} +