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
b6a2d4a9
Commit
b6a2d4a9
authored
Dec 21, 2022
by
我在何方
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
间接客户删除修复
parent
be0bbc01
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
5 deletions
+34
-5
indirectCustomer.js
src/api/ecw/indirectCustomer.js
+8
-0
editIndirect.vue
src/views/ecw/customer/editIndirect.vue
+2
-2
indirectInfo.vue
src/views/ecw/customer/indirectInfo.vue
+13
-3
detail.vue
src/views/ecw/offer/detail.vue
+11
-0
No files found.
src/api/ecw/indirectCustomer.js
View file @
b6a2d4a9
...
...
@@ -46,3 +46,11 @@ export function getCustomerContactsListByCustomer(query) {
params
:
query
})
}
// 删除间接客户
export
function
deleteIndirectCustomer
(
id
)
{
return
request
({
url
:
'
/ecw/indirect-customer/delete?id=
'
+
id
,
method
:
'
delete
'
})
}
\ No newline at end of file
src/views/ecw/customer/editIndirect.vue
View file @
b6a2d4a9
...
...
@@ -680,7 +680,7 @@ export default {
fillupCustomeInfo
(
form
).
then
(
r
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
open
=
false
;
const
obj
=
{
path
:
"
/customer/
c
ustomer
"
};
const
obj
=
{
path
:
"
/customer/
indirectC
ustomer
"
};
this
.
$tab
.
closeOpenPage
(
obj
);
})
}
else
{
...
...
@@ -688,7 +688,7 @@ export default {
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
open
=
false
;
// this.getList();
const
obj
=
{
path
:
"
/customer/
c
ustomer
"
};
const
obj
=
{
path
:
"
/customer/
indirectC
ustomer
"
};
this
.
$tab
.
closeOpenPage
(
obj
);
})
}
...
...
src/views/ecw/customer/indirectInfo.vue
View file @
b6a2d4a9
...
...
@@ -9,7 +9,8 @@
<!--
<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"
@
click=
"delCustomer"
size=
"small"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
<!--
<el-button
type=
"danger"
@
click=
"delCustomer"
size=
"small"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
-->
<el-button
v-hasPermi=
"['ecw:indirectCustomer:delete']"
type=
"danger"
@
click=
"delCustomer"
size=
"small"
>
{{
$t
(
'
删除
'
)
}}
</el-button>
</div>
</div>
<el-card
style=
"margin-top: 15px;"
>
...
...
@@ -413,7 +414,7 @@ import CustomerFollow from "@/components/CustomerFollow"
import
{
parseTime
}
from
'
@/utils/ruoyi
'
import
CustomerComplaint
from
'
@/views/ecw/customerComplaint
'
import
{
listServiceUser
}
from
'
@/api/system/user
'
import
{
getCustomerContactsListByCustomer
,
getCustomer
}
from
'
@/api/ecw/indirectCustomer
'
import
{
getCustomerContactsListByCustomer
,
getCustomer
,
deleteIndirectCustomer
}
from
'
@/api/ecw/indirectCustomer
'
import
{
getOrderPage
}
from
"
@/api/ecw/order
"
;
import
Template
from
"
@/views/cms/template
"
;
import
{
getCreditRulePage
}
from
"
@/api/customer/creditRule
"
;
...
...
@@ -619,7 +620,16 @@ export default {
}
}
,
delCustomer
(){
this
.
$confirm
(
`${this.$t('是否要删除当前客户')
}
《${this.customer.name
}
》?`
,
`${this.$t('提示')
}
`
,
{
confirmButtonText
:
this
.
$t
(
'
确定
'
),
cancelButtonText
:
this
.
$t
(
'
取消
'
),
type
:
'
warning
'
}
).
then
(()
=>
{
deleteIndirectCustomer
(
this
.
id
).
then
(
r
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
删除成功
'
));
this
.
$router
.
back
()
}
)
}
)
}
,
changeDate
(
val
){
if
(
val
){
...
...
src/views/ecw/offer/detail.vue
View file @
b6a2d4a9
...
...
@@ -81,6 +81,17 @@
{{
getRouterNameById
(
list
.
lineId
)
}}
</el-descriptions-item>
</el-descriptions>
<el-descriptions
:column=
"4"
class=
"card"
>
<el-descriptions-item
:label=
"$t('报价单状态')"
>
<dict-tag
:type=
"DICT_TYPE.ECW_OFFER_STATUS"
:value=
"list.status"
/>
</el-descriptions-item>
</el-descriptions>
<el-descriptions
:column=
"4"
class=
"card"
v-if=
"list.status==5"
>
<el-descriptions-item
:label=
"$t('输单原因')"
>
{{
list
.
reason
}}
</el-descriptions-item>
</el-descriptions>
</div>
</el-card>
...
...
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