This commit is contained in:
chenjianan
2019-03-29 11:34:04 +08:00
7 changed files with 545 additions and 43 deletions

View File

@@ -0,0 +1,49 @@
import request from '@/utils/request'
// 初始化 项目名称
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据_按时间排序'
}
})
}
// 查询机床
export function initMachine(projectNum) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_机床名称_查询数据2',
param: `项目流水号=${projectNum}`
}
})
}
// 查询总计划
export function searchtable(projectNum, machineValue) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '项目计划管理_项目总计划_查询数据',
param: '项目流水号_check=1&项目流水号=' + projectNum + '&机床流水号_check=1&机床流水号=' + machineValue
}
})
}
// 查询分计划
export function searchtable2(machineValue, type) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '项目计划管理_项目详细计划_查询数据',
param: '机床流水号=' + machineValue + '&计划类型=' + type
}
})
}

View File

@@ -117,6 +117,30 @@ export function getGroupData(machine) {
})
}
export function editGroupData(num, num1, num2, num3, num4, num5) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_部件_编辑数据',
param: `部件编号=${num}&代号=${num1}&名称=${num2}&规格=${num3}&数量=${num4}&备注=${num5}`
}
})
}
export function deleteGroupData(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: 'PDM_装箱单_部件_删除数据',
param: `部件编号=${num}`
}
})
}
export function machineSelect(projectValue) {
return request({
url: '',
@@ -177,14 +201,14 @@ export function addFileData(name, number, remark, num) {
})
}
export function getSpareData(num) {
export function getSpareData(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_装箱单_备件_查询数据',
param: `项目流水号=${num}&机床流水号=${num}`
param: `项目流水号=${num}&机床流水号=${num1}`
}
})
}