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
40eb4700
Commit
40eb4700
authored
Jun 12, 2023
by
邓春圆
Committed by
houjn@hikoon.cn
Jun 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客户id丢失
parent
7e3a5703
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
68 additions
and
59 deletions
+68
-59
edit.vue
src/views/ecw/customer/edit.vue
+11
-9
editIndirect.vue
src/views/ecw/customer/editIndirect.vue
+34
-31
indirectInfo.vue
src/views/ecw/customer/indirectInfo.vue
+23
-19
No files found.
src/views/ecw/customer/edit.vue
View file @
40eb4700
...
...
@@ -612,6 +612,7 @@ export default {
if
(
this
.
form
.
lightUnit
){
this
.
showPao
=
true
}
if
(
customerId
){
// 获取重泡货路线
getCustomerLines
(
customerId
).
then
(
res
=>
{
this
.
zhongLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
1
)
...
...
@@ -621,6 +622,7 @@ export default {
// /admin-api/customer-line/get-by-customer
// /admin-api/customer-line/get-by-customer?customerId=29564
})
}
})
}
else
{
this
.
getZhongPao
()
...
...
src/views/ecw/customer/editIndirect.vue
View file @
40eb4700
...
...
@@ -432,7 +432,7 @@ import MemberSelector from '@/components/MemberSelector'
export
default
{
name
:
"
editIndirect
"
,
props
:
{
customerId
:
String
,
//
customerId: String,
},
components
:
{
Template
,
...
...
@@ -445,11 +445,12 @@ export default {
this
.
getCustomerSelect
()
this
.
reset
()
// this.getUserMemberUserFn()
if
(
this
.
$route
.
query
.
id
)
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
)
{
// 编辑客户
this
.
customerId
=
this
.
$route
.
query
.
id
this
.
getCustomer
(
this
.
customerId
).
then
(()
=>
{
getCustomerContactsListByCustomer
({
customerId
:
this
.
customerId
}).
then
(
r
=>
{
this
.
getCustomer
(
this
.
$route
.
query
.
id
).
then
(()
=>
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
){
getCustomerContactsListByCustomer
({
customerId
:
this
.
$route
.
query
.
id
}).
then
(
r
=>
{
if
(
r
.
data
&&
r
.
data
.
length
>
0
){
this
.
form
.
customerContacts
=
r
.
data
let
list
=
this
.
form
.
customerContacts
.
map
(
item
=>
item
.
userid
);
...
...
@@ -465,7 +466,7 @@ export default {
})
}
})
}
// 打开重泡货开关
if
(
this
.
form
.
weightUnit
){
this
.
showZhong
=
true
...
...
@@ -473,9 +474,9 @@ export default {
if
(
this
.
form
.
lightUnit
){
this
.
showPao
=
true
}
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
){
// 获取重泡货路线
getCustomerLines
(
this
.
customerI
d
).
then
(
res
=>
{
getCustomerLines
(
this
.
$route
.
query
.
i
d
).
then
(
res
=>
{
console
.
log
({
getCustomerLines
:
res
})
this
.
zhongLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
1
)
this
.
paoLines
=
res
.
data
.
filter
(
item
=>
item
.
zhongPaoType
==
2
)
...
...
@@ -484,6 +485,7 @@ export default {
// /admin-api/customer-line/get-by-customer
// /admin-api/customer-line/get-by-customer?customerId=29564
})
}
})
}
else
{
// 新建客户
...
...
@@ -519,6 +521,7 @@ export default {
},
data
(){
return
{
customerId
:
''
,
isCustomerServiceConfirmed
:
false
,
getDictDatas
,
DICT_TYPE
,
...
...
src/views/ecw/customer/indirectInfo.vue
View file @
40eb4700
...
...
@@ -429,7 +429,7 @@ export default {
}
,
created
()
{
//获取信用类型
if
(
this
.
$route
.
query
.
id
){
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
){
this
.
id
=
this
.
$route
.
query
.
id
}
getCreditRulePage
({
page
:
1
,
rows
:
999
,
type
:
2
}
).
then
(
r
=>
{
...
...
@@ -438,10 +438,11 @@ export default {
getNodeList
().
then
(
r
=>
{
this
.
nodeList
=
r
.
data
}
)
if
(
this
.
$route
.
query
&&
this
.
id
){
getCustomer
(
this
.
id
).
then
(
response
=>
{
this
.
customer
=
{
...
this
.
customer
,
...
response
.
data
}
console
.
log
(
this
.
id
)
getCustomerContactsListByCustomer
({
customerId
:
this
.
id
}
).
then
(
r
=>
{
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
id
){
getCustomerContactsListByCustomer
({
customerId
:
this
.
$route
.
query
.
id
}
).
then
(
r
=>
{
if
(
r
.
data
&&
r
.
data
.
length
>
0
){
this
.
customerContacts
=
r
.
data
let
list
=
this
.
customerContacts
.
map
(
r
=>
r
.
userid
)
...
...
@@ -451,11 +452,13 @@ export default {
}
}
)
}
getCountry
(
this
.
customer
.
country
?
this
.
customer
.
country
:
0
).
then
(
r
=>
{
this
.
country
=
r
.
data
?
r
.
data
.
nameZh
:
''
}
)
}
)
}
getProductTypeList
().
then
(
r
=>
{
this
.
productTypeList
=
r
.
data
}
)
...
...
@@ -479,6 +482,7 @@ export default {
}
,
data
()
{
return
{
customerId
:
''
,
STATUS
:{
0
:
this
.
$t
(
'
取消报价
'
),
1
:
this
.
$t
(
'
特价审批中
'
),
...
...
@@ -597,9 +601,9 @@ export default {
customerService
()
{
return
this
.
serviceUserList
.
find
(
e
=>
e
.
id
===
this
.
customer
.
customerService
)?.
nickname
||
''
}
,
id
()
{
return
this
.
customerId
?
parseInt
(
this
.
customerId
)
:
undefined
}
,
//
id()
{
//
return this.customerId ? parseInt(this.customerId) : undefined
//
}
,
creditScoreCalculation
(){
return
(
val
)
=>
{
if
(
val
===
'
all
'
){
...
...
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