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
7e4c8f1e
Commit
7e4c8f1e
authored
Aug 18, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bizopt fix api
parent
88cd8ea8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
132 additions
and
124 deletions
+132
-124
tx-fi-tax/app/base/controller/ctl.base.js
+2
-2
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
+9
-9
tx-fi-tax/app/base/controller/impl/bizchance/operationrecordCtl.js
+17
-17
tx-fi-tax/app/base/db/impl/bizchance/operationrecordDao.js
+2
-0
tx-fi-tax/app/base/db/metadata/app/platform.js
+102
-96
No files found.
tx-fi-tax/app/base/controller/ctl.base.js
View file @
7e4c8f1e
...
@@ -59,10 +59,10 @@ class CtlBase {
...
@@ -59,10 +59,10 @@ class CtlBase {
//添加组织结构路径,如果是上级,取上级
//添加组织结构路径,如果是上级,取上级
if
(
req
.
xctx
.
ptags
&&
req
.
xctx
.
ptags
!=
""
)
{
if
(
req
.
xctx
.
ptags
&&
req
.
xctx
.
ptags
!=
""
)
{
pobj
.
opath
=
req
.
xctx
.
ptags
pobj
.
opath
=
req
.
xctx
.
ptags
pob
.
isPrincipal
=
true
pob
j
.
isPrincipal
=
true
}
else
{
}
else
{
pobj
.
opath
=
req
.
xctx
.
opath
pobj
.
opath
=
req
.
xctx
.
opath
pob
.
isPrincipal
=
false
pob
j
.
isPrincipal
=
false
}
}
if
(
!
req
.
xctx
.
appkey
)
{
if
(
!
req
.
xctx
.
appkey
)
{
return
[
-
200
,
"请求头缺少应用x-app-key"
]
return
[
-
200
,
"请求头缺少应用x-app-key"
]
...
...
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
7e4c8f1e
...
@@ -75,30 +75,30 @@ class BizOptCtl extends CtlBase {
...
@@ -75,30 +75,30 @@ class BizOptCtl extends CtlBase {
* @param {*} mobj
* @param {*} mobj
* @param {*} qobj
* @param {*} qobj
* @param {*} req
* @param {*} req
*/
* {
async
distribution
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
let
params
=
{
demand_code_list: ["1", "2", "3"],//至少一个需求编号
demand_code_list: ["1", "2", "3"],//至少一个需求编号
salesman_opcode: "",//唯一标识
salesman_opcode: "",//唯一标识
salesman_id: "jdlfaj",//销售员id
salesman_id: "jdlfaj",//销售员id
salesman_name: "",//销售员姓名
salesman_name: "",//销售员姓名
salesman_phone: "",//销售员手机号
salesman_phone: "",//销售员手机号
}
}
*/
async
distribution
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
}
}
/**
/**
* 关闭需求
* 关闭需求
* @param {*} mobj
* @param {*} mobj
*/
* {
async
closeBizopt
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
pobj
.
business_status
=
"isClosed"
;
let
params
=
{
demand_code: "",//需求编号
demand_code: "",//需求编号
close_reason: "",//关闭原因
close_reason: "",//关闭原因
remarks: ""//备注
remarks: ""//备注
}
}
*/
async
closeBizopt
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
pobj
.
business_status
=
"isClosed"
;
//根据需求编号去更新该条需求的状态为已关闭
//根据需求编号去更新该条需求的状态为已关闭
try
{
try
{
let
res
=
await
this
.
service
.
updateStatusByDemandCode
(
pobj
);
let
res
=
await
this
.
service
.
updateStatusByDemandCode
(
pobj
);
...
...
tx-fi-tax/app/base/controller/impl/bizchance/operationrecordCtl.js
View file @
7e4c8f1e
...
@@ -10,46 +10,46 @@ class OperationrecordCtl extends CtlBase {
...
@@ -10,46 +10,46 @@ class OperationrecordCtl extends CtlBase {
/**
/**
* 查询记录信息
* 查询记录信息
* @param {*} mobj
* @param {*} mobj
*/
* {
async
findOne
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
let
params
=
{
demand_code: "",//需求编号
demand_code: "",//需求编号
close_reason
:
""
,
//关闭原因
operation_type: ""//操作类型
remarks
:
""
//备注
}
}
*/
async
findAllInfo
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
try
{
try
{
if
(
!
pobj
.
demand_code
)
{
if
(
!
pobj
.
demand_code
)
{
return
system
.
getResultError
(
"
fitaxschemeCtl/findOne
缺少需求编号!"
);
return
system
.
getResultError
(
"
operationrecordCtl/findAllInfo
缺少需求编号!"
);
}
}
let
res
=
await
this
.
service
.
findInfo
(
pobj
);
let
res
=
await
this
.
service
.
find
All
Info
(
pobj
);
return
system
.
getResult
(
res
);
return
system
.
getResult
(
res
);
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
"
fitaxschemeCtl/findOne
"
+
error
);
console
.
log
(
"
operationrecordCtl/findAllInfo
"
+
error
);
return
system
.
getResultError
(
"
fitaxschemeCtl/findOne
查询企业失败!"
);
return
system
.
getResultError
(
"
operationrecordCtl/findAllInfo
查询企业失败!"
);
}
}
}
}
/**
/**
* 新建记录信息
* 新建记录信息
* @param {*} mobj
* @param {*} mobj
* {
demand_code: "",//需求编号
operator: { id: "", name: "" },//操作人
operation_type: "",//操作类型
operation_details: {}//操作详细记录
}
*/
*/
async
insertInfo
(
mobj
,
qobj
,
req
)
{
async
insertInfo
(
mobj
,
qobj
,
req
)
{
let
pobj
=
mobj
.
d
;
let
pobj
=
mobj
.
d
;
let
params
=
{
demand_code
:
""
,
//需求编号
close_reason
:
""
,
//关闭原因
remarks
:
""
//备注
}
try
{
try
{
if
(
!
pobj
.
demand_code
)
{
if
(
!
pobj
.
demand_code
)
{
return
system
.
getResultError
(
"fitaxschemeCtl/insertInfo 缺少需求编号!"
);
return
system
.
getResultError
(
"fitaxschemeCtl/insertInfo 缺少需求编号!"
);
}
}
let
insertRes
=
await
this
.
service
.
insertInfo
(
pobj
);
let
insertRes
=
await
this
.
service
.
insertInfo
(
pobj
);
return
system
.
getResult
(
"添加
企业
成功!"
);
return
system
.
getResult
(
"添加
记录信息
成功!"
);
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
log
(
"operationrecordCtl/insertInfo "
+
error
);
console
.
log
(
"operationrecordCtl/insertInfo "
+
error
);
return
system
.
getResultError
(
"operationrecordCtl/insertInfo 添加
&修改企业
信息失败!"
);
return
system
.
getResultError
(
"operationrecordCtl/insertInfo 添加
记录
信息失败!"
);
}
}
}
}
}
}
...
...
tx-fi-tax/app/base/db/impl/bizchance/operationrecordDao.js
View file @
7e4c8f1e
...
@@ -10,6 +10,7 @@ class OperationrecordDao extends Dao {
...
@@ -10,6 +10,7 @@ class OperationrecordDao extends Dao {
*@param {*} qobj
*@param {*} qobj
*/
*/
async
findAllInfo
(
qobj
)
{
async
findAllInfo
(
qobj
)
{
qobj
.
order_type
=
"BIZ"
,
//数据类型需求|订单
qobj
.
raw
=
true
;
qobj
.
raw
=
true
;
return
await
this
.
model
.
findAll
(
qobj
);
return
await
this
.
model
.
findAll
(
qobj
);
}
}
...
@@ -22,6 +23,7 @@ class OperationrecordDao extends Dao {
...
@@ -22,6 +23,7 @@ class OperationrecordDao extends Dao {
async
insertInfo
(
qobj
,
t
)
{
async
insertInfo
(
qobj
,
t
)
{
let
obj
=
{
let
obj
=
{
"demand_code"
:
qobj
.
demand_code
,
// 需求编码
"demand_code"
:
qobj
.
demand_code
,
// 需求编码
"order_type"
:
"BIZ"
,
}
}
if
(
qobj
.
operator
)
{
// 操作人
if
(
qobj
.
operator
)
{
// 操作人
obj
.
operator
=
qobj
.
operator
;
obj
.
operator
=
qobj
.
operator
;
...
...
tx-fi-tax/app/base/db/metadata/app/platform.js
View file @
7e4c8f1e
This diff is collapsed.
Click to expand it.
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