Files
scrq-hd/.svn/pristine/94/940a6ab8653ebaa9ab1bb72a6db8dca9a16b8be4.svn-base
2025-07-03 10:34:04 +08:00

93 lines
2.2 KiB
Plaintext

import axios from './http'
import qs from 'qs'
export default class stock {
getHisList(params){
return axios.get("/stock/stock/stock/list/his",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
});
}
getBizList(params){
return axios.get("/stock/stock/stock/list/biz",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
});
}
getList(params){
return axios.get("/stock/stock/stock/list",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
getListExpireTime(params){
return axios.get("/mm/stock/list/materialAgeCaution",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
getSummarList(params){
return axios.get("/stock/stock/stock/list/summar",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
getStockList(params){
return axios.get("/stock/stock/stockSummary/query",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
// 导出
exportExcel(params) {
return axios({
method: 'get',
params,
url: '/stock/stock/stock/exportExcel',
responseType: 'blob'
})
}
//////////////////////////////////////////////线边库存表
getListArea(params){
return axios.get("/stock/stock/stockArea/list",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
getSummarListArea(params){
return axios.get("/stock/stock/stockArea/list/summar",{
params, paramsSerializer: params => {
return qs.stringify(params, { indices: false })
}
})
}
addPrintCount(params){
params.type=true
return axios.post("/stock/stock/stockArea/addPrint",params,{ headers: {
'Content-Type': 'application/json'
},}); }
// 导出
exportStockAreaExcel(params) {
return axios({
method: 'get',
params,
url: '/stock/stock/stockArea/exportExcel',
responseType: 'blob'
})
}
}