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
23 lines
543 B
JavaScript
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)
|
|
},
|
|
}
|