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
f78e6d0d
Commit
f78e6d0d
authored
Aug 02, 2023
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加潜在客户
parent
dff9cbe7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
6 deletions
+33
-6
customer.js
src/api/ecw/customer.js
+17
-1
index.vue
src/views/ecw/customer/index.vue
+16
-5
No files found.
src/api/ecw/customer.js
View file @
f78e6d0d
import
request
from
'
@/utils/request
'
import
query
from
"
@/views/ecw/customer/query
"
;
import
*
as
url
from
"
url
"
;
import
{
methods
}
from
"
vue2-ace-editor
"
;
// 创建客户
export
function
createCustomer
(
data
)
{
...
...
@@ -26,7 +27,14 @@ export function updateCustomer(data) {
data
:
data
})
}
// 新建潜在客户
export
function
createPotential
(
data
){
return
request
({
url
:
'
/ecw/customer/create-potential
'
,
method
:
'
post
'
,
data
})
}
// 删除客户
export
function
deleteCustomer
(
id
)
{
return
request
({
...
...
@@ -72,6 +80,14 @@ export function getCustomerSelect(query) {
params
:
query
})
}
// 潜在客户
export
function
getPotential
(
query
){
return
request
({
url
:
'
/ecw/customer/get-potential
'
,
method
:
'
get
'
,
params
:
query
})
}
// 根据客户id集合获得客户详情列表
export
function
getCustomerList
(
query
)
{
...
...
src/views/ecw/customer/index.vue
View file @
f78e6d0d
...
...
@@ -68,7 +68,8 @@
<!-- 操作工具栏 -->
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<el-button
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
<el-button
v-if=
"path === '/customer/potential'"
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAddPotential"
>
{{
$t
(
'
新增潜在客户
'
)
}}
</el-button>
<el-button
v-else
type=
"primary"
plain
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"[ selectAuthorityFn('ecw:customer:create')]"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
...
...
@@ -512,13 +513,14 @@
<customer-follow-list
:customer-id=
"customerId"
:id=
"customerId"
ref=
"CustomerFollowList"
></customer-follow-list>
<customer-complaints
:customer-id=
"customerId"
ref=
"customerComplaints"
></customer-complaints>
<transfer-customer
:show.sync=
"transferShow"
:customer-ids.sync=
"selectCustomerList"
></transfer-customer>
<add-potential-custom
ref=
"potentialCustom"
@
change=
"getList"
></add-potential-custom>
</div>
</template>
<
script
>
import
{
createCustomer
,
updateCustomer
,
deleteCustomer
,
getCustomer
,
getCustomerPage
,
exportCustomerExcel
,
testEnterToOpenSea
,
getCustomerDeptPage
,
changeCustomerAir
getCustomerPage
,
exportCustomerExcel
,
testEnterToOpenSea
,
getCustomerDeptPage
,
changeCustomerAir
,
getPotential
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
...
...
@@ -533,10 +535,12 @@ import { getCountryListAll } from '@/api/ecw/country'
import
{
getCreditPage
}
from
"
@/api/customer/credit
"
;
import
transferCustomer
from
"
@/views/ecw/customer/transferCustomer
"
;
import
Template
from
"
@/views/cms/template/index.vue
"
;
import
AddPotentialCustom
from
"
@/views/ecw/customer/addPotentialCustom.vue
"
;
export
default
{
name
:
"
EcwCustomerIndex
"
,
components
:
{
AddPotentialCustom
,
Template
,
upload
,
CustomerFollowList
,
...
...
@@ -604,6 +608,9 @@ export default {
};
},
computed
:{
path
(){
return
this
.
$route
.
path
},
channel
(){
return
(
val
)
=>
{
return
!!
val
?
this
.
getDictDatas
(
this
.
DICT_TYPE
.
ECW_CUSTOMER_TRANSPORT_TYPE
).
filter
(
i
=>
(
val
.
split
(
'
,
'
)
||
[]).
includes
(
i
.
value
)).
map
(
i
=>
this
.
isChinese
?
i
.
label
:
i
.
labelEn
).
join
(
'
,
'
)
:
''
...
...
@@ -642,9 +649,6 @@ export default {
this
.
creditList
=
r
.
data
.
list
})
this
.
getList
();
// getNodeList().then(r => {
// this.nodeList = r.data
// })
listServiceUser
().
then
(
r
=>
{
this
.
customerServiceList
=
r
.
data
;
})
...
...
@@ -709,6 +713,9 @@ export default {
case
'
/customer/department-customers
'
:
getCustomerDeptPage
(
params
).
then
(
this
.
setData
);
break
;
case
'
/customer/potential
'
:
getPotential
(
params
).
then
(
this
.
setData
)
break
;
}
},
...
...
@@ -719,6 +726,10 @@ export default {
// this.open = true;
// this.title = this.$t("添加客户");
},
// 新增潜在客户
handleAddPotential
(){
this
.
$refs
.
potentialCustom
.
dialogTableVisible
=
true
;
},
/** 删除按钮操作 */
handleDelete
(
row
)
{
const
id
=
row
.
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