Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
b7e9167a
Commit
b7e9167a
authored
Aug 11, 2020
by
linboxuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
diagnosis add
parent
68b97fca
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
53 additions
and
1 deletions
+53
-1
center-order/app/base/db/metadata/apps/platform.js
+3
-1
center-order/app/base/db/models/dbneed/diagnosisneedinfo.js
+50
-0
No files found.
center-order/app/base/db/metadata/apps/platform.js
View file @
b7e9167a
...
...
@@ -74,7 +74,8 @@ module.exports = {
"policy_type"
:
{
'fzbt'
:
'租金减免'
,
'jrdk'
:
'金融贷款'
,
'zdfc'
:
'行政措施'
,
'ssjm'
:
'税收优惠'
,
'rlzy'
:
'人力资源'
},
"customer_intention"
:
{
"dgj"
:
"待跟进"
,
"yyx"
:
"有意向"
,
"wyx"
:
"无意向"
},
"solution_status"
:
{
"dqr"
:
"待确认"
,
"ybh"
:
"用户驳回"
,
"ywc"
:
"已完成"
,
"yzf"
:
"已作废"
},
// 2020 0811 lin 新增 资质诊断 诊断单枚举
"corporate_type"
:
{
"qjd"
:
"旗舰店"
,
"zmd"
:
"专卖店"
}
},
}
}
\ No newline at end of file
center-order/app/base/db/models/dbneed/diagnosisneedinfo.js
0 → 100644
View file @
b7e9167a
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"needinfo"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
channelUserId
:
DataTypes
.
STRING
(
128
),
//渠道用户唯一码
diagnosisNo
:
DataTypes
.
STRING
(
128
),
//诊断单号/申请编号
corporateNname
:
DataTypes
.
INTEGER
,
//公司名称
publishName
:
DataTypes
.
STRING
,
//联系人名字
publishMobile
:
DataTypes
.
STRING
(
50
),
//联系人手机号
corporateType
:
DataTypes
.
STRING
,
//店铺类型 电商诊断:qjd/zmd/zyd,直播诊断:qy/gtgsh/mbfqy/flfw
corporateTypeName
:
DataTypes
.
STRING
,
//店铺类型名字 电商诊断:旗舰店/专卖店/专营店,直播诊断:企业/个体工商户/民办非企业/法律服务 --暂不用
diagnosisType
:
DataTypes
.
INTEGER
,
//诊断类型 zb/ds
diagnosisTypeName
:
DataTypes
.
STRING
,
//诊断类型名字 直播/电商 --暂不用
diagnosisMode
:
DataTypes
.
STRING
,
//诊断方式 zn/rg
diagnosisModeName
:
DataTypes
.
STRING
(
50
),
//诊断方式名字 智能评估/人工评估 --暂不用'
diagnosisResult
:
DataTypes
.
STRING
,
//诊断结果 tg/wtg/rgshz
diagnosisResultName
:
DataTypes
.
STRING
,
//诊断结果名字 通过/未通过/人工审核中 --暂不用
status
:
DataTypes
.
STRING
,
//状态 后台用 dcl/gtz/dqrfa/ygb/ywc
statusName
:
DataTypes
.
STRING
,
//状态 dcl/gtz/dqrfa/ygb/ywc
qualificationsPic
:
DataTypes
.
JSON
,
// 基础资质json {}
brandPic
:
DataTypes
.
JSON
,
// 品牌资质json {}
industryPic
:
DataTypes
.
JSON
,
// 行业资质json {}
notes
:
DataTypes
.
STRING
,
//备注
status
:
{
//wts未推送,yts已推送,ygj已跟进,ycd已成单
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
push_chance_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"status"
,
val
);
this
.
setDataValue
(
"statusName"
,
uiconfig
.
config
.
pdict
.
push_chance_type
[
val
]);
}
},
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
true
,
freezeTableName
:
true
,
//freezeTableName: true,
// define the table's name
tableName
:
'n_zzzd_need_info'
,
validate
:
{
},
indexes
:
[
]
});
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment