Files
scrq-hd/.svn/pristine/2d/2d6fcd5ff0c6bf91d9f725c13279fea4a7f003f2.svn-base
2025-07-03 10:34:04 +08:00

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