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
72722482
Commit
72722482
authored
Mar 10, 2020
by
孙亚楠
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新实体
parent
a45b2451
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
47 deletions
+35
-47
xggsve-invoice/app/base/db/models/invoice/deliverer.js
+0
-47
xggsve-invoice/app/base/db/models/invoice/iinvoicedeliver.js
+35
-0
No files found.
xggsve-invoice/app/base/db/models/invoice/deliverer.js
deleted
100644 → 0
View file @
a45b2451
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
//平台审批表 所有平台审批信息都添加到此表中 此表的状态应该和申请表的状态保持一致
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"deliverer"
,
{
//发票id
invoiceId
:
{
type
:
DataTypes
.
STRING
,
field
:
'invoice_id'
,
allowNull
:
true
,
comment
:
'发票id'
},
applyNo
:{
type
:
DataTypes
.
STRING
,
field
:
'apply_no'
,
allowNull
:
false
,
comment
:
'发票编号'
},
merchantId
:
{
type
:
DataTypes
.
STRING
,
field
:
'merchant_id'
,
allowNull
:
true
,
comment
:
'个体工商户id(购买方id)'
},
//平台选取交付商提交信息
delivererId
:{
type
:
DataTypes
.
STRING
,
field
:
'deliverer_id'
,
allowNull
:
true
,
comment
:
'交付商id'
},
delivererName
:{
type
:
DataTypes
.
STRING
,
field
:
'deliverer_name'
,
allowNull
:
true
,
comment
:
'交付商名称'
},
delivererAmount
:{
type
:
DataTypes
.
BIGINT
,
field
:
'deliverer_amount'
,
allowNull
:
true
,
comment
:
'交付商分成'
},
breakReason
:{
type
:
DataTypes
.
STRING
,
field
:
'break_reason'
,
allowNull
:
true
,
comment
:
'拒绝原因'
},
//平台第二次审核提交信息
auditContent
:{
type
:
DataTypes
.
STRING
,
field
:
'audit_content'
,
allowNull
:
true
,
comment
:
'审核备注'
},
delivererContent
:{
type
:
DataTypes
.
STRING
,
field
:
'deliverer_content'
,
allowNull
:
true
,
comment
:
'交付内容'
},
mailAddr
:{
type
:
DataTypes
.
STRING
,
field
:
'mail_addr'
,
allowNull
:
true
,
comment
:
'邮寄地址'
},
mailMobile
:{
type
:
DataTypes
.
STRING
,
field
:
'mail_mobile'
,
allowNull
:
true
,
comment
:
'邮寄电话'
},
mailTo
:{
type
:
DataTypes
.
STRING
,
field
:
'mail_to'
,
allowNull
:
true
,
comment
:
'邮寄人'
},
mailEmail
:{
type
:
DataTypes
.
STRING
,
field
:
'mail_email'
,
allowNull
:
true
,
comment
:
'邮寄邮箱'
},
//交付商交付信息(如果交付商邮寄那么则这个字段本应该在invoice表中,但是为了方便查询放在此表中)
delivererMailNo
:{
type
:
DataTypes
.
STRING
,
field
:
'deliverer_mail_no'
,
allowNull
:
true
,
comment
:
'交付商邮寄单号'
},
platformMailNo
:{
type
:
DataTypes
.
STRING
,
field
:
'platform_mail_no'
,
allowNull
:
true
,
comment
:
'平台邮寄单号'
},
createdAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
,
comment
:
'发票创建时间'
},
updatedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
,
comment
:
'更新时间'
},
deletedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
,
comment
:
'删除时间'
}
},{
timestamps
:
true
,
underscore
:
false
,
freezeTableName
:
true
,
paranoid
:
true
,
// schema: '',
tableName
:
'invoice_deliverer'
,
comment
:
'交付商分配表'
,
charset
:
'utf8'
,
collate
:
'utf8_general_ci'
,
version
:
true
});
}
\ No newline at end of file
xggsve-invoice/app/base/db/models/invoice/iinvoicedeliver.js
0 → 100644
View file @
72722482
const
system
=
require
(
"../../../system"
);
const
settings
=
require
(
"../../../../config/settings"
);
const
uiconfig
=
system
.
getUiConfig2
(
settings
.
appKey
);
//平台审批表 所有平台审批信息都添加到此表中 此表的状态应该和申请表的状态保持一致
module
.
exports
=
(
db
,
DataTypes
)
=>
{
return
db
.
define
(
"iinvoicedeliver"
,
{
id
:
{
type
:
DataTypes
.
STRING
(
32
),
field
:
'id'
,
allowNull
:
true
},
invoice_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'invoice_id'
,
allowNull
:
true
,
comment
:
'发票id'
},
deliver_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_id'
,
allowNull
:
true
,
comment
:
'交付商id'
},
deliver_name
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_name'
,
allowNull
:
true
,
comment
:
'交付商id'
},
deliver_divide
:
{
type
:
DataTypes
.
BIGINT
,
field
:
'deliver_divide'
,
allowNull
:
true
,
comment
:
'交付商分成'
},
deliver_mail_addr
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_addr'
,
allowNull
:
false
,
comment
:
'交付地址'
},
deliver_mail_to
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_to'
,
allowNull
:
true
,
comment
:
'收件人'
},
deliver_mail_mobile
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_mobile'
,
allowNull
:
true
,
comment
:
'联系电话'
},
audit_content
:
{
type
:
DataTypes
.
STRING
,
field
:
'audit_content'
,
allowNull
:
true
,
defaultValue
:
""
,
comment
:
'交付审核内容'
},
deliver_content
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_content'
,
allowNull
:
true
,
defaultValue
:
""
,
comment
:
'交付内容'
},
deliver_mail_no
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_mail_no'
,
allowNull
:
true
,
defaultValue
:
""
,
comment
:
'交付商交付快递单号'
},
deliver_img
:
{
type
:
DataTypes
.
STRING
,
field
:
'deliver_img'
,
allowNull
:
true
,
defaultValue
:
""
,
comment
:
'交接单'
},
operator_id
:
{
type
:
DataTypes
.
STRING
,
field
:
'operator_id'
,
allowNull
:
true
,
defaultValue
:
""
,
comment
:
'交付商业务员id'
},
createdAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'created_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
,
comment
:
'发票创建时间'
},
updatedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'updated_at'
,
allowNull
:
false
,
defaultValue
:
DataTypes
.
NOW
,
comment
:
'更新时间'
},
deletedAt
:
{
type
:
DataTypes
.
DATE
,
field
:
'deleted_at'
,
allowNull
:
true
,
comment
:
'删除时间'
},
version
:
{
type
:
DataTypes
.
INT
(
11
),
allowNull
:
true
,
defaultValue
:
0
}
},
{
timestamps
:
true
,
paranoid
:
true
,
tableName
:
'i_invoice_deliver'
,
comment
:
'发票交付商交付详细'
,
charset
:
'utf8'
,
collate
:
'utf8_general_ci'
,
version
:
true
});
}
\ No newline at end of file
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