fix(P0): 修正accounting CRUD JSON格式,添加.gitignore排除自动生成的CRUD目录
This commit is contained in:
parent
1de6fbcf9b
commit
4a20509490
6
.gitignore
vendored
6
.gitignore
vendored
@ -1 +1,7 @@
|
|||||||
*.swp
|
*.swp
|
||||||
|
|
||||||
|
# CRUD auto-generated directories
|
||||||
|
wwwroot/account/
|
||||||
|
wwwroot/subject/
|
||||||
|
wwwroot/acc_balance/
|
||||||
|
wwwroot/acc_detail/
|
||||||
|
|||||||
@ -1,17 +1,12 @@
|
|||||||
{
|
{
|
||||||
"models_dir": "${HOME}$/py/rbac/models",
|
|
||||||
"output_dir": "${HOME}$/py/sage/wwwroot/account",
|
|
||||||
"dbname": "sage",
|
|
||||||
"tblname": "acc_balance",
|
"tblname": "acc_balance",
|
||||||
"title":"科目",
|
"title": "账户余额",
|
||||||
"params": {
|
"params": {
|
||||||
"sortby":"name",
|
"sortby": ["acc_date desc"],
|
||||||
"browserfields": {
|
"browserfields": {
|
||||||
"exclouded": ["id"],
|
"exclouded": ["id"],
|
||||||
"cwidth": {}
|
"alters": {}
|
||||||
},
|
},
|
||||||
"editexclouded": [
|
"editexclouded": ["id"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,17 +1,20 @@
|
|||||||
{
|
{
|
||||||
"models_dir": "${HOME}$/py/rbac/models",
|
|
||||||
"output_dir": "${HOME}$/py/sage/wwwroot/acc_detail",
|
|
||||||
"dbname": "sage",
|
|
||||||
"tblname": "acc_detail",
|
"tblname": "acc_detail",
|
||||||
"title":"科目",
|
"title": "账务明细",
|
||||||
"params": {
|
"params": {
|
||||||
"sortby":"name",
|
"sortby": ["acc_date desc"],
|
||||||
"browserfields": {
|
"browserfields": {
|
||||||
"exclouded": ["id"],
|
"exclouded": ["id"],
|
||||||
"cwidth": {}
|
"alters": {
|
||||||
|
"acc_dir": {
|
||||||
|
"uitype": "code",
|
||||||
|
"data": [
|
||||||
|
{"value": "0", "text": "贷"},
|
||||||
|
{"value": "1", "text": "借"}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"editexclouded": [
|
"editexclouded": ["id", "acc_no"]
|
||||||
"id"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,34 +1,49 @@
|
|||||||
{
|
{
|
||||||
"models_dir": "${HOME}$/py/rbac/models",
|
|
||||||
"output_dir": "${HOME}$/py/sage/wwwroot/account",
|
|
||||||
"dbname": "sage",
|
|
||||||
"tblname": "account",
|
"tblname": "account",
|
||||||
"title":"科目",
|
"title": "账户管理",
|
||||||
"params": {
|
"params": {
|
||||||
"sortby":"name",
|
"sortby": ["id"],
|
||||||
"browserfields": {
|
"browserfields": {
|
||||||
"exclouded": ["id"],
|
"exclouded": ["id"],
|
||||||
"cwidth": {}
|
"alters": {
|
||||||
|
"subjectid": {
|
||||||
|
"uitype": "code",
|
||||||
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
|
||||||
|
"valueField": "subjectid",
|
||||||
|
"textField": "subjectid_text"
|
||||||
|
},
|
||||||
|
"orgid": {
|
||||||
|
"uitype": "code",
|
||||||
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}",
|
||||||
|
"valueField": "orgid",
|
||||||
|
"textField": "orgid_text"
|
||||||
|
},
|
||||||
|
"balance_at": {
|
||||||
|
"uitype": "code",
|
||||||
|
"data": [
|
||||||
|
{"value": "0", "text": "借"},
|
||||||
|
{"value": "1", "text": "贷"}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"editexclouded": [
|
"editexclouded": ["id", "max_detailno", "balance"],
|
||||||
"id"
|
"subtables": [
|
||||||
],
|
{
|
||||||
"subtables":[
|
"field": "accountid",
|
||||||
{
|
"title": "账户余额",
|
||||||
"field":"accountid",
|
"subtable": "acc_balance"
|
||||||
"title":"账户余额",
|
},
|
||||||
"subtable":"acc_balance"
|
{
|
||||||
},
|
"field": "accountid",
|
||||||
{
|
"title": "账户明细",
|
||||||
"field":"accountid",
|
"subtable": "acc_detail"
|
||||||
"title":"账户明细",
|
},
|
||||||
"subtable":"acc_detail"
|
{
|
||||||
},
|
"field": "accountid",
|
||||||
{
|
"title": "账户日志",
|
||||||
"field":"accountid",
|
"subtable": "accounting_log"
|
||||||
"title":"账户日志",
|
}
|
||||||
"subtable":"accounting_log"
|
]
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,25 +1,31 @@
|
|||||||
{
|
{
|
||||||
"models_dir": "${HOME}$/py/rbac/models",
|
|
||||||
"output_dir": "${HOME}$/py/sage/wwwroot/subject",
|
|
||||||
"dbname": "sage",
|
|
||||||
"tblname": "subject",
|
"tblname": "subject",
|
||||||
"title":"科目",
|
"title": "科目管理",
|
||||||
"params": {
|
"params": {
|
||||||
"sortby":"name",
|
"sortby": ["id"],
|
||||||
"browserfields": {
|
"browserfields": {
|
||||||
"exclouded": ["id"],
|
"exclouded": ["id"],
|
||||||
"cwidth": {}
|
"alters": {
|
||||||
|
"balance_side": {
|
||||||
|
"uitype": "code",
|
||||||
|
"data": [
|
||||||
|
{"value": "0", "text": "借"},
|
||||||
|
{"value": "1", "text": "贷"}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"subjecttype": {
|
||||||
|
"uitype": "code",
|
||||||
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"editexclouded": [
|
"editexclouded": ["id"],
|
||||||
"id"
|
"subtables": [
|
||||||
],
|
{
|
||||||
"subtables":[
|
"field": "subjectid",
|
||||||
{
|
"title": "账户设置",
|
||||||
"field":"subjectid",
|
"subtable": "account_config"
|
||||||
"title":"账户设置",
|
}
|
||||||
"url":"../account_config",
|
]
|
||||||
"subtable":"account_config"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user