This commit is contained in:
liushuai
2019-08-22 20:14:02 +08:00
parent 6900c7a551
commit 653abcfc59
9 changed files with 567 additions and 9 deletions

View File

@@ -0,0 +1,64 @@
import request from '@/utils/request'
// 初始化机床项目
export function initProject() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_项目名称_查询数据'
}
})
}
// 初始化检测项
export function searchTest() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_装配质检_检测项_查询数据'
}
})
}
// 组件查询
export function searchgroup(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: 'PDM_组件名称_查询数据',
param: '机床流水号=' + num
}
})
}
// 质检管理_质量情况_查询数据
export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, pageCurrent, pageSize) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_装配质检_质检情况_查询数据',
param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 +
'&质检情况_check=' + check4 + '&质检情况=' + value4,
Pagination: pageCurrent + '&' + pageSize
}
})
}
// 质检管理_质量情况_查询数据
export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_装配质检_质检情况_查询数据',
param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&检测项_check=' + check3 + '&检测项流水号=' + value3 +
'&质检情况_check=' + check4 + '&质检情况=' + value4
}
})
}

View File

@@ -55,6 +55,53 @@ export function initPosition() {
}
})
}
// 初始化 检测项
export function initTest() {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_装配质检_检测项_查询数据'
}
})
}
// 查询 检测项明细
export function initTesting(num) {
return request({
url: '',
method: 'post',
data: {
type: '1',
name: '质检管理_装配质检_检测项明细_查询数据',
param: '检测项流水号=' + num
}
})
}
// 增加 检测项
export function addTest(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_装配质检_检测项_增加数据',
param: '检测项=' + num
}
})
}
// 查询 检测项明细
export function addTesting(num, num1) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_装配质检_检测项明细_增加数据',
param: '检测项流水号=' + num + '&检测项明细=' + num1
}
})
}
// 增加 不合格原因
export function addReasons(num) {
return request({
@@ -115,6 +162,30 @@ export function addPosition(num) {
}
})
}
// 删除 检测项
export function deleteTest(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_装配质检_检测项_删除数据',
param: '检测项流水号=' + num
}
})
}
// 删除 检测项明细
export function deleteTesting(num) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '质检管理_装配质检_检测项明细_删除数据',
param: '检测项明细流水号=' + num
}
})
}
// 删除 不合格原因
export function deleteReasons(num) {
return request({

View File

@@ -134,6 +134,17 @@ export function addMarketingManager(MarketingManagerId, AdressID) {
data: {
type: '2',
name: '客户关系管理系统_营销经理_增加数据_MESWORK',
param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID + '&导入类型=0=int=output'
}
})
}
export function addPer(MarketingManagerId, AdressID) {
return request({
url: '',
method: 'post',
data: {
type: '2',
name: '客户关系管理系统_营销经理_增加数据_MESWORK_NEW',
param: '营销经理流水号=' + MarketingManagerId + '&省份流水号=' + AdressID
}
})