Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
5a1438c1
提交
5a1438c1
authored
9月 23, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加根据字段排序功能
上级
85256190
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
52 行增加
和
10 行删除
+52
-10
List.vue
src/modules/invoice/views/List.vue
+23
-5
List.vue
src/modules/payment/views/List.vue
+29
-5
没有找到文件。
src/modules/invoice/views/List.vue
浏览文件 @
5a1438c1
<
template
>
<div>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
>
<!-- 允许开具发票 -->
<template
v-slot:ticket_type=
"
{ params }">
<el-radio-group
v-model=
"params.can_add_invoice"
>
...
...
@@ -129,7 +129,8 @@ export default {
sales_rep_user_id
:
''
,
can_add_invoice
:
''
,
firstDate
:
''
,
lastDate
:
''
lastDate
:
''
,
sort
:
''
},
beforeRequest
:
this
.
beforeRequest
,
callback
(
data
)
{
...
...
@@ -193,7 +194,7 @@ export default {
{
label
:
'税额'
,
prop
:
'invoice_tax_rate_amount'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'不含税金额'
,
prop
:
'invoice_excluding_tax_amount'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'含税金额'
,
prop
:
'invoice_total_amount'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'缴费时间'
,
prop
:
'final_payment_time'
,
align
:
'center'
,
minWidth
:
'150px'
},
{
label
:
'缴费时间'
,
prop
:
'final_payment_time'
,
align
:
'center'
,
minWidth
:
'150px'
,
sortable
:
'custom'
},
{
label
:
'发票类型'
,
prop
:
'invoiceTypeViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'抬头类型'
,
prop
:
'taxpayeTypeViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'开票类型'
,
prop
:
'invoiceColorTypeViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
...
...
@@ -211,8 +212,14 @@ export default {
{
label
:
'收件人手机号'
,
prop
:
'recipient_mobile'
,
align
:
'center'
,
minWidth
:
'150px'
},
{
label
:
'邮箱地址'
,
prop
:
'recipient_email'
,
align
:
'center'
,
minWidth
:
'300px'
},
{
label
:
'票据跟进人'
,
prop
:
'sales_rep_user_id_name'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'发票申请日期'
,
prop
:
'invoice_application_time'
,
align
:
'center'
,
minWidth
:
'150px'
},
{
label
:
'开票时间'
,
prop
:
'invoice_issuing_time'
,
align
:
'center'
,
minWidth
:
'150px'
},
{
label
:
'发票申请日期'
,
prop
:
'invoice_application_time'
,
align
:
'center'
,
minWidth
:
'150px'
,
sortable
:
'custom'
},
{
label
:
'开票时间'
,
prop
:
'invoice_issuing_time'
,
align
:
'center'
,
minWidth
:
'150px'
,
sortable
:
'custom'
},
{
label
:
'发票状态'
,
prop
:
'invoiceStatusViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'票据领取状态'
,
...
...
@@ -342,6 +349,17 @@ export default {
return
parseInt
(
findItem
.
value
)
===
parseInt
(
item
)
})
return
found
?
found
.
label
:
item
},
// 根据首次缴费时间排序
sortChange
(
columns
)
{
console
.
log
(
columns
)
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
columns
.
prop
=
'-'
+
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
this
.
$refs
.
list
.
refetch
()
}
}
}
...
...
src/modules/payment/views/List.vue
浏览文件 @
5a1438c1
<
template
>
<app-card>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
@
sort-change=
"sortChange"
>
<!-- 允许开具发票 -->
<template
v-slot:can_add_invoice=
"
{ params }">
<el-radio-group
v-model=
"params.can_add_invoice"
>
...
...
@@ -161,7 +161,8 @@ export default {
first_payment_time_from
:
''
,
first_payment_time_to
:
''
,
final_payment_time_from
:
''
,
final_payment_time_to
:
''
final_payment_time_to
:
''
,
sort
:
''
},
beforeRequest
:
this
.
beforeRequest
},
...
...
@@ -263,8 +264,14 @@ export default {
{
label
:
'项目'
,
prop
:
'project_id_name'
,
align
:
'center'
,
minWidth
:
150
},
{
label
:
'支付状态'
,
prop
:
'payment_status_name'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'费用类型'
,
prop
:
'type_name'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'首次缴费时间'
,
prop
:
'first_payment_time'
,
align
:
'center'
,
minWidth
:
200
},
{
label
:
'末次缴费时间'
,
prop
:
'final_payment_time'
,
align
:
'center'
,
minWidth
:
200
},
{
label
:
'首次缴费时间'
,
prop
:
'first_payment_time'
,
align
:
'center'
,
minWidth
:
200
,
sortable
:
'custom'
},
{
label
:
'末次缴费时间'
,
prop
:
'final_payment_time'
,
align
:
'center'
,
minWidth
:
200
,
sortable
:
'custom'
},
{
label
:
'应缴金额'
,
prop
:
'bill_total'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'实缴金额'
,
prop
:
'amount_need_to_pay'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'手续费'
,
prop
:
'service_charge'
,
align
:
'center'
,
minWidth
:
100
},
...
...
@@ -289,7 +296,13 @@ export default {
{
label
:
'账号'
,
prop
:
'channel_account'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'开户行'
,
prop
:
'channel_bank_of_deposit'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'所属班次'
,
prop
:
'bill_customer_class'
,
align
:
'center'
,
minWidth
:
200
},
{
label
:
'开学时间'
,
prop
:
'bill_customer_class_start_time'
,
align
:
'center'
,
minWidth
:
200
},
{
label
:
'开学时间'
,
prop
:
'bill_customer_class_start_time'
,
align
:
'center'
,
minWidth
:
200
,
sortable
:
'custom'
},
{
label
:
'学制期限'
,
prop
:
'bill_customer_class_length_of_schooling'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'客户编号'
,
prop
:
'customer_id'
,
align
:
'center'
,
minWidth
:
300
},
{
...
...
@@ -511,6 +524,17 @@ export default {
const
params
=
queryString
.
stringify
(
this
.
tableOptions
.
remote
.
params
)
window
.
open
(
`/api/finance/v1/payments/download?
${
params
}
`
)
})
},
// 根据首次缴费时间排序
sortChange
(
columns
)
{
console
.
log
(
columns
)
if
(
columns
.
order
===
'ascending'
)
{
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
else
{
columns
.
prop
=
'-'
+
columns
.
prop
this
.
tableOptions
.
remote
.
params
.
sort
=
columns
.
prop
}
this
.
$refs
.
list
.
refetch
()
}
}
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论