WIP : SAV produit cassé dans interface V2
This commit is contained in:
@@ -60,6 +60,54 @@ export default {
|
||||
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async getBrokenAmount(code, id) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=ProxyController&method=getBrokenProductAmount&code_business=' + code + '&id_business=' + id
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(apiUrl)
|
||||
}
|
||||
|
||||
const response = await fetch(apiUrl)
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(response.clone().text())
|
||||
}
|
||||
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async validateBrokenIssue(code, id, method) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=ProxyController&method='+method+'&code_business=' + code + '&id_business=' + id
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(apiUrl)
|
||||
}
|
||||
|
||||
const response = await fetch(apiUrl)
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(response.clone().text())
|
||||
}
|
||||
|
||||
return response.json();
|
||||
},
|
||||
|
||||
async closeBrokenIssue(code, id, clientChoice, trackingNumber, trackingUrl) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=closeBrokenProductIssue&code_business=' + code + '&id_business=' + id
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(apiUrl)
|
||||
}
|
||||
|
||||
const response = await fetch(apiUrl)
|
||||
|
||||
if (import.meta.env.DEV) {
|
||||
console.log(response.clone().text())
|
||||
}
|
||||
|
||||
return response.json();
|
||||
},
|
||||
async saveMessage(code, id, quill, attachedDoc, replyOption) {
|
||||
const apiUrl = '/App/api.php?prj=pharmamp&controller=TicketingController&method=saveMessage'
|
||||
if (import.meta.env.DEV) {
|
||||
|
||||
Reference in New Issue
Block a user