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
e044b590
Commit
e044b590
authored
Aug 21, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pp
parent
f2b174cc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletions
+25
-1
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
+6
-0
tx-fi-tax/app/base/controller/impl/bizchance/operationrecordCtl.js
+19
-1
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
e044b590
...
@@ -124,6 +124,12 @@ class BizOptCtl extends CtlBase {
...
@@ -124,6 +124,12 @@ class BizOptCtl extends CtlBase {
let
res
=
await
this
.
service
.
updateStatusByDemandCode
(
pobj
);
let
res
=
await
this
.
service
.
updateStatusByDemandCode
(
pobj
);
//TODO 同步该需求关闭信息到其他系统
//TODO 同步该需求关闭信息到其他系统
//添加到记录表
pobj
.
operator
=
{
id
:
mobj
.
userid
?
mobj
.
userid
:
""
,
name
:
mobj
.
username
?
mobj
.
username
:
""
}
let
recordRes
=
await
this
.
operationrecordSve
.
insertInfo
(
pobj
);
return
system
.
getResult
(
"关闭需求成功!"
);
return
system
.
getResult
(
"关闭需求成功!"
);
}
catch
(
error
)
{
}
catch
(
error
)
{
return
system
.
getResultError
(
"bizoptCtl/closeBizopt 关闭需求出错!"
);
return
system
.
getResultError
(
"bizoptCtl/closeBizopt 关闭需求出错!"
);
...
...
tx-fi-tax/app/base/controller/impl/bizchance/operationrecordCtl.js
View file @
e044b590
...
@@ -5,6 +5,7 @@ const appconfig = system.getSysConfig();
...
@@ -5,6 +5,7 @@ const appconfig = system.getSysConfig();
class
OperationrecordCtl
extends
CtlBase
{
class
OperationrecordCtl
extends
CtlBase
{
constructor
()
{
constructor
()
{
super
(
"bizchance"
,
CtlBase
.
getServiceName
(
OperationrecordCtl
));
super
(
"bizchance"
,
CtlBase
.
getServiceName
(
OperationrecordCtl
));
this
.
bizoptSve
=
system
.
getObject
(
"service.bizchance.bizoptSve"
);
}
}
/**
/**
...
@@ -34,17 +35,34 @@ class OperationrecordCtl extends CtlBase {
...
@@ -34,17 +35,34 @@ class OperationrecordCtl extends CtlBase {
* @param {*} mobj
* @param {*} mobj
* {
* {
demand_code: "",//需求编号
demand_code: "",//需求编号
operator: { id: "", name: "" },//操作人
operation_type: "",//操作类型
operation_type: "",//操作类型
operation_details: {}//操作详细记录
operation_details: {}//操作详细记录
}
}
*/
*/
async
insertInfo
(
mobj
,
qobj
,
req
)
{
async
insertInfo
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
let
pobj
=
mobj
.
d
;
//取请求头中的userid和name
pobj
.
operator
=
{
id
:
mobj
.
userid
?
mobj
.
userid
:
""
,
name
:
mobj
.
username
?
mobj
.
username
:
""
}
try
{
try
{
if
(
!
pobj
.
demand_code
)
{
if
(
!
pobj
.
demand_code
)
{
return
system
.
getResultError
(
"fitaxschemeCtl/insertInfo 缺少需求编号!"
);
return
system
.
getResultError
(
"fitaxschemeCtl/insertInfo 缺少需求编号!"
);
}
}
if
(
pobj
.
operation_type
==
"followUp"
)
{
if
(
pobj
.
operation_details
.
intention
)
{
let
obj
=
{
demand_code
:
pobj
.
demand_code
}
if
(
pobj
.
operation_details
.
intention
==
"方案"
)
{
//状态修改为 '待确认方案'
obj
.
business_status
=
"beforeSubmission"
;
}
else
{
//状态修改为'跟进中'
obj
.
business_status
=
"followingUp"
;
}
let
bizoptRes
=
await
this
.
bizoptSve
.
updateStatusByDemandCode
(
obj
);
}
}
let
insertRes
=
await
this
.
service
.
insertInfo
(
pobj
);
let
insertRes
=
await
this
.
service
.
insertInfo
(
pobj
);
return
system
.
getResult
(
"添加记录信息成功!"
);
return
system
.
getResult
(
"添加记录信息成功!"
);
}
catch
(
error
)
{
}
catch
(
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