108 lines
1.8 KiB
JavaScript
108 lines
1.8 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
export function add(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function addRows(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/addRows',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function del(ids) {
|
|
return request({
|
|
url: 'api/produceshiftorder/',
|
|
method: 'delete',
|
|
data: ids
|
|
})
|
|
}
|
|
|
|
export function edit(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function submits(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/submits',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getDevice(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/getDevice',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getTable(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/getTable',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function openStart(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/openStart',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function saveReport(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/saveReport',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function finish(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/finish',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function forceFinish(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/forceFinish',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getReportWork(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/getReportWork',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export function getDtl(data) {
|
|
return request({
|
|
url: 'api/produceshiftorder/getDtl',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
export default { add, addRows, edit, del, submits, getDevice, getTable, openStart, saveReport, finish, getReportWork, forceFinish, getDtl }
|