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>
529 lines
16 KiB
JSON
529 lines
16 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "部版安管人员证书-五建定制",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "USERID",
|
|
"label" : "姓名",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"placeholder" : "请点击右侧的图标"
|
|
}, {
|
|
"name" : "GENDER",
|
|
"label" : "性别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/SEX"
|
|
}, {
|
|
"name" : "ISSUEDATE",
|
|
"label" : "发证时间",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "VALIDDATE",
|
|
"label" : "有效期至",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "CARDSTATEINT",
|
|
"label" : "证书状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WJ_HR_CARDSTATE"
|
|
}, {
|
|
"name" : "JOBSTATUSS",
|
|
"label" : "在职状态",
|
|
"hidden" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"multiple" : true,
|
|
"overflowConfig" : {
|
|
"displayPosition" : [ "select" ],
|
|
"maxTagCount" : 1
|
|
},
|
|
"source" : "/api/picker/ddb51949-e2a1-4a9d-b936-48609473755a/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "BINDPROJECTID",
|
|
"label" : "使用项目",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/8fbf5298-4588-42e9-ab52-698fc9b380d3/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_PARTIALSAFETYMANPERCERTI_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "USERID_DISPLAY__",
|
|
"label" : "姓名",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "IDCARD",
|
|
"label" : "身份证号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "GENDER",
|
|
"label" : "性别",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "女",
|
|
"1" : "男"
|
|
}
|
|
}, {
|
|
"name" : "POSITIONNAME",
|
|
"label" : "岗位名称",
|
|
"width" : 250
|
|
}, {
|
|
"name" : "CARDNO",
|
|
"label" : "证书编号",
|
|
"width" : 250
|
|
}, {
|
|
"name" : "ISSUEDATE",
|
|
"label" : "发证时间",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "VALIDDATE",
|
|
"label" : "有效期至",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "BINDPROJECTID_DISPLAY__",
|
|
"label" : "使用项目",
|
|
"width" : 250
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CARDSTATEINT",
|
|
"label" : "证书状态",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "空闲",
|
|
"1" : "使用中",
|
|
"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/6df3a89c-307d-4484-a5f6-a62c1a0e6f57?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_PARTIALSAFETYMANPERCERTI/defaults?templateId=6df3a89c-307d-4484-a5f6-a62c1a0e6f57"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_PARTIALSAFETYMANPERCERTI_ADD?__egtpl=6df3a89c-307d-4484-a5f6-a62c1a0e6f57",
|
|
"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/6df3a89c-307d-4484-a5f6-a62c1a0e6f57?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=6df3a89c-307d-4484-a5f6-a62c1a0e6f57",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_PARTIALSAFETYMANPERCERTI_UPDATE?__egtpl=6df3a89c-307d-4484-a5f6-a62c1a0e6f57",
|
|
"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_PARTIALSAFETYMANPERCERTI_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:HR_PARTIALSAFETYMANPERCERTI_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看",
|
|
"label" : "查看",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/6df3a89c-307d-4484-a5f6-a62c1a0e6f57?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=6df3a89c-307d-4484-a5f6-a62c1a0e6f57",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/70bc4bbb-a521-436e-9a4e-a94eba7180a5?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=70bc4bbb-a521-436e-9a4e-a94eba7180a5",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_PARTIALSAFETYMANPERCERTI_UPDATE_BINDPROJECT?__egtpl=70bc4bbb-a521-436e-9a4e-a94eba7180a5",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "解绑",
|
|
"label" : "解绑",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要解绑此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_UNBIND",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${selectedItems[0].HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"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/92bf1c46-2138-4c72-9bfd-96d9e42092d8?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=92bf1c46-2138-4c72-9bfd-96d9e42092d8",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_PARTIALSAFETYMANPERCERTI_UPDATE_CHANGECARD?__egtpl=92bf1c46-2138-4c72-9bfd-96d9e42092d8",
|
|
"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/546d5f38-8418-427c-bf69-0e2a853dc562?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=546d5f38-8418-427c-bf69-0e2a853dc562",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOCK?__egtpl=546d5f38-8418-427c-bf69-0e2a853dc562",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "解锁",
|
|
"label" : "解锁",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要解锁此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_UNLOCK",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${selectedItems[0].HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看流转记录",
|
|
"label" : "查看流转记录",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看流转记录",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"&" : "${selectedItems[0]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/d088bf0e-b8dc-4edf-8406-e0706e81bbb5?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_PARTIALSAFETYMANPERCERTI_LOAD?__egtpl=d088bf0e-b8dc-4edf-8406-e0706e81bbb5",
|
|
"data" : {
|
|
"HR_PARTIALSAFETYMANPERCERTI_ID" : "${HR_PARTIALSAFETYMANPERCERTI_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "694cd9a3-d159-453a-a81f-c721a17564a0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_PARTIALSAFETYMANPERCERTI_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "解绑"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "解锁"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "694cd9a3-d159-453a-a81f-c721a17564a0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "694cd9a3-d159-453a-a81f-c721a17564a0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |