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
5db31db1
Commit
5db31db1
authored
Feb 24, 2025
by
Smile
Committed by
wux
Feb 26, 2025
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务103:跟进记录调整
parent
bf85aa0a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
5 deletions
+20
-5
customerFollow.vue
src/views/ecw/customer/components/customerFollow.vue
+20
-5
No files found.
src/views/ecw/customer/components/customerFollow.vue
View file @
5db31db1
...
...
@@ -95,7 +95,7 @@
<el-col
:span=
"8"
v-if=
"form.followType == 2"
>
<el-form-item
:label=
"$t('货物状态')"
prop=
"cargoStatus"
>
<el-select
v-model=
"form.cargoStatus"
:placeholder=
"$t('请选择')"
>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.ECW_OFFER_CARGO_STATUS)"
:key=
"dict.value"
:label=
"isChinese ? dict.label : dict.labelEn"
:value=
"
parseInt(dict.value)
"
/>
<el-option
v-for=
"dict in getDictDatas(DICT_TYPE.ECW_OFFER_CARGO_STATUS)"
:key=
"dict.value"
:label=
"isChinese ? dict.label : dict.labelEn"
:value=
"
dict.value
"
/>
</el-select>
</el-form-item>
</el-col>
...
...
@@ -265,6 +265,10 @@ export default {
}
},
created
()
{
this
.
$nextTick
(()
=>
{
// 在页面加载完后执行的代码
this
.
setCustomerFollow
()
});
this
.
hasAccountRole
();
listServiceUser
().
then
((
r
)
=>
{
this
.
serviceUserList
=
r
.
data
...
...
@@ -274,6 +278,9 @@ export default {
})
},
watch
:
{
'
form.cargoStatus
'
(){
console
.
log
(
this
.
form
)
},
"
form.offerId
"
(
v
)
{
if
(
v
)
{
getOffer
(
v
).
then
((
r
)
=>
{
...
...
@@ -281,7 +288,12 @@ export default {
this
.
offer
=
offer
;
// 选择了报价单后,需要将报价单中的客户及客户联系人信息回显
this
.
form
.
offerNumber
=
offer
.
number
this
.
form
.
cargoStatus
=
parseInt
(
offer
.
cargoStatus
);
console
.
log
(
"
this.form.cargoStatus
"
,
this
.
form
)
if
(
offer
.
cargoStatus
){
this
.
$set
(
this
.
form
,
'
cargoStatus
'
,
String
(
offer
.
cargoStatus
));
}
else
{
this
.
$set
(
this
.
form
,
'
cargoStatus
'
,
null
);
}
this
.
form
.
customerId
=
offer
.
relationId
this
.
customerId
=
offer
.
relationId
this
.
form
.
contactId
=
offer
.
relation
===
1
?
offer
.
consignorId
:
offer
.
consigneeId
...
...
@@ -325,9 +337,7 @@ export default {
this
.
form
.
contactName
=
item
.
name
this
.
form
.
contactPhone
=
"
+
"
+
item
.
areaCode
+
item
.
phoneNew
this
.
form
.
followUserId
=
item
.
customerService
if
(
this
.
isAccountManager
&&
this
.
form
.
followUserId
===
null
){
this
.
form
.
followUserId
=
this
.
$store
.
getters
.
userId
}
this
.
setCustomerFollow
()
return
true
}
})
...
...
@@ -339,6 +349,11 @@ export default {
}
},
methods
:
{
setCustomerFollow
(){
if
(
this
.
isAccountManager
&&!
this
.
form
.
followUserId
){
this
.
$set
(
this
.
form
,
"
followUserId
"
,
this
.
$store
.
getters
.
userId
)
}
},
hasAccountRole
(){
this
.
isAccountManager
=
this
.
$store
.
getters
.
roles
.
some
((
item
)
=>
{
return
item
===
"
Account Manager
"
...
...
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