| | |
| | | method: "get", |
| | | params: query |
| | | }) |
| | | } |
| | | } |
| | | // å页æ¥è¯¢ |
| | | export function paymentHistoryList(query) { |
| | | return request({ |
| | | url: '/purchase/paymentRegistration/paymentHistoryList', |
| | | method: 'get', |
| | | params: query |
| | | }) |
| | | } |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <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> |