|
|
|
@ -1,6 +1,12 @@ |
|
|
|
|
<template> |
|
|
|
|
<div> |
|
|
|
|
<el-form inline :model="searchForm" class="-mb-15px" label-width="0"> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select v-model="searchForm.changeType" placeholder="变动类型" clearable filterable> |
|
|
|
|
<el-option label="入库" :value="1" /> |
|
|
|
|
<el-option label="出库" :value="2" /> |
|
|
|
|
</el-select> |
|
|
|
|
</el-form-item> |
|
|
|
|
<el-form-item> |
|
|
|
|
<el-select |
|
|
|
|
v-model="searchForm.productId" |
|
|
|
@ -53,13 +59,13 @@ |
|
|
|
|
<el-table-column type="index" width="50px" /> |
|
|
|
|
<el-table-column prop="productName" label="产品名称" /> |
|
|
|
|
<el-table-column prop="specsName" label="规格" /> |
|
|
|
|
<el-table-column label="变动类型"> |
|
|
|
|
<el-table-column label="变动类型" width="90px"> |
|
|
|
|
<template #default="{ row }"> |
|
|
|
|
{{ ['', '入库', '出库'][row.changeType] }} |
|
|
|
|
</template> |
|
|
|
|
</el-table-column> |
|
|
|
|
<el-table-column prop="num" label="数量" /> |
|
|
|
|
<!-- <el-table-column prop="money" label="金额" /> --> |
|
|
|
|
<el-table-column prop="num" label="变动数量" width="90px" /> |
|
|
|
|
<el-table-column prop="batchNo" label="批次号" /> |
|
|
|
|
<el-table-column prop="changeTime" label="变动时间" :formatter="dateFormatter" /> |
|
|
|
|
<el-table-column prop="changeUserName" label="变动人员" /> |
|
|
|
|
<el-table-column prop="warehouseName" label="所属仓库" /> |
|
|
|
@ -92,6 +98,7 @@ const searchForm = ref({ |
|
|
|
|
pproductId: undefined, |
|
|
|
|
specsId: undefined, |
|
|
|
|
warehouseId: undefined, |
|
|
|
|
changeType: undefined, |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 20 |
|
|
|
|
}) |
|
|
|
@ -111,6 +118,7 @@ function resetQuery() { |
|
|
|
|
productId: undefined, |
|
|
|
|
specsId: undefined, |
|
|
|
|
warehouseId: undefined, |
|
|
|
|
changeType: undefined, |
|
|
|
|
pageNo: 1, |
|
|
|
|
pageSize: 20 |
|
|
|
|
} |
|
|
|
|