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) => { return http({ method: 'GET', url: '/material/back_apply_info/'+id }) } // 单位下拉选 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, }) }