4243f25a01f4e79b3f83218dfcbe94d9befee43d..9a960facf1f7e3a886e9184b7ae7a0a64974505f
6 天以前 gaoluyang
设备台账添加合计
9a960f 对比 | 目录
6 天以前 gaoluyang
设备台账添加合计
135d56 对比 | 目录
6 天以前 gaoluyang
项目利润添加合计
7470fb 对比 | 目录
已修改3个文件
30 ■■■■■ 文件已修改
src/views/equipmentManagement/ledger/index.vue 17 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/reportAnalysis/projectProfit/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
vite.config.js 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/equipmentManagement/ledger/index.vue
@@ -76,6 +76,8 @@
          size: pagination.pageSize,
          total: pagination.total,
        }"
        :isShowSummary="true"
        :summaryMethod="summaryMethod"
        @selection-change="handleSelectionChange"
        @pagination="changePage"
      >
@@ -103,6 +105,7 @@
import dayjs from "dayjs";
import QRCode from "qrcode";
import { ref } from "vue";
import { summarizeTable } from "@/utils/summarizeTable";
defineOptions({
  name: "设备台账",
@@ -232,6 +235,20 @@
    pagination.pageSize = limit;
  onCurrentChange(page);
};
// 合计方法
const summaryMethod = (param) => {
  return summarizeTable(
    param,
    ['number', 'taxIncludingPriceTotal', 'unTaxIncludingPriceTotal', 'taxIncludingPriceUnit'],
    {
      number: { noDecimal: true },
      taxIncludingPriceTotal: { decimalPlaces: 2 },
      unTaxIncludingPriceTotal: { decimalPlaces: 2 }
    }
  );
};
const deleteRow = (id) => {
  ElMessageBox.confirm("此操作将永久删除该文件, 是否继续?", "提示", {
    confirmButtonText: "确定",
src/views/reportAnalysis/projectProfit/index.vue
@@ -20,6 +20,8 @@
          size: pagination.pageSize,
          total: pagination.total,
        }"
        :isShowSummary="true"
        :summaryMethod="summaryMethod"
        @pagination="changePage"
      ></PIMTable>
    </div>
@@ -30,6 +32,7 @@
import { usePaginationApi } from "@/hooks/usePaginationApi";
import { getPurchaseList } from "@/api/procurementManagement/projectProfit";
import { onMounted } from "vue";
import { summarizeTable } from "@/utils/summarizeTable";
defineOptions({
  name: "项目利润",
@@ -98,6 +101,14 @@
  onCurrentChange(page);
};
// 合计方法
const summaryMethod = (param) => {
  return summarizeTable(
    param,
    ['contractAmount', 'purchaseAmount', 'balance', 'balanceAmount', 'balanceRatio'],
  );
};
onMounted(() => {
  getTableData();
});
vite.config.js
@@ -8,7 +8,7 @@
  const { VITE_APP_ENV } = env;
  const baseUrl =
    VITE_APP_ENV == "development"
      ? "http://localhost:9036" // 开发环境后端接口
      ? "http://114.132.189.42:7003" // 开发环境后端接口
      : "http://114.132.189.42:7003"; // 生产环境后端接口
  return {