From 3c7e50ab564ad74a0f8c88b37e857b72caa7fc24 Mon Sep 17 00:00:00 2001 From: chenjianan Date: Sat, 3 Aug 2019 17:45:05 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AE=A1=E5=88=92=E6=89=A7=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Assembly/AssemblyExecution.js | 56 ++++++++--- src/api/Assembly/ElectricalAssembly.js | 37 ++++--- .../Assembly/AssemblyExecution/index.vue | 65 ++++++++++--- .../Assembly/ElectricalAssembly/index.vue | 97 +++++++++++++------ 4 files changed, 180 insertions(+), 75 deletions(-) diff --git a/src/api/Assembly/AssemblyExecution.js b/src/api/Assembly/AssemblyExecution.js index f7eff3e2..857fc6a1 100644 --- a/src/api/Assembly/AssemblyExecution.js +++ b/src/api/Assembly/AssemblyExecution.js @@ -34,18 +34,18 @@ export function searchTable1(machineNumberValue, check2) { } }) } -// 组件查询 -export function searchTable2(machineNumberValue, check2, groupNumberValue, check3) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '车间管理_基本件采购_查询数据', - param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue - } - }) -} +// // 组件查询 +// export function searchTable2(machineNumberValue, check2, groupNumberValue, check3) { +// return request({ +// url: '', +// method: 'post', +// data: { +// type: '1', +// name: '车间管理_基本件采购_查询数据', +// param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue +// } +// }) +// } // 机床名称_机床状态_修改数据 export function MachineToolStateUpdate(machineNumberValue, check) { return request({ @@ -73,15 +73,39 @@ export function DebugStatusUpdate(machineNumberValue, check) { } // 组件名称_组件状态_修改数据 -export function ComponentStateUpdate(machineNumberValue, check) { +export function ComponentStateUpdate() { return request({ url: '', method: 'post', data: { type: '1', - name: 'PDM_组件名称_组件状态_修改数据', - param: '组件流水号=' + machineNumberValue + '&组件是否完成=' + check + name: '车间管理_工作计划_执行计划', + param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + } + }) +} +// 车间管理_工作计划_查询 +// 2019/8/3 16:40:23 +export function searchTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间管理_工作计划_查询', + param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1] + } + }) +} +// 车间管理_工作计划_执行计划_编辑 +export function submitTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_执行计划_编辑', + param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3] } }) } - diff --git a/src/api/Assembly/ElectricalAssembly.js b/src/api/Assembly/ElectricalAssembly.js index d929483e..f4b44b56 100644 --- a/src/api/Assembly/ElectricalAssembly.js +++ b/src/api/Assembly/ElectricalAssembly.js @@ -35,26 +35,26 @@ export function searchTable1(machineNumberValue, check2) { }) } // 组件查询 -export function searchTable2(machineNumberValue, check2, groupNumberValue, check3) { +export function searchTable2() { return request({ url: '', method: 'post', data: { type: '1', - name: '车间管理_基本件采购_查询数据_电气', - param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + '&组件流水号_check=' + check3 + '&组件流水号=' + groupNumberValue + name: '车间管理_工作计划_查询', + param: '机床流水号=' + arguments[0] + '&计划类型=' + arguments[1] } }) } // 机床名称_机床状态_修改数据 -export function MachineToolStateUpdate(machineNumberValue, check) { +export function MachineToolStateUpdate() { return request({ url: '', method: 'post', data: { - type: '1', - name: 'PDM_机床名称_机床状态_修改数据', - param: '机床流水号=' + machineNumberValue + '&装配状态=' + check + type: '2', + name: 'PDM_机床名称_电气状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气装配状态=' + arguments[1] } }) } @@ -66,22 +66,33 @@ export function DebugStatusUpdate(machineNumberValue, check) { method: 'post', data: { type: '1', - name: 'PDM_机床名称_调试状态_修改数据', - param: '机床流水号=' + machineNumberValue + '&调试状态=' + check + name: 'PDM_机床名称_电气调试状态_修改数据', + param: '机床流水号=' + arguments[0] + '&电气调试状态=' + arguments[1] } }) } // 组件名称_组件状态_修改数据 -export function ComponentStateUpdate(machineNumberValue, check) { +export function ComponentStateUpdate() { return request({ url: '', method: 'post', data: { type: '1', - name: 'PDM_组件名称_组件状态_修改数据', - param: '组件流水号=' + machineNumberValue + '&组件是否完成=' + check + name: '车间管理_工作计划_执行计划', + param: '计划流水号=' + arguments[0] + '&是否工作=' + arguments[1] + } + }) +} +// 车间管理_工作计划_执行计划_编辑 +export function submitTable2() { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间管理_工作计划_执行计划_编辑', + param: '备注=' + arguments[0] + '&计划流水号=' + arguments[1] + '&实际工时=' + arguments[2] + '&修补工时=' + arguments[3] } }) } - diff --git a/src/views/Assembly/AssemblyExecution/index.vue b/src/views/Assembly/AssemblyExecution/index.vue index c8bfaa40..fca6947f 100644 --- a/src/views/Assembly/AssemblyExecution/index.vue +++ b/src/views/Assembly/AssemblyExecution/index.vue @@ -49,12 +49,12 @@ @@ -93,7 +93,7 @@ @@ -103,12 +103,14 @@ @@ -123,11 +125,15 @@ - +