chenrui
3 天以前 5abe582142405569435c7cd0a479908aa5bff992
分页修改
已修改11个文件
109 ■■■■■ 文件已修改
src/api/basicData/product.js 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/salesManagement/receiptPayment.js 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/salesManagement/salesLedger.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/customerFile/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/product/index.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/basicData/supplierManage/index.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/invoiceLedger/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/invoiceRegistration/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/receiptPayment/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/receiptPaymentHistory/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/salesLedger/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/basicData/product.js
@@ -48,4 +48,11 @@
        method: 'get',
        params: query
    })
}
}
export function modelListPage(query) {
    return request({
        url: '/basic/product/modelListPage',
        method: 'get',
        params: query
    })
}
src/api/salesManagement/receiptPayment.js
@@ -55,7 +55,7 @@
    })
}
// 分页查询
// 询回款记录
export function receiptPaymentHistoryList(query) {
    return request({
        url: '/receiptPayment/receiptPaymentHistoryList',
@@ -63,3 +63,14 @@
        params: query
    })
}
/**
 * 查询回款记录分页查询
 */
export function receiptPaymentHistoryListPage(query) {
    return request({
        url: '/receiptPayment/receiptPaymentHistoryListPage',
        method: 'get',
        params: query
    })
}
src/api/salesManagement/salesLedger.js
@@ -91,3 +91,12 @@
        params: query
    })
}
// 分页查询
export function ledgerListPage(query) {
    return request({
        url: '/sales/ledger/listPage',
        method: 'get',
        params: query
    })
}
src/views/basicData/customerFile/index.vue
@@ -236,16 +236,16 @@
  page.current = 1
  getList()
}
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList()
}
const getList = () => {
  tableLoading.value = true
  listCustomer({...searchForm.value, ...page}).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records
    total.value = res.total
  })
}
src/views/basicData/product/index.vue
@@ -103,7 +103,7 @@
  addOrEditProduct,
  addOrEditProductModel,
  delProduct, delProductModel,
  modelList,
  modelListPage,
  productTreeList
} from "@/api/basicData/product.js";
const { proxy } = getCurrentInstance()
@@ -292,16 +292,22 @@
}
// 查询规格型号
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getModelList()
}
const getModelList = () => {
  tableLoading.value = true
  modelList({id: currentId.value}).then(res => {
  modelListPage({id: currentId.value,
                       current: page.current,
                       size: page.size,
                      }
            ).then(res => {
    console.log('res',res)
    tableData.value = res.records
    total.value = res.total
    tableLoading.value = false
    tableData.value = res
  })
}
// 删除规格型号
@@ -393,4 +399,4 @@
  font-size: 14px;
  padding-right: 8px;
}
</style>
</style>
src/views/basicData/supplierManage/index.vue
@@ -223,9 +223,9 @@
  page.current = 1
  getList()
}
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList()
}
const getList = () => {
@@ -233,7 +233,7 @@
  listSupplier({...searchForm.value, ...page}).then(res => {
    tableLoading.value = false
    tableData.value = res.data.records
    total.value = res.total
    total.value = res.data.total
  })
}
// 表格选择数据
src/views/salesManagement/invoiceLedger/index.vue
@@ -255,9 +255,9 @@
  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 = () => {
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 {
@@ -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 = []
  })
src/views/salesManagement/receiptPayment/index.vue
@@ -178,9 +178,9 @@
  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 = () => {
src/views/salesManagement/receiptPaymentHistory/index.vue
@@ -22,7 +22,7 @@
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
  receiptPaymentHistoryList
  receiptPaymentHistoryListPage
} from "@/api/salesManagement/receiptPayment.js";
const { proxy } = getCurrentInstance()
const tableColumn = ref([
@@ -89,16 +89,16 @@
  page.current = 1
  getList()
}
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList()
}
const getList = () => {
  tableLoading.value = true
  receiptPaymentHistoryList({ ...searchForm.value, ...page }).then(res => {
  receiptPaymentHistoryListPage({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records
    total.value = res.total
  })
}
src/views/salesManagement/salesLedger/index.vue
@@ -307,7 +307,7 @@
import useUserStore from '@/store/modules/user'
import {userListNoPage} from "@/api/system/user.js";
import {
  ledgerList,
  ledgerListPage,
  productList,
  customerList,
  addOrUpdateSalesLedger,
@@ -411,9 +411,9 @@
}
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
    tableData.value.map(item => {
      item.children = []
    })