chenrui
2 天以前 7b826779dd70fcfeb956030fdf971552ba58337d
付款流水功能开发
已修改1个文件
已添加2个文件
196 ■■■■■ 文件已修改
src/api/procurementManagement/paymentEntry.js 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/procurementManagement/paymentHistory/index.vue 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/salesManagement/receiptPaymentHistory/index.vue 93 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/procurementManagement/paymentEntry.js
@@ -61,4 +61,12 @@
        method: "get",
        params: query
    })
}
}
// åˆ†é¡µæŸ¥è¯¢
export function paymentHistoryList(query) {
    return request({
        url: '/purchase/paymentRegistration/paymentHistoryList',
        method: 'get',
        params: query
    })
}
src/views/procurementManagement/paymentHistory/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,93 @@
<template>
  <div class="app-container">
    <div class="search_form">
      <div>
        <span class="search_title">供应商名称:</span>
        <el-input v-model="searchForm.searchText" style="width: 240px" placeholder="输入供应商名称搜索"
          @change="handleQuery" clearable :prefix-icon="Search" />
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
      </div>
    </div>
    <div class="table_list">
      <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
        :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
        :total="total"></PIMTable>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
  paymentHistoryList
} from "@/api/procurementManagement/paymentEntry.js";
const { proxy } = getCurrentInstance()
const tableColumn = ref([
  {
    label: '付款日期',
    prop: 'paymentDate',
  },
  {
    label: '供应商名称',
    prop: 'supplierName',
  },
  {
    label: '付款金额',
    prop: 'currentPaymentAmount',
  },
  {
    label: '付款方式',
    prop: 'paymentMethod'
  },
  {
    label: '登记人',
    prop: 'registrant'
  },
  {
    label: '登记日期',
    prop: 'registrationtDate'
  }
])
const tableData = ref([])
const selectedRows = ref([])
const tableLoading = ref(false)
const page = reactive({
  current: 1,
  size: 10,
})
const total = ref(0)
const data = reactive({
  searchForm: {
    searchText: '',
  },
})
const { searchForm } = toRefs(data)
// æŸ¥è¯¢åˆ—表
/** æœç´¢æŒ‰é’®æ“ä½œ */
const handleQuery = () => {
  page.current = 1
  getList()
}
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
  getList()
}
const getList = () => {
  tableLoading.value = true
  paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    total.value = res.total
  })
}
// è¡¨æ ¼é€‰æ‹©æ•°æ®
const handleSelectionChange = (selection) => {
  selectedRows.value = selection
}
getList()
</script>
<style scoped lang="scss"></style>
src/views/salesManagement/receiptPaymentHistory/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,93 @@
<template>
  <div class="app-container">
    <div class="search_form">
      <div>
        <span class="search_title">供应商名称:</span>
        <el-input v-model="searchForm.searchText" style="width: 240px" placeholder="输入供应商名称搜索"
                  @change="handleQuery" clearable :prefix-icon="Search" />
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
      </div>
    </div>
    <div class="table_list">
      <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
                :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
                :total="total"></PIMTable>
    </div>
  </div>
</template>
<script setup>
import { ref } from 'vue'
import { Search } from "@element-plus/icons-vue";
import {
  paymentHistoryList
} from "@/api/procurementManagement/paymentEntry.js";
const { proxy } = getCurrentInstance()
const tableColumn = ref([
  {
    label: '回款日期',
    prop: 'paymentDate',
  },
  {
    label: '客户名称',
    prop: 'supplierName',
  },
  {
    label: '回款金额',
    prop: 'currentPaymentAmount',
  },
  {
    label: '回款方式',
    prop: 'paymentMethod'
  },
  {
    label: '登记人',
    prop: 'registrant'
  },
  {
    label: '登记日期',
    prop: 'registrationtDate'
  }
])
const tableData = ref([])
const selectedRows = ref([])
const tableLoading = ref(false)
const page = reactive({
  current: 1,
  size: 10,
})
const total = ref(0)
const data = reactive({
  searchForm: {
    searchText: '',
  },
})
const { searchForm } = toRefs(data)
// æŸ¥è¯¢åˆ—表
/** æœç´¢æŒ‰é’®æ“ä½œ */
const handleQuery = () => {
  page.current = 1
  getList()
}
const pagination = ({ current, limit }) => {
  page.current = current;
  page.size = limit;
  getList()
}
const getList = () => {
  tableLoading.value = true
  paymentHistoryList({ ...searchForm.value, ...page }).then(res => {
    tableLoading.value = false
    tableData.value = res.rows
    total.value = res.total
  })
}
// è¡¨æ ¼é€‰æ‹©æ•°æ®
const handleSelectionChange = (selection) => {
  selectedRows.value = selection
}
getList()
</script>
<style scoped lang="scss"></style>