Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
b67a89c6
Commit
b67a89c6
authored
Sep 16, 2022
by
黄卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台新建客户时,可以设置多个默认联系人(应控制最多只能设置一个默认联系人)
http://zentao.jdshangmen.com/bug-view-209.html
parent
7e7878f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
edit.vue
src/views/ecw/customer/edit.vue
+19
-5
No files found.
src/views/ecw/customer/edit.vue
View file @
b67a89c6
...
...
@@ -248,7 +248,7 @@
区号
<span
style=
"color: #ff0000"
>
*
</span>
</
template
>
<
template
v-slot=
"{row}"
>
<el-select
v-model=
"row.areaCode"
placeholder=
"请选择区号"
filterable
>
<el-select
v-model=
"row.areaCode"
placeholder=
"请选择区号"
filterable
size=
"mini"
>
<el-option
v-for=
"(item, index) in countryList"
:key=
"index"
:label=
"item.nameShort + item.nameZh + '(' + item.tel + ')'"
:value=
"item.tel"
/>
</el-select>
...
...
@@ -270,7 +270,7 @@
label=
"关联账号"
>
<
template
v-slot =
"{row}"
>
<el-select
v-model=
"row.userid"
@
change=
"selectBD"
>
<el-select
v-model=
"row.userid"
@
change=
"selectBD"
size=
"mini"
>
<el-option
v-for=
"(item,index) in memberList"
:value=
"item.id"
:key=
"item.id"
:label=
"item.nickname + '(' + item.mobile + ')'"
></el-option>
</el-select>
</
template
>
...
...
@@ -280,7 +280,7 @@
label=
"社交软件"
>
<
template
v-slot=
"{row}"
>
<el-select
v-model=
"row.social"
placeholder=
"请选择社交软件"
>
<el-select
v-model=
"row.social"
placeholder=
"请选择社交软件"
size=
"mini"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.SOCIAL)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"parseInt(dict.value)"
/>
</el-select>
...
...
@@ -306,8 +306,8 @@
prop=
"isDefault"
label=
"设为默认"
>
<
template
v-slot=
"{
row
}"
>
<el-select
v-model=
"row.isDefault"
placeholder=
"设为默认"
>
<
template
v-slot=
"{
row, column, $index
}"
>
<el-select
v-model=
"row.isDefault"
placeholder=
"设为默认"
@
change=
"handleDefaultChange($index)"
size=
"mini"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.IS_DEFAULT)"
:key=
"dict.value"
:label=
"dict.label"
:value=
"Number(dict.value)"
/>
</el-select>
...
...
@@ -484,6 +484,20 @@ export default {
},
methods
:
{
handleDefaultChange
(
$index
){
if
(
this
.
form
.
customerContacts
.
length
===
1
&&
this
.
form
.
customerContacts
[
0
].
isDefault
===
0
){
this
.
$modal
.
msgWarning
(
'
至少拥有一个默认联系人
'
)
this
.
form
.
customerContacts
[
0
].
isDefault
=
1
return
}
let
i
=
0
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
if
(
i
!==
$index
){
e
.
isDefault
=
0
}
i
++
})
},
selectBD
(){
this
.
$forceUpdate
();
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment