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
6a262fcb
Commit
6a262fcb
authored
Aug 05, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关联会员
parent
90a28d05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
3 deletions
+34
-3
edit.vue
src/views/ecw/customer/edit.vue
+34
-3
No files found.
src/views/ecw/customer/edit.vue
View file @
6a262fcb
<
template
>
<
template
xmlns=
""
>
<div>
<div>
<el-row
type=
"flex"
style=
"margin-top: 15px;margin-bottom: 15px"
justify=
"center"
>
<el-row
type=
"flex"
style=
"margin-top: 15px;margin-bottom: 15px"
justify=
"center"
>
...
@@ -264,6 +264,12 @@
...
@@ -264,6 +264,12 @@
prop=
""
prop=
""
label=
"关联账号"
label=
"关联账号"
>
>
<
template
v-slot =
"{row}"
>
{{
row
.
userid
}}
<el-select
v-model=
"row.userid"
@
change=
"selectBD"
multiple
>
<el-option
:disabled=
"selectMembers.indexOf(item.id) > -1"
v-for=
"(item,index) in memberList"
:value=
"item.id"
:key=
"item.id"
:label=
"item.mobile"
></el-option>
</el-select>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"social"
prop=
"social"
...
@@ -370,7 +376,7 @@
...
@@ -370,7 +376,7 @@
<
script
>
<
script
>
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
upload
from
'
@/components/ImageUpload
'
import
upload
from
'
@/components/ImageUpload
'
import
{
createCustomer
,
getCustomer
,
updateCustomer
,
}
from
'
@/api/ecw/customer
'
import
{
createCustomer
,
getCustomer
,
updateCustomer
,
userMemberUserList
,
}
from
'
@/api/ecw/customer
'
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
import
{
getProductList
}
from
'
@/api/ecw/product
'
import
{
getProductList
}
from
'
@/api/ecw/product
'
...
@@ -382,6 +388,7 @@ import {listServiceUser} from "@/api/system/user"
...
@@ -382,6 +388,7 @@ import {listServiceUser} from "@/api/system/user"
import
{
getZhongPaoPage
}
from
'
@/api/ecw/zhongPao
'
import
{
getZhongPaoPage
}
from
'
@/api/ecw/zhongPao
'
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
import
{
getCustomerContactsListByCustomer
}
from
'
@/api/ecw/customerContacts
'
import
{
getCountryListAll
}
from
'
@/api/ecw/country
'
import
{
getCountryListAll
}
from
'
@/api/ecw/country
'
import
Template
from
"
@/views/cms/template
"
;
export
default
{
export
default
{
name
:
"
edit
"
,
name
:
"
edit
"
,
...
@@ -389,6 +396,7 @@ export default {
...
@@ -389,6 +396,7 @@ export default {
customerId
:
String
customerId
:
String
},
},
components
:
{
components
:
{
Template
,
upload
,
upload
,
CustomerLineTable
CustomerLineTable
},
},
...
@@ -398,6 +406,9 @@ export default {
...
@@ -398,6 +406,9 @@ export default {
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
this
.
form
.
customerContacts
=
r
.
data
this
.
form
.
customerContacts
=
r
.
data
this
.
form
.
customerContacts
.
forEach
(
item
=>
{
item
.
userid
=
item
.
userid
?
item
.
userid
.
split
(
'
,
'
).
map
(
e
=>
Number
(
e
))
:
[]
})
})
})
})
})
}
}
...
@@ -426,6 +437,9 @@ export default {
...
@@ -426,6 +437,9 @@ export default {
getCountryListAll
().
then
(
r
=>
{
getCountryListAll
().
then
(
r
=>
{
this
.
countryList
=
r
.
data
this
.
countryList
=
r
.
data
})
})
userMemberUserList
().
then
(
r
=>
{
this
.
memberList
=
r
.
data
})
this
.
getZhongPao
()
this
.
getZhongPao
()
},
},
...
@@ -464,10 +478,14 @@ export default {
...
@@ -464,10 +478,14 @@ export default {
zhongLines
:
[],
// 重货线路
zhongLines
:
[],
// 重货线路
paoLines
:
[],
// 泡货线路
paoLines
:
[],
// 泡货线路
memberList
:[],
//会员列表
}
}
},
},
methods
:
{
methods
:
{
selectBD
(){
this
.
$forceUpdate
();
},
/** 取消按钮 */
/** 取消按钮 */
cancel
()
{
cancel
()
{
this
.
open
=
false
;
this
.
open
=
false
;
...
@@ -479,6 +497,9 @@ export default {
...
@@ -479,6 +497,9 @@ export default {
if
(
!
valid
)
{
if
(
!
valid
)
{
return
;
return
;
}
}
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
e
.
userid
=
e
.
userid
.
join
(
'
,
'
)
})
// 修改的提交
// 修改的提交
if
(
this
.
form
.
id
!=
null
)
{
if
(
this
.
form
.
id
!=
null
)
{
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
...
@@ -572,7 +593,7 @@ export default {
...
@@ -572,7 +593,7 @@ export default {
"
position
"
:
""
,
"
position
"
:
""
,
"
social
"
:
undefined
,
"
social
"
:
undefined
,
"
socialNumber
"
:
""
,
"
socialNumber
"
:
""
,
// "userid": 0
,
"
userid
"
:
[]
,
// "username": ""
// "username": ""
})
})
},
},
...
@@ -592,6 +613,16 @@ export default {
...
@@ -592,6 +613,16 @@ export default {
computed
:
{
computed
:
{
productListFilter
(){
productListFilter
(){
return
this
.
productList
.
filter
((
p
)
=>
p
.
typeId
===
this
.
form
.
productType
)
return
this
.
productList
.
filter
((
p
)
=>
p
.
typeId
===
this
.
form
.
productType
)
},
selectMembers
(){
let
m
=
[]
if
(
!
this
.
form
.
customerContacts
)
return
[]
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
if
(
e
.
userid
){
m
.
push
(...
e
.
userid
)
}
})
return
m
}
}
},
},
watch
:
{
watch
:
{
...
...
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