fix: 为所有CRUD json添加editable配置(default值)
This commit is contained in:
parent
b17272d9d7
commit
d04fbedee6
@ -2,11 +2,22 @@
|
||||
"tblname": "acc_balance",
|
||||
"title": "账户余额",
|
||||
"params": {
|
||||
"sortby": ["acc_date desc"],
|
||||
"sortby": [
|
||||
"acc_date desc"
|
||||
],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"alters": {}
|
||||
},
|
||||
"editexclouded": ["id"]
|
||||
"editexclouded": [
|
||||
"id"
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2,19 +2,37 @@
|
||||
"tblname": "acc_detail",
|
||||
"title": "账务明细",
|
||||
"params": {
|
||||
"sortby": ["acc_date desc"],
|
||||
"sortby": [
|
||||
"acc_date desc"
|
||||
],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"alters": {
|
||||
"acc_dir": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "贷"},
|
||||
{"value": "1", "text": "借"}
|
||||
{
|
||||
"value": "0",
|
||||
"text": "贷"
|
||||
},
|
||||
{
|
||||
"value": "1",
|
||||
"text": "借"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": ["id", "acc_no"]
|
||||
"editexclouded": [
|
||||
"id",
|
||||
"acc_no"
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2,9 +2,13 @@
|
||||
"tblname": "account",
|
||||
"title": "账户管理",
|
||||
"params": {
|
||||
"sortby": ["id"],
|
||||
"sortby": [
|
||||
"id"
|
||||
],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"alters": {
|
||||
"subjectid": {
|
||||
"uitype": "code",
|
||||
@ -21,13 +25,23 @@
|
||||
"balance_at": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "借"},
|
||||
{"value": "1", "text": "贷"}
|
||||
{
|
||||
"value": "0",
|
||||
"text": "借"
|
||||
},
|
||||
{
|
||||
"value": "1",
|
||||
"text": "贷"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": ["id", "max_detailno", "balance"],
|
||||
"editexclouded": [
|
||||
"id",
|
||||
"max_detailno",
|
||||
"balance"
|
||||
],
|
||||
"subtables": [
|
||||
{
|
||||
"field": "accountid",
|
||||
@ -44,6 +58,11 @@
|
||||
"title": "账户日志",
|
||||
"subtable": "accounting_log"
|
||||
}
|
||||
]
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3,14 +3,21 @@
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/account_config",
|
||||
"dbname": "sage",
|
||||
"tblname": "account_config",
|
||||
"title":"账户设置",
|
||||
"title": "账户设置",
|
||||
"params": {
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"cwidth": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
]
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,14 +1,24 @@
|
||||
{
|
||||
"tblname": "accounting_config",
|
||||
"title":"账务设置",
|
||||
"title": "账务设置",
|
||||
"params": {
|
||||
"sortby":["action","accounting_dir"],
|
||||
"sortby": [
|
||||
"action",
|
||||
"accounting_dir"
|
||||
],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"cwidth": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
]
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -3,15 +3,22 @@
|
||||
"output_dir": "${HOME}$/py/sage/wwwroot/accounting_log",
|
||||
"dbname": "sage",
|
||||
"tblname": "accounting_log",
|
||||
"title":"科目",
|
||||
"title": "科目",
|
||||
"params": {
|
||||
"sortby":"name",
|
||||
"sortby": "name",
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"cwidth": {}
|
||||
},
|
||||
"editexclouded": [
|
||||
"id"
|
||||
]
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2,15 +2,25 @@
|
||||
"tblname": "subject",
|
||||
"title": "科目管理",
|
||||
"params": {
|
||||
"sortby": ["id"],
|
||||
"sortby": [
|
||||
"id"
|
||||
],
|
||||
"browserfields": {
|
||||
"exclouded": ["id"],
|
||||
"exclouded": [
|
||||
"id"
|
||||
],
|
||||
"alters": {
|
||||
"balance_side": {
|
||||
"uitype": "code",
|
||||
"data": [
|
||||
{"value": "0", "text": "借"},
|
||||
{"value": "1", "text": "贷"}
|
||||
{
|
||||
"value": "0",
|
||||
"text": "借"
|
||||
},
|
||||
{
|
||||
"value": "1",
|
||||
"text": "贷"
|
||||
}
|
||||
]
|
||||
},
|
||||
"subjecttype": {
|
||||
@ -19,13 +29,20 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"editexclouded": ["id"],
|
||||
"editexclouded": [
|
||||
"id"
|
||||
],
|
||||
"subtables": [
|
||||
{
|
||||
"field": "subjectid",
|
||||
"title": "账户设置",
|
||||
"subtable": "account_config"
|
||||
}
|
||||
]
|
||||
],
|
||||
"editable": {
|
||||
"new_data_url": "default",
|
||||
"update_data_url": "default",
|
||||
"delete_data_url": "default"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user