fix: correct StocktakeDraft import case and remove duplicate api prefix in frontend request urls
This commit is contained in:
@ -187,7 +187,7 @@ async function fetchData() {
|
||||
loading.value = true
|
||||
try {
|
||||
const res = await request({
|
||||
url: '/api/v1/stock/adjustment/list',
|
||||
url: '/v1/stock/adjustment/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
page: page.value,
|
||||
@ -213,7 +213,7 @@ async function fetchStocks() {
|
||||
stockLoading.value = true
|
||||
try {
|
||||
const res = await request({
|
||||
url: '/api/v1/stock/adjustment/stocks',
|
||||
url: '/v1/stock/adjustment/stocks',
|
||||
method: 'get',
|
||||
params: {
|
||||
source_table: form.value.source_table,
|
||||
@ -270,7 +270,7 @@ async function submitForm() {
|
||||
submitLoading.value = true
|
||||
try {
|
||||
const res = await request({
|
||||
url: '/api/v1/stock/adjustment/create',
|
||||
url: '/v1/stock/adjustment/create',
|
||||
method: 'post',
|
||||
data: form.value
|
||||
})
|
||||
@ -306,7 +306,7 @@ async function handleImportStocktake() {
|
||||
type: 'warning'
|
||||
})
|
||||
const res = await request({
|
||||
url: '/api/v1/stock/adjustment/import-from-stocktake',
|
||||
url: '/v1/stock/adjustment/import-from-stocktake',
|
||||
method: 'post'
|
||||
})
|
||||
if (res.code === 200) {
|
||||
|
||||
Reference in New Issue
Block a user