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
c39fc7a1
Commit
c39fc7a1
authored
Dec 08, 2023
by
houjn@hikoon.cn
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://gitlab.jdshangmen.com/jiedao-app/jiedao-app-operator
into release
parents
31dec4eb
6ddc9471
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
17 deletions
+36
-17
index.vue
src/views/ecw/customer/index.vue
+21
-2
index.vue
src/views/ecw/customerConfirm/index.vue
+15
-15
No files found.
src/views/ecw/customer/index.vue
View file @
c39fc7a1
...
...
@@ -66,11 +66,15 @@
</el-form>
<!-- 操作工具栏 -->
<div
style=
"color: red;margin-bottom: 5px;"
>
注意:创建的客户需接收
</div>
<el-row
:gutter=
"10"
class=
"mb8"
>
<el-col
:span=
"1.5"
>
<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>
v-hasPermi=
"[ selectAuthorityFn('ecw:customer:create')]"
>
{{
$t
(
'
新增
'
)
}}
</el-button>
</el-col>
<el-col
:span=
"1.5"
>
<el-button
:disabled=
"selectCustomerList.length === 0"
type=
"primary"
size=
"mini"
@
click=
"transferShow = true;"
...
...
@@ -170,6 +174,7 @@
<el-button
size=
"mini"
v-has-permi=
"[selectAuthorityFn('ecw:customer:follow-up')]"
type=
"text"
icon=
"el-icon-collection"
@
click=
"followUp(scope.row)"
>
{{
$t
(
'
跟进
'
)
}}
</el-button>
<el-button
size=
"mini"
v-has-permi=
"[selectAuthorityFn('ecw:customer:customer-complaint')]"
type=
"text"
icon=
"el-icon-user"
@
click=
"complaint(scope.row)"
>
{{
$t
(
'
客诉
'
)
}}
</el-button>
<el-button
:disabled=
"scope.row.isInOpenSea"
v-has-permi=
"[selectAuthorityFn('ecw:customer:postpone')]"
size=
"mini"
type=
"text"
icon=
"el-icon-user"
@
click=
"delay(scope.row)"
>
{{
$t
(
'
延期
'
)
}}
</el-button>
<el-button
v-has-permi=
"['ecw:customer:treat-recovery']"
v-if=
"scope.row.customerService !== null && scope.row.customerServiceAssignedTime !== null && !scope.row.isCustomerServiceConfirmed && !scope.row.isInOpenSea && path === '/customer/customer'"
size=
"mini"
type=
"text"
@
click=
"recovery(scope.row)"
>
{{
$t
(
'
回收客户
'
)
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
...
...
@@ -541,7 +546,7 @@ import {
getCustomerDeptPage
,
changeCustomerAir
,
getPotential
,
setChangeCustomerFcl
,
potentialExportExcel
,
deptExportExcel
setChangeCustomerFcl
,
potentialExportExcel
,
deptExportExcel
,
recycleUnconfirmedCustomer
}
from
"
@/api/ecw/customer
"
;
import
{
getDictDatas
,
DICT_TYPE
}
from
'
@/utils/dict
'
;
import
{
CommonStatusEnum
}
from
'
@/utils/constants
'
...
...
@@ -688,6 +693,20 @@ export default {
this
.
getList
();
},
methods
:
{
recovery
(
row
){
this
.
$confirm
(
this
.
$t
(
'
是否要回收当前{name}
'
,
row
),
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
recycleUnconfirmedCustomer
({
customerId
:
row
.
id
}).
then
(
r
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
回收成功。
'
))
this
.
getList
()
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
this
.
$t
(
'
已取消
'
))
});
},
// 设置整柜
setFullContainerLoad
(
isFcl
){
setChangeCustomerFcl
({
...
...
src/views/ecw/customerConfirm/index.vue
View file @
c39fc7a1
...
...
@@ -137,7 +137,7 @@
</router-link>
<el-button
size=
"mini"
type=
"text"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['ecw:customer:treat-perfect']"
>
{{
$t
(
'
完善
'
)
}}
</el-button>
<el-button
v-has-permi=
"['ecw:customer:treat-recovery']"
size=
"mini"
type=
"text"
@
click=
"recovery(scope.row)"
>
{{
$t
(
'
回收客户
'
)
}}
</el-button
>
<!--
<el-button
v-has-permi=
"['ecw:customer:treat-recovery']"
size=
"mini"
type=
"text"
@
click=
"recovery(scope.row)"
>
{{
$t
(
'
回收客户
'
)
}}
</el-button>
--
>
</
template
>
</el-table-column>
...
...
@@ -458,20 +458,20 @@ export default {
})
},
methods
:
{
recovery
(
row
){
console
.
log
(
row
,
'
row
'
)
this
.
$confirm
(
this
.
$t
(
'
是否要回收当前{name}
'
,
row
),
'
提示
'
,
{
confirmButtonText
:
'
确定
'
,
cancelButtonText
:
'
取消
'
,
type
:
'
warning
'
}).
then
(()
=>
{
recycleUnconfirmedCustomer
({
customerId
:
row
.
id
}).
then
(
r
=>
{
this
.
$message
.
success
(
this
.
$t
(
'
回收成功。
'
))
})
}).
catch
(()
=>
{
this
.
$message
.
info
(
this
.
$t
(
'
已取消
'
))
});
},
//
recovery(row){
//
console.log(row,'row')
//
this.$confirm(this.$t('是否要回收当前{name}',row), '提示', {
//
confirmButtonText: '确定',
//
cancelButtonText: '取消',
//
type: 'warning'
//
}).then(() => {
//
recycleUnconfirmedCustomer({customerId:row.id}).then(r =>{
//
this.$message.success(this.$t('回收成功。'))
//
})
//
}).catch(() => {
//
this.$message.info(this.$t('已取消'))
//
});
//
},
getDictDatas
,
countryFormatter
(
row
,
column
,
cellValue
)
{
const
country
=
this
.
countryList
.
find
((
e
)
=>
e
.
id
===
cellValue
)
...
...
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