Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
33e1c5fc
Commit
33e1c5fc
authored
Jun 23, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
d
parent
15abb784
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
3 deletions
+18
-3
xggsve-chance/app/base/db/models/chance/cclue.js
+2
-1
xggsve-chance/app/base/service/impl/chance/cclueSve.js
+16
-2
No files found.
xggsve-chance/app/base/db/models/chance/cclue.js
View file @
33e1c5fc
...
@@ -13,7 +13,8 @@ module.exports = (db, DataTypes) => {
...
@@ -13,7 +13,8 @@ module.exports = (db, DataTypes) => {
operator_path
:
DataTypes
.
BIGINT
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
,
operator_path
:
DataTypes
.
BIGINT
,
defaultValue
:
''
,
comment
:
'业务员权限路径'
,
close_reason
:
DataTypes
.
STRING
,
defaultValue
:
''
,
comment
:
'关闭原因 10 客户无意向 20 客户联系不上 30 客户暂时不需要 40 客户已购买其他家 50 其他'
,
close_reason
:
DataTypes
.
STRING
,
defaultValue
:
''
,
comment
:
'关闭原因 10 客户无意向 20 客户联系不上 30 客户暂时不需要 40 客户已购买其他家 50 其他'
,
close_remarks
:
DataTypes
.
INTEGER
,
defaultValue
:
''
,
comment
:
'关闭备注'
,
close_remarks
:
DataTypes
.
INTEGER
,
defaultValue
:
''
,
comment
:
'关闭备注'
,
callback_url
:
DataTypes
.
STRING
,
defaultValue
:
''
,
comment
:
'阿里回调地址'
callback_url
:
DataTypes
.
STRING
,
defaultValue
:
''
,
comment
:
'阿里回调地址'
,
clue_content
:
DataTypes
.
STRING
,
defaultValue
:
''
,
comment
:
'线索内容'
,
},
{
},
{
paranoid
:
true
,
paranoid
:
true
,
underscored
:
true
,
underscored
:
true
,
...
...
xggsve-chance/app/base/service/impl/chance/cclueSve.js
View file @
33e1c5fc
...
@@ -34,7 +34,8 @@ class CclueService extends ServiceBase {
...
@@ -34,7 +34,8 @@ class CclueService extends ServiceBase {
operator_path
:
this
.
trim
(
params
.
operator_path
),
operator_path
:
this
.
trim
(
params
.
operator_path
),
callback_url
:
this
.
trim
(
params
.
callback_url
),
callback_url
:
this
.
trim
(
params
.
callback_url
),
status
:
"10"
,
status
:
"10"
,
deliver_id
:
this
.
trim
(
params
.
deliver_id
)
deliver_id
:
this
.
trim
(
params
.
deliver_id
),
clue_content
:
this
.
trim
(
params
.
clue_content
)
||
""
};
};
try
{
try
{
await
this
.
db
.
transaction
(
async
t
=>
{
await
this
.
db
.
transaction
(
async
t
=>
{
...
@@ -117,7 +118,7 @@ class CclueService extends ServiceBase {
...
@@ -117,7 +118,7 @@ class CclueService extends ServiceBase {
try
{
try
{
let
countRes
=
await
this
.
dao
.
countClue
(
params
);
let
countRes
=
await
this
.
dao
.
countClue
(
params
);
if
(
countRes
.
count
==
0
){
if
(
countRes
.
count
==
0
){
return
system
.
getResult
({
count
:
0
,
row
:
[]});
return
system
.
getResult
({
count
:
0
,
row
s
:
[]});
}
}
let
list
=
await
this
.
dao
.
listClue
(
params
);
let
list
=
await
this
.
dao
.
listClue
(
params
);
let
clueIds
=
[];
let
clueIds
=
[];
...
@@ -135,6 +136,19 @@ class CclueService extends ServiceBase {
...
@@ -135,6 +136,19 @@ class CclueService extends ServiceBase {
}
else
{
}
else
{
element
.
status_name
=
""
;
element
.
status_name
=
""
;
}
}
//关闭原因 10 客户无意向 20 客户联系不上 30 客户暂时不需要 40 客户已购买其他家 50 其他
if
(
element
.
close_reason
==
'10'
){
element
.
close_reason_name
=
"客户无意向"
;
}
else
if
(
element
.
close_reason
==
'20'
){
element
.
close_reason_name
=
"客户联系不上"
;
}
else
if
(
element
.
close_reason
==
'30'
){
element
.
close_reason_name
=
"客户暂时不需要"
;
}
else
if
(
element
.
close_reason
==
'40'
){
element
.
close_reason_name
=
"客户已购买其他家"
;
}
else
{
element
.
close_reason_name
=
"其他"
;
}
clueIds
.
push
(
element
.
id
);
clueIds
.
push
(
element
.
id
);
}
}
await
this
.
formatCscheme
(
list
,
clueIds
);
await
this
.
formatCscheme
(
list
,
clueIds
);
...
...
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