From 57ec2038f86f47a87db6b73c0c6eb27c1c25b08e Mon Sep 17 00:00:00 2001
From: hyingbo <1363390067@qq.com>
Date: 星期三, 06 八月 2025 14:16:00 +0800
Subject: [PATCH] 我的已办、仓库管理相关调整

---
 src/views/tms/WarehouseList.vue |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/views/tms/WarehouseList.vue b/src/views/tms/WarehouseList.vue
index 8d08ca8..9466732 100644
--- a/src/views/tms/WarehouseList.vue
+++ b/src/views/tms/WarehouseList.vue
@@ -267,6 +267,25 @@
       this.$bus.$off('getCurrSelected', this.handleGetCurrSelected);
     },
     methods: {
+      handleAdd: function () {
+        let nextSeq = 0;
+        // 瀹夊叏鐨勫啓娉�
+        if (this.dataSource && this.dataSource.length > 0) {
+          const lastItem = this.dataSource[this.dataSource.length - 1];
+          if (lastItem && lastItem.seq !== undefined) {
+            nextSeq = Number(lastItem.seq) + 1;
+          } else {
+            // 澶勭悊鏈�鍚庝竴涓厓绱犱笉瀛樺湪seq鐨勬儏鍐�
+            nextSeq = 0; // 鎴栧叾浠栭粯璁ゅ��
+          }
+        } else {
+          // 澶勭悊鏁扮粍涓虹┖鐨勬儏鍐�
+          nextSeq = 0; // 鎴栧叾浠栭粯璁ゅ��
+        }
+        this.$refs.modalForm.add(nextSeq);
+        this.$refs.modalForm.title = "鏂板";
+        this.$refs.modalForm.disableSubmit = false;
+      },
       handleStatus(record) {
         getAction(this.url.list, { parentId: record.id }).then((res) => {
           if (res.success) {

--
Gitblit v1.9.3