From fe3ddeab0d00f7afe62e3cff093df605857288b9 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期四, 29 十月 2026 17:22:43 +0800
Subject: [PATCH] refactor(wls): 替换旧组件引用并优化批次选择逻辑
---
src/views/wls/materialstock/components/select-dialog.vue | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/src/views/wls/materialstock/components/select-dialog.vue b/src/views/wls/materialstock/components/select-dialog.vue
index cc5e91c..9ad9516 100644
--- a/src/views/wls/materialstock/components/select-dialog.vue
+++ b/src/views/wls/materialstock/components/select-dialog.vue
@@ -45,18 +45,18 @@
/** 褰撳墠 props 鏄惁甯﹂杩囨护 */
const showAlert = computed(
() =>
- props.batchId !== null ||
- props.warehouseId !== null ||
+ props.batchId != null ||
+ props.warehouseId != null ||
props.virtualFilter === 'only',
);
/** 棰勮繃婊ゆ彁绀烘枃瀛� */
const alertTitle = computed(() => {
const parts: string[] = [];
- if (props.batchId !== null) {
+ if (props.batchId != null) {
parts.push('鎵规');
}
- if (props.warehouseId !== null) {
+ if (props.warehouseId != null) {
parts.push('浠撳簱');
}
if (props.virtualFilter === 'only') {
@@ -161,7 +161,8 @@
// 榛樿鏌ユ湭鍐荤粨
frozen: false,
itemTypeId: searchItemTypeId.value,
- itemId: props.mdmItemId,
+ itemId: props.itemId,
+ mdmItemId: props.mdmItemId,
warehouseId: formValues.warehouseId ?? props.warehouseId,
virtualFilter:
props.virtualFilter === 'all' ? undefined : props.virtualFilter,
--
Gitblit v1.9.3