From 7462fd192326d7cf3418b6185ca437b2667cbeab Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期二, 11 三月 2025 11:14:45 +0800
Subject: [PATCH] 批次字段增加

---
 src/views/components/ItemModal.vue |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/src/views/components/ItemModal.vue b/src/views/components/ItemModal.vue
index 1f59268..dfd423e 100644
--- a/src/views/components/ItemModal.vue
+++ b/src/views/components/ItemModal.vue
@@ -11,7 +11,7 @@
         <BasicForm @register="registerForm" :model="model" />
       </div> -->
     <div>
-      <BasicTable @register="registerTable">
+      <BasicTable @register="registerTable" @row-dbClick="rowDbClick">
         <!-- <template #toolbar>
                   <a-button type="primary" @click="handleCreate"> 鏂板鐩樼偣 </a-button>
                 </template> -->
@@ -27,7 +27,7 @@
   import { getItemListByPage } from '/@/api/tigerapi/wms/inventory';
   import { useI18n } from '/@/hooks/web/useI18n';
 
-  const { t } = useI18n('WMS.Count');
+  const { t } = useI18n();
   const schemas: FormSchema[] = [
     {
       field: 'ITEM_CODE',
@@ -116,6 +116,18 @@
   //   v && props.userData && nextTick(() => onDataReceive(props.userData));
   // }
 
+  function rowDbClick(record, index, event) {
+    try {
+      closeModal();
+      emit('success', {
+        isUpdate: unref(false),
+        values: { record, id: 0 },
+      });
+    } finally {
+      setModalProps({ confirmLoading: false });
+    }
+  }
+
   async function handleSubmit() {
     try {
       var values = '';

--
Gitblit v1.9.3