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
c3641923
Commit
c3641923
authored
Dec 20, 2022
by
邓春圆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户详情添加删除 功能
parent
859b4cd3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
query.vue
src/views/ecw/customer/query.vue
+17
-3
No files found.
src/views/ecw/customer/query.vue
View file @
c3641923
...
...
@@ -9,7 +9,7 @@
<el-button
@
click=
"$router.push('/offer/create')"
type=
"primary"
size=
"small"
>
{{
$t
(
'
报价
'
)
}}
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"$refs['customerFollow'].customerFollow.dialogVisible = true"
>
{{
$t
(
'
跟进
'
)
}}
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"$refs['customerComplaint'].handleAdd()"
>
{{
$t
(
'
客诉
'
)
}}
</el-button>
<el-button
type=
"danger"
size=
"small
"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
<el-button
v-hasPermi=
"['ecw:customer:delete']"
type=
"danger"
size=
"small"
@
click=
"deleteCustomerFn()
"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</div>
</div>
<el-card
style=
"margin-top: 15px;"
>
...
...
@@ -414,7 +414,8 @@ import {
orderStatistics
,
creditLogCreate
,
creditScoreStatistic
,
infoListReceiptPage
,
userMemberUserList
,
memberUserList
infoListReceiptPage
,
userMemberUserList
,
memberUserList
,
deleteCustomer
,
}
from
'
@/api/ecw/customer
'
import
{
DICT_TYPE
,
getDictDataLabel
,
getDictDatas2
}
from
'
@/utils/dict
'
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
...
...
@@ -710,8 +711,21 @@ export default {
this
.
infoListReceiptTotal
=
r
.
data
.
total
;
}
}
)
}
,
deleteCustomerFn
(){
this
.
$confirm
(
`${this.$t('是否要删除当前客户')
}
《${this.customer.name
}
》?`
,
`${this.$t('提示')
}
`
,
{
confirmButtonText
:
this
.
$t
(
'
确定
'
),
cancelButtonText
:
this
.
$t
(
'
取消
'
),
type
:
'
warning
'
}
).
then
(()
=>
{
deleteCustomer
(
this
.
customerId
).
then
(
r
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
删除成功
'
));
this
.
$router
.
back
()
}
)
}
)
}
}
}
,
}
<
/script
>
...
...
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