import request from '../request.js';

const Api = {
    page: '/api/wms/checkPlt/page',
    list: '/api/wms/checkPlt/list',
    remove: '/api/wms/checkPlt/remove',
    removeBatch: '/api/wms/checkPlt/removeBatch',
    save: '/api/wms/checkPlt/save',
    edit: '/api/wms/checkPlt/edit',
}

/** 拣选明细管理 */
export const page = data => {
    return request.request({
        url: Api.page,
        params: data,
        method: 'GET'
    })
}

/** 拣选明细表列表 */
export const list = data => {
    return request.request({
        url: Api.list,
        params: data,
        method: 'GET'
    })
}

/** 新增拣选明细 */
export const save = data => {
    return request.request({
        url: Api.save,
        data: data,
        method: 'POST'
    })
}

/** 修改拣选明细 */
export const edit = data => {
    return request.request({
        url: Api.edit,
        data: data,
        method: 'PUT'
    })
}

/** 删除拣选明细 */
export const remove = data => {
    return request.request({
        url: Api.remove,
        params: data,
        method: 'DELETE'
    })
}

/** 批量删除 */
export const removeBatch = data => {
    return request.request({
        url: Api.removeBatch,
        params: data,
        method: 'DELETE'
    })
}
