From 8064a77af2faf5bf080be0c4347a3a975225453b Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 14 七月 2026 15:38:12 +0800
Subject: [PATCH] 银川 1.物料管理页面批次属性功能联调 2.库存现有量添加自定义出库入库功能
---
src/views/wls/materialstock/index.vue | 24 ++++++++++++++++++++++++
1 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/src/views/wls/materialstock/index.vue b/src/views/wls/materialstock/index.vue
index a9353f0..3ae7731 100644
--- a/src/views/wls/materialstock/index.vue
+++ b/src/views/wls/materialstock/index.vue
@@ -19,11 +19,17 @@
import { MdItemTypeTree } from '#/views/mes/md/item/type/components';
import { WmBatchDetail } from '#/views/wls/batch/components';
import AreaForm from '#/views/wls/warehouse/area/modules/form.vue';
+import { WmStockAdjustModal } from './components';
import { useGridColumns, useGridFormSchema } from './data';
const [AreaModal, areaModalApi] = useVbenModal({
connectedComponent: AreaForm,
+ destroyOnClose: true,
+});
+
+const [StockAdjustModal, stockAdjustModalApi] = useVbenModal({
+ connectedComponent: WmStockAdjustModal,
destroyOnClose: true,
});
@@ -56,6 +62,16 @@
return;
}
areaModalApi.setData({ formType: 'detail', id: row.areaId }).open();
+}
+
+/** 鎵撳紑搴撳瓨璋冩暣寮圭獥 */
+function handleOpenStockAdjust() {
+ stockAdjustModalApi.setData({}).open();
+}
+
+/** 搴撳瓨璋冩暣鎴愬姛鍥炶皟 */
+function handleStockAdjustSuccess() {
+ gridApi.query();
}
/** 鎵撳紑鎵规璇︽儏寮圭獥 */
@@ -122,6 +138,7 @@
<template>
<Page auto-content-height><AreaModal />
<WmBatchDetail ref="batchDetailRef" />
+ <StockAdjustModal @success="handleStockAdjustSuccess" />
<div class="flex h-full w-full">
<!-- 宸︿晶鐗╂枡鍒嗙被鏍� -->
@@ -135,6 +152,13 @@
<TableAction
:actions="[
{
+ label: '搴撳瓨璋冩暣',
+ type: 'default',
+ icon: ACTION_ICON.EDIT,
+ auth: ['mes:wm-material-stock:adjust'],
+ onClick: handleOpenStockAdjust,
+ },
+ {
label: $t('ui.actionTitle.export'),
type: 'primary',
icon: ACTION_ICON.DOWNLOAD,
--
Gitblit v1.9.3