diff --git a/src/api/ManufacturingCenter/RepairTimeEntry.js b/src/api/ManufacturingCenter/RepairTimeEntry.js index fc99ccd6..937b6c2e 100644 --- a/src/api/ManufacturingCenter/RepairTimeEntry.js +++ b/src/api/ManufacturingCenter/RepairTimeEntry.js @@ -12,6 +12,50 @@ export function searchTechnology(num) { } }) } +export function getNames() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_项目名称_查询数据_加工进度修改' + } + }) +} + +export function getMachines(gongyi) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', + param: '项目流水号=' + gongyi + '=int' + } + }) +} +export function getGroups(stepNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_传递后_组件名称_查询数据_查询所有组', + param: '机床流水号=' + stepNumber + '=int' + } + }) +} +export function getParts(stepNumber, a, b, c, d, e, f, g) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理_基础表_员工月修补工时_查询零件', + param: '项目流水号_check=' + stepNumber + '=string&项目流水号=' + a + '=string&机床流水号_check=' + b + '=string&机床流水号=' + c + '=string&组件流水号_check=' + d + '=string&组件流水号=' + e + '=string&零件图号_check=' + f + '=string&零件图号=' + g + '=string&是否查询全部数据=1=string&单件是否外协=0' + } + }) +} // 查询人员编号 export function searchperson(num) { return request({ @@ -31,33 +75,45 @@ export function searchtable(check, num, pageCurrent, pageSize) { method: 'post', data: { type: '1', - name: '车间生产管理_基础表_员工月修补工时_查询数据', + name: '车间生产管理_基础表_员工月修补工时_查询数据_MESWORK', param: '人员编号_check=' + check + '&人员编号=' + num, Pagination: pageCurrent + '&' + pageSize } }) } // 增加 -export function edittype(ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName) { +export function edittype(num1, ManufacturerNumber, ManufacturerAbbreviation, address, roleName, num2) { return request({ url: '', method: 'post', data: { type: '2', name: '车间生产管理_基础表_员工月修补工时_增加数据', - param: '人员编号=' + ManufacturerNumber + '&工艺编号=' + ManufacturerName + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + param: '工艺计划流水号=' + num1 + '&人员编号=' + ManufacturerNumber + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + '&修补工艺=' + num2 } }) } // 编辑 -export function handlechange(CoManufacturerFlowNumber, ManufacturerNumber, ManufacturerName, ManufacturerAbbreviation, address, roleName) { +export function handlechange(CoManufacturerFlowNumber, num1, ManufacturerNumber, ManufacturerAbbreviation, address, roleName, num2) { return request({ url: '', method: 'post', data: { type: '2', name: '车间生产管理_基础表_员工月修补工时_修改数据', - param: '员工月修补工时流水号=' + CoManufacturerFlowNumber + '&人员编号=' + ManufacturerNumber + '&工艺编号=' + ManufacturerName + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + param: '员工月修补工时流水号=' + CoManufacturerFlowNumber + '&工艺计划流水号=' + num1 + '&人员编号=' + ManufacturerNumber + '&年=' + ManufacturerAbbreviation + '&月=' + address + '&修补工时=' + roleName + '&修补工艺=' + num2 + } + }) +} +// 删除工艺信息 +export function delList(MaterialCode) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理_基础表_员工月修补工时_删除数据', + param: '员工月修补工时流水号=' + MaterialCode } }) } diff --git a/src/views/ManufacturingCenter/RepairTimeEntry/index.vue b/src/views/ManufacturingCenter/RepairTimeEntry/index.vue index 71056898..0d7c5982 100644 --- a/src/views/ManufacturingCenter/RepairTimeEntry/index.vue +++ b/src/views/ManufacturingCenter/RepairTimeEntry/index.vue @@ -19,9 +19,9 @@ type="index" align="center" width="50"/> - + @@ -44,18 +44,23 @@ {{ scope.row.姓名 }} - + - + @@ -72,51 +77,97 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + - - - 取消 - 确 定 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -162,8 +213,12 @@