290 lines
6.1 KiB
XML

{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"id":"dda_approvals_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"审批记录",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_dda_approvals.dspy')}}",
"delete_data_url":"{{entire_url('delete_dda_approvals.dspy')}}",
"update_data_url":"{{entire_url('update_dda_approvals.dspy')}}"
},
"data_url":"{{entire_url('./get_dda_approvals.dspy')}}",
"data_method":"GET",
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
"row_options":{
"browserfields": {
"exclouded": [
"id"
],
"alters": {
"status": {
"uitype": "code",
"data": [
{
"value": "pending",
"text": "待审批"
},
{
"value": "approved",
"text": "已通过"
},
{
"value": "rejected",
"text": "已拒绝"
},
{
"value": "cancelled",
"text": "已取消"
}
]
},
"biz_type": {
"uitype": "code",
"data": [
{
"value": "content_publish",
"text": "内容发布"
},
{
"value": "pipeline_approval",
"text": "产线步骤审批"
},
{
"value": "pipeline_deploy",
"text": "产线部署审批"
},
{
"value": "opp_dev_approval",
"text": "商机研发审批"
}
]
}
}
},
"fields":[
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "主键ID"
},
{
"name": "org_id",
"title": "组织ID",
"type": "str",
"length": 32,
"default": "0",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "组织ID"
},
{
"name": "biz_type",
"title": "业务类型(content_publish等)",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "code",
"datatype": "str",
"label": "业务类型(content_publish等)",
"data": [
{
"value": "content_publish",
"text": "内容发布"
},
{
"value": "pipeline_approval",
"text": "产线步骤审批"
},
{
"value": "pipeline_deploy",
"text": "产线部署审批"
},
{
"value": "opp_dev_approval",
"text": "商机研发审批"
}
]
},
{
"name": "biz_id",
"title": "业务数据ID",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "业务数据ID"
},
{
"name": "title",
"title": "审批标题",
"type": "str",
"length": 255,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "审批标题"
},
{
"name": "applicant_id",
"title": "申请人ID",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "申请人ID"
},
{
"name": "approver_id",
"title": "审批人ID",
"type": "str",
"length": 32,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "审批人ID"
},
{
"name": "dingtalk_instance_id",
"title": "钉钉审批实例ID",
"type": "str",
"length": 100,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "钉钉审批实例ID"
},
{
"name": "status",
"title": "状态(pending/approved/rejected/cancelled)",
"type": "str",
"length": 32,
"default": "pending",
"cwidth": 18,
"uitype": "code",
"datatype": "str",
"label": "状态(pending/approved/rejected/cancelled)",
"data": [
{
"value": "pending",
"text": "待审批"
},
{
"value": "approved",
"text": "已通过"
},
{
"value": "rejected",
"text": "已拒绝"
},
{
"value": "cancelled",
"text": "已取消"
}
]
},
{
"name": "comment",
"title": "审批意见",
"type": "text",
"length": 0,
"uitype": "text",
"datatype": "text",
"label": "审批意见"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "创建时间"
},
{
"name": "completed_at",
"title": "完成时间",
"type": "datetime",
"length": 0,
"uitype": "str",
"datatype": "datetime",
"label": "完成时间"
}
]
},
"data_filter":{
"AND": [
{
"field": "status",
"op": "=",
"var": "status_filter"
},
{
"field": "biz_type",
"op": "=",
"var": "biz_type_filter"
},
{
"field": "title",
"op": "LIKE",
"var": "title_filter"
}
]
},
"page_rows":160,
"cache_limit":5
}
,"binds":[]
}]
}