a
This commit is contained in:
88
src/api/ManufacturingCenter/CreateWarehousePurchasing.js
Normal file
88
src/api/ManufacturingCenter/CreateWarehousePurchasing.js
Normal file
@@ -0,0 +1,88 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 查询库存数
|
||||
export function searchInventoryNum(pageCurrent, pageSize, check1, val1, check2, val2, check3, val3, check4, state1, state2) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '采购管理_离线合同_物料余量_查询数据',
|
||||
param: `物料名称_check=${check1}&物料名称=${val1}&物料规格_check=${check2}&物料规格=${val2}&物料型号_check=${check3}&物料型号=${val3}&库存状态_check=${check4}&库存状态=${state1}&采购状态=${state2}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
// 新增采购明细单
|
||||
export function submitaddpurchasingdetailsform(name, applicant) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_仓库采购_表单_新增',
|
||||
param: `表单名称=${name}&申请人=${applicant}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询采购明细单
|
||||
export function searchpurchasingDetailsForm(pageCurrent, pageSize, name) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '1',
|
||||
name: '采购管理_仓库采购_表单_查询',
|
||||
param: `表单名称=${name}`,
|
||||
Pagination: pageCurrent + '&' + pageSize
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询采购表单
|
||||
export function confirmEditpurchasingDetailsForm(name, id) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_仓库采购_表单_编辑',
|
||||
param: `表单名称=${name}&id=${id}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询采购表单
|
||||
export function openDeletepurchasingDetailsForm(id) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_仓库采购_表单_删除',
|
||||
param: `id=${id}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 选入物料信息
|
||||
export function addmateriel(formNumber, materielGroup) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_仓库采购_表单明细_增加数据',
|
||||
param: `表单编号=${formNumber}&物料流水号组=${materielGroup}`
|
||||
}
|
||||
})
|
||||
}
|
||||
// 查询采购明细
|
||||
export function searchtable2(formNumber) {
|
||||
return request({
|
||||
url: '',
|
||||
method: 'post',
|
||||
data: {
|
||||
type: '2',
|
||||
name: '采购管理_仓库采购_表单明细_增加数据',
|
||||
param: `表单编号=${formNumber}`
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user