Files
eip4-platform/转换产物-attach/schema/fe20a392-d4fd-402f-bbf8-be8cd41ab932.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

484 lines
13 KiB
JSON

{
"type" : "page",
"title" : "项目人员配置(五建定制)",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_PROJECT_SEARCH_PROJECT_USER_CONFIG_SZWJ",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PM_PROJECT_ID",
"label" : "工程名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
}, {
"name" : "BUILDCOMPANY",
"label" : "建设单位",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/93a5fb27-fdf1-41fb-9ce5-cec44826a6fa/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "PROPERTY",
"label" : "工程专业",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_PROPERTY"
}, {
"name" : "CATEGORY",
"label" : "工程类别",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
}, {
"name" : "FILIALE",
"label" : "(分)公司",
"hidden" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "ORGIDLIST",
"label" : "(分)公司",
"type" : "picker",
"clearable" : true,
"multiple" : true,
"overflowConfig" : {
"displayPosition" : [ "select" ],
"maxTagCount" : 1
},
"source" : "/api/picker/1a998b23-371d-4ebb-911f-6465a56a6809/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
}, {
"name" : "PROJECTSTAGE",
"label" : "工程阶段",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE"
}, {
"name" : "CREATETIME",
"label" : "登记日期",
"type" : "input-date-range"
}, {
"name" : "MANAGEMENTMODE",
"label" : "经营模式",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_ManagementMode"
} ]
},
"columns" : [ {
"name" : "PM_PROJECT_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTNAME",
"label" : "工程名称",
"width" : 300
}, {
"name" : "BUILDCOMPANY_DISPLAY__",
"label" : "建设单位",
"width" : 180
}, {
"name" : "PROPERTY",
"label" : "工程专业",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "土建",
"2" : "装饰",
"3" : "安装",
"4" : "市政",
"5" : "园林绿化",
"6" : "古建筑",
"7" : "钢结构"
}
}, {
"name" : "CATEGORY",
"label" : "工程类别",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "Ⅰ类工程",
"2" : "Ⅱ类工程",
"3" : "Ⅲ类工程"
}
}, {
"name" : "ACREAGE",
"label" : "建筑面积(m2)",
"width" : 90
}, {
"name" : "TOTALPRICE",
"label" : "工程造价(元)",
"width" : 100
}, {
"name" : "DEPARTID_DISPLAY__",
"label" : "项目部",
"width" : 100,
"toggled" : false
}, {
"name" : "AREA",
"label" : "地区分布",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "苏州市",
"2" : "省内",
"3" : "省外"
}
}, {
"name" : "CREATETIME",
"label" : "登记日期",
"width" : 90,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "PROJECTSTAGE",
"label" : "工程阶段",
"width" : 70,
"type" : "mapping",
"map" : {
"3" : "报名已申请",
"-15" : "未入围",
"-100" : "投标终止",
"-10" : "入围",
"-1" : "未中标",
"5" : "招标文件已评审",
"6" : "投标文件已评审",
"7" : "投标登记",
"8" : "中标",
"9" : "合同洽谈",
"10" : "合同实施",
"15" : "工程终止",
"20" : "主体完工",
"50" : "工程完成",
"70" : "项目已送审",
"80" : "项目退场",
"100" : "工程竣工",
"120" : "保修到期"
}
}, {
"name" : "PROJECTCODE",
"label" : "工程编码",
"width" : 200,
"toggled" : false
}, {
"name" : "ADDRESS",
"label" : "工程地址",
"width" : 200,
"toggled" : false
}, {
"name" : "TYPE",
"label" : "工程类型",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "总包工程",
"2" : "专业分包",
"3" : "零星工程",
"4" : "工程设计"
},
"toggled" : false
}, {
"name" : "INVITEBIDS_TYPE",
"label" : "招标形式",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "公开招标",
"2" : "邀请招标",
"3" : "议标"
},
"toggled" : false
}, {
"name" : "ISSHARE",
"label" : "项目是否共享",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是",
"false" : "否",
"true" : "是"
},
"toggled" : false
}, {
"name" : "PREDICTSTARTTIME",
"label" : "预计开工日期",
"width" : 200,
"toggled" : false
}, {
"name" : "STRUCTURE",
"label" : "结构",
"width" : 200,
"toggled" : false
}, {
"name" : "NUMBER",
"label" : "层次",
"width" : 200,
"toggled" : false
}, {
"name" : "PREDICTINVEST",
"label" : "预计投资(元)",
"width" : 200,
"toggled" : false
}, {
"name" : "EVOLVE",
"label" : "进展",
"width" : 200,
"toggled" : false
}, {
"name" : "BIDTIME",
"label" : "投标报名日期",
"width" : 200,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"toggled" : false
}, {
"name" : "SIGNUPENDTIME",
"label" : "内部报名截止日期",
"width" : 200,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
"toggled" : false
}, {
"name" : "MANAGEMENTMODE",
"label" : "经营模式",
"width" : 70,
"type" : "mapping",
"map" : {
"1" : "直营",
"2" : "全费用承包",
"3" : "直营过渡项目",
"4" : "直营部分分包"
}
}, {
"name" : "FILIALE_DISPLAY__",
"label" : "(分)公司",
"width" : 100
}, {
"name" : "DEPARTID_DISPLAY__",
"label" : "所属部门",
"width" : 250
}, {
"name" : "USERCOUNT",
"label" : "人员数",
"width" : 60
} ],
"headerToolbar" : [ {
"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/c02e0452-1839-4984-9834-b7c13c7504d3?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=c02e0452-1839-4984-9834-b7c13c7504d3",
"data" : {
"PM_PROJECT_ID" : "${PM_PROJECT_ID}"
},
"responseData" : {
"&" : "${result}"
}
},
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 3,
"item" : "${&}",
"templateId" : "fe20a392-d4fd-402f-bbf8-be8cd41ab932"
}
},
"outputVar" : "scriptResult3"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult3.commands}"
}
} ]
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PROJECT_USER_UPDATE?__egtpl=c02e0452-1839-4984-9834-b7c13c7504d3",
"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]}",
"__readonly" : true
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/c02e0452-1839-4984-9834-b7c13c7504d3?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=c02e0452-1839-4984-9834-b7c13c7504d3",
"data" : {
"PM_PROJECT_ID" : "${PM_PROJECT_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/c66fe691-657b-4b56-868a-42272eb6b5d3?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=c66fe691-657b-4b56-868a-42272eb6b5d3",
"data" : {
"PM_PROJECT_ID" : "${PM_PROJECT_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "发送",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_PROJECT_USER_SEND?__egtpl=c66fe691-657b-4b56-868a-42272eb6b5d3",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_PROJECT_ID",
"onEvent" : {
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 3,
"item" : "${&}",
"templateId" : "fe20a392-d4fd-402f-bbf8-be8cd41ab932"
}
},
"outputVar" : "scriptResult3"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult3.commands}"
}
} ]
}
}
}
}