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 20c9e390
authored
Mar 22, 2024
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS-V4.37.0' of
http://192.168.3.233:8090/saas_plus/dj-car-life-s…
…ystem into SAAS-V4.37.0
2 parents
bd7a65f4
8c5fb642
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
86 additions
and
73 deletions
src/views/index/components/carDialog.vue
src/views/systemConfig/ShopConfig/components/flagDialog.vue
src/views/systemConfig/ShopConfig/setWorkorderDetail.vue
src/views/index/components/carDialog.vue
View file @
20c9e39
...
@@ -137,12 +137,12 @@ export default {
...
@@ -137,12 +137,12 @@ export default {
getParams
()
{
getParams
()
{
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
this
.
searchFormSearch
=
deepClone
(
this
.
searchForm
)
if
(
this
.
searchFormSearch
.
createdDate
)
{
if
(
this
.
searchFormSearch
.
createdDate
)
{
this
.
searchFormSearch
.
reportStartDate
=
dayjs
(
this
.
searchFormSearch
.
createdStartDate
=
this
.
searchFormSearch
.
createdDate
[
0
]
dayjs
(
this
.
searchFormSearch
.
createdDate
[
0
]).
format
(
"YYYY-MM-DD"
)
+
).
format
(
"YYYY-MM-DD"
)
" 00:00:00"
this
.
searchFormSearch
.
reportEndDate
=
dayjs
(
this
.
searchFormSearch
.
createdEndDate
=
this
.
searchFormSearch
.
createdDate
[
1
]
dayjs
(
this
.
searchFormSearch
.
createdDate
[
1
]).
format
(
"YYYY-MM-DD"
)
+
).
format
(
"YYYY-MM-DD"
)
" 23:59:59"
}
}
return
this
.
searchFormSearch
return
this
.
searchFormSearch
},
},
...
...
src/views/systemConfig/ShopConfig/components/flagDialog.vue
View file @
20c9e39
...
@@ -11,22 +11,20 @@
...
@@ -11,22 +11,20 @@
<el-form-item
label=
"商户号:"
class=
"flag-div"
>
<el-form-item
label=
"商户号:"
class=
"flag-div"
>
{{
info
.
merchantId
}}
{{
info
.
merchantId
}}
</el-form-item>
</el-form-item>
<div
v-if=
"item.commLabelGroupInfo.groupType == '2'"
>
<el-form-item
label=
""
v-for=
"(item, index1) in commLabelUnitListCopy"
:key=
"index1"
class=
"flag-div"
>
<el-form-item
label=
""
v-for=
"(item, index1) in commLabelUnitList"
class=
"flag-div"
:key=
"index1"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
commLabelGroupInfo
.
groupName
}}
</span>
<span
class=
"tips-label"
>
{{
item
.
commLabelGroupInfo
.
groupName
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<div
slot=
"content"
>
{{
item
.
commLabelGroupInfo
.
groupDesc
}}
</div>
<div
slot=
"content"
>
{{
item
.
commLabelGroupInfo
.
groupDesc
}}
</div>
<span
class=
"tips-icon"
/>
<span
class=
"tips-icon"
/>
</el-tooltip>
:
</el-tooltip>
:
</span>
</span>
<span
v-for=
"(obj, index2) in item.commLabelList"
class=
"label-span"
:key=
"index2"
>
{{
obj
.
labelName
<span
v-for=
"(obj, index2) in item.commLabelList"
class=
"label-span"
:key=
"index2"
>
{{
obj
.
labelName
}}
</span>
}}
</span>
</el-form-item>
</el-form-item>
</div>
<div
class=
"div_g"
>
<el-form-item
label=
""
v-for=
"(item, index1) in groupUnitListCopy"
class=
"flag-div"
:key=
"index1"
>
<div
class=
"div_g"
v-if=
"item.groupType == '1'"
>
<el-form-item
label=
""
v-for=
"(item, index1) in groupUnitList"
:key=
"index1"
class=
"flag-div"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-block"
slot=
"label"
>
<span
class=
"tips-label"
>
{{
item
.
groupName
}}
</span>
<span
class=
"tips-label"
>
{{
item
.
groupName
}}
</span>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
<el-tooltip
popper-class=
"tooltip-class"
effect=
"dark"
placement=
"right"
>
...
@@ -36,8 +34,7 @@
...
@@ -36,8 +34,7 @@
</span>
</span>
<span
v-for=
"(obj, index2) in item.labelUnitList"
class=
"label-span"
:key=
"index2"
<span
v-for=
"(obj, index2) in item.labelUnitList"
class=
"label-span"
:key=
"index2"
:class=
"
{ 'label-span-choose': obj.choose }" @click="chooseLabel(index1, index2, obj, item)">
{{
:class=
"
{ 'label-span-choose': obj.choose }" @click="chooseLabel(index1, index2, obj, item)">
{{
obj
.
labelName
obj
.
labelName
}}
</span>
}}
</span>
</el-form-item>
</el-form-item>
</div>
</div>
</el-form>
</el-form>
...
@@ -47,24 +44,24 @@
...
@@ -47,24 +44,24 @@
<
script
>
<
script
>
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
// import { sceneCodeList, transferTypeList } from '@/common/constants.js'
import
{
deepClone
}
from
'@/common/util'
import
{
Util
,
deepClone
}
from
"@/common/util"
import
{
queryLabelGroupTree
,
shopLabelDetail
,
updateShopLabel
}
from
'@/api/shopConfig.js'
import
{
queryLabelGroupTree
,
shopLabelDetail
,
updateShopLabel
}
from
"@/api/shopConfig.js"
export
default
{
export
default
{
name
:
'FlagDialog'
,
name
:
"FlagDialog"
,
data
()
{
data
()
{
return
{
return
{
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
userInfo
:
this
.
$store
.
state
.
d2admin
.
user
.
info
,
infoForm
:
{
infoForm
:
{},
},
dialogConfig
:
{
dialogConfig
:
{
title
:
'门店标签'
,
title
:
"门店标签"
,
width
:
'1080px'
width
:
"1080px"
},
editChildRef
:
'editChildRef'
,
baseData
:
{
},
},
editChildRef
:
"editChildRef"
,
baseData
:
{},
groupUnitList
:
[],
groupUnitList
:
[],
commLabelUnitList
:
[]
commLabelUnitList
:
[]
}
}
...
@@ -80,16 +77,25 @@ export default {
...
@@ -80,16 +77,25 @@ export default {
default
:
null
default
:
null
}
}
},
},
watch
:
{
watch
:
{},
},
computed
:
{
computed
:
{
visible
:
{
visible
:
{
get
()
{
get
()
{
return
this
.
flagVisible
return
this
.
flagVisible
},
},
set
(
newVal
)
{
set
(
newVal
)
{
this
.
$emit
(
'dialogClose'
,
{
flag
:
newVal
,
attrName
:
'flagVisible'
})
this
.
$emit
(
"dialogClose"
,
{
flag
:
newVal
,
attrName
:
"flagVisible"
})
}
}
},
commLabelUnitListCopy
()
{
return
this
.
commLabelUnitList
.
map
(
(
item
)
=>
item
.
commLabelGroupInfo
.
groupType
==
"2"
)
},
groupUnitListCopy
()
{
return
this
.
groupUnitList
.
map
(
(
item
)
=>
item
.
groupType
==
'1'
)
}
}
},
},
...
@@ -99,11 +105,10 @@ export default {
...
@@ -99,11 +105,10 @@ export default {
},
},
methods
:
{
methods
:
{
queryLabelGroupTree
()
{
queryLabelGroupTree
()
{
var
params
=
{}
var
params
=
{}
params
.
pageSize
=
100
params
.
pageSize
=
100
queryLabelGroupTree
(
params
).
then
(
res
=>
{
queryLabelGroupTree
(
params
).
then
(
(
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
groupUnitList
=
deepClone
(
res
.
groupUnitList
)
this
.
groupUnitList
=
deepClone
(
res
.
groupUnitList
)
this
.
shopLabelDetail
()
this
.
shopLabelDetail
()
...
@@ -113,23 +118,25 @@ export default {
...
@@ -113,23 +118,25 @@ export default {
shopLabelDetail
()
{
shopLabelDetail
()
{
var
params
=
{}
var
params
=
{}
params
.
merchantId
=
this
.
info
.
merchantId
params
.
merchantId
=
this
.
info
.
merchantId
shopLabelDetail
(
params
).
then
(
res
=>
{
shopLabelDetail
(
params
).
then
(
(
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
this
.
commLabelUnitList
=
deepClone
(
res
.
commLabelUnitList
)
this
.
commLabelUnitList
=
deepClone
(
res
.
commLabelUnitList
)
const
baseModifiableIds
=
[]
// 返回的已标记标签ID集合
const
baseModifiableIds
=
[]
// 返回的已标记标签ID集合
this
.
commLabelUnitList
&&
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
this
.
commLabelUnitList
&&
if
(
item
.
commLabelGroupInfo
.
groupType
==
'1'
)
{
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
item
.
commLabelList
.
forEach
(
obj
=>
{
if
(
item
.
commLabelGroupInfo
.
groupType
==
"1"
)
{
item
.
commLabelList
.
forEach
((
obj
)
=>
{
baseModifiableIds
.
push
(
obj
.
labelId
)
baseModifiableIds
.
push
(
obj
.
labelId
)
})
})
}
}
})
})
console
.
log
(
'aaa'
,
baseModifiableIds
)
console
.
log
(
"aaa"
,
baseModifiableIds
)
// 判断需要回显的标签
// 判断需要回显的标签
this
.
groupUnitList
=
this
.
groupUnitList
.
map
(
item
=>
{
this
.
groupUnitList
=
this
.
groupUnitList
.
map
((
item
)
=>
{
if
(
item
.
groupType
==
'1'
)
{
// 可标识标签
if
(
item
.
groupType
==
"1"
)
{
item
.
labelUnitList
=
item
.
labelUnitList
.
map
(
el
=>
{
// 可标识标签
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
el
.
labelId
)
!=
-
1
)
{
item
.
labelUnitList
=
item
.
labelUnitList
.
map
((
el
)
=>
{
if
(
baseModifiableIds
.
findIndex
((
o
)
=>
o
==
el
.
labelId
)
!=
-
1
)
{
el
.
choose
=
true
el
.
choose
=
true
}
else
{
}
else
{
el
.
choose
=
false
el
.
choose
=
false
...
@@ -139,12 +146,12 @@ export default {
...
@@ -139,12 +146,12 @@ export default {
}
}
return
item
return
item
})
})
console
.
log
(
'bbb'
,
this
.
groupUnitList
)
console
.
log
(
"bbb"
,
this
.
groupUnitList
)
})
})
},
},
chooseLabel
(
idx1
,
idx2
,
obj
,
group
)
{
chooseLabel
(
idx1
,
idx2
,
obj
,
group
)
{
if
(
group
.
groupType
==
'1'
)
{
if
(
group
.
groupType
==
"1"
)
{
this
.
groupUnitList
[
idx1
].
labelUnitList
[
idx2
].
choose
=
!
obj
.
choose
this
.
groupUnitList
[
idx1
].
labelUnitList
[
idx2
].
choose
=
!
obj
.
choose
this
.
groupUnitList
=
deepClone
(
this
.
groupUnitList
)
this
.
groupUnitList
=
deepClone
(
this
.
groupUnitList
)
}
}
...
@@ -154,59 +161,62 @@ export default {
...
@@ -154,59 +161,62 @@ export default {
var
info
=
deepClone
(
this
.
info
)
var
info
=
deepClone
(
this
.
info
)
var
params
=
{}
var
params
=
{}
params
.
merchantId
=
info
.
merchantId
params
.
merchantId
=
info
.
merchantId
params
.
labelIdAddList
=
[]
// 需新增的标签id列表
params
.
labelIdAddList
=
[]
// 需新增的标签id列表
params
.
labelIdDelList
=
[]
// 需取消的标签id列表
params
.
labelIdDelList
=
[]
// 需取消的标签id列表
const
baseModifiableIds
=
[]
// 返回的已标记标签ID集合
const
baseModifiableIds
=
[]
// 返回的已标记标签ID集合
this
.
commLabelUnitList
&&
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
this
.
commLabelUnitList
&&
if
(
item
.
commLabelGroupInfo
.
groupType
==
'1'
)
{
this
.
commLabelUnitList
.
forEach
((
item
)
=>
{
item
.
commLabelList
.
forEach
(
obj
=>
{
if
(
item
.
commLabelGroupInfo
.
groupType
==
"1"
)
{
item
.
commLabelList
.
forEach
((
obj
)
=>
{
baseModifiableIds
.
push
(
obj
.
labelId
)
baseModifiableIds
.
push
(
obj
.
labelId
)
})
})
}
}
})
})
console
.
log
(
'baseModifiableIds'
,
baseModifiableIds
)
console
.
log
(
"baseModifiableIds"
,
baseModifiableIds
)
const
flagItem
=
[]
// 这次更改过标记的标签ID集合
const
flagItem
=
[]
// 这次更改过标记的标签ID集合
this
.
groupUnitList
.
forEach
((
item
)
=>
{
this
.
groupUnitList
.
forEach
((
item
)
=>
{
if
(
item
.
groupType
==
'1'
)
{
if
(
item
.
groupType
==
"1"
)
{
item
.
labelUnitList
.
forEach
(
obj
=>
{
item
.
labelUnitList
.
forEach
(
(
obj
)
=>
{
if
(
obj
.
hasOwnProperty
(
"choose"
))
{
flagItem
.
push
(
obj
)
}
if
(
obj
.
hasOwnProperty
(
"choose"
))
flagItem
.
push
(
obj
)
})
})
}
}
})
})
console
.
log
(
'flagItem'
,
flagItem
)
console
.
log
(
"flagItem"
,
flagItem
)
const
flagItem_ids_Y
=
[]
// 这次已标识
const
flagItem_ids_Y
=
[]
// 这次已标识
const
flagItem_ids_N
=
[]
// 这次取消标识
const
flagItem_ids_N
=
[]
// 这次取消标识
flagItem
&&
flagItem
.
forEach
((
item
)
=>
{
flagItem
&&
flagItem
.
forEach
((
item
)
=>
{
if
(
item
.
choose
)
{
if
(
item
.
choose
)
{
flagItem_ids_Y
.
push
(
item
.
labelId
)
flagItem_ids_Y
.
push
(
item
.
labelId
)
}
else
{
}
else
{
flagItem_ids_N
.
push
(
item
.
labelId
)
flagItem_ids_N
.
push
(
item
.
labelId
)
}
}
})
})
console
.
log
(
'flagItem_ids_Y'
,
flagItem_ids_Y
)
console
.
log
(
"flagItem_ids_Y"
,
flagItem_ids_Y
)
console
.
log
(
'flagItem_ids_N'
,
flagItem_ids_N
)
console
.
log
(
"flagItem_ids_N"
,
flagItem_ids_N
)
// 拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为已标记状态的ID没有在返回的标签里,则是这次新增的
// 拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为已标记状态的ID没有在返回的标签里,则是这次新增的
flagItem_ids_Y
&&
flagItem_ids_Y
.
map
(
item
=>
{
flagItem_ids_Y
&&
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
item
)
==
-
1
)
{
flagItem_ids_Y
.
map
((
item
)
=>
{
if
(
baseModifiableIds
.
findIndex
((
o
)
=>
o
==
item
)
==
-
1
)
{
params
.
labelIdAddList
.
push
(
item
)
params
.
labelIdAddList
.
push
(
item
)
}
}
})
})
// 拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为取消标记状态的ID在返回的标签里,则是这次取消掉的
// 拿这次标识的标签ID集合和之前返回的标签做对比,如果这次标识为取消标记状态的ID在返回的标签里,则是这次取消掉的
flagItem_ids_N
&&
flagItem_ids_N
.
map
(
item
=>
{
flagItem_ids_N
&&
if
(
baseModifiableIds
.
findIndex
(
o
=>
o
==
item
)
!=
-
1
)
{
flagItem_ids_N
.
map
((
item
)
=>
{
if
(
baseModifiableIds
.
findIndex
((
o
)
=>
o
==
item
)
!=
-
1
)
{
params
.
labelIdDelList
.
push
(
item
)
params
.
labelIdDelList
.
push
(
item
)
}
}
})
})
console
.
log
(
'params.labelIdAddList'
,
params
.
labelIdAddList
)
console
.
log
(
"params.labelIdAddList"
,
params
.
labelIdAddList
)
console
.
log
(
'params.labelIdDelList'
,
params
.
labelIdDelList
)
console
.
log
(
"params.labelIdDelList"
,
params
.
labelIdDelList
)
updateShopLabel
(
params
).
then
(
res
=>
{
updateShopLabel
(
params
).
then
(
(
res
)
=>
{
this
.
notice
.
okTips
(
'操作成功'
)
this
.
notice
.
okTips
(
"操作成功"
)
this
.
visible
=
true
this
.
visible
=
true
})
})
}
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/systemConfig/ShopConfig/setWorkorderDetail.vue
View file @
20c9e39
...
@@ -142,8 +142,8 @@
...
@@ -142,8 +142,8 @@
<
div
class
=
"rightBox"
>
<
div
class
=
"rightBox"
>
<
div
class
=
"carSeries-top"
>
<
div
class
=
"carSeries-top"
>
<
span
class
=
"carSeries-choose"
>
已选车系
({{
carSeries
.
length
}}
)
<
/span
>
<
span
class
=
"carSeries-choose"
>
已选车系
({{
carSeries
.
length
}}
)
<
/span
>
<
span
class
=
"clear"
<
!--
<
span
class
=
"clear"
@
click
=
"clearData"
>
清空
<
/span
>
@
click
=
"clearData"
>
清空
<
/span>
--
>
<
/div
>
<
/div
>
<
div
style
=
"overflow: auto; height: 511px"
>
<
div
style
=
"overflow: auto; height: 511px"
>
<
div
v
-
for
=
"(item, index) in filterList"
<
div
v
-
for
=
"(item, index) in filterList"
...
@@ -507,6 +507,9 @@ export default {
...
@@ -507,6 +507,9 @@ export default {
// 品牌设置确认
// 品牌设置确认
brandOkButton
()
{
brandOkButton
()
{
this
.
treeList
=
[]
this
.
treeList
=
[]
// console.log('this.carSeries', this.carSeries);
// console.log('this.data', this.data);
this
.
carSeries
.
forEach
((
e
)
=>
{
this
.
carSeries
.
forEach
((
e
)
=>
{
this
.
data
.
forEach
((
es
,
inx
)
=>
{
this
.
data
.
forEach
((
es
,
inx
)
=>
{
if
(
es
.
childs
&&
es
.
childs
.
length
>
0
)
{
if
(
es
.
childs
&&
es
.
childs
.
length
>
0
)
{
...
@@ -538,7 +541,7 @@ export default {
...
@@ -538,7 +541,7 @@ export default {
//
}
)
//
}
)
// return
// return
//
}
//
}
//
return console.log('通过');
return
console
.
log
(
'通过'
);
configureCar
({
configureCar
({
modelList
:
this
.
treeList
,
modelList
:
this
.
treeList
,
...
...
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