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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
13 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 {
},
mounted
()
{
this
.
brandList
()
if
(
!
this
.
isWatch
)
{
this
.
brandList
()
}
},
methods
:
{
...
...
@@ -300,9 +302,7 @@ export default {
})
})
this
.
brandListTree
=
brandListTree
console
.
log
(
this
.
formObj
,
'0000'
)
if
(
this
.
formObj
?.
merchantBrandIds
)
{
console
.
log
(
this
.
$refs
.
brandListTree
,
'this.$refs.brandListTree---'
)
this
.
$refs
.
brandListTree
[
0
].
getCheckList
(
this
.
formObj
.
merchantBrandIds
)
}
this
.
$nextTick
(()
=>
{
...
...
src/components/glsx-combi-form/province-city/index.vue
View file @
8f29722
...
...
@@ -236,7 +236,6 @@ export default {
// 打开地图弹框
hanleSelectMap
()
{
console
.
log
(
this
.
provinceForm
)
this
.
dialogMapVisible
=
true
this
.
$nextTick
(()
=>
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
...
...
@@ -259,7 +258,6 @@ export default {
this
.
provinceForm
.
lng
=
lnglat
.
lng
var
mapData
=
this
.
$refs
.
mapForm
.
geocoderAddress
// 赋值省市区名称和code
console
.
log
(
this
.
$refs
.
mapForm
,
'\\\\\\'
)
const
{
city
,
citycode
,
province
,
district
,
towncode
}
=
mapData
.
addressComponent
if
(
!
this
.
provinceForm
.
provinceName
)
{
this
.
provinceForm
.
provinceName
=
province
...
...
src/components/glsx-combi-form/selectBrand.vue
View file @
8f29722
...
...
@@ -153,7 +153,6 @@ export default {
},
getCheckList
(
checkArr
=
[])
{
checkArr
.
forEach
(
item
=>
(
item
=
parseInt
(
item
)))
console
.
log
(
checkArr
,
'checkArr'
)
this
.
$refs
.
tree
.
setCheckedKeys
(
checkArr
)
this
.
$nextTick
(()
=>
{
this
.
handleCheck
()
...
...
src/views/customerManage/components/province-city/index.vue
View file @
8f29722
...
...
@@ -264,11 +264,11 @@ export default {
if
(
!
this
.
provinceForm
.
lat
||
!
this
.
provinceForm
.
lng
)
{
this
.
getLoc
(
this
.
provinceForm
.
provinceName
+
this
.
provinceForm
.
cityName
+
this
.
provinceForm
.
townName
)
}
this
.
$emit
(
'selectAddressByMap'
,
this
.
provinceForm
)
},
// 打开地图弹框
hanleSelectMap
()
{
console
.
log
(
this
.
provinceForm
)
this
.
dialogMapVisible
=
true
this
.
$nextTick
(()
=>
{
if
(
this
.
provinceForm
.
fullAddress
&&
!
this
.
$refs
.
mapForm
.
address
)
{
...
...
@@ -348,7 +348,6 @@ export default {
return
}
}
console
.
log
(
'????'
)
this
.
dialogMapVisible
=
false
// this.subdistrict == 2 ? this.init(province, city) : this.init(province, city, town)
// 通过地图选择省市区
...
...
src/views/customerManage/editCustomer.vue
View file @
8f29722
...
...
@@ -8,7 +8,7 @@
<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>
</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-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>
...
...
@@ -215,7 +215,7 @@ export default {
this
.
editForm
.
latitude
=
res
.
lat
this
.
editForm
.
longitude
=
res
.
lng
this
.
editForm
.
merchantAddress
=
res
.
merchantAddress
const
merchantBrandList
=
res
.
brandTreeList
const
merchantBrandList
=
res
.
brandTreeList
||
[]
this
.
editForm
.
merchantBrandList
=
[]
this
.
editForm
.
merchantBrandIds
=
''
merchantBrandList
.
forEach
(
item
=>
{
...
...
@@ -226,9 +226,10 @@ export default {
},
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
.
$refs
.
editFormRef
.
brandList
()
this
.
$refs
.
provinceForm
&&
this
.
$refs
.
provinceForm
.
init
(
this
.
editForm
)
this
.
$nextTick
(()
=>
{
this
.
editStatus
=
false
...
...
@@ -273,6 +274,7 @@ export default {
}
params
.
merchantBrandListJson
=
JSON
.
stringify
(
this
.
$common
.
utils
.
deepClone
(
this
.
editForm
.
merchantBrandList
))
delete
params
.
merchantBrandList
delete
params
.
merchantBrandIds
params
.
sceneList
=
[]
this
.
baseData
.
sceneList
.
forEach
(
item
=>
{
const
productCodeIds
=
item
.
productList
.
map
(
k
=>
k
.
productCode
)
...
...
@@ -355,7 +357,7 @@ export default {
}
}
</
script
>
<
style
scoped
>
<
style
>
.shop.edit-zone
.select-merchant
{
/* width: calc(98% - 140px); */
width
:
98%
;
...
...
@@ -367,4 +369,20 @@ export default {
margin-left
:
103px
;
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
>
src/views/customerManage/index.vue
View file @
8f29722
...
...
@@ -232,7 +232,6 @@ export default {
})
},
handleDetail
(
row
)
{
console
.
log
(
row
)
this
.
$router
.
push
({
path
:
'/customerManage/customerDetail'
,
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