Commit 55a6cf7b authored by liwei's avatar liwei

恢复原版(前面意外提交)

parent 4d021618
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询库存管理列表
export function listIncomeBox(query) {
return request({
url: '/incomebox/list',
method: 'get',
params: query
})
}
// 2. 查询库存管理详细信息
export function getIncomeBox(businessId) {
return request({
url: '/incomebox/detail/' + businessId,
method: 'get'
})
}
// 3. 新增库存管理
export function addIncomeBox(data) {
data = Qs.stringify(data)
return request({
url: '/incomebox/add',
method: 'post',
data: data
})
}
// 4. 修改库存管理
export function updateIncomeBox(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/incomebox/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除库存管理
export function delIncomeBox(businessId) {
return request({
url: '/incomebox/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出库存管理
export function exportIncomeBox(query) {
return request({
url: '/incomebox/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 7.获取单号
export function getJcCode() {
return request({
url: '/incomebox/getJcCode',
method: 'get'
})
}
// 8. 查询满足条件的条数
export function queryPass(lot) {
return request({
url: '/incomebox/queryPass/' + lot,
method: 'get'
})
}
// 9. 批量新增库存管理
export function batchAddIncomeBox(data) {
return request({
url: '/incomebox/batchAdd',
method: 'post',
data: data,
headers: {
'Content-Type': 'application/json;charset=UTF-8' // 接口修改传参类型
}
})
}
export function checkIsZero(data) {
return request({
url: 'incomebox/checkIsZero',
method: 'post',
data,
headers: {
'Content-Type': 'application/json;charset=UTF-8' // 接口修改传参类型
}
})
}
import request from '@/utils/request'
import Qs from 'qs'
/**
* 1. 列表查询
* 2. 查询详细信息
* 3. 新增
* 4. 修改
* 5. 逻辑删除
* 6. 导出
*
*/
// 1. 查询标签管理列表
export function listIncomeLabel(query) {
return request({
url: '/incomelabel/list',
method: 'get',
params: query
})
}
// 2. 查询标签管理详细信息
export function getIncomeLabel(businessId) {
return request({
url: '/incomelabel/detail/' + businessId,
method: 'get'
})
}
// 3. 新增标签管理
export function addIncomeLabel(data) {
data = Qs.stringify(data)
return request({
url: '/incomelabel/add',
method: 'post',
data: data
})
}
// 4. 修改标签管理
export function updateIncomeLabel(data) {
const businessId = data.businessId
data = Qs.stringify(data)
return request({
url: '/incomelabel/update/' + businessId,
method: 'put',
data
})
}
// 5. 逻辑删除标签管理
export function delIncomeLabel(businessId) {
return request({
url: '/incomelabel/deleteLogical/' + businessId,
method: 'delete'
})
}
// 6. 导出标签管理
export function exportIncomeLabel(query) {
return request({
url: '/incomelabel/export',
method: 'get',
params: query,
responseType: 'blob'
})
}
// 7. 查询标签管理详细信息
export function findByLocation(location) {
return request({
url: '/incomelabel/findByLocation/' + location,
method: 'get'
})
}
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