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>
193 lines
5.1 KiB
JSON
193 lines
5.1 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "工程资料查看",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_PROJECT_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PROJECTNAME",
|
|
"label" : "工程名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"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" : "(分)公司",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/42861f01-14ea-482d-8031-f30612dfccf4/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "PROJECTSTAGE",
|
|
"label" : "工程阶段",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_PROJECT_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTNAME",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "BUILDCOMPANY_DISPLAY__",
|
|
"label" : "建设单位",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "PROPERTY",
|
|
"label" : "工程性质",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "土建",
|
|
"2" : "装饰",
|
|
"3" : "安装",
|
|
"4" : "市政",
|
|
"5" : "园林绿化",
|
|
"6" : "古建筑",
|
|
"7" : "钢结构"
|
|
}
|
|
}, {
|
|
"name" : "CATEGORY",
|
|
"label" : "项目类别",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "Ⅰ类工程",
|
|
"2" : "Ⅱ类工程",
|
|
"3" : "Ⅲ类工程"
|
|
}
|
|
}, {
|
|
"name" : "FILIALE_DISPLAY__",
|
|
"label" : "(分)公司",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "DEPARTID_DISPLAY__",
|
|
"label" : "项目部",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "AREA",
|
|
"label" : "地区分布",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "苏州市",
|
|
"2" : "省内",
|
|
"3" : "省外"
|
|
}
|
|
}, {
|
|
"name" : "PROJECTSTAGE",
|
|
"label" : "工程阶段",
|
|
"width" : 130,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"3" : "报名已申请",
|
|
"-15" : "未入围",
|
|
"-100" : "投标终止",
|
|
"-10" : "入围",
|
|
"-1" : "未中标",
|
|
"5" : "招标文件已评审",
|
|
"6" : "投标文件已评审",
|
|
"7" : "投标登记",
|
|
"8" : "中标",
|
|
"9" : "合同洽谈",
|
|
"10" : "合同实施",
|
|
"15" : "工程终止",
|
|
"20" : "主体完工",
|
|
"50" : "工程完成",
|
|
"70" : "项目已送审",
|
|
"80" : "项目退场",
|
|
"100" : "工程竣工",
|
|
"120" : "保修到期"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "查看工程资料",
|
|
"label" : "查看工程资料",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "查看工程资料",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/bbbe3ae0-1e5e-4f0b-bcf2-fed5e8c5df34?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"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" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "dcac8553-afbb-4566-90b5-3b7bdd200a7c"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |