77 lines
1.7 KiB
Plaintext
77 lines
1.7 KiB
Plaintext
import axios from './http'
|
|
import qs from 'qs'
|
|
export default class productOutBill {
|
|
|
|
getProductOutBillList(params){
|
|
return axios.get('/stock/stock/productOut/list', {
|
|
params,
|
|
paramsSerializer: params => {
|
|
return qs.stringify(params, {
|
|
indices: false
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
queryMaterialByWarehouse(params){
|
|
return axios.get('/stock/stock/stock/queryMaterialByWarehouse', {
|
|
params,
|
|
paramsSerializer: params => {
|
|
return qs.stringify(params, {
|
|
indices: false
|
|
})
|
|
}
|
|
})
|
|
}
|
|
|
|
addProductOutBill(params){
|
|
params.type = true
|
|
return axios.post("/stock/stock/productOut/add", params, {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
}
|
|
|
|
updateProductOutBill(params){
|
|
params.type = true
|
|
return axios.post("/stock/stock/productOut/update", params, {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
}
|
|
|
|
getInvsByCodes(params){
|
|
params.type = true
|
|
return axios.post("/stock/stock/stock/queryMaterialByCodes", params, {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
}
|
|
|
|
deleteProductOutBill(params) {
|
|
params.type = true
|
|
return axios.post("/stock/stock/productOut/delete", params, {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
}
|
|
|
|
startProductOutBill(params) {
|
|
params.type = true
|
|
return axios.post("/stock/stock/productOut/start", params, {
|
|
headers: {
|
|
'Content-Type': 'application/json',
|
|
},
|
|
});
|
|
}
|
|
|
|
getProductOutBillById(params) {
|
|
return axios.get('/stock/stock/productOut/queryById?id='+ params)
|
|
|
|
}
|
|
}
|