From f4c73e3d36ff577aed91bed9bcd635c9eb6dcaa6 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期二, 09 六月 2026 16:38:11 +0800
Subject: [PATCH] 增加废品库存从销售到入库流程

---
 src/views/inventoryManagement/wasteStockManagement/WasteBatchNoQtyDetail.vue |   51 ++++-----------------------------------------------
 1 files changed, 4 insertions(+), 47 deletions(-)

diff --git a/src/views/inventoryManagement/wasteStockManagement/WasteBatchNoQtyDetail.vue b/src/views/inventoryManagement/wasteStockManagement/WasteBatchNoQtyDetail.vue
index b3502b2..f325dac 100644
--- a/src/views/inventoryManagement/wasteStockManagement/WasteBatchNoQtyDetail.vue
+++ b/src/views/inventoryManagement/wasteStockManagement/WasteBatchNoQtyDetail.vue
@@ -28,7 +28,7 @@
           <el-table-column label="鏉ユ簮"
                            show-overflow-tooltip>
             <template #default="scope">
-              {{ scope.row.wasteSourceText || scope.row.qualifiedSourceText || scope.row.unQualifiedSourceText || "--" }}
+              {{ scope.row.sourceText || "--" }}
             </template>
           </el-table-column>
           <el-table-column label="鍗曚綅"
@@ -40,43 +40,12 @@
           <el-table-column label="搴撳瓨鏁伴噺"
                            prop="qualitity"
                            show-overflow-tooltip />
-          <el-table-column label="鍐荤粨鏁伴噺"
-                           prop="lockedQuantity"
-                           show-overflow-tooltip />
-          <el-table-column label="鍙敤鏁伴噺"
-                           prop="unLockedQuantity"
-                           show-overflow-tooltip />
           <el-table-column label="澶囨敞"
                            prop="remark"
                            show-overflow-tooltip />
           <el-table-column label="鏈�杩戞洿鏂版椂闂�"
                            prop="updateTime"
                            show-overflow-tooltip />
-          <el-table-column fixed="right"
-                           label="鎿嶄綔"
-                           min-width="180"
-                           align="center">
-            <template #default="scope">
-              <el-button link
-                         type="primary"
-                         @click="handleSubtract(scope.row)"
-                         :disabled="
-                  (scope.row.unLockedQuantity || 0) <= 0
-                ">棰嗙敤</el-button>
-              <el-button link
-                         type="primary"
-                         v-if="
-                  (scope.row.unLockedQuantity || 0) > 0
-                "
-                         @click="handleFrozen(scope.row)">鍐荤粨</el-button>
-              <el-button link
-                         type="primary"
-                         v-if="
-                  (scope.row.lockedQuantity || 0) > 0
-                "
-                         @click="handleThaw(scope.row)">瑙e喕</el-button>
-            </template>
-          </el-table-column>
         </el-table>
       </div>
       <pagination v-show="total > 0"
@@ -92,7 +61,7 @@
 <script setup>
   import pagination from "@/components/PIMTable/Pagination.vue";
   import { computed, reactive, ref, watch, onMounted } from "vue";
-  import { getStockInventoryBatchNoQty } from "@/api/inventoryManagement/stockInventory.js";
+  import { getWasteBatchNoQty } from "@/api/inventoryManagement/stockUninventory.js";
   import { getManufacturerOptions } from "@/api/inspectionManagement/manufacturerManageFile.js";
 
   const props = defineProps({
@@ -106,7 +75,7 @@
     },
   });
 
-  const emit = defineEmits(["update:visible", "subtract", "frozen", "thaw"]);
+  const emit = defineEmits(["update:visible"]);
 
   const isShow = computed({
     get() {
@@ -151,7 +120,7 @@
     }
 
     tableLoading.value = true;
-    getStockInventoryBatchNoQty({
+    getWasteBatchNoQty({
       current: page.current,
       size: page.size,
       productId: props.record.productId,
@@ -171,18 +140,6 @@
     page.current = obj.page;
     page.size = obj.limit;
     getList();
-  };
-
-  const handleSubtract = row => {
-    emit("subtract", row);
-  };
-
-  const handleFrozen = row => {
-    emit("frozen", row);
-  };
-
-  const handleThaw = row => {
-    emit("thaw", row);
   };
 
   const closeModal = () => {

--
Gitblit v1.9.3