import request from '@/router/axios'
|
|
export function getOADetailDTO(obj) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getOADetailDTO',
|
method: 'post',
|
data: obj
|
})
|
}
|
export function getOTC(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/getOtcCustomerOrderFileList',
|
method: 'get',
|
params: query
|
})
|
}
|
export function downOTC(id) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/otcDownload/' + id,
|
method: 'get',
|
responseType: 'blob'
|
})
|
}
|
|
export function getCONFIG(query) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getProcessConfigFiles',
|
method: 'get',
|
params: query
|
})
|
}
|
export function downCONFIG(filename, bucket, originalFileName) {
|
return request({
|
url: '/mes/plan/customerOrder/processConfig/' + bucket + '/' + filename,
|
method: 'get',
|
responseType: 'blob'
|
}).then((response) => {
|
// 处理返回的文件流
|
const blob = response.data
|
const link = document.createElement('a')
|
link.href = URL.createObjectURL(blob)
|
link.download = originalFileName
|
document.body.appendChild(link)
|
link.click()
|
window.setTimeout(function() {
|
URL.revokeObjectURL(blob)
|
document.body.removeChild(link)
|
}, 0)
|
})
|
}
|
|
export function getTechnology(id) {
|
return request({
|
url:
|
'/mes/plan/customerOrder/OA/getTechnologyDocument?technologyDocumentId=' +
|
id,
|
method: 'get'
|
})
|
}
|
export function getBom(id) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getBom/' + id,
|
method: 'get'
|
})
|
}
|
export function getRouting(id) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getRouting/' + id,
|
method: 'get'
|
})
|
}
|
export function getTestStandard(query) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getTechnologyDocument',
|
method: 'get',
|
params: query
|
})
|
}
|
export function getTemplateAndParam(routingOperationId) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/templateAndParam/' + routingOperationId,
|
method: 'get'
|
})
|
}
|
|
export function getRoutingTestStandardList(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/getRoutingTestStandardList',
|
method: 'get',
|
params: query
|
})
|
}
|
export function getOperationTestStandardParam(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/getOperationTestStandardParam',
|
method: 'get',
|
params: query
|
})
|
}
|
export function getTestStandardParams(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/testStandardParam/list',
|
method: 'get',
|
params: query
|
})
|
}
|
export function qryDocTestStandard(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/qryDocTestStandard',
|
method: 'get',
|
params: query
|
})
|
}
|
export function qryDocTestStandardDetailsByStandardId(query) {
|
return request({
|
url: '/mes/plan/customerOrder/oa/qryDocTestStandardDetailsByStandardId',
|
method: 'get',
|
params: query
|
})
|
}
|
export function remote(type) {
|
return request({
|
url: '/mes/plan/customerOrder/dict/type/' + type,
|
method: 'get'
|
})
|
}
|
export function getDocumentJgt(query) {
|
return request({
|
url: '/mes/plan/customerOrder/OA/getDocumentJgt',
|
method: 'get',
|
params: query
|
})
|
}
|