Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
6147bdfb
提交
6147bdfb
authored
4月 27, 2022
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
上级
e3031654
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
49 行增加
和
1 行删除
+49
-1
api.js
src/modules/invoice/api.js
+4
-0
List.vue
src/modules/invoice/views/List.vue
+45
-1
没有找到文件。
src/modules/invoice/api.js
浏览文件 @
6147bdfb
...
@@ -30,3 +30,7 @@ export function downloadInvoices(params) {
...
@@ -30,3 +30,7 @@ export function downloadInvoices(params) {
export
function
confirmReceive
(
data
)
{
export
function
confirmReceive
(
data
)
{
return
httpRequest
.
post
(
'/api/finance/v1/invoices/confirm-receive'
,
data
)
return
httpRequest
.
post
(
'/api/finance/v1/invoices/confirm-receive'
,
data
)
}
}
// 确认线下开票
export
function
setPaperSuccess
(
data
)
{
return
httpRequest
.
post
(
'/api/finance/v1/invoices/set-paper-success'
,
data
)
}
src/modules/invoice/views/List.vue
浏览文件 @
6147bdfb
...
@@ -54,6 +54,7 @@
...
@@ -54,6 +54,7 @@
style=
"margin-left: 10px"
style=
"margin-left: 10px"
>
确认领取
</el-button
>
确认领取
</el-button
>
>
<el-button
type=
"primary"
v-if=
"row.need_offline"
style=
"margin-left: 10px"
@
click=
"paperSuccessPop(row)"
>
确认开票
</el-button>
</
template
>
</
template
>
<
template
#
footer
>
<
template
#
footer
>
<span>
已选择
{{
multipleSelection
.
length
}}
条
</span>
<span>
已选择
{{
multipleSelection
.
length
}}
条
</span>
...
@@ -70,6 +71,24 @@
...
@@ -70,6 +71,24 @@
:options=
"conditionList.sales_rep_user_id"
:options=
"conditionList.sales_rep_user_id"
:invoicesIds=
"multipleSelection"
:invoicesIds=
"multipleSelection"
></distribution-dialog>
></distribution-dialog>
<el-dialog
title=
"确认开票"
:visible
.
sync=
"dialogFormVisible"
>
<el-form
:model=
"form"
label-width=
"150px"
>
<el-form-item
label=
"发票开具时间"
>
<el-date-picker
value-format=
"yyyy-MM-dd HH-mm-ss"
v-model=
"form.invoice_issuing_time"
type=
"datetime"
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-form-item>
<el-form-item
label=
"发票号码"
>
<el-input
v-model=
"form.invoice_haoma"
style=
"width: 220px"
></el-input>
</el-form-item>
<el-form-item
label=
"发票代码"
>
<el-input
v-model=
"form.invoice_daima"
style=
"width: 220px"
></el-input>
</el-form-item>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"setPaperSuccess"
>
确 定
</el-button>
</div>
</el-dialog>
</div>
</div>
</template>
</template>
...
@@ -79,7 +98,7 @@ import AppList from '@/components/base/AppList.vue'
...
@@ -79,7 +98,7 @@ import AppList from '@/components/base/AppList.vue'
import
AppCard
from
'@/components/base/AppCard.vue'
import
AppCard
from
'@/components/base/AppCard.vue'
import
DistributionDialog
from
'../components/DistributionDialog.vue'
import
DistributionDialog
from
'../components/DistributionDialog.vue'
// 接口
// 接口
import
{
getInvoiceList
,
getCondition
,
deposit
,
confirmReceive
}
from
'../api'
import
{
getInvoiceList
,
getCondition
,
deposit
,
confirmReceive
,
setPaperSuccess
}
from
'../api'
import
XLSX
from
'xlsx'
import
XLSX
from
'xlsx'
import
fileDownload
from
'js-file-download'
import
fileDownload
from
'js-file-download'
import
queryString
from
'query-string'
import
queryString
from
'query-string'
...
@@ -88,6 +107,13 @@ export default {
...
@@ -88,6 +107,13 @@ export default {
components
:
{
AppCard
,
AppList
,
DistributionDialog
},
components
:
{
AppCard
,
AppList
,
DistributionDialog
},
data
()
{
data
()
{
return
{
return
{
dialogFormVisible
:
false
,
form
:
{
invoice_id
:
''
,
invoice_issuing_time
:
''
,
invoice_haoma
:
''
,
invoice_daima
:
''
},
multipleSelection
:
[],
multipleSelection
:
[],
conditionList
:
{},
conditionList
:
{},
invoiceColorType
:
[
invoiceColorType
:
[
...
@@ -249,6 +275,24 @@ export default {
...
@@ -249,6 +275,24 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
paperSuccessPop
(
row
)
{
this
.
form
.
invoice_id
=
row
.
id
console
.
log
(
row
)
this
.
dialogFormVisible
=
true
},
setPaperSuccess
()
{
setPaperSuccess
(
this
.
form
).
then
(
res
=>
{
this
.
$message
.
success
(
'确认成功'
)
this
.
dialogFormVisible
=
false
this
.
form
=
{
invoice_id
:
''
,
invoice_issuing_time
:
''
,
invoice_haoma
:
''
,
invoice_daima
:
''
}
this
.
$refs
.
list
.
refetch
()
})
},
// 发票列表下载
// 发票列表下载
downloadInvoices
()
{
downloadInvoices
()
{
Object
.
keys
(
this
.
tableOptions
.
remote
.
params
).
forEach
(
key
=>
{
Object
.
keys
(
this
.
tableOptions
.
remote
.
params
).
forEach
(
key
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论