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
6965e60b
Commit
6965e60b
authored
Aug 28, 2020
by
王勇飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'tx-fi-tax' of gitlab.gongsibao.com:jiangyong/zhichan into tx-fi-tax
parents
d1bca6f1
7d29d02a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
0 deletions
+35
-0
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
+28
-0
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
+7
-0
No files found.
tx-fi-tax/app/base/controller/impl/bizchance/bizoptCtl.js
View file @
6965e60b
...
...
@@ -409,6 +409,34 @@ class BizOptCtl extends CtlBase {
}
}
/*根据需求编号更新需求状态*/
async
updatepayStatusByDemandCode
(
mobj
,
qobj
,
req
)
{
var
pobj
=
mobj
.
actionBody
;
if
(
pobj
.
solutionBizId
&&
pobj
.
solutionBizId
!=
'undefined'
)
{
try
{
pobj
.
demand_code
=
pobj
.
solutionBizId
;
if
(
pobj
.
operateType
==
'PAID'
)
{
pobj
.
business_status
=
'isFinished'
;
}
var
res
=
await
this
.
service
.
findInfoByDemandCode
(
pobj
);
if
(
res
)
{
Object
.
assign
(
res
.
business_info
,
{
"payStatus"
:
"已支付"
})
await
res
.
update
({
business_info
:
res
.
business_info
})
await
this
.
service
.
updateStatusByDemandCode
(
pobj
);
return
system
.
getResult
(
"操作成功!"
);
}
else
{
return
system
.
getResultError
(
"更新需求状态出错"
);
}
}
catch
(
error
)
{
return
system
.
getResultError
(
error
);
}
}
else
{
return
system
.
getResultError
(
"参数错误!"
);
}
}
timeFormat
(
date
)
{
let
localTime
=
moment
.
utc
(
date
).
toDate
();
localTime
=
moment
(
localTime
).
format
(
"YYYY-MM-DD"
);
...
...
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
View file @
6965e60b
...
...
@@ -97,6 +97,13 @@ class DeliverybillDao extends Dao {
delete
qc
.
where
.
deliveryStatus
;
}
if
(
qc
.
where
.
owner
)
{
filters
.
push
({
salesman_name
:
qc
.
where
.
owner
});
delete
qc
.
where
.
owner
;
}
if
(
qc
.
where
.
setupStatus
)
{
if
(
qobj
&&
qobj
.
search
&&
qobj
.
search
.
setupStatus
&&
qobj
.
search
.
setupStatus
===
system
.
SERVERSESTATUS
.
SETUP
)
{
filters
.
push
({
...
...
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