云
2026-09-29 e1869c67a48da088650b0a1238ff718e5fc4138c
src/views/procurementManagement/procurementLedger/index.vue
@@ -104,18 +104,21 @@
                               type="index"
                               width="60" />
              <el-table-column label="产品大类"
                               prop="productCategory" />
                               prop="productCategory"
                               :formatter="emptySlash" />
              <el-table-column label="规格型号"
                               prop="specificationModel" />
                               prop="specificationModel"
                               :formatter="emptySlash" />
              <el-table-column label="单位"
                               prop="unit" />
                               prop="unit"
                               :formatter="emptySlash" />
              <el-table-column label="入库审核状态"
                               prop="stockInApprovalStatus"
                               width="120">
                <template #default="scope">
                  <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)"
                          size="small">
                    {{ scope.row.stockInApprovalStatus || '--' }}
                    {{ scope.row.stockInApprovalStatus || '/' }}
                  </el-tag>
                </template>
              </el-table-column>
@@ -148,19 +151,23 @@
        <el-table-column label="采购合同号"
                         prop="purchaseContractNumber"
                         width="160"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="销售合同号"
                         prop="salesContractNo"
                         width="160"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="供应商名称"
                         prop="supplierName"
                         width="160"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="项目名称"
                         prop="projectName"
                         width="320"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="审批状态"
                         prop="approvalStatus"
                         width="100"
@@ -168,7 +175,7 @@
          <template #default="scope">
            <el-tag :type="getApprovalStatusType(scope.row.approvalStatus)"
                    size="small">
              {{ approvalStatusText[scope.row.approvalStatus] || '未知状态' }}
              {{ approvalStatusText[scope.row.approvalStatus] || '/' }}
            </el-tag>
          </template>
        </el-table-column>
@@ -179,18 +186,20 @@
          <template #default="scope">
            <el-tag :type="getStockInStatusType(scope.row.stockInStatus)"
                    size="small">
              {{ scope.row.stockInStatus || '--' }}
              {{ scope.row.stockInStatus || '/' }}
            </el-tag>
          </template>
        </el-table-column>
        <el-table-column label="签订日期"
                         prop="executionDate"
                         width="100"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="付款方式"
                         width="100"
                         prop="paymentMethod"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="合同金额(元)"
                         prop="contractAmount"
                         width="200"
@@ -204,15 +213,18 @@
        <el-table-column label="录入人"
                         prop="recorderName"
                         width="120"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="录入日期"
                         prop="entryDate"
                         width="100"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column label="备注"
                         prop="remarks"
                         width="200"
                         show-overflow-tooltip />
                         show-overflow-tooltip
                         :formatter="emptySlash" />
        <el-table-column fixed="right"
                         label="操作"
                         width="120"
@@ -411,12 +423,15 @@
                           type="index"
                           width="60" />
          <el-table-column label="产品大类"
                           prop="productCategory" />
                           prop="productCategory"
                           :formatter="emptySlash" />
          <el-table-column label="规格型号"
                           prop="specificationModel" />
                           prop="specificationModel"
                           :formatter="emptySlash" />
          <el-table-column label="单位"
                           prop="unit"
                           width="70" />
                           width="70"
                           :formatter="emptySlash" />
          <el-table-column label="数量"
                           prop="quantity"
                           width="70" />
@@ -454,7 +469,7 @@
            <template #default="scope">
              <el-tag :type="getStockInApprovalStatusType(scope.row.stockInApprovalStatus)"
                      size="small">
                {{ scope.row.stockInApprovalStatus || '--' }}
                {{ scope.row.stockInApprovalStatus || '/' }}
              </el-tag>
            </template>
          </el-table-column>
@@ -1088,6 +1103,11 @@
  const formattedNumber = (row, column, cellValue) => {
    return parseFloat(cellValue).toFixed(2);
  };
  // 空字段统一显示 "/"
  const emptySlash = (row, column, cellValue) =>
    cellValue === null || cellValue === undefined || cellValue === ""
      ? "/"
      : cellValue;
  // 查询列表
  /** 搜索按钮操作 */
  const handleQuery = () => {
@@ -1275,10 +1295,10 @@
  };
  const formatMoney = value => {
    if (value === null || value === undefined || value === "") {
      return "--";
      return "/";
    }
    const num = Number(value);
    return Number.isFinite(num) ? num.toFixed(2) : "--";
    return Number.isFinite(num) ? num.toFixed(2) : "/";
  };
  // 子表合计方法
  const summarizeProTable = param => {