chenrui
2 天以前 ece2dfeb926d728b10db38038e4d12e9e9851c24
分页修改
已修改10个文件
122 ■■■■■ 文件已修改
src/api/procurementManagement/invoiceEntry.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/procurementManagement/paymentEntry.js 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/procurementManagement/procurementInvoiceLedger.js 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/procurementManagement/procurementLedger.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/invoiceEntry/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/paymentEntry/index.vue 25 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/paymentHistory/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/paymentLedger/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementInvoiceLedger/index.vue 14 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/procurementLedger/index.vue 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/procurementManagement/invoiceEntry.js
@@ -57,4 +57,13 @@
        method: 'delete',
        data: query
    })
}
}
// 主列表查询
export function gePurchaseListPage(query) {
    return request({
        url: '/purchase/ledger/listPage',
        method: 'get',
        params: query
    })
}
src/api/procurementManagement/paymentEntry.js
@@ -70,3 +70,12 @@
        params: query
    })
}
// 分页查询
export function paymentHistoryListPage(query) {
    return request({
        url: '/purchase/paymentRegistration/paymentHistoryListPage',
        method: 'get',
        params: query
    })
}
src/api/procurementManagement/procurementInvoiceLedger.js
@@ -48,4 +48,13 @@
        method: 'get',
        params: query
    })
}
}
// 查询列表
export function invoiceListPage(query) {
    return request({
        url: '/purchase/registration/listPage',
        method: 'get',
        params: query
    })
}
src/api/procurementManagement/procurementLedger.js
@@ -56,4 +56,12 @@
        method: 'get',
        params: query
    })
}
}
export function purchaseListPage(query) {
    return request({
        url: '/purchase/ledger/listPage',
        method: 'get',
        params: query
    })
}
src/views/procurementManagement/invoiceEntry/index.vue
@@ -172,7 +172,7 @@
import {
  addOrUpdateRegistration,
  delRegistration,
  gePurchaseList,
  gePurchaseListPage,
  getInfo,
  getProduct,
  getPurchaseNoById,
@@ -213,16 +213,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
  gePurchaseList({ ...searchForm.value, ...page }).then(res => {
  gePurchaseListPage({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records;
    tableData.value.map(item => {
      item.children = []
    })
src/views/procurementManagement/paymentEntry/index.vue
@@ -101,27 +101,15 @@
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import { ElMessageBox } from "element-plus";
import { getInfo } from "@/api/login.js";
import useUserStore from "@/store/modules/user.js";
import {
  byPurchaseId,
  getPurchaseNo,
  paymentRegistrationAdd, paymentRegistrationDel,
  paymentRegistrationEdit,
  registrationInfo,
  registrationList,
  getTicketNo
} from "@/api/procurementManagement/paymentEntry.js";
import { invoiceList } from "@/api/procurementManagement/procurementInvoiceLedger.js"
import {invoiceListPage} from "@/api/procurementManagement/procurementInvoiceLedger.js"
const { proxy } = getCurrentInstance()
const taxRateSelection = [
  { value: '0', label: '0%' },
  { value: '3', label: '3%' },
  { value: '6', label: '6%' },
  { value: '9', label: '9%' },
  { value: '13', label: '13%' },
  { value: '17', label: '17%' },
]
const tableColumn = ref([
  {
    label: '采购合同号',
@@ -164,7 +152,6 @@
const tableData = ref([])
const selectedRows = ref([])
const tableLoading = ref(false)
const purchaseLedgerList = ref([])
const invoiceNumberList = ref([])
const userStore = useUserStore()
const page = reactive({
@@ -218,16 +205,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
  invoiceList({ ...searchForm.value, ...page }).then(res => {
  invoiceListPage({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records
    total.value = res.total
  })
}
src/views/procurementManagement/paymentHistory/index.vue
@@ -22,7 +22,7 @@
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
  paymentHistoryList
  paymentHistoryListPage
} from "@/api/procurementManagement/paymentEntry.js";
const { proxy } = getCurrentInstance()
const isShowSummarySon = ref(true);
@@ -76,16 +76,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
  paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
  paymentHistoryListPage({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    tableData.value = res.records
    total.value = res.total
  })
}
src/views/procurementManagement/paymentLedger/index.vue
@@ -198,9 +198,9 @@
  page.current = 1;
  getList();
};
const paginationSearch = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
const paginationSearch = ( obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList();
};
const getList = () => {
src/views/procurementManagement/procurementInvoiceLedger/index.vue
@@ -81,7 +81,7 @@
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([])
@@ -117,16 +117,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
  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 = []
    })
@@ -193,4 +193,4 @@
getList()
</script>
<style scoped lang="scss"></style>
<style scoped lang="scss"></style>
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 = []
    })