zhangwencui
2026-06-09 f4c73e3d36ff577aed91bed9bcd635c9eb6dcaa6
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)">解冻</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 = () => {