Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-finance
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-finance
Commits
3c2cb2b2
提交
3c2cb2b2
authored
9月 09, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 发票管理,项目列表开发完毕
上级
509a164d
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
38 行增加
和
35 行删除
+38
-35
api.js
src/modules/invoice/api.js
+10
-0
DistributionDialog.vue
src/modules/invoice/components/DistributionDialog.vue
+25
-18
List.vue
src/modules/invoice/views/List.vue
+0
-0
List.vue
src/modules/payment/views/List.vue
+2
-0
List.vue
src/modules/project/views/List.vue
+1
-17
没有找到文件。
src/modules/invoice/api.js
浏览文件 @
3c2cb2b2
...
@@ -6,3 +6,13 @@ import httpRequest from '@/utils/axios'
...
@@ -6,3 +6,13 @@ import httpRequest from '@/utils/axios'
export
function
getInvoiceList
(
params
)
{
export
function
getInvoiceList
(
params
)
{
return
httpRequest
.
get
(
'/api/finance/v1/invoices/list'
,
{
params
}).
then
({})
return
httpRequest
.
get
(
'/api/finance/v1/invoices/list'
,
{
params
}).
then
({})
}
}
// 获取支付过滤条件
export
function
getCondition
(
params
)
{
return
httpRequest
.
get
(
'/api/finance/v1/payments/condition'
,
{
params
})
}
// 分配发票跟进人
export
function
assignSales
(
data
)
{
return
httpRequest
.
post
(
'/api/finance/v1/invoices/assign-sales'
,
data
,
{})
}
src/modules/invoice/components/DistributionDialog.vue
浏览文件 @
3c2cb2b2
<
template
>
<
template
>
<div>
<div>
<el-dialog
title=
"分配票据跟进人"
center
:visible
.
sync=
"visible"
:before-close=
"modalClose
"
>
<el-dialog
title=
"分配票据跟进人"
center
v-bind=
"$attrs"
v-on=
"$listeners
"
>
<el-form
:model=
"form"
>
<el-form
:model=
"form"
>
<el-form-item
label=
"票据跟进人"
>
<el-form-item
label=
"票据跟进人"
>
<el-select
v-model=
"form.region"
placeholder=
"请选择活动区域"
>
<el-select
v-model=
"form.value"
placeholder=
"请选择活动区域"
>
<el-option
label=
"区域一"
value=
"shanghai"
></el-option>
<el-option
<el-option
label=
"区域二"
value=
"beijing"
></el-option>
v-for=
"(item, index) in options"
:key=
"index"
:label=
"item.user_name"
:value=
"item.user_id"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"$emit('
dialogHide'
)"
>
取 消
</el-button>
<el-button
@
click=
"$emit('
update:visible', false
)"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"
$emit('dialogHide')
"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"
assignSales
"
>
确 定
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
assignSales
}
from
'../api'
export
default
{
export
default
{
props
:
{
props
:
{
visible
:
{
options
:
{
type
:
Array
},
type
:
Boolean
,
invoicesIds
:
{
type
:
Array
}
default
:
false
}
},
},
data
()
{
data
()
{
return
{
return
{
form
:
{
form
:
{
name
:
''
,
value
:
''
region
:
''
,
date1
:
''
,
date2
:
''
,
delivery
:
false
,
type
:
[],
resource
:
''
,
desc
:
''
}
}
}
}
},
},
methods
:
{
methods
:
{
modalClose
()
{
modalClose
()
{
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'update:visible'
,
false
)
},
assignSales
()
{
const
ids
=
this
.
invoicesIds
.
map
(
item
=>
item
.
id
)
const
params
=
{
invoices_id
:
ids
.
join
(
','
),
sales_rep_user_id
:
this
.
form
.
value
}
assignSales
(
params
).
then
(
res
=>
{
this
.
$emit
(
'update:visible'
,
false
)
this
.
$emit
(
'success'
)
})
}
}
}
}
}
}
...
...
src/modules/invoice/views/List.vue
浏览文件 @
3c2cb2b2
差异被折叠。
点击展开。
src/modules/payment/views/List.vue
浏览文件 @
3c2cb2b2
...
@@ -216,6 +216,7 @@ export default {
...
@@ -216,6 +216,7 @@ export default {
],
],
moreFilters
:
[
moreFilters
:
[
{
{
prop
:
'sales_rep_user_id'
,
label
:
'跟进人'
,
label
:
'跟进人'
,
type
:
'select'
,
type
:
'select'
,
placeholder
:
'跟进人'
,
placeholder
:
'跟进人'
,
...
@@ -226,6 +227,7 @@ export default {
...
@@ -226,6 +227,7 @@ export default {
remote
:
true
remote
:
true
},
},
{
{
prop
:
'invoice_type'
,
label
:
'发票类型'
,
label
:
'发票类型'
,
type
:
'select'
,
type
:
'select'
,
placeholder
:
'发票类型'
,
placeholder
:
'发票类型'
,
...
...
src/modules/project/views/List.vue
浏览文件 @
3c2cb2b2
<
template
>
<
template
>
<div>
<div>
<app-card
style=
"max-width: 100%"
>
<app-card
style=
"max-width: 100%"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
@
selection-change=
"handleSelectionChange"
>
<app-list
v-bind=
"tableOptions"
ref=
"list"
>
<template
v-slot:table-x=
"
{ row }">
<template
v-slot:table-x=
"
{ row }">
<router-link
:to=
"
{ name: 'invoiceView', params: { id: row.id } }">
<router-link
:to=
"
{ name: 'invoiceView', params: { id: row.id } }">
<el-button
type=
"text"
>
查看
</el-button>
<el-button
type=
"text"
>
查看
</el-button>
...
@@ -94,22 +94,6 @@ export default {
...
@@ -94,22 +94,6 @@ export default {
]
]
}
}
}
}
},
methods
:
{
beforeRequest
(
params
,
isReset
)
{
// 重置
if
(
isReset
)
{
params
.
price_min
=
''
params
.
price_max
=
''
}
params
.
status
=
this
.
activeName
===
'0'
?
''
:
this
.
activeName
params
.
price_zone
=
`
${
params
.
price_min
||
''
}
,
${
params
.
price_max
||
''
}
`
return
params
},
// 选择
handleSelectionChange
(
value
)
{
this
.
multipleSelection
=
value
}
}
}
}
}
</
script
>
</
script
>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论