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
a5b25c53
Commit
a5b25c53
authored
Nov 01, 2024
by
1483922988@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
6
parent
bc21d9ab
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
47 additions
and
11 deletions
+47
-11
customerFollow.vue
src/views/ecw/customer/components/customerFollow.vue
+34
-5
edit.vue
src/views/ecw/customer/edit.vue
+11
-4
logListCommon.vue
src/views/ecw/offer/logListCommon.vue
+2
-2
No files found.
src/views/ecw/customer/components/customerFollow.vue
View file @
a5b25c53
...
@@ -39,6 +39,12 @@
...
@@ -39,6 +39,12 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('联系方式')"
>
<el-input
v-model=
"form.contactPhone"
disabled
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('客户经理')"
required
>
<el-form-item
:label=
"$t('客户经理')"
required
>
<el-select
v-model=
"form.followUserId"
clearable
:placeholder=
"$t('请选择')"
:disabled=
"isView"
>
<el-select
v-model=
"form.followUserId"
clearable
:placeholder=
"$t('请选择')"
:disabled=
"isView"
>
...
@@ -135,6 +141,7 @@
...
@@ -135,6 +141,7 @@
<
script
>
<
script
>
import
{
createCustomerFollow
,
getCustomerFollowPage
,
getCustomerFollowPage2
,
addCustomerFollow
,
getCustomerFollowList
,
editCustomerFollow
,
getFollowupNewNumber
}
from
"
@/api/ecw/customerFollow
"
import
{
createCustomerFollow
,
getCustomerFollowPage
,
getCustomerFollowPage2
,
addCustomerFollow
,
getCustomerFollowList
,
editCustomerFollow
,
getFollowupNewNumber
}
from
"
@/api/ecw/customerFollow
"
import
{
getCustomerContactsSelect
}
from
"
@/api/ecw/customerContacts
"
import
{
getOfferPage
}
from
"
@/api/ecw/offer
"
import
{
getOfferPage
}
from
"
@/api/ecw/offer
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
DICT_TYPE
,
getDictDataLabel
}
from
"
@/utils/dict
"
import
{
getCustomerContactsListByCustomer
}
from
"
@/api/ecw/customerContacts
"
import
{
getCustomerContactsListByCustomer
}
from
"
@/api/ecw/customerContacts
"
...
@@ -212,12 +219,26 @@ export default {
...
@@ -212,12 +219,26 @@ export default {
},
},
methods
:
{
methods
:
{
init
()
{
init
()
{
if
(
!!
this
.
form
.
customerId
)
if
(
this
.
form
.
customerId
)
{
getCustomerContactsListByCustomer
({
getCustomerContactsListByCustomer
({
customerId
:
this
.
form
.
customerId
customerId
:
this
.
form
.
customerId
}).
then
((
r
)
=>
{
}).
then
((
r
)
=>
{
this
.
customerContactsList
=
r
.
data
this
.
customerContactsList
=
r
.
data
})
})
}
else
{
getCustomerContactsSelect
().
then
((
res
)
=>
{
this
.
customerContactsList
=
res
.
data
.
list
.
map
((
item
)
=>
{
return
{
name
:
item
.
contactsName
,
id
:
item
.
customerContactsId
,
customerId
:
item
.
customerId
,
phoneNew
:
item
.
phoneNew
,
areaCode
:
item
.
areaCode
,
customerNumber
:
item
.
customerNumber
}
})
})
}
},
},
getOfferList
()
{
getOfferList
()
{
getOfferPage
(
this
.
queryParams
).
then
((
response
)
=>
{
getOfferPage
(
this
.
queryParams
).
then
((
response
)
=>
{
...
@@ -276,7 +297,9 @@ export default {
...
@@ -276,7 +297,9 @@ export default {
for
(
const
item
of
this
.
customerContactsList
)
{
for
(
const
item
of
this
.
customerContactsList
)
{
if
(
item
.
id
==
val
)
{
if
(
item
.
id
==
val
)
{
this
.
form
.
contactName
=
item
.
name
this
.
form
.
contactName
=
item
.
name
// this.form.contactPhone = `+${item.areaCode}${item.phoneNew}`
this
.
form
.
customerId
=
item
.
customerId
this
.
form
.
contactPhone
=
"
+
"
+
item
.
areaCode
+
item
.
phoneNew
if
(
item
.
customerNumber
)
this
.
form
.
customerNumber
=
item
.
customerNumber
break
break
}
}
}
}
...
@@ -362,7 +385,10 @@ export default {
...
@@ -362,7 +385,10 @@ export default {
let
r
=
await
getFollowupNewNumber
()
let
r
=
await
getFollowupNewNumber
()
console
.
log
(
r
)
console
.
log
(
r
)
this
.
form
.
customerId
=
this
.
customerId
this
.
form
.
customerId
=
this
.
customerId
this
.
form
.
number
=
r
.
data
this
.
form
.
number
=
r
.
data
.
number
this
.
form
.
nubmerId
=
r
.
data
.
nubmerId
this
.
form
.
numberVersion
=
r
.
data
.
numberVersion
this
.
form
.
status
=
0
this
.
init
()
this
.
init
()
},
},
async
handleUpdate
(
row
,
flag
)
{
async
handleUpdate
(
row
,
flag
)
{
...
@@ -380,8 +406,11 @@ export default {
...
@@ -380,8 +406,11 @@ export default {
parentNumber
:
row
.
number
,
parentNumber
:
row
.
number
,
followTime
:
row
.
nextTime
,
followTime
:
row
.
nextTime
,
nextTime
:
""
,
nextTime
:
""
,
number
:
r
.
data
,
number
:
r
.
data
.
number
,
nextPlan
:
""
nubmerId
:
r
.
data
.
nubmerId
,
numberVersion
:
r
.
data
.
numberVersion
,
nextPlan
:
""
,
status
:
0
}
}
}
}
this
.
init
()
this
.
init
()
...
...
src/views/ecw/customer/edit.vue
View file @
a5b25c53
...
@@ -370,7 +370,7 @@
...
@@ -370,7 +370,7 @@
<span
class=
"title-text"
>
{{ $t("设置") }}
</span>
<span
class=
"title-text"
>
{{ $t("设置") }}
</span>
<el-button
style=
"float: right"
size=
"small"
type=
"primary"
@
click=
"showSettingFlag = !showSettingFlag"
>
{{ showSettingFlag ? $t("隐藏") : $t("更多") }}
</el-button>
<el-button
style=
"float: right"
size=
"small"
type=
"primary"
@
click=
"showSettingFlag = !showSettingFlag"
>
{{ showSettingFlag ? $t("隐藏") : $t("更多") }}
</el-button>
</div>
</div>
<el-form
ref=
"setForm"
label-width=
"150px"
v-
if
=
"showSettingFlag"
>
<el-form
ref=
"setForm"
label-width=
"150px"
v-
show
=
"showSettingFlag"
>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('是否显示提单价格')"
prop=
"isShowTidanPrice"
>
<el-form-item
:label=
"$t('是否显示提单价格')"
prop=
"isShowTidanPrice"
>
...
@@ -437,7 +437,7 @@
...
@@ -437,7 +437,7 @@
<span
class=
"title-text"
>
{{ $t("财务") }}
</span>
<span
class=
"title-text"
>
{{ $t("财务") }}
</span>
<el-button
style=
"float: right"
size=
"small"
type=
"primary"
@
click=
"showFinanceFlag = !showFinanceFlag"
>
{{ showFinanceFlag ? $t("隐藏") : $t("更多") }}
</el-button>
<el-button
style=
"float: right"
size=
"small"
type=
"primary"
@
click=
"showFinanceFlag = !showFinanceFlag"
>
{{ showFinanceFlag ? $t("隐藏") : $t("更多") }}
</el-button>
</div>
</div>
<el-form
ref=
"financeForm"
label-width=
"150px"
v-
if
=
"showFinanceFlag"
>
<el-form
ref=
"financeForm"
label-width=
"150px"
v-
show
=
"showFinanceFlag"
>
<el-row
:gutter=
"10"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
:label=
"$t('公司名称')"
prop=
"company"
>
<el-form-item
:label=
"$t('公司名称')"
prop=
"company"
>
...
@@ -518,7 +518,7 @@
...
@@ -518,7 +518,7 @@
</el-row>
</el-row>
</el-form>
</el-form>
<el-form
ref=
"bankForm"
:model=
"form"
v-
if
=
"showFinanceFlag"
>
<el-form
ref=
"bankForm"
:model=
"form"
v-
show
=
"showFinanceFlag"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
>
<el-row
type=
"flex"
class=
"row-bg"
justify=
"space-between"
>
<span
style=
"font-size: 15px; line-height: 30px"
>
{{ $t("银行信息") }}
</span>
<span
style=
"font-size: 15px; line-height: 30px"
>
{{ $t("银行信息") }}
</span>
<el-button
size=
"small"
type=
"primary"
@
click=
"addBankData"
>
+
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"addBankData"
>
+
</el-button>
...
@@ -1001,10 +1001,17 @@ export default {
...
@@ -1001,10 +1001,17 @@ export default {
}
}
this
.
$refs
[
"
contactForm
"
].
validate
((
valid1
,
err1
)
=>
{
this
.
$refs
[
"
contactForm
"
].
validate
((
valid1
,
err1
)
=>
{
this
.
$refs
[
"
form
"
].
validate
((
valid2
,
err2
)
=>
{
this
.
$refs
[
"
form
"
].
validate
((
valid2
,
err2
)
=>
{
console
.
log
(
valid2
,
"
valid2
"
,
err2
)
this
.
$refs
.
bankForm
.
validate
((
valid3
,
err3
)
=>
{
this
.
$refs
.
bankForm
.
validate
((
valid3
,
err3
)
=>
{
console
.
log
(
valid3
,
"
valid3
"
)
console
.
log
(
valid3
,
"
valid3
"
,
err3
)
if
(
!
valid1
||
!
valid2
||
!
valid3
)
{
if
(
!
valid1
||
!
valid2
||
!
valid3
)
{
console
.
log
(
333
)
this
.
$showFormValidateErrors
({
...
err1
,
...
err2
,
...
err3
})
this
.
$showFormValidateErrors
({
...
err1
,
...
err2
,
...
err3
})
this
.
showBaseFlag
=
true
this
.
showShippingFlag
=
true
this
.
showSettingFlag
=
true
this
.
showFinanceFlag
=
true
return
return
}
}
if
(
this
.
form
.
customerContacts
.
length
===
0
)
{
if
(
this
.
form
.
customerContacts
.
length
===
0
)
{
...
...
src/views/ecw/offer/logListCommon.vue
View file @
a5b25c53
...
@@ -195,8 +195,8 @@ export default {
...
@@ -195,8 +195,8 @@ export default {
exportCustomerFollow
({
exportCustomerFollow
({
...
this
.
followForm
,
...
this
.
followForm
,
...
this
.
formatQuery
(),
...
this
.
formatQuery
(),
pageNo
:
1
,
pageNo
:
null
,
pageSize
:
10000000
pageSize
:
null
}).
then
((
r
)
=>
{
}).
then
((
r
)
=>
{
this
.
$message
.
success
(
this
.
$t
(
"
已加入导出队列,请稍后在下载日志中下载
"
))
this
.
$message
.
success
(
this
.
$t
(
"
已加入导出队列,请稍后在下载日志中下载
"
))
})
})
...
...
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