import request from '@/utils/request' // 初始化机床项目 export function initProject() { return request({ url: '', method: 'post', data: { type: '1', name: 'PDM_项目名称_查询数据' } }) } // 初始化质检类型 export function QualityType() { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_质检类型_查询数据' } }) } // 初始化质检人员 export function initPerson() { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_质量情况_查询数据_质检人员' } }) } // 组件查询 export function searchgroup(num) { return request({ url: '', method: 'post', data: { type: '1', name: 'PDM_组件名称_查询数据', param: '机床流水号=' + num } }) } // 质检管理_质量情况_查询数据 export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_质量情况_查询数据', param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8, Pagination: pageCurrent + '&' + pageSize } }) } // 质检管理_质量情况_查询数据 export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8) { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_质量情况_查询数据', param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8 } }) } export function searchPic(num) { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_图片_查询数据', param: '质检流水号=' + num } }) } // 查询外协到货单明细 export function searchTableDetail(...params) { return request({ url: '', method: 'post', data: { type: '1', name: '质检管理_质检数据_查询数据', param: `检测类型=${params[0]}&质检流水号=${params[1]}` } }) } export function searchData(pageSize, pageCurrent) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理工艺_加工顺序调整_查询正在加工零件工序_NEW', Pagination: pageCurrent + '&' + pageSize } }) } export function searchData1(pageSize, pageCurrent) { return request({ url: '', method: 'post', data: { type: '1', name: 'MES_机加工MES_记录零件待加工显示_NEW', Pagination: pageCurrent + '&' + pageSize } }) } export function processingStatus(num) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理_成组配套加工进度_查询数据', param: '工艺计划流水号=' + num } }) } export function Prohibit(num, num1) { return request({ url: '', method: 'post', data: { type: '2', name: '质检管理_质检情况_禁用', param: '质检流水号=' + num + '&质检类型代码=' + num1 } }) }