|
|
@ -49,6 +49,10 @@ |
|
|
|
/> |
|
|
|
/> |
|
|
|
</el-select> |
|
|
|
</el-select> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
|
|
|
|
<el-input v-model="searchForm.batchNo" placeholder="批次号" clearable /> |
|
|
|
|
|
|
|
</el-form-item> |
|
|
|
|
|
|
|
|
|
|
|
<el-form-item> |
|
|
|
<el-form-item> |
|
|
|
<el-button @click="handleSearch"> 搜索 </el-button> |
|
|
|
<el-button @click="handleSearch"> 搜索 </el-button> |
|
|
|
<el-button @click="resetQuery"> 重置 </el-button> |
|
|
|
<el-button @click="resetQuery"> 重置 </el-button> |
|
|
@ -93,12 +97,14 @@ |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { dateFormatter } from '@/utils/formatTime' |
|
|
|
import { getSimpleWarehouseList, getInventoryRecord } from '@/api/mall/warehouse' |
|
|
|
import { getSimpleWarehouseList, getInventoryRecord } from '@/api/mall/warehouse' |
|
|
|
import { getSimpleProductList } from '@/api/mall/product' |
|
|
|
import { getSimpleProductList } from '@/api/mall/product' |
|
|
|
|
|
|
|
import { removeNullField } from '@/utils' |
|
|
|
|
|
|
|
|
|
|
|
const searchForm = ref({ |
|
|
|
const searchForm = ref({ |
|
|
|
pproductId: undefined, |
|
|
|
pproductId: undefined, |
|
|
|
specsId: undefined, |
|
|
|
specsId: undefined, |
|
|
|
warehouseId: undefined, |
|
|
|
warehouseId: undefined, |
|
|
|
changeType: undefined, |
|
|
|
changeType: undefined, |
|
|
|
|
|
|
|
batchNo: undefined, |
|
|
|
pageNo: 1, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 20 |
|
|
|
pageSize: 20 |
|
|
|
}) |
|
|
|
}) |
|
|
@ -119,6 +125,7 @@ function resetQuery() { |
|
|
|
specsId: undefined, |
|
|
|
specsId: undefined, |
|
|
|
warehouseId: undefined, |
|
|
|
warehouseId: undefined, |
|
|
|
changeType: undefined, |
|
|
|
changeType: undefined, |
|
|
|
|
|
|
|
batchNo: undefined, |
|
|
|
pageNo: 1, |
|
|
|
pageNo: 1, |
|
|
|
pageSize: 20 |
|
|
|
pageSize: 20 |
|
|
|
} |
|
|
|
} |
|
|
@ -150,7 +157,7 @@ function changeProd(val) { |
|
|
|
async function getList() { |
|
|
|
async function getList() { |
|
|
|
loading.value = true |
|
|
|
loading.value = true |
|
|
|
try { |
|
|
|
try { |
|
|
|
const data = await getInventoryRecord(searchForm.value) |
|
|
|
const data = await getInventoryRecord(removeNullField(searchForm.value)) |
|
|
|
tableList.value = data.list |
|
|
|
tableList.value = data.list |
|
|
|
total.value = data.total |
|
|
|
total.value = data.total |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|