fix(inbound): remove redundant /api prefix in history location requests
This commit is contained in:
@ -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}】,请核对。`)
|
||||||
|
|||||||
@ -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}】,请核对。`)
|
||||||
|
|||||||
@ -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}】,请核对。`)
|
||||||
|
|||||||
Reference in New Issue
Block a user