diff --git a/src/api/storeWarehouse.store/storeWarehouse.ts b/src/api/storeWarehouse.store/storeWarehouse.ts index ddc07430..4f9c283d 100644 --- a/src/api/storeWarehouse.store/storeWarehouse.ts +++ b/src/api/storeWarehouse.store/storeWarehouse.ts @@ -1,7 +1,26 @@ import request from '@/utils/request' const v = "1.0"; -/** 查询当前主体可见的仓库-货主签约列表 */ +/** 查询当前主体可见的货主列表 */ +export function storeList(data: { + keyword?: string + page?: number + page_size?: number +}) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storeWarehouse.store.list', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} + +/** 货主侧查询签约关系列表 */ export function storeWarehouseList(data: { keyword?: string page?: number @@ -20,6 +39,24 @@ export function storeWarehouseList(data: { } as any) } +/** 查询当前主体可见的仓库列表 */ +export function warehouseList(data: { + keyword?: string + page?: number + page_size?: number +}) { + return request({ + url: '/system', + method: 'post', + params: { + method: 'storeWarehouse.warehouse.list', + v, + timestamp: new Date().getTime() + }, + data, + isSystemApi: true + } as any) +} /** * 发起签约 / 预览签约信息 * - 不带 action:提交签约申请(返回 mode: initiate | already_exists | already_confirmed) diff --git a/src/router/map.ts b/src/router/map.ts index 3506fbeb..8979b84a 100644 --- a/src/router/map.ts +++ b/src/router/map.ts @@ -19,6 +19,7 @@ export const componentMap: Record = { /** 与后端菜单 component 字段兼容:商品管理入口 */ 'stock/index': () => import('@/views/stock/stockManagement/index.vue'), 'stock/storestock/index': () => import('@/views/stock/storestock/index.vue'), + 'stock/external_stock/index': () => import('@/views/stock/external_stock/index.vue'), /** 组合商品并入商品管理,保留旧路径兼容 */ // 'stock/combo_stock': () => import('@/views/stock/stockManagement/index.vue'), // 'stock/combo_stock/index': () => import('@/views/stock/stockManagement/index.vue'), diff --git a/src/views/stock/external_stock/index.vue b/src/views/stock/external_stock/index.vue new file mode 100644 index 00000000..2dc97665 --- /dev/null +++ b/src/views/stock/external_stock/index.vue @@ -0,0 +1,350 @@ + + + + + diff --git a/src/views/store/stores/index.vue b/src/views/store/stores/index.vue index 03e75027..7ba3568f 100644 --- a/src/views/store/stores/index.vue +++ b/src/views/store/stores/index.vue @@ -1,11 +1,19 @@