chenrui
2025-06-09 bf6d13fdf5ba7dd4dd2533e62f95f529b272a31e
src/views/salesManagement/invoiceRegistration/index.vue
@@ -140,7 +140,7 @@
// import {userListNoPage} from "@/api/system/user.js";
import {
  getSalesLedgerWithProducts,
  ledgerList,
  ledgerListPage,
  productList,
} from "@/api/salesManagement/salesLedger.js";
import {
@@ -153,7 +153,7 @@
const tableLoading = ref(false)
const page = reactive({
  current: 1,
  size: 10,
  size: 100,
})
const total = ref(0)
// 用户信息表单弹框数据
@@ -189,16 +189,16 @@
  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
  ledgerList({...searchForm.value, ...page}).then(res => {
  ledgerListPage({...searchForm.value, ...page}).then(res => {
    tableLoading.value = false
    tableData.value = res.rows;
    tableData.value = res.records;
    total.value = res.total
    expandedRowKeys.value = []
  })