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
76dfee3a
Commit
76dfee3a
authored
Sep 22, 2020
by
DESKTOP-7Q3CA17\86137
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'bpo-web' of
http://gitlab.gongsibao.com/jiangyong/zhichan
into bpo-web
parents
6a5e8621
fc6d0fc7
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
29 deletions
+80
-29
bpo-web/app/base/api/impl/xbgApi.js
+57
-17
bpo-web/app/base/service/impl/dkcontractSve.js
+16
-11
bpo-web/app/base/service/impl/econtractSve.js
+0
-1
bpo-web/app/base/service/impl/etemplatebusiSve.js
+5
-0
bpo-web/app/front/entry/public/dvLuU2i3uC.txt
+2
-0
No files found.
bpo-web/app/base/api/impl/xbgApi.js
View file @
76dfee3a
...
@@ -10,7 +10,11 @@ class XbgApi extends apiBase{
...
@@ -10,7 +10,11 @@ class XbgApi extends apiBase{
this
.
econtractSve
=
system
.
getObject
(
"service.econtractSve"
);
this
.
econtractSve
=
system
.
getObject
(
"service.econtractSve"
);
this
.
esettleSve
=
system
.
getObject
(
"service.esettleSve"
);
this
.
esettleSve
=
system
.
getObject
(
"service.esettleSve"
);
this
.
etemplatebusiSve
=
system
.
getObject
(
"service.etemplatebusiSve"
);
this
.
etemplatebusiSve
=
system
.
getObject
(
"service.etemplatebusiSve"
);
this
.
etemplatebusiSve
=
system
.
getObject
(
"service.etemplatebusiSve"
);
this
.
excelClient
=
system
.
getObject
(
"util.excelClient"
);
this
.
excelClient
=
system
.
getObject
(
"util.excelClient"
);
this
.
dkcontractSve
=
system
.
getObject
(
"service.dkcontractSve"
);
}
}
//合同模板
//合同模板
...
@@ -50,7 +54,7 @@ class XbgApi extends apiBase{
...
@@ -50,7 +54,7 @@ class XbgApi extends apiBase{
}
}
async
acontracttoMtchIdList
(
qobj
)
{
async
acontracttoMtchIdList
_old
(
qobj
)
{
try
{
try
{
var
params
=
qobj
||
{};
var
params
=
qobj
||
{};
var
eteids
=
await
this
.
etemplatebusiSve
.
geteteIds
(
params
.
mtchId
);
var
eteids
=
await
this
.
etemplatebusiSve
.
geteteIds
(
params
.
mtchId
);
...
@@ -69,30 +73,66 @@ class XbgApi extends apiBase{
...
@@ -69,30 +73,66 @@ class XbgApi extends apiBase{
}
}
}
}
async
acontracttoMtchIdList
(
qobj
)
{
try
{
let
params
=
qobj
||
{};
let
bList
=
await
this
.
etemplatebusiSve
.
byBusiId
(
params
.
mtchId
);
if
(
!
bList
||
bList
.
length
==
0
)
{
return
system
.
getResult2
({
count
:
0
,
rows
:
[]});
}
//已签合同导出
let
zIds
=
[];
// 专票末班id
let
pIds
=
[];
// 普票模板id
for
(
let
busi
of
bList
)
{
if
(
busi
.
template_type
==
1
)
{
zIds
.
push
(
busi
.
template_id
);
}
else
{
pIds
.
push
(
busi
.
template_id
);
}
}
async
allExport
(
qobj
)
{
if
(
zIds
.
length
>
0
){
var
params
=
qobj
||
{};
params
.
etemplateIds
=
zIds
;
params
.
currentPage
=
1
;
params
.
eflowstatusList
=
[
'2'
];
params
.
pageSize
=
60000
;
this
.
doTimeCondition
(
params
,
[
"signBegin"
,
"signEnd"
]);
var
eteids
=
await
this
.
etemplatebusiSve
.
geteteIds
(
params
.
mtchId
);
let
page
=
await
this
.
econtractSve
.
pageByCondition
(
params
);
if
(
eteids
.
length
>
0
){
return
system
.
getResult2
(
page
);
params
.
etemplateIds
=
eteids
;
}
}
else
{
return
system
.
getErrResult2
(
"导出失败"
);
if
(
pIds
.
length
>
0
)
{
}
params
.
dktemplateIds
=
pIds
;
params
.
eflowstatusList
=
[
'2'
];
params
.
eflowstatusList
=
[
'2'
];
this
.
doTimeCondition
(
params
,
[
"signBegin"
,
"signEnd"
]);
this
.
doTimeCondition
(
params
,
[
"signBegin"
,
"signEnd"
]);
try
{
let
page
=
await
this
.
dkcontractSve
.
pageByCondition
(
params
);
return
await
this
.
econtractSve
.
pageByCondition
(
params
);
// 处理一下狗屎
if
(
page
&&
page
.
rows
)
{
for
(
let
row
of
page
.
rows
)
{
row
.
template_type
=
2
;
row
.
etemplate_id
=
row
.
dktemplate_id
;
row
.
ecompany_id
=
row
.
dkcompany_id
;
row
.
ecompany
=
row
.
dkcompany
;
row
.
template
=
{
id
:
10233
,
}
}
}
return
system
.
getResult2
(
page
);
}
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
log
(
e
);
console
.
log
(
e
);
return
system
.
getErrResult2
(
"
您的网络不稳, 请稍后重试
"
);
return
system
.
getErrResult2
(
"
接口异常
"
);
}
}
}
}
//已签合同导出
async
allExport
(
qobj
)
{
var
params
=
qobj
||
{};
params
.
currentPage
=
1
;
params
.
pageSize
=
60000
;
let
res
=
await
this
.
acontracttoMtchIdList
(
params
);
return
res
.
data
;
}
//纳税人人员
//纳税人人员
async
ratepayingListToPe
(
qobj
)
{
async
ratepayingListToPe
(
qobj
)
{
...
...
bpo-web/app/base/service/impl/dkcontractSve.js
View file @
76dfee3a
...
@@ -78,21 +78,26 @@ class DKcontractService extends ServiceBase {
...
@@ -78,21 +78,26 @@ class DKcontractService extends ServiceBase {
var
where
=
{};
var
where
=
{};
if
(
params
.
e
companyIds
)
{
if
(
params
.
dk
companyIds
)
{
where
.
e
company_id
=
{
where
.
dk
company_id
=
{
[
this
.
db
.
Op
.
in
]:
params
.
e
companyIds
[
this
.
db
.
Op
.
in
]:
params
.
dk
companyIds
};
};
}
}
if
(
params
.
ecompany_id
)
{
if
(
params
.
dktemplateIds
)
{
where
.
ecompany_id
=
params
.
ecompany_id
;
where
.
dktemplate_id
=
{
[
this
.
db
.
Op
.
in
]:
params
.
dktemplateIds
};
}
if
(
params
.
dkcompany_id
)
{
where
.
dkcompany_id
=
params
.
dkcompany_id
;
}
}
if
(
params
.
eflowstatusList
)
{
if
(
params
.
eflowstatusList
)
{
where
.
eflowstatus
=
{
where
.
eflowstatus
=
{
[
this
.
db
.
Op
.
in
]:
params
.
eflowstatusList
[
this
.
db
.
Op
.
in
]:
params
.
eflowstatusList
};
};
;
}
}
if
(
params
.
accountName
||
params
.
accountMobile
||
params
.
accountIdno
)
{
if
(
params
.
accountName
||
params
.
accountMobile
||
params
.
accountIdno
)
{
...
@@ -115,11 +120,11 @@ class DKcontractService extends ServiceBase {
...
@@ -115,11 +120,11 @@ class DKcontractService extends ServiceBase {
}
}
this
.
addWhereTime
(
where
,
'completed_at'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
this
.
addWhereTime
(
where
,
'completed_at'
,
params
.
signBegin
,
params
.
signEnd
,
true
);
var
orderby
=
[
let
orderby
=
[
[
"id"
,
'desc'
]
[
"id"
,
'desc'
]
];
];
var
attributes
=
[
`id`
,
`fileurl`
,
`eflowstatus`
,
`eflowstatusname`
,
`completed_at`
,
`end_at`
,
`user_id`
,
`usereaccount_id`
,
`
ecompany
_id`
];
var
attributes
=
[
`id`
,
`fileurl`
,
`eflowstatus`
,
`eflowstatusname`
,
`completed_at`
,
`end_at`
,
`user_id`
,
`usereaccount_id`
,
`
dkcompany_id`
,
`dktemplate
_id`
];
var
page
=
await
this
.
getPageList
(
currentPage
,
pageSize
,
where
,
orderby
,
attributes
);
var
page
=
await
this
.
getPageList
(
currentPage
,
pageSize
,
where
,
orderby
,
attributes
);
if
(
page
&&
page
.
rows
)
{
if
(
page
&&
page
.
rows
)
{
...
@@ -156,11 +161,11 @@ class DKcontractService extends ServiceBase {
...
@@ -156,11 +161,11 @@ class DKcontractService extends ServiceBase {
var
companyIds
=
[];
var
companyIds
=
[];
for
(
var
item
of
list
)
{
for
(
var
item
of
list
)
{
companyIds
.
push
(
item
.
e
company_id
||
0
);
companyIds
.
push
(
item
.
dk
company_id
||
0
);
}
}
var
companyMap
=
await
this
.
ecompanyDao
.
findMapByIds
(
companyIds
,
" id, name, contractMobil
e "
);
var
companyMap
=
await
this
.
dkcompanyDao
.
findMapByIds
(
companyIds
,
" id, nam
e "
);
for
(
var
item
of
list
)
{
for
(
var
item
of
list
)
{
item
.
ecompany
=
companyMap
[
"id_"
+
(
item
.
ecompany_id
||
0
)]
;
item
.
dkcompany
=
companyMap
[
"id_"
+
(
item
.
dkcompany_id
||
0
)]
||
{}
;
}
}
}
}
...
...
bpo-web/app/base/service/impl/econtractSve.js
View file @
76dfee3a
...
@@ -346,7 +346,6 @@ class EcontractService extends ServiceBase {
...
@@ -346,7 +346,6 @@ class EcontractService extends ServiceBase {
where
.
eflowstatus
=
{
where
.
eflowstatus
=
{
[
this
.
db
.
Op
.
in
]:
params
.
eflowstatusList
[
this
.
db
.
Op
.
in
]:
params
.
eflowstatusList
};
};
;
}
}
if
(
params
.
accountName
||
params
.
accountMobile
||
params
.
accountIdno
)
{
if
(
params
.
accountName
||
params
.
accountMobile
||
params
.
accountIdno
)
{
...
...
bpo-web/app/base/service/impl/etemplatebusiSve.js
View file @
76dfee3a
...
@@ -37,6 +37,11 @@ class EtemplatebusiService extends ServiceBase {
...
@@ -37,6 +37,11 @@ class EtemplatebusiService extends ServiceBase {
return
ids
;
return
ids
;
}
}
async
byBusiId
(
busi_id
)
{
var
sql
=
"SELECT template_type, template_id FROM c_etemplate_busi WHERE busi_id = :busi_id"
;
return
await
this
.
customQuery
(
sql
,
{
busi_id
:
busi_id
});
}
async
busiByTemplate
(
template_id
)
{
async
busiByTemplate
(
template_id
)
{
var
sql
=
"SELECT * FROM c_etemplate_busi WHERE template_type = 2 AND template_id = :template_id"
;
var
sql
=
"SELECT * FROM c_etemplate_busi WHERE template_type = 2 AND template_id = :template_id"
;
return
await
this
.
customQuery
(
sql
,
{
template_id
:
template_id
});
return
await
this
.
customQuery
(
sql
,
{
template_id
:
template_id
});
...
...
bpo-web/app/front/entry/public/dvLuU2i3uC.txt
0 → 100644
View file @
76dfee3a
fffe49f885f64544ef10bcd428953f02
\ No newline at end of file
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