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
26939bc6
Commit
26939bc6
authored
Aug 03, 2020
by
庄冰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
abolishIcpProgrammeByNeed
parent
9632428e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
center-order/app/base/api/impl/action/qcapi.js
+1
-1
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
+5
-6
No files found.
center-order/app/base/api/impl/action/qcapi.js
View file @
26939bc6
...
@@ -73,7 +73,7 @@ class QcAPI extends APIBase {
...
@@ -73,7 +73,7 @@ class QcAPI extends APIBase {
case
"closeOrderDelivery"
:
//交付商关闭交付单
case
"closeOrderDelivery"
:
//交付商关闭交付单
opResult
=
await
this
.
aliyunqcSve
.
closeOrderDelivery
(
pobj
);
opResult
=
await
this
.
aliyunqcSve
.
closeOrderDelivery
(
pobj
);
break
;
break
;
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求
case
"abolishIcpProgrammeByNeed"
:
//前端关闭ICP需求
及方案
opResult
=
await
this
.
aliyunqcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
opResult
=
await
this
.
aliyunqcSve
.
abolishIcpProgrammeByNeed
(
pobj
);
break
;
break
;
default
:
default
:
...
...
center-order/app/base/service/impl/qcutils/aliyunqcSve.js
View file @
26939bc6
...
@@ -48,15 +48,14 @@ class AliyunQcService{
...
@@ -48,15 +48,14 @@ class AliyunQcService{
return
system
.
getResultFail
(
-
202
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
return
system
.
getResultFail
(
-
202
,
"该方案需求状态为"
+
needinfo
.
statusName
+
",不能执行此操作"
);
}
}
//获取方案信息
//获取方案信息
var
ns
=
await
this
.
needsolutionDao
.
model
.
find
All
({
var
ns
=
await
this
.
needsolutionDao
.
model
.
find
One
({
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
raw
:
true
});
});
for
(
var
i
=
0
;
i
<
ns
.
length
;
i
++
)
{
if
(
ns
&&
ns
.
id
){
var
fa
=
ns
[
i
];
if
(
ns
.
status
==
"ywc"
)
{
if
(
fa
.
status
==
"ywc"
)
{
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
return
system
.
getResultFail
(
-
103
,
"方案状态错误,不能废弃已完成方案"
);
}
}
var
flowStatus
=
fa
.
solutionContent
&&
fa
.
solutionContent
.
status
?
fa
.
solutionContent
.
status
:
""
;
var
flowStatus
=
ns
.
solutionContent
&&
ns
.
solutionContent
.
status
?
ns
.
solutionContent
.
status
:
""
;
if
(
flowStatus
&&
[
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
<
0
){
if
(
flowStatus
&&
[
"GXB_REFUSE"
,
"CLOSE"
].
indexOf
(
flowStatus
)
<
0
){
return
system
.
getResultFail
(
-
104
,
"⽅案状态为关闭或不予受理才可关闭需求"
);
return
system
.
getResultFail
(
-
104
,
"⽅案状态为关闭或不予受理才可关闭需求"
);
}
}
...
@@ -68,7 +67,7 @@ class AliyunQcService{
...
@@ -68,7 +67,7 @@ class AliyunQcService{
};
};
await
self
.
needinfoDao
.
update
(
needObj
,
t
);
//关闭需求
await
self
.
needinfoDao
.
update
(
needObj
,
t
);
//关闭需求
await
self
.
needsolutionDao
.
model
.
update
({
status
:
"yzf"
,
isInvalid
:
1
},
{
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
transaction
:
t
});
//方案废弃
await
self
.
needsolutionDao
.
model
.
update
({
status
:
"yzf"
,
isInvalid
:
1
},
{
where
:
{
needNo
:
needinfo
.
needNo
,
isInvalid
:
0
},
transaction
:
t
});
//方案废弃
return
system
.
getResultSuccess
();
return
system
.
getResultSuccess
(
ns
.
orderNo
);
})
})
}
}
...
...
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