chenrui
4 天以前 ece2dfeb926d728b10db38038e4d12e9e9851c24
src/views/procurementManagement/procurementLedger/index.vue
@@ -280,7 +280,7 @@
  addOrEditPurchase,
  delPurchase,
  getSalesNo,
  purchaseList,
  purchaseListPage,
  productList, getPurchaseById, getOptions
} from "@/api/procurementManagement/procurementLedger.js";
const { proxy } = getCurrentInstance()
@@ -384,16 +384,16 @@
    futureTickets: { noDecimal: true }, // 不保留小数
  });
};
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
  purchaseList({...searchForm.value, ...page}).then(res => {
  purchaseListPage({...searchForm.value, ...page}).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records
    tableData.value.map(item => {
      item.children = []
    })