import request from '@/utils/request' // 工具台账-列表 export const getToolLedgerListApi = (data = {}) => { return request({ url: '/material-mall/toolLedger/list', method: 'GET', params: data, }) } // 类型下拉 export const getToolSelectApi = (data = {}) => { return request({ url: '/material-mall/tool/getSelect', method: 'POST', data: data, }) } // 工具录入申请-列表 export const getToolApplyListApi = (data = {}) => { return request({ url: '/material-mall/toolApply/list', method: 'GET', params: data, }) } // 工具录入申请-删除 export const deleteToolApplyApi = (data) => { return request({ url: '/material-mall/toolApply/delete', method: 'POST', data: data, }) } // 新增工具-列表 export const getListByApplyIdApi = (data) => { return request({ url: '/material-mall/toolApply/listByApplyId', method: 'GET', params: data, }) } // 新增工具-删除 export const deleteToolApi = (data) => { return request({ url: '/material-mall/toolApply/deleteDetail', method: 'POST', data: data, }) } // 类型树 export const getTreeSelectApi = (data = {}) => { return request({ url: '/material-mall/toolApply/getTreeSelect', method: 'GET', params: data, }) } // 新增订单号 export const addApplyCodeApi = (data = {}) => { return request({ url: '/material-mall/toolApply/add', method: 'POST', data: data, }) } // 新增工具 export const addToolApi = (data = {}) => { return request({ url: '/material-mall/toolApply/addDetail', method: 'POST', data: data, }) } // 提交申请 export const updateToolApplyApi = (data = {}) => { return request({ url: '/material-mall/toolApply/update', method: 'POST', data: data, }) } // 工具录入审核-列表 export const getListReviewApi = (data = {}) => { return request({ url: '/material-mall/toolApply/listReview', method: 'GET', params: data, }) } // 单个审核 export const updateToolApplyReviewApi = (data = {}) => { return request({ url: '/material-mall/toolApply/updateDetail', method: 'POST', data: data, }) } // 全部审核 export const updateAllDetailApi = (data = {}) => { return request({ url: '/material-mall/toolApply/updateAllDetail', method: 'POST', data: data, }) } // 审核-编码详情 export const getListEncodingApi = (data = {}) => { return request({ url: '/material-mall/toolApply/listEncoding', method: 'get', params: data, }) }