配置代码
This commit is contained in:
13
src/api/materialManagement/bigscreen.js
Normal file
13
src/api/materialManagement/bigscreen.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 查看备料进度大屏
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function tableQuerytaskInfoBYline(params) {
|
||||
return request({
|
||||
url: 'mes/bigscreen/materialprogress/view_Material_paration_progress',
|
||||
method: 'get',
|
||||
params
|
||||
})
|
||||
}
|
||||
149
src/api/materialManagement/materialPreparation.js
Normal file
149
src/api/materialManagement/materialPreparation.js
Normal file
@@ -0,0 +1,149 @@
|
||||
import request from '@/utils/request'
|
||||
/**
|
||||
* 获取产线下拉
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetProcessRouteList(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/get_route',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取工单
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetWorkOrder(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/get_workoder',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetTaskList(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/get_task',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务详情
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetTaskMaterialInfo(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/get_task_material',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取任务与Bom配料要求对照
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetTaskMaterialBOMContrast(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/get_task_material_bom_contrast',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function AddNewTask(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/new_task',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除任务
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function DeleteTask(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/delete_task',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改任务
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function ModifyTaskNum(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/ModifyTask_num',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 切换备货状态
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function SwitchTaskPreparation(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/switch_task_preparation',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 表格形式查询工单 任务及其详情
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function TableQuerytaskInfo(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/table_task',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 备料大屏接口
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function MaterialPreparationLargeScreen(params) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/Preparationscreen',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产线配料任务
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function tableQuerytaskInfoBYline(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/PreparantTask/table_task_byline',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
57
src/api/materialManagement/mmlinesidebarinventory.js
Normal file
57
src/api/materialManagement/mmlinesidebarinventory.js
Normal file
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 线边库库存分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmLinesidebarInventory(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventory/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线边库库存
|
||||
* @param data
|
||||
*/
|
||||
export function addMmLinesidebarInventory(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventory',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改线边库库存
|
||||
* @param data
|
||||
*/
|
||||
export function updateMmLinesidebarInventory(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventory',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取线边库库存详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getMmLinesidebarInventory(id) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventory/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线边库库存
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delMmLinesidebarInventory(pid) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventory/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
48
src/api/materialManagement/mmlinesidebarinventorycheck.js
Normal file
48
src/api/materialManagement/mmlinesidebarinventorycheck.js
Normal file
@@ -0,0 +1,48 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 盘点数据查看
|
||||
* @param {查询条件} query
|
||||
*/
|
||||
export function listMmLinesidebarInventoryCheck(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryCheck/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取盘点数据信息详情
|
||||
* @param {id} params
|
||||
*/
|
||||
export function getMmLinesidebarInventoryCheckDetail(params) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryCheck/get_detail',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改盘点信息
|
||||
* @param {Id,Remark} data
|
||||
*/
|
||||
export function updateMmLinesidebarInventoryCheck(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryCheck',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 盘点确认矫正
|
||||
* @param {查询条件} query
|
||||
*/
|
||||
export function doCorrecting(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryCheck/correcting',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
@@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 线边库出入库日志分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmLinesidebarInventoryOutboundAndInbound(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryOutboundAndInbound/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增线边库出入库日志
|
||||
* @param data
|
||||
*/
|
||||
export function addMmLinesidebarInventoryOutboundAndInbound(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryOutboundAndInbound',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改线边库出入库日志
|
||||
* @param data
|
||||
*/
|
||||
export function updateMmLinesidebarInventoryOutboundAndInbound(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryOutboundAndInbound',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取线边库出入库日志详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getMmLinesidebarInventoryOutboundAndInbound(id) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryOutboundAndInbound/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除线边库出入库日志
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delMmLinesidebarInventoryOutboundAndInbound(pid) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmLinesidebarInventoryOutboundAndInbound/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
131
src/api/materialManagement/mmrequireplan.js
Normal file
131
src/api/materialManagement/mmrequireplan.js
Normal file
@@ -0,0 +1,131 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 物料需求计划分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmRequirePlan(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增物料需求计划
|
||||
* @param data
|
||||
*/
|
||||
export function addMmRequirePlan(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改物料需求计划
|
||||
* @param data
|
||||
*/
|
||||
export function updateMmRequirePlan(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan',
|
||||
method: 'PUT',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取物料需求计划详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getMmRequirePlan(id) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除物料需求计划
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delMmRequirePlan(pid) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 手动生成物料需求计划
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GenerateMmRequirePlan(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/generate',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 足料,缺料,变动
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function UpdateMaterialStatus(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/update_material_status',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 一键足料,缺料
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function AllUpdateMaterialStatus(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/all_update_material_status',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 检测是否可以和ERP库存通讯
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function CheckCommunicationERPInventory(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/check_communication_ERP_inv',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 生成产线配料单
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GenerateMaterialRequirePlanByline(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/generate_material_require_plan_byline',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询产线配料单
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function GetMaterialRequirePlanByline(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/MmRequirePlan/get_material_require_plan_byline',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
69
src/api/materialManagement/mmslowmovematerial.js
Normal file
69
src/api/materialManagement/mmslowmovematerial.js
Normal file
@@ -0,0 +1,69 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 车间呆滞品盘点分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listMmSlowMoveMaterial(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial/list',
|
||||
method: 'post',
|
||||
data: query
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增车间呆滞品盘点
|
||||
* @param data
|
||||
*/
|
||||
export function addMmSlowMoveMaterial(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改车间呆滞品盘点
|
||||
* @param data
|
||||
*/
|
||||
export function updateMmSlowMoveMaterial(data) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial',
|
||||
method: 'PUT',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取车间呆滞品盘点详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getMmSlowMoveMaterial(id) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除车间呆滞品盘点
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delMmSlowMoveMaterial(pid) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial/' + pid,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成车间呆滞品数据
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function generate_shop_moveSlow_material(query) {
|
||||
return request({
|
||||
url: 'mes/materialManagement/SlowMoveMaterial/generate_shop_moveSlow_material',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user