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
3506ce7d
Commit
3506ce7d
authored
Jun 13, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
345ec605
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
5 deletions
+29
-5
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
+29
-5
No files found.
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
View file @
3506ce7d
...
...
@@ -193,13 +193,37 @@ class SchemeCtl extends CtlBase {
/*根据商机编号更新方案详情*/
async
updateInfoByDemandCode
(
pobj
,
qobj
,
req
){
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
planInfo
&&
pobj
.
planInfo
!=
'undefined'
){
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
schemeNumber
&&
schemeNumber
!=
'undefined'
&&
pobj
.
planInfo
&&
pobj
.
planInfo
!=
'undefined'
){
try
{
pobj
.
currentStatus
=
"beforeConfirmation"
;
//同时把方案的状态也更新为待确认
var
retn
=
await
this
.
service
.
updateInfoByDemandCode
(
pobj
);
//更新方案详情
var
bobj
=
{
"businessMode"
:
pobj
.
businessMode
,
"currentStatus"
:
"beforeConfirmation"
};
//同时把商机状态更新回待确认
await
this
.
bizoptService
.
updateStatusByDemandCode
(
bobj
);
return
system
.
getResult
(
"更新成功!"
);
//修改方案的时候,需要把修改的方案传给商城
var
mobj
=
pobj
;
mobj
.
businessType
=
appconfig
.
pdict
.
fdyDict
[
pobj
.
businessType
];
var
rc
=
system
.
getObject
(
"util.execClient"
);
var
requrl
=
this
.
receiveUrl
;
var
params
=
{
"actionType"
:
"submitSolution"
,
"actionBody"
:{
"needNum"
:
pobj
.
businessMode
,
"solutionNum"
:
pobj
.
schemeNumber
,
"solutionContent"
:
mobj
}
}
var
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
==
1
){
var
retn
=
await
this
.
service
.
updateInfoByDemandCode
(
pobj
);
//更新方案详情
var
bobj
=
{
"businessMode"
:
pobj
.
businessMode
,
"currentStatus"
:
"beforeConfirmation"
};
//同时把商机状态更新回待确认
await
this
.
bizoptService
.
updateStatusByDemandCode
(
bobj
);
return
system
.
getResult
(
"更新成功!"
);
}
else
{
return
system
.
getResultError
(
"更新方案出错!"
);
}
}
catch
(
error
){
return
system
.
getResultError
(
error
);
...
...
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