first commit + add fe component vue accone

This commit is contained in:
2026-05-07 17:10:10 +07:00
parent fd8e4d694b
commit 38a182641a
327 changed files with 263946 additions and 0 deletions

View File

@@ -0,0 +1,121 @@
const URL = "/one-api/mockup/purchase/faktur/Fakturv4/";
export async function CreateFaktur(params) {
try {
var resp = await axios.post(URL + "CreateFaktur", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function UpdateFaktur(params) {
try {
var resp = await axios.post(URL + "UpdateFaktur", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
};
}
let data = resp.data
return data;
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function DeleteFaktur(params) {
try {
var resp = await axios.post(URL + "DeleteFaktur", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function ApproveFaktur(params) {
try {
var resp = await axios.post(URL + "ApproveFaktur", params)
if (resp.status !== 200) {
return {
status: "ERR",
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function RejectFaktur(params) {
try {
let resp = await axios.post(URL + "RejectFaktur", params)
if (resp.status !== 200) {
return {
status: 'ERR',
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}
export async function VerifyFaktur(params) {
try {
let resp = await axios.post(URL + "VerifyFaktur", params)
if (resp.status !== 200) {
return {
status: 'ERR',
message: resp.statusText
}
}
let data = resp.data
return data
} catch (error) {
return {
status: "ERR",
message: error.message
}
}
}