|
|
|
@ -49,6 +49,10 @@ |
|
|
|
|
/> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-input v-model="searchForm.batchNo" placeholder="批次号" clearable /> |
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
<el-button @click="handleSearch"> 搜索 </el-button> |
|
|
|
|
<el-button @click="resetQuery"> 重置 </el-button> |
|
|
|
@ -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 { |
|
|
|
|