import request from '@/utils/request' // 查询盘点单列表 export function listCheckList(query) { return request({ url: '/material/checkList/list', method: 'get', params: query }) } // 查询盘点单详细 export function getCheckList(id) { return request({ url: '/material/checkList/' + id, method: 'get' }) } // 新增盘点单 export function addCheckList(data) { return request({ url: '/material/checkList', method: 'post', data: data }) } // 修改盘点单 export function updateCheckList(data) { return request({ url: '/material/checkList', method: 'put', data: data }) } // 删除盘点单 export function delCheckList(id) { return request({ url: '/material/checkList/' + id, method: 'delete' }) } //暂存或结束盘点 export function addOrUpdateCheck(data) { return request({ url: '/material/checkList/addOrUpdate', method: 'post', data: data }) } //查询盘点单及详细 export function getCheckListAndCheckListDel(checkId) { return request({ url: '/material/checkList/byCheckId/' + checkId, method: 'get' }) }