Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
341a4d32
Commit
341a4d32
authored
Nov 26, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f3ac57fc
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
544 additions
and
1 deletion
+544
-1
peemanagement.js
src/api/sale/peemanagement.js
+12
-0
custom-form.vue
src/components/sale/custom-form.vue
+16
-1
commsionManagement.vue
src/pages/sale/commsionManagement.vue
+253
-0
happyPassbook.vue
src/pages/sale/happyPassbook.vue
+253
-0
routes.js
src/router/routes.js
+10
-0
No files found.
src/api/sale/peemanagement.js
View file @
341a4d32
...
...
@@ -122,3 +122,15 @@ export function GetTaskTypeList(data) {
})
}
/**
* 获取幸福存折接口
*
*/
export
function
GetCustomerBalanceDetailPage
(
data
)
{
return
request
({
url
:
'/B2BCustomer/GetCustomerBalanceDetailPage'
,
method
:
'post'
,
data
})
}
src/components/sale/custom-form.vue
View file @
341a4d32
...
...
@@ -44,6 +44,10 @@
style=
"font-weight:400"
label=
"查看"
@
click=
"AuditCustomer(props.row,2)"
/>
<q-btn
flat
v-if=
"props.row.ApproveState==0"
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"RemoveCustomer(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"幸福存折"
@
click=
"gohappyPassbook()"
/>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"返佣管理"
@
click=
"gohappyCommisson()"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
...
...
@@ -201,7 +205,18 @@
refreshQuestion
()
{
this
.
$emit
(
'success'
);
},
//跳转到幸福存折
gohappyPassbook
(){
this
.
$router
.
push
({
path
:
'/sale/happyPassbook'
})
},
//跳转到返佣管理
gohappyCommisson
(){
this
.
$router
.
push
({
path
:
'/sale/commsionManagement'
})
},
}
}
...
...
src/pages/sale/commsionManagement.vue
0 → 100644
View file @
341a4d32
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.TaskName"
label=
"任务名称"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
返佣管理
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增任务"
@
click=
"EditTask(null)"
/>
</div>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditTask(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"RemoveTask(props.row.Id)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
style=
"font-weight:400"
label=
"详情"
@
click=
"iShowEdit(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
<saleForm
v-if=
"isShowTask"
:taskOption=
"taskOption"
@
close=
"closeSaleForm"
@
success=
"RefreshPage"
></saleForm>
</div>
</template>
<
script
>
import
{
GetCustomerBalanceDetailPage
}
from
'../../api/sale/peemanagement'
;
import
saleForm
from
'../../components/sale/sale-form'
;
export
default
{
meta
:
{
title
:
"返佣管理"
},
components
:
{
saleForm
},
data
()
{
return
{
columns
:
[{
name
:
'AccountMoney'
,
label
:
'AccountMoney'
,
align
:
'left'
,
field
:
'AccountMoney'
},
{
name
:
'BalanceTypeStr'
,
label
:
'BalanceTypeStr'
,
field
:
'BalanceTypeStr'
,
align
:
'left'
},
{
name
:
'ClassId'
,
label
:
'ClassId'
,
field
:
'ClassId'
,
align
:
'left'
,
},
{
name
:
'CustomerId'
,
label
:
'CustomerId'
,
field
:
'CustomerId'
,
align
:
'left'
,
},
{
name
:
'Description'
,
label
:
'描述'
,
field
:
'Description'
,
align
:
'left'
,
},
{
name
:
'EmployeeId'
,
label
:
'EmployeeId'
,
field
:
'EmployeeId'
,
align
:
'left'
,
},
{
name
:
'Group_Id'
,
label
:
'Group_Id'
,
field
:
'Group_Id'
,
align
:
'left'
,
},
{
name
:
'Money'
,
label
:
'金额'
,
field
:
'Money'
,
align
:
'left'
,
},
{
name
:
'OrderId'
,
label
:
'OrderId'
,
field
:
'OrderId'
,
align
:
'left'
,
},
{
name
:
'OrderSource'
,
label
:
'OrderSource'
,
field
:
'OrderSource'
,
align
:
'left'
,
},
{
name
:
'PeopleNum'
,
label
:
'人数'
,
field
:
'PeopleNum'
,
align
:
'left'
,
},
{
name
:
'RebateTypeStr'
,
label
:
'RebateTypeStr'
,
field
:
'RebateTypeStr'
,
align
:
'left'
,
},
{
name
:
'School_Id'
,
label
:
'School_Id'
,
field
:
'School_Id'
,
align
:
'left'
,
},
{
name
:
'UpdateTime'
,
label
:
'更新时间'
,
field
:
'UpdateTime'
,
align
:
'left'
,
},
{
name
:
'Id'
,
label
:
'操作'
,
field
:
'Id'
}
],
dataList
:
[],
loading
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
// TaskName: "" //任务
},
pageCount
:
0
,
taskOption
:
null
,
isShowTask
:
false
,
}
},
created
()
{},
mounted
()
{
this
.
getList
()
},
methods
:
{
resetSearch
()
{
this
.
loading
=
true
;
this
.
msg
.
pageIndex
=
1
;
this
.
getList
();
},
//删除
RemoveTask
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"删除营销任务"
,
message
:
"你正在进行删除任务行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
RemoveCustomerTask
({
Id
:
id
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
this
.
getList
()
})
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
loading
=
true
;
this
.
getList
();
},
RefreshPage
()
{
this
.
getList
()
},
//新增修改
EditTask
(
obj
)
{
if
(
obj
)
{
this
.
taskOption
=
obj
;
}
else
{
this
.
taskOption
=
null
}
this
.
isShowTask
=
true
},
iShowEdit
(
obj
){
if
(
obj
)
{
this
.
taskOption
=
obj
;
}
else
{
this
.
taskOption
=
null
}
this
.
isShowRight
=
true
},
closeSaleForm
()
{
this
.
isShowTask
=
false
;
this
.
isShowRight
=
false
;
},
//获取数据
getList
()
{
this
.
loading
=
true
;
GetCustomerBalanceDetailPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
<
style
lang=
"scss"
>
</
style
>
src/pages/sale/happyPassbook.vue
0 → 100644
View file @
341a4d32
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-col-gutter-md"
>
<div
class=
"col-3"
>
<q-input
@
input=
"resetSearch"
clearable
filled
v-model=
"msg.TaskName"
label=
"任务名称"
/>
</div>
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-right-column-table sticky-column-table"
separator=
"none"
:data=
"dataList"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
幸福存折
</div>
<q-space
/>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
icon=
"add"
label=
"新增任务"
@
click=
"EditTask(null)"
/>
</div>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td>
<q-btn
flat
size=
"xs"
icon=
"edit"
color=
"accent"
style=
"font-weight:400"
label=
"编辑"
@
click=
"EditTask(props.row)"
/>
<q-btn
flat
size=
"xs"
icon=
"delete"
color=
"negative"
style=
"font-weight:400"
label=
"删除"
@
click=
"RemoveTask(props.row.Id)"
/>
<q-btn
flat
size=
"xs"
icon=
"iconfont icon-view"
style=
"font-weight:400"
label=
"详情"
@
click=
"iShowEdit(props.row)"
/>
</q-td>
</
template
>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
</div>
<saleForm
v-if=
"isShowTask"
:taskOption=
"taskOption"
@
close=
"closeSaleForm"
@
success=
"RefreshPage"
></saleForm>
</div>
</template>
<
script
>
import
{
GetCustomerBalanceDetailPage
}
from
'../../api/sale/peemanagement'
;
import
saleForm
from
'../../components/sale/sale-form'
;
export
default
{
meta
:
{
title
:
"幸福存折"
},
components
:
{
saleForm
},
data
()
{
return
{
columns
:
[{
name
:
'AccountMoney'
,
label
:
'AccountMoney'
,
align
:
'left'
,
field
:
'AccountMoney'
},
{
name
:
'BalanceTypeStr'
,
label
:
'BalanceTypeStr'
,
field
:
'BalanceTypeStr'
,
align
:
'left'
},
{
name
:
'ClassId'
,
label
:
'ClassId'
,
field
:
'ClassId'
,
align
:
'left'
,
},
{
name
:
'CustomerId'
,
label
:
'CustomerId'
,
field
:
'CustomerId'
,
align
:
'left'
,
},
{
name
:
'Description'
,
label
:
'描述'
,
field
:
'Description'
,
align
:
'left'
,
},
{
name
:
'EmployeeId'
,
label
:
'EmployeeId'
,
field
:
'EmployeeId'
,
align
:
'left'
,
},
{
name
:
'Group_Id'
,
label
:
'Group_Id'
,
field
:
'Group_Id'
,
align
:
'left'
,
},
{
name
:
'Money'
,
label
:
'金额'
,
field
:
'Money'
,
align
:
'left'
,
},
{
name
:
'OrderId'
,
label
:
'OrderId'
,
field
:
'OrderId'
,
align
:
'left'
,
},
{
name
:
'OrderSource'
,
label
:
'OrderSource'
,
field
:
'OrderSource'
,
align
:
'left'
,
},
{
name
:
'PeopleNum'
,
label
:
'人数'
,
field
:
'PeopleNum'
,
align
:
'left'
,
},
{
name
:
'RebateTypeStr'
,
label
:
'RebateTypeStr'
,
field
:
'RebateTypeStr'
,
align
:
'left'
,
},
{
name
:
'School_Id'
,
label
:
'School_Id'
,
field
:
'School_Id'
,
align
:
'left'
,
},
{
name
:
'UpdateTime'
,
label
:
'更新时间'
,
field
:
'UpdateTime'
,
align
:
'left'
,
},
{
name
:
'Id'
,
label
:
'操作'
,
field
:
'Id'
}
],
dataList
:
[],
loading
:
true
,
msg
:
{
pageIndex
:
1
,
pageSize
:
12
,
rowsPerPage
:
12
,
// TaskName: "" //任务
},
pageCount
:
0
,
taskOption
:
null
,
isShowTask
:
false
,
}
},
created
()
{},
mounted
()
{
this
.
getList
()
},
methods
:
{
resetSearch
()
{
this
.
loading
=
true
;
this
.
msg
.
pageIndex
=
1
;
this
.
getList
();
},
//删除
RemoveTask
(
id
)
{
let
that
=
this
this
.
$q
.
dialog
({
title
:
"删除营销任务"
,
message
:
"你正在进行删除任务行为,一旦执行无法找回,是否确认执行?"
,
persistent
:
true
,
cancel
:
{
label
:
"取消"
,
flat
:
true
},
ok
:
{
label
:
"确认"
,
flat
:
true
,
focus
:
true
}
}).
onOk
(()
=>
{
RemoveCustomerTask
({
Id
:
id
}).
then
(
res
=>
{
this
.
$q
.
notify
({
icon
:
'iconfont icon-chenggong'
,
color
:
'accent'
,
timeout
:
2000
,
message
:
'数据删除成功!'
,
position
:
'top'
})
this
.
getList
()
})
});
},
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
this
.
loading
=
true
;
this
.
getList
();
},
RefreshPage
()
{
this
.
getList
()
},
//新增修改
EditTask
(
obj
)
{
if
(
obj
)
{
this
.
taskOption
=
obj
;
}
else
{
this
.
taskOption
=
null
}
this
.
isShowTask
=
true
},
iShowEdit
(
obj
){
if
(
obj
)
{
this
.
taskOption
=
obj
;
}
else
{
this
.
taskOption
=
null
}
this
.
isShowRight
=
true
},
closeSaleForm
()
{
this
.
isShowTask
=
false
;
this
.
isShowRight
=
false
;
},
//获取数据
getList
()
{
this
.
loading
=
true
;
GetCustomerBalanceDetailPage
(
this
.
msg
).
then
(
res
=>
{
console
.
log
(
res
,
'数据'
);
this
.
loading
=
false
;
if
(
res
.
Code
==
1
)
{
this
.
dataList
=
res
.
Data
.
PageData
;
this
.
pageCount
=
res
.
Data
.
PageCount
;
}
}).
catch
(()
=>
{
this
.
loading
=
false
})
}
},
}
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
</
style
>
<
style
lang=
"scss"
>
</
style
>
src/router/routes.js
View file @
341a4d32
...
...
@@ -873,6 +873,16 @@ const routes = [{
component
:
()
=>
import
(
"pages/sale/saleTask.vue"
)
},
{
path
:
"/sale/happyPassbook"
,
//客户管理-幸福存折
component
:
()
=>
import
(
"pages/sale/happyPassbook.vue"
)
},
{
path
:
"/sale/commsionManagement"
,
//客户管理-返佣管理
component
:
()
=>
import
(
"pages/sale/commsionManagement.vue"
)
},
{
path
:
"/sale/activityList"
,
//销售 活动列表
component
:
()
=>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment