|  |  | 
 |  |  |       <div class="actions"> | 
 |  |  |         <div></div> | 
 |  |  |         <div> | 
 |  |  |           <el-button @click="handleExport" style="margin-right: 10px">导出</el-button> | 
 |  |  |           <el-button type="primary" @click="handleAdd('add')"> | 
 |  |  |             新增登记 | 
 |  |  |           </el-button> | 
 |  |  | <!--          <el-button @click="handleOut">导出</el-button>--> | 
 |  |  | <!--          <el-button type="danger" plain @click="handleDelete">删除</el-button>--> | 
 |  |  |         </div> | 
 |  |  |       </div> | 
 |  |  | 
 |  |  | <script setup> | 
 |  |  | import { usePaginationApi } from "@/hooks/usePaginationApi"; | 
 |  |  | import {delRegistration, gePurchaseListPage} from "@/api/procurementManagement/invoiceEntry.js"; | 
 |  |  | import { nextTick, onMounted, getCurrentInstance } from "vue"; | 
 |  |  | import { nextTick, onMounted, getCurrentInstance, ref } from "vue"; | 
 |  |  | import ExpandTable from "./components/ExpandTable.vue"; | 
 |  |  | import Modal from "./components/Modal.vue"; | 
 |  |  | import {ElMessageBox} from "element-plus"; | 
 |  |  | 
 |  |  |          proxy.$modal.msg("已取消"); | 
 |  |  |       }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 导出采购台账 | 
 |  |  | const handleExport = () => { | 
 |  |  |    ElMessageBox.confirm("选中的内容将被导出,是否确认导出?", "导出", { | 
 |  |  |       confirmButtonText: "确认", | 
 |  |  |       cancelButtonText: "取消", | 
 |  |  |       type: "warning", | 
 |  |  |    }) | 
 |  |  |       .then(() => { | 
 |  |  |          proxy.download("/purchase/ledger/exportOne", {}, "来票登记.xlsx"); | 
 |  |  |       }) | 
 |  |  |       .catch(() => { | 
 |  |  |          proxy.$modal.msg("已取消"); | 
 |  |  |       }); | 
 |  |  | }; | 
 |  |  |  | 
 |  |  | // 删除 | 
 |  |  | const handleDelete = () => { | 
 |  |  |    let ids = []; |