|  |  | 
 |  |  |           size: pagination.pageSize, | 
 |  |  |           total: pagination.total, | 
 |  |  |         }" | 
 |  |  |         :isShowSummary="true" | 
 |  |  |         :summaryMethod="summaryMethod" | 
 |  |  |         @selection-change="handleSelectionChange" | 
 |  |  |         @pagination="changePage" | 
 |  |  |       > | 
 |  |  | 
 |  |  | import dayjs from "dayjs"; | 
 |  |  | import QRCode from "qrcode"; | 
 |  |  | import { ref } from "vue"; | 
 |  |  | import { summarizeTable } from "@/utils/summarizeTable"; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: "设备台账", | 
 |  |  | 
 |  |  |     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: "确定", | 
 
 |  |  | 
 |  |  |           size: pagination.pageSize, | 
 |  |  |           total: pagination.total, | 
 |  |  |         }" | 
 |  |  |         :isShowSummary="true" | 
 |  |  |         :summaryMethod="summaryMethod" | 
 |  |  |         @pagination="changePage" | 
 |  |  |       ></PIMTable> | 
 |  |  |     </div> | 
 |  |  | 
 |  |  | import { usePaginationApi } from "@/hooks/usePaginationApi"; | 
 |  |  | import { getPurchaseList } from "@/api/procurementManagement/projectProfit"; | 
 |  |  | import { onMounted } from "vue"; | 
 |  |  | import { summarizeTable } from "@/utils/summarizeTable"; | 
 |  |  |  | 
 |  |  | defineOptions({ | 
 |  |  |   name: "项目利润", | 
 |  |  | 
 |  |  |   onCurrentChange(page); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 合计方法 | 
 |  |  | const summaryMethod = (param) => { | 
 |  |  |   return summarizeTable( | 
 |  |  |     param, | 
 |  |  |     ['contractAmount', 'purchaseAmount', 'balance', 'balanceAmount', 'balanceRatio'], | 
 |  |  |   ); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | onMounted(() => { | 
 |  |  |   getTableData(); | 
 |  |  | }); | 
 
 |  |  | 
 |  |  |   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 {
 |