离线物料请购

This commit is contained in:
lixin
2018-12-08 17:57:45 +08:00
parent edc0d229f8
commit 4a65c762a3
2 changed files with 176 additions and 470 deletions

View File

@@ -0,0 +1,88 @@
import request from '@/utils/request'
// 请购单查询
export function searchRequestCard(pageCurrent, pageSize, card_check, card) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_离线请购单_请购单查询',
param: '请购单编号_check=' + card_check + '&请购单编号=' + card,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 请购单增加
export function addRequestCard(peoplenumber, housenumber) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'dbo.库存管理_离线请购单_请购单增加',
param: '请购人编号=' + peoplenumber + '&仓库流水号=' + housenumber
}
})
}
// 查询仓库
export function initWarehouse() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_货位仓库_仓库_查询数据'
}
})
}
// 查询库存数
export function searchInventoryNum(pageCurrent, pageSize, check1, name, check2, state1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_离线物料_物料余量_查询数据',
param: `物料名称_check=${check1}&物料名称=${name}&库存状态_check=${check2}&库存状态=${state1}`,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 查询请购单明细
export function SeeDetail(data) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_离线请购单_请购单明细查询',
param: '离线请购单流水号=' + data
}
})
}
// 请购单明细增加
export function addRequestCardDetail(data1, data2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '库存管理_离线请购单_请购单明细增加',
param: '离线请购单流水号=' + data1 + '&物料流水号组=' + data2
}
})
}
// 请购单明细增加
export function alterNumber(data1, data2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '库存管理_离线请购单_请购单明细修改',
param: '离线请购单明细流水号=' + data1 + '&数量=' + data2
}
})
}