zhangwencui
2026-05-29 befbda496fbf663c857e89f3daf3dc2dbcdcd624
src/views/procurementManagement/procurementLedger/index.vue
@@ -84,7 +84,7 @@
                show-summary
                :summary-method="summarizeMainTable"
                @expand-change="expandChange"
                height="calc(100vh - 21.5em)">
                height="calc(100vh - 25em)">
        <el-table-column align="center"
                         type="selection"
                         width="55" />
@@ -108,8 +108,8 @@
                               prop="quantity" />
              <el-table-column label="可用数量"
                               prop="availableQuality" />
              <el-table-column label="退货数量"
                               prop="returnQuality" />
              <!-- <el-table-column label="退货数量"
                               prop="returnQuality" /> -->
              <el-table-column label="入库状态"
                               width="100px"
                               align="center">
@@ -117,6 +117,16 @@
                  <el-tag :type="getProductStockStatusType(scope.row.productStockStatus)"
                          size="small">
                    {{ stockStatusText[scope.row.productStockStatus] || '未入库' }}
                  </el-tag>
                </template>
              </el-table-column>
              <el-table-column label="是否质检"
                               width="100px"
                               align="center">
                <template #default="scope">
                  <el-tag :type="getCheckedType(scope.row.isChecked)"
                          size="small">
                    {{ scope.row.isChecked ? '是' : '否' }}
                  </el-tag>
                </template>
              </el-table-column>
@@ -868,6 +878,14 @@
    };
    return typeMap[status] || "info";
  };
  // 获取是否质检标签类型
  const getCheckedType = status => {
    const typeMap = {
      0: "info",
      1: "success",
    };
    return typeMap[status] || "info";
  };
  const templateName = ref("");
  const filterInputValue = ref("");
@@ -1315,7 +1333,7 @@
  };
  // 表格选择数据
  const handleSelectionChange = selection => {
    selectedRows.value = selection;
    selectedRows.value = selection.filter(item => Array.isArray(item.children));
  };
  const productSelected = selectedRows => {
    productSelectedRows.value = selectedRows;
@@ -1787,7 +1805,9 @@
  const handleDelete = () => {
    let ids = [];
    if (selectedRows.value.length > 0) {
      ids = selectedRows.value.map(item => item.id);
      ids = selectedRows.value
        .filter(item => Array.isArray(item.children))
        .map(item => item.id);
    } else {
      proxy.$modal.msgWarning("请选择数据");
      return;
@@ -2013,7 +2033,8 @@
              canvas.width - horizontalPad * 2
            );
            const textBlockHeight = lines.length * lineHeight;
            canvas.height = padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
            canvas.height =
              padTop + QR_SIZE + gapAfterQr + textBlockHeight + bottomPad;
            ctx.fillStyle = "#ffffff";
            ctx.fillRect(0, 0, canvas.width, canvas.height);