技术中心部分修改,添加库存系统

This commit is contained in:
hedekun
2018-11-16 09:08:57 +08:00
parent 666c65dd0f
commit 385816311b
49 changed files with 7923 additions and 7 deletions

View File

@@ -0,0 +1,174 @@
import request from '@/utils/request'
// 初始化项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 机床查询
export function searchmachine(check, num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据',
param: '项目流水号_check=' + check + '=int&项目流水号=' + num
}
})
}
// 分组查询
export function searchTeam(machineNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + machineNumber
}
})
}
// 外购件查询
export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.库存管理_库存盘点_外购件查询',
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 外购件入库记录查询
export function searchPurchasePartIn(contractdetail) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_库存盘点_外购件入库记录',
param: '采购合同明细流水号=' + contractdetail
}
})
}
// 外购件出库记录查询
export function searchPurchasePartOut(teampart) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_库存盘点_外购件出库记录',
param: '组件零件流水号=' + teampart
}
})
}
// 标准件查询
export function searchStandardPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.库存管理_库存盘点_标准件查询',
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 标准件入库记录查询
export function searchStandardPartIn(data1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_库存盘点_标准件入库记录',
param: '采购合同明细流水号=' + data1
}
})
}
// 标准件出库记录查询
export function searchStandardPartOut(data1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_库存盘点_标准件出库记录',
param: '组件零件流水号=' + data1
}
})
}
// 标准件安全库存修改
export function safeAmount(data1, data2) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '库存管理_库存盘点_标准件安全库存修改',
param: '组件零件流水号=' + data1 + '&安全库存量=' + data2
}
})
}
// 基本件查询
export function searchBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.库存管理_库存盘点_基本件查询',
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 基本件入库记录查询
export function searchBasicPartIn(craftNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.库存管理_库存盘点_基本件入库记录',
param: '工艺计划流水号=' + craftNumber
}
})
}
// 基本件出库记录查询
export function searchBasicPartOut(craftNumber) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'dbo.库存管理_库存盘点_基本件出库记录',
param: '工艺计划流水号=' + craftNumber
}
})
}
// 通用件查询
export function searchGeneralPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '库存管理_库存盘点_通用件查询',
param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group,
Pagination: pageCurrent + '&' + pageSize
}
})
}