diff --git a/src/views/MiniMall/Inventory/Comp/InventoryRecord.vue b/src/views/MiniMall/Inventory/Comp/InventoryRecord.vue index f903f09..97716d3 100644 --- a/src/views/MiniMall/Inventory/Comp/InventoryRecord.vue +++ b/src/views/MiniMall/Inventory/Comp/InventoryRecord.vue @@ -49,6 +49,10 @@ /> + + + + 搜索 重置 @@ -93,12 +97,14 @@ import { dateFormatter } from '@/utils/formatTime' import { getSimpleWarehouseList, getInventoryRecord } from '@/api/mall/warehouse' import { getSimpleProductList } from '@/api/mall/product' +import { removeNullField } from '@/utils' const searchForm = ref({ pproductId: undefined, specsId: undefined, warehouseId: undefined, changeType: undefined, + batchNo: undefined, pageNo: 1, pageSize: 20 }) @@ -119,6 +125,7 @@ function resetQuery() { specsId: undefined, warehouseId: undefined, changeType: undefined, + batchNo: undefined, pageNo: 1, pageSize: 20 } @@ -150,7 +157,7 @@ function changeProd(val) { async function getList() { loading.value = true try { - const data = await getInventoryRecord(searchForm.value) + const data = await getInventoryRecord(removeNullField(searchForm.value)) tableList.value = data.list total.value = data.total } finally {