2026-04-20 19:14:50 +08:00
|
|
|
import request from '@/utils/request'
|
|
|
|
|
|
|
|
|
|
export function listProcessSpecVersion(query) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion/list',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: query
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getProcessSpecVersion(versionId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion/' + versionId,
|
|
|
|
|
method: 'get'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function addProcessSpecVersion(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function updateProcessSpecVersion(data) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion',
|
|
|
|
|
method: 'put',
|
|
|
|
|
data: data
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function activateProcessSpecVersion(versionId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion/activate/' + versionId,
|
|
|
|
|
method: 'put'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function delProcessSpecVersion(versionId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/processSpecVersion/' + versionId,
|
|
|
|
|
method: 'delete'
|
|
|
|
|
})
|
|
|
|
|
}
|
2026-05-23 19:34:52 +08:00
|
|
|
|
|
|
|
|
export function matchBestSpecVersion(hotCoilId, lineId) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/specSync/matchBest',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params: { hotCoilId, lineId }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// bindings: [{coilId, specId, versionId}, ...]
|
|
|
|
|
export function syncCoilSpec(bindings) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/specSync/syncSpec',
|
|
|
|
|
method: 'post',
|
|
|
|
|
data: { bindings }
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getCoilSyncPageList(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/specSync/pageList',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function getUntypedPageList(params) {
|
|
|
|
|
return request({
|
|
|
|
|
url: '/wms/specSync/untypedPageList',
|
|
|
|
|
method: 'get',
|
|
|
|
|
params
|
|
|
|
|
})
|
|
|
|
|
}
|