PageBlueprint 加 RECIPE_MASTER_DETAIL 常量与可空 child 组件(14-arg, 保留 13-arg 兼容构造);新增 PageBlueprintChild record。 PageBlueprintCompiler.masterDetail 复用 maintenance 列表骨架, 新增/编辑表单内联 house-style input-table 子表(name=listColumn, quickEdit 控件),编辑表单 initApi 走 _LOAD 回显主+子行。 validate 接受 master-detail 并要求 child 非空/childTable/listColumn 非空/fields 非空。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
386 lines
10 KiB
JSON
386 lines
10 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "期间设置",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_OFFICE_ACCOUNT_PERIOD_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "YEAR",
|
|
"label" : "年份",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"options" : [ {
|
|
"label" : "2035",
|
|
"value" : 2035
|
|
}, {
|
|
"label" : "2034",
|
|
"value" : 2034
|
|
}, {
|
|
"label" : "2033",
|
|
"value" : 2033
|
|
}, {
|
|
"label" : "2032",
|
|
"value" : 2032
|
|
}, {
|
|
"label" : "2031",
|
|
"value" : 2031
|
|
}, {
|
|
"label" : "2030",
|
|
"value" : 2030
|
|
}, {
|
|
"label" : "2029",
|
|
"value" : 2029
|
|
}, {
|
|
"label" : "2028",
|
|
"value" : 2028
|
|
}, {
|
|
"label" : "2027",
|
|
"value" : 2027
|
|
}, {
|
|
"label" : "2026",
|
|
"value" : 2026
|
|
}, {
|
|
"label" : "2025",
|
|
"value" : 2025
|
|
}, {
|
|
"label" : "2024",
|
|
"value" : 2024
|
|
}, {
|
|
"label" : "2023",
|
|
"value" : 2023
|
|
}, {
|
|
"label" : "2022",
|
|
"value" : 2022
|
|
}, {
|
|
"label" : "2021",
|
|
"value" : 2021
|
|
}, {
|
|
"label" : "2020",
|
|
"value" : 2020
|
|
}, {
|
|
"label" : "2019",
|
|
"value" : 2019
|
|
}, {
|
|
"label" : "2018",
|
|
"value" : 2018
|
|
}, {
|
|
"label" : "2017",
|
|
"value" : 2017
|
|
}, {
|
|
"label" : "2016",
|
|
"value" : 2016
|
|
}, {
|
|
"label" : "2015",
|
|
"value" : 2015
|
|
}, {
|
|
"label" : "2014",
|
|
"value" : 2014
|
|
}, {
|
|
"label" : "2013",
|
|
"value" : 2013
|
|
}, {
|
|
"label" : "2012",
|
|
"value" : 2012
|
|
}, {
|
|
"label" : "2011",
|
|
"value" : 2011
|
|
}, {
|
|
"label" : "2010",
|
|
"value" : 2010
|
|
} ]
|
|
}, {
|
|
"name" : "MONTH",
|
|
"label" : "月份",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"options" : [ {
|
|
"label" : "1月",
|
|
"value" : 1
|
|
}, {
|
|
"label" : "2月",
|
|
"value" : 2
|
|
}, {
|
|
"label" : "3月",
|
|
"value" : 3
|
|
}, {
|
|
"label" : "4月",
|
|
"value" : 4
|
|
}, {
|
|
"label" : "5月",
|
|
"value" : 5
|
|
}, {
|
|
"label" : "6月",
|
|
"value" : 6
|
|
}, {
|
|
"label" : "7月",
|
|
"value" : 7
|
|
}, {
|
|
"label" : "8月",
|
|
"value" : 8
|
|
}, {
|
|
"label" : "9月",
|
|
"value" : 9
|
|
}, {
|
|
"label" : "10月",
|
|
"value" : 10
|
|
}, {
|
|
"label" : "11月",
|
|
"value" : 11
|
|
}, {
|
|
"label" : "12月",
|
|
"value" : 12
|
|
} ]
|
|
}, {
|
|
"name" : "STATE",
|
|
"label" : "期间状态",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_OFFICE_STATE"
|
|
}, {
|
|
"name" : "NUMBER",
|
|
"label" : "期间编号",
|
|
"disabled" : true,
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "STARTDATE",
|
|
"label" : "开始日期",
|
|
"hidden" : true,
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "结束日期",
|
|
"hidden" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_OFFICE_ACCOUNT_PERIOD_ID",
|
|
"label" : "主键",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NUMBER",
|
|
"label" : "期间编号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "YEAR",
|
|
"label" : "年份",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "MONTH",
|
|
"label" : "月份",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "STARTDATE",
|
|
"label" : "开始日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "结束日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "STATE",
|
|
"label" : "期间状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "用户设置的期间",
|
|
"2" : "第一期间前系统预留的期间"
|
|
},
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/744e8e60-b651-4d89-b68c-f53cedc944bd?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_OFFICE_ACCOUNT_PERIOD/defaults?templateId=744e8e60-b651-4d89-b68c-f53cedc944bd"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_OFFICE_ACCOUNT_PERIOD_ADD?__egtpl=744e8e60-b651-4d89-b68c-f53cedc944bd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "修改",
|
|
"label" : "修改",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "修改",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/744e8e60-b651-4d89-b68c-f53cedc944bd?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_OFFICE_ACCOUNT_PERIOD_UPDATE_LOAD?__egtpl=744e8e60-b651-4d89-b68c-f53cedc944bd",
|
|
"data" : {
|
|
"OA_OFFICE_ACCOUNT_PERIOD_ID" : "${OA_OFFICE_ACCOUNT_PERIOD_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "2341298b-1ba4-4d86-bed3-f4c3f3135072"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_OFFICE_ACCOUNT_PERIOD_UPDATE?__egtpl=744e8e60-b651-4d89-b68c-f53cedc944bd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确定删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_OFFICE_ACCOUNT_PERIOD_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:OA_OFFICE_ACCOUNT_PERIOD_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "按月生成",
|
|
"label" : "按月生成",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "按月生成",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/863fca28-3e1e-4bcb-93a5-49ec398759b6?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_OFFICE_ACCOUNT_PERIOD/defaults?templateId=863fca28-3e1e-4bcb-93a5-49ec398759b6"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_OFFICE_ACCOUNT_PERIOD_createPeriodInAYear?__egtpl=863fca28-3e1e-4bcb-93a5-49ec398759b6",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_OFFICE_ACCOUNT_PERIOD_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${&}",
|
|
"templateId" : "2341298b-1ba4-4d86-bed3-f4c3f3135072"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "2341298b-1ba4-4d86-bed3-f4c3f3135072"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |