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
870c3be7
Commit
870c3be7
authored
Mar 19, 2020
by
王栋源
Browse files
Options
Browse Files
Download
Plain Diff
wdy
parents
2d1416c2
077295ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
14 deletions
+7
-14
center-order/app/base/db/models/dbneed/needinfo.js
+4
-4
center-order/app/base/service/impl/dbneed/needsolutionSve.js
+3
-10
No files found.
center-order/app/base/db/models/dbneed/needinfo.js
View file @
870c3be7
...
...
@@ -32,10 +32,10 @@ module.exports = (db, DataTypes) => {
},
city
:
DataTypes
.
STRING
(
50
),
// 城市
province
:
DataTypes
.
STRING
(
50
),
// 省份
typeCode
:
DataTypes
.
STRING
(
50
),
//类型编码',
typeName
:
DataTypes
.
STRING
(
50
),
//类型名称',
channelTypeCode
:
DataTypes
.
STRING
(
50
),
//渠道类型编码',
channelTypeName
:
DataTypes
.
STRING
(
50
),
//渠道
类型名称',
typeCode
:
DataTypes
.
STRING
(
50
),
//
产品
类型编码',
typeName
:
DataTypes
.
STRING
(
50
),
//类型
产品
名称',
channelTypeCode
:
DataTypes
.
STRING
(
50
),
//渠道
产品
类型编码',
channelTypeName
:
DataTypes
.
STRING
(
255
),
//渠道产品
类型名称',
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
...
...
center-order/app/base/service/impl/dbneed/needsolutionSve.js
View file @
870c3be7
...
...
@@ -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
...
...
@@ -317,7 +310,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
=
{
...
...
@@ -352,7 +345,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