import { http } from '@/utils/http' // 退料任务列表接口 export const getBackList = (data) => { return http({ method: 'GET', url: '/material/back_apply_info/list', data:data, }) } // 退料任务详情接口 export const getBackInfo = (id,keyWord) => { return http({ method: 'GET', url: `/material/back_apply_info/${id}?keyWord=${keyWord}`, }) } // 单位下拉选 export const getUnitList = (data) => { return http({ method: 'POST', url: '/material/select/getUnitList', data:data, }) } // 工程下拉选 export const getProjectList = (data) => { return http({ method: 'POST', url: '/material/select/getProjectList', data:data, }) } // 获取协议id export const getAgreementInfoById = (data) => { return http({ method: 'POST', url: '/material/select/getAgreementInfoById', data:data, }) } // 新增退料单-无设备 export const insertApp = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/insertApp', data:data, }) } // 新增退料单-有设备 export const insertBack = (data) => { return http({ method: 'POST', url: '/material/back_apply_info', data:data, }) } // 数量退料设备下拉选 export const getUseType = (data) => { return http({ method: 'POST', url: '/material/select/getUseType', data:data, }) } // 数量删除 export const deleteNumType = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/delete', data:data, }) } // 编码检索获取设备详情 export const getMachine = (data) => { return http({ method: 'GET', url: '/material/back_apply_info/getMachine', data:data, }) } export function getMachineApi(data) { return http({ url: '/material/back_apply_info/getMachine', method: 'GET', params: data }) } // 获取已退料编码列表-查看 export const getMaCodeList = (data) => { return http({ method: 'GET', url: '/material/back_apply_info/getMaCodeList', data:data, }) } // 编码删除 export const deleteMaCode = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/delete', data:data, }) } // 编码类型查看页面保存 export const saveCode = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/updateMaCode', data:data, }) } // 提交 export const submitBackApply = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/submitBackApply', data:data, }) } //删除 export const backApplyRemove = (data) => { return http({ method: 'POST', url: '/material/back_apply_info/deleteById', data:data, }) } // 二维码扫码获取编码信息 export const getMachineByQrCodeApi = (data) => { return http({ method: 'GET', url: '/material/back_apply_info/getMachine', data:data, }) } // 获取退料明细(退料人退料时间) export const getDetailsByIdApi = (data) => { return http({ method: 'GET', url: '/material/back_apply_info/getDetailsById', data:data, }) } // 标准配置下拉选 export const getConfigList = (data) => { return http({ method: 'POST', url: '/material/select/getConfigList', data:data, }) } // 数量退料设备下拉选 export const getLevelThreeType = (data) => { return http({ method: 'POST', url: '/material/select/getMaType', data:data, }) } // 标准配置下拉选选择事件 export const getListsByConfigId = (data) => { return http({ method: 'GET', url: '/material/standardConfig/getListsByConfigId', data:data, }) } // 四级下拉选选择事件 export const getTypeDataList = (data) => { return http({ method: 'GET', url: '/material/leaseTask/getTypeDataList', data:data, }) } // 提交 export const leaseTask = (data) => { return http({ method: 'POST', url: '/material/leaseTask', data:data, }) } // 直转申请下拉选 export const getParentType = (data) => { return http({ method: 'POST', url: '/material/directRotation/getTypeNameList', data:data, }) } // 直转申请提交 export const directSubmit = (data) => { return http({ method: 'POST', url: '/material/directRotation/submit', data:data, }) } // 费用减免物资类型下拉选择事件 export const getThreeType = (data) => { return http({ method: 'GET', url: '/material/slt_agreement_reduce/selectByMaType', data:data, }) } // 费用减免规格型号下拉选择事件 export const getFourType = (data) => { return http({ method: 'GET', url: '/material/slt_agreement_reduce/selectByMaModel', data:data, }) } // 费用减免数据列表 export const getDirefList = (data) => { return http({ method: 'GET', url: '/material/slt_agreement_reduce/applyByParam', data:data, }) } // 减免费用申请提交 export const discountSubmit = (data) => { return http({ method: 'POST', url: '/material/slt_agreement_reduce/addApply', data:data, }) }