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
214712b2
Commit
214712b2
authored
Aug 26, 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
6b6a2444
c91128c2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
+21
-5
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
+3
-0
tx-fi-tax/app/base/system.js
+1
-1
No files found.
tx-fi-tax/app/base/db/impl/bizchance/deliverybillDao.js
View file @
214712b2
...
@@ -40,7 +40,7 @@ class DeliverybillDao extends Dao {
...
@@ -40,7 +40,7 @@ class DeliverybillDao extends Dao {
})
})
// 根据 页面 过滤 交付状态
// 根据 页面 过滤 交付状态
switch
(
qobj
.
bizpath
)
{
switch
(
qobj
.
bizpath
)
{
case
"/
configManageMent
/deliveryRecord"
:
// 交付单记录
case
"/
deliveryManage
/deliveryRecord"
:
// 交付单记录
filters
.
push
({
filters
.
push
({
delivery_status
:
{
delivery_status
:
{
$in
:
[
$in
:
[
...
@@ -49,7 +49,7 @@ class DeliverybillDao extends Dao {
...
@@ -49,7 +49,7 @@ class DeliverybillDao extends Dao {
}
}
});
});
break
break
case
"/
configManageMent/deliveryManage
"
:
//交付单处理
case
"/
deliveryManage/deliveryDealWith
"
:
//交付单处理
filters
.
push
({
filters
.
push
({
delivery_status
:
{
delivery_status
:
{
$in
:
[
$in
:
[
...
@@ -98,9 +98,25 @@ class DeliverybillDao extends Dao {
...
@@ -98,9 +98,25 @@ class DeliverybillDao extends Dao {
}
}
if
(
qc
.
where
.
setupStatus
)
{
if
(
qc
.
where
.
setupStatus
)
{
filters
.
push
({
if
(
qobj
&&
qobj
.
search
&&
qobj
.
search
.
setupStatus
&&
qobj
.
search
.
setupStatus
===
system
.
SERVERSESTATUS
.
SETUP
)
{
v_setup_status
:
qc
.
where
.
setupStatus
filters
.
push
({
});
v_setup_status
:
qc
.
where
.
setupStatus
});
}
else
{
filters
.
push
({
$or
:
[
{
v_setup_status
:
qc
.
where
.
setupStatus
},
{
v_setup_status
:
{
$eq
:
null
}
}
]
});
}
delete
qc
.
where
.
setupStatus
;
delete
qc
.
where
.
setupStatus
;
}
}
...
...
tx-fi-tax/app/base/service/impl/bizchance/deliverybillSve.js
View file @
214712b2
...
@@ -62,6 +62,9 @@ class DeliverybillService extends ServiceBase {
...
@@ -62,6 +62,9 @@ class DeliverybillService extends ServiceBase {
if
(
deliverData
.
delivery_status
!==
system
.
SERVERSESTATUS
.
INSERVICE
)
{
if
(
deliverData
.
delivery_status
!==
system
.
SERVERSESTATUS
.
INSERVICE
)
{
throw
new
Error
(
"该状态下不可建账"
);
throw
new
Error
(
"该状态下不可建账"
);
}
}
if
(
deliverData
.
delivery_info
.
setupStatus
&&
deliverData
.
delivery_info
.
setupStatus
===
system
.
SERVERSESTATUS
.
SETUP
)
{
throw
new
Error
(
"已建账"
);
}
await
this
.
dao
.
updateByWhere
({
await
this
.
dao
.
updateByWhere
({
delivery_info
:
{
delivery_info
:
{
...
delivery_info
,
...
delivery_info
,
...
...
tx-fi-tax/app/base/system.js
View file @
214712b2
...
@@ -415,7 +415,7 @@ System.SERVERSESTATUS = {
...
@@ -415,7 +415,7 @@ System.SERVERSESTATUS = {
INSERVICE
:
"inservice"
,
//服务中
INSERVICE
:
"inservice"
,
//服务中
CLOSED
:
"closed"
,
//已关闭 、已终止
CLOSED
:
"closed"
,
//已关闭 、已终止
NOTSETUP
:
"notsetup"
,
//未建账
NOTSETUP
:
"notsetup"
,
//未建账
SETUP
:
"setup"
//
未
建账
SETUP
:
"setup"
//建账
}
}
/*
/*
...
...
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