This commit is contained in:
chenjianan
2018-12-10 16:12:31 +08:00
6 changed files with 503 additions and 505 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
}
})
}

View File

@@ -194,7 +194,7 @@ export function selectMachine(code) {
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据_通过项目流水号',
name: '合同收款计划_发货情况_查询数据',
param: '项目流水号=' + code
}
})

View File

@@ -250,7 +250,7 @@ export function changeExecutionProgressID() {
data: {
type: '2',
name: '创建合同_改变执行进度',
param: '执行进度流水号=' + arguments[0] + '&项目流水号=' + arguments[1]
param: '执行进度流水号=' + arguments[0] + '&项目流水号=' + arguments[1] + '&进度完成日期=' + arguments[2]
}
})
}
@@ -265,3 +265,25 @@ export function selectBidBond() {
}
})
}
export function searchTime() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '创建合同_查询执行进度时间',
param: '项目流水号=' + arguments[0] + '&执行进度流水号=' + arguments[1]
}
})
}
export function searchTimeAll() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '创建合同_查询执行进度时间_总',
param: '项目流水号=' + arguments[0]
}
})
}