import request from "@/http/request";

const submitOrderInForm = (params) => {
    return request({
        url: '/ycwms/orderIn',
        method: 'post',
        data: params
    })
}

/**
 * 查询入库单列表
 */
const getOrderIns = (params) => {
    return request({
        url: '/wms/order/getOrderIns',
        method: 'post',
        data: params
    })
}

// 修改update方法
const updateOrderIn = (recordId, orderStatus) => {
    return request({
        url: '/wms/order/updateOrderIn',
        method: 'post',
        params: {  // 使用params传递URL参数
            recordId,
            orderStatus
        }
    })
}

const deleteOrderIn = (recordId) => {
    return request({
        url: '/wms/order/deleteOrderIn',
        method: 'delete',
        params: {
            recordId
        }
    })
}

export {
    submitOrderInForm,
    getOrderIns,
    updateOrderIn,
    deleteOrderIn
}
