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>
462 lines
14 KiB
JSON
462 lines
14 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "建造师注册证申请",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_CONSTRUCTORCARDAPPLY_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "USERID",
|
|
"label" : "姓名",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/1b6820ad-bc7c-4eef-ac63-652cdf52c75f/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "PROFESSIONALID",
|
|
"label" : "专业",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/CONSTRUCTORPROFESSIONAL"
|
|
}, {
|
|
"name" : "ISSUEDATE",
|
|
"label" : "取得日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "LEVELID",
|
|
"label" : "证书等级",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/CONSTRUCTORCARDLEVEL"
|
|
}, {
|
|
"name" : "DESIGNATIONNO",
|
|
"label" : "注册编号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "USEMODE",
|
|
"label" : "证书状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/CARDUSERMODE"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_CONSTRUCTORCARDAPPLY_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USERORGID_DISPLAY__",
|
|
"label" : "所属(分)公司",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "USERID_DISPLAY__",
|
|
"label" : "姓名",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "IDCARD",
|
|
"label" : "身份证",
|
|
"width" : 240
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"width" : 120,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "PROFESSIONALID",
|
|
"label" : "专业",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "建筑工程",
|
|
"2" : "市政工程",
|
|
"3" : "公路",
|
|
"4" : "机电",
|
|
"5" : "水利工程",
|
|
"6" : "其他"
|
|
}
|
|
}, {
|
|
"name" : "ISSUEDATE",
|
|
"label" : "取得日期",
|
|
"width" : 120,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "CERTIFICATENO",
|
|
"label" : "编号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "LEVELID",
|
|
"label" : "证书等级",
|
|
"width" : 120,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "一级建造师",
|
|
"2" : "二级建造师",
|
|
"3" : "小型项目管理师"
|
|
}
|
|
}, {
|
|
"name" : "CHANGETYPE",
|
|
"label" : "变更类别",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "转入",
|
|
"2" : "转出"
|
|
},
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CHANGECOMPANY",
|
|
"label" : "变更企业名称",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "DESIGNATIONNO",
|
|
"label" : "注册编号",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "TYPENAME",
|
|
"label" : "申请类型",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "TYPE",
|
|
"label" : "申请类型",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "USEMODE",
|
|
"label" : "证书状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "空闲",
|
|
"1" : "使用中",
|
|
"2" : "已转出",
|
|
"3" : "已注销",
|
|
"4" : "已备案",
|
|
"5" : "锁定",
|
|
"6" : "冻结"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "初始注册",
|
|
"label" : "初始注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "初始注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/e5de6a5f-a120-4657-a121-b73fcdf2763a?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=e5de6a5f-a120-4657-a121-b73fcdf2763a"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=e5de6a5f-a120-4657-a121-b73fcdf2763a",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=e5de6a5f-a120-4657-a121-b73fcdf2763a",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "增项注册",
|
|
"label" : "增项注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "增项注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/08396c5e-ead8-479b-bdbe-a2e3867d21c8?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=08396c5e-ead8-479b-bdbe-a2e3867d21c8"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=08396c5e-ead8-479b-bdbe-a2e3867d21c8",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=08396c5e-ead8-479b-bdbe-a2e3867d21c8",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "延续注册",
|
|
"label" : "延续注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "延续注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/95025597-ffa8-4be6-8bc9-9270f799aefd?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=95025597-ffa8-4be6-8bc9-9270f799aefd"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=95025597-ffa8-4be6-8bc9-9270f799aefd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=95025597-ffa8-4be6-8bc9-9270f799aefd",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "重新注册",
|
|
"label" : "重新注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "重新注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/7119a082-2837-4054-b642-9d3afd024c3b?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=7119a082-2837-4054-b642-9d3afd024c3b"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=7119a082-2837-4054-b642-9d3afd024c3b",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=7119a082-2837-4054-b642-9d3afd024c3b",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "变更注册",
|
|
"label" : "变更注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "变更注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/47613ab9-db51-4df7-894c-538a6b8c4904?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=47613ab9-db51-4df7-894c-538a6b8c4904"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=47613ab9-db51-4df7-894c-538a6b8c4904",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=47613ab9-db51-4df7-894c-538a6b8c4904",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "注销注册",
|
|
"label" : "注销注册",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "注销注册",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/dfa999aa-e580-4d2e-8e6d-6ea1c5f00c7e?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_CONSTRUCTORCARDAPPLY/defaults?templateId=dfa999aa-e580-4d2e-8e6d-6ea1c5f00c7e"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_ADD?__egtpl=dfa999aa-e580-4d2e-8e6d-6ea1c5f00c7e",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_CONSTRUCTORCARDAPPLY_SAVE_AND_SUBMIT?__egtpl=dfa999aa-e580-4d2e-8e6d-6ea1c5f00c7e",
|
|
"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/HR_CONSTRUCTORCARDAPPLY_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:HR_CONSTRUCTORCARDAPPLY_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "提交审批",
|
|
"label" : "提交审批",
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_CONSTRUCTORCARDAPPLY_SUBMIT",
|
|
"data" : {
|
|
"HR_CONSTRUCTORCARDAPPLY_ID" : "${selectedItems[0].HR_CONSTRUCTORCARDAPPLY_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看审批",
|
|
"label" : "查看审批",
|
|
"icon" : "fa fa-search",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "openApprovalDrawer",
|
|
"args" : {
|
|
"taskName" : "审批详情",
|
|
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
|
|
"businessKey" : "${selectedItems[0].HR_CONSTRUCTORCARDAPPLY_ID}",
|
|
"businessTable" : "HR_CONSTRUCTORCARDAPPLY",
|
|
"readOnly" : true,
|
|
"mode" : "read"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_CONSTRUCTORCARDAPPLY_ID"
|
|
}
|
|
} |