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
9924d9b0
Commit
9924d9b0
authored
Jun 13, 2020
by
高宇强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gyq
parent
3506ce7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
+3
-3
No files found.
ic-deliver/app/base/controller/impl/bizchance/schemeCtl.js
View file @
9924d9b0
...
...
@@ -255,7 +255,6 @@ class SchemeCtl extends CtlBase {
if
(
pobj
.
businessMode
&&
pobj
.
businessMode
!=
'undefined'
&&
pobj
.
baseInfo
&&
pobj
.
baseInfo
!=
'undefined'
){
//商机编号必须存在
try
{
pobj
.
currentStatus
=
"beforeConfirmation"
;
//商机状态为待用户确认
await
this
.
bizoptService
.
updateStatusByDemandCode
(
pobj
);
//先修改商机状态
var
businessInfo
=
await
this
.
bizoptService
.
findInfoByDemandCode
(
pobj
);
//得到商机的信息,插入方案表时要用到
if
(
businessInfo
){
pobj
.
businessId
=
businessInfo
.
id
;
//商机id
...
...
@@ -267,7 +266,7 @@ class SchemeCtl extends CtlBase {
pobj
.
clerkName
=
businessInfo
.
salesman_name
;
//业务员名称
pobj
.
clerkPhone
=
businessInfo
.
salesman_phone
;
//业务员联系电话
//pobj.currentStatus = appconfig.pdict.businessStatus[businessInfo.business_status];//商机状态即为方案状态
pobj
.
statusReason
=
businessInfo
.
close_reason
;
//状态原因
//
pobj.statusReason = businessInfo.close_reason;//状态原因
}
//调商城的接口,把商机详情返回给商城
var
mobj
=
pobj
;
...
...
@@ -285,7 +284,8 @@ class SchemeCtl extends CtlBase {
var
rtn
=
await
rc
.
execPost
(
params
,
requrl
);
var
j
=
JSON
.
parse
(
rtn
.
stdout
);
if
(
j
.
status
==
1
){
pobj
.
schemeNumber
=
j
.
data
pobj
.
schemeNumber
=
j
.
data
;
await
this
.
bizoptService
.
updateStatusByDemandCode
(
pobj
);
//先修改商机状态
await
this
.
service
.
insertInfo
(
pobj
);
return
system
.
getResult
(
"操作成功!"
);
}
...
...
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