|
|
|
|
@ -11,16 +11,16 @@
|
|
|
|
|
<el-form-item label="库位编码" prop="locationCode">
|
|
|
|
|
<el-input v-model="queryParams.locationCode" placeholder="请输入库位编码" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料大类" prop="materialCategoryId">
|
|
|
|
|
<!-- <el-form-item label="物料大类" prop="materialCategoryId">
|
|
|
|
|
<el-select v-model="queryParams.materialCategoryId" placeholder="请选择物料大类" clearable>
|
|
|
|
|
<el-option
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in mategoryOptions"
|
|
|
|
|
:key="item.materialCategoryId"
|
|
|
|
|
:label="item.materialCategoryName"
|
|
|
|
|
:value="item.materialCategoryId"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form-item>-->
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<el-button type="primary" icon="Search" @click="handleQuery">搜索</el-button>
|
|
|
|
|
<el-button icon="Refresh" @click="resetQuery">重置</el-button>
|
|
|
|
|
@ -29,9 +29,9 @@
|
|
|
|
|
</el-card>
|
|
|
|
|
|
|
|
|
|
<el-card style="margin-top: 8px" shadow="never">
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="inventoryList"
|
|
|
|
|
<el-table
|
|
|
|
|
v-loading="loading"
|
|
|
|
|
:data="inventoryList"
|
|
|
|
|
@row-click="handleRowClick"
|
|
|
|
|
@current-change="handleCurrentChange"
|
|
|
|
|
ref="tableRef"
|
|
|
|
|
@ -57,12 +57,12 @@
|
|
|
|
|
<el-table-column label="仓库编码" align="center" prop="warehouseCode" />
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total > 0"
|
|
|
|
|
:total="total"
|
|
|
|
|
v-model:page="queryParams.pageNum"
|
|
|
|
|
v-model:limit="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
<pagination
|
|
|
|
|
v-show="total > 0"
|
|
|
|
|
:total="total"
|
|
|
|
|
v-model:page="queryParams.pageNum"
|
|
|
|
|
v-model:limit="queryParams.pageSize"
|
|
|
|
|
@pagination="getList"
|
|
|
|
|
/>
|
|
|
|
|
</el-card>
|
|
|
|
|
</div>
|
|
|
|
|
@ -80,7 +80,7 @@ const props = defineProps({
|
|
|
|
|
default: undefined
|
|
|
|
|
},
|
|
|
|
|
warehouseId: {
|
|
|
|
|
type: [String, Number],
|
|
|
|
|
type: [String, Number],
|
|
|
|
|
default: undefined
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
@ -123,7 +123,7 @@ const getList = async () => {
|
|
|
|
|
loading.value = true;
|
|
|
|
|
try {
|
|
|
|
|
const res = await listInventory(queryParams.value);
|
|
|
|
|
inventoryList.value = res.rows.filter(item =>
|
|
|
|
|
inventoryList.value = res.rows.filter(item =>
|
|
|
|
|
item.inventoryQty > 0 && // 只显示有库存的物料
|
|
|
|
|
(item.lockState === '0' || item.lockState === null || item.lockState === undefined || item.lockState === '') && // 允许未锁定或空值
|
|
|
|
|
item.inventoryStatus === '1' // 只显示正常状态的库存
|
|
|
|
|
@ -173,7 +173,7 @@ watch(
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
|
await getMaterialCategorySelect();
|
|
|
|
|
// await getMaterialCategorySelect();
|
|
|
|
|
await getList();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
@ -187,4 +187,4 @@ defineExpose({
|
|
|
|
|
.p-2 {
|
|
|
|
|
padding: 8px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
</style>
|
|
|
|
|
|