Commit e3a1cc6c by 宋毅

rj

parent fdfbc437
const system = require("../system");
const settings = require("../../config/settings");
const DocBase = require("./doc.base");
class APIBase extends DocBase {
constructor() {
super();
this.cacheManager = system.getObject("db.common.cacheManager");
this.logCtl = system.getObject("web.common.oplogCtl");
this.apitradeSvr = system.getObject("service.common.apitradeSve");
}
async isExistInNoAuthMainfest(gname, methodname) {
var fullname = gname + "." + methodname;
var lst = [
];
var x = lst.indexOf(fullname);
return x >= 0;
}
async checkAcck(gname, methodname, pobj, query, req) {
var apptocheck=null;
var isExistInNoAuth = await this.isExistInNoAuthMainfest(gname, methodname);
if (!isExistInNoAuth) {//在验证请单里面,那么就检查访问token
var ak = req.headers["accesskey"];
apptocheck = await this.cacheManager["ApiAccessKeyCheckCache"].cache(ak, { status: true }, 3000);
}
return {apptocheck:apptocheck,ispass:isExistInNoAuth || apptocheck};
}
async doexec(gname, methodname, pobj, query, req) {
try {
//检查访问token
var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req);
if (!isPassResult.ispass) {
return system.getResultFail(system.tokenFail, "访问token失效,请重新获取");
}
var rtn = await this[methodname](pobj, query);
if(isPassResult.apptocheck){
var app=isPassResult.apptocheck.app;
if(methodname && methodname.indexOf("recvNotificationForCacheCount")<0){
this.apitradeSvr.create({
srcappkey: app.appkey,
tradeType: "consume",
op: req.classname + "/" + methodname,
params: JSON.stringify(pobj),
clientIp: req.clientIp,
agent: req.uagent,
destappkey:settings.appKey,
});
}
}
return rtn;
} catch (e) {
console.log(e.stack,"api调用出现异常,请联系管理员..........")
this.logCtl.error({
optitle: "api调用出现异常,请联系管理员",
op: pobj.classname + "/" + methodname,
content: e.stack,
clientIp: pobj.clientIp
});
return system.getResultFail(-200, "出现异常,请联系管理员");
}
}
}
module.exports = APIBase;
...@@ -13,8 +13,8 @@ class DocBase{ ...@@ -13,8 +13,8 @@ class DocBase{
this.initClassDoc(); this.initClassDoc();
} }
initClassDoc(){ initClassDoc(){
// this.descClass(); this.descClass();
// this.descMethods(); this.descMethods();
} }
descClass(){ descClass(){
var classDesc= this.classDesc(); var classDesc= this.classDesc();
......
var APIBase = require("../../api.base");
var system = require("../../../system");
var settings = require("../../../../config/settings");
class ConfigAPI extends APIBase {
constructor() {
super();
this.metaS = system.getObject("service.common.metaSve");
}
//返回
async fetchAppConfig(pobj, qobj, req) {
var cfg = await this.metaS.getUiConfig(settings.appKey, null, 100);
if (cfg) {
return system.getResultSuccess(cfg);
}
return system.getResultFail();
}
exam(){
return "xxx";
}
classDesc() {
return {
groupName: "meta",
groupDesc: "元数据服务包",
name: "ConfigAPI",
desc: "关于系统元数据或配置的类",
exam: "",
};
}
methodDescs() {
return [
{
methodDesc: "生成访问token",
methodName: "getAccessKey",
paramdescs: [
{
paramDesc: "访问appkey",
paramName: "appkey",
paramType: "string",
defaultValue: "x",
},
{
paramDesc: "访问secret",
paramName: "secret",
paramType: "string",
defaultValue: null,
}
],
rtnTypeDesc: "xxxx",
rtnType: "xxx"
}
];
}
}
module.exports = ConfigAPI;
\ No newline at end of file
var APIBase = require("../../api.base");
var system = require("../../../system");
var settings = require("../../../../config/settings");
class OpCacheAPI extends APIBase {
constructor() {
super();
this.cacheSve = system.getObject("service.common.cacheSve");
}
//返回
async opCacheData(params) {
if (params.action_type == "findAndCountAll") {
return await this.cacheSve.findAndCountAll(params.body);
} else if (params.action_type == "delCache") {
return await this.cacheSve.delCache(params.body);
} else if (params.action_type == "clearAllCache") {
return await this.cacheSve.clearAllCache(params.body);
} else {
return system.getResultFail();
}
}
//接受缓存计数通知接口
async recvNotificationForCacheCount(p,q,req){
return this.cacheSve.recvNotificationForCacheCount(p);
}
exam(){
return "xxx";
}
classDesc() {
return {
groupName: "meta",
groupDesc: "元数据服务包",
name: "OpCacheAPI",
desc: "关于系统缓存的操作类",
exam: "",
};
}
methodDescs() {
return [
{
methodDesc: "生成访问token",
methodName: "opCacheData",
paramdescs: [
{
paramDesc: "访问action_type类型:findAndCountAll为查询,delCache为删除,clearAllCache为清理",
paramName: "action_type",
paramType: "string",
defaultValue: null,
},
{
paramDesc: "访问body参数",
paramName: "body",
paramType: "json",
defaultValue: null,
}
],
rtnTypeDesc: "xxxx",
rtnType: "xxx"
}
];
}
}
module.exports = OpCacheAPI;
\ No newline at end of file
var APIBase =require("../../api.base");
var system=require("../../../system");
class TestAPI extends APIBase{
constructor(){super();}
async test(pobj,query){
return system.getResultSuccess({hello:"ok"});
}
exam(){
return "xxx";
}
classDesc(){
return {
groupName:"auth",
groupDesc:"认证相关的包",
name:"AccessAuthAPI",
desc:"关于认证的类",
exam:"",
};
}
methodDescs(){
return [
{
methodDesc:"生成访问token",
methodName:"getAccessKey",
paramdescs:[
{
paramDesc:"访问appkey",
paramName:"appkey",
paramType:"string",
defaultValue:"x",
},
{
paramDesc:"访问secret",
paramName:"secret",
paramType:"string",
defaultValue:null,
}
],
rtnTypeDesc:"xxxx",
rtnType:"xxx"
}
];
}
}
module.exports=TestAPI;
\ No newline at end of file
const system = require("../system"); const system = require("../system");
const settings = require("../../config/settings"); const settings = require("../../config/settings");
const uuidv4 = require('uuid/v4');
class CtlBase { class CtlBase {
constructor(gname, sname) { constructor() {
this.serviceName = sname;
this.service = system.getObject("service." + gname + "." + sname);
this.cacheManager = system.getObject("db.common.cacheManager"); this.cacheManager = system.getObject("db.common.cacheManager");
this.md5 = require("MD5"); this.redisClient = system.getObject("util.redisClient");
} }
encryptPasswd(passwd) { getUUID() {
if (!passwd) { var uuid = uuidv4();
throw new Error("请输入密码"); var u = uuid.replace(/\-/g, "");
} return u;
var md5 = this.md5(passwd + "_" + settings.salt);
return md5.toString().toLowerCase();
} }
notify(req, msg) { notify(req, msg) {
if (req.session) { if (req.session) {
req.session.bizmsg = msg; req.session.bizmsg = msg;
} }
} }
async findOne(queryobj, qobj) {
var rd = await this.service.findOne(qobj);
return system.getResult(rd, null);
}
async findAndCountAll(queryobj, obj, req) {
obj.codepath = req.codepath;
if (req.session.user) {
obj.uid = req.session.user.id;
obj.appid = req.session.user.app_id;
obj.onlyCode = req.session.user.unionId;
obj.account_id = req.session.user.account_id;
obj.ukstr = req.session.user.app_id + "¥" + req.session.user.id + "¥" + req.session.user.nickName + "¥" + req.session.user.headUrl;
}
var apps = await this.service.findAndCountAll(obj);
return system.getResult(apps, null);
}
async refQuery(queryobj, qobj) {
var rd = await this.service.refQuery(qobj);
return system.getResult(rd, null);
}
async bulkDelete(queryobj, ids) {
var rd = await this.service.bulkDelete(ids);
return system.getResult(rd, null);
}
async delete(queryobj, qobj) {
var rd = await this.service.delete(qobj);
return system.getResult(rd, null);
}
async create(queryobj, qobj, req) {
if (req && req.session && req.session.app) {
qobj.app_id = req.session.app.id;
qobj.onlyCode = req.session.user.unionId;
if (req.codepath) {
qobj.codepath = req.codepath;
}
}
var rd = await this.service.create(qobj);
return system.getResult(rd, null);
}
async update(queryobj, qobj, req) {
if (req && req.session && req.session.user) {
qobj.onlyCode = req.session.user.unionId;
}
if (req.codepath) {
qobj.codepath = req.codepath;
}
var rd = await this.service.update(qobj);
return system.getResult(rd, null);
}
static getServiceName(ClassObj) { static getServiceName(ClassObj) {
return ClassObj["name"].substring(0, ClassObj["name"].lastIndexOf("Ctl")).toLowerCase() + "Sve"; return ClassObj["name"].substring(0, ClassObj["name"].lastIndexOf("Ctl")).toLowerCase() + "Sve";
} }
async initNewInstance(queryobj, req) {
return system.getResult({}, null);
}
async findById(oid) {
var rd = await this.service.findById(oid);
return system.getResult(rd, null);
}
async timestampConvertDate(time) { async timestampConvertDate(time) {
if (time == null) { if (time == null) {
return ""; return "";
...@@ -104,19 +46,41 @@ class CtlBase { ...@@ -104,19 +46,41 @@ class CtlBase {
var d = new Date(time); var d = new Date(time);
return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate(); return d.getFullYear() + '-' + (d.getMonth() + 1) + '-' + d.getDate();
} }
async setContextParams(pobj, qobj, req) {
pobj.userid = req.session.user ? req.session.user.id : null;
}
async doexec(methodname, pobj, query, req) { async doexec(methodname, pobj, query, req) {
try { try {
await this.setContextParams(pobj, query, req);
// //检查appkey
// let key = await this.cacheManager["InitAppKeyCache"].getAppKeyVal(pobj.appKey);
// if(key==null){
// return system.getResultFail(system.tokenFail,"appKey授权有误");
// }
var rtn = await this[methodname](pobj, query, req); var rtn = await this[methodname](pobj, query, req);
// await this. apitradeSvr .create({
// appkey: pobj.appKey,
// tradeType: "consume",
// op: pobj.classname + "/" + methodname,
// params: JSON.stringify(pobj),
// clientIp: pobj.clientIp,
// agent: pobj.agent,
// });
return rtn; return rtn;
} catch (e) { } catch (e) {
console.log(e.stack); console.log(e.stack, "出现异常,请联系管理员.......");
// this.logCtl.error({ // this.logCtl.error({
// optitle: "Ctl调用出错", // optitle: "api调用出错",
// op: pobj.classname + "/" + methodname, // op: pobj.classname + "/" + methodname,
// content: e.stack, // content: e.stack,
// clientIp: pobj.clientIp // clientIp: pobj.clientIp
// }); // });
return system.getResultFail(-200, "Ctl出现异常,请联系管理员"); return system.getResultFail(-200, "出现异常,请联系管理员");
} }
} }
} }
......
var System=require("../../../system") var system=require("../../../system")
const CtlBase = require("../../ctl.base");
const crypto = require('crypto'); const crypto = require('crypto');
var fs=require("fs"); var fs=require("fs");
var accesskey='DHmRtFlw2Zr3KaRwUFeiu7FWATnmla'; var accesskey='DHmRtFlw2Zr3KaRwUFeiu7FWATnmla';
var accessKeyId='LTAIyAUK8AD04P5S'; var accessKeyId='LTAIyAUK8AD04P5S';
var url="https://gsb-zc.oss-cn-beijing.aliyuncs.com"; var url="https://gsb-zc.oss-cn-beijing.aliyuncs.com";
class UploadApi{ class UploadCtl extends CtlBase{
constructor(){ constructor(){
super("common",CtlBase.getServiceName(UploadCtl));
this.cmdPdf2HtmlPattern = "docker run -i --rm -v /tmp/:/pdf 0c pdf2htmlEX --zoom 1.3 '{fileName}'"; this.cmdPdf2HtmlPattern = "docker run -i --rm -v /tmp/:/pdf 0c pdf2htmlEX --zoom 1.3 '{fileName}'";
this.restS=System.getObject("util.execClient"); this.restS=system.getObject("util.execClient");
this.cmdInsertToFilePattern = "sed -i 's/id=\"page-container\"/id=\"page-container\" contenteditable=\"true\"/'"; this.cmdInsertToFilePattern = "sed -i 's/id=\"page-container\"/id=\"page-container\" contenteditable=\"true\"/'";
//sed -i 's/1111/&BBB/' /tmp/input.txt //sed -i 's/1111/&BBB/' /tmp/input.txt
//sed 's/{position}/{content}/g' {path} //sed 's/{position}/{content}/g' {path}
...@@ -36,12 +38,12 @@ class UploadApi{ ...@@ -36,12 +38,12 @@ class UploadApi{
return data; return data;
}; };
async upfile(srckey,dest){ async upfile(srckey,dest){
var oss=System.getObject("util.ossClient"); var oss=system.getObject("util.ossClient");
var result=await oss.upfile(srckey,"/tmp/"+dest); var result=await oss.upfile(srckey,"/tmp/"+dest);
return result; return result;
}; };
async downfile(srckey){ async downfile(srckey){
var oss=System.getObject("util.ossClient"); var oss=system.getObject("util.ossClient");
var downfile=await oss.downfile(srckey).then(function(){ var downfile=await oss.downfile(srckey).then(function(){
downfile="/tmp/"+srckey; downfile="/tmp/"+srckey;
return downfile; return downfile;
...@@ -65,4 +67,4 @@ class UploadApi{ ...@@ -65,4 +67,4 @@ class UploadApi{
}; };
} }
module.exports=UploadApi; module.exports=UploadCtl;
const system = require("../../../system");
const settings = require("../../../../config/settings");
function exp(db, DataTypes) {
var base = {
code: {
type: DataTypes.STRING(50),
unique: true
},
name: DataTypes.STRING(1000),
};
return base;
}
module.exports = exp;
const system = require("../../system");
const settings = require("../../../config/settings");
const uiconfig = system.getUiConfig2(settings.wxconfig.appId);
function exp(db, DataTypes) {
var base = {
//继承的表引用用户信息user_id
code: DataTypes.STRING(100),
name: DataTypes.STRING(500),
creator: DataTypes.STRING(100),//创建者
updator: DataTypes.STRING(100),//更新者
auditor: DataTypes.STRING(100),//审核者
opNotes: DataTypes.STRING(500),//操作备注
auditStatusName: {
type:DataTypes.STRING(50),
defaultValue:"待审核",
},
auditStatus: {//审核状态"dsh": "待审核", "btg": "不通过", "tg": "通过"
type: DataTypes.ENUM,
values: Object.keys(uiconfig.config.pdict.audit_status),
set: function (val) {
this.setDataValue("auditStatus", val);
this.setDataValue("auditStatusName", uiconfig.config.pdict.audit_status[val]);
},
defaultValue:"dsh",
},
sourceTypeName: DataTypes.STRING(50),
sourceType: {//来源类型 "order": "订单","expensevoucher": "费用单","receiptvoucher": "收款单", "trademark": "商标单"
type: DataTypes.ENUM,
values: Object.keys(uiconfig.config.pdict.source_type),
set: function (val) {
this.setDataValue("sourceType", val);
this.setDataValue("sourceTypeName", uiconfig.config.pdict.source_type[val]);
}
},
sourceOrderNo: DataTypes.STRING(100),//来源单号
};
return base;
}
module.exports = exp;
...@@ -5,7 +5,7 @@ class CacheBase { ...@@ -5,7 +5,7 @@ class CacheBase {
this.redisClient = system.getObject("util.redisClient"); this.redisClient = system.getObject("util.redisClient");
this.desc = this.desc(); this.desc = this.desc();
this.prefix = this.prefix(); this.prefix = this.prefix();
this.cacheCacheKeyPrefix = "s_sadd_appkeys:" + settings.appKey + "_cachekey"; this.cacheCacheKeyPrefix = "sadd_children_appkeys:" + settings.appKey + "_cachekey";
this.isdebug = this.isdebug(); this.isdebug = this.isdebug();
} }
isdebug() { isdebug() {
......
const CacheBase = require("../cache.base"); const CacheBase = require("../cache.base");
const system = require("../../system"); const system = require("../../system");
const settings = require("../../../config/settings"); class ApiAccessControlCache extends CacheBase {
class ApiAppIdCheckCache extends CacheBase {
constructor() { constructor() {
super(); super();
// this.merchantDao = system.getObject("db.merchant.merchantDao");
} }
desc() { desc() {
return "应用中来访访问appid缓存"; return "API访问控制缓存";
} }
prefix() { prefix() {
return settings.cacheprefix + "_verify_appid:"; return "api_access_control_:";
} }
async buildCacheVal(cachekey, inputkey, val, ex, ...items) { async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
// var item = await this.merchantDao.getItemByAppId(inputkey); return val;
// if (!item) {
// return null;
// }
// return JSON.stringify(item);
return null;//TODO:接口验证appid有效性
} }
} }
module.exports = ApiAppIdCheckCache; module.exports = ApiAccessControlCache;
const CacheBase=require("../cache.base");
const system=require("../../system");
const settings = require("../../../config/settings");
class ApiAccessKeyCache extends CacheBase{
constructor(){
super();
this.restS=system.getObject("util.restClient");
}
desc(){
return "应用中缓存访问token";
}
prefix(){
return "g_accesskey_";
}
async buildCacheVal(cachekey,inputkey,val,ex,...items){
var acckapp=await this.restS.execPost({appkey:settings.appKey,secret:settings.secret},settings.paasUrl()+"api/auth/accessAuth/getAccessKey");
var s=acckapp.stdout;
if(s){
var tmp=JSON.parse(s);
if(tmp.status==0){
return JSON.stringify(tmp.data);
}
}
return null;
}
}
module.exports=ApiAccessKeyCache;
const CacheBase=require("../cache.base");
const system=require("../../system");
const settings = require("../../../config/settings");
//缓存首次登录的赠送的宝币数量
class ApiAccessKeyCheckCache extends CacheBase{
constructor(){
super();
this.restS=system.getObject("util.restClient");
}
desc(){
return "应用中来访访问token缓存";
}
prefix(){
return "g_accesskeycheck_";
}
async buildCacheVal(cachekey,inputkey,val,ex,...items){
var cacheManager=system.getObject("db.common.cacheManager");
//当来访key缓存不存在时,需要去开放平台检查是否存在来访key缓存
var acckapp=await cacheManager["ApiAccessKeyCache"].cache(settings.appKey,null,ex);//先获取本应用accessKey
var checkresult=await this.restS.execPostWithAK({checkAccessKey:inputkey},settings.paasUrl()+"api/auth/accessAuth/authAccessKey",acckapp.accessKey);
if(checkresult.status==0){
var s=checkresult.data;
return JSON.stringify(s);
}else{
await cacheManager["ApiAccessKeyCache"].invalidate(settings.appKey);
var acckapp=await cacheManager["ApiAccessKeyCache"].cache(settings.appKey,null,ex);//先获取本应用accessKey
var checkresult=await this.restS.execPostWithAK({checkAccessKey:inputkey},settings.paasUrl()+"api/auth/accessAuth/authAccessKey",acckapp.accessKey);
var s=checkresult.data;
return JSON.stringify(s);
}
}
}
module.exports=ApiAccessKeyCheckCache;
const CacheBase = require("../cache.base"); const CacheBase = require("../cache.base");
const system = require("../../system"); const system = require("../../system");
const settings = require("../../../config/settings");
class MagCache extends CacheBase { class MagCache extends CacheBase {
constructor() { constructor() {
super(); super();
this.prefix = "magCache"; this.prefix = "magCache";
} }
desc() { desc() {
return "应用UI配置缓存"; return "缓存管理";
} }
//暂时没有用到,只是使用其帮助的方法
prefix() { prefix() {
return settings.cacheprefix + "_uiconfig:"; return "magCache:";
}
async buildCacheVal(cachekey, inputkey, val, ex, ...items) {
return val;
} }
async getCacheSmembersByKey(key) { async getCacheSmembersByKey(key) {
return this.redisClient.smembers(key); return this.redisClient.smembers(key);
} }
......
const CacheBase=require("../cache.base");
const system=require("../../system");
const settings = require("../../../config/settings");
//缓存首次登录的赠送的宝币数量
class UIConfigCache extends CacheBase{
constructor(){
super();
}
isdebug(){
return settings.env=="dev";
}
desc(){
return "应用UI配置缓存";
}
prefix(){
return "g_uiconfig_";
}
async buildCacheVal(cachekey,inputkey,val,ex,...items){
var configValue =system.getUiConfig2(inputkey);
return JSON.stringify(configValue);
}
}
module.exports=UIConfigCache;
...@@ -3,9 +3,10 @@ class Dao { ...@@ -3,9 +3,10 @@ class Dao {
constructor(modelName) { constructor(modelName) {
this.modelName = modelName; this.modelName = modelName;
var db = system.getObject("db.common.connection").getCon(); var db = system.getObject("db.common.connection").getCon();
// this.db = db; this.db = db;
console.log("........set dao model.........."); console.log("........set dao model..........");
this.model = db.models[this.modelName]; this.model = db.models[this.modelName];
console.log(this.modelName);
} }
preCreate(u) { preCreate(u) {
return u; return u;
...@@ -17,7 +18,7 @@ class Dao { ...@@ -17,7 +18,7 @@ class Dao {
return u; return u;
}); });
} else { } else {
return this.model.create(u2, { transaction: t }).then(u => { return this.model.create(u2).then(u => {
return u; return u;
}); });
} }
...@@ -26,14 +27,28 @@ class Dao { ...@@ -26,14 +27,28 @@ class Dao {
return ClassObj["name"].substring(0, ClassObj["name"].lastIndexOf("Dao")).toLowerCase() return ClassObj["name"].substring(0, ClassObj["name"].lastIndexOf("Dao")).toLowerCase()
} }
async refQuery(qobj) { async refQuery(qobj) {
var w = {}; var w =qobj.refwhere? qobj.refwhere:{};
if (qobj.levelinfo) {
w[qobj.levelinfo.levelfield] = qobj.levelinfo.level;
}
if (qobj.parentinfo) {
w[qobj.parentinfo.parentfield] = qobj.parentinfo.parentcode;
}
//如果需要控制数据权限
if(qobj.datapriv){
w["id"]={ [this.db.Op.in]: qobj.datapriv};
}
if (qobj.likestr) { if (qobj.likestr) {
w[qobj.fields[0]] = { [this.db.Op.like]: "%" + qobj.likestr + "%" }; w[qobj.fields[0]] = { [this.db.Op.like]: "%" + qobj.likestr + "%" };
return this.model.findAll({ where: w, attributes: qobj.fields }); return this.model.findAll({ where: w, attributes: qobj.fields });
} else { } else {
return this.model.findAll({ attributes: qobj.fields }); return this.model.findAll({ where: w, attributes: qobj.fields });
} }
} }
async bulkDelete(ids) {
var en = await this.model.destroy({ where: { id: { [this.db.Op.in]: ids } } });
return en;
}
async bulkDeleteByWhere(whereParam, t) { async bulkDeleteByWhere(whereParam, t) {
var en = null; var en = null;
if (t != null && t != 'undefined') { if (t != null && t != 'undefined') {
...@@ -43,14 +58,16 @@ class Dao { ...@@ -43,14 +58,16 @@ class Dao {
return await this.model.destroy(whereParam); return await this.model.destroy(whereParam);
} }
} }
async bulkDelete(ids) { async delete(qobj, t) {
var en = await this.model.destroy({ where: { id: { [this.db.Op.in]: ids } } });
return en;
}
async delete(qobj) {
var en = await this.model.findOne({ where: qobj }); var en = await this.model.findOne({ where: qobj });
if (en != null) { if (t != null && t != 'undefined') {
return en.destroy(); if (en != null) {
return en.destroy({ transaction: t });
}
} else {
if (en != null) {
return en.destroy();
}
} }
return null; return null;
} }
...@@ -70,17 +87,12 @@ class Dao { ...@@ -70,17 +87,12 @@ class Dao {
const pageNo = qobj.pageInfo.pageNo; const pageNo = qobj.pageInfo.pageNo;
const pageSize = qobj.pageInfo.pageSize; const pageSize = qobj.pageInfo.pageSize;
const search = qobj.search; const search = qobj.search;
const orderInfo = qobj.orderInfo;//格式:[["created_at", 'desc']]
var qc = {}; var qc = {};
//设置分页查询条件 //设置分页查询条件
qc.limit = pageSize; qc.limit = pageSize;
qc.offset = (pageNo - 1) * pageSize; qc.offset = (pageNo - 1) * pageSize;
//默认的查询排序 //默认的查询排序
if (orderInfo) { qc.order = this.orderBy();
qc.order = orderInfo;
} else {
qc.order = this.orderBy();
}
//构造where条件 //构造where条件
qc.where = {}; qc.where = {};
if (search) { if (search) {
...@@ -128,10 +140,41 @@ class Dao { ...@@ -128,10 +140,41 @@ class Dao {
console.log(qc); console.log(qc);
return qc; return qc;
} }
buildaggs(qobj) {
var aggsinfos = [];
if (qobj.aggsinfo) {
qobj.aggsinfo.sum.forEach(aggitem => {
var t1 = [this.db.fn('SUM', this.db.col(aggitem.field)), aggitem.field + "_" + "sum"];
aggsinfos.push(t1);
});
qobj.aggsinfo.avg.forEach(aggitem => {
var t2 = [this.db.fn('AVG', this.db.col(aggitem.field)), aggitem.field + "_" + "avg"];
aggsinfos.push(t2);
});
}
return aggsinfos;
}
async findAggs(qobj, qcwhere) {
var aggArray = this.buildaggs(qobj);
if (aggArray.length != 0) {
qcwhere["attributes"] = {};
qcwhere["attributes"] = aggArray;
qcwhere["raw"] = true;
var aggResult = await this.model.findOne(qcwhere);
return aggResult;
} else {
return {};
}
}
async findAndCountAll(qobj, t) { async findAndCountAll(qobj, t) {
var qc = this.buildQuery(qobj); var qc = this.buildQuery(qobj);
var apps = await this.model.findAndCountAll(qc); var apps = await this.model.findAndCountAll(qc);
return apps; var aggresult = await this.findAggs(qobj, qc);
var rtn = {};
rtn.results = apps;
rtn.aggresult = aggresult;
return rtn;
} }
preUpdate(obj) { preUpdate(obj) {
return obj; return obj;
...@@ -144,6 +187,14 @@ class Dao { ...@@ -144,6 +187,14 @@ class Dao {
return this.model.update(obj2, { where: { id: obj2.id } }); return this.model.update(obj2, { where: { id: obj2.id } });
} }
} }
async bulkCreate(ids, t) {
if (t != null && t != 'undefined') {
return await this.model.bulkCreate(ids, { transaction: t });
} else {
return await this.model.bulkCreate(ids);
}
}
async updateByWhere(setObj, whereObj, t) { async updateByWhere(setObj, whereObj, t) {
if (t && t != 'undefined') { if (t && t != 'undefined') {
if (whereObj && whereObj != 'undefined') { if (whereObj && whereObj != 'undefined') {
...@@ -172,23 +223,6 @@ class Dao { ...@@ -172,23 +223,6 @@ class Dao {
} }
return this.db.query(sql, tmpParas); return this.db.query(sql, tmpParas);
} }
async customUpdate(sql, paras, t) {
var tmpParas = null;
if (t && t != 'undefined') {
if (paras == null || paras == 'undefined') {
tmpParas = { type: this.db.QueryTypes.UPDATE };
tmpParas.transaction = t;
} else {
tmpParas = { replacements: paras, type: this.db.QueryTypes.UPDATE };
tmpParas.transaction = t;
}
} else {
tmpParas = paras == null || paras == 'undefined' ? { type: this.db.QueryTypes.UPDATE } : { replacements: paras, type: this.db.QueryTypes.UPDATE };
}
return this.db.query(sql, tmpParas);
}
async findCount(whereObj = null) { async findCount(whereObj = null) {
return this.model.count(whereObj, { logging: false }).then(c => { return this.model.count(whereObj, { logging: false }).then(c => {
return c; return c;
...@@ -213,16 +247,13 @@ class Dao { ...@@ -213,16 +247,13 @@ class Dao {
if (includeObj != null && includeObj.length > 0) { if (includeObj != null && includeObj.length > 0) {
tmpWhere.include = includeObj; tmpWhere.include = includeObj;
tmpWhere.distinct = true; tmpWhere.distinct = true;
}else{
tmpWhere.raw = true;
} }
tmpWhere.raw = true;
return await this.model.findAndCountAll(tmpWhere); return await this.model.findAndCountAll(tmpWhere);
} }
async findOne(obj, t) { async findOne(obj) {
var params = {"where": obj}; return this.model.findOne({ "where": obj });
if(t) {
params.transaction = t;
}
return this.model.findOne(params);
} }
async findById(oid) { async findById(oid) {
return this.model.findById(oid); return this.model.findById(oid);
......
const system=require("../../../system");
const Dao=require("../../dao.base");
class UserDao extends Dao{
constructor(){
super(Dao.getModelName(UserDao));
}
async getAuths(userid){
var self=this;
return this.model.findOne({
where:{id:userid},
include:[{model:self.db.models.account,attributes:["id","isSuper","referrerOnlyCode"]},
{model:self.db.models.role,as:"Roles",attributes:["id","code"],include:[
{model:self.db.models.product,as:"Products",attributes:["id","code"]}
]},
],
});
}
extraModelFilter(){
//return {"key":"include","value":[{model:this.db.models.app,},{model:this.db.models.role,as:"Roles",attributes:["id","name"],joinTableAttributes:['created_at']}]};
return {"key":"include","value":[{model:this.db.models.app,},{model:this.db.models.role,as:"Roles",attributes:["id","name"]}]};
}
extraWhere(obj,w,qc,linkAttrs){
if(obj.codepath && obj.codepath!=""){
// if(obj.codepath.indexOf("userarch")>0){//说明是应用管理员的查询
// console.log(obj);
// w["app_id"]=obj.appid;
// }
}
if(linkAttrs.length>0){
var search=obj.search;
var lnkKey=linkAttrs[0];
var strq="$"+lnkKey.replace("~",".")+"$";
w[strq]= {[this.db.Op.like]:"%"+search[lnkKey]+"%"};
}
return w;
}
async preUpdate(u){
if(u.roles && u.roles.length>0){
var roles=await this.db.models.role.findAll({where:{id:{[this.db.Op.in]:u.roles}}});
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
console.log(roles);
u.roles=roles
}
return u;
}
async update(obj){
var obj2=await this.preUpdate(obj);
console.log("update....................");
console.log(obj2);
await this.model.update(obj2,{where:{id:obj2.id}});
var user=await this.model.findOne({where:{id:obj2.id}});
user.setRoles(obj2.roles);
return user;
}
async findAndCountAll(qobj,t){
var users=await super.findAndCountAll(qobj,t);
return users;
}
async preCreate(u){
// var roles=await this.db.models.role.findAll({where:{id:{[this.db.Op.like]:u.roles}}});
// console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
// console.log(roles);
// console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
// u.roles=roles
return u;
}
async create(u,t){
var self=this;
var u2=await this.preCreate(u);
if(t){
return this.model.create(u2,{transaction: t}).then(user=>{
return user;
});
}else{
return this.model.create(u2).then(user=>{
return user;
});
}
}
//修改用户(user表)公司的唯一码
async putUserCompanyOnlyCode(userId,company_only_code,result){
var customerObj={companyOnlyCode:company_only_code};
var putSqlWhere={where:{id:userId}};
this.updateByWhere(customerObj,putSqlWhere);
return result;
}
}
module.exports=UserDao;
// var u=new UserDao();
// var roledao=system.getObject("db.roleDao");
// (async ()=>{
// var users=await u.model.findAll({where:{app_id:1}});
// var role=await roledao.model.findOne({where:{code:"guest"}});
// console.log(role);
// for(var i=0;i<users.length;i++){
// await users[i].setRoles([role]);
// console.log(i);
// }
//
// })();
const system=require("../../../system");
class ApiTradeDao{
constructor(){
//super(Dao.getModelName(AppDao));
}
}
module.exports=ApiTradeDao;
const Sequelize = require('sequelize');
const settings=require("../../../../config/settings")
const fs=require("fs")
const path=require("path");
var glob = require("glob");
class DbFactory{
constructor(){
const dbConfig=settings.database();
const dbConfighb=settings.databasehb();
this.db=new Sequelize(dbConfig.dbname,
dbConfig.user,
dbConfig.password,
dbConfig.config);
this.db.Sequelize=Sequelize;
this.db.Op=Sequelize.Op;
this.initModels();
this.initRelations();
}
async initModels(){
var self=this;
var modelpath=path.normalize(path.join(__dirname, '../..'))+"/models/";
console.log("modelpath=====================================================");
console.log(modelpath);
var models=glob.sync(modelpath+"/**/*.js");
console.log(models.length);
models.forEach(function(m){
console.log(m);
self.db.import(m);
});
console.log("init models....");
}
async initRelations(){
/**
一个账户对应多个登陆用户
一个账户对应一个commany
一个APP对应多个登陆用户
一个APP有多个角色
登陆用户和角色多对多
**/
/*建立账户和用户之间的关系*/
//account--不属于任何一个app,是统一用户
//用户登录时首先按照用户名和密码检查account是否存在,如果不存在则提示账号或密码不对,如果
//存在则按照按照accountid和应用key,查看user,后台实现对应user登录
/*建立api调用日志和api之间的关系*/
// this.db.models.apitrade.belongsTo(this.db.models.app,{constraints: false,});
}
//async getCon(){,用于使用替换table模型内字段数据使用
getCon(){
var that=this;
// await this.db.authenticate().then(()=>{
// console.log('Connection has been established successfully.');
// }).catch(err => {
// console.error('Unable to connect to the database:', err);
// throw err;
// });
//同步模型
if(settings.env=="dev"){
//console.log(pa);
// pconfigObjs.forEach(p=>{
// console.log(p.get({plain:true}));
// });
// await this.db.models.user.create({nickName:"dev","description":"test user",openId:"testopenid",unionId:"testunionid"})
// .then(function(user){
// var acc=that.db.models.account.build({unionId:"testunionid",nickName:"dev"});
// acc.save().then(a=>{
// user.setAccount(a);
// });
// });
}
return this.db;
}
getConhb(){
var that=this;
if(settings.env=="dev"){
}
return this.dbhb;
}
}
module.exports=DbFactory;
// const dbf=new DbFactory();
// dbf.getCon().then((db)=>{
// //console.log(db);
// // db.models.user.create({nickName:"jy","description":"cccc",openId:"xxyy",unionId:"zz"})
// // .then(function(user){
// // var acc=db.models.account.build({unionId:"zz",nickName:"jy"});
// // acc.save().then(a=>{
// // user.setAccount(a);
// // });
// // console.log(user);
// // });
// // db.models.user.findAll().then(function(rs){
// // console.log("xxxxyyyyyyyyyyyyyyyyy");
// // console.log(rs);
// // })
// });
// const User = db.define('user', {
// firstName: {
// type: Sequelize.STRING
// },
// lastName: {
// type: Sequelize.STRING
// }
// });
// db
// .authenticate()
// .then(() => {
// console.log('Co+nnection has been established successfully.');
//
// User.sync(/*{force: true}*/).then(() => {
// // Table created
// return User.create({
// firstName: 'John',
// lastName: 'Hancock'
// });
// });
//
// })
// .catch(err => {
// console.error('Unable to connect to the database:', err);
// });
//
// User.findAll().then((rows)=>{
// console.log(rows[0].firstName);
// });
const system=require("../../../system");
const Dao=require("../../dao.base");
class MetaDao{
constructor(){
//super(Dao.getModelName(AppDao));
}
}
module.exports=MetaDao;
const system=require("../../../system");
const Dao=require("../../dao.base");
class TaskDao extends Dao{
constructor(){
super(Dao.getModelName(TaskDao));
}
extraWhere(qobj,qw,qc){
qc.raw=true;
return qw;
}
async delete(task,qobj,t){
return task.destroy({where:qobj,transaction:t});
}
}
module.exports=TaskDao;
const system=require("../../../system");
const fs=require("fs");
const settings=require("../../../../config/settings");
var cron = require('node-cron');
class TaskManager{
constructor(){
this.taskDic={};
this.redisClient=system.getObject("util.redisClient");
this.buildTaskMap();
}
async buildTaskMap(){
var self=this;
//订阅任务频道
await this.redisClient.subscribeTask("task",this);
var taskPath=settings.basepath+"/app/base/db/task/";
const files=fs.readdirSync(taskPath);
if(files){
files.forEach(function(r){
var classObj=require(taskPath+"/"+r);
self[classObj.name]=new classObj();
});
}
}
async addTask(taskClassName,exp){
(async (tn,ep)=>{
if(!this.taskDic[tn]){
this.taskDic[tn]=cron.schedule(ep,()=>{
this[tn].doTask();
});
}
})(taskClassName,exp);
}
async deleteTask(taskClassName){
if(this.taskDic[taskClassName]){
this.taskDic[taskClassName].destroy();
delete this.taskDic[taskClassName];
}
}
async clearlist(){
var x=await this.redisClient.clearlist("tasklist");
return x;
}
async publish(channel,msg){
var x=await this.redisClient.publish(channel,msg);
return x;
}
async newTask(taskstr){
return this.redisClient.rpush("tasklist",taskstr);
}
}
module.exports=TaskManager;
// var cm= new CacheManager();
// cm["InitGiftCache"].cacheGlobalVal("hello").then(function(){
// cm["InitGiftCache"].cacheGlobalVal().then(x=>{
// console.log(x);
// });
// });
const system=require("../../../system"); const system=require("../../../system");
const Dao=require("../../dao.base"); const Dao=require("../../dao.base");
class NeedInfoDao extends Dao{ class UploadDao extends Dao{
constructor(){ constructor(){
super(Dao.getModelName(NeedInfoDao)); super(Dao.getModelName(UploadDao));
} }
} }
module.exports=NeedInfoDao; module.exports=UploadDao;
const system=require("../system");
const settings=require("../../config/settings.js");
const reclient=system.getObject("util.redisClient");
const md5 = require("MD5");
//获取平台配置兑换率
//初次登录的赠送数量
//创建一笔交易
//同时增加账户数量,增加系统平台账户
var dbf=system.getObject("db.common.connection");
var db=dbf.getCon();
db.sync({force:true}).then(async ()=>{
console.log("sync complete...");
//创建role
// if(settings.env=="prod"){
// reclient.flushall(()=>{
// console.log("clear caches ok.....");
// });
// }
// reclient.flushall(()=>{
// console.log("clear caches ok.....");
// });
});
module.exports = {
"appid": "bfe73612fa024822941e3e1ecd9a06e1",
"label": "研发开放平台",
"config": {
"rstree": {
"code": "paasroot",
"label": "paas",
"children": [
{
"code": "appCenter",
"label": "订单中心",
"src": "/imgs/logo.png",
"isSubmenu": true,
"isleft": true,
"children": [
{
"code": "appMag", "isGroup": true, "label": "应用管理", "children": [
{
"code": "allorder",
"label": "所有订单",
"isMenu": true,
"bizCode": "allorder",
"bizConfig": null,
"path": "",
"isleft": true,
},
{
"code": "myorder",
"label": "我的订单",
"isMenu": true,
"bizCode": "myorder",
"bizConfig": null,
"path": "",
"isleft": true,
},
]
},
],
},
{
"code": "exit",
"icon": "fa fa-power-off",
"path": "exit",
"isMenu": false,
"label": "退出",
"isctl": "no"
},
{
"code": "register",
"icon": "fa fa-power-off",
"path": "register",
"isMenu": false,
"label": "注册",
"isctl": "no"
},
{
"code": "login",
"icon": "fa fa-power-off",
"path": "login",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdtrademark",
"icon": "fa fa-power-off",
"path": "jdtrademark",
"isMenu": false,
"label": "商标首页",
"isctl": "no"
},
{
"code": "jdicbc",
"icon": "fa fa-power-off",
"path": "jdicbc",
"isMenu": false,
"label": "工商核名",
"isctl": "no"
},
{
"code": "jdbycquerytm",
"icon": "fa fa-power-off",
"path": "jdbycquerytm",
"isMenu": false,
"label": "商标检索",
"isctl": "no"
},
{
"code": "jdbycnoticetm",
"icon": "fa fa-power-off",
"path": "jdbycnoticetm",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "bycnoticeindex",
"icon": "fa fa-power-off",
"path": "bycnoticeindex",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdbycncldetail",
"icon": "fa fa-power-off",
"path": "jdbycncldetail",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "icorder",
"icon": "fa fa-power-off",
"path": "icorder",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "selftmreg",
"icon": "fa fa-power-off",
"path": "selftmreg",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "admin",
"icon": "fa fa-power-off",
"path": "admin",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdbycdetailtm",
"icon": "fa fa-power-off",
"path": "jdbycdetailtm",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdbycnoticedetailtm",
"icon": "fa fa-power-off",
"path": "jdbycnoticedetailtm",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdindentdetail",
"icon": "fa fa-power-off",
"path": "jdindentdetail",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
{
"code": "jdindentlist",
"icon": "fa fa-power-off",
"path": "jdindentlist",
"isMenu": false,
"label": "登录",
"isctl": "no"
},
],
},
"bizs": {
"admin": { "title": "后台首页", "config": null, "path": "/admin", "comname": "admin" },
"jdindentlist": { "title": "后台首页", "config": null, "path": "/jdindentlist", "comname": "jdindentlist" },
"jdindentdetail": { "title": "后台首页", "config": null, "path": "/jdindentdetail", "comname": "jdindentdetail" },
"jdbycnoticedetailtm": { "title": "后台首页", "config": null, "path": "/jdbycnoticedetailtm", "comname": "jdbycnoticedetailtm" },
"jdbycdetailtm": { "title": "后台首页", "config": null, "path": "/jdbycdetailtm", "comname": "jdbycdetailtm" },
"login": { "title": "登录", "config": null, "path": "/login", "comname": "login" },
"selftmreg": { "title": "登录", "config": null, "path": "/selftmreg", "comname": "selftmreg" },
"icorder": { "title": "登录", "config": null, "path": "/icorder", "comname": "icorder" },
"jdbycncldetail": { "title": "登录", "config": null, "path": "/jdbycncldetail", "comname": "jdbycncldetail" },
"bycnoticeindex": { "title": "登录", "config": null, "path": "/bycnoticeindex", "comname": "bycnoticeindex" },
"jdbycnoticetm": { "title": "登录", "config": null, "path": "/jdbycnoticetm", "comname": "jdbycnoticetm" },
"jdbycquerytm": { "title": "登录", "config": null, "path": "/jdbycquerytm", "comname": "jdbycquerytm" },
"jdicbc": { "title": "登录", "config": null, "path": "/jdicbc", "comname": "jdicbc" },
"jdtrademark": { "title": "登录", "config": null, "path": "/jdtrademark", "comname": "jdtrademark" },
"register": { "title": "注册", "config": null, "path": "/register", "comname": "register" },
"home": { "title": "前台首页", "config": null, "path": "/", "comname": "home" },
"myapp": { "title": "我的APP", "config": null, "path": "/myapp", "comname": "myapp" },
"approle": { "title": "角色", "config": null, "path": "/approle", "comname": "approle" },
"appuser": { "title": "用户", "config": null, "path": "/appuser", "comname": "appuser" },
"allapps": { "title": "所有APP", "config": null, "path": "/allapps", "comname": "allapps" },
},
"pauths": [
"add", "edit", "delete", "export", "show"
],
"pdict": {
"app_type": { "api": "数据API", "web": "站点", "app": "移动APP", "xcx": "小程序", "access": "接入" },
"data_priv": { "auth.role": "角色", "auth.user": "用户", "common.app": "应用" },
"noticeType": { "sms": "短信", "email": "邮件", "wechat": "微信" },
"authType": { "add": "新增", "edit": "编辑", "delete": "删除", "export": "导出", "show": "查看" },
"mediaType": { "vd": "视频", "ad": "音频", "qt": "其它" },
"usageType": { "kt": "课堂", "taxkt": "财税课堂", "qt": "其它" },
"opstatus": { "0": "失败", "1": "成功" },
"sex": { "male": "男", "female": "女" },
"configType": { "price": "宝币兑换率", "initGift": "初次赠送", "apiInitGift": "API初次赠送", "apiCallPrice": "api调用价格" },
"logLevel": { "debug": 0, "info": 1, "warn": 2, "error": 3, "fatal": 4 },
"msgType": { "sys": "系统", "single": "单点", "multi": "群发", "mryzSingle": "每日易照单点", "mryzLicense": "群发", },
"tradeType": {
"fill": "充值宝币", "consume": "消费宝币", "gift": "赠送宝币", "giftMoney": "红包", "refund": "退款", "payment": "付款",
},
}
}
}
\ No newline at end of file
module.exports={
"bizName":"accounts",
"list":{
columnMetaData:[
{"width":"100","label":"头像","name":"null","isShowTip":false,"isTmpl":true,"isBtns":false},
{"width":"100","label":"昵称","prop":"nickName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"唯一标识","prop":"unionId","isShowTip":true,"isTmpl":false},
{"width":"100","label":"宝币余额","prop":"baoBalance","isShowTip":true,"isTmpl":false},
{"width":"150","label":"钱包余额","prop":"renBalance","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true}
]
},
"form":[
],
"search":[
{
"title":"昵称",
"ctls":[
{"type":"input","label":"昵称","prop":"nickName","placeHolder":"","style":""},
]
},
],
"auth":{
"add":[
],
"edit":[
],
"delete":[
// {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"200","label":"公司名称","prop":"companyName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"业务员","prop":"accountName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"日期","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"}
]
},
"form":[
],
"search":[
{
"title":"公司名称",
ctls:[
{"type":"input","label":"公司名称","prop":"companyName","placeHolder":"请输入公司名称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"查看","type":"default","key":"myedit","isInRow":true},
{"icon":"el-icon-plus","title":"预览","type":"default","key":"rpreview","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"allcalctm",
"list":{
columnMetaData:[
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"190","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"100","label":"状态","prop":"status","isShowTip":true,"isTmpl":false},
{"width":"150","label":"来源类型","prop":"calcTypeName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"商标申请人",
ctls:[
{"type":"input","label":"商标申请人","prop":"applyName","placeHolder":"商标申请人","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
},
{
"title":"联系人",
ctls:[
{"type":"input","label":"联系人","prop":"customerContact","placeHolder":"联系人","style":""},
]
},
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"提报单状态",
ctls:[
{"type":"select","dicKey":"ncl_calc_status","prop":"status","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"tool-add","title":"新增","type":"default","key":"mynew","isOnGrid":true},
{"icon":"tool-copy1","title":"复制","type":"default","key":"copy","isOnGrid":true},
{"icon":"tool-Order1","title":"生成订单","type":"default","key":"makeOrder","isOnGrid":true},
{"icon":"el-icon-arrow-up","title":"挂接订单","type":"default","key":"hookorder","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
{"icon":"el-icon-plus","title":"生成委托书","type":"default","key":"createWTS","isInRow":true},
{"icon":"el-icon-cancel","title":"下载委托书","type":"default","key":"downloadWTS","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"detail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请类型","prop":"applierTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"版权类型","prop":"copyrightTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"版权进度","prop":"statusProgressName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"状态","prop":"statusName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"版权类型",
ctls:[
{"type":"select","dicKey":"copyright_type","prop":"copyrightType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"版权进度",
ctls:[
{"type":"select","dicKey":"statusProgress_status","prop":"statusProgress","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"状态",
ctls:[
{"type":"select","dicKey":"ncl_calc_status","prop":"status","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-edit","title":"修改进度","type":"default","key":"editStatus","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
// {"icon":"tool-copy1","title":"复制","type":"default","key":"copy","isOnGrid":true},
// {"icon":"tool-copy1","title":"关联订单","type":"default","key":"hookorder","isOnGrid":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
],
"delete":[
// {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"返回","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"80","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"产品名称",
ctls:[
{"type":"input","label":"产品名称","prop":"itemName","placeHolder":"产品名称","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"支付类型",
ctls:[
{"type":"select","dicKey":"paymentPlatformType","prop":"paymentPlatformType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"el-icon-plus","title":"下单","type":"default","key":"neworder","isOnGrid":true},
// {"icon":"el-icon-plus","title":"开始提报","type":"default","key":"tmsubmit","isInRow":true},
// {"icon":"el-icon-plus","title":"订单取消","type":"default","key":"ordercancel","isInRow":true}
],
"edit":[
{"icon":"el-icon-remove","title":"付款审核","type":"default","key":"audit","isInRow":true},
{"icon":"el-icon-remove","title":"查看附件","type":"default","key":"myfile","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
],
"common":[
// {"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"160","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"260","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"支付类型","prop":"paymentPlatform","isShowTip":true,"isTmpl":false},
{"width":"190","label":"日期","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"50","label":"更多信息","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"产品名称",
ctls:[
{"type":"input","label":"产品名称","prop":"itemName","placeHolder":"产品名称","style":""},
]
},
{
"title":"订单来源",
ctls:[
{"type":"select","dicKey":"order_source_type","prop":"orderSourceType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"支付类型",
ctls:[
{"type":"select","dicKey":"paymentPlatformType","prop":"paymentPlatformType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-edit","title":"修改状态","type":"default","key":"editStatus","isOnGrid":true},
/*{"icon":"el-icon-plus","title":"退款","type":"default","key":"refund","isInRow":true},*/
],
"edit":[
/*{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},*/
{"icon":"el-icon-remove","title":"付款审核","type":"default","key":"audit","isInRow":true},
{"icon":"el-icon-remove","title":"查看附件","type":"default","key":"myfile","isInRow":true},
],
"delete":[
],
"common":[
// {"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
/* {"icon":"el-icon-cancel","title":"发票申请","type":"default","key":"myinvoice","isInRow":true},*/
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"100","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"申请类型","prop":"applierTypeName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"专利名称","prop":"patentsName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"专利类型","prop":"patentsTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"专利进度","prop":"statusProgressName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"状态","prop":"statusName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-edit","title":"修改进度","type":"default","key":"editStatus","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
// {"icon":"tool-copy1","title":"复制","type":"default","key":"copy","isOnGrid":true},
// {"icon":"tool-copy1","title":"关联订单","type":"default","key":"hookorder","isOnGrid":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
],
"delete":[
// {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"返回","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"80","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"产品名称",
ctls:[
{"type":"input","label":"产品名称","prop":"itemName","placeHolder":"产品名称","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"支付类型",
ctls:[
{"type":"select","dicKey":"paymentPlatformType","prop":"paymentPlatformType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"el-icon-plus","title":"下单","type":"default","key":"neworder","isOnGrid":true},
// {"icon":"el-icon-plus","title":"开始提报","type":"default","key":"tmsubmit","isInRow":true},
// {"icon":"el-icon-plus","title":"订单取消","type":"default","key":"ordercancel","isInRow":true}
],
"edit":[
{"icon":"el-icon-remove","title":"付款审核","type":"default","key":"audit","isInRow":true},
{"icon":"el-icon-remove","title":"查看附件","type":"default","key":"myfile","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
],
"common":[
// {"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"80","label":"订单来源","prop":"orderSourceTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"客户昵称","prop":"nickName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"客户电话","prop":"customerMobile","isShowTip":true,"isTmpl":false},
{"width":"150","label":"产品名称","prop":"itemName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"件数","prop":"itemOrderNum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"确定挂接","type":"default","key":"selorderok","isOnGrid":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"160","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"220","label":"代理号","prop":"proxyCode","isShowTip":true,"isTmpl":false},
{"width":"230","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"商标号","prop":"tmRegistNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"商标类型","prop":"tmFormTypeName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"大类","prop":"nclOneCodes","isShowTip":true,"isTmpl":false},
{"width":"110","label":"状态","prop":"tmStatusName","isShowTip":true,"isTmpl":false},
{"width":"110","label":"来源","prop":"tmSourceTypeName","isShowTip":true,"isTmpl":false},
// {"width":"190","label":"日期","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"50","label":"更多信息","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"代理号",
ctls:[
{"type":"input","label":"代理号","prop":"proxyCode","placeHolder":"代理号","style":""},
]
},
{
"title":"商标号",
ctls:[
{"type":"input","label":"商标号","prop":"tmRegistNum","placeHolder":"商标号","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"商标状态",
ctls:[
{"type":"select","dicKey":"tm_submit_status","prop":"tmStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"商标来源",
ctls:[
{"type":"select","dicKey":"tmSourceType","prop":"tmSourceType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"tool-upload","title":"审核","type":"default","key":"awte","isOnGrid":true},
{"icon":"tool-upload","title":"退回","type":"default","key":"atoback","isOnGrid":true},
{"icon":"tool-upload","title":"人工审核不予通过","type":"default","key":"repulses","isOnGrid":true},
{"icon":"tool-upload","title":"特殊处理","type":"default","key":"tscl","isOnGrid":true},
{"icon":"tool-upload","title":"上传回执","type":"default","key":"tmhzuploadlist","isOnGrid":true},
{"icon":"el-icon-cancel","title":"审核","type":"default","key":"wte","isInRow":true},
{"icon":"el-icon-cancel","title":"退回","type":"default","key":"toback","isInRow":true},
{"icon":"el-icon-cancel","title":"人工审核不予通过","type":"default","key":"repulse","isInRow":true},
{"icon":"tool-look1","title":"查看回执","type":"default","key":"tmhzlook","isOnGrid":true},
{"icon":"el-icon-cancel","title":"营业执照","type":"default","key":"yyzz","isInRow":true},
{"icon":"el-icon-cancel","title":"商标图样","type":"default","key":"sbty","isInRow":true},
{"icon":"el-icon-cancel","title":"委托书","type":"default","key":"wts","isInRow":true},
{"icon":"el-icon-cancel","title":"身份证明","type":"default","key":"sfz","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"detail","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
// {"icon":"el-icon-cancel","title":"订单详情","type":"default","key":"orderdetail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"220","label":"代理号","prop":"proxyCode","isShowTip":true,"isTmpl":false},
{"width":"300","label":"作品名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"100","label":"作品类别","prop":"compositionTypeName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"发表状态","prop":"publishStatusName","isShowTip":true,"isTmpl":false},
{"width":"110","label":"进展状态","prop":"statusProgressName","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"代理号",
ctls:[
{"type":"input","label":"代理号","prop":"proxyCode","placeHolder":"代理号","style":""},
]
},
{
"title":"作品名称",
ctls:[
{"type":"input","label":"软件全称","prop":"softwareName","placeHolder":"作品名称","style":""},
]
},
{
"title":"作品类别",
ctls:[
{"type":"select","dicKey":"composition_type","prop":"compositionType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"进展状态",
ctls:[
{"type":"select","dicKey":"statusProgress_status","prop":"statusProgress","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-cancel","title":"修改","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
module.exports={
"bizName":"appdetail",
"list":{
columnMetaData:[
{"width":"500","label":"路径名称","prop":"detailPath","isShowTip":true,"isTmpl":false},
{"width":"200","label":"调用次数","prop":"detailCount","isShowTip":true,"isTmpl":false},
{"width":"200","label":"金额","prop":"detailAmount","isShowTip":true,"isTmpl":false},
]
},
"form":[
],
"search":[
],
"auth":{
}
}
module.exports={
"bizName":"apps",
"list":{
columnMetaData:[
{"width":"100","label":"应用名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"应用标识","prop":"appid","isShowTip":true,"isTmpl":false},
{"width":"200","label":"应用标识","prop":"secret","isShowTip":true,"isTmpl":false},
{"width":"200","label":"认证页面","prop":"authPage","isShowTip":true,"isTmpl":false},
{"width":"200","label":"跳转页面","prop":"homePage","isShowTip":true,"isTmpl":false},
{"width":"200","label":"API调用次数","prop":"apiCallCount","isShowTip":true,"isTmpl":false},
{"width":"200","label":"API应收余额","prop":"amount","isShowTip":true,"isTmpl":false},
{"width":"100","label":"logo","prop":"logoUrl","isShowTip":false,"isTmpl":true,"isBtns":false},
{"width":"100","label":"应用图形","prop":"appimgUrl","isShowTip":false,"isTmpl":true,"isBtns":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"应用名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入应用名称', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"应用名称","prop":"name","placeHolder":"应用名称","style":""},
]
},
{
"title":"应用ID",
"ctls":[
{"type":"input","label":"应用ID","prop":"appid","disabled":true,"placeHolder":"","style":""},
]
},
{
"title":"密钥",
"ctls":[
{"type":"input","label":"应用ID","prop":"secret","disabled":false,"placeHolder":"","style":""},
]
},
{
"title":"认证页面",
"ctls":[
{"type":"input","label":"认证页面","prop":"authPage","disabled":false,"placeHolder":"","style":""},
]
},
{
"title":"跳转页面",
"ctls":[
{"type":"input","label":"跳转页面","prop":"homePage","disabled":false,"placeHolder":"","style":""},
]
},
{
"title":"logo",
"ctls":[
{"type":"upload","label":"logo","prop":"logoUrl","placeHolder":"请输入标题","style":""},
]
},
{
"title":"应用图形",
"ctls":[
{"type":"upload","label":"右图","prop":"appimgUrl","placeHolder":"请输入标题","style":""},
]
},
],
"search":[
{
"title":"应用名称",
ctls:[
{"type":"input","label":"应用名称","prop":"name","placeHolder":"应用名称","style":""},
]
},
{
"title":"应用KEY",
"ctls":[
{"type":"input","label":"应用ID","prop":"appid","placeHolder":"","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
{"icon":"el-icon-edit","title":"详情","type":"default","key":"detail","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"100","label":"头像","prop":"headUrl","isShowTip":false,"isTmpl":true,"isBtns":false},
{"width":"100","label":"昵称","prop":"nickName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"角色","prop":"Roles","isShowTip":true,"isTmpl":false},
{"width":"100","label":"性别","prop":"sex","isShowTip":true,"isTmpl":false},
{"width":"150","label":"地区","prop":"from","isShowTip":true,"isTmpl":false},
{"width":"80","label":"状态","prop":"isEnabled","isShowTip":true,"isTmpl":false},
{"width":"200","label":"唯一标识","prop":"unionId","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
{
"title":"昵称",
ctls:[
{"type":"input","label":"昵称","prop":"nickName","placeHolder":"昵称","style":""},
]
},
{
"title":"角色",
ctls:[
{"type":"select","refModel":"role","isMulti":true,"label":"角色","prop":"roles","labelField":"name","valueField":"id","style":""},
]
},
{
"title":"",
ctls:[
{"type":"switch","prop":"isAdmin","acText":"是管理员","inactText":"否","placeHolder":"请输入单次使用消耗的宝币数","style":""},
]
},
],
"search":[
{
"title":"昵称",
ctls:[
{"type":"input","label":"昵称","prop":"nickName","placeHolder":"请输入昵称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
{"icon":"el-icon-edit","title":"停用","type":"default","key":"stopUser","isInRow":true,"boolProp":"isEnabled","falseText":"启用"},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"article",
"list":{
columnMetaData:[
{"width":"200","label":"编码","prop":"code","isShowTip":true,"isTmpl":false},
{"width":"200","label":"次续","prop":"orderNo","isShowTip":true,"isTmpl":false},
{"width":"200","label":"用途","prop":"usageType","isShowTip":true,"isTmpl":false},
{"width":"200","label":"媒体类型","prop":"mediaType","isShowTip":true,"isTmpl":false},
{"width":"100","label":"频道","prop":"newschannel.title","isShowTip":true,"isTmpl":false},
{"width":"100","label":"标题","prop":"title","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"次续",
ctls:[
{"type":"number","prop":"orderNo","placeHolder":"请输入(整数数字)","style":""},
]
},
{
"title":"编码",
"validProp":"code",
"rule": [
{ "required": true, "message": '请输入编码', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"编码","prop":"code","placeHolder":"请输入编码","style":""},
]
},
{
"title":"频道",
ctls:[
{"type":"select","refModel":"newschannel","isMulti":false,"label":"频道","prop":"newschannel_id","labelField":"title","valueField":"id","style":""},
]
},
{
"title":"用途",
"validProp":"usageType",
"rule": [
{ "required": true, "message": '用途', "trigger": 'blur' },
],
"ctls":[
{"type":"select","dicKey":"usageType","prop":"usageType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"媒体类型",
"validProp":"mediaType",
"rule": [
{ "required": true, "message": '媒体类型', "trigger": 'blur' },
],
"ctls":[
{"type":"select","dicKey":"mediaType","prop":"mediaType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"标题",
"ctls":[
{"type":"input","label":"标题","prop":"title","disabled":false,"placeHolder":"请输入标题","style":""},
]
},
{
"title":"标题缩略图",
"ctls":[
{"type":"upload","label":"标题缩略图","prop":"listimg","placeHolder":"请输入标题","style":""},
]
},
{
"title":"视频",
"ctls":[
{"type":"upload","label":"视频","prop":"videourl","placeHolder":"请输入标题","style":""},
]
},
{
"title":"概要",
"ctls":[
{"type":"textarea","label":"概要","prop":"desc","placeHolder":"请输入概要","style":""},
]
},
{
"title":"文章内容",
"ctls":[
{"type":"html","label":"标题","prop":"content","height":"500px","disabled":false,"placeHolder":"请输入标题","style":""},
]
},
],
"search":[
{
"title":"频道",
ctls:[
{"type":"select","refModel":"newschannel","isMulti":false,"label":"频道","prop":"newschannel_id","labelField":"title","valueField":"id","style":""},
]
},
{
"title":"标题",
ctls:[
{"type":"input","label":"标题","prop":"title","placeHolder":"请输入标题","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"220","label":"代理号","prop":"proxyCode","isShowTip":true,"isTmpl":false},
{"width":"300","label":"软件全称","prop":"softwareName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"版本号","prop":"softwareVersion","isShowTip":true,"isTmpl":false},
{"width":"100","label":"发表状态","prop":"isPublish","isShowTip":true,"isTmpl":false},
{"width":"110","label":"进展状态","prop":"statusProgressName","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"代理号",
ctls:[
{"type":"input","label":"代理号","prop":"proxyCode","placeHolder":"代理号","style":""},
]
},
{
"title":"软件全称",
ctls:[
{"type":"input","label":"软件全称","prop":"softwareName","placeHolder":"软件全称","style":""},
]
},
{
"title":"进展状态",
ctls:[
{"type":"select","dicKey":"statusProgress_status","prop":"statusProgress","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-cancel","title":"修改","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
\ No newline at end of file
module.exports={
"list":{
columnMetaData:[
{"width":"150","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"客户名称","prop":"customerContact","isShowTip":true,"isTmpl":false},
{"width":"150","label":"服务名称","prop":"itemName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"服务类型","prop":"itemType","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"服务类型",
ctls:[
{"type":"select","dicKey":"autoSubmitProductCata","prop":"itemType","labelField":"label","valueField":"value","style":""},
]
},
// {
// "title":"申请人",
// ctls:[
// {"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
// ]
// },
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"产品名称",
ctls:[
{"type":"input","label":"产品名称","prop":"itemName","placeHolder":"产品名称","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"订单取消","type":"default","key":"ordercancel","isInRow":true},
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
{"icon":"el-icon-cancel","title":"修改","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"去支付","type":"default","key":"topay","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
\ No newline at end of file
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"190","label":"渠道订单号","prop":"channelOrderNum","isShowTip":true,"isTmpl":false},
{"width":"190","label":"代理号","prop":"proxyCode","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"商标号","prop":"tmRegistNum","isShowTip":true,"isTmpl":false},
{"width":"100","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"商标类型","prop":"tmFormTypeName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"大类","prop":"nclOneCodes","isShowTip":true,"isTmpl":false},
{"width":"110","label":"状态","prop":"tmStatusName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"渠道订单号",
ctls:[
{"type":"input","label":"渠道订单号","prop":"channelOrderNum","placeHolder":"渠道订单号","style":""},
]
},
{
"title":"代理号",
ctls:[
{"type":"input","label":"代理号","prop":"proxyCode","placeHolder":"代理号","style":""},
]
},
{
"title":"商标号",
ctls:[
{"type":"input","label":"商标号","prop":"tmRegistNum","placeHolder":"商标号","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"商标状态",
ctls:[
{"type":"select","dicKey":"tm_submit_status","prop":"tmStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"tool-upload","title":"上传回执","type":"default","key":"tmhzuploadlist","isOnGrid":true},
{"icon":"tool-look1","title":"查看回执","type":"default","key":"tmhzlook","isOnGrid":true},
{"icon":"el-icon-cancel","title":"营业执照","type":"default","key":"yyzz","isInRow":true},
{"icon":"el-icon-cancel","title":"商标图样","type":"default","key":"sbty","isInRow":true},
{"icon":"el-icon-cancel","title":"委托书","type":"default","key":"wts","isInRow":true},
{"icon":"el-icon-cancel","title":"身份证明","type":"default","key":"sfz","isInRow":true},
{"icon":"el-icon-cancel","title":"修改","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
\ No newline at end of file
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"190","label":"代理号","prop":"proxyCode","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"商标号","prop":"tmRegistNum","isShowTip":true,"isTmpl":false},
{"width":"100","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"商标类型","prop":"tmFormTypeName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"大类","prop":"nclOneCodes","isShowTip":true,"isTmpl":false},
{"width":"110","label":"状态","prop":"tmStatusName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"代理号",
ctls:[
{"type":"input","label":"代理号","prop":"proxyCode","placeHolder":"代理号","style":""},
]
},
{
"title":"商标号",
ctls:[
{"type":"input","label":"商标号","prop":"tmRegistNum","placeHolder":"商标号","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"商标状态",
ctls:[
{"type":"select","dicKey":"tm_submit_status","prop":"tmStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"tool-upload","title":"上传回执","type":"default","key":"tmhzuploadlist","isOnGrid":true},
{"icon":"tool-look1","title":"查看回执","type":"default","key":"tmhzlook","isOnGrid":true},
{"icon":"el-icon-cancel","title":"营业执照","type":"default","key":"yyzz","isInRow":true},
{"icon":"el-icon-cancel","title":"商标图样","type":"default","key":"sbty","isInRow":true},
{"icon":"el-icon-cancel","title":"委托书","type":"default","key":"wts","isInRow":true},
{"icon":"el-icon-cancel","title":"身份证明","type":"default","key":"sfz","isInRow":true},
{"icon":"el-icon-cancel","title":"修改","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
\ No newline at end of file
module.exports={
"list":{
columnMetaData:[
// {"width":"150","label":"渠道名称","prop":"channelName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"渠道编码","prop":"channelCode","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"商机类型","prop":"chanceTypeName","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"服务编码","prop":"serviceItem_code","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"服务名称","prop":"serviceItem_name","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"负责人","prop":"user.userName","isShowTip":false,"isTmpl":false,},
{"width":"200","label":"负责人手机","prop":"mobile","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"发布者姓名","prop":"publisherName","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"发布人手机","prop":"publisherMobile","isShowTip":false,"isTmpl":false,},
{"width":"200","label":"发布人备注","prop":"publisherNotes","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"状态","prop":"statusName","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"分配时间","prop":"created_at","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"操作时间","prop":"updated_at","isShowTip":false,"isTmpl":false,},
]
},
"form":[
],
"search":[
{
"title":"负责人手机",
ctls:[
{"type":"input","label":"负责人手机","prop":"mobile","placeHolder":"请输入负责人手机","style":""},
]
},
{
"title":"渠道",
"rule": [
{ "required": true, "message": '请选择渠道', "trigger": 'blur' },
],
ctls:[
{"type":"select","refModel":"channel","isMulti":false,"label":"渠道","prop":"channelCode","labelField":"channelName","valueField":"channelCode","style":""},
]
},
{
"title":"商机类型",
ctls:[
{"type":"select","dicKey":"chanceType","prop":"chanceType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"状态",
ctls:[
{"type":"select","dicKey":"businessallowstatus","prop":"status","labelField":"label","valueField":"value","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
// {"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true},
],
"edit":[
// {"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
// {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
// {"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"businesschance",
"list":{
columnMetaData:[
{"width":"100","label":"发布者姓名","prop":"publisherName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"发布者手机号","prop":"publisherMobile","isShowTip":true,"isTmpl":false},
{"width":"150","label":"发布者所在省份","prop":"province","isShowTip":true,"isTmpl":false},
{"width":"150","label":"发布者所在城市","prop":"city","isShowTip":true,"isTmpl":false},
{"width":"100","label":"需求类型","prop":"chanceTypeName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"产品名称","prop":"serviceItem_name","isShowTip":true,"isTmpl":false},
{"width":"100","label":"渠道编码","prop":"channelCode","isShowTip":true,"isTmpl":false},
{"width":"100","label":"状态","prop":"chanceStatusName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"发布时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
],
"search":[
{
"title":"状态",
ctls:[
{"type":"select","dicKey":"chance_status","prop":"chanceStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"需求类型",
ctls:[
{"type":"select","dicKey":"chanceType","prop":"chanceType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"渠道编码",
ctls:[
{"type":"input","label":"渠道编码","prop":"channelCode","placeHolder":"请输入渠道编码","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
// {"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
// {"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
// {"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
// {"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"300","label":"企业名称","prop":"companyName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"申请号","prop":"regNum","isShowTip":true,"isTmpl":false},
{"width":"200","label":"不予受理时间","prop":"noAcceptDay","isShowTip":true,"isTmpl":false},
{"width":"200","label":"不予受理期号","prop":"noAccepyIssue","isShowTip":true,"isTmpl":false},
{"width":"200","label":"不予受理页码","prop":"noAcceptPageNum","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
{
"title":"企业名称",
ctls:[
{"type":"input","label":"企业名称","prop":"companyName","placeHolder":"企业名称","style":""},
]
},
{
"title":"所在地址",
ctls:[
{"type":"input","label":"所在地址","prop":"companyAddr","placeHolder":"所在地址","style":""},
]
},
{
"title":"联系方式",
ctls:[
{"type":"input","label":"联系方式","prop":"phone","placeHolder":"联系方式","style":""},
]
},
{
"title":"邮箱",
ctls:[
{"type":"input","label":"邮箱","prop":"email","placeHolder":"邮箱","style":""},
]
},
],
"search":[
{
"title":"企业名称",
ctls:[
{"type":"input","label":"企业名称","prop":"companyName","placeHolder":"企业名称","style":""},
]
},
],
"auth":{
"add":[
],
"edit":[
],
"delete":[
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"detail","isInRow":true},
{"icon":"el-icon-cancel","title":"关闭","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"cachearches",
"list":{
columnMetaData:[
{"width":"300","label":"缓存键","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"300","label":"缓存说明","prop":"val","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
],
"search":[
{
"title":"键名称",
ctls:[
{"type":"input","label":"键名称","prop":"name","placeHolder":"键名称","style":""},
]
},
],
"auth":{
"add":[
],
"edit":[
{"icon":"el-icon-edit","title":"清空所有缓存","type":"default","key":"clearAll","isOnGrid":true},
{"icon":"el-icon-edit","title":"使失效","type":"default","key":"invalidate","isInRow":true},
],
"delete":[
],
"common":[
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"190","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"100","label":"状态","prop":"status","isShowTip":true,"isTmpl":false},
{"width":"150","label":"来源类型","prop":"calcTypeName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"商标申请人",
ctls:[
{"type":"input","label":"商标申请人","prop":"applyName","placeHolder":"商标申请人","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
},
{
"title":"联系人",
ctls:[
{"type":"input","label":"联系人","prop":"customerContact","placeHolder":"联系人","style":""},
]
},
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"提报单状态",
ctls:[
{"type":"select","dicKey":"ncl_calc_status","prop":"status","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"tool-add","title":"新增","type":"default","key":"mynew","isOnGrid":true},
{"icon":"tool-copy1","title":"复制","type":"default","key":"copy","isOnGrid":true},
{"icon":"tool-Order1","title":"生成订单","type":"default","key":"makeOrder","isOnGrid":true},
{"icon":"el-icon-arrow-up","title":"挂接订单","type":"default","key":"hookorder","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
{"icon":"el-icon-plus","title":"生成委托书","type":"default","key":"createWTS","isInRow":true},
{"icon":"el-icon-cancel","title":"下载委托书","type":"default","key":"downloadWTS","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"detail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"200","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"300","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"250","label":"商标名称","prop":"tmName","isShowTip":true,"isTmpl":false},
]
},
"form":[
],
"search":[
{
"title":"商标申请人",
ctls:[
{"type":"input","label":"商标申请人","prop":"applyName","placeHolder":"商标申请人","style":""},
]
},
{
"title":"商标名称",
ctls:[
{"type":"input","label":"商标名称","prop":"tmName","placeHolder":"商标名称","style":""},
]
}
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"生成订单","type":"default","key":"createorder","isOnGrid":true},
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"150","label":"渠道名称","prop":"channel.channelName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"渠道编码","prop":"channelCode","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"商机类型","prop":"chanceTypeName","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"负责人","prop":"businessOwner","isShowTip":false,"isTmpl":false,},
{"width":"200","label":"负责人手机","prop":"mobile","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"启用状态","prop":"isEnabled","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"分配权重","prop":"weight","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"是否接单","prop":"isOrderReceiving","isShowTip":false,"isTmpl":false,},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
{
"title":"渠道",
"rule": [
{ "required": true, "message": '请选择渠道', "trigger": 'blur' },
],
ctls:[
{"type":"select","refModel":"channel","isMulti":false,"label":"渠道","prop":"channel_id","labelField":"channelName","valueField":"id","style":""},
]
},
{
"title":"是否启用",
"ctls":[
{"type":"switch","prop":"isEnabled","acText":"启用","inactText":"不启用","placeHolder":" ","style":""},
]
},
{
"title":"是否接单",
"ctls":[
{"type":"switch","prop":"isOrderReceiving","acText":"接单","inactText":"不接单","placeHolder":" ","style":""},
]
},
{
"title":"商机类型",
"validProp":"chanceType",
"rule": [
{ "required": true, "message": '商机类型', "trigger": 'blur' },
],
"ctls":[
{"type":"select","dicKey":"chanceType","prop":"chanceType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"通知类型",
"validProp":"noticeType",
"rule": [
{ "required": true, "message": '通知类型', "trigger": 'blur' },
],
"ctls":[
{"type":"select","dicKey":"noticeType","prop":"noticeType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"负责人电话",
"validProp":"mobile",
"rule": [
{ "required": true, "message": '请输入负责人电话', "trigger": 'blur' },
{ "validator":"validatex","trigger": 'blur' },
],
"ctls":[
{"type":"input","label":"负责人电话","prop":"mobile","placeHolder":"请输入负责人电话","style":""},
]
},
{
"title":"领导手机",
"validProp":"leaderMobile",
"rule": [
{ "required": true, "message": '请输入领导手机', "trigger": 'blur' },
{ "validator":"validatex","trigger": 'blur' },
],
"ctls":[
{"type":"input","label":"领导手机","prop":"leaderMobile","placeHolder":"请输入领导手机","style":""},
]
},
],
"search":[
{
"title":"渠道",
ctls:[
{"type":"select","refModel":"channel","isMulti":false,"label":"渠道","prop":"channel_id","labelField":"channelName","valueField":"id","style":""},
]
},
{
"title":"负责人",
ctls:[
{"type":"input","label":"负责人","prop":"businessOwner","placeHolder":"请输入负责人姓名","style":""},
]
},
{
"title":"负责人手机",
ctls:[
{"type":"input","label":"负责人手机","prop":"mobile","placeHolder":"请输入负责人手机","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"100","label":"渠道名称","prop":"channelName","isShowTip":true,"isTmpl":false},
{"width":"100","label":"渠道编码","prop":"channelCode","isShowTip":false,"isTmpl":false,},
{"width":"100","label":"APPKEY","prop":"wxAppId","isShowTip":true,"isTmpl":false},
{"width":"150","label":"渠道分成模式","prop":"profitType","isShowTip":true,"isTmpl":false},
{"width":"200","label":"渠道分成","prop":"everySingleProfit","isShowTip":true,"isTmpl":false},
{"width":"100","label":"角色","prop":"Roles","isShowTip":true,"isTmpl":false},
{"width":"200","label":"是否发布","prop":"isPubed","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
{
"title":"次续",
ctls:[
{"type":"number","prop":"sort","placeHolder":"请输入(整数数字)","style":""},
]
},
{
"title":"渠道名称",
ctls:[
{"type":"input","label":"渠道名称","prop":"channelName","placeHolder":"渠道名称","style":""},
]
},
{
"title":"渠道编码",
ctls:[
{"type":"input","label":"渠道编码","prop":"channelCode","placeHolder":"渠道编码","style":""},
]
},
{
"title":"APPKEY",
ctls:[
{"type":"input","label":"项目操作码","prop":"wxAppId","placeHolder":"项目操作码","style":""},
]
},
{
"title":"",
ctls:[
{"type":"switch","prop":"moreShop","acText":"支持多店","inactText":"否","placeHolder":"请输入单次使用消耗的宝币数","style":""},
]
},
{
"title":"",
ctls:[
{"type":"switch","prop":"isEnabled","acText":"分享时是否渠道店铺名称","inactText":"否","placeHolder":"请输入单次使用消耗的宝币数","style":""},
]
},
{
"title":"渠道店铺名称",
ctls:[
{"type":"input","label":"渠道店铺名称","prop":"channelShopName","placeHolder":"渠道店铺名称","style":""},
]
},
{
"title":"渠道分成模式",
ctls:[
{"type":"select","dicKey":"channelProfitType","prop":"profitType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"渠道分成(率/元)",
ctls:[
{"type":"input","label":"渠道分成","prop":"everySingleProfit","placeHolder":"渠道分成","style":""},
]
},
{
"title":"角色",
ctls:[
{"type":"select","refModel":"role","isMulti":true,"label":"角色","prop":"roles","labelField":"name","valueField":"id","style":""},
]
},
{
"title":"",
ctls:[
{"type":"switch","prop":"isPubed","acText":"发布","inactText":"关闭","placeHolder":"","style":""},
]
},
{
"title":"渠道图标",
ctls:[
{"type":"upload","label":"渠道图标","prop":"icon","placeHolder":"渠道图标","style":""},
]
},
{
"title":"图标链接",
"ctls":[
{"type":"input","label":"渠道链接","prop":"iconLink","placeHolder":"渠道链接","style":""},
]
},
],
"search":[
{
"title":"渠道名称",
ctls:[
{"type":"input","label":"渠道名称","prop":"channelName","placeHolder":"请输入渠道名称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
{"icon":"el-icon-edit","title":"停用","type":"default","key":"stopUser","isInRow":true,"boolProp":"isEnabled","falseText":"启用"},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"article",
"list":{
columnMetaData:[
{"width":"","label":"","prop":"code","isShowTip":true,"pos":"left","isTmpl":true,"isOther":true},
]
},
"form":[
{
"title":"编码",
"validProp":"code",
"rule": [
{ "required": true, "message": '请输入编码', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"编码","prop":"code","placeHolder":"请输入编码","style":""},
]
},
{
"title":"频道",
ctls:[
{"type":"select","refModel":"newschannel","isMulti":false,"label":"频道","prop":"newschannel_id","labelField":"title","valueField":"id","style":""},
]
},
{
"title":"标题",
"ctls":[
{"type":"input","label":"标题","prop":"title","disabled":false,"placeHolder":"请输入标题","style":""},
]
},
{
"title":"标题缩略图",
"ctls":[
{"type":"upload","label":"标题缩略图","prop":"listimg","placeHolder":"请输入标题","style":""},
]
},
{
"title":"概要",
"ctls":[
{"type":"textarea","label":"概要","prop":"desc","placeHolder":"请输入概要","style":""},
]
},
{
"title":"文章内容",
"ctls":[
{"type":"html","label":"标题","prop":"content","height":"500px","disabled":false,"placeHolder":"请输入标题","style":""},
]
},
],
"search":[
{
"title":"频道",
ctls:[
{"type":"select","refModel":"newschannel","isMulti":false,"label":"频道","prop":"newschannel_id","labelField":"title","valueField":"id","style":""},
]
},
{
"title":"标题",
ctls:[
{"type":"input","label":"标题","prop":"title","placeHolder":"请输入标题","style":""},
]
},
],
"auth":{
"add":[
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
module.exports={
"bizName":"codes",
"list":{
columnMetaData:[
{"width":"100","label":"代码名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"代码地址","prop":"gitaddress","isShowTip":true,"isTmpl":false},
{"width":"200","label":"版本号","prop":"versions_num","isShowTip":true,"isTmpl":false},
{"width":"200","label":"镜像库地址","prop":"docker_repo_addr","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"代码名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入代码名称', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"代码名称","prop":"name","placeHolder":"代码名称","style":""},
]
},
{
"title":"代码地址",
"ctls":[
{"type":"input","label":"代码地址","prop":"gitaddress","disabled":false,"placeHolder":"","style":""},
]
},
{
"title":"版本号",
"ctls":[
{"type":"input","label":"版本号","prop":"versions_num","disabled":false,"placeHolder":"","style":""},
]
},
{
"title":"镜像库地址",
"ctls":[
{"type":"input","label":"镜像库地址","prop":"docker_repo_addr","disabled":false,"placeHolder":"","style":""},
]
},
],
"search":[
{
"title":"代码名称",
ctls:[
{"type":"input","label":"代码名称","prop":"name","placeHolder":"代码名称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"创建镜像","type":"default","key":"createRepoAddr","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"containerarchs",
"list":{
columnMetaData:[
{"width":"100","label":"容器名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"100","label":"镜像名称","prop":"mirrorinfo.name","isShowTip":true,"isTmpl":false},
{"width":"100","label":"机器名称","prop":"machine.name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"容器状态","prop":"status","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"容器名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入容器名称', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"容器名称","prop":"name","placeHolder":"容器名称","style":""},
]
},
],
"search":[
{
"title":"容器名称",
ctls:[
{"type":"input","label":"容器名称","prop":"name","placeHolder":"应用名称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"delete":[
{"icon":"el-icon-edit","title":"停用","type":"default","key":"stopUser","isInRow":true,"boolProp":"status","falseText":"启用"},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"190","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请类型","prop":"applierTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"版权类型","prop":"copyrightTypeName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"版权进度","prop":"statusProgressName","isShowTip":true,"isTmpl":false},
{"width":"150","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"状态","prop":"statusName","isShowTip":true,"isTmpl":false},
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"版权类型",
ctls:[
{"type":"select","dicKey":"copyright_type","prop":"copyrightType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"版权进度",
ctls:[
{"type":"select","dicKey":"statusProgress_status","prop":"statusProgress","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"状态",
ctls:[
{"type":"select","dicKey":"ncl_calc_status","prop":"status","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
{"icon":"tool-add","title":"新增","type":"default","key":"mynew","isOnGrid":true},
{"icon":"tool-copy1","title":"复制","type":"default","key":"copy","isOnGrid":true},
{"icon":"tool-copy1","title":"关联订单","type":"default","key":"hookorder","isOnGrid":true},
{"icon":"tool-copy1","title":"审核","type":"default","key":"mycheck","isOnGrid":true},
{"icon":"tool-copy1","title":"撤销","type":"default","key":"myBack","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"申请表模板下载","type":"default","key":"doc1","isInRow":true},
{"icon":"el-icon-cancel","title":"返回","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"80","label":"订单号","prop":"orderNum","isShowTip":true,"isTmpl":false},
{"width":"150","label":"申请人","prop":"applyName","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单总额","prop":"totalSum","isShowTip":true,"isTmpl":false},
{"width":"80","label":"订单状态","prop":"orderStatusName","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":true},
]
},
"form":[
],
"search":[
{
"title":"订单号",
ctls:[
{"type":"input","label":"订单号","prop":"orderNum","placeHolder":"订单号","style":""},
]
},
{
"title":"申请人",
ctls:[
{"type":"input","label":"申请人","prop":"applyName","placeHolder":"申请人","style":""},
]
},
{
"title":"客户名称",
ctls:[
{"type":"input","label":"客户名称","prop":"customerContact","placeHolder":"客户名称","style":""},
]
},
{
"title":"客户电话",
ctls:[
{"type":"input","label":"客户电话","prop":"customerMobile","placeHolder":"客户电话","style":""},
]
},
{
"title":"产品名称",
ctls:[
{"type":"input","label":"产品名称","prop":"itemName","placeHolder":"产品名称","style":""},
]
},
{
"title":"订单状态",
ctls:[
{"type":"select","dicKey":"order_status","prop":"orderStatus","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"创建时间",
ctls:[
{"type":"datetimespan","label":"创建时间","prop":"created_at","placeHolder":"创建时间","style":""},
]
},
],
"auth":{
"add":[
// {"icon":"el-icon-plus","title":"下单","type":"default","key":"neworder","isOnGrid":true},
// {"icon":"el-icon-plus","title":"开始提报","type":"default","key":"tmsubmit","isInRow":true},
// {"icon":"el-icon-plus","title":"订单取消","type":"default","key":"ordercancel","isInRow":true}
],
"edit":[
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"mydelete","isInRow":true},
],
"common":[
// {"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"list":{
columnMetaData:[
{"width":"","label":"版权申报内容","prop":"code","isShowTip":true,"pos":"left","isTmpl":true,"isOther":true},
]
},
"form":[
],
"search":[
{
"title":"版权类型",
ctls:[
{"type":"select","dicKey":"copyright_type","prop":"copyrightType","labelField":"label","valueField":"value","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true}
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"myedit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"详情","type":"default","key":"mydetail","isInRow":true},
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"apps",
"list":{
columnMetaData:[
{"width":"200","label":"公司名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"发包方","prop":"nameA","isShowTip":true,"isTmpl":false},
{"width":"200","label":"是否启用","prop":"isEnabled","isShowTip":true,"isTmpl":false},
{"width":"200","label":"是否静默签","prop":"isQuiet","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"公司名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入应用名称', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"公司名称","prop":"name","placeHolder":"公司名称","style":""},
]
},
{
"title":"发包方",
"validProp":"nameA",
"rule": [
{ "required": true, "message": '请输入发包方', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"发包方","prop":"nameA","placeHolder":"发包方","style":""},
]
},
{
"title":"是否启用",
"ctls":[
{"type":"switch","prop":"isEnabled","acText":"启用","inactText":"不启用","placeHolder":" ","style":""},
]
},
{
"title":"推送地址",
"validProp":"posturl",
ctls:[
{"type":"input","label":"推送地址","prop":"posturl","placeHolder":"请输入推送地址","style":""},
]
},
{
"title":"加密key",
"validProp":"encryptkey",
ctls:[
{"type":"input","label":"加密key","prop":"encryptkey","placeHolder":"请输入加密key","style":""},
]
},
{
"title":"是否静默签",
"ctls":[
{"type":"switch","prop":"isQuiet","acText":"静默","inactText":"不静默","placeHolder":" ","style":""},
]
}
],
"search":[
{
"title":"公司名称",
ctls:[
{"type":"input","label":"公司名称","prop":"name","placeHolder":"公司名称","style":""},
]
}
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"apps",
"list":{
columnMetaData:[
{"width":"200","label":"合同名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"公司名称","prop":"ecompany.name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"模板名称","prop":"etemplate.name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"用户名称","prop":"user.userName","isShowTip":true,"isTmpl":false},
{"width":"200","label":"用户手机","prop":"user.mobile","isShowTip":true,"isTmpl":false},
{"width":"200","label":"签署id","prop":"eflowid","isShowTip":true,"isTmpl":false},
{"width":"200","label":"签署状态","prop":"eflowstatusname","isShowTip":true,"isTmpl":false},
{"width":"190","label":"创建时间","prop":"created_at","isShowTip":true,"isTmpl":false},
{"width":"190","label":"结束时间","prop":"completed_at","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"}
]
},
"form":[
{
"title":"合同名称",
ctls:[
{"type":"input","label":"合同名称","prop":"name","placeHolder":"公司名称","style":"","disabled":true},
]
}
],
"search":[
{
"title":"合同名称",
ctls:[
{"type":"input","label":"合同名称","prop":"name","placeHolder":"合同名称","style":""},
]
},
// {
// "title":"所属企业",
// ctls:[
// {"type":"select","refModel":"ecompany","isMulti":false,"label":"所属企业","prop":"`ecompany_id`","labelField":"name","valueField":"id","style":""},
// ]
// },
// {
// "title":"所属用户",
// ctls:[
// {"type":"select","refModel":"user","isMulti":false,"label":"所属用户","prop":"user_id","labelField":"userName","valueField":"id","style":""},
// ]
// },
{
"title":"合同状态",
ctls:[
{"type":"select","dicKey":"eflowstatus","prop":"eflowstatus","labelField":"label","valueField":"value","style":""},
]
}
],
"auth":{
"add":[
],
"edit":[
],
"delete":[
],
"common":[
],
}
}
module.exports={
"bizName":"apps",
"list":{
columnMetaData:[
{"width":"100","label":"模板名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"所属企业","prop":"ecompany.name","isShowTip":true,"isTmpl":false},
{"width":"200","label":"是否启用","prop":"isEnabled","isShowTip":true,"isTmpl":false},
{"width":"200","label":"e签宝模板key","prop":"filekey","isShowTip":true,"isTmpl":false},
{"width":"50","label":"","prop":"other","isShowTip":true,"pos":"left","isTmpl":true,isOther:true,"type":"expand"},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"模板名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入模板名称', "trigger": 'blur' },
],
ctls:[
{"type":"input","label":"模板名称","prop":"name","placeHolder":"模板名称","style":""},
]
},
{
"title":"所属企业",
"rule": [
{ "required": true, "message": '请选择所属企业', "trigger": 'blur' },
],
ctls:[
{"type":"select","refModel":"ecompany","isMulti":false,"label":"所属企业","placeHolder":"请输入关键字查询","prop":"ecompany_id","labelField":"name","valueField":"id","style":"","autoComplete":"true","isFilter":"true"},
]
},
{
"title":"是否启用",
"ctls":[
{"type":"switch","prop":"isEnabled","acText":"启用","inactText":"不启用","placeHolder":" ","style":""},
]
},
{
"title":"模板文件",
"validProp":"filepath",
"rule": [
{ "required": true, "message": '请上传模板', "trigger": 'blur' },
],
ctls:[
{"type":"upload","label":"模板文件","prop":"filepath","placeHolder":"模板文件","style":""},
]
},
{
"title":"模板占位信息",
"ctls":[
{"type":"textarea","label":"模板占位信息","prop":"placeholderkey","placeHolder":"模板占位信息","style":""},
]
},
{
"title":"e签宝模板key",
ctls:[
{"type":"input","label":"模板名称","prop":"filekey","placeHolder":"模板名称","style":"","disabled":true},
]
}
],
"search":[
{
"title":"模板名称",
ctls:[
{"type":"input","label":"模板名称","prop":"name","placeHolder":"模板名称","style":""},
]
},
{
"title":"所属企业",
ctls:[
{"type":"select","refModel":"ecompany","isMulti":false,"label":"项目渠道","prop":"ecompany_id","labelField":"name","valueField":"id","style":""},
]
}
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"mysave","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
module.exports={
"bizName":"formtomail",
"list":{
columnMetaData:[
{"width":"200","label":"项目操作码","prop":"code","isShowTip":true,"isTmpl":false},
{"width":"200","label":"材料类型","prop":"typename","isShowTip":true,"isTmpl":false},
{"width":"200","label":"材料名称","prop":"name","isShowTip":true,"isTmpl":false},
{"width":"null","label":"操作","name":"null","isShowTip":false,"isTmpl":true,"isBtns":"true"},
]
},
"form":[
{
"title":"编码",
"validProp":"code",
"rule": [
{ "required": true, "message": '请输入编码', "trigger": 'blur' },
],
"ctls":[
{"type":"input","label":"项目操作码","prop":"code","placeHolder":"请输入编码","style":""},
]
},
{
"title":"材料类型",
"validProp":"fileType",
"rule": [
{ "required": true, "message": '请选择类型', "trigger": 'blur' },
],
"ctls":[
{"type":"select","dicKey":"productCata","prop":"fileType","labelField":"label","valueField":"value","style":""},
]
},
{
"title":"附件名称",
"validProp":"name",
"rule": [
{ "required": true, "message": '请输入附件名称', "trigger": 'blur' },
],
"ctls":[
{"type":"input","label":"项目操作码","prop":"name","placeHolder":"请输入附件名称","style":""},
]
},
{
"title":"文件路径",
"ctls":[
{"type":"upload","label":"文件路径","prop":"filepath","placeHolder":"请输入文件附件路径","style":""},
]
},
],
"search":[
{
"title":"项目名称",
ctls:[
{"type":"input","label":"项目名称","prop":"name","placeHolder":"请输入项目名称","style":""},
]
},
],
"auth":{
"add":[
{"icon":"el-icon-plus","title":"新增","type":"default","key":"new","isOnGrid":true},
{"icon":"el-icon-save","title":"保存","type":"default","key":"save","isOnForm":true},
],
"edit":[
{"icon":"el-icon-edit","title":"修改","type":"default","key":"edit","isInRow":true},
],
"delete":[
{"icon":"el-icon-remove","title":"删除","type":"default","key":"delete","isInRow":true},
],
"common":[
{"icon":"el-icon-cancel","title":"取消","type":"default","key":"cancel","isOnForm":true},
],
}
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
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