import request from '@/utils/request' import state from '@/store' import router from '@/router' // 获取零件工序信息(零件号表中) export function getprocedure(processPlan, single) { return request({ url: '', method: 'post', data: { UserID: state.state.user.id, ModularID: router.currentRoute.path, type: '1', name: '车间生产管理工艺_零件工序_查询数据_根据工艺计划流水号_工艺名称简称_新', param: '工艺计划流水号=' + processPlan + '=int&单件是否外协=' + single + '=int' } }) } // 查询外协零件 export function searchTable(check, supplierNameValue, check1, MaterialsValue, check2, time1, time2, pageSize, pageCurrent) { return request({ url: '', method: 'post', data: { UserID: state.state.user.id, ModularID: router.currentRoute.path, type: '1', name: '车间生产管理_外协零件_查询数据', param: '外协厂家_check=' + check + '&外协厂家=' + supplierNameValue + '&外协状态_check=' + check1 + '&外协状态=' + MaterialsValue + '&时间_check=' + check2 + '&开始时间=' + time1 + '&结束时间=' + time2, Pagination: pageCurrent + '&' + pageSize } }) } // 查询外协零件 export function getExport(check, supplierNameValue, check1, MaterialsValue, check2, time1, time2, pageSize, pageCurrent) { return request({ url: '', method: 'post', data: { UserID: state.state.user.id, ModularID: router.currentRoute.path, type: '1', name: '车间生产管理_外协零件_查询数据', param: '外协厂家_check=' + check + '&外协厂家=' + supplierNameValue + '&外协状态_check=' + check1 + '&外协状态=' + MaterialsValue + '&时间_check=' + check2 + '&开始时间=' + time1 + '&结束时间=' + time2 } }) }