Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-quality
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 4e2ccf65
authored
Mar 20, 2024
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
976649f6
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
34 deletions
src/views/qualityManage/el-input-range/index.vue
src/views/qualityManage/index.vue
src/views/qualityManage/qualityAnalyse.vue
src/views/qualityManage/recepDetail.vue
src/views/qualityManage/el-input-range/index.vue
View file @
4e2ccf6
...
@@ -17,10 +17,9 @@
...
@@ -17,10 +17,9 @@
<el-input
<el-input
v-model=
"userInput[0]"
v-model=
"userInput[0]"
:placeholder=
"startPlaceholder"
:placeholder=
"startPlaceholder"
@
blur=
"handleBlur"
@
blur=
"handleBlur
(0)
"
@
input=
"handleStartInput"
@
input=
"handleStartInput"
class=
"el-range-input"
class=
"el-range-input"
@
keydown=
"handleKeydown"
></el-input>
></el-input>
<span
class=
"el-range-separator"
>
至
</span>
<span
class=
"el-range-separator"
>
至
</span>
<el-input
<el-input
...
@@ -28,9 +27,8 @@
...
@@ -28,9 +27,8 @@
:placeholder=
"endPlaceholder"
:placeholder=
"endPlaceholder"
@
input=
"handleEndInput"
@
input=
"handleEndInput"
@
focus=
"handleFocus"
@
focus=
"handleFocus"
@
blur=
"handleBlur"
@
blur=
"handleBlur
(1)
"
class=
"el-range-input"
class=
"el-range-input"
@
keydown=
"handleKeydown"
></el-input>
></el-input>
<i
<i
...
@@ -67,24 +65,15 @@ export default {
...
@@ -67,24 +65,15 @@ export default {
},
},
methods
:
{
methods
:
{
handleStartInput
(
event
)
{
handleStartInput
(
event
)
{
console
.
log
(
event
)
this
.
userInput
[
0
]
=
event
if
(
this
.
userInput
)
{
this
.
userInput
=
[
event
,
this
.
userInput
[
1
]]
}
else
{
this
.
userInput
=
[
event
,
null
]
}
},
},
handleEndInput
(
event
)
{
handleEndInput
(
event
)
{
if
(
this
.
userInput
)
{
this
.
userInput
[
1
]
=
event
this
.
userInput
=
[
this
.
userInput
[
0
],
event
]
}
else
{
this
.
userInput
=
[
null
,
event
]
}
},
},
handleClickIcon
(
event
)
{
handleClickIcon
(
event
)
{
this
.
userInput
[
0
]
=
null
this
.
userInput
[
0
]
=
null
this
.
userInput
[
1
]
=
null
this
.
userInput
[
1
]
=
null
},
},
valueIsEmpty
()
{
valueIsEmpty
()
{
const
val
=
this
.
userInput
const
val
=
this
.
userInput
...
@@ -113,16 +102,23 @@ export default {
...
@@ -113,16 +102,23 @@ export default {
this
.
$emit
(
"focus"
,
this
)
this
.
$emit
(
"focus"
,
this
)
}
}
},
},
handleBlur
()
{
handleBlur
(
index
)
{
this
.
pickerVisible
=
false
this
.
pickerVisible
=
false
let
val
=
this
.
userInput
[
index
]
let
isNumber
=
/^
\d
+
(\.\d
+
)?
$/
.
test
(
val
)
if
(
!
isNumber
)
{
val
=
null
}
if
(
val
>
100
)
val
=
100
this
.
userInput
[
index
]
=
val
this
.
contrastValue
()
this
.
contrastValue
()
},
},
contrastValue
()
{
contrastValue
()
{
let
val
=
this
.
userInput
let
val
=
this
.
userInput
if
(
Array
.
isArray
(
val
))
{
if
(
Array
.
isArray
(
val
))
{
if
(
val
[
0
]
>
val
[
1
])
{
if
(
val
[
0
]
>
val
[
1
])
{
val
[
1
]
=
null
val
[
1
]
=
null
console
.
log
(
val
)
}
}
}
}
}
}
...
...
src/views/qualityManage/index.vue
View file @
4e2ccf6
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
<span
v-else
>
{{
scope
.
scope
.
serviceList
.
join
(
''
)
}}
</span>
<span
v-else
>
{{
scope
.
scope
.
serviceList
.
join
(
''
)
}}
</span>
</
template
>
</
template
>
</div>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"recepDetail(scope.scope)"
:disabled=
"!scope.scope.score && scope.scope.score != 0"
>
接待明细
</el-button>
<el-button
type=
"text"
@
click=
"recepDetail(scope.scope)"
:disabled=
"!scope.scope.score && scope.scope.score != 0"
>
接待明细
</el-button>
</div>
</div>
...
@@ -159,6 +160,7 @@ export default {
...
@@ -159,6 +160,7 @@ export default {
{
{
label
:
'手机号'
,
label
:
'手机号'
,
name
:
'phoneNumber'
,
name
:
'phoneNumber'
,
placeholder
:
"请输入手机号(至少4位)"
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
'20'
,
maxlength
:
'20'
,
isClear
:
true
isClear
:
true
...
@@ -293,6 +295,7 @@ export default {
...
@@ -293,6 +295,7 @@ export default {
{
{
label
:
'话术质检评分/分'
,
label
:
'话术质检评分/分'
,
prop
:
'score'
,
prop
:
'score'
,
// addHtml: "scoreHTml",
width
:
'170px'
,
width
:
'170px'
,
renderHeader
:
createElement
=>
{
renderHeader
:
createElement
=>
{
return
createElement
(
'div'
,
{
style
:
'margin-left:-10px'
},
[
return
createElement
(
'div'
,
{
style
:
'margin-left:-10px'
},
[
...
@@ -335,7 +338,7 @@ export default {
...
@@ -335,7 +338,7 @@ export default {
getServiceStore
()
{
getServiceStore
()
{
this
.
$apis
.
quality
this
.
$apis
.
quality
.
listShop4sByRef
({
.
listShop4sByRef
({
scene
:
0
yqMerchantId
:
this
.
$globalState
.
session
.
merchantId
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
baseData
.
storeIdList
=
res
||
[]
this
.
baseData
.
storeIdList
=
res
||
[]
...
@@ -353,11 +356,11 @@ export default {
...
@@ -353,11 +356,11 @@ export default {
})
})
},
},
recepDetail
(
row
)
{
recepDetail
(
row
)
{
if
(
row
.
score
=
=
0
)
{
if
(
!
row
.
score
&&
row
.
score
!
=
0
)
{
this
.
$confirm
(
'质检分析中,请耐心等待'
,
'提示'
,
{
this
.
$confirm
(
"质检分析中,请耐心等待"
,
"提示"
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
"取消"
,
type
:
'warning'
type
:
"warning"
})
})
return
return
}
}
...
@@ -368,9 +371,9 @@ export default {
...
@@ -368,9 +371,9 @@ export default {
}
}
})
})
},
},
toMinutesAndSeconds
(
hours
e
)
{
toMinutesAndSeconds
(
tim
e
)
{
const
h
=
Math
.
floor
(
hourse
/
6
0
)
const
h
=
Math
.
floor
(
time
/
360
0
)
const
m
=
parseInt
(
hourse
%
60
)
const
m
=
parseInt
(
(
time
%
3600
)
/
60
)
return
{
return
{
h
,
h
,
m
m
...
@@ -382,7 +385,8 @@ export default {
...
@@ -382,7 +385,8 @@ export default {
if
(
this
.
searchForm
.
searchdate
)
{
if
(
this
.
searchForm
.
searchdate
)
{
this
.
searchFormSearch
.
searchdate
=
Util
.
dateFormate
(
this
.
searchForm
.
searchdate
,
'YYYY-MM-DD'
)
this
.
searchFormSearch
.
searchdate
=
Util
.
dateFormate
(
this
.
searchForm
.
searchdate
,
'YYYY-MM-DD'
)
}
}
console
.
log
(
this
.
$global
)
this
.
searchFormSearch
.
serviceMerchantNo
=
this
.
$globalState
.
session
.
merchantId
if
(
this
.
searchFormSearch
.
qualityTestScore
)
{
if
(
this
.
searchFormSearch
.
qualityTestScore
)
{
this
.
searchFormSearch
.
qualityTestScoreBegin
=
this
.
searchFormSearch
.
qualityTestScore
[
0
]
this
.
searchFormSearch
.
qualityTestScoreBegin
=
this
.
searchFormSearch
.
qualityTestScore
[
0
]
this
.
searchFormSearch
.
qualityTestScoreEnd
=
this
.
searchFormSearch
.
qualityTestScore
[
1
]
this
.
searchFormSearch
.
qualityTestScoreEnd
=
this
.
searchFormSearch
.
qualityTestScore
[
1
]
...
@@ -416,6 +420,9 @@ export default {
...
@@ -416,6 +420,9 @@ export default {
})
})
},
},
handleSearch
()
{
handleSearch
()
{
if
(
this
.
searchForm
.
phoneNumber
&&
this
.
searchForm
.
phoneNumber
.
length
<
4
)
{
return
}
this
.
$refs
.
qualityTable
.
refreshTable
(
true
,
true
)
this
.
$refs
.
qualityTable
.
refreshTable
(
true
,
true
)
// this.stockMonthReportCount()
// this.stockMonthReportCount()
},
},
...
...
src/views/qualityManage/qualityAnalyse.vue
View file @
4e2ccf6
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
<el-radio-group
v-model=
"searchForm.hitResult"
>
<el-radio-group
v-model=
"searchForm.hitResult"
>
<el-radio-button
label=
""
>
全部
</el-radio-button>
<el-radio-button
label=
""
>
全部
</el-radio-button>
<el-radio-button
label=
"1"
>
命中
</el-radio-button>
<el-radio-button
label=
"1"
>
命中
</el-radio-button>
<el-radio-button
label=
"
2
"
>
未命中
</el-radio-button>
<el-radio-button
label=
"
0
"
>
未命中
</el-radio-button>
</el-radio-group>
</el-radio-group>
</div>
</div>
<GLTable
ref=
"analyseTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
:pageConf=
"pageConf"
:noDataImg=
"url"
>
<GLTable
ref=
"analyseTable"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
:pageConf=
"pageConf"
:noDataImg=
"url"
>
...
@@ -59,7 +59,8 @@ export default {
...
@@ -59,7 +59,8 @@ export default {
{
{
text
:
'话术评分'
,
text
:
'话术评分'
,
formatter
:
data
=>
{
formatter
:
data
=>
{
return
`<span style="font-weight:700;font-size:26px;">
${
data
.
averageQualityTestScore
?
data
.
averageQualityTestScore
:
'0'
}
</span>分`
console
.
log
(
data
,
11111111111
)
return
`<span style="font-weight:700;font-size:26px;">
${
data
.
score
?
data
.
score
:
'0'
}
</span>分`
}
}
},
},
{
{
...
...
src/views/qualityManage/recepDetail.vue
View file @
4e2ccf6
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
<el-input-range
start-placeholder=
"请输入"
end-placeholder=
"请输入"
:displayValue=
"searchForm.qualityTestScore"
></el-input-range>
<el-input-range
start-placeholder=
"请输入"
end-placeholder=
"请输入"
:displayValue=
"searchForm.qualityTestScore"
></el-input-range>
</
template
>
</
template
>
</GLCombiForm>
</GLCombiForm>
<GLTable
ref=
"recepDetail"
:get-list-api=
"getListApi"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchF
n"
:pageConf=
"pageConf"
>
<GLTable
ref=
"recepDetail"
:get-list-api=
"getListApi"
:hasNum=
"false"
:search-form=
"searchFormSearch"
:table-params=
"tableParams"
:before-search-fn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFu
n"
:pageConf=
"pageConf"
>
<
template
slot=
"auth-button"
slot-scope=
"scope"
>
<
template
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"qualitDetail(scope.scope)"
>
质检详情
</el-button>
<el-button
type=
"text"
@
click=
"qualitDetail(scope.scope)"
>
质检详情
</el-button>
</
template
>
</
template
>
...
@@ -97,6 +97,10 @@ export default {
...
@@ -97,6 +97,10 @@ export default {
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
{
{
label
:
"接待批次"
,
prop
:
"key"
},
{
label
:
'开始接待时间'
,
label
:
'开始接待时间'
,
prop
:
'startTime'
prop
:
'startTime'
},
},
...
@@ -178,7 +182,7 @@ export default {
...
@@ -178,7 +182,7 @@ export default {
this
.
searchFormSearch
.
endTime
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
recepTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
this
.
searchFormSearch
.
endTime
=
Util
.
dateFormate
(
this
.
searchFormSearch
.
recepTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
}
}
if
(
this
.
searchFormSearch
.
estimatedResult
)
{
if
(
this
.
searchFormSearch
.
estimatedResult
Id
)
{
this
.
searchFormSearch
.
estimatedResult
=
this
.
baseData
.
estimatedResultList
.
find
(
item
=>
item
.
confId
==
this
.
searchFormSearch
.
estimatedResultId
).
confLabel
this
.
searchFormSearch
.
estimatedResult
=
this
.
baseData
.
estimatedResultList
.
find
(
item
=>
item
.
confId
==
this
.
searchFormSearch
.
estimatedResultId
).
confLabel
}
}
...
@@ -189,6 +193,11 @@ export default {
...
@@ -189,6 +193,11 @@ export default {
resolve
()
resolve
()
})
})
},
},
setTableFinishFun
(
data
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
data
[
i
].
key
=
i
+
1
}
},
getOptionsList
()
{
getOptionsList
()
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
this
.
showFormData
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
type
===
'select'
)
{
if
(
item
.
type
===
'select'
)
{
...
...
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