fix(inbound): remove redundant /api prefix in history location requests

This commit is contained in:
DXC
2026-04-08 17:38:19 +08:00
parent 4a4baa2f8f
commit c72e6e198e
3 changed files with 3 additions and 3 deletions

View File

@ -1150,7 +1150,7 @@ const onMaterialSelected = async (val: number) => {
// 获取该物料历史入库库位(新增独立接口) // 获取该物料历史入库库位(新增独立接口)
try { 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) { if (res.code === 200 && res.data.location) {
form.warehouse_location = res.data.location form.warehouse_location = res.data.location
ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`) ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`)

View File

@ -1042,7 +1042,7 @@ const onMaterialSelected = async (val: number) => {
// 获取该物料历史入库库位(新增独立接口) // 获取该物料历史入库库位(新增独立接口)
try { 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) { if (res.code === 200 && res.data.location) {
form.warehouse_location = res.data.location form.warehouse_location = res.data.location
ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`) ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`)

View File

@ -1041,7 +1041,7 @@ const onMaterialSelected = async (val: number) => {
// 获取该物料历史入库库位(新增独立接口) // 获取该物料历史入库库位(新增独立接口)
try { 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) { if (res.code === 200 && res.data.location) {
form.warehouse_location = res.data.location form.warehouse_location = res.data.location
ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`) ElMessage.info(`已自动带入该物料历史库位:【${res.data.location}】,请核对。`)