From 94184aa185e6a372f9c3a393f7b108c5b5d5205c Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Sat, 29 Dec 2018 19:13:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E8=A1=A5=E5=B7=A5=E6=97=B6=E5=BD=95?= =?UTF-8?q?=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/RepairTimeEntry.js | 66 ++++- .../RepairTimeEntry/index.vue | 280 ++++++++++++++---- 2 files changed, 285 insertions(+), 61 deletions(-) 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 @@