Compare commits
No commits in common. "923bebedf1a1c31bb74922bdfd159be2646f28c7" and "3730730f1ed9c938adf5d8de358f486e52eaac26" have entirely different histories.
923bebedf1
...
3730730f1e
|
@ -44,7 +44,6 @@ const daily = Mock.mock({
|
|||
})
|
||||
|
||||
export default [
|
||||
//应收管理列表
|
||||
{
|
||||
url: '/get-sdy-managment-list',
|
||||
method: 'get',
|
||||
|
@ -55,7 +54,6 @@ export default [
|
|||
}
|
||||
}
|
||||
},
|
||||
// 应收管理搜索
|
||||
{
|
||||
url: '/post-sdy-managment-find',
|
||||
method: 'post',
|
||||
|
@ -102,25 +100,6 @@ export default [
|
|||
}
|
||||
}
|
||||
},
|
||||
// 借款管理搜索
|
||||
{
|
||||
url: '/post-sdy-loan-find',
|
||||
method: 'post',
|
||||
response: (req) => {
|
||||
if (req.body.name !== '') {
|
||||
const arr = loans.list.filter(item => item.proposer.includes(req.body.name))
|
||||
return arr
|
||||
} else if (req.body.studentnumber !== '') {
|
||||
const studentnumber = Number(req.body.studentnumber)
|
||||
const arr = loans.list.filter(item => item.student === studentnumber)
|
||||
return arr
|
||||
}
|
||||
return {
|
||||
code: 200,
|
||||
data: arr
|
||||
}
|
||||
}
|
||||
},
|
||||
// 添加借款人
|
||||
{
|
||||
url: '/post-sdy-loan-add',
|
||||
|
@ -143,7 +122,6 @@ export default [
|
|||
}
|
||||
}
|
||||
},
|
||||
// 当日明细列表
|
||||
{
|
||||
url: '/post-sdy-daily-list',
|
||||
method: 'get',
|
||||
|
@ -154,5 +132,4 @@ export default [
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
]
|
914
package-lock.json
generated
914
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -12,10 +12,6 @@ export function APILoansList() {
|
|||
return request.get('/get-sdy-loan-list')
|
||||
}
|
||||
//查询贷款
|
||||
export function APILoansFind(data) {
|
||||
return request.post('/post-sdy-loan-find', data)
|
||||
}
|
||||
//添加贷款
|
||||
export function APILoansAdd(data) {
|
||||
return request.post('/post-sdy-loan-add', data)
|
||||
}
|
||||
|
|
|
@ -51,9 +51,6 @@
|
|||
<t-menu-item value="3-4" to="/daily">
|
||||
<span>收费日报</span>
|
||||
</t-menu-item>
|
||||
<t-menu-item value="3-5" to="/charge-schedule">
|
||||
<span>收费明细</span>
|
||||
</t-menu-item>
|
||||
</t-submenu>
|
||||
<t-submenu value="4" title="学生管理">
|
||||
<template #icon>
|
||||
|
|
|
@ -90,11 +90,6 @@
|
|||
</template>
|
||||
</t-table>
|
||||
</div>
|
||||
<div>
|
||||
<t-button style="margin-top: 1rem" type="primary" @click="handleExport"
|
||||
>导出excel表格</t-button
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
|
@ -104,7 +99,6 @@ import {
|
|||
APIReceivablesAdd
|
||||
} from '@/api/receivables-management/management'
|
||||
import { useRouter } from 'vue-router'
|
||||
import { ExcelUtils } from '@/utils/excel'
|
||||
const router = useRouter()
|
||||
//表单数据
|
||||
const formData = reactive({
|
||||
|
@ -271,31 +265,6 @@ const hreturn = row => {
|
|||
path: 'bill-bill'
|
||||
})
|
||||
}
|
||||
//导出excel表格
|
||||
const handleExport = () => {
|
||||
const title = '报表明细excel'
|
||||
const titleFile = '报表明细'
|
||||
const columns = [
|
||||
{ header: '姓名', key: '1', width: 20 },
|
||||
{ header: '学号', key: '2', width: 20 },
|
||||
{ header: '部门', key: '3', width: 20 },
|
||||
{ header: '专业', key: '4', width: 20 },
|
||||
{ header: '班级', key: '5', width: 20 },
|
||||
{ header: '是否缴费', key: '6', width: 20 }
|
||||
]
|
||||
const addRow = []
|
||||
tableData.value.forEach(item => {
|
||||
addRow.push({
|
||||
1: item.name,
|
||||
2: item.studentnumber,
|
||||
3: item.department,
|
||||
4: item.major,
|
||||
5: item.grade,
|
||||
6: item.tuition
|
||||
})
|
||||
})
|
||||
ExcelUtils(title, titleFile, columns, addRow)
|
||||
}
|
||||
onMounted(() => {
|
||||
ReceivablesList()
|
||||
})
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
<template>
|
||||
<div>1</div>
|
||||
</template>
|
||||
|
||||
<script setup></script>
|
||||
|
||||
<style lang="less" scoped></style>
|
|
@ -50,7 +50,7 @@
|
|||
:pagination="pagination"
|
||||
:show-header="true"
|
||||
cell-empty-content="-"
|
||||
max-height="550"
|
||||
resizable
|
||||
lazy-load
|
||||
:loading="loading"
|
||||
@row-click="handleRowClick"
|
||||
|
@ -124,8 +124,7 @@
|
|||
import { ref, onMounted } from 'vue'
|
||||
import {
|
||||
APILoansList,
|
||||
APILoansAdd,
|
||||
APILoansFind
|
||||
APILoansAdd
|
||||
} from '@/api/receivables-management/management'
|
||||
import * as echarts from 'echarts'
|
||||
// 表格数据
|
||||
|
@ -150,7 +149,6 @@ const columns = ref([
|
|||
//页码
|
||||
const pagination = ref({
|
||||
defaultCurrent: 1,
|
||||
current: 1,
|
||||
defaultPageSize: 10,
|
||||
total: 30
|
||||
})
|
||||
|
@ -176,8 +174,7 @@ const handleRowClick = e => {
|
|||
console.log(e)
|
||||
}
|
||||
//监听页码变化了
|
||||
const onPageChange = pageInfo => {
|
||||
pagination.value.current = pageInfo.current
|
||||
const onPageChange = () => {
|
||||
loading.value = true
|
||||
const timerId = setTimeout(() => {
|
||||
loading.value = false
|
||||
|
@ -189,33 +186,13 @@ const LoansList = async () => {
|
|||
const res = await APILoansList()
|
||||
data.value = res.data.list
|
||||
pagination.value.total = res.data.list.length
|
||||
pagination.value.current = 1
|
||||
}
|
||||
//表单重置
|
||||
const onReset = () => {
|
||||
loading.value = true
|
||||
LoansList()
|
||||
const timerId = setTimeout(() => {
|
||||
loading.value = false
|
||||
clearInterval(timerId)
|
||||
}, 300)
|
||||
}
|
||||
//表单提交
|
||||
const onSubmit = async () => {
|
||||
console.log('表单提交', formData.value)
|
||||
if (formData.value.name !== '') {
|
||||
const res = await APILoansFind(formData.value)
|
||||
data.value = res
|
||||
pagination.value.total = res.data.length
|
||||
pagination.value.current = 1
|
||||
}
|
||||
if (formData.value.studentnumber !== '') {
|
||||
const res = await APILoansFind(formData.value)
|
||||
data.value = res
|
||||
pagination.value.total = res.data.length
|
||||
pagination.value.current = 1
|
||||
}
|
||||
}
|
||||
const onSubmit = async () => {}
|
||||
//弹出框
|
||||
const onClick = context => {
|
||||
console.log('点击了确认按钮,弹出弹窗', context)
|
||||
|
|
|
@ -43,12 +43,6 @@ const ReceivablesManagement = [
|
|||
name: "Daily",
|
||||
component: () => import("@/pages/receivables-management/daily.vue"),
|
||||
meta: { title: "收费日报", },
|
||||
},
|
||||
{
|
||||
path: "/charge-schedule",
|
||||
name: "ChargeSchedule",
|
||||
component: () => import("@/pages/receivables-management/chargeSchedule.vue"),
|
||||
meta: { title: "收费明细", },
|
||||
}
|
||||
],
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue
Block a user