97 lines
1.9 KiB
JavaScript
97 lines
1.9 KiB
JavaScript
import request from "@/utils/request";
|
|
|
|
|
|
// 进货
|
|
// 查询油罐列表
|
|
export function getPurchaseApi(data) {
|
|
return request({
|
|
url: '/business/petrolStationManagement/oilPurchase/getList',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 新增有关信息
|
|
export function insertPurchaseApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchase',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 修改有关信息
|
|
export function updatePurchaseApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchase',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
|
|
// 订单
|
|
|
|
// 查询订单列表
|
|
export function getPurchaseOrderApi(data) {
|
|
return request({
|
|
url: '/business/petrolStationManagement/oilPurchaseOrder/getList',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 新增有关信息
|
|
export function insertPurchaseOrderApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
// 修改有关信息
|
|
export function updatePurchaseOrderApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
// 修改有关信息
|
|
export function editPurchuseApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder/editPurchuse',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
|
|
// 审核
|
|
export function auditApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder/audit',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 入库
|
|
export function storageApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder/storage',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|
|
|
|
// 作废
|
|
export function abolitionApi(data) {
|
|
return request({
|
|
url: 'business/petrolStationManagement/oilPurchaseOrder/abolition',
|
|
method: 'get',
|
|
params: data
|
|
})
|
|
}
|