From fe6ba6220f32276f147a16c41e7a69c2a18e5012 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期二, 22 九月 2026 11:21:58 +0800
Subject: [PATCH] feat(inventory): 优化库存管理批量详情页面功能

---
 src/views/procurementManagement/procurementLedger/index.vue |   78 --------------------------------------
 1 files changed, 1 insertions(+), 77 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index 7fc3509..25a190c 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -99,20 +99,8 @@
                                prop="specificationModel" />
               <el-table-column label="鍗曚綅"
                                prop="unit" />
-              <el-table-column label="鍏ュ簱瀹℃牳鐘舵��"
-                               prop="stockInApprovalStatus"
-                               width="120">
-                <template #default="scope">
-                  <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)"
-                          size="small">
-                    {{ scope.row.stockInApprovalStatus || '--' }}
-                  </el-tag>
-                </template>
-              </el-table-column>
               <el-table-column label="鏁伴噺"
                                prop="quantity" />
-              <el-table-column label="閿�鍞彂璐ф暟閲�"
-                               prop="shippedQuantity" />
               <el-table-column label="鍙敤鏁伴噺"
                                prop="availableQuality" />
               <el-table-column label="閫�璐ф暟閲�"
@@ -191,17 +179,6 @@
             <el-tag :type="getApprovalStatusType(scope.row.approvalStatus)"
                     size="small">
               {{ approvalStatusText[scope.row.approvalStatus] || '鏈煡鐘舵��' }}
-            </el-tag>
-          </template>
-        </el-table-column>
-        <el-table-column label="鍏ュ簱鐘舵��"
-                         prop="stockInStatus"
-                         width="100"
-                         show-overflow-tooltip>
-          <template #default="scope">
-            <el-tag :type="getStockInStatusType(scope.row.stockInStatus)"
-                    size="small">
-              {{ scope.row.stockInStatus || '--' }}
             </el-tag>
           </template>
         </el-table-column>
@@ -587,16 +564,6 @@
               </el-tag>
             </template>
           </el-table-column>
-          <el-table-column label="鍏ュ簱瀹℃牳鐘舵��"
-                           prop="stockInApprovalStatus"
-                           width="120">
-            <template #default="scope">
-              <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)"
-                      size="small">
-                {{ scope.row.stockInApprovalStatus || '--' }}
-              </el-tag>
-            </template>
-          </el-table-column>
           <el-table-column fixed="right"
                            label="鎿嶄綔"
                            min-width="60"
@@ -604,8 +571,7 @@
             <template #default="scope">
               <el-button link
                          type="primary"
-                         @click="openProductForm('edit', scope.row, scope.$index)"
-                         :disabled="scope.row.stockInApprovalStatus === '瀹屽叏鍏ュ簱'">缂栬緫
+                         @click="openProductForm('edit', scope.row, scope.$index)">缂栬緫
               </el-button>
             </template>
           </el-table-column>
@@ -917,26 +883,6 @@
       2: "warning", // 瀹℃壒涓� - 姗欒壊
       3: "success", // 瀹℃壒閫氳繃 - 缁胯壊
       4: "danger", // 瀹℃壒澶辫触 - 绾㈣壊
-    };
-    return typeMap[status] || "";
-  };
-
-  // 鑾峰彇鍏ュ簱鐘舵�佹爣绛剧被鍨�
-  const getStockInStatusType = status => {
-    const typeMap = {
-      寰呭叆搴�: "info", // 寰呭叆搴� - 鐏拌壊
-      鍏ュ簱涓�: "warning", // 鍏ュ簱涓� - 姗欒壊
-      瀹屽叏鍏ュ簱: "success", // 瀹屽叏鍏ュ簱 - 缁胯壊
-    };
-    return typeMap[status] || "";
-  };
-
-  // 鑾峰彇鍏ュ簱瀹℃牳鐘舵�佹爣绛剧被鍨�
-  const getStockInApprovalStatusType = status => {
-    const typeMap = {
-      寰呭叆搴�: "info", // 寰呭叆搴� - 鐏拌壊
-      鍏ュ簱涓�: "warning", // 鍏ュ簱涓� - 姗欒壊
-      瀹屽叏鍏ュ簱: "success", // 瀹屽叏鍏ュ簱 - 缁胯壊
     };
     return typeMap[status] || "";
   };
@@ -1447,14 +1393,6 @@
   };
   // 鎵撳紑寮规
   const openForm = async (type, row) => {
-    // 缂栬緫鏃舵鏌ュ叆搴撶姸鎬侊紝瀹屽叏鍏ュ簱鏃朵笉鑳界紪杈�
-    if (type === "edit" && row) {
-      if (row.stockInStatus === "瀹屽叏鍏ュ簱") {
-        proxy.$modal.msgWarning("瀹屽叏鍏ュ簱鐘舵�佺殑璁板綍涓嶈兘缂栬緫");
-        return;
-      }
-    }
-
     await getTemplateList();
     await userListNoPage().then(res => {
       userList.value = res.data;
@@ -1619,12 +1557,6 @@
   };
   // 鎵撳紑浜у搧寮规
   const openProductForm = async (type, row, index) => {
-    // 缂栬緫鏃舵鏌ヤ骇鍝佸叆搴撳鏍哥姸鎬侊紝瀹屽叏鍏ュ簱鏃朵笉鑳界紪杈�
-    if (type === "edit" && row && row.stockInApprovalStatus === "瀹屽叏鍏ュ簱") {
-      proxy.$modal.msgWarning("瀹屽叏鍏ュ簱鐘舵�佺殑浜у搧涓嶈兘缂栬緫");
-      return;
-    }
-
     productOperationType.value = type;
     productOperationIndex.value = index;
     productForm.value = {};
@@ -1809,14 +1741,6 @@
     }
     if (productSelectedRows.value.length === 0) {
       proxy.$modal.msgWarning("璇烽�夋嫨鏁版嵁");
-      return;
-    }
-    // 妫�鏌ラ�変腑鐨勪骇鍝佷腑鏄惁鏈夊畬鍏ㄥ叆搴撶殑
-    const hasFullyStocked = productSelectedRows.value.some(
-      row => row.stockInApprovalStatus === "瀹屽叏鍏ュ簱"
-    );
-    if (hasFullyStocked) {
-      proxy.$modal.msgWarning("閫変腑鐨勪骇鍝佷腑鍖呭惈瀹屽叏鍏ュ簱鐨勪骇鍝侊紝鏃犳硶鍒犻櫎");
       return;
     }
     if (operationType.value === "add") {

--
Gitblit v1.9.3