From c72e6e198e5bffb238e2f277313ff3bc778b8956 Mon Sep 17 00:00:00 2001 From: DXC Date: Wed, 8 Apr 2026 17:38:19 +0800 Subject: [PATCH] fix(inbound): remove redundant /api prefix in history location requests --- inventory-web/src/views/stock/inbound/buy.vue | 2 +- inventory-web/src/views/stock/inbound/product.vue | 2 +- inventory-web/src/views/stock/inbound/semi.vue | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/inventory-web/src/views/stock/inbound/buy.vue b/inventory-web/src/views/stock/inbound/buy.vue index 0b91ba5..751ab4e 100644 --- a/inventory-web/src/views/stock/inbound/buy.vue +++ b/inventory-web/src/views/stock/inbound/buy.vue @@ -1150,7 +1150,7 @@ const onMaterialSelected = async (val: number) => { // 获取该物料历史入库库位(新增独立接口) try { - const res = await request.get('/api/v1/inbound/buy/last-location', { params: { base_id: val } }) + const res = await request.get('/v1/inbound/buy/last-location', { params: { base_id: val } }) if (res.code === 200 && res.data.location) { form.warehouse_location = res.data.location ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`) diff --git a/inventory-web/src/views/stock/inbound/product.vue b/inventory-web/src/views/stock/inbound/product.vue index ab6c116..64c371a 100644 --- a/inventory-web/src/views/stock/inbound/product.vue +++ b/inventory-web/src/views/stock/inbound/product.vue @@ -1042,7 +1042,7 @@ const onMaterialSelected = async (val: number) => { // 获取该物料历史入库库位(新增独立接口) try { - const res = await request.get('/api/v1/inbound/product/last-location', { params: { base_id: val } }) + const res = await request.get('/v1/inbound/product/last-location', { params: { base_id: val } }) if (res.code === 200 && res.data.location) { form.warehouse_location = res.data.location ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`) diff --git a/inventory-web/src/views/stock/inbound/semi.vue b/inventory-web/src/views/stock/inbound/semi.vue index 8483c1c..507a026 100644 --- a/inventory-web/src/views/stock/inbound/semi.vue +++ b/inventory-web/src/views/stock/inbound/semi.vue @@ -1041,7 +1041,7 @@ const onMaterialSelected = async (val: number) => { // 获取该物料历史入库库位(新增独立接口) try { - const res = await request.get('/api/v1/inbound/semi/last-location', { params: { base_id: val } }) + const res = await request.get('/v1/inbound/semi/last-location', { params: { base_id: val } }) if (res.code === 200 && res.data.location) { form.warehouse_location = res.data.location ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`)