张诺
10 小时以前 41a639a4a4b6fbf35db7903b5ee3c068c8644430
src/views/salesManagement/invoiceRegistration/index.vue
@@ -452,17 +452,17 @@
const formattedNumber = (row, column, cellValue) => {
   if (cellValue == 0) {
      return parseFloat(cellValue).toFixed(2);
      return parseFloat(cellValue).toFixed(3);
   }
   if (cellValue) {
      return parseFloat(cellValue).toFixed(2);
      return parseFloat(cellValue).toFixed(3);
   } else {
      return cellValue;
   }
};
const formattedInputNumber = (value) => {
   return value ? parseFloat(value).toFixed(2) : 0;
   return value ? parseFloat(value).toFixed(3) : 0;
};
// 判断是否可以开票(基于选中的台账数据)
@@ -539,7 +539,11 @@
      "contractAmount",
      "invoiceTotal",
      "noInvoiceAmountTotal",
   ]);
   ], {
      contractAmount: { decimalPlaces: 3 },
      invoiceTotal: { decimalPlaces: 3 },
      noInvoiceAmountTotal: { decimalPlaces: 3 },
   });
};
// 子表合计方法
const summarizeChildrenTable = (param) => {
@@ -553,7 +557,17 @@
      "noInvoiceNum",
      "noInvoiceAmount",
      "currentInvoiceNum",
   ]);
   ], {
      taxInclusiveUnitPrice: { decimalPlaces: 3 },
      taxInclusiveTotalPrice: { decimalPlaces: 3 },
      taxExclusiveTotalPrice: { decimalPlaces: 3 },
      invoiceNum: { decimalPlaces: 3 },
      invoiceAmount: { decimalPlaces: 3 },
      currentInvoiceAmount: { decimalPlaces: 3 },
      noInvoiceNum: { decimalPlaces: 3 },
      noInvoiceAmount: { decimalPlaces: 3 },
      currentInvoiceNum: { decimalPlaces: 3 },
   });
};
// 打开弹框
const openForm = () => {
@@ -752,7 +766,7 @@
   // 计算本次开票金额
   row.currentInvoiceAmount = (
      row.currentInvoiceNum * row.taxInclusiveUnitPrice
   ).toFixed(2);
   ).toFixed(3);
   // 计算未开票数
   row.noInvoiceNum = (row.originalNoInvoiceNum - row.currentInvoiceNum).toFixed(
      2
@@ -760,7 +774,7 @@
   // 计算未开票金额
   row.noInvoiceAmount = (
      row.tempnoInvoiceAmount - row.currentInvoiceAmount
   ).toFixed(2);
   ).toFixed(3);
};
// 本次开票金额失焦操作
const invoiceAmountBlur = (row) => {
@@ -775,7 +789,7 @@
   // 计算本次开票数
   row.currentInvoiceNum = (
      row.currentInvoiceAmount / row.taxInclusiveUnitPrice
   ).toFixed(2);
   ).toFixed(3);
   console.log("row.currentInvoiceNum ", row.currentInvoiceNum);
   console.log(" row.originalNoInvoiceNum  ", row.originalNoInvoiceNum);
   // 计算未开票数
@@ -785,7 +799,7 @@
   // 计算未开票金额
   row.noInvoiceAmount = (
      row.tempnoInvoiceAmount - row.currentInvoiceAmount
   ).toFixed(2);
   ).toFixed(3);
};
onMounted(() => {