Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-shop
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 ecf6fcfc
authored
Aug 31, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修复样式覆盖问题
1 parent
aad849da
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
143 additions
and
65 deletions
src/common/format.js
src/common/util.js
src/views/performanceManage/components/residentPerformance.vue
src/views/performanceManage/components/technicianPerformance.vue
src/common/format.js
View file @
ecf6fcf
...
...
@@ -60,3 +60,20 @@ export const afterTodayOptions = {
return
false
}
}
/**
* url下载文件
*
*/
export
function
downLoadFile
(
url
)
{
// console.log(row)
// return
const
Temp
=
document
.
createElement
(
'a'
)
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp
.
href
=
url
+
'?timestamp='
+
new
Date
().
getTime
()
// console.log(url)
// console.log(Temp.href)
document
.
body
.
append
(
Temp
)
Temp
.
click
()
document
.
body
.
removeChild
(
Temp
)
}
src/common/util.js
View file @
ecf6fcf
...
...
@@ -332,23 +332,6 @@ export const Util = {
}
}
/**
* url下载文件
*
*/
export
function
downLoadFile
(
url
)
{
// console.log(row)
// return
const
Temp
=
document
.
createElement
(
'a'
)
// Temp.href = process.env.VUE_APP_BASE_URL + '/article/export.do?articleId=' + row.id
Temp
.
href
=
url
+
'?timestamp='
+
new
Date
().
getTime
()
// console.log(url)
// console.log(Temp.href)
document
.
body
.
append
(
Temp
)
Temp
.
click
()
document
.
body
.
removeChild
(
Temp
)
}
export
const
showModal
=
Util
.
msg
export
const
showToast
=
Util
.
Info
export
const
showLoading
=
Util
.
loading
...
...
src/views/performanceManage/components/residentPerformance.vue
View file @
ecf6fcf
<
template
>
<div
class=
"shop"
>
<template>
<el-alert
title=
"每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class=
"tip-cla"
></el-alert>
<el-alert
title=
"每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class=
"tip-cla"
></el-alert>
</
template
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<div
slot=
"performanceMonth"
>
<el-date-picker
v-model=
"searchForm.performanceMonth"
type=
"month"
placeholder=
"选择月"
value-format=
"yyyy-MM"
format=
"yyyy-MM"
clearable
:picker-options=
"pickerOption"
></el-date-picker>
<el-date-picker
v-model=
"searchForm.performanceMonth"
type=
"month"
placeholder=
"选择月"
value-format=
"yyyy-MM"
format=
"yyyy-MM"
clearable
:picker-options=
"pickerOption"
></el-date-picker>
</div>
</GLCombiForm>
<div
class=
"table-header"
>
<h2>
驻店绩效列表
</h2>
<div>
<el-button
size=
"small"
@
click=
"exportExcel_summary"
plain
>
导出汇总表
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_detail"
>
导出明细
</el-button>
<el-button
size=
"small"
@
click=
"batchDistribute"
>
批量下发
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_summary"
plain
>
导出汇总表
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_detail"
>
导出明细
</el-button>
<el-button
size=
"small"
@
click=
"batchDistribute"
>
批量下发
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"residentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<GLTable
ref=
"residentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<span
slot=
"reference"
>
{{ scope.scope.yqMerchantName }}
</span>
</el-popover>
</div>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
:class=
"['dot', statusClass[scope.scope.status]]"
></div>
{{ reviewStatusObj[scope.scope.status] }}
</div>
...
...
@@ -42,25 +69,36 @@
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div> -->
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"handleCorrection(scope.scope)"
>
校正
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"distribute(scope.scope)"
>
下发
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看明细
</el-button>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"handleCorrection(scope.scope)"
>
校正
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"distribute(scope.scope)"
>
下发
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看明细
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<ResidentDetailDialog
v-if=
"isResidentVisible"
:isVisible=
"isResidentVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleDetail"
></ResidentDetailDialog>
<ResidentCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrectionClose"
></ResidentCorrectionDialog>
<ResidentDetailDialog
v-if=
"isResidentVisible"
:isVisible=
"isResidentVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleDetail"
></ResidentDetailDialog>
<ResidentCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrectionClose"
></ResidentCorrectionDialog>
</div>
</template>
<
script
>
// import * as dayjs from 'dayjs'
import
url
from
'@/assets/empty.png'
// import { downLoadFile } from '@/common/util
'
import
{
downLoadFile
}
from
'@/common/format
'
import
ResidentDetailDialog
from
'./residentDetailDialog.vue'
import
ResidentCorrectionDialog
from
'./residentCorrectionDialog.vue'
export
default
{
...
...
@@ -464,4 +502,5 @@ export default {
.grey
{
background
:
#999999
;
}
</
style
>
}
</
style
>
src/views/performanceManage/components/technicianPerformance.vue
View file @
ecf6fcf
<
template
>
<div
class=
"shop"
>
<template>
<el-alert
title=
"每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class=
"tip-cla"
></el-alert>
<el-alert
title=
"每月最后一天24:00按当月业务完成情况自动计算员工绩效。"
show-icon
class=
"tip-cla"
></el-alert>
</
template
>
<div
class=
"container"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"1"
:formObj=
"searchForm"
:formData=
"showFormData"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
>
<div
slot=
"performanceMonth"
>
<el-date-picker
v-model=
"searchForm.performanceMonth"
type=
"month"
placeholder=
"选择月"
value-format=
"yyyy-MM"
format=
"yyyy-MM"
clearable
:picker-options=
"pickerOption"
></el-date-picker>
<el-date-picker
v-model=
"searchForm.performanceMonth"
type=
"month"
placeholder=
"选择月"
value-format=
"yyyy-MM"
format=
"yyyy-MM"
clearable
:picker-options=
"pickerOption"
></el-date-picker>
</div>
</GLCombiForm>
<div
class=
"table-header"
>
<h2>
技师绩效列表
</h2>
<div>
<el-button
size=
"small"
@
click=
"exportExcel_summary"
plain
>
导出汇总表
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_detail"
>
导出明细
</el-button>
<el-button
size=
"small"
@
click=
"batchDistribute"
>
批量下发
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_summary"
plain
>
导出汇总表
</el-button>
<el-button
size=
"small"
@
click=
"exportExcel_detail"
>
导出明细
</el-button>
<el-button
size=
"small"
@
click=
"batchDistribute"
>
批量下发
</el-button>
</div>
</div>
<!-- 表格区域 开始 -->
<GLTable
ref=
"residentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<GLTable
ref=
"residentRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<span
slot=
"reference"
>
{{ scope.scope.yqMerchantName }}
</span>
</el-popover>
</div>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
:class=
"['dot', statusClass[scope.scope.status]]"
></div>
{{ reviewStatusObj[scope.scope.status] }}
</div>
...
...
@@ -42,25 +69,36 @@
:buttonItem="scope.scope"
:buttonNum="3"></GLTableButton>
</div> -->
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"handleCorrection(scope.scope)"
>
校正
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"distribute(scope.scope)"
>
下发
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看明细
</el-button>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"handleCorrection(scope.scope)"
>
校正
</el-button>
<el-button
type=
"text"
v-if=
"scope.scope.status == 0"
@
click=
"distribute(scope.scope)"
>
下发
</el-button>
<el-button
type=
"text"
@
click=
"handleDetail(scope.scope)"
>
查看明细
</el-button>
</div>
</GLTable>
<!-- 表格区域 end -->
</div>
<TechnicianDetailDialog
v-if=
"isTechnicianVisible"
:isVisible=
"isTechnicianVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleDetail"
></TechnicianDetailDialog>
<TechnicianCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrectionClose"
></TechnicianCorrectionDialog>
<TechnicianDetailDialog
v-if=
"isTechnicianVisible"
:isVisible=
"isTechnicianVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleDetail"
></TechnicianDetailDialog>
<TechnicianCorrectionDialog
v-if=
"isCorrectionVisible"
:isVisible=
"isCorrectionVisible"
:recordInfo=
"recordInfo"
@
handleClose=
"handleCorrectionClose"
></TechnicianCorrectionDialog>
</div>
</template>
<
script
>
// import * as dayjs from 'dayjs'
import
url
from
'@/assets/empty.png'
// import { downLoadFile } from '@/common/util
'
import
{
downLoadFile
}
from
'@/common/format
'
import
TechnicianDetailDialog
from
'./technicianDetailDialog.vue'
import
TechnicianCorrectionDialog
from
'./technicianCorrectionDialog.vue'
export
default
{
...
...
@@ -395,4 +433,5 @@ export default {
.grey
{
background
:
#999999
;
}
</
style
>
}
</
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