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 ec02092a
authored
Aug 11, 2023
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式调整,邀请字段
1 parent
0c605405
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
112 additions
and
59 deletions
src/assets/css/public.scss
src/components/glsx-combi-form/index.vue
src/components/glsx-combi-form/selectBrand.vue
src/views/customerManage/components/ApplyStoreDialog.vue
src/views/customerManage/components/InviteDialog.vue
src/views/customerManage/components/province-city/index.vue
src/views/customerManage/editCustomer.vue
src/views/customerManage/index.vue
src/assets/css/public.scss
View file @
ec02092
...
...
@@ -68,3 +68,11 @@ html {
.el-cascader-menu__wrap
{
height
:
204px
!
important
;
}
.one-line-ellipsis
{
display
:
-
webkit-box
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
}
src/components/glsx-combi-form/index.vue
View file @
ec02092
...
...
@@ -87,11 +87,12 @@
<div v-else v-html="formObj[item.name]"></div>
</div> -->
<!-- 地图 -->
<div
v-else-if=
"item.type === 'map'"
class=
"province-sty"
>
<
!-- <
div v-else-if="item.type === 'map'" class="province-sty">
<span class="province-icon">*</span>
<Province ref="provinceForm" :subdistrict="subdistrict" :provinceLabel="item.labelName" :inline="item.inline" @selectProvince="selectProvince" @selectCity="selectCity" @selectAddressByMap="selectAddressByMap" :detailAddressLabel="detailAddressLabel"></Province>
</div>
<div
v-else-if=
"item.type == 'brand'"
>
</div> -->
<div
v-else-if=
"item.type == 'brand'"
class=
"province-sty"
>
<span
class=
"province-icon"
>
*
</span>
<select-brand
:brandListTree=
"brandListTree"
@
clickBrand=
"clickBrand"
@
brandChange=
"brandChange"
ref=
"brandListTree"
></select-brand>
</div>
</el-form-item>
...
...
@@ -116,7 +117,7 @@
// import textBox from '@/views/material/components/textBox'
// import Province from './provinceCity.vue'
// import mapView from './mapView.vue'
import
Province
from
'./province-city/index.vue'
//
import Province from './province-city/index.vue'
import
SelectBrand
from
'./selectBrand.vue'
import
{
beforeRangePickerOptions
,
afterRangePickerOptions
}
from
'./common'
export
default
{
...
...
@@ -193,7 +194,6 @@ export default {
// textBox,
// Province,
// mapView
Province
,
SelectBrand
},
...
...
@@ -395,34 +395,34 @@ export default {
// this.$refs.provinceForm[0].init(province, city)
// },
// 获取省
selectProvince
(
val
)
{
this
.
formObj
.
merchantAddress
=
''
this
.
formObj
.
cityName
=
''
this
.
formObj
.
provinceName
=
val
.
name
this
.
formObj
.
provinceCode
=
val
.
adcode
},
// 获取市
selectCity
(
val
)
{
if
(
val
.
name
)
{
this
.
formObj
.
cityName
=
val
.
name
this
.
formObj
.
cityCode
=
val
.
adcode
}
else
{
this
.
formObj
.
cityName
=
''
this
.
formObj
.
cityCode
=
''
}
this
.
formObj
.
merchantAddress
=
''
},
// 通过地图选择省市和详细地址
selectAddressByMap
(
val
)
{
const
{
provinceName
,
provinceCode
,
cityName
,
cityCode
,
fullAddress
,
lat
,
lng
}
=
val
this
.
formObj
.
merchantAddress
=
fullAddress
this
.
formObj
.
provinceName
=
provinceName
provinceCode
&&
(
this
.
formObj
.
provinceCode
=
provinceCode
)
this
.
formObj
.
cityName
=
cityName
cityCode
&&
(
this
.
formObj
.
cityCode
=
cityCode
)
this
.
formObj
.
latitude
=
lat
this
.
formObj
.
longitude
=
lng
}
//
selectProvince(val) {
//
this.formObj.merchantAddress = ''
//
this.formObj.cityName = ''
//
this.formObj.provinceName = val.name
//
this.formObj.provinceCode = val.adcode
//
},
//
//
获取市
//
selectCity(val) {
//
if (val.name) {
//
this.formObj.cityName = val.name
//
this.formObj.cityCode = val.adcode
//
} else {
//
this.formObj.cityName = ''
//
this.formObj.cityCode = ''
//
}
//
this.formObj.merchantAddress = ''
//
},
//
//
通过地图选择省市和详细地址
//
selectAddressByMap(val) {
//
const { provinceName, provinceCode, cityName, cityCode, fullAddress, lat, lng } = val
//
this.formObj.merchantAddress = fullAddress
//
this.formObj.provinceName = provinceName
//
provinceCode && (this.formObj.provinceCode = provinceCode)
//
this.formObj.cityName = cityName
//
cityCode && (this.formObj.cityCode = cityCode)
//
this.formObj.latitude = lat
//
this.formObj.longitude = lng
//
}
}
}
</
script
>
...
...
@@ -589,6 +589,17 @@ export default {
width
:
50%
;
height
:
50%
;
}
.glsx-combi-form
.province-sty
{
display
:
flex
;
}
.glsx-combi-form
.province-sty
.province-icon
{
color
:
#f56c6c
;
position
:
absolute
;
margin-left
:
72px
;
margin-top
:
12px
;
}
/* 图片上传 */
/* .glsx-combi-form .el-tag.el-tag--info .el-tag__close {
...
...
@@ -612,7 +623,7 @@ export default {
.glsx-combi-form
.province-sty
.province-icon
{
color
:
#f56c6c
;
position
:
absolute
;
margin-left
:
10
0px
;
margin-left
:
-8
0px
;
margin-top
:
0px
;
}
/* .textBox .el-form-item__content {
...
...
src/components/glsx-combi-form/selectBrand.vue
View file @
ec02092
...
...
@@ -15,6 +15,7 @@
{{
item
.
label
}}
</el-tag>
</
template
>
<div
v-if=
"!getCheckedArr.length"
class=
"txt-grey"
>
请选择
</div>
<el-popover
placement=
"top"
width=
"600"
trigger=
"hover"
class=
"select-popover"
>
<div
class=
"select-popover-box"
>
<el-tag
effect=
"plain"
class=
"popover-item"
v-for=
"(item, idx) in getCheckedArr"
type=
"info"
:key=
"idx"
closable
:disable-transitions=
"false"
@
close=
"removeItem(item, idx)"
>
...
...
@@ -251,6 +252,11 @@ export default {
line-height
:
26px
;
box-sizing
:
border-box
;
}
.txt-grey
{
margin-left
:
8px
;
font-size
:
14px
;
color
:
#999999
;
}
}
.select-popover
{
&-box
{
...
...
src/views/customerManage/components/ApplyStoreDialog.vue
View file @
ec02092
...
...
@@ -4,6 +4,13 @@
<div>
<slot
name=
"search"
></slot>
<GLTable
ref=
"storeRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"brand"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.merchantBrandNameList.length ? scope.scope.merchantBrandNameList.join('/') : '--'"
>
<span
slot=
"reference"
class=
"one-line-ellipsis"
>
{{
scope
.
scope
.
merchantBrandNameList
.
length
?
scope
.
scope
.
merchantBrandNameList
.
join
(
'/'
)
:
'--'
}}
</span>
</el-popover>
</div>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
:class=
"['dot', statusClass[scope.scope.reviewStatus]]"
></div>
{{
reviewStatusObj
[
scope
.
scope
.
reviewStatus
]
}}
...
...
@@ -37,12 +44,14 @@ export default {
},
{
label
:
'联系人'
,
prop
:
'contactName'
prop
:
'contactName'
,
width
:
120
,
line
:
1
},
{
label
:
'联系电话'
,
prop
:
'phone'
,
width
:
1
2
0
width
:
1
3
0
},
{
label
:
'地址'
,
...
...
@@ -54,18 +63,22 @@ export default {
label
:
'主营品牌'
,
prop
:
''
,
width
:
140
,
formatter
:
cellValue
=>
{
return
cellValue
.
merchantBrandNameList
.
length
?
cellValue
.
merchantBrandNameList
.
join
(
'/'
)
:
'--'
}
line
:
1
,
addHtml
:
'brand'
// formatter: cellValue => {
// return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--'
// }
},
{
label
:
'所属服务中心'
,
prop
:
'yqMerchantName'
prop
:
'yqMerchantName'
,
width
:
120
,
line
:
1
},
{
label
:
'申请时间'
,
prop
:
'createdDate'
,
width
:
'1
8
0px'
,
width
:
'1
7
0px'
,
formatter
:
cellValue
=>
{
return
cellValue
.
createdDate
?
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
...
...
@@ -78,7 +91,9 @@ export default {
},
{
label
:
'说明'
,
prop
:
'rejectedReason'
prop
:
'rejectedReason'
,
width
:
100
,
line
:
1
}
]
},
...
...
src/views/customerManage/components/InviteDialog.vue
View file @
ec02092
...
...
@@ -56,7 +56,7 @@ export default {
sceneStr
=
sceneStr
+
(
sceneStr
?
(
','
+
sceneToNum
[
item
])
:
sceneToNum
[
item
])
})
let
params
=
{
merchantId
:
this
.
inviteInfo
.
yq
MerchantId
,
merchantId
:
this
.
inviteInfo
.
shop
MerchantId
,
staffLabel
:
sceneStr
}
this
.
$apis
.
customer
.
getInviteCode
(
params
).
then
(
res
=>
{
...
...
src/views/customerManage/components/province-city/index.vue
View file @
ec02092
<
template
>
<div
v-if=
"provinceView"
>
<el-form
ref=
"provinceForm"
:model=
"provinceForm"
:inline=
"inline"
class=
"province"
label-width=
"1
54
px"
>
<el-form
ref=
"provinceForm"
:model=
"provinceForm"
:inline=
"inline"
class=
"province"
label-width=
"1
72
px"
>
<el-form-item
:label=
"provinceLabel"
>
<el-select
size=
"small"
v-model=
"provinceForm.provinceName"
clearable
placeholder=
"选择省份"
@
clear=
"selectProvince"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '52%' : '33.33%' }">
<el-option
v-for=
"(item, index) in AllData"
:key=
"'province' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectProvince(item)"
></el-option>
</el-select>
<el-select
size=
"small"
v-model=
"provinceForm.cityName"
clearable
placeholder=
"选择市"
@
clear=
"selectCity"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '52%' : '33.33%' }">
<el-option
v-for=
"(item, index) in cityList"
:key=
"'city' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectCity(item)"
></el-option>
</el-select>
<el-select
v-if=
"subdistrict == 3"
size=
"small"
v-model=
"provinceForm.townName"
clearable
placeholder=
"选择区"
@
clear=
"selectTown"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '52%' : '33.33%' }">
<el-option
v-for=
"(item, index) in townList"
:key=
"'town' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectTown(item)"
></el-option>
</el-select>
<div
class=
"province-box"
>
<el-select
size=
"small"
v-model=
"provinceForm.provinceName"
clearable
placeholder=
"选择省份"
@
clear=
"selectProvince"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '136px' : '33.33%' }">
<el-option
v-for=
"(item, index) in AllData"
:key=
"'province' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectProvince(item)"
></el-option>
</el-select>
<el-select
size=
"small"
v-model=
"provinceForm.cityName"
clearable
placeholder=
"选择市"
@
clear=
"selectCity"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '136px' : '33.33%' }">
<el-option
v-for=
"(item, index) in cityList"
:key=
"'city' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectCity(item)"
></el-option>
</el-select>
<el-select
v-if=
"subdistrict == 3"
size=
"small"
v-model=
"provinceForm.townName"
clearable
placeholder=
"选择区"
@
clear=
"selectTown"
class=
"select-padding"
:style=
"
{ width: subdistrict == 2 ? '52%' : '33.33%' }">
<el-option
v-for=
"(item, index) in townList"
:key=
"'town' + index"
:label=
"item.name"
:value=
"item.name"
@
click
.
native=
"selectTown(item)"
></el-option>
</el-select>
</div>
</el-form-item>
<el-form-item
:label=
"detailAddressLabel"
>
<el-input
size=
"small"
v-if=
"mapView"
readonly
placeholder=
"请选择详细地址"
v-model=
"provinceForm.fullAddress"
class=
"map-input"
>
...
...
@@ -166,7 +168,7 @@ export default {
},
// 省市回显
init
(
provinceData
)
{
console
.
log
(
provinceData
,
'fdkjfkdfdkfldfkl000000000000'
)
console
.
log
(
provinceData
,
'fdkjfkdfdkfldfkl000000000000'
)
// const { provinceName, cityName, townName, merchantAddress, longitude, latitude } = provinceData
this
.
provinceForm
.
provinceName
=
provinceData
.
provinceName
this
.
provinceForm
.
cityName
=
provinceData
.
cityName
...
...
@@ -174,7 +176,7 @@ export default {
this
.
provinceForm
.
fullAddress
=
provinceData
.
merchantAddress
this
.
provinceForm
.
lng
=
provinceData
.
longitude
this
.
provinceForm
.
lat
=
provinceData
.
latitude
console
.
log
(
this
.
provinceForm
,
'provinceForm'
)
console
.
log
(
this
.
provinceForm
,
'provinceForm'
)
if
(
provinceData
.
provinceName
)
{
this
.
AllData
.
map
(
item
=>
{
if
(
item
.
name
.
indexOf
(
provinceData
.
provinceName
)
!=
-
1
)
{
...
...
@@ -327,16 +329,27 @@ export default {
}
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
lang=
"scss"
>
//
.province
{
//
display
:
inline-flex
;
//
}
.province-box
{
display
:
inline-block
;
display
:
flex
;
}
.gl-form-page
.el-form
.province-box
.el-select
.el-input
{
width
:
136px
!important
;
}
.gl-form-page
.el-form
.el-form-item
{
display
:
flex
;
}
.province
{
.select-padding
{
&:nth-child(1)
{
margin-left
:
0
;
}
margin-left
:
10px
;
margin-right
:
0
!
important
;
}
.map-input
{
/deep/
.el-input__inner
{
...
...
src/views/customerManage/editCustomer.vue
View file @
ec02092
...
...
@@ -350,7 +350,7 @@ export default {
.province-icon
{
color
:
#f56c6c
;
position
:
absolute
;
margin-left
:
10
0
px
;
margin-left
:
10
3
px
;
margin-top
:
0px
;
}
</
style
>
src/views/customerManage/index.vue
View file @
ec02092
...
...
@@ -6,7 +6,7 @@
<h2>
客户管理列表
</h2>
<div>
<el-button
size=
"small"
@
click=
"handleEditCustomer('add')"
type=
"primary"
plain
>
新增客户
</el-button>
<el-button
size=
"small"
@
click=
"handleApply"
>
我的开店申请
</el-button>
<el-button
size=
"small"
@
click=
"handleApply"
type=
"primary"
>
我的开店申请
</el-button>
</div>
</div>
...
...
@@ -123,7 +123,7 @@ export default {
{
label
:
'联系电话'
,
prop
:
'phone'
,
width
:
'1
3
0px'
width
:
'1
2
0px'
},
{
label
:
'所属服务中心'
,
...
...
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