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 4c3847dd
authored
Aug 15, 2023
by
王琦琳
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'v4.26.0' into 'v4.27.0'
V4.26.0 See merge request
!1
2 parents
cfb82825
a48232c6
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
74 additions
and
27 deletions
src/assets/css/public.scss
src/views/customerManage/components/ApplyStoreDialog.vue
src/views/customerManage/customerDetail.vue
src/views/customerManage/editCustomer.vue
src/views/customerManage/index.vue
src/assets/css/public.scss
View file @
4c3847d
...
@@ -76,3 +76,12 @@ html {
...
@@ -76,3 +76,12 @@ html {
-webkit-line-clamp
:
1
;
-webkit-line-clamp
:
1
;
-webkit-box-orient
:
vertical
;
-webkit-box-orient
:
vertical
;
}
}
.tb-ellipsis
{
display
:
inline-block
;
max-width
:
100%
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
vertical-align
:
middle
;
white-space
:
nowrap
;
}
src/views/customerManage/components/ApplyStoreDialog.vue
View file @
4c3847d
...
@@ -4,6 +4,20 @@
...
@@ -4,6 +4,20 @@
<div>
<div>
<slot
name=
"search"
></slot>
<slot
name=
"search"
></slot>
<GLTable
ref=
"storeRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"storeRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"merchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.merchantName"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
merchantName
}}
</span>
</el-popover>
</div>
<div
class=
"tb-ellipsis"
slot=
"merchantAddress"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.merchantAddress"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
merchantAddress
}}
</span>
</el-popover>
</div>
<div
slot=
"brand"
slot-scope=
"scope"
>
<div
slot=
"brand"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.merchantBrandNameList ? scope.scope.merchantBrandNameList.join('/') : '--'"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.merchantBrandNameList ? scope.scope.merchantBrandNameList.join('/') : '--'"
>
<span
slot=
"reference"
class=
"one-line-ellipsis"
>
<span
slot=
"reference"
class=
"one-line-ellipsis"
>
...
@@ -11,6 +25,13 @@
...
@@ -11,6 +25,13 @@
</span>
</span>
</el-popover>
</el-popover>
</div>
</div>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
yqMerchantName
}}
</span>
</el-popover>
</div>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
:class=
"['dot', statusClass[scope.scope.reviewStatus]]"
></div>
<div
:class=
"['dot', statusClass[scope.scope.reviewStatus]]"
></div>
{{
reviewStatusObj
[
scope
.
scope
.
reviewStatus
]
}}
{{
reviewStatusObj
[
scope
.
scope
.
reviewStatus
]
}}
...
@@ -39,8 +60,8 @@ export default {
...
@@ -39,8 +60,8 @@ export default {
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'merchantName'
,
prop
:
'merchantName'
,
width
:
120
,
addHtml
:
'merchantName'
,
line
:
1
minWidth
:
120
},
},
{
{
label
:
'联系人'
,
label
:
'联系人'
,
...
@@ -56,8 +77,8 @@ export default {
...
@@ -56,8 +77,8 @@ export default {
{
{
label
:
'地址'
,
label
:
'地址'
,
prop
:
'merchantAddress'
,
prop
:
'merchantAddress'
,
width
:
140
,
addHtml
:
'merchantAddress'
,
line
:
1
minWidth
:
120
},
},
{
{
label
:
'主营品牌'
,
label
:
'主营品牌'
,
...
@@ -65,20 +86,17 @@ export default {
...
@@ -65,20 +86,17 @@ export default {
width
:
140
,
width
:
140
,
line
:
1
,
line
:
1
,
addHtml
:
'brand'
addHtml
:
'brand'
// formatter: cellValue => {
// return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--'
// }
},
},
{
{
label
:
'所属服务中心'
,
label
:
'所属服务中心'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
120
,
addHtml
:
'yqMerchantName'
,
line
:
1
minWidth
:
120
},
},
{
{
label
:
'申请时间'
,
label
:
'申请时间'
,
prop
:
'createdDate'
,
prop
:
'createdDate'
,
width
:
'1
7
0px'
,
width
:
'1
8
0px'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
createdDate
?
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
return
cellValue
.
createdDate
?
dayjs
(
cellValue
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'--'
}
}
...
...
src/views/customerManage/customerDetail.vue
View file @
4c3847d
...
@@ -29,14 +29,14 @@ export default {
...
@@ -29,14 +29,14 @@ export default {
showFormData
:
[
showFormData
:
[
{
{
label
:
'销售顾问'
,
label
:
'销售顾问'
,
name
:
''
,
name
:
'
employeeName
'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
,
isClear
:
true
,
maxlength
:
50
maxlength
:
50
},
},
{
{
label
:
'手机号'
,
label
:
'手机号'
,
name
:
''
,
name
:
'
phone
'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
,
isClear
:
true
,
maxlength
:
11
maxlength
:
11
...
...
src/views/customerManage/editCustomer.vue
View file @
4c3847d
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
<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"
>
<el-select
v-model=
"editForm[scope.scope.name]"
multiple
filterable
placeholder=
"请选择"
>
<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>
</el-option-group>
</el-option-group>
...
@@ -90,7 +90,7 @@ export default {
...
@@ -90,7 +90,7 @@ export default {
label
:
'客户名称'
,
label
:
'客户名称'
,
name
:
'merchantName'
,
name
:
'merchantName'
,
type
:
'input'
,
type
:
'input'
,
maxlength
:
2
0
maxlength
:
5
0
},
},
{
{
label
:
'联系人'
,
label
:
'联系人'
,
...
@@ -156,6 +156,9 @@ export default {
...
@@ -156,6 +156,9 @@ export default {
},
},
methods
:
{
methods
:
{
handleMutiSelctChange
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'productCodeList'
)
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
labelList
.
forEach
(
item
=>
{
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
...
@@ -253,7 +256,7 @@ export default {
...
@@ -253,7 +256,7 @@ export default {
params
.
serviceCenterMerchantId
=
this
.
editForm
.
yqMerchantId
params
.
serviceCenterMerchantId
=
this
.
editForm
.
yqMerchantId
}
}
// 判断省市地址填写
// 判断省市地址填写
if
(
!
params
.
provinceName
||
!
params
.
cityName
||
!
params
.
merchantAddress
)
{
if
(
!
params
.
provinceName
||
!
params
.
cityName
||
!
params
.
merchantAddress
||
!
params
.
latitude
||
!
params
.
longitude
)
{
this
.
$message
({
this
.
$message
({
message
:
'请选择省市地址'
,
message
:
'请选择省市地址'
,
type
:
'error'
type
:
'error'
...
@@ -278,7 +281,7 @@ export default {
...
@@ -278,7 +281,7 @@ export default {
const
apiName
=
this
.
routeInfo
.
editType
==
'edit'
?
'updateMerchant'
:
'createMerchant'
const
apiName
=
this
.
routeInfo
.
editType
==
'edit'
?
'updateMerchant'
:
'createMerchant'
this
.
$apis
.
customer
[
apiName
](
params
).
then
(
res
=>
{
this
.
$apis
.
customer
[
apiName
](
params
).
then
(
res
=>
{
this
.
$message
({
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
})
if
(
res
.
code
==
'0'
)
{
if
(
res
.
code
==
'0'
)
{
...
...
src/views/customerManage/index.vue
View file @
4c3847d
...
@@ -6,12 +6,26 @@
...
@@ -6,12 +6,26 @@
<h2>
客户管理列表
</h2>
<h2>
客户管理列表
</h2>
<div>
<div>
<el-button
size=
"small"
@
click=
"handleEditCustomer('add')"
type=
"primary"
plain
>
新增客户
</el-button>
<el-button
size=
"small"
@
click=
"handleEditCustomer('add')"
type=
"primary"
plain
>
新增客户
</el-button>
<el-button
size=
"small"
@
click=
"handleApply"
type=
"primary"
>
我的开店申请
</el-button>
<el-button
size=
"small"
@
click=
"handleApply"
>
我的开店申请
</el-button>
</div>
</div>
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
ref=
"pointRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<GLTable
ref=
"pointRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
class=
"tb-ellipsis"
slot=
"shopMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.shopMerchantName"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
shopMerchantName
}}
</span>
</el-popover>
</div>
<div
class=
"tb-ellipsis"
slot=
"yqMerchantName"
slot-scope=
"scope"
>
<el-popover
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.scope.yqMerchantName"
>
<span
slot=
"reference"
>
{{
scope
.
scope
.
yqMerchantName
}}
</span>
</el-popover>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
...
@@ -44,11 +58,11 @@ export default {
...
@@ -44,11 +58,11 @@ export default {
name
:
'shopMerchantName'
,
name
:
'shopMerchantName'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
,
isClear
:
true
,
maxlength
:
2
0
maxlength
:
5
0
},
},
{
{
label
:
'商户号'
,
label
:
'商户号'
,
name
:
'shopMerchantId'
,
name
:
'shopMerchantId
Keyword
'
,
type
:
'input'
,
type
:
'input'
,
isClear
:
true
,
isClear
:
true
,
maxlength
:
20
maxlength
:
20
...
@@ -102,13 +116,15 @@ export default {
...
@@ -102,13 +116,15 @@ export default {
getListApi
:
this
.
$apis
.
customer
.
getList
,
getListApi
:
this
.
$apis
.
customer
.
getList
,
tableParams
:
{
tableParams
:
{
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
{
width
:
'150px'
},
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'客户名称'
,
label
:
'客户名称'
,
prop
:
'shopMerchantName'
,
prop
:
'shopMerchantName'
,
width
:
180
,
addHtml
:
'shopMerchantName'
,
line
:
1
minWidth
:
120
},
},
{
{
label
:
'商户号'
,
label
:
'商户号'
,
...
@@ -118,23 +134,24 @@ export default {
...
@@ -118,23 +134,24 @@ export default {
{
{
label
:
'联系人'
,
label
:
'联系人'
,
prop
:
'contactName'
,
prop
:
'contactName'
,
width
:
120
width
:
130
,
line
:
1
},
},
{
{
label
:
'联系电话'
,
label
:
'联系电话'
,
prop
:
'phone'
,
prop
:
'phone'
,
width
:
'120px'
width
:
130
},
},
{
{
label
:
'所属服务中心'
,
label
:
'所属服务中心'
,
prop
:
'yqMerchantName'
,
prop
:
'yqMerchantName'
,
width
:
200
,
addHtml
:
'yqMerchantName'
,
line
:
1
minWidth
:
120
},
},
{
{
label
:
'销售顾问'
,
label
:
'销售顾问'
,
prop
:
'employeeNum'
,
prop
:
'employeeNum'
,
width
:
'180px'
width
:
100
},
},
{
{
label
:
'创建时间'
,
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