Files
eip4-platform/转换产物-attach/schema/443de175-138a-420b-bdbd-e23ab4350a60.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

235 lines
6.1 KiB
JSON

{
"type" : "page",
"title" : "实名制考勤信息",
"body" : {
"type" : "crud",
"api" : "/api/flow/GB_CLOCKINGIN_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "WORKERNAME",
"label" : "人员姓名",
"type" : "input-text"
}, {
"name" : "GB_DEVICEID",
"label" : "考勤机",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/a90a5eb4-4d25-4898-822d-9ed157bce4de/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "KQSJ",
"label" : "考勤时间",
"type" : "input-datetime-range"
}, {
"name" : "CLOCKTYPE",
"label" : "考勤方式",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/GB_CLOCKING_CLOCKTYPE"
}, {
"name" : "ISUPLOAD",
"label" : "是否上传",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "ZJHM",
"label" : "证件号码",
"type" : "input-text"
}, {
"name" : "WORKERTYPE",
"label" : "人员类型",
"type" : "input-text"
}, {
"name" : "TPCODENAME",
"label" : "工种名称",
"type" : "input-text"
}, {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"type" : "input-text"
}, {
"name" : "KQFLAG",
"label" : "进出标识",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/KQ_GB_CLOCK_INOUT"
} ]
},
"columns" : [ {
"name" : "GB_CLOCKINGIN_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "WORKERNAME",
"label" : "人员姓名",
"width" : 100
}, {
"name" : "KQSJ",
"label" : "考勤时间",
"width" : 100,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "CLOCKTYPE",
"label" : "考勤方式",
"width" : 50,
"type" : "mapping",
"map" : {
"1" : "人脸",
"2" : "刷卡",
"3" : "指纹"
}
}, {
"name" : "ISUPLOAD",
"label" : "是否上传",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "ISUPLOADIMAGE",
"label" : "是否上传现场照片",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
}
}, {
"name" : "DATASTATE",
"label" : "有效性",
"width" : 50,
"type" : "mapping",
"map" : {
"0" : "未处理",
"1" : "有效数据",
"2" : "无效数据"
}
}, {
"name" : "ZJHM",
"label" : "证件号码",
"width" : 120
}, {
"name" : "GB_DEVICEID_DISPLAY__",
"label" : "考勤机",
"width" : 100
}, {
"name" : "WORKERTYPE",
"label" : "人员类型",
"width" : 100
}, {
"name" : "TPCODENAME",
"label" : "工种名称",
"width" : 100
}, {
"name" : "PRJNUMBER",
"label" : "合同备案编号",
"width" : 120
}, {
"name" : "KQFLAG",
"label" : "进出标识",
"width" : 50,
"type" : "mapping",
"map" : {
"1" : "进门",
"2" : "出门"
}
}, {
"name" : "TEMPERATURE",
"label" : "体温",
"width" : 50
}, {
"name" : "CREATETIME",
"label" : "创建时间",
"width" : 100,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
} ],
"headerToolbar" : [ {
"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/fd19c6f4-6ceb-401b-8b95-aa3de051d897?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/GB_CLOCKINGIN_LOAD?__egtpl=fd19c6f4-6ceb-401b-8b95-aa3de051d897",
"data" : {
"GB_CLOCKINGIN_ID" : "${GB_CLOCKINGIN_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "上传数据",
"label" : "上传数据",
"actionType" : "ajax",
"confirmText" : "确认要上传记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_CLOCKINGIN_UPDATEONEDATA",
"data" : {
"GB_CLOCKINGIN_ID" : "${selectedItems[0].GB_CLOCKINGIN_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, {
"type" : "button",
"id" : "验证数据",
"label" : "验证数据",
"actionType" : "ajax",
"confirmText" : "确认要验证此记录吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_CLOCKINGIN_CHECKDATASTATE",
"data" : {
"GB_CLOCKINGIN_ID" : "${selectedItems[0].GB_CLOCKINGIN_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
}, "pagination" ],
"primaryField" : "GB_CLOCKINGIN_ID"
}
}