Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a5dfb77d
authored
Mar 19, 2025
by
huyue
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交月度统计
1 parent
9882d1ad
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
292 additions
and
5 deletions
src/api/inStorePoints.js
src/views/residentManage/growUpGrade/components/editDialog.vue
src/views/residentManage/inStorePoints/indexControl.vue
src/views/residentManage/inStorePoints/monthlyStatistics.vue
src/api/inStorePoints.js
View file @
a5dfb77
...
@@ -145,3 +145,33 @@ export function exportGrantRecord(data) {
...
@@ -145,3 +145,33 @@ export function exportGrantRecord(data) {
data
.
method
=
'dj.api.smartcarlife.resident.coupon.grant.record.export'
data
.
method
=
'dj.api.smartcarlife.resident.coupon.grant.record.export'
return
request
(
data
,
RequestMethods
.
POST
)
return
request
(
data
,
RequestMethods
.
POST
)
}
}
// 月度统计列表
export
function
monthlyStatistisc
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.resident.point.monthly.statistics'
return
request
(
data
,
RequestMethods
.
POST
)
}
// 月度统计导出
export
function
monthlyStatistiscExport
(
data
)
{
data
.
method
=
'dj.api.smartcarlife.resident.point.monthly.statistics.export'
return
request
(
data
,
RequestMethods
.
POST
)
}
// 门店品牌
export
function
brandList
(
data
=
{})
{
data
.
method
=
'dj.api.smartcarlife.common.car.brand.list'
return
request
(
data
,
RequestMethods
.
POST
)
}
// 归属商户
export
function
yqMerchantList
(
data
=
{})
{
data
.
method
=
'dj.smartcarlife.api.yqMerchant.list'
return
request
(
data
,
RequestMethods
.
POST
)
}
// 服务门店
export
function
query4SRefByYqShop
(
data
=
{})
{
data
.
method
=
'dj.api.scenemerchantref.query4SRefByYqShop'
return
request
(
data
,
RequestMethods
.
POST
)
}
src/views/residentManage/growUpGrade/components/editDialog.vue
View file @
a5dfb77
...
@@ -81,6 +81,7 @@
...
@@ -81,6 +81,7 @@
>
>
<el-radio
:label=
"1"
>
分值
</el-radio>
<el-radio
:label=
"1"
>
分值
</el-radio>
<el-radio
:label=
"2"
>
排名
</el-radio>
<el-radio
:label=
"2"
>
排名
</el-radio>
<el-radio
:label=
"3"
>
满勤
</el-radio>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
slot=
"ratingRankHtml"
slot-scope=
"scope"
>
<div
slot=
"ratingRankHtml"
slot-scope=
"scope"
>
...
@@ -363,9 +364,11 @@ export default {
...
@@ -363,9 +364,11 @@ export default {
this
.
showOrHideAttr
(
"editFormData"
,
"评级项目"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级项目"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级方式"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级方式"
,
false
)
this
.
pointRule
()
this
.
pointRule
()
// if (this.infoForm.ratingMethod == 1) {
if
(
this
.
infoForm
.
ratingMethod
==
1
)
{
// this.showOrHideAttr('editFormData', '评级积分', false)
this
.
showOrHideAttr
(
'editFormData'
,
'评级积分'
,
false
)
// }
}
else
if
(
this
.
infoForm
.
ratingMethod
==
2
)
{
this
.
showOrHideAttr
(
'editFormData'
,
'评级排名'
,
false
)
}
}
else
if
(
this
.
infoForm
.
levelType
==
1
)
{
}
else
if
(
this
.
infoForm
.
levelType
==
1
)
{
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
false
)
}
}
...
@@ -446,9 +449,12 @@ export default {
...
@@ -446,9 +449,12 @@ export default {
if
(
value
==
1
)
{
if
(
value
==
1
)
{
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级排名"
,
true
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级排名"
,
true
)
}
else
{
}
else
if
(
value
==
2
)
{
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
true
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
true
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级排名"
,
false
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级排名"
,
false
)
}
else
if
(
value
==
3
)
{
this
.
showOrHideAttr
(
"editFormData"
,
"评级积分"
,
true
)
this
.
showOrHideAttr
(
"editFormData"
,
"评级排名"
,
true
)
}
}
},
},
...
...
src/views/residentManage/inStorePoints/indexControl.vue
View file @
a5dfb77
...
@@ -6,12 +6,15 @@
...
@@ -6,12 +6,15 @@
<el-tabs
v-model=
"activeName"
>
<el-tabs
v-model=
"activeName"
>
<el-tab-pane
label=
"积分记录"
<el-tab-pane
label=
"积分记录"
name=
"pointsRecord"
/>
name=
"pointsRecord"
/>
<el-tab-pane
label=
"月度统计记录"
name=
"monthlyStatistics"
/>
<el-tab-pane
label=
"积分配置管理"
<el-tab-pane
label=
"积分配置管理"
name=
"pointsConfig"
/>
name=
"pointsConfig"
/>
</el-tabs>
</el-tabs>
<div>
<div>
<points-record
v-if=
"activeName === 'pointsRecord'"
/>
<points-record
v-if=
"activeName === 'pointsRecord'"
/>
<points-config
v-if=
"activeName === 'pointsConfig'"
/>
<points-config
v-if=
"activeName === 'pointsConfig'"
/>
<monthly-statistics
v-if=
"activeName === 'monthlyStatistics'"
/>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -20,6 +23,7 @@
...
@@ -20,6 +23,7 @@
<
script
>
<
script
>
import
pointsRecord
from
'./pointsRecord'
import
pointsRecord
from
'./pointsRecord'
import
pointsConfig
from
'./pointsConfig'
import
pointsConfig
from
'./pointsConfig'
import
monthlyStatistics
from
'./monthlyStatistics'
// import { deepClone } from '@/common/util'
// import { deepClone } from '@/common/util'
export
default
{
export
default
{
name
:
'StaffIndex'
,
name
:
'StaffIndex'
,
...
@@ -33,7 +37,8 @@ export default {
...
@@ -33,7 +37,8 @@ export default {
components
:
{
components
:
{
pointsRecord
,
pointsRecord
,
pointsConfig
pointsConfig
,
monthlyStatistics
},
},
mounted
()
{
mounted
()
{
...
...
src/views/residentManage/inStorePoints/monthlyStatistics.vue
0 → 100644
View file @
a5dfb77
<!-- 月度统计记录 -->
<
template
>
<d2-container
class=
"points-config"
>
<div
class=
"header"
slot=
"header"
>
<d2-search
ref=
"showSearch"
class=
"show-search"
:search-form=
"searchForm"
:form-data=
"showFormData"
label-width=
"100px"
/>
<div
class=
"up-btns"
>
<el-button
:id=
"tableParams.btnId"
size=
"small"
type=
"primary"
>
查询
</el-button>
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
<div
class=
"d2-container-content"
>
<d2-table-header>
<el-button
@
click=
"handleExport"
>
导出
</el-button>
</d2-table-header>
<d2-table
ref=
"detailListTable"
:search-form=
"searchData"
:table-params=
"tableParams"
:get-list-api=
"getListApi"
:before-search-fn=
"beforeSearchFn"
>
</d2-table>
</div>
</d2-container>
</
template
>
<
script
>
import
{
Util
,
deepClone
,
downLoadFile
}
from
'@/common/util'
import
{
brandList
,
yqMerchantList
,
query4SRefByYqShop
,
monthlyStatistisc
,
monthlyStatistiscExport
}
from
'@api/inStorePoints'
export
default
{
name
:
'PointsConfig'
,
props
:
{
},
data
()
{
return
{
searchForm
:
{},
searchData
:
{},
showFormData
:
[
{
label
:
'员工姓名'
,
name
:
'staffName'
,
type
:
'input'
,
isClear
:
true
,
},
{
label
:
'电话号码'
,
name
:
'staffPhone'
,
type
:
'input'
,
isClear
:
true
,
},
{
label
:
'服务门店'
,
name
:
'serviceMerchantId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'merchantId'
,
optionLabel
:
'merchantName'
,
optionsName
:
'serviceMerchantList'
},
{
label
:
'门店品牌'
,
name
:
'brandId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'label'
,
optionsName
:
'brandList'
},
{
label
:
'归属商户'
,
name
:
'merchantId'
,
type
:
'select'
,
isClear
:
true
,
optionList
:
[],
optionId
:
'id'
,
optionLabel
:
'merchantName'
,
optionsName
:
'merchantList'
},
{
label
:
"发放时间"
,
name
:
"grantTime"
,
type
:
"datePicker"
,
isClear
:
false
,
pickerOptions
:
"rangePickerOptions"
}],
getListApi
:
monthlyStatistisc
,
// 表格参数
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
false
,
// tableOption: { width: '150px' },
tableColumns
:
[
{
label
:
'员工姓名'
,
prop
:
'staffName'
},
{
label
:
'电话号码'
,
prop
:
'staffPhone'
},
{
label
:
'服务门店'
,
prop
:
"serviceMerchantName"
},
{
label
:
'门店品牌'
,
prop
:
'merchantBrand'
},
{
label
:
'角色'
,
prop
:
'roleName'
},
{
label
:
'归属商户'
,
prop
:
'yqMerchantName'
},
{
label
:
'培训类'
,
prop
:
'trainingScore'
},
{
label
:
'学习类'
,
prop
:
'studyScore'
},
{
label
:
'行为类'
,
prop
:
'studyScore'
},
{
label
:
'总积分'
,
prop
:
'totalScore'
},
{
label
:
'发放时间'
,
prop
:
'grantTimeRange'
,
width
:
'150'
,
// formatter: (cellValue) => {
// return Util.dateFormate(cellValue.grantTimeRange, 'YYYY-MM-DD HH:mm:ss')
// }
}
]
},
baseData
:
{
serviceMerchantList
:
[],
brandList
:
[],
merchantList
:
[]
},
}
},
created
()
{
this
.
searchForm
.
grantTime
=
[
new
Date
(),
new
Date
()]
},
mounted
()
{
this
.
getBaseData
()
},
methods
:
{
async
getBaseData
()
{
this
.
findAllServiceMerchant
()
this
.
findAllBrandList
()
this
.
findAllMerchantList
()
},
beforeSearchFn
()
{
return
new
Promise
(
resolve
=>
{
console
.
log
(
'this.searchForm'
,
this
.
searchForm
)
this
.
searchData
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchData
.
brandId
)
{
this
.
searchData
.
brandIdList
=
[
this
.
searchForm
.
brandId
]
delete
this
.
searchData
.
brandId
}
if
(
this
.
searchData
.
grantTime
)
{
this
.
searchData
.
grantTimeStart
=
Util
.
dateFormate
(
this
.
searchData
.
grantTime
[
0
],
'YYYY-MM-DD'
)
+
' 00:00:00'
this
.
searchData
.
grantTimeEnd
=
Util
.
dateFormate
(
this
.
searchData
.
grantTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
delete
this
.
searchData
.
grantTime
}
resolve
()
})
},
findAllServiceMerchant
()
{
query4SRefByYqShop
().
then
((
res
)
=>
{
this
.
baseData
.
serviceMerchantList
=
res
this
.
getOptionsList
()
})
},
findAllBrandList
(
id
)
{
brandList
().
then
((
res
)
=>
{
this
.
baseData
.
brandList
=
res
||
[]
this
.
getOptionsList
()
})
},
findAllMerchantList
()
{
yqMerchantList
().
then
(
res
=>
{
this
.
baseData
.
merchantList
=
res
||
[]
this
.
getOptionsList
()
})
},
handleReset
()
{
this
.
searchForm
=
{
grantTime
:
[
new
Date
(),
new
Date
()]
}
this
.
searchData
=
{}
this
.
$refs
.
detailListTable
.
refreshTable
()
},
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
this
.
baseData
[
item
.
optionsName
].
length
&&
this
.
baseData
[
item
.
optionsName
][
0
][
this
.
showFormData
[
index
].
optionLabel
]
!==
'全部'
)
{
const
temp
=
{}
temp
[
this
.
showFormData
[
index
].
optionId
]
=
''
temp
[
this
.
showFormData
[
index
].
optionLabel
]
=
'全部'
this
.
baseData
[
item
.
optionsName
].
unshift
(
temp
)
}
this
.
$set
(
this
.
showFormData
[
index
],
'optionList'
,
this
.
baseData
[
item
.
optionsName
]
)
}
})
},
handleExport
()
{
var
params
=
this
.
searchForm
monthlyStatistiscExport
(
params
).
then
((
res
)
=>
{
res
&&
downLoadFile
(
res
)
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.points-config
{
margin-top
:
40px
;
.m-l-md
{
margin-left
:
20px
;
}
}
</
style
>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment