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
188c891a
Commit
188c891a
authored
Nov 06, 2022
by
dcy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善客户接口修改
parent
d0009909
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
32 additions
and
10 deletions
+32
-10
customer.js
src/api/ecw/customer.js
+8
-1
index.js
src/router/index.js
+6
-0
edit.vue
src/views/ecw/customer/edit.vue
+17
-8
index.vue
src/views/ecw/customerConfirm/index.vue
+1
-1
No files found.
src/api/ecw/customer.js
View file @
188c891a
...
...
@@ -10,7 +10,14 @@ export function createCustomer(data) {
data
:
data
})
}
//完善客户
export
function
fillupCustomeInfo
(
data
){
return
request
({
url
:
'
/ecw/customer/fillup-customer-info
'
,
method
:
'
put
'
,
data
})
}
// 更新客户
export
function
updateCustomer
(
data
)
{
return
request
({
...
...
src/router/index.js
View file @
188c891a
...
...
@@ -270,6 +270,12 @@ export const constantRoutes = [
props
:
true
,
name
:
'
customerEdit
'
,
meta
:
{
title
:
'
新建客户
'
,
icon
:
''
}
},{
path
:
'
perfect/:customerId(
\\
d+)
'
,
component
:
(
resolve
)
=>
import
(
'
@/views/ecw/customer/edit
'
),
props
:
true
,
name
:
'
perfect
'
,
meta
:
{
title
:
'
完善客户
'
,
icon
:
''
}
},
{
path
:
'
query/:customerId(
\\
d+)
'
,
...
...
src/views/ecw/customer/edit.vue
View file @
188c891a
...
...
@@ -411,7 +411,7 @@ import {
getCustomerPage
,
memberUserList
,
updateCustomer
,
userMemberUserList
,
getCustomerLines
getCustomerLines
,
fillupCustomeInfo
}
from
'
@/api/ecw/customer
'
import
{
getNodeList
}
from
"
@/api/ecw/node
"
import
{
getProductTypeList
}
from
'
@/api/ecw/productType
'
...
...
@@ -673,14 +673,23 @@ export default {
this
.
form
.
customerContacts
.
forEach
(
e
=>
{
e
.
customerId
=
this
.
customerId
})
if
(
this
.
$route
.
name
===
'
perfect
'
){
fillupCustomeInfo
(
form
).
then
(
r
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
open
=
false
;
const
obj
=
{
path
:
"
/customer/customer
"
};
this
.
$tab
.
closeOpenPage
(
obj
);
})
}
else
{
updateCustomer
(
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
open
=
false
;
// this.getList();
const
obj
=
{
path
:
"
/customer/customer
"
};
this
.
$tab
.
closeOpenPage
(
obj
);
})
}
updateCustomer
(
form
).
then
(
response
=>
{
this
.
$modal
.
msgSuccess
(
this
.
$t
(
'
修改成功
'
));
this
.
open
=
false
;
// this.getList();
const
obj
=
{
path
:
"
/customer/customer
"
};
this
.
$tab
.
closeOpenPage
(
obj
);
})
return
;
}
// 添加的提交
...
...
src/views/ecw/customerConfirm/index.vue
View file @
188c891a
...
...
@@ -517,7 +517,7 @@ export default {
handleUpdate
(
row
)
{
this
.
reset
();
const
id
=
row
.
id
;
this
.
$router
.
push
(
'
/customer/
edi
t/
'
+
id
);
this
.
$router
.
push
(
'
/customer/
perfec
t/
'
+
id
);
// getCustomer(id).then(response => {
// this.form = response.data;
// this.open = true;
...
...
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