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
43e8eea2
Commit
43e8eea2
authored
Nov 25, 2020
by
兰国旗
Browse files
Options
Browse Files
Download
Plain Diff
laolan
parents
400c6b63
306c5823
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
9 deletions
+23
-9
center-order/app/base/api/impl/action/need.js
+3
-0
center-order/app/base/service/impl/dbneed/needinfoSve.js
+10
-1
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+10
-8
No files found.
center-order/app/base/api/impl/action/need.js
View file @
43e8eea2
...
@@ -44,6 +44,9 @@ class IcAPI extends APIBase {
...
@@ -44,6 +44,9 @@ class IcAPI extends APIBase {
case
"getItemByChannelNeedNo"
:
//获取需求详情
case
"getItemByChannelNeedNo"
:
//获取需求详情
opResult
=
await
this
.
needinfoSve
.
getItemByChannelNeedNo
(
pobj
);
opResult
=
await
this
.
needinfoSve
.
getItemByChannelNeedNo
(
pobj
);
break
;
break
;
case
"getSolutionByChannelSolutionNo"
:
//获取方案详情
opResult
=
await
this
.
needinfoSve
.
getSolutionByChannelSolutionNo
(
pobj
);
break
;
case
"needClose"
:
//需求关闭
case
"needClose"
:
//需求关闭
opResult
=
await
this
.
needinfoSve
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
opResult
=
await
this
.
needinfoSve
.
needClose
(
pobj
,
pobj
.
actionBody
,
req
);
break
;
break
;
...
...
center-order/app/base/service/impl/dbneed/needinfoSve.js
View file @
43e8eea2
...
@@ -27,6 +27,15 @@ class NeedinfoService extends ServiceBase {
...
@@ -27,6 +27,15 @@ class NeedinfoService extends ServiceBase {
}
}
return
system
.
getResultSuccess
(
item
);
return
system
.
getResultSuccess
(
item
);
}
}
async
getSolutionByChannelSolutionNo
(
pobj
)
{
var
item
=
await
this
.
needsolutionDao
.
model
.
findOne
({
where
:{
channelSolutionNo
:
pobj
.
actionBody
.
bizId
}
});
if
(
!
item
)
{
return
system
.
getResult
(
null
,
"方案数据为空,30210"
);
}
return
system
.
getResultSuccess
(
item
);
}
async
needinfo2fq
(
pobj
)
{
async
needinfo2fq
(
pobj
)
{
pobj
.
actionBody
.
needNo
=
await
this
.
getBusUid
(
"n"
);
pobj
.
actionBody
.
needNo
=
await
this
.
getBusUid
(
"n"
);
pobj
.
actionBody
.
uapp_id
=
pobj
.
appInfo
.
id
;
pobj
.
actionBody
.
uapp_id
=
pobj
.
appInfo
.
id
;
...
@@ -179,7 +188,7 @@ class NeedinfoService extends ServiceBase {
...
@@ -179,7 +188,7 @@ class NeedinfoService extends ServiceBase {
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
return
system
.
getResult
(
null
,
"需求数据为空,30210"
);
}
}
// fixme 阿里直购需要更改
// fixme 阿里直购需要更改
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
item
.
solutionProvince
=
solutionitem
.
solutionContent
.
solution
.
Area
||
solutionitem
.
solutionContent
.
solution
.
area
;
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.actionType})`//北京(新办);
//item.solutionProvince = solutionitem.solutionContent.solution.Area + `(${solutionitem.solutionContent.solution.actionType})`//北京(新办);
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
solutionContent
=
solutionitem
.
solutionContent
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
item
.
channelSolutionNo
=
solutionitem
.
channelSolutionNo
...
...
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
43e8eea2
...
@@ -665,14 +665,16 @@ class AliyunQcService {
...
@@ -665,14 +665,16 @@ class AliyunQcService {
if
(
!
ns
||
!
ns
.
id
)
{
if
(
!
ns
||
!
ns
.
id
)
{
return
system
.
getResultFail
(
-
102
,
"未知方案"
);
return
system
.
getResultFail
(
-
102
,
"未知方案"
);
}
}
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
if
(
ab
.
isDirectBuy
!==
"true"
)
{
where
:
{
needNo
:
ns
.
needNo
},
raw
:
true
var
needinfo
=
await
this
.
needinfoDao
.
model
.
findOne
({
});
where
:
{
needNo
:
ns
.
needNo
},
raw
:
true
if
(
!
needinfo
)
{
});
return
system
.
getResultFail
(
-
104
,
"未知方案需求"
);
if
(
!
needinfo
)
{
}
return
system
.
getResultFail
(
-
104
,
"未知方案需求"
);
if
(
needinfo
.
status
==
"ygb"
)
{
}
return
system
.
getResultFail
(
-
105
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
if
(
needinfo
.
status
==
"ygb"
)
{
return
system
.
getResultFail
(
-
105
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
}
}
}
// if (ns.status == "yzf" || ns.status == "ywc") {
// if (ns.status == "yzf" || ns.status == "ywc") {
// return system.getResultFail(-103, "该方案状态为" + ns.statusName + ",不能执行此操作");
// return system.getResultFail(-103, "该方案状态为" + ns.statusName + ",不能执行此操作");
...
...
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