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>
129 lines
3.3 KiB
JSON
129 lines
3.3 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "项目备案人员选择框",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_PROJECTUSERRECORD_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"hidden" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "USERID",
|
|
"label" : "项目人员",
|
|
"hidden" : true,
|
|
"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" : "ROLEID",
|
|
"label" : "项目角色",
|
|
"hidden" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECTMANAGERROLE"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_PROJECTUSERRECORD_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "USERID_DISPLAY__",
|
|
"label" : "项目人员",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ROLEID",
|
|
"label" : "项目角色",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "项目负责人",
|
|
"2" : "工程师",
|
|
"3" : "安全员",
|
|
"4" : "质量员",
|
|
"5" : "施工员",
|
|
"6" : "核算员",
|
|
"7" : "材料员",
|
|
"8" : "资料员",
|
|
"19" : "技术负责人",
|
|
"20" : "项目分包负责人",
|
|
"1000" : "分管领导"
|
|
}
|
|
}, {
|
|
"name" : "CARD",
|
|
"label" : "证书",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ISLOCK",
|
|
"label" : "是否锁定",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"-1" : "未备案",
|
|
"0" : "投标中",
|
|
"1" : "已中标",
|
|
"2" : "已备案",
|
|
"3" : "备案且已变更"
|
|
}
|
|
}, {
|
|
"name" : "HAPPENDATE",
|
|
"label" : "发生日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "UNLOCKTYPE",
|
|
"label" : "解锁类型",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "正常",
|
|
"1" : "变更",
|
|
"2" : "非正常解锁"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ "pagination" ],
|
|
"primaryField" : "PM_PROJECTUSERRECORD_ID"
|
|
}
|
|
} |