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
e449a2ed
Commit
e449a2ed
authored
Dec 01, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新建客户分配为其他的客户经理,创建后,客户经理仍然为创建账号 bug修复
parent
a98e369f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
edit.vue
src/views/ecw/customer/edit.vue
+8
-7
query.vue
src/views/ecw/customer/query.vue
+3
-1
No files found.
src/views/ecw/customer/edit.vue
View file @
e449a2ed
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<el-input
v-model=
"form.address"
:placeholder=
"$t('请输入联系地址')"
/>
<el-input
v-model=
"form.address"
:placeholder=
"$t('请输入联系地址')"
/>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"transportType"
>
<el-form-item
:label=
"$t('出货渠道')"
prop=
"transportType"
>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_TRANSPORT_TYPE"
form-type=
"checkbox"
multiple
v-model=
"form.transportType"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_TRANSPORT_TYPE"
form-type=
"checkbox"
multiple
v-model=
"form.transportType"
></dict-selector>
...
@@ -46,7 +46,7 @@
...
@@ -46,7 +46,7 @@
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE"
v-model=
"form.resourceType"
formatter=
"number"
></dict-selector>
<dict-selector
:type=
"DICT_TYPE.ECW_CUSTOMER_RESOURCE_TYPE"
v-model=
"form.resourceType"
formatter=
"number"
></dict-selector>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"13"
v-show=
"form.type && form.type.indexOf('2') !== -1"
>
<el-col
:span=
"13"
v-show=
"form.type && form.type.indexOf('2') !== -1"
>
<el-form-item
:label=
"$t('所属代理')"
prop=
"agentId"
>
<el-form-item
:label=
"$t('所属代理')"
prop=
"agentId"
>
<el-select
filterable
clearable
v-model=
"form.agentId"
:placeholder=
"$t('请选择所属代理')"
>
<el-select
filterable
clearable
v-model=
"form.agentId"
:placeholder=
"$t('请选择所属代理')"
>
...
@@ -171,7 +171,7 @@
...
@@ -171,7 +171,7 @@
<el-switch
v-model=
"form.isShowTidanPrice"
></el-switch>
<el-switch
v-model=
"form.isShowTidanPrice"
></el-switch>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"24"
>
<el-col
:span=
"24"
>
<el-form-item
:label=
"$t('到仓确认')"
prop=
"arrivalConfirm"
>
<el-form-item
:label=
"$t('到仓确认')"
prop=
"arrivalConfirm"
>
<el-switch
v-model=
"form.arrivalConfirm"
:active-value=
"1"
:inactive-value=
"0"
/>
<el-switch
v-model=
"form.arrivalConfirm"
:active-value=
"1"
:inactive-value=
"0"
/>
...
@@ -492,7 +492,6 @@ export default {
...
@@ -492,7 +492,6 @@ export default {
// 新建客户
// 新建客户
this
.
handleAddContact
()
this
.
handleAddContact
()
if
(
this
.
isCustomerServiceConfirmed
){
if
(
this
.
isCustomerServiceConfirmed
){
console
.
log
(
this
.
userId
);
this
.
form
.
customerService
=
this
.
userId
this
.
form
.
customerService
=
this
.
userId
}
}
}
}
...
@@ -512,7 +511,7 @@ export default {
...
@@ -512,7 +511,7 @@ export default {
getWarehouseList
().
then
(
r
=>
{
getWarehouseList
().
then
(
r
=>
{
this
.
warehouseList
=
r
.
data
this
.
warehouseList
=
r
.
data
})
})
listS
impleUsers
().
then
(
r
=>
{
listS
erviceUser
().
then
(
r
=>
{
this
.
serviceUserList
=
r
.
data
this
.
serviceUserList
=
r
.
data
})
})
getCountryListAll
().
then
(
r
=>
{
getCountryListAll
().
then
(
r
=>
{
...
@@ -657,7 +656,7 @@ export default {
...
@@ -657,7 +656,7 @@ export default {
return
;
return
;
}
}
if
(
this
.
form
.
customerContacts
.
length
===
0
){
if
(
this
.
form
.
customerContacts
.
length
===
0
){
this
.
$modal
.
msgError
(
this
.
$t
(
'
至少填写一个联系人信息
'
));
this
.
$modal
.
msgError
(
this
.
$t
(
'
至少填写一个联系人信息
'
));
return
return
}
}
...
@@ -700,7 +699,9 @@ export default {
...
@@ -700,7 +699,9 @@ export default {
}
}
// 添加的提交
// 添加的提交
//我的客户页面跳转直接
//我的客户页面跳转直接
form
.
isCustomerServiceConfirmed
=
true
;
if
(
this
.
isCustomerServiceConfirmed
){
form
.
isCustomerServiceConfirmed
=
this
.
isCustomerServiceConfirmed
;
}
createCustomer
(
form
).
then
(
response
=>
{
createCustomer
(
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
新增成功
'
));
this
.
open
=
false
;
this
.
open
=
false
;
...
...
src/views/ecw/customer/query.vue
View file @
e449a2ed
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<
el
-
descriptions
-
item
:
label
=
"
$t('客户类别')
"
>
{{
getDictDatas2
(
DICT_TYPE
.
CUSTOMER_TYPE
,
(
customer
.
type
||
''
).
split
(
'
,
'
)).
map
(
e
=>
e
.
label
).
join
(
'
,
'
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户类别')
"
>
{{
getDictDatas2
(
DICT_TYPE
.
CUSTOMER_TYPE
,
(
customer
.
type
||
''
).
split
(
'
,
'
)).
map
(
e
=>
e
.
label
).
join
(
'
,
'
)
}}
<
/el-descriptions-item
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('联系方式')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<!--
<
el
-
descriptions
-
item
:
label
=
"
$t('联系方式')
"
>
{{
customer
}}
<
/el-descriptions-item>--
>
<
el
-
descriptions
-
item
:
label
=
"
$t('推介人')
"
>
{{
promoter
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('推介人')
"
>
{{
promoter
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户经理')
"
>
{{
customerService
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('客户经理')
"
>
{{
customerService
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('公司名称')
"
>
{{
customer
.
company
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('公司名称')
"
>
{{
customer
.
company
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('联系地址')
"
>
{{
customer
.
address
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('联系地址')
"
>
{{
customer
.
address
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('创建时间')
"
>
{{
parseTime
(
customer
.
createTime
)
}}
<
/el-descriptions-item
>
<
el
-
descriptions
-
item
:
label
=
"
$t('创建时间')
"
>
{{
parseTime
(
customer
.
createTime
)
}}
<
/el-descriptions-item
>
...
@@ -469,6 +469,7 @@ export default {
...
@@ -469,6 +469,7 @@ export default {
getCustomerSelect
().
then
(
r
=>
{
getCustomerSelect
().
then
(
r
=>
{
this
.
customerSelect
=
r
.
data
.
list
this
.
customerSelect
=
r
.
data
.
list
}
)
}
)
listServiceUser
().
then
(
r
=>
{
listServiceUser
().
then
(
r
=>
{
this
.
serviceUserList
=
r
.
data
this
.
serviceUserList
=
r
.
data
}
)
}
)
...
@@ -601,6 +602,7 @@ export default {
...
@@ -601,6 +602,7 @@ export default {
return
this
.
customerSelect
.
find
(
e
=>
e
.
id
===
this
.
customer
.
promoter
)?.
name
||
''
return
this
.
customerSelect
.
find
(
e
=>
e
.
id
===
this
.
customer
.
promoter
)?.
name
||
''
}
,
}
,
customerService
()
{
customerService
()
{
console
.
log
(
this
.
serviceUserList
,
'
this.serviceUserList
'
);
return
this
.
serviceUserList
.
find
(
e
=>
e
.
id
===
this
.
customer
.
customerService
)?.
nickname
||
''
return
this
.
serviceUserList
.
find
(
e
=>
e
.
id
===
this
.
customer
.
customerService
)?.
nickname
||
''
}
,
}
,
id
()
{
id
()
{
...
...
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