Browse Source

预计入/预计出库存批量删除按钮展示

master_hella_20240701
chenfang 5 months ago
parent
commit
a49c9ae977
  1. 5
      src/api/wms/expectin/index.ts
  2. 4
      src/api/wms/expectout/index.ts
  3. 13
      src/views/wms/inventoryManage/expectin/index.vue
  4. 12
      src/views/wms/inventoryManage/expectout/index.vue

5
src/api/wms/expectin/index.ts

@ -44,6 +44,11 @@ export const deleteExpectin = async (id: number) => {
return await request.delete({ url: `/wms/expectin/delete?id=` + id })
}
// 批量删除预计出库存
export const deleteExpectinIds = async (ids: string) => {
return await request.delete({ url: `/wms/expectin/deleteIds?ids=` + ids })
}
// 导出预计入库存 Excel
export const exportExpectin = async (params) => {
if (params.isSearch) {

4
src/api/wms/expectout/index.ts

@ -46,8 +46,8 @@ export const deleteExpectout = async (id: number) => {
}
// 批量删除预计出库存
export const deleteExpectoutIds = async (ids: String) => {
return await request.delete({ url: `/wms/expectout/delete?ids=` + ids })
export const deleteExpectoutIds = async (ids: string) => {
return await request.delete({ url: `/wms/expectout/deleteIds?ids=` + ids })
}
// 导出预计出库存 Excel

13
src/views/wms/inventoryManage/expectin/index.vue

@ -160,9 +160,18 @@ const handleSelectionDelete = async ()=>{
if(rows.length==0){
return
}
console.log('批量删除',rows)
// await ExpectoutApi.deleteExpectoutIds(rows.join(',')) //
try {
//
await message.delConfirm()
tableObject.loading = true
//
console.log('批量删除',rows.join(','))
await ExpectinApi.deleteExpectinIds(rows.join(','))
message.success(t('common.delSuccess'))
tableObject.loading = false
//
getList()
} catch {}
}
// -

12
src/views/wms/inventoryManage/expectout/index.vue

@ -160,10 +160,18 @@ const handleSelectionDelete = async ()=>{
if(rows.length==0){
return
}
console.log('批量删除',rows)
try {
//
await message.delConfirm()
tableObject.loading = true
//
console.log('批量删除',rows.join(','))
await ExpectoutApi.deleteExpectoutIds(rows.join(','))
message.success(t('common.delSuccess'))
tableObject.loading = false
//
getList()
} catch {}
}
// -
const butttondata = [

Loading…
Cancel
Save