- 重命名queryCallMaterialMRP为queryCallMaterialMRPList以保持命名一致性 - 新增queryCallReceiveList接口用于获取收料清单 - 在paint_receive.vue中实现完整的收退料功能,包括: - 动态获取线体选项 - 调用真实API获取收料数据 - 实现收料和退料操作 - 移除模拟数据,使用真实接口返回的数据结构
106 lines
2.4 KiB
JavaScript
106 lines
2.4 KiB
JavaScript
import request from '@/utils/request'
|
|
|
|
// 查询叫料需求表列表
|
|
export function getMmCallList(params) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/list',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 查询线别MRP表
|
|
export function queryCallMaterialMRPList(params) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/QueryCallMaterialMRPList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
// 查询线别收料表
|
|
export function queryCallReceiveList(params) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/QueryCallReceiveList',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 获取线清单 groupCode groupName
|
|
export function getLineOptions(params) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/GetLineOptions',
|
|
method: 'get',
|
|
params
|
|
})
|
|
}
|
|
|
|
// 查询叫料需求表详情
|
|
export function getMmCallInfo(Id) {
|
|
return request({
|
|
url: `/mes/materialManagement/paintedparts_call/mmcall/${Id}`,
|
|
method: 'get'
|
|
})
|
|
}
|
|
|
|
// 添加叫料需求表
|
|
export function addMmCall(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 更新叫料需求表
|
|
export function updateMmCall(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall',
|
|
method: 'put',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 删除叫料需求表
|
|
export function deleteMmCall(ids) {
|
|
return request({
|
|
url: `/mes/materialManagement/paintedparts_call/mmcall/${ids}`,
|
|
method: 'delete'
|
|
})
|
|
}
|
|
|
|
// 生成产线油漆件MRP
|
|
export function generateLineMmCallMRP(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/GenerateLineMmCallMRP',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 涂装油漆件产线叫料
|
|
export function doLineCallMaterial(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/DoLineCallMaterial',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 涂装油漆件产线领料
|
|
export function doLineReceiveMaterial(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/DoLineReceiveMaterial',
|
|
method: 'post',
|
|
data
|
|
})
|
|
}
|
|
|
|
// 涂装油漆件产线退料
|
|
export function doLineReturnBackMaterial(data) {
|
|
return request({
|
|
url: '/mes/materialManagement/paintedparts_call/mmcall/DoLineReturnBackMaterial',
|
|
method: 'post',
|
|
data
|
|
})
|
|
} |