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 8796ba4f
authored
Jun 18, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'develop' into SAAS+V4.40.0-0624
2 parents
5bb8226f
cbe42a28
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
115 additions
and
61 deletions
src/views/goods/coupons/index.vue
src/views/residentManage/components/dialogueDetail.vue
src/views/residentManage/components/qualityDetail.vue
src/views/residentManage/components/qualityIndex.vue
src/views/residentManage/components/recepDetail.vue
src/views/residentManage/qualityControlList.vue
src/views/goods/coupons/index.vue
View file @
8796ba4
<!-- 发券宝 -->
<!-- 发券宝 -->
<
template
>
<
template
>
<d2-container
class=
"coupons"
>
<d2-container
class=
"coupons"
>
<div
class=
"header"
<div
class=
"header"
slot=
"header"
>
slot=
"header"
>
<d2-search
<d2-search
ref=
"showSearch"
ref=
"showSearch"
class=
"show-search"
class=
"show-search"
:search-form=
"parentSearchForm"
:search-form=
"parentSearchForm"
:form-data=
"copyShowFormData"
/>
:form-data=
"copyShowFormData"
/>
<div
class=
"up-btns"
>
<div
class=
"up-btns"
>
<el-button
size=
"small"
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSearch"
>
type=
"primary"
@
click=
"handleSearch"
>
查询
查询
</el-button>
</el-button>
<el-button
size=
"small"
<el-button
size=
"small"
@
click=
"handleReset"
>
重置
</el-button>
@
click=
"handleReset"
>
重置
</el-button>
</div>
</div>
</div>
</div>
<div
class=
"d2-container-content"
<div
class=
"d2-container-content"
style=
"position: positive"
>
style=
"position: positive;"
>
<span
style=
"position: absolute; right: 41px; top: 42px; z-index: 999"
>
<span
style=
"position: absolute; right: 41px; top: 42px; z-index: 999;"
>
<auth-button
<auth-button
:show-btn-ids=
"activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605']"
:show-btn-ids=
"
category=
"Button"
/>
activeName === 'storeList' ? ['9030601', '9030605'] : ['9030605']
"
category=
"Button"
/>
</span>
</span>
<el-tabs
v-model=
"activeName"
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleReset"
>
type=
"card"
<el-tab-pane
label=
"店面列表"
name=
"storeList"
>
@
tab-click=
"handleReset"
>
<store-list
<el-tab-pane
label=
"店面列表
"
v-if=
"activeName == 'storeList'
"
name=
"storeList"
>
ref=
"storeList"
<store-list
v-if=
"activeName == 'storeList'"
ref=
"storeList
"
:parent-search-form=
"parentSearchForm
"
:parent-search-form=
"parentSearchForm"
/>
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"领用明细"
<el-tab-pane
label=
"领用明细"
name=
"couponsDetail"
>
name=
"couponsDetail"
>
<coupons-detail
<coupons-detail
v-if=
"activeName == 'couponsDetail'"
ref=
"couponsDetail"
v-if=
"activeName == 'couponsDetail'"
:parent-search-form=
"parentSearchForm"
/>
ref=
"couponsDetail"
:parent-search-form=
"parentSearchForm"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
</div>
</div>
<edit-coupons-dialog
:coupons-visible=
"couponsVisible"
<edit-coupons-dialog
@
couponClose=
"couponClose"
/>
:coupons-visible=
"couponsVisible"
@
couponClose=
"couponClose"
/>
</d2-container>
</d2-container>
</
template
>
</
template
>
...
@@ -50,9 +53,9 @@ import storeList from './storeList'
...
@@ -50,9 +53,9 @@ import storeList from './storeList'
import
couponsDetail
from
'./couponsDetail'
import
couponsDetail
from
'./couponsDetail'
import
editCouponsDialog
from
'./editCouponsDialog'
import
editCouponsDialog
from
'./editCouponsDialog'
// import { exportListApi, exportDetailListApi } from '@api/coupons'
// import { exportListApi, exportDetailListApi } from '@api/coupons'
import
{
asyncExportExcel
}
from
'@api/sys.base'
//
import { asyncExportExcel } from '@api/sys.base'
import
{
getDistinctColum
}
from
'@api/coupons'
import
{
getDistinctColum
}
from
'@api/coupons'
import
{
deepClone
}
from
"@/common/util"
import
{
Util
,
deepClone
}
from
'@/common/util'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
BaseData
}
from
'@/common/constants.js'
import
{
mapActions
,
mapState
}
from
'vuex'
import
{
mapActions
,
mapState
}
from
'vuex'
export
default
{
export
default
{
...
@@ -255,6 +258,8 @@ export default {
...
@@ -255,6 +258,8 @@ export default {
var
params
=
{
var
params
=
{
...
this
.
parentSearchForm
,
...
this
.
parentSearchForm
,
startDate
:
this
.
parentSearchForm
.
useTime
&&
this
.
parentSearchForm
.
useTime
.
length
?
Util
.
dateFormate
(
this
.
parentSearchForm
.
useTime
[
0
],
'YYYY-MM-DD HH:mm:ss'
)
:
''
,
endDate
:
this
.
parentSearchForm
.
useTime
&&
this
.
parentSearchForm
.
useTime
.
length
?
Util
.
dateFormate
(
this
.
parentSearchForm
.
useTime
[
1
],
'YYYY-MM-DD'
)
+
' 23:59:59'
:
''
,
currentPage
:
1
,
currentPage
:
1
,
method
:
method
method
:
method
}
}
...
...
src/views/residentManage/components/dialogueDetail.vue
View file @
8796ba4
...
@@ -65,10 +65,7 @@
...
@@ -65,10 +65,7 @@
v-if=
"item.role % 2 === 1"
v-if=
"item.role % 2 === 1"
/>
/>
</div>
</div>
<div
<div
class=
"dig-content"
@
click=
"currentDialog(item)"
>
class=
"dig-content"
@
click=
"currentDialog(item.mergedOffset)"
>
{{
item
.
content
}}
{{
item
.
content
}}
</div>
</div>
</div>
</div>
...
@@ -257,13 +254,15 @@ export default {
...
@@ -257,13 +254,15 @@ export default {
.record-box
{
.record-box
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
.copy-btn
{
.copy-btn
{
margin-left
:
auto
;
margin-left
:
10px
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#2a58ad
;
color
:
#2a58ad
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
flex-shrink
:
0
;
cursor
:
pointer
;
cursor
:
pointer
;
.icon
{
.icon
{
width
:
16px
;
width
:
16px
;
...
...
src/views/residentManage/components/qualityDetail.vue
View file @
8796ba4
...
@@ -108,8 +108,17 @@ export default {
...
@@ -108,8 +108,17 @@ export default {
key
:
"carModel"
key
:
"carModel"
},
},
{
{
label
:
"业务场景"
,
key
:
"bussinessType"
,
formatter
(
row
)
{
let
result
=
{
1
:
"延保"
,
2
:
"轻改"
}[
row
.
bussinessType
]
return
result
||
"-"
}
},
{
label
:
"APP接待结果"
,
label
:
"APP接待结果"
,
formatter
(
row
)
{
formatter
(
row
)
{
// if (row.bussinessType == 2) return "-"
const
val
=
{
const
val
=
{
1
:
"成交"
,
1
:
"成交"
,
0
:
"战败"
0
:
"战败"
...
@@ -118,7 +127,7 @@ export default {
...
@@ -118,7 +127,7 @@ export default {
1
:
"#2CCA74"
,
1
:
"#2CCA74"
,
0
:
"#EB4E4E"
0
:
"#EB4E4E"
}[
row
.
receptionStatus
]
}[
row
.
receptionStatus
]
return
`<span style="font-size:2
2
px;color:
${
color
}
">
${
return
`<span style="font-size:2
0
px;color:
${
color
}
">
${
val
||
"-"
val
||
"-"
}
<
/span>
`
}
<
/span>
`
}
}
...
@@ -126,34 +135,32 @@ export default {
...
@@ -126,34 +135,32 @@ export default {
{
{
label: "预计营销结果",
label: "预计营销结果",
formatter(row) {
formatter(row) {
if (row.bussinessType == 2) return "-"
const color =
const color =
{
{
成交: "#2CCA74",
成交: "#2CCA74",
战败: "#EB4E4E"
战败: "#EB4E4E"
}[row.estimatedResult] || "#999999"
}[row.estimatedResult] || "#999999"
return `
<
span
style
=
"font-size:2
2
px;color:${color}"
>
$
{
return `
<
span
style
=
"font-size:2
0
px;color:${color}"
>
$
{
row
.
estimatedResult
||
"分析中"
row
.
estimatedResult
||
"分析中"
}
<
/span>
`
}
<
/span>
`
}
}
},
},
{
{
label
:
"
质检得
分"
,
label
:
"
话术评
分"
,
formatter
(
row
)
{
formatter
(
row
)
{
if
(
row
.
bussinessType
==
2
)
return
"-"
return
row
.
score
!=
null
return
row
.
score
!=
null
?
`<div class="num">
${
row
.
score
}
<span class="unit">分</span></div>`
?
`<div class="num">
${
row
.
score
}
<span class="unit">分</span></div>`
:
`<span style="font-size:2
2
px;color:#999">分析中</span>`
:
`<span style="font-size:2
0
px;color:#999">分析中</span>`
}
}
},
},
{
{
label
:
"
攻防得分
"
,
label
:
"
接待时长
"
,
formatter
(
row
)
{
formatter
(
row
)
{
return
row
.
defence
===
2
return
`<div class="num">
${
?
`<div class="num">
${
row
.
defencePoint
}
<span class="unit">分</span></div>`
row
.
duration
?
toMinutesAndSeconds
(
row
.
duration
)
:
"-"
:
row
.
defence
===
1
||
row
.
defence
===
0
||
row
.
defence
===
4
}
<
/div>
`
?
`<span style="font-size:22px;color:#999">分析中</span>`
:
row
.
defence
===
3
?
`<span style="font-size:22px;color:#999">未发现攻防</span>`
:
`<span style="font-size:22px;color:#999">-</span>`
}
}
}
}
],
],
...
@@ -227,7 +234,7 @@ export default {
...
@@ -227,7 +234,7 @@ export default {
padding
:
20px
;
padding
:
20px
;
justify-content
:
space-between
;
justify-content
:
space-between
;
&-item
{
&-item
{
width
:
calc
((
100%
-
40px
)
/
6
);
width
:
calc
((
100%
-
40px
)
/
7
);
background
:
#f7f9fa
;
background
:
#f7f9fa
;
border-radius
:
4px
;
border-radius
:
4px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
...
@@ -254,6 +261,7 @@ export default {
...
@@ -254,6 +261,7 @@ export default {
font-weight
:
400
;
font-weight
:
400
;
font-size
:
14px
;
font-size
:
14px
;
color
:
#333333
;
color
:
#333333
;
margin
:
0
2px
;
}
}
}
}
}
}
...
@@ -294,4 +302,3 @@ export default {
...
@@ -294,4 +302,3 @@ export default {
}
}
}
}
</
style
>
</
style
>
src/views/residentManage/components/qualityIndex.vue
View file @
8796ba4
This diff is collapsed.
Click to expand it.
src/views/residentManage/components/recepDetail.vue
View file @
8796ba4
...
@@ -89,10 +89,13 @@
...
@@ -89,10 +89,13 @@
<
template
v-else
>
--
</
template
>
<
template
v-else
>
--
</
template
>
</div>
</div>
<div
slot=
"scoreHtml"
slot-scope=
"scope"
>
<div
slot=
"scoreHtml"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.bussinessType != 2"
>
<template
v-if=
"scope.scope.score || scope.scope.score === 0"
>
<template
v-if=
"scope.scope.score || scope.scope.score === 0"
>
{{
scope
.
scope
.
score
}}
{{
scope
.
scope
.
score
}}
</
template
>
</
template
>
<
template
v-else
>
分析中
</
template
>
<
template
v-else
>
分析中
</
template
>
</template>
<
template
v-else
>
-
</
template
>
</div>
</div>
<div
<div
slot=
"estimatedResult"
slot=
"estimatedResult"
...
@@ -106,13 +109,26 @@
...
@@ -106,13 +109,26 @@
: 'grayBg'
: 'grayBg'
]"
]"
>
>
<div
v-if=
"scope.scope.bussinessType != 2"
:class=
"['tag', setTagColor(scope.scope.estimatedResult)]"
>
{{ scope.scope.estimatedResult }}
{{ scope.scope.estimatedResult }}
</div>
</div>
<div
v-else
></div>
</div>
<div
slot=
"defencePoint"
slot-scope=
"scope"
>
<div
slot=
"defencePoint"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.defence === 2"
>
{{
<
template
v-if=
"scope.scope.defence === 2"
>
{{
scope
.
scope
.
defencePoint
?
scope
.
scope
.
defencePoint
:
'-'
scope
.
scope
.
defencePoint
?
scope
.
scope
.
defencePoint
:
"-"
}}
</
template
>
}}
</
template
>
<
template
v-else-if=
"scope.scope.defence === 1||scope.scope.defence === 0||scope.scope.defence === 4"
>
分析中
</
template
>
<
template
v-else-if=
"
scope.scope.defence === 1 ||
scope.scope.defence === 0 ||
scope.scope.defence === 4
"
>
分析中
</
template
>
<
template
v-else-if=
"scope.scope.defence === 3"
<
template
v-else-if=
"scope.scope.defence === 3"
>
未发现攻防
</
template
>
未发现攻防
</
template
>
>
...
@@ -120,9 +136,18 @@
...
@@ -120,9 +136,18 @@
</div>
</div>
<div
slot=
"customerTypeName"
slot-scope=
"scope"
>
<div
slot=
"customerTypeName"
slot-scope=
"scope"
>
<
template
v-if=
"scope.scope.defence === 2"
>
{{
<
template
v-if=
"scope.scope.defence === 2"
>
{{
scope
.
scope
.
customerTypeName
?
scope
.
scope
.
customerTypeName
:
'-'
scope
.
scope
.
customerTypeName
?
scope
.
scope
.
customerTypeName
:
"-"
}}
</
template
>
}}
</
template
>
<
template
v-else-if=
"scope.scope.defence === 1||scope.scope.defence === 0||scope.scope.defence === 4"
>
分析中
</
template
>
<
template
v-else-if=
"
scope.scope.defence === 1 ||
scope.scope.defence === 0 ||
scope.scope.defence === 4
"
>
分析中
</
template
>
<
template
v-else-if=
"scope.scope.defence === 3"
>
未知
</
template
>
<
template
v-else-if=
"scope.scope.defence === 3"
>
未知
</
template
>
<
template
v-else
>
-
</
template
>
<
template
v-else
>
-
</
template
>
</div>
</div>
...
@@ -204,12 +229,21 @@ export default {
...
@@ -204,12 +229,21 @@ export default {
prop
:
"carModel"
prop
:
"carModel"
},
},
{
{
label
:
"业务场景"
,
prop
:
"bussinessType"
,
formatter
(
row
)
{
let
result
=
{
1
:
"延保"
,
2
:
"轻改"
}[
row
.
bussinessType
]
return
result
||
"-"
}
},
{
label
:
"APP接待结果"
,
label
:
"APP接待结果"
,
formatter
(
row
)
{
formatter
(
row
)
{
return
{
let
result
=
{
1
:
"成交"
,
1
:
"成交"
,
0
:
"战败"
0
:
"战败"
}[
row
.
receptionStatus
]
}[
row
.
receptionStatus
]
return
result
||
"-"
}
}
},
},
{
{
...
@@ -370,8 +404,9 @@ export default {
...
@@ -370,8 +404,9 @@ export default {
})
})
},
},
setTableFinishFun
(
data
)
{
setTableFinishFun
(
data
)
{
let
{
page
}
=
this
.
$refs
.
recepDetail
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
data
[
i
].
key
=
i
+
1
data
[
i
].
key
=
i
+
1
+
page
.
pageSize
*
(
page
.
currentPage
-
1
)
}
}
},
},
getOptionsList
()
{
getOptionsList
()
{
...
@@ -395,6 +430,16 @@ export default {
...
@@ -395,6 +430,16 @@ export default {
)
)
}
}
})
})
},
setTagColor
(
estimatedResult
)
{
switch
(
estimatedResult
)
{
case
"成交"
:
return
"greenBg"
case
"战败"
:
return
"redBg"
default
:
return
"grayBg"
}
}
}
}
}
}
}
...
...
src/views/residentManage/qualityControlList.vue
View file @
8796ba4
...
@@ -96,12 +96,12 @@ export default {
...
@@ -96,12 +96,12 @@ export default {
},
},
// 在beforeDestroy钩子中移除事件监听
// 在beforeDestroy钩子中移除事件监听
beforeDestroy
()
{
beforeDestroy
()
{
//
window.removeEventListener('popstate', this.preventBack)
window
.
removeEventListener
(
'popstate'
,
this
.
preventBack
)
},
},
// 在你的Vue组件的mounted钩子中添加事件监听
// 在你的Vue组件的mounted钩子中添加事件监听
mounted
()
{
mounted
()
{
//
history.pushState(null, null, document.URL)
history
.
pushState
(
null
,
null
,
document
.
URL
)
//
window.addEventListener('popstate', this.preventBack)
window
.
addEventListener
(
'popstate'
,
this
.
preventBack
)
if
(
this
.
tabboxWidth
==
0
)
this
.
tabboxWidth
=
this
.
$refs
.
tabbox
.
offsetWidth
if
(
this
.
tabboxWidth
==
0
)
this
.
tabboxWidth
=
this
.
$refs
.
tabbox
.
offsetWidth
},
},
methods
:
{
methods
:
{
...
@@ -110,8 +110,6 @@ export default {
...
@@ -110,8 +110,6 @@ export default {
const
[
recep
]
=
this
.
$refs
[
`recep-
${
this
.
windowId
}
`
]
const
[
recep
]
=
this
.
$refs
[
`recep-
${
this
.
windowId
}
`
]
if
(
recep
&&
recep
.
isQualityVisible
)
recep
.
isQualityVisible
=
false
if
(
recep
&&
recep
.
isQualityVisible
)
recep
.
isQualityVisible
=
false
else
this
.
windowId
=
-
1
else
this
.
windowId
=
-
1
console
.
log
(
recep
)
// this.windowId = -1
history
.
pushState
(
null
,
null
,
document
.
URL
)
history
.
pushState
(
null
,
null
,
document
.
URL
)
}
else
this
.
$router
.
go
(
-
1
)
}
else
this
.
$router
.
go
(
-
1
)
},
},
...
...
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