156 lines
3.0 KiB
JavaScript
156 lines
3.0 KiB
JavaScript
/*
|
|
* @Author: Do not edit
|
|
* @Date: 2023-10-21 11:50:46
|
|
* @LastEditTime: 2023-11-15 17:19:19
|
|
* @LastEditors: DY
|
|
* @Description:
|
|
*/
|
|
import request from '@/utils/request'
|
|
|
|
// 创建工单
|
|
export function createCoreWO(data) {
|
|
return request({
|
|
url: '/base/core-work-order/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新工单
|
|
export function updateCoreWO(data) {
|
|
return request({
|
|
url: '/base/core-work-order/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除工单
|
|
export function deleteCoreWO(id) {
|
|
return request({
|
|
url: '/base/core-work-order/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得工单
|
|
export function getCoreWO(id) {
|
|
return request({
|
|
url: '/base/core-work-order/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得工单code
|
|
export function getCode() {
|
|
return request({
|
|
url: '/base/core-work-order/getCode',
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得工单分页
|
|
export function getCoreWOPage(query) {
|
|
return request({
|
|
url: '/base/core-work-order/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得所有列表
|
|
export function getCoreWOList(query) {
|
|
return request({
|
|
url: '/base/core-work-order/listbyfilter',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 根据工单id获得所有列表
|
|
export function getCoreWOListById(ids) {
|
|
return request({
|
|
url: '/base/core-work-order/list?ids='+ ids ,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 创建工单预使用原料
|
|
export function createCoreWOMa(data) {
|
|
return request({
|
|
url: '/base/core-work-order-material/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 更新工单预使用原料
|
|
export function updateCoreWOMa(data) {
|
|
return request({
|
|
url: '/base/core-work-order-material/update',
|
|
method: 'put',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 删除工单预使用原料
|
|
export function deleteCoreWOMa(id) {
|
|
return request({
|
|
url: '/base/core-work-order-material/delete?id=' + id,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 获得工单预使用原料
|
|
export function getCoreWOMa(id) {
|
|
return request({
|
|
url: '/base/core-work-order-material/get?id=' + id,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 获得工单预使用原料分页
|
|
export function getCoreWOMaPage(query) {
|
|
return request({
|
|
url: '/base/core-work-order-material/page',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得预计用料信息分页
|
|
export function getMaterialBomPage(query) {
|
|
return request({
|
|
url: '/base/material-product-bom/bomUseNum',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 获得订单分页
|
|
export function getConOrderList(query) {
|
|
return request({
|
|
url: '/base/order/listConOrder',
|
|
method: 'get',
|
|
params: query
|
|
})
|
|
}
|
|
|
|
// 改变工单状态 激活暂停完成作废
|
|
export function statusChange(data) {
|
|
return request({
|
|
url: '/base/core-work-order/statusChange',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|
|
|
|
// 创建分配产量
|
|
export function createConCoreWOr(data) {
|
|
return request({
|
|
url: '/base/core-order-con-work-order/create',
|
|
method: 'post',
|
|
data: data
|
|
})
|
|
}
|