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
077295ad
Commit
077295ad
authored
Mar 19, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push2ali
parent
a97af938
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+3
-10
No files found.
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
077295ad
...
...
@@ -84,6 +84,7 @@ class NeedsolutionService extends ServiceBase {
var
solutionNo
=
await
this
.
getBusUid
(
"ns"
);
ab
[
"solutionNo"
]
=
solutionNo
;
ab
[
"status"
]
=
"dqr"
;
ab
.
solutionContent
.
notes
=
""
;
ab
.
solutionContent
=
JSON
.
stringify
(
ab
.
solutionContent
);
var
self
=
this
;
return
await
this
.
db
.
transaction
(
async
function
(
t
)
{
...
...
@@ -149,17 +150,9 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultFail
(
-
100
,
"未知用户"
);
}
ab
[
"createUserId"
]
=
user
.
id
;
// followManMobile: DataTypes.STRING,//跟进人手机号(合伙人)
// followManOnlyCode: DataTypes.STRING(50),//跟进者唯一码
if
(
!
ab
.
needNo
){
return
system
.
getResultFail
(
-
101
,
"需求号不能为空"
);
}
// if(!ab.followManMobile){
// return system.getResultFail(-102,"跟进人手机号不能为空");
// }
// if(!ab.followManOnlyCode){
// return system.getResultFail(-103,"跟进人唯一码不能为空");
// }
//获取需求信息
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
where
:{
needNo
:
ab
.
needNo
},
raw
:
true
...
...
@@ -297,7 +290,7 @@ class NeedsolutionService extends ServiceBase {
solutionContent
[
"deliveryStatusName"
]
=
solution_status
[
status
];
solutionContent
[
"updated"
]
=
new
Date
();
if
(
ab
.
note
){
solutionContent
[
"notes"
]
=
ab
.
note
;
solutionContent
[
"notes"
]
=
ab
.
note
;
//用户反馈信息
}
solutionContent
=
JSON
.
stringify
(
solutionContent
);
var
reqObj
=
{
...
...
@@ -327,7 +320,7 @@ class NeedsolutionService extends ServiceBase {
return
system
.
getResultFail
(
-
103
,
"方案状态错误,只能废弃待确认方案"
);
}
await
this
.
dao
.
update
({
id
:
ns
.
id
,
status
:
"yzf"
});
//方案废弃
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
(
{
channelSolutionNo
:
ns
.
channelSolutionNo
}
);
}
//根据需求关闭方案(关闭需求后调用)
async
abolishProgrammeByNeed
(
pobj
){
...
...
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