Commit c7697aca by zhuzhequan

fix:清空全部箱子 添加仓库id和工厂id

parent 01aecc7f
......@@ -278,9 +278,12 @@ export function clearBoxApi(
},
)
}
export function clearAllBoxApi() {
export function clearAllBoxApi(warehouseId: string | number,factoryId: string | number | undefined) {
return axios.get<never, BaseRespData<never>>(
'factory/podJomallOrderUs/delPodBoxOrderDetails',
{
params: { warehouseId,factoryId },
},
)
}
export function updateRemarkApi(id: number, content: string) {
......
......@@ -1016,7 +1016,7 @@ const clearAllBox = async () => {
return
}
try {
const res = await clearAllBoxApi()
const res = await clearAllBoxApi(warehouseId.value,userStore.user?.factory.id)
if (res.code !== 200) return
// orderStore.setPodBoxList({
// boxList: res.data,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment