202502-Wms-NanTongYaChi-test/wms_web_nantong_yachi/src/api/orderIn.js

42 lines
731 B
JavaScript
Raw Normal View History

import request from "@/http/request";
/**
* 提交入库单
*/
const submitOrderInForm = (params) => {
return request({
url: '/order/orderIn',
method: 'post',
data: params
})
}
/**
* 查询入库单列表
*/
const getOrderIns = (params) => {
return request({
url: '/order/getOrderIns',
method: 'post',
data: params
})
}
// 修改update方法
const updateOrderIn = (recordId, orderStatus) => {
return request({
url: '/order/updateOrderIn',
method: 'post',
params: { // 使用params传递URL参数
recordId,
orderStatus
}
})
}
export {
submitOrderInForm,
getOrderIns,
updateOrderIn
}