Commit f0d50e05 by zhaoxiqing

gsb

parent c1262efe
......@@ -39,9 +39,25 @@ class XbgApi extends apiBase{
params.ecompanyIds = ecompanyIds;
delete params.ecompany_id;
}
params.eflowstatusList = ['2'];
this.doTimeCondition(params, ["signBegin", "signEnd"]);
var page = await this.econtractSve.pageByCondition(params);
return system.getResult2(page);
} catch (e) {
console.log(e);
return system.getErrResult2("接口异常");
}
}
async acontracttoMtchIdList(qobj) {
try {
var params = qobj || {};
var eteids = await this.etemplatebusiSve.geteteIds(params.mtchId);
if(eteids.length > 0){
params.etemplateIds = eteids;
}else {
return system.getResult2({count:0,rows:[]});
}
params.eflowstatusList = ['2'];
this.doTimeCondition(params, ["signBegin", "signEnd"]);
......@@ -54,7 +70,6 @@ class XbgApi extends apiBase{
}
//已签合同导出
async allExport(qobj) {
......@@ -64,6 +79,8 @@ class XbgApi extends apiBase{
var eteids = await this.etemplatebusiSve.geteteIds(params.mtchId);
if(eteids.length > 0){
params.etemplateIds = eteids;
}else {
return system.getErrResult2("导出失败");
}
params.eflowstatusList = ['2'];
this.doTimeCondition(params, ["signBegin", "signEnd"]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment