gaoluyang
2025-12-09 b02cd77eb78d973c1eb11ebf03d7d5d71b02aa65
src/views/procurementManagement/invoiceEntry/indexOld.vue
@@ -296,19 +296,19 @@
          <el-table-column label="录入日期" prop="createTime" width="120" />
          <el-table-column
            label="含税单价(元)"
            width="150"
            width="200"
            prop="taxInclusiveUnitPrice"
            :formatter="formattedNumber"
          />
          <el-table-column
            label="含税总价(元)"
            width="150"
            width="200"
            prop="taxInclusiveTotalPrice"
            :formatter="formattedNumber"
          />
          <el-table-column
            label="不含税总价(元)"
            width="150"
            width="200"
            prop="taxExclusiveTotalPrice"
            :formatter="formattedNumber"
          />
@@ -331,7 +331,7 @@
            :min="0"
            :step="0.1"
            :formatter="formattedNumber"
            width="170"
            width="200"
          >
            <template #default="scope">
              <el-input-number
@@ -476,7 +476,7 @@
    });
};
const formattedNumber = (row, column, cellValue) => {
  return parseFloat(cellValue).toFixed(2) ?? 0;
  return parseFloat(cellValue).toFixed(5) ?? 0;
};
// 表格选择数据
const handleSelectionChange = (selection) => {
@@ -687,7 +687,7 @@
    row.ticketsAmount = 0;
  }
  // 计算本次来票数
  row.ticketsNum = (row.ticketsAmount / row.taxInclusiveUnitPrice).toFixed(2);
  row.ticketsNum = (row.ticketsAmount / row.taxInclusiveUnitPrice).toFixed(5);
  // 计算未来票数
  row.futureTickets = row.tempFutureTickets - row.ticketsNum;
  // 计算未来票金额
@@ -714,7 +714,7 @@
      invoiceAmountTotal += item.ticketsAmount;
    }
  });
  form.value.invoiceAmount = invoiceAmountTotal.toFixed(2);
  form.value.invoiceAmount = invoiceAmountTotal.toFixed(5);
}
onMounted(() => {