Ticket material
NPM Installation / build (16.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (16.x, windows-latest) (push) Has been cancelled
NPM Installation / build (17.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (17.x, windows-latest) (push) Has been cancelled
NPM Installation / build (18.x, ubuntu-latest) (push) Has been cancelled
NPM Installation / build (18.x, windows-latest) (push) Has been cancelled

This commit is contained in:
2026-07-03 16:26:00 +07:00
parent 63458f397d
commit bd77e1a4e7
30 changed files with 1507 additions and 279 deletions
+22
View File
@@ -0,0 +1,22 @@
import api from '@/api/axios'
export const materialService = {
fetchAll(params = {}) {
return api.get('/materials', { params })
},
fetchByUser(userId) {
return api.get(`/materials/user/${userId}`)
},
fetchHistory(barcodeId) {
return api.get(`/materials/history/${barcodeId}`)
},
assign(payload) {
return api.post('/materials/assign', payload)
},
transfer(payload) {
return api.post('/materials/transfer', payload)
},
returnMaterial(payload) {
return api.post('/materials/return', payload)
},
}