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>
468 lines
13 KiB
JSON
468 lines
13 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "实名制项目用工信息",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/GB_PRJ_WORKER_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "WORKERNAME",
|
|
"label" : "姓名",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ZJHM",
|
|
"label" : "证件号码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PRJNUMBER",
|
|
"label" : "合同备案编号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "QYZZJGDM",
|
|
"label" : "统一社会信用代码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "BZMC",
|
|
"label" : "班组名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "WORKERTYPE",
|
|
"label" : "人员类型",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "GWLB",
|
|
"label" : "管理人员岗位类别",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "TPTYPE",
|
|
"label" : "工种类别",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "TPCODENAME",
|
|
"label" : "工种名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "BEGINDATE",
|
|
"label" : "计划开始用工日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "计划用工结束日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "GH",
|
|
"label" : "工号",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
}, {
|
|
"name" : "ISCOLLECTED",
|
|
"label" : "是否采集数据",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISPIC",
|
|
"label" : "是否采集人脸",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISAUTH",
|
|
"label" : "是否认证",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否下发",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "WORKERNAME",
|
|
"label" : "姓名",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "GB_PRJ_WORKER_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ZJHM",
|
|
"label" : "证件号码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PRJNUMBER",
|
|
"label" : "合同备案编号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "QYZZJGDM",
|
|
"label" : "统一社会信用代码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "BZMC",
|
|
"label" : "班组名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "WORKERTYPE",
|
|
"label" : "人员类型",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "GWLB",
|
|
"label" : "管理人员岗位类别",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "TPTYPE",
|
|
"label" : "工种类别",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "TPCODENAME",
|
|
"label" : "工种名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "BEGINDATE",
|
|
"label" : "计划开始用工日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "计划用工结束日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "CARD",
|
|
"label" : "卡号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "GH",
|
|
"label" : "工号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ISCOLLECTED",
|
|
"label" : "是否采集数据",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
}, {
|
|
"name" : "ISAUTH",
|
|
"label" : "是否认证",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
}, {
|
|
"name" : "ISSEND",
|
|
"label" : "是否下发",
|
|
"width" : 140,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是",
|
|
"false" : "否",
|
|
"true" : "是"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/74f982a7-0ca2-42e4-9b4c-f87699dcf388?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/GB_PRJ_WORKER/defaults?templateId=74f982a7-0ca2-42e4-9b4c-f87699dcf388"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_PRJ_WORKER_ADD?__egtpl=74f982a7-0ca2-42e4-9b4c-f87699dcf388",
|
|
"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/GB_PRJ_WORKER_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:GB_PRJ_WORKER_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/b2730ba5-4045-48ca-aec5-37cbb1ab50d2?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_PRJ_WORKER_LOAD?__egtpl=b2730ba5-4045-48ca-aec5-37cbb1ab50d2",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${GB_PRJ_WORKER_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/b53ac514-f447-4707-9eef-69a6cd21ea59?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_PRJ_WORKER_LOAD?__egtpl=b53ac514-f447-4707-9eef-69a6cd21ea59",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${GB_PRJ_WORKER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_PRJ_WORKER_UPDATE?__egtpl=b53ac514-f447-4707-9eef-69a6cd21ea59",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "实名认证",
|
|
"label" : "实名认证",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_PRJ_WORKER_AUTH",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${selectedItems[0].GB_PRJ_WORKER_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, {
|
|
"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/6a4c67c0-540c-4d34-afa6-14d4ea1d3df5?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_PRJ_WORKER_LOAD2?__egtpl=6a4c67c0-540c-4d34-afa6-14d4ea1d3df5",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${GB_PRJ_WORKER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "下发用户",
|
|
"label" : "下发用户",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要下发用户至打卡考勤机吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/ GB_PRJ_WORKER_SEND",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${selectedItems[0].GB_PRJ_WORKER_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/de25d7c6-68c0-4eb2-8950-e606e1cf9028?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_PRJ_WORKER_LOAD?__egtpl=de25d7c6-68c0-4eb2-8950-e606e1cf9028",
|
|
"data" : {
|
|
"GB_PRJ_WORKER_ID" : "${GB_PRJ_WORKER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_PRJ_WORKER_UPDATECARD?__egtpl=de25d7c6-68c0-4eb2-8950-e606e1cf9028",
|
|
"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" : {
|
|
"GB_PRJ_WORKER_ID" : "${selectedItems[0].GB_PRJ_WORKER_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/3e208fb2-b62b-4596-b690-5cf00de05aee?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "GB_PRJ_WORKER_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "下发用户"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "8f22ba0d-60c3-4f5a-8548-ed21529b83a1"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "8f22ba0d-60c3-4f5a-8548-ed21529b83a1"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |