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 8f29722d
authored
Aug 15, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
9a60a23d
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
12 deletions
src/components/glsx-combi-form/index.vue
src/components/glsx-combi-form/province-city/index.vue
src/components/glsx-combi-form/selectBrand.vue
src/views/customerManage/components/province-city/index.vue
src/views/customerManage/editCustomer.vue
src/views/customerManage/index.vue
src/components/glsx-combi-form/index.vue
View file @
8f29722
...
@@ -209,7 +209,9 @@ export default {
...
@@ -209,7 +209,9 @@ export default {
},
},
mounted
()
{
mounted
()
{
if
(
!
this
.
isWatch
)
{
this
.
brandList
()
this
.
brandList
()
}
},
},
methods
:
{
methods
:
{
...
@@ -300,9 +302,7 @@ export default {
...
@@ -300,9 +302,7 @@ export default {
})
})
})
})
this
.
brandListTree
=
brandListTree
this
.
brandListTree
=
brandListTree
console
.
log
(
this
.
formObj
,
'0000'
)
if
(
this
.
formObj
?.
merchantBrandIds
)
{
if
(
this
.
formObj
?.
merchantBrandIds
)
{
console
.
log
(
this
.
$refs
.
brandListTree
,
'this.$refs.brandListTree---'
)
this
.
$refs
.
brandListTree
[
0
].
getCheckList
(
this
.
formObj
.
merchantBrandIds
)
this
.
$refs
.
brandListTree
[
0
].
getCheckList
(
this
.
formObj
.
merchantBrandIds
)
}
}
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
...
src/components/glsx-combi-form/province-city/index.vue
View file @
8f29722
...
@@ -236,7 +236,6 @@ export default {
...
@@ -236,7 +236,6 @@ export default {
// 打开地图弹框
// 打开地图弹框
hanleSelectMap
()
{
hanleSelectMap
()
{
console
.
log
(
this
.
provinceForm
)
this
.
dialogMapVisible
=
true
this
.
dialogMapVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
...
@@ -259,7 +258,6 @@ export default {
...
@@ -259,7 +258,6 @@ export default {
this
.
provinceForm
.
lng
=
lnglat
.
lng
this
.
provinceForm
.
lng
=
lnglat
.
lng
var
mapData
=
this
.
$refs
.
mapForm
.
geocoderAddress
var
mapData
=
this
.
$refs
.
mapForm
.
geocoderAddress
// 赋值省市区名称和code
// 赋值省市区名称和code
console
.
log
(
this
.
$refs
.
mapForm
,
'\\\\\\'
)
const
{
city
,
citycode
,
province
,
district
,
towncode
}
=
mapData
.
addressComponent
const
{
city
,
citycode
,
province
,
district
,
towncode
}
=
mapData
.
addressComponent
if
(
!
this
.
provinceForm
.
provinceName
)
{
if
(
!
this
.
provinceForm
.
provinceName
)
{
this
.
provinceForm
.
provinceName
=
province
this
.
provinceForm
.
provinceName
=
province
...
...
src/components/glsx-combi-form/selectBrand.vue
View file @
8f29722
...
@@ -153,7 +153,6 @@ export default {
...
@@ -153,7 +153,6 @@ export default {
},
},
getCheckList
(
checkArr
=
[])
{
getCheckList
(
checkArr
=
[])
{
checkArr
.
forEach
(
item
=>
(
item
=
parseInt
(
item
)))
checkArr
.
forEach
(
item
=>
(
item
=
parseInt
(
item
)))
console
.
log
(
checkArr
,
'checkArr'
)
this
.
$refs
.
tree
.
setCheckedKeys
(
checkArr
)
this
.
$refs
.
tree
.
setCheckedKeys
(
checkArr
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
handleCheck
()
this
.
handleCheck
()
...
...
src/views/customerManage/components/province-city/index.vue
View file @
8f29722
...
@@ -264,11 +264,11 @@ export default {
...
@@ -264,11 +264,11 @@ export default {
if
(
!
this
.
provinceForm
.
lat
||
!
this
.
provinceForm
.
lng
)
{
if
(
!
this
.
provinceForm
.
lat
||
!
this
.
provinceForm
.
lng
)
{
this
.
getLoc
(
this
.
provinceForm
.
provinceName
+
this
.
provinceForm
.
cityName
+
this
.
provinceForm
.
townName
)
this
.
getLoc
(
this
.
provinceForm
.
provinceName
+
this
.
provinceForm
.
cityName
+
this
.
provinceForm
.
townName
)
}
}
this
.
$emit
(
'selectAddressByMap'
,
this
.
provinceForm
)
},
},
// 打开地图弹框
// 打开地图弹框
hanleSelectMap
()
{
hanleSelectMap
()
{
console
.
log
(
this
.
provinceForm
)
this
.
dialogMapVisible
=
true
this
.
dialogMapVisible
=
true
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
...
@@ -348,7 +348,6 @@ export default {
...
@@ -348,7 +348,6 @@ export default {
return
return
}
}
}
}
console
.
log
(
'????'
)
this
.
dialogMapVisible
=
false
this
.
dialogMapVisible
=
false
// this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town)
// this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town)
// 通过地图选择省市区
// 通过地图选择省市区
...
...
src/views/customerManage/editCustomer.vue
View file @
8f29722
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<span
class=
"province-icon"
>
*
</span>
<span
class=
"province-icon"
>
*
</span>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:provinceLabel=
"scope.scope.labelName"
:inline=
"scope.scope.inline"
@
selectProvince=
"selectProvince"
@
selectCity=
"selectCity"
@
selectAddressByMap=
"selectAddressByMap"
:detailAddressLabel=
"detailAddressLabel"
></Province>
<Province
ref=
"provinceForm"
:subdistrict=
"subdistrict"
:provinceLabel=
"scope.scope.labelName"
:inline=
"scope.scope.inline"
@
selectProvince=
"selectProvince"
@
selectCity=
"selectCity"
@
selectAddressByMap=
"selectAddressByMap"
:detailAddressLabel=
"detailAddressLabel"
></Province>
</div>
</div>
<div
slot=
"business"
slot-scope=
"scope"
>
<div
slot=
"business"
slot-scope=
"scope"
class=
"business"
>
<el-select
v-model=
"editForm[scope.scope.name]"
multiple
filterable
placeholder=
"请选择"
@
change=
"handleMutiSelctChange"
>
<el-select
v-model=
"editForm[scope.scope.name]"
multiple
filterable
placeholder=
"请选择"
@
change=
"handleMutiSelctChange"
>
<el-option-group
v-for=
"group in baseData.sceneList"
:key=
"group.sceneCode"
:label=
"group.name"
>
<el-option-group
v-for=
"group in baseData.sceneList"
:key=
"group.sceneCode"
:label=
"group.name"
>
<el-option
v-for=
"item in group.productList"
:key=
"item.productCode"
:label=
"item.productName"
:value=
"item.productCode"
></el-option>
<el-option
v-for=
"item in group.productList"
:key=
"item.productCode"
:label=
"item.productName"
:value=
"item.productCode"
></el-option>
...
@@ -215,7 +215,7 @@ export default {
...
@@ -215,7 +215,7 @@ export default {
this
.
editForm
.
latitude
=
res
.
lat
this
.
editForm
.
latitude
=
res
.
lat
this
.
editForm
.
longitude
=
res
.
lng
this
.
editForm
.
longitude
=
res
.
lng
this
.
editForm
.
merchantAddress
=
res
.
merchantAddress
this
.
editForm
.
merchantAddress
=
res
.
merchantAddress
const
merchantBrandList
=
res
.
brandTreeList
const
merchantBrandList
=
res
.
brandTreeList
||
[]
this
.
editForm
.
merchantBrandList
=
[]
this
.
editForm
.
merchantBrandList
=
[]
this
.
editForm
.
merchantBrandIds
=
''
this
.
editForm
.
merchantBrandIds
=
''
merchantBrandList
.
forEach
(
item
=>
{
merchantBrandList
.
forEach
(
item
=>
{
...
@@ -226,9 +226,10 @@ export default {
...
@@ -226,9 +226,10 @@ export default {
},
},
merchantSecondBrandDetailList
:
item
.
subList
merchantSecondBrandDetailList
:
item
.
subList
})
})
this
.
editForm
.
merchantBrandIds
=
this
.
editForm
.
merchantBrandIds
+
item
.
subList
.
map
(
k
=>
k
.
id
).
join
(
','
)
this
.
editForm
.
merchantBrandIds
=
this
.
editForm
.
merchantBrandIds
+
(
this
.
editForm
.
merchantBrandIds
?
','
:
''
)
+
item
.
subList
.
map
(
k
=>
k
.
id
).
join
(
','
)
})
})
this
.
editForm
.
merchantBrandIds
=
this
.
editForm
.
merchantBrandIds
.
split
(
','
)
this
.
editForm
.
merchantBrandIds
=
this
.
editForm
.
merchantBrandIds
.
split
(
','
)
this
.
$refs
.
editFormRef
.
brandList
()
this
.
$refs
.
provinceForm
&&
this
.
$refs
.
provinceForm
.
init
(
this
.
editForm
)
this
.
$refs
.
provinceForm
&&
this
.
$refs
.
provinceForm
.
init
(
this
.
editForm
)
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
this
.
editStatus
=
false
...
@@ -273,6 +274,7 @@ export default {
...
@@ -273,6 +274,7 @@ export default {
}
}
params
.
merchantBrandListJson
=
JSON
.
stringify
(
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
merchantBrandList
))
params
.
merchantBrandListJson
=
JSON
.
stringify
(
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
merchantBrandList
))
delete
params
.
merchantBrandList
delete
params
.
merchantBrandList
delete
params
.
merchantBrandIds
params
.
sceneList
=
[]
params
.
sceneList
=
[]
this
.
baseData
.
sceneList
.
forEach
(
item
=>
{
this
.
baseData
.
sceneList
.
forEach
(
item
=>
{
const
productCodeIds
=
item
.
productList
.
map
(
k
=>
k
.
productCode
)
const
productCodeIds
=
item
.
productList
.
map
(
k
=>
k
.
productCode
)
...
@@ -355,7 +357,7 @@ export default {
...
@@ -355,7 +357,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
.shop.edit-zone
.select-merchant
{
.shop.edit-zone
.select-merchant
{
/* width: calc(98% - 140px); */
/* width: calc(98% - 140px); */
width
:
98%
;
width
:
98%
;
...
@@ -367,4 +369,20 @@ export default {
...
@@ -367,4 +369,20 @@ export default {
margin-left
:
103px
;
margin-left
:
103px
;
margin-top
:
0px
;
margin-top
:
0px
;
}
}
.business
.el-select
.el-tag
{
height
:
26px
;
background
:
#fafbfe
!important
;
border
:
1px
solid
#e5e5e5
!important
;
border-radius
:
4px
!important
;
padding
:
0
10px
;
}
.business
.el-select
.el-tag__close.el-icon-close
{
background
:
transparent
;
color
:
#909399
;
font-size
:
20px
;
}
.business
.el-select
.el-tag__close.el-icon-close
:hover
{
/* background: ; */
}
</
style
>
</
style
>
src/views/customerManage/index.vue
View file @
8f29722
...
@@ -232,7 +232,6 @@ export default {
...
@@ -232,7 +232,6 @@ export default {
})
})
},
},
handleDetail
(
row
)
{
handleDetail
(
row
)
{
console
.
log
(
row
)
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'/customerManage/customerDetail'
,
path
:
'/customerManage/customerDetail'
,
query
:
{
query
:
{
...
...
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