Commit 25afc29c by lixinming

参数校验配置分离

parent ec7d92bd
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import * as eccFormParamConfig from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/admin";
import * as enterpriseData from "../../../data/enterprise/enterprise";
import * as fuhuaqiData from "../../../data/fuHuaQi/fuhuaqi";
import * as splitResultConfig from "../../../config/splitResultConfig";
......
......@@ -6,6 +6,12 @@ import { getPolicyBGImgId } from "../tools/system";
const fs = require('fs');
const path = require('path');
/**
* 上传文件
* @param files
* @param type
* @returns
*/
export async function upFile(files, type) {
let pngId = getPolicyBGImgId();
let upUrl = path.join(__dirname.substring(0,__dirname.indexOf("out")), 'files', 'policy');
......
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import { EnterpriseUpdateBaseDataConfig } from "../../../config/eccFormParamConfig";
import { EnterpriseUpdateBaseDataConfig } from "../../../config/eccParam/enterprise";
import { INDUSTRY, STATEENUM } from "../../../config/enum";
import { ERRORENUM } from "../../../config/errorEnum";
import { EnterpriseBaseConfig } from "../../../config/splitResultConfig";
......
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import { InitialTeamUpdateConfig } from "../../../config/eccFormParamConfig";
import { InitialTeamUpdateConfig } from "../../../config/eccParam/enterprise";
import { ENTERPRISETEAM, STATEENUM } from "../../../config/enum";
import { ERRORENUM } from "../../../config/errorEnum";
import { EnterpriseInitialTeamConfig } from "../../../config/splitResultConfig";
......
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import { EnterpriseQualificationUpdateConfig } from "../../../config/eccFormParamConfig";
import { EnterpriseQualificationUpdateConfig } from "../../../config//eccParam/enterprise";
import { LISTINGSITUATION } from "../../../config/enum";
import { ERRORENUM } from "../../../config/errorEnum";
import { BizError } from "../../../util/bizError";
......
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import { EnterpriseCreateFinancingDataConfig, EnterpriseCreateFinancingParamSubConfig, EnterpriseUpdateFinancingDataConfig } from "../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../config/eccParam/enterprise";
import { FINANCINGROUNDS, FUHUAQILNVESTMENTSTYLE } from "../../config/enum";
import { ERRORENUM } from "../../config/errorEnum";
import { EnterpriseFinancingListDataConfig } from "../../config/splitResultConfig";
......@@ -48,7 +48,7 @@ export async function getEnterpriseFinancingList(uscc:string) {
* @returns
*/
export async function addEnterpriseFinancing(uscc:string, form) {
eccFormParam("企业录入企业融资信息", EnterpriseCreateFinancingDataConfig, form);
eccFormParam("企业录入企业融资信息", eccFormParamConfig.EnterpriseCreateFinancingDataConfig, form);
eccEnumValue( "录入企业融资信息", "financingRounds", FINANCINGROUNDS, form.financingRounds);
if (form.fuHuaQiInvestment) {
......@@ -58,7 +58,7 @@ export async function addEnterpriseFinancing(uscc:string, form) {
fuHuaQiInvestmentAmount:form.fuHuaQiInvestmentAmount,
fuHuaQiInvestmentStyle:form.fuHuaQiInvestmentStyle,
};
eccFormParam(subCheckName, EnterpriseCreateFinancingParamSubConfig, subCheckData);
eccFormParam(subCheckName, eccFormParamConfig.EnterpriseCreateFinancingParamSubConfig, subCheckData);
/**校验投资方式是否符合枚举规则 */
eccEnumValue("添加企业融资信息", "fuHuaQiInvestmentStyle", FUHUAQILNVESTMENTSTYLE, form.fuHuaQiInvestmentStyle);
} else {
......@@ -103,7 +103,7 @@ export async function getEnterpriseFinancingInfo(uscc:string, id:string) {
* @returns
*/
export async function updateEnterpriseFinancingInfo(uscc:string, form) {
eccFormParam("企业修改企业融资信息", EnterpriseUpdateFinancingDataConfig, form);
eccFormParam("企业修改企业融资信息", eccFormParamConfig.EnterpriseUpdateFinancingDataConfig, form);
eccEnumValue( "录入企业融资信息", "financingRounds", FINANCINGROUNDS, form.financingRounds);
if (form.fuHuaQiInvestment) {
......@@ -113,7 +113,7 @@ export async function updateEnterpriseFinancingInfo(uscc:string, form) {
fuHuaQiInvestmentAmount:form.fuHuaQiInvestmentAmount,
fuHuaQiInvestmentStyle:form.fuHuaQiInvestmentStyle,
};
eccFormParam(subCheckName, EnterpriseCreateFinancingParamSubConfig, subCheckData);
eccFormParam(subCheckName, eccFormParamConfig.EnterpriseCreateFinancingParamSubConfig, subCheckData);
/**校验投资方式是否符合枚举规则 */
eccEnumValue("添加企业融资信息", "fuHuaQiInvestmentStyle", FUHUAQILNVESTMENTSTYLE, form.fuHuaQiInvestmentStyle);
} else {
......
......@@ -14,7 +14,7 @@ import { ENTERPRISEDECLARATIONTYPE, FUHUASTATE } from "../../../config/enum";
import { BizError } from "../../../util/bizError";
import { ERRORENUM } from "../../../config/errorEnum";
import { eccFormParam } from "../../../util/verificationParam";
import { EnterpriseAddTeamDataConfig } from "../../../config/eccFormParamConfig";
import { EnterpriseAddTeamDataConfig } from "../../../config/eccParam/enterprise";
import { EnterpriseTeamConfig } from "../../../config/splitResultConfig";
import { extractData } from "../../../util/piecemeal";
import { findEnterpriseList } from "../../../data/enterprise/enterprise";
......
......@@ -52,7 +52,7 @@ export async function firstChangePwd(uscc:string, pwd:string, confirmPwd:string)
if (pwd.search(/^[A-Za-z0-9]{6,18}$/) < 0) throw new BizError(ERRORENUM.密码只能由618位字符和数字组成);
let dataBaseInfo = await enterpriseData.findEnterpriseByUscc(uscc);
if (dataBaseInfo.firstLoginIsChangePwd) throw new BizError(ERRORENUM.不能重复修改密码, `重复调用了首次登录之后的修改密码接口${uscc}`);
if (dataBaseInfo.firstLoginIsChangePwd) throw new BizError(ERRORENUM.不能重复修改密码, `企业端 重复调用了首次登录之后的修改密码接口${uscc}`);
dataBaseInfo.pwd = sysTools.getPwdMd5(uscc, sysTools.md5PwdStr(pwd));
dataBaseInfo.firstLoginIsChangePwd = true;
......
......@@ -5,7 +5,7 @@
*
*/
import * as eccFormParamConfig from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { ERRORENUM } from "../../../config/errorEnum";
import { BizError } from "../../../util/bizError";
import * as sysTools from "../../../tools/system";
......
......@@ -4,12 +4,11 @@
* 包括新融资信息的增删改查
*
*/
import * as eccFormParamConfig from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { ERRORENUM } from "../../../config/errorEnum";
import * as financingData from "../../../data/fuHuaQi/monthTask/financing";
import * as splitResultConfig from "../../../config/splitResultConfig";
import { BizError } from "../../../util/bizError";
import * as sysTools from "../../../tools/system";
import * as taskTool from "../../../tools/taskTool";
import * as enterpriseData from "../../../data/enterprise/enterprise";
import * as configEnum from "../../../config/enum";
......
......@@ -3,7 +3,7 @@
* 作者:lxm
*/
import * as eccFormParamConfig from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { ERRORENUM } from "../../../config/errorEnum";
import { BizError } from "../../../util/bizError";
import * as sysTools from "../../../tools/system";
......
......@@ -4,13 +4,12 @@
*
*/
import moment = require("moment");
import { findBusinessDataByParams, findBusinessDataByTimeAndUscc } from "../../../data/enterprise/quarterTask/businessdata";
import { ENTERPRISEDECLARATIONTYPE } from "../../../config/enum";
import { findTeamDataByParams, findTeamDataByUsccAndTime } from "../../../data/enterprise/quarterTask/team";
import { eccEnumValue } from "../../../util/verificationEnum";
import { eccFormParam } from "../../../util/verificationParam";
import { FuHuaQiReplenishEnterpriseBusinessDataConfig, FuHuaQiReplenishEnterpriseTeamDataConfig } from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { BizError } from "../../../util/bizError";
import { ERRORENUM } from "../../../config/errorEnum";
......@@ -113,21 +112,21 @@ export async function fuHuaQiReplenishEnterpriseDataDeclaration(fuHuaQiUscc:stri
eccEnumValue("孵化器补充企业数据", "type", ENTERPRISEDECLARATIONTYPE, type);
if (type == ENTERPRISEDECLARATIONTYPE.团队信息) {
eccFormParam("孵化器补充企业数据-团队信息", FuHuaQiReplenishEnterpriseTeamDataConfig, form);
eccFormParam("孵化器补充企业数据-团队信息", eccFormParamConfig.FuHuaQiReplenishEnterpriseTeamDataConfig, form);
let teamInfo = await findTeamDataByUsccAndTime(uscc, year, quarter);
if (teamInfo.fuHuaQiUscc != fuHuaQiUscc) {}
for (let key in FuHuaQiReplenishEnterpriseTeamDataConfig) {
for (let key in eccFormParamConfig.FuHuaQiReplenishEnterpriseTeamDataConfig) {
teamInfo[key] = form[key];
}
teamInfo.isUpdate = true;
await teamInfo.save();
} else {
eccFormParam("孵化器补充企业数据-经营状况", FuHuaQiReplenishEnterpriseBusinessDataConfig, form);
eccFormParam("孵化器补充企业数据-经营状况", eccFormParamConfig.FuHuaQiReplenishEnterpriseBusinessDataConfig, form);
let businessInfo = await findBusinessDataByTimeAndUscc(uscc, year, quarter);
if (businessInfo.fuHuaQiUscc != fuHuaQiUscc) {}
for (let key in FuHuaQiReplenishEnterpriseBusinessDataConfig) {
for (let key in eccFormParamConfig.FuHuaQiReplenishEnterpriseBusinessDataConfig) {
businessInfo[key] = form[key];
}
businessInfo.isUpdate = true;
......
......@@ -4,8 +4,8 @@
* 孵化器相关逻辑 包括孵化器的增删改查
*
*/
import * as eccFormParamConfig from "../../../config/eccFormParamConfig";
import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, findEnterpriseTotalByFuHuaQiUscc, groupFindEnterpriseCount } from "../../../data/enterprise/enterprise";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { findEnterpriseCount, findEnterpriseCountByFuHuaQiUscc, findEnterpriseTotalByFuHuaQiUscc } from "../../../data/enterprise/enterprise";
import * as fuhuaqiData from "../../../data/fuHuaQi/fuhuaqi";
import * as splitResultConfig from "../../../config/splitResultConfig";
import * as configEnum from "../../../config/enum";
......
......@@ -2,8 +2,7 @@
* 孵化器经营数据填报
*
*/
import moment = require("moment");
import { FuHuaQiBusinessDataConfig } from "../../../config/eccFormParamConfig";
import * as eccFormParamConfig from "../../../config/eccParam/fuHuaQi";
import { ERRORENUM } from "../../../config/errorEnum";
import { FuHuaQiBusinessDataInfoConfig } from "../../../config/splitResultConfig";
import { findBusinessByTaskId } from "../../../data/fuHuaQi/quarterTask/businessData";
......@@ -23,7 +22,7 @@ import { eccFormParam } from "../../../util/verificationParam";
*/
export async function createBusiness(uscc:string, param) {
const TaskId = taskTool.getQuarterTaskId(uscc);
eccFormParam("新添加孵化器季度填报", FuHuaQiBusinessDataConfig, param);
eccFormParam("新添加孵化器季度填报", eccFormParamConfig.FuHuaQiBusinessDataConfig, param);
let businessInfo = await findBusinessByTaskId(TaskId);
/**不可以重复创建 */
......@@ -58,7 +57,7 @@ export async function deleteBusiness(uscc:string) {
/**更新状态和数据 */
businessInfo.isUpdate = false;
for (let key in FuHuaQiBusinessDataConfig) {
for (let key in eccFormParamConfig.FuHuaQiBusinessDataConfig) {
businessInfo[key] = 0;
}
......@@ -95,7 +94,7 @@ export async function selectBusiness(uscc:string) {
*/
export async function updateBusiness(uscc:string, param) {
const TaskId = taskTool.getQuarterTaskId(uscc);
eccFormParam("修改孵化器季度填报", FuHuaQiBusinessDataConfig, param);
eccFormParam("修改孵化器季度填报", eccFormParamConfig.FuHuaQiBusinessDataConfig, param);
let businessInfo = await findBusinessByTaskId(TaskId);
/**不可以重复创建 */
......
......@@ -7,7 +7,9 @@
import * as fuhuaqiData from "../../../../data/fuHuaQi/fuhuaqi";
import { getI18nRegisterId } from "../../../../tools/system";
import { addRegister, deleteI18nRegisterListById, findI18nRegisterListByParam, findOneI18nRegister, getCount } from "../../../../data/fuHuaQi/instituQualify/i18nRegister";
import { addRegister, deleteI18nRegisterListById, findI18nRegisterListByParam, findOneI18nRegister } from "../../../../data/fuHuaQi/instituQualify/i18nRegister";
import { BizError } from "../../../../util/bizError";
import { ERRORENUM } from "../../../../config/errorEnum";
/**
......@@ -20,7 +22,6 @@ import { addRegister, deleteI18nRegisterListById, findI18nRegisterListByParam, f
* @returns
*/
export async function createI18nRegister(uscc:string, country:string, partners:string, cMode:string, cAchievements:string) {
let fuHuaQiInfo = await fuhuaqiData.findFuHuaQiByUSCC(uscc);
let id = getI18nRegisterId(uscc);
......@@ -42,6 +43,7 @@ export async function createI18nRegister(uscc:string, country:string, partners:s
*/
export async function updateI18nRegister(uscc:string, id:string, country:string, partners:string, cMode:string, cAchievements:string) {
let registerInfo = await findOneI18nRegister(id);
if (uscc != registerInfo.uscc) throw new BizError(ERRORENUM.只能修改本企业信息, "修改国际化登记信息时", `${uscc}尝试修改${registerInfo.uscc}的信息`);
registerInfo.country = country;
registerInfo.partners = partners;
......
......@@ -132,7 +132,6 @@ export async function fuHuaQiQuarterCompletedTaskList(uscc:string, selectTime:nu
}
/**
* 孵化器 过期任务列表
* 小程序端 2.0
......
......@@ -64,7 +64,7 @@ export async function firstLoginChangePwd(uscc:string, pwd:string, confirmPwd:st
if (pwd.search(/^[A-Za-z0-9]{6,18}$/) < 0) throw new BizError(ERRORENUM.密码只能由618位字符和数字组成);
let dataBaseInfo = await fuhuaqiData.findFuHuaQiByUSCC(uscc);
if (dataBaseInfo.firstLoginIsChangePwd) throw new BizError(ERRORENUM.不能重复修改密码, `重复调用了首次登录之后的修改密码接口${uscc}`);
if (dataBaseInfo.firstLoginIsChangePwd) throw new BizError(ERRORENUM.不能重复修改密码, `孵化器端 重复调用了首次登录之后的修改密码接口${uscc}`);
dataBaseInfo.pwd = sysTools.getPwdMd5(uscc, sysTools.md5PwdStr(pwd));
dataBaseInfo.firstLoginIsChangePwd = true;
......
/**
* 校验表单参数配置 【管理后台端】
* 使用场景: 验证客户端请求参数
* 限制: 1.使用端不同不能共用一份配置
* 2.需要搭配 util/verificationParam -> eccFormParam() 方法使用
* 说明: notMustHave = true 时说明该字段是非必填的;不配该字段说明是必填的
*/
/**
* 使用端: 管理后台
* 场景: 新增孵化器账号
* 备注: 所有参数为必填
*/
export const FuHuaQiUserConfig = {
operationName:{type:"String" },//运营机构名称
uscc:{type:"String" },//营业执照
personInChargePhone:{type:"String" },//负责人手机号
personInCharge:{type:"String" }//负责人
}
/**
* 校验表单参数配置 【小程序】【企业】
* 使用场景: 验证客户端请求参数
* 限制: 1.使用端不同不能共用一份配置
* 2.需要搭配 util/verificationParam -> eccFormParam() 方法使用
* 说明: notMustHave = true 时说明该字段是非必填的;不配该字段说明是必填的
*/
/**
* 使用端: 小程序端【企业入口】
* 场景: 创建新的融资信息
* 备注: 所有参数为必填
*/
export const EnterpriseCreateFinancingDataConfig = {
financingRounds:{type:"Number"},//融资轮次
financingAmount:{type:"Number"}, //融资金额_单位 万元
investmentInstitutionsName:{type:"String"},//投资机构名称
timeToObtainInvestment:{type:"Number"},//获得投资时间时间戳
fuHuaQiInvestment:{type:"Boolean"},//孵化器是否投资
fuHuaQiInvestmentAmount:{type:"Number"},//孵化器投资金额_单位 万元
fuHuaQiInvestmentStyle:{type:"Number"},//孵化器投资方式
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 创建新的融资信息选择了孵化器投资
* 备注:
*/
export const EnterpriseCreateFinancingParamSubConfig = {
fuHuaQiInvestmentAmount:{type:"Number"},
fuHuaQiInvestmentStyle:{type:"Number"}
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改融资信息
* 备注: 所有参数为必填
*/
export const EnterpriseUpdateFinancingDataConfig = {
id:{type:"String"},//id
financingRounds:{type:"Number"},//融资轮次
financingAmount:{type:"Number"}, //融资金额_单位 万元
investmentInstitutionsName:{type:"String"},//投资机构名称
timeToObtainInvestment:{type:"Number"},//获得投资时间时间戳
fuHuaQiInvestment:{type:"Boolean"},//孵化器是否投资
fuHuaQiInvestmentAmount:{type:"Number"},//孵化器投资金额_单位 万元
fuHuaQiInvestmentStyle:{type:"Number"},//孵化器投资方式
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改企业信息
* 备注: 所有参数为必填
*/
export const EnterpriseUpdateBaseDataConfig = {
name:{type:"String"},//企业名称
uscc:{type:"String"},//统一信用代码
industry:{type:"[Number]"},//领域
mainBusiness:{type:"String"},//主营业务
logonTime:{type:"Number"},//注册时间
firstIncubationTime:{type:"Number"},//首次入孵时间
isNaturalPersonHolding:{type:"Boolean"},//是否自然人控股企业
logonAddress:{type:"Address"},//注册地址
operatingAddress:{type:"Address"},//经营地址
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 申报经营数据
* 备注: 所有参数为必填
*/
export const EnterpriseAddBusinessDataConfig = {
BI:{type:"Number"},//营业收入
RD:{type:"Number"},//研发投入
TXP:{type:"Number"},//纳税
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 申报团队信息数据
* 备注: 所有参数为必填
*/
export const EnterpriseAddTeamDataConfig = {
doctor:{type:"Number"},//博士
master:{type:"Number"},//硕士
undergraduate:{type:"Number"},//本科
juniorCollege:{type:"Number"},//专科
other:{type:"Number"},//其他
studyAbroad:{type:"Number"},//留学人数
graduates:{type:"Number"},//应届毕业生
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改企业创始团队
* 备注: 所有参数为必填
*/
export const InitialTeamUpdateConfig = {
id:{type:"String"},//标识
type:{type:"Number"},//创始团队人才类型
memberName:{type:"String"},//成员姓名
memberSex:{type:"Number"},//成员性别
memberAge:{type:"Number"},//成员年龄 出生年月时间戳
memberDEGREE:{type:"Number"},//成员最高学历
memberSchool:{type:"String"},//毕业学校
des:{type:"String"},//履历描述
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 企业修改资质信息
* 备注: 所有参数为必填
*/
export const EnterpriseQualificationUpdateConfig = {
isHighTech:{type:"Boolean"},
highTechMs:{type:"Number"},//高新技术
isZjtx:{type:"Boolean"},
zjtxMs:{type:"Number"},//专精特新
isXjrpy:{type:"Boolean"},
xjrpyMs:{type:"Number"},//小巨人培育
isXjr:{type:"Boolean"},
xjrMs:{type:"Number"},//小巨人
beOnTheMarket:{type:"[Number]", notMustHave:true},//上市情况
isBeOnTheMarket:{type:"Boolean"}
}
/**
* 校验表单参数配置
* 校验表单参数配置 【小程序】【孵化器】
* 使用场景: 验证客户端请求参数
* 限制: 1.使用端不同不能共用一份配置
* 2.需要搭配 util/verificationParam -> eccFormParam() 方法使用
......@@ -25,6 +25,8 @@ export const BaseParamUpdateConfig = {
cooperationInstitutions:{type:"String", notMustHave:true},//合作机构名称
isCooperation:{type:"Boolean", notMustHave:true},//是否与第三方机构合作
};
/**
* 使用端: 小程序端【孵化器入口】
* 场景: 验证经备案孵化场地
......@@ -210,18 +212,6 @@ export const FinancingParamSubConfig = {
}
/**
* 使用端: 管理后台
* 场景: 新增孵化器账号
* 备注: 所有参数为必填
*/
export const FuHuaQiUserConfig = {
operationName:{type:"String" },//运营机构名称
uscc:{type:"String" },//营业执照
personInChargePhone:{type:"String" },//负责人手机号
personInCharge:{type:"String" }//负责人
}
/**
* 使用端: 小程序端【孵化器入口】
......@@ -281,131 +271,6 @@ export const ReplenishMyEnterpriseCreateDataConfig = {
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 创建新的融资信息
* 备注: 所有参数为必填
*/
export const EnterpriseCreateFinancingDataConfig = {
financingRounds:{type:"Number"},//融资轮次
financingAmount:{type:"Number"}, //融资金额_单位 万元
investmentInstitutionsName:{type:"String"},//投资机构名称
timeToObtainInvestment:{type:"Number"},//获得投资时间时间戳
fuHuaQiInvestment:{type:"Boolean"},//孵化器是否投资
fuHuaQiInvestmentAmount:{type:"Number"},//孵化器投资金额_单位 万元
fuHuaQiInvestmentStyle:{type:"Number"},//孵化器投资方式
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 创建新的融资信息选择了孵化器投资
* 备注:
*/
export const EnterpriseCreateFinancingParamSubConfig = {
fuHuaQiInvestmentAmount:{type:"Number"},
fuHuaQiInvestmentStyle:{type:"Number"}
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改融资信息
* 备注: 所有参数为必填
*/
export const EnterpriseUpdateFinancingDataConfig = {
id:{type:"String"},//id
financingRounds:{type:"Number"},//融资轮次
financingAmount:{type:"Number"}, //融资金额_单位 万元
investmentInstitutionsName:{type:"String"},//投资机构名称
timeToObtainInvestment:{type:"Number"},//获得投资时间时间戳
fuHuaQiInvestment:{type:"Boolean"},//孵化器是否投资
fuHuaQiInvestmentAmount:{type:"Number"},//孵化器投资金额_单位 万元
fuHuaQiInvestmentStyle:{type:"Number"},//孵化器投资方式
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改企业信息
* 备注: 所有参数为必填
*/
export const EnterpriseUpdateBaseDataConfig = {
name:{type:"String"},//企业名称
uscc:{type:"String"},//统一信用代码
industry:{type:"[Number]"},//领域
mainBusiness:{type:"String"},//主营业务
logonTime:{type:"Number"},//注册时间
firstIncubationTime:{type:"Number"},//首次入孵时间
isNaturalPersonHolding:{type:"Boolean"},//是否自然人控股企业
logonAddress:{type:"Address"},//注册地址
operatingAddress:{type:"Address"},//经营地址
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 申报经营数据
* 备注: 所有参数为必填
*/
export const EnterpriseAddBusinessDataConfig = {
BI:{type:"Number"},//营业收入
RD:{type:"Number"},//研发投入
TXP:{type:"Number"},//纳税
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 申报团队信息数据
* 备注: 所有参数为必填
*/
export const EnterpriseAddTeamDataConfig = {
doctor:{type:"Number"},//博士
master:{type:"Number"},//硕士
undergraduate:{type:"Number"},//本科
juniorCollege:{type:"Number"},//专科
other:{type:"Number"},//其他
studyAbroad:{type:"Number"},//留学人数
graduates:{type:"Number"},//应届毕业生
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 修改企业创始团队
* 备注: 所有参数为必填
*/
export const InitialTeamUpdateConfig = {
id:{type:"String"},//标识
type:{type:"Number"},//创始团队人才类型
memberName:{type:"String"},//成员姓名
memberSex:{type:"Number"},//成员性别
memberAge:{type:"Number"},//成员年龄 出生年月时间戳
memberDEGREE:{type:"Number"},//成员最高学历
memberSchool:{type:"String"},//毕业学校
des:{type:"String"},//履历描述
}
/**
* 使用端: 小程序端【企业入口】
* 场景: 企业修改资质信息
* 备注: 所有参数为必填
*/
export const EnterpriseQualificationUpdateConfig = {
isHighTech:{type:"Boolean"},
highTechMs:{type:"Number"},//高新技术
isZjtx:{type:"Boolean"},
zjtxMs:{type:"Number"},//专精特新
isXjrpy:{type:"Boolean"},
xjrpyMs:{type:"Number"},//小巨人培育
isXjr:{type:"Boolean"},
xjrMs:{type:"Number"},//小巨人
beOnTheMarket:{type:"[Number]", notMustHave:true},//上市情况
isBeOnTheMarket:{type:"Boolean"}
}
/**
* 使用端: 小程序端【孵化器入口】
......
......@@ -51,7 +51,8 @@ export function setRouter(httpServer) {
/**
* 创建 国际化登记
* 创建 国际化登记
* 参数都是必选项
* @param req
* @param res
*/
......
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