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
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:
@@ -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)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user