Files
manja_dev_ui/src/services/materialService.js
T
sean bd77e1a4e7
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
Ticket material
2026-07-03 16:26:00 +07:00

23 lines
543 B
JavaScript

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)
},
}