Commit 849893cc by Zllgogo

no message

parent 4dc360f3
No preview for this file type
...@@ -42,6 +42,7 @@ export async function getQyszhx(eId) { ...@@ -42,6 +42,7 @@ export async function getQyszhx(eId) {
/**数据库查询 */ /**数据库查询 */
let 企业基础信息 = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业基础信息表, { eId }, null); let 企业基础信息 = await selectData(OPERATIONALDATATYPE.查询单个, TABLENAME.企业基础信息表, { eId }, null);
if (!Object.keys(企业基础信息).length) console.log('eId:', eId);
// let column = ["eId", "enterpriseName", "uscc", "", "", "", "", "", "", "", "", "", "", "", ""]; // let column = ["eId", "enterpriseName", "uscc", "", "", "", "", "", "", "", "", "", "", "", ""];
let 孵化Column = ["fId", "eId", "startTime", "endTime", "state", "virtualCause", "virtualCauseDes", "moveOutType", "moveOutTrace", "moveOutCause", "moveOutTime", let 孵化Column = ["fId", "eId", "startTime", "endTime", "state", "virtualCause", "virtualCauseDes", "moveOutType", "moveOutTrace", "moveOutCause", "moveOutTime",
...@@ -50,8 +51,6 @@ export async function getQyszhx(eId) { ...@@ -50,8 +51,6 @@ export async function getQyszhx(eId) {
let 企业孵化联查includeConf = {}; let 企业孵化联查includeConf = {};
企业孵化联查includeConf[TABLENAME.企业孵化信息] = { cloum: 孵化Column, where: {} } 企业孵化联查includeConf[TABLENAME.企业孵化信息] = { cloum: 孵化Column, where: {} }
let 企业孵化信息 = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, { eId }, [], 企业孵化联查includeConf); let 企业孵化信息 = await selectManyTableData(OPERATIONALDATATYPE.多表联查, TABLENAME.企业基础信息表, { eId }, [], 企业孵化联查includeConf);
console.log(企业孵化信息);
let 资质Column = ["qId", "eId", "kxTime", "zjtxTime", "xjrTime", "xjrPyTime", "goPublicTime", "gaoXinJiShuTime", "goPublicSector"]; let 资质Column = ["qId", "eId", "kxTime", "zjtxTime", "xjrTime", "xjrPyTime", "goPublicTime", "gaoXinJiShuTime", "goPublicSector"];
let 企业资质联查includeConf = {}; let 企业资质联查includeConf = {};
...@@ -123,7 +122,9 @@ export async function getQyszhx(eId) { ...@@ -123,7 +122,9 @@ export async function getQyszhx(eId) {
首次入孵时间: "-", 首次入孵时间: "-",
}; };
if (企业基础信息.logonTime) qyjbsj.注册时间 = moment(企业基础信息.logonTime).format("YYYY-MM-DD") if (企业基础信息.logonTime) qyjbsj.注册时间 = moment(企业基础信息.logonTime).format("YYYY-MM-DD")
if (企业孵化信息[0]) {
if (企业孵化信息[0].enterprise_fuhuas[0].startTime) qyjbsj.首次入孵时间 = moment(企业孵化信息[0].enterprise_fuhuas[0].startTime).format("YYYY-MM-DD") if (企业孵化信息[0].enterprise_fuhuas[0].startTime) qyjbsj.首次入孵时间 = moment(企业孵化信息[0].enterprise_fuhuas[0].startTime).format("YYYY-MM-DD")
}
if (企业基础信息.firstLoginTime) qyjbsj.迁入时间 = moment(企业基础信息.firstLoginTime).format("YYYY-MM-DD") if (企业基础信息.firstLoginTime) qyjbsj.迁入时间 = moment(企业基础信息.firstLoginTime).format("YYYY-MM-DD")
qyszhx.企业基本数据.dataList = getKeyValue(qyjbsj); qyszhx.企业基本数据.dataList = getKeyValue(qyjbsj);
...@@ -520,11 +521,14 @@ function get租房补贴(企业资质信息, 企业专利信息, 参保记录信 ...@@ -520,11 +521,14 @@ function get租房补贴(企业资质信息, 企业专利信息, 参保记录信
// 检查社保状态 // 检查社保状态
let shebaoCompleted = false; let shebaoCompleted = false;
if (参保记录信息[0]) {
参保记录信息[0].enterprise_canbaos.forEach(info => { 参保记录信息[0].enterprise_canbaos.forEach(info => {
if (info.zhuanKe || info.benKe || info.shuoshi || info.boShi || info.boshiyishang) { if (info.zhuanKe || info.benKe || info.shuoshi || info.boShi || info.boshiyishang) {
shebaoCompleted = true; shebaoCompleted = true;
} }
}); });
}
zfbt.社保 = shebaoCompleted ? "已完成" : "未完成"; zfbt.社保 = shebaoCompleted ? "已完成" : "未完成";
// 检查软著状态 // 检查软著状态
......
...@@ -126,9 +126,6 @@ export async function getZhyy() { ...@@ -126,9 +126,6 @@ export async function getZhyy() {
let startTimeMs = new Date(startTime).valueOf(); let startTimeMs = new Date(startTime).valueOf();
if (startTimeMs >= checlTimeMs) { if (startTimeMs >= checlTimeMs) {
let timeStr = moment(startTime).format("YY/MM"); let timeStr = moment(startTime).format("YY/MM");
console.log("timeStr", timeStr);
console.log(ruZhuMap[timeStr], "ruZhuMap[timeStr]");
if (!ruZhuMap[timeStr]) ruZhuMap[timeStr] = 0; if (!ruZhuMap[timeStr]) ruZhuMap[timeStr] = 0;
...@@ -170,7 +167,6 @@ export async function getZhyy() { ...@@ -170,7 +167,6 @@ export async function getZhyy() {
for (let key in ruZhuMap) { for (let key in ruZhuMap) {
入驻企业变化趋势.push({ key, value: ruZhuMap[key] }); 入驻企业变化趋势.push({ key, value: ruZhuMap[key] });
} }
console.log(入驻企业变化趋势);
// 入驻企业变化趋势.sort((a, b) => { return parseInt(a.key) - parseInt(b.key) }); // 入驻企业变化趋势.sort((a, b) => { return parseInt(a.key) - parseInt(b.key) });
入驻企业变化趋势.sort((a, b) => { 入驻企业变化趋势.sort((a, b) => {
......
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