Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
08224878
提交
08224878
authored
9月 16, 2021
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
style:样式修改
上级
6b7b4395
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
47 行增加
和
21 行删除
+47
-21
api.js
src/modules/invoice/api.js
+4
-0
List.vue
src/modules/invoice/views/List.vue
+25
-4
TicketForm.vue
src/modules/payment/components/TicketForm.vue
+7
-5
List.vue
src/modules/payment/views/List.vue
+11
-12
没有找到文件。
src/modules/invoice/api.js
浏览文件 @
08224878
...
...
@@ -26,3 +26,7 @@ export function deposit() {
export
function
downloadInvoices
(
params
)
{
return
httpRequest
.
get
(
'/api/finance/v1/invoices/download'
,
{
params
,
responseType
:
'blob'
})
}
// 确认销售领取
export
function
confirmReceive
(
data
)
{
return
httpRequest
.
post
(
'/api/finance/v1/invoices/confirm-receive'
,
data
)
}
src/modules/invoice/views/List.vue
浏览文件 @
08224878
...
...
@@ -43,8 +43,15 @@
</el-row>
<
template
v-slot:table-x=
"{ row }"
>
<router-link
target=
"_blank"
:to=
"
{ name: 'paymentView', params: { id: row.payment_id } }">
<el-button
type=
"
text
"
>
查看
</el-button>
<el-button
type=
"
primary
"
>
查看
</el-button>
</router-link>
<el-button
type=
"primary"
@
click=
"confirmReceived(row)"
v-show=
"row.invoice_type === '2'"
style=
"margin-left: 10px"
>
确认领取
</el-button
>
</
template
>
<
template
#
footer
>
<span>
已选择
{{
multipleSelection
.
length
}}
条
</span>
...
...
@@ -68,7 +75,7 @@ import AppList from '@/components/base/AppList.vue'
import
AppCard
from
'@/components/base/AppCard.vue'
import
DistributionDialog
from
'../components/DistributionDialog.vue'
// 接口
import
{
getInvoiceList
,
getCondition
,
deposit
}
from
'../api'
import
{
getInvoiceList
,
getCondition
,
deposit
,
confirmReceive
}
from
'../api'
import
XLSX
from
'xlsx'
import
fileDownload
from
'js-file-download'
import
queryString
from
'query-string'
...
...
@@ -204,8 +211,10 @@ export default {
{
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
:
'invoiceStatusViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'center'
,
fixed
:
'right'
,
minWidth
:
'100px'
}
{
label
:
'发票状态'
,
prop
:
'invoiceStatusViewName'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'票据领取状态'
,
prop
:
'receive_status'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'票据领取时间'
,
prop
:
'receive_time'
,
align
:
'center'
,
minWidth
:
'100px'
},
{
label
:
'操作'
,
slots
:
'table-x'
,
align
:
'center'
,
fixed
:
'right'
,
minWidth
:
'200px'
}
]
}
}
...
...
@@ -246,6 +255,18 @@ export default {
}
return
params
},
// 确认领取
confirmReceived
(
row
)
{
const
params
=
{
invoices_id
:
row
.
id
}
confirmReceive
(
params
).
then
(
res
=>
{
if
(
res
.
code
===
0
)
{
this
.
$message
.
success
(
'发票领取成功'
)
this
.
$refs
.
list
.
refetch
()
}
})
},
// 分配票据跟进人弹窗
dialogHide
()
{
this
.
isShowDialog
=
false
...
...
src/modules/payment/components/TicketForm.vue
浏览文件 @
08224878
<!-- 开具发票-->
<
template
>
<div>
<h3
style=
"margin-bottom: 20px"
>
支付信息
</h3>
<h3
style=
"margin-bottom: 20px
; margin-left: 10px
"
>
支付信息
</h3>
<table
border=
"1"
width=
"860px"
cellspacing=
"0"
class=
"tableDetail"
>
<tr>
<th>
客户姓名
</th>
...
...
@@ -50,7 +50,8 @@
</el-form>
<el-form
label-width=
"120px"
ref=
"ruleForm"
:model=
"form"
:rules=
"rules"
style=
"margin-top: 20px"
>
<div
class=
"type"
style=
"border: 1px solid #ebeef5; margin-bottom: 10px; padding-right: 50px"
>
<el-form-item
label=
"发票信息"
class=
"title"
>
<el-form-item
class=
"title"
style=
"margin-top: 10px"
>
<span
style=
"display: inline-block; font-size: 19px; font-weight: 800; margin-left: -110px"
>
发票信息
</span>
<el-button
type=
"text"
style=
"float: right"
@
click=
"$emit('history')"
>
历史开票信息
</el-button>
</el-form-item>
<el-form-item
label=
"发票类型"
prop=
"invoice_type"
>
...
...
@@ -110,9 +111,10 @@
<el-form-item
label=
"备注"
>
<el-input
disabled
:placeholder=
"row.payer_name"
></el-input>
</el-form-item>
<el-form-item
label=
"收票信息"
>
<!--
<span>
请填写邮箱地址,方便接收电子发票
</span>
-->
</el-form-item>
<h3
style=
"margin-bottom: 20px; margin-left: 10px"
>
收票信息
</h3>
<!--
<el-form-item
label=
"收票信息"
>
-->
<!--
<span>
请填写邮箱地址,方便接收电子发票
</span>
-->
<!--
</el-form-item>
-->
<!-- 电子发票显示邮箱 -->
<el-form-item
label=
"邮箱"
...
...
src/modules/payment/views/List.vue
浏览文件 @
08224878
...
...
@@ -70,7 +70,7 @@
</
template
>
</app-list>
<!-- 开具发票 -->
<el-d
ialog
title=
"开具发票"
:visible
.
sync=
"ticketVisible"
width=
"900px
"
append-to-body
:destroy-on-close=
"true"
>
<el-d
rawer
title=
"开具发票"
:visible
.
sync=
"ticketVisible"
size=
"60%
"
append-to-body
:destroy-on-close=
"true"
>
<TicketForm
:history=
"history"
@
history=
"handleHistory"
...
...
@@ -79,10 +79,10 @@
@
createTicket=
"handleCreateTicket"
:row=
"row"
/>
<el-dialog
<el-drawer
size=
"20%"
title=
"历史开票信息"
:visible
.
sync=
"historyVisible"
width=
"460px"
top=
"15px"
append-to-body
:destroy-on-close=
"true"
...
...
@@ -90,8 +90,8 @@
:modal=
"false"
>
<History
v-if=
"historyVisible"
:hasSearch=
"true"
@
select=
"handleSelect"
/>
</el-d
ialog
>
</el-d
ialog
>
</el-d
rawer
>
</el-d
rawer
>
<!-- 开票二维码 -->
<ShareQrcode
:visible
.
sync=
"codeVisible"
:value=
"shareUrl"
/>
</app-card>
...
...
@@ -267,7 +267,7 @@ export default {
{
label
:
'实缴金额'
,
prop
:
'amount_need_to_pay'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'手续费'
,
prop
:
'service_charge'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'到账金额'
,
prop
:
'amount_received'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'
代
缴金额'
,
prop
:
'amount_waiting_for_pay'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'
待
缴金额'
,
prop
:
'amount_waiting_for_pay'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'跟进人'
,
prop
:
'sales_rep_user_id_name'
,
align
:
'center'
,
minWidth
:
100
},
{
label
:
'渠道'
,
prop
:
'channel_id_name'
,
align
:
'center'
,
minWidth
:
300
},
{
label
:
'交易流水号'
,
prop
:
'txn_id_list'
,
align
:
'center'
,
minWidth
:
300
},
...
...
@@ -340,11 +340,10 @@ export default {
this
.
row
=
row
this
.
id
=
row
.
id
// 学费
if
(
row
.
real_invoice_status
===
'1'
)
{
this
.
ticketVisible
=
true
}
else
{
this
.
$message
.
error
(
'当前不可开发票'
)
}
if
(
row
.
real_invoice_status
===
1
)
{
this
.
ticketVisible
=
true
}
else
{
this
.
$message
.
error
(
'当前不可开发票'
)
}
},
// 作废发票
...
...
@@ -365,7 +364,7 @@ export default {
})
},
qrCode
(
row
)
{
if
(
row
.
real_invoice_status
===
'1'
)
{
if
(
row
.
real_invoice_status
===
1
)
{
this
.
shareUrl
=
`
${
import
.
meta
.
env
.
VITE_SHARE_URL
}
/h5/payment/invoice?id=
${
row
.
id
}
&remark=
${
row
.
payer_name
}
&name=
${
row
.
sales_rep_user_id_name
}
`
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论