Commit 71464c52 authored by hubaoshan's avatar hubaoshan

液体出入库

parent 19ee064f
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询order列表
export function listWcpOrder(query) {
return request({
url: '/wcporder/list',
method: 'get',
params: query
})
}
export function getWcpOrderId(query) {
return request({
url: '/wcporderlist/detailId/',
method: 'get',
params: query
})
}
// 2. 查询order详细信息
export function getWcpOrder(businessId) {
return request({
url: '/wcporder/detail/' + businessId,
method: 'get'
})
}
// 3. 新增order
export function addWcpOrder(data) {
data = Qs.stringify(data)
return request({
url: '/wcporder/add',
method: 'post',
data: data
})
}
// 4. 修改order
export function updateWcpOrder(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/wcporder/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除order
export function delWcpOrder(businessId) {
return request({
url: '/wcporder/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出order
export function exportWcpOrder(query) {
return request({
url: '/wcporder/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
export function importExcel(data) {
return request({
url: '/wcporderlist/import',
method: 'post',
headers: {
'Content-Type': 'multipart/form-data'
},
transformRequest: [(data) => {
return data
}],
data
})
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment