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
Hide 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 {
-webkit-line-clamp
:
1
;
-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 @@
<div>
<slot
name=
"search"
></slot>
<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"
>
<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"
>
...
...
@@ -11,6 +25,13 @@
</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
slot=
"applyStatus"
slot-scope=
"scope"
class=
"flex"
>
<div
:class=
"['dot', statusClass[scope.scope.reviewStatus]]"
></div>
{{
reviewStatusObj
[
scope
.
scope
.
reviewStatus
]
}}
...
...
@@ -39,8 +60,8 @@ export default {
{
label
:
'客户名称'
,
prop
:
'merchantName'
,
width
:
120
,
line
:
1
addHtml
:
'merchantName'
,
minWidth
:
120
},
{
label
:
'联系人'
,
...
...
@@ -56,8 +77,8 @@ export default {
{
label
:
'地址'
,
prop
:
'merchantAddress'
,
width
:
140
,
line
:
1
addHtml
:
'merchantAddress'
,
minWidth
:
120
},
{
label
:
'主营品牌'
,
...
...
@@ -65,20 +86,17 @@ export default {
width
:
140
,
line
:
1
,
addHtml
:
'brand'
// formatter: cellValue => {
// return cellValue.merchantBrandNameList.length ? cellValue.merchantBrandNameList.join('/') : '--'
// }
},
{
label
:
'所属服务中心'
,
prop
:
'yqMerchantName'
,
width
:
120
,
line
:
1
addHtml
:
'yqMerchantName'
,
minWidth
:
120
},
{
label
:
'申请时间'
,
prop
:
'createdDate'
,
width
:
'1
7
0px'
,
width
:
'1
8
0px'
,
formatter
:
cellValue
=>
{
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 {
showFormData
:
[
{
label
:
'销售顾问'
,
name
:
''
,
name
:
'
employeeName
'
,
type
:
'input'
,
isClear
:
true
,
maxlength
:
50
},
{
label
:
'手机号'
,
name
:
''
,
name
:
'
phone
'
,
type
:
'input'
,
isClear
:
true
,
maxlength
:
11
...
...
src/views/customerManage/editCustomer.vue
View file @
4c3847d
...
...
@@ -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>
</div>
<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
v-for=
"item in group.productList"
:key=
"item.productCode"
:label=
"item.productName"
:value=
"item.productCode"
></el-option>
</el-option-group>
...
...
@@ -90,7 +90,7 @@ export default {
label
:
'客户名称'
,
name
:
'merchantName'
,
type
:
'input'
,
maxlength
:
2
0
maxlength
:
5
0
},
{
label
:
'联系人'
,
...
...
@@ -156,6 +156,9 @@ export default {
},
methods
:
{
handleMutiSelctChange
()
{
this
.
$refs
.
editFormRef
.
$refs
[
this
.
editChildRef
].
validateField
(
'productCodeList'
)
},
changeFormAttr
(
formName
,
attrName
,
labelList
,
attrValue
)
{
labelList
.
forEach
(
item
=>
{
let
idx
=
this
[
formName
].
findIndex
(
k
=>
k
.
label
==
item
)
...
...
@@ -253,7 +256,7 @@ export default {
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
({
message
:
'请选择省市地址'
,
type
:
'error'
...
...
@@ -278,7 +281,7 @@ export default {
const
apiName
=
this
.
routeInfo
.
editType
==
'edit'
?
'updateMerchant'
:
'createMerchant'
this
.
$apis
.
customer
[
apiName
](
params
).
then
(
res
=>
{
this
.
$message
({
message
:
res
.
code
==
'0'
?
'操作成功'
:
'操作失败'
,
message
:
res
.
code
==
'0'
?
'操作成功'
:
res
.
message
,
type
:
res
.
code
==
'0'
?
'success'
:
'error'
})
if
(
res
.
code
==
'0'
)
{
...
...
src/views/customerManage/index.vue
View file @
4c3847d
...
...
@@ -6,12 +6,26 @@
<h2>
客户管理列表
</h2>
<div>
<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>
<!-- 表格区域 开始 -->
<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"
>
<GLTableButton
:buttonList=
"tableButtonList"
:buttonItem=
"scope.scope"
:buttonNum=
"3"
></GLTableButton>
</div>
...
...
@@ -44,11 +58,11 @@ export default {
name
:
'shopMerchantName'
,
type
:
'input'
,
isClear
:
true
,
maxlength
:
2
0
maxlength
:
5
0
},
{
label
:
'商户号'
,
name
:
'shopMerchantId'
,
name
:
'shopMerchantId
Keyword
'
,
type
:
'input'
,
isClear
:
true
,
maxlength
:
20
...
...
@@ -102,13 +116,15 @@ export default {
getListApi
:
this
.
$apis
.
customer
.
getList
,
tableParams
:
{
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
{
width
:
'150px'
},
tableColumns
:
[
{
label
:
'客户名称'
,
prop
:
'shopMerchantName'
,
width
:
180
,
line
:
1
addHtml
:
'shopMerchantName'
,
minWidth
:
120
},
{
label
:
'商户号'
,
...
...
@@ -118,23 +134,24 @@ export default {
{
label
:
'联系人'
,
prop
:
'contactName'
,
width
:
120
width
:
130
,
line
:
1
},
{
label
:
'联系电话'
,
prop
:
'phone'
,
width
:
'120px'
width
:
130
},
{
label
:
'所属服务中心'
,
prop
:
'yqMerchantName'
,
width
:
200
,
line
:
1
addHtml
:
'yqMerchantName'
,
minWidth
:
120
},
{
label
:
'销售顾问'
,
prop
:
'employeeNum'
,
width
:
'180px'
width
:
100
},
{
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