accounting/wwwroot/billing.ui
2026-05-31 14:06:32 +08:00

139 lines
2.5 KiB
XML

{
"widgettype":"VBox",
"id":"billing_page",
"options":{
"width":"100%",
"height":"100%",
"css":"card",
"gap":"8px"
},
"subwidgets":[
{
"widgettype":"Form",
"options":{
"title":"账单查询",
"fields":[
{
"name":"start_date",
"label":"开始日期",
"uitype":"date"
},
{
"name":"end_date",
"label":"结束日期",
"uitype":"date"
}
],
"buttons":[
{
"name":"query",
"label":"查询",
"bgcolor":"#1890ff"
}
]
},
"binds":[
{
"wid":"self",
"event":"submit",
"actiontype":"script",
"target":"app.billing_tabular",
"options":{
"script":"console.log(params);this.loadData(params)"
}
}
]
},
{
"widgettype":"Tabular",
"id":"billing_tabular",
"options":{
"width":"100%",
"height":"100%",
"css":"filler",
"data_url":"{{entire_url('/accounting/billing.dspy')}}",
"editable":false,
"page_rows":80,
"cache_limit":3,
"row_options":{
"browserfields":{
"exclouded":["row_num_"]
},
"fields":[
{
"name":"acc_date",
"title":"日期",
"type":"date",
"uitype":"date",
"datatype":"date",
"label":"日期",
"cwidth":12
},
{
"name":"acc_timestamp",
"title":"时间",
"type":"timestamp",
"uitype":"timestamp",
"datatype":"timestamp",
"label":"时间",
"cwidth":16
},
{
"name":"subject_name",
"title":"科目",
"type":"str",
"length":50,
"uitype":"str",
"datatype":"str",
"label":"科目",
"cwidth":14
},
{
"name":"acc_dir",
"title":"方向",
"type":"str",
"length":4,
"uitype":"str",
"datatype":"str",
"label":"方向",
"cwidth":8
},
{
"name":"summary",
"title":"摘要",
"type":"str",
"length":100,
"uitype":"str",
"datatype":"str",
"label":"摘要",
"cwidth":30
},
{
"name":"amount",
"title":"金额",
"type":"float",
"length":18,
"dec":4,
"uitype":"float",
"datatype":"float",
"label":"金额",
"cwidth":12
},
{
"name":"balance",
"title":"余额",
"type":"float",
"length":18,
"dec":4,
"uitype":"float",
"datatype":"float",
"label":"余额",
"cwidth":12
}
]
}
}
}
]
}