import request from '@/router/axios'
|
|
export function fetchListApply(query) {
|
return request({
|
url: '/mes/apply/page',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function addApply(obj) {
|
return request({
|
url: '/mes/apply',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function getApply(id) {
|
return request({
|
url: '/mes/apply/' + id,
|
method: 'get'
|
})
|
}
|
|
export function delApply(id) {
|
return request({
|
url: '/mes/apply/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function putApply(obj) {
|
return request({
|
url: '/mes/apply',
|
method: 'put',
|
data: obj
|
})
|
}
|
|
/**
|
* 查询汇报的材料
|
* @param query
|
*/
|
export function fetchOutputList(query) {
|
return request({
|
url: '/mes/product/getOutputList',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function getOutputListByScan(query) {
|
return request({
|
url: '/mes/product/getOutputListByScan',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function fetchOutputLists(query) {
|
return request({
|
url: '/mes/segmentationTaskRecord/page',
|
method: 'get',
|
params: query
|
})
|
}
|
export function fetchListApplyPartAll(query) {
|
return request({
|
url: '/mes/applyPart/list',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function fetchListApplyPart(query) {
|
return request({
|
url: '/mes/applyPart/page',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function fetchListApplyPartForReport(query) {
|
return request({
|
url: '/mes/applyPart/page/forReport',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function fetchListApplyPartForUnqualified(query) {
|
return request({
|
url: '/mes/applyPart/page/forUnqualified',
|
method: 'get',
|
params: query
|
})
|
}
|
|
export function addApplyPart(obj) {
|
return request({
|
url: '/mes/applyPart',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function delApplyPart(id) {
|
return request({
|
url: '/mes/applyPart/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function delApplyPartForReport(id) {
|
return request({
|
url: '/mes/applyPart/forReport/' + id,
|
method: 'delete'
|
})
|
}
|
|
export function batchUpdateApplyPart(obj, type) {
|
return request({
|
url: '/mes/applyPart/batch/' + type,
|
method: 'put',
|
data: obj
|
})
|
}
|
|
export function getApplyPart(id) {
|
return request({
|
url: '/mes/applyPart/' + id,
|
method: 'get'
|
})
|
}
|
|
export function getStock() {
|
return request({
|
url: '/mes/apply/getStock',
|
method: 'get'
|
})
|
}
|
|
export function saveApply(obj) {
|
return request({
|
url: '/mes/applyPart/erp',
|
method: 'post',
|
data: obj
|
})
|
}
|
export function synchronizationErp(obj) {
|
return request({
|
url: '/mes/applyPart/synchronizationErp',
|
method: 'post',
|
data: obj
|
})
|
}
|
|
export function findTestStandardNoBySystemNo(systemNo) {
|
return request({
|
url: '/mes/applyPart/findTestStandardNoBySystemNo/' + systemNo,
|
method: 'get'
|
})
|
}
|
// 质检合格率统计报表
|
export function getQualityCheckRate(params) {
|
return request({
|
url: '/mes/applyPart/getQualityCheckRate/',
|
method: 'get',
|
params: params
|
})
|
}
|
export function getQualityCheckRatePicture(params) {
|
return request({
|
url: '/mes/applyPart/getQualityCheckRatePicture/',
|
method: 'post',
|
data: params
|
})
|
}
|