| | |
| | | import {ElMessageBox } from "element-plus"; |
| | | import {productRecordList} from "@/api/procurementManagement/procurementInvoiceLedger.js"; |
| | | import { |
| | | invoiceList |
| | | invoiceListPage |
| | | } from "@/api/procurementManagement/procurementInvoiceLedger.js"; |
| | | const { proxy } = getCurrentInstance() |
| | | const tableData = ref([]) |
| | |
| | | page.current = 1 |
| | | getList() |
| | | } |
| | | const paginationChange = ({ current, limit }) => { |
| | | page.current = current; |
| | | page.size = limit; |
| | | const paginationChange = (obj) => { |
| | | page.current = obj.page; |
| | | page.size = obj.limit; |
| | | getList() |
| | | } |
| | | const getList = () => { |
| | | tableLoading.value = true |
| | | invoiceList({ ...searchForm.value, ...page }).then(res => { |
| | | invoiceListPage({ ...searchForm.value, ...page }).then(res => { |
| | | tableLoading.value = false |
| | | tableData.value = res.rows |
| | | tableData.value = res.records |
| | | tableData.value.map(item => { |
| | | item.children = [] |
| | | }) |