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
caebeb8a
Commit
caebeb8a
authored
Mar 12, 2020
by
宋毅
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tj
parent
054c362c
Show whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
38 additions
and
37 deletions
+38
-37
center-order/app/base/db/models/dbcorder/flowlog.js
+1
-1
center-order/app/base/db/models/dbcorder/ordercontacts.js
+1
-1
center-order/app/base/db/models/dbcorder/orderinfo.js
+5
-4
center-order/app/base/db/models/dbcorder/orderproduct.js
+1
-1
center-order/app/base/db/models/dbcpay/expensevoucher.js
+1
-1
center-order/app/base/db/models/dbcpay/moneyjourney.js
+1
-1
center-order/app/base/db/models/dbcpay/orderreceiptvoucher.js
+1
-1
center-order/app/base/db/models/dbcpay/orderrefundvoucher.js
+1
-1
center-order/app/base/db/models/dbneed/needinfo.js
+26
-26
No files found.
center-order/app/base/db/models/dbcorder/flowlog.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"flowlog"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
// 来源单号
opContent
:
DataTypes
.
STRING
(
1024
),
// 操作描述
notes
:
DataTypes
.
STRING
,
// 备注
isShow
:
{
//是否显示
...
...
center-order/app/base/db/models/dbcorder/ordercontacts.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"ordercontacts"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
//来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
//来源单号
contactName
:
DataTypes
.
STRING
(
1000
),
// 联系人
mobile
:
DataTypes
.
STRING
(
20
),
//
email
:
DataTypes
.
STRING
(
50
),
//
...
...
center-order/app/base/db/models/dbcorder/orderinfo.js
View file @
caebeb8a
...
...
@@ -4,10 +4,11 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"orderinfo"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
orderNo
:
DataTypes
.
STRING
(
64
),
// 订单号
channelServiceNo
:
DataTypes
.
STRING
(
64
),
// 渠道服务单号
channelOrderNo
:
DataTypes
.
STRING
(
1024
),
// 渠道订单号列表,多个以,隔开
needNo
:
DataTypes
.
STRING
(
64
),
//需求号--用于服务商或需求表中创建订单
orderNo
:
DataTypes
.
STRING
(
128
),
// 订单号
channelServiceNo
:
DataTypes
.
STRING
(
128
),
// 渠道服务单号
channelOrderNo
:
DataTypes
.
STRING
(
128
),
// 渠道订单号(页面中列表中显示该单号)
channelNeedNo
:
DataTypes
.
STRING
(
128
),
//渠道需求号(页面中列表中显示该需求号)
needNo
:
DataTypes
.
STRING
(
128
),
//需求号--用于服务商或需求表中创建订单
channelUserId
:
DataTypes
.
STRING
(
64
),
// 渠道用户ID
ownerUserId
:
DataTypes
.
STRING
(
20
),
// 拥有渠道用户ID
payTime
:
DataTypes
.
DATE
,
// 渠道有支付时间则用渠道的支付时间
...
...
center-order/app/base/db/models/dbcorder/orderproduct.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"orderproduct"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
//来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
//来源单号
productType_id
:
DataTypes
.
INTEGER
,
//产品类型Id
pathCode
:
DataTypes
.
STRING
(
512
),
//产品类型编码路径,如:1/2
itemCode
:
DataTypes
.
STRING
(
64
),
//产品编码
...
...
center-order/app/base/db/models/dbcpay/expensevoucher.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
//费用单:
return
db
.
define
(
"expensevoucher"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
// 来源单号
expenseTypeName
:
DataTypes
.
STRING
,
expenseType
:
{
//收款类型,gf: 官费, tax: 税金, channelSettleProfit: 订单渠道分润结算
type
:
DataTypes
.
ENUM
,
...
...
center-order/app/base/db/models/dbcpay/moneyjourney.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"moneyjourney"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
// 来源单号
channelUserId
:
DataTypes
.
STRING
(
64
),
// 渠道用户ID
ownerUserId
:
DataTypes
.
STRING
(
20
),
// 拥有渠道用户ID
accountType
:
{
...
...
center-order/app/base/db/models/dbcpay/orderreceiptvoucher.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"orderreceiptvoucher"
,
{
//收款单:
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
// 来源单号
accountType
:
{
//帐户类型( 支付类型):"cash": "现金", "bank": "银行" ,"wx":"微信","alipay":"支付宝","other":"其它"
type
:
DataTypes
.
ENUM
,
...
...
center-order/app/base/db/models/dbcpay/orderrefundvoucher.js
View file @
caebeb8a
...
...
@@ -4,7 +4,7 @@ const uiconfig = system.getUiConfig2(settings.appKey);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"orderrefundvoucher"
,
{
//退款单:
uapp_id
:
DataTypes
.
INTEGER
,
//
sourceOrderNo
:
DataTypes
.
STRING
(
64
),
// 来源单号
sourceOrderNo
:
DataTypes
.
STRING
(
128
),
// 来源单号
busPayOrderCode
:
DataTypes
.
STRING
(
100
),
//业务支付订单号
accountType
:
{
//帐户类型( 支付类型):"cash": "现金", "bank": "银行" ,"wx":"微信","alipay":"支付宝","other":"其它"
...
...
center-order/app/base/db/models/dbneed/needinfo.js
View file @
caebeb8a
...
...
@@ -3,35 +3,35 @@ const settings = require("../../../../config/settings");
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"needinfo"
,
{
uapp_id
:
DataTypes
.
INTEGER
,
needNo
:
DataTypes
.
STRING
(
64
),
channelUserId
:
DataTypes
.
INTEGER
,
//发布者id
publisherName
:
DataTypes
.
STRING
,
//发布者姓名
publisher
OnlyCode
:
DataTypes
.
STRING
(
50
),
//发布者唯一码
publish
Content
:
DataTypes
.
STRING
,
//发布内容
publish
Mobile
:
DataTypes
.
STRING
,
//发布者手机号
followManUserId
:
DataTypes
.
INTEGER
,
//跟进人id
followMan
Name
:
DataTypes
.
STRING
,
//跟进人姓名
followMan
Mobile
:
DataTypes
.
STRING
,
//跟进人手机号(合伙人)
followMan
OnlyCode
:
DataTypes
.
STRING
(
50
),
//跟进者唯一码
follow
Content
:
DataTypes
.
STRING
,
//跟进内容
chanceType_code
:
DataTypes
.
STRING
,
// 商机类型
productOneType_id
:
DataTypes
.
STRING
,
//产品大类Id
productType_id
:
DataTypes
.
STRING
,
//产品类型Id
notes
:
DataTypes
.
STRING
,
//备注
disposeNotes
:
DataTypes
.
STRING
,
//处理的备注
status
:{
uapp_id
:
DataTypes
.
INTEGER
,
channelNeedNo
:
DataTypes
.
STRING
(
128
),
//渠道需求号(页面中列表中显示该需求号)
needNo
:
DataTypes
.
STRING
(
128
),
//需求号--用于服务商或需求表中创建订单
channelUserId
:
DataTypes
.
INTEGER
,
//发布者id
publisher
Name
:
DataTypes
.
STRING
,
//发布者姓名
publish
erOnlyCode
:
DataTypes
.
STRING
(
50
),
//发布者唯一码
publish
Content
:
DataTypes
.
STRING
,
//发布内容
publishMobile
:
DataTypes
.
STRING
,
//发布者手机号
followMan
UserId
:
DataTypes
.
INTEGER
,
//跟进人id
followMan
Name
:
DataTypes
.
STRING
,
//跟进人姓名
followMan
Mobile
:
DataTypes
.
STRING
,
//跟进人手机号(合伙人)
follow
ManOnlyCode
:
DataTypes
.
STRING
(
50
),
//跟进者唯一码
followContent
:
DataTypes
.
STRING
,
//跟进内容
productOneType_id
:
DataTypes
.
STRING
,
//产品大类Id
productType_id
:
DataTypes
.
STRING
,
//产品类型Id
notes
:
DataTypes
.
STRING
,
//备注
disposeNotes
:
DataTypes
.
STRING
,
//处理的备注
status
:
{
//wts未推送,yts已推送,ygj已跟进,ycd已成单
type
:
DataTypes
.
ENUM
,
type
:
DataTypes
.
ENUM
,
values
:
Object
.
keys
(
uiconfig
.
config
.
pdict
.
push_chance_type
),
set
:
function
(
val
)
{
this
.
setDataValue
(
"chanceType"
,
val
);
this
.
setDataValue
(
"chanceTypeName"
,
uiconfig
.
config
.
pdict
.
push_chance_type
[
val
]);
set
:
function
(
val
)
{
this
.
setDataValue
(
"chanceType"
,
val
);
this
.
setDataValue
(
"chanceTypeName"
,
uiconfig
.
config
.
pdict
.
push_chance_type
[
val
]);
}
},
city
:
DataTypes
.
STRING
(
50
),
// 城市
province
:
DataTypes
.
STRING
(
50
),
// 省份
},{
city
:
DataTypes
.
STRING
(
50
),
// 城市
province
:
DataTypes
.
STRING
(
50
),
// 省份
},
{
paranoid
:
true
,
//假的删除
underscored
:
true
,
version
:
true
,
...
...
@@ -42,7 +42,7 @@ module.exports = (db, DataTypes) => {
validate
:
{
},
indexes
:
[
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