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
|
loading.value = true
|
||||||
try {
|
try {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/api/v1/stock/adjustment/list',
|
url: '/v1/stock/adjustment/list',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
page: page.value,
|
page: page.value,
|
||||||
@ -213,7 +213,7 @@ async function fetchStocks() {
|
|||||||
stockLoading.value = true
|
stockLoading.value = true
|
||||||
try {
|
try {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/api/v1/stock/adjustment/stocks',
|
url: '/v1/stock/adjustment/stocks',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
source_table: form.value.source_table,
|
source_table: form.value.source_table,
|
||||||
@ -270,7 +270,7 @@ async function submitForm() {
|
|||||||
submitLoading.value = true
|
submitLoading.value = true
|
||||||
try {
|
try {
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/api/v1/stock/adjustment/create',
|
url: '/v1/stock/adjustment/create',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: form.value
|
data: form.value
|
||||||
})
|
})
|
||||||
@ -306,7 +306,7 @@ async function handleImportStocktake() {
|
|||||||
type: 'warning'
|
type: 'warning'
|
||||||
})
|
})
|
||||||
const res = await request({
|
const res = await request({
|
||||||
url: '/api/v1/stock/adjustment/import-from-stocktake',
|
url: '/v1/stock/adjustment/import-from-stocktake',
|
||||||
method: 'post'
|
method: 'post'
|
||||||
})
|
})
|
||||||
if (res.code === 200) {
|
if (res.code === 200) {
|
||||||
|
|||||||
Reference in New Issue
Block a user