diff --git a/src/api/Assembly/QualityInspectionInformationInquiry.js b/src/api/Assembly/QualityInspectionInformationInquiry.js index 5d27c1d4..615372cc 100644 --- a/src/api/Assembly/QualityInspectionInformationInquiry.js +++ b/src/api/Assembly/QualityInspectionInformationInquiry.js @@ -11,27 +11,38 @@ export function initProject() { } }) } -// PDM_机床名称_发货状态_查询数据 -export function selecttable(check2, machineNumberValue) { +// 初始化质检类型 +export function QualityType() { return request({ url: '', method: 'post', data: { type: '1', - name: 'PDM_机床名称_发货状态_查询数据', - param: '机床流水号_check=' + check2 + '&机床流水号=' + machineNumberValue + name: '质量管理_质检类型_查询数据' } }) } -// PDM_机床名称_发货状态_编辑数据 -export function updatestate(machineNumberValue, state) { +// 组件查询 +export function searchgroup(num) { return request({ url: '', method: 'post', data: { type: '1', - name: 'PDM_机床名称_发货状态_编辑数据', - param: '机床流水号=' + machineNumberValue + '&发货状态=' + state + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 组件查询 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '质量管理_质量情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 } }) } diff --git a/src/api/ManufacturingCenter/CreateIntakeList.js b/src/api/ManufacturingCenter/CreateIntakeList.js index 30f32faa..3df2e2fb 100644 --- a/src/api/ManufacturingCenter/CreateIntakeList.js +++ b/src/api/ManufacturingCenter/CreateIntakeList.js @@ -1,5 +1,42 @@ import request from '@/utils/request' +// 创建领料单 +export function addList(peopleNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_领料单增加', + param: '领料人流水号=' + peopleNumber + } + }) +} +// 领料单查询 +export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_备料管理_查询备料领料单', + param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 删除领料单明细/基本件 +export function dropListDetailBasic(...params) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_备料领料单明细移除', + param: `备料领料单明细流水号=${params[0]}&是否外购=${params[1]}&工艺计划流水号=${params[2]}` + } + }) +} // 初始化项目 export function initProject() { return request({ @@ -7,7 +44,7 @@ export function initProject() { method: 'post', data: { type: '1', - name: 'PDM_项目名称_查询数据_按时间排序' + name: '车间生产管理工艺_项目查询' } }) } @@ -35,59 +72,56 @@ export function searchTeam(machineNumber) { } }) } -// 外购件、标准件查询 -export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '库存管理_外购件出库_零件查询', - param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, - Pagination: pageCurrent + '&' + pageSize - } - }) -} -// 基本件、通用件查询 +// 自家备料零件 export function searchBasicPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { return request({ url: '', method: 'post', data: { type: '1', - name: '库存管理_基本件出库_零件查询', + name: '车间生产管理工艺_备料管理_自家备料零件查询', param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, Pagination: pageCurrent + '&' + pageSize } }) } -// 车间采购件查询 -export function searchHoursePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { +// 外购备料零件 +export function searchPurchasePart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { return request({ url: '', method: 'post', data: { type: '1', - name: '库存管理_车间采购出库_零件查询', + name: '车间生产管理工艺_备料管理_外购备料零件查询', param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, Pagination: pageCurrent + '&' + pageSize } }) } -// 领料单查询 -export function searchList(pageCurrent, pageSize, listNumber_check, listNumber) { +// 自家备料选入 +export function addBasicList(listNumber, num1) { return request({ url: '', method: 'post', data: { - type: '1', - name: '车间装配管理_领料单_领料单查询', - param: '领料单编号_check=' + listNumber_check + '&领料单编号=' + listNumber, - Pagination: pageCurrent + '&' + pageSize + type: '2', + name: '车间生产管理工艺_备料管理_自家备料选入', + param: '备料领料单流水号=' + listNumber + '&工艺计划流水号=' + num1 + } + }) +} +// 外购备料选入 +export function addPurchaseList(listNumber, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_备料管理_外购备料选入', + param: '备料领料单流水号=' + listNumber + '&工艺计划流水号=' + num1 } }) } - // 领料单明细查询 export function searchListDetail(listNumber) { return request({ @@ -95,20 +129,8 @@ export function searchListDetail(listNumber) { method: 'post', data: { type: '1', - name: '车间装配管理_领料单_领料单明细查询', - param: '领料单流水号=' + listNumber - } - }) -} -// 创建领料单 -export function addList(peopleNumber) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '车间装配管理_领料单_领料单增加', - param: '领料人流水号=' + peopleNumber + name: '车间生产管理工艺_备料管理_备料领料单明细查询', + param: '备料领料单流水号=' + listNumber } }) } @@ -119,69 +141,8 @@ export function dropList(PickingListNumberx) { method: 'post', data: { type: '2', - name: '车间装配管理_领料单_领料单删除', - param: '领料单流水号=' + PickingListNumberx - } - }) -} -// 删除领料单明细 -export function dropListDetail(DetailNumberx, isBacklog) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '车间装配管理_领料单_领料单明细删除', - param: '领料单明细流水号=' + DetailNumberx + '&是否是滞货=' + isBacklog - } - }) -} -// 删除领料单明细/基本件 -export function dropListDetailBasic(...params) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '车间装配管理_领料单_领料单明细删除_基本件', - param: `领料单明细流水号=${params[0]}&收件信息ID=${params[1]}&返还数量=${params[2]}` - } - }) -} -// 增加领料单明细 -export function addListDetail(PickingListNumberx, projectnumber, machinenumber, teamNumber, outNumber, partType, Note, data1, data2, data4, data5, data6, data7, data8, data9, data10, data11, data12, data13) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '车间装配管理_领料单_领料单明细增加', - param: '领料单流水号=' + PickingListNumberx + '&项目流水号=' + projectnumber + '&机床流水号=' + machinenumber + '&组件流水号=' + teamNumber + '&出库数量=' + outNumber + '&零件类型=' + partType + '&备注\\=' + Note + '&工艺计划流水号=' + data1 + '&收件信息ID=' + data2 + '&采购合同明细流水号=' + data4 + '&请购单明细流水号=' + data5 + '&货位流水号=' + data6 + '&出库类型=' + data7 + '&物料与货位对照流水号=' + data8 + '&名称=' + data9 + '&物料规格\\=' + data10 + '&物料型号=' + data11 + '&零件图号=' + data12 + '&材料=' + data13 - } - }) -} -// 查询滞货件 -export function searchBacklogPart(pageCurrent, pageSize, project_check, project, machine_check, machine, group_check, group) { - return request({ - url: '', - method: 'post', - data: { - type: '1', - name: '采购管理_滞货件领料_查询数据', - param: '项目流水号_check=' + project_check + '&项目流水号=' + project + '&机床流水号_check=' + machine_check + '&机床流水号=' + machine + '&组件流水号_check=' + group_check + '&组件流水号=' + group, - Pagination: pageCurrent + '&' + pageSize - } - }) -} -// 领料滞货件 -export function submitAddBacklogList(...params) { - return request({ - url: '', - method: 'post', - data: { - type: '2', - name: '采购管理_领料单明细_滞货件_增加数据', - param: `领料单流水号=${params[0]}&项目流水号=${params[1]}&机床流水号=${params[2]}&组件流水号=${params[3]}&出库数量=${params[4]}&备注\\=${params[5]}&货位流水号=${params[6]}&物料与货位对照流水号=${params[7]}&名称=${params[8]}&物料规格\\=${params[9]}&物料型号=${params[10]}` + name: '车间生产管理工艺_备料管理_备料领料单删除', + param: '备料领料单流水号=' + PickingListNumberx } }) } diff --git a/src/api/ManufacturingCenter/ProcessingStatus.js b/src/api/ManufacturingCenter/ProcessingStatus.js index 9892821f..aa1e8c88 100644 --- a/src/api/ManufacturingCenter/ProcessingStatus.js +++ b/src/api/ManufacturingCenter/ProcessingStatus.js @@ -66,7 +66,7 @@ export function getExport(num) { method: 'post', data: { type: '3', - name: `select 机床流水号,组件流水号,车间生产管理工艺_零件工艺计划.工艺计划流水号,车间生产管理工艺_零件工艺计划.零件图号_零件工艺计划,车间生产管理工艺_零件工序_视图.零件名称,待加工工序顺序,车间生产管理工艺_零件工序.工序流水号,车间生产管理工艺_零件工序.工艺编号,车间生产管理工艺_基础表_工艺名称.工艺名称,批次数量,材料 + name: `select 机床流水号,机床图号,组件流水号,组号,车间生产管理工艺_零件工艺计划.工艺计划流水号,车间生产管理工艺_零件工艺计划.零件图号_零件工艺计划,车间生产管理工艺_零件工序_视图.零件名称,待加工工序顺序,车间生产管理工艺_零件工序.工序流水号,车间生产管理工艺_零件工序.工艺编号,车间生产管理工艺_基础表_工艺名称.工艺名称,批次数量,材料 from ( select 工艺计划流水号,min(工序顺序) as 待加工工序顺序 from 车间生产管理工艺_零件工序_视图 where 完成日期_短 is null and 考核状态 = 6 diff --git a/src/views/Assembly/AssemblyExecution/index.vue b/src/views/Assembly/AssemblyExecution/index.vue index 75eda729..a661d266 100644 --- a/src/views/Assembly/AssemblyExecution/index.vue +++ b/src/views/Assembly/AssemblyExecution/index.vue @@ -3,7 +3,7 @@ 机床编号: - + {{ item.name }} - 组号: - - - - 查询 + + + + + + + + +

总装调试

- + - + - + - + + + + + + + + + + + + + + + + + + + @@ -56,7 +102,7 @@