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>
565 lines
16 KiB
JSON
565 lines
16 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" : "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" : "PROJECTSTAGE",
|
|
"label" : "工程阶段",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE"
|
|
}, {
|
|
"name" : "CREATETIME",
|
|
"label" : "登记日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
} ]
|
|
},
|
|
"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" : "ACREAGE",
|
|
"label" : "建筑面积(m2)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "TOTALPRICE",
|
|
"label" : "工程造价(元)",
|
|
"width" : 100
|
|
}, {
|
|
"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" : "CREATETIME",
|
|
"label" : "登记日期",
|
|
"width" : 80,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "PROJECTSTAGE",
|
|
"label" : "工程阶段",
|
|
"width" : 80,
|
|
"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" : "OPPONENTS",
|
|
"label" : "潜在竞争对手",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/beccea63-3a1f-46fa-b11c-c75dd81ddc7a?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_PROJECT/defaults?templateId=beccea63-3a1f-46fa-b11c-c75dd81ddc7a"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PROJECT_ADD?__egtpl=beccea63-3a1f-46fa-b11c-c75dd81ddc7a",
|
|
"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]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/beccea63-3a1f-46fa-b11c-c75dd81ddc7a?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=beccea63-3a1f-46fa-b11c-c75dd81ddc7a",
|
|
"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" : "8dbb3d79-4f87-450a-90c4-8c81ccc8a10f"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PROJECT_UPDATE?__egtpl=beccea63-3a1f-46fa-b11c-c75dd81ddc7a",
|
|
"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/PM_PROJECT_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_PROJECT_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/beccea63-3a1f-46fa-b11c-c75dd81ddc7a?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=beccea63-3a1f-46fa-b11c-c75dd81ddc7a",
|
|
"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/072ef0ee-6b1f-469b-9816-b15985351640?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PROJECT_LOAD?__egtpl=072ef0ee-6b1f-469b-9816-b15985351640",
|
|
"data" : {
|
|
"PM_PROJECT_ID" : "${PM_PROJECT_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PROJECT_SUBMIT?__egtpl=072ef0ee-6b1f-469b-9816-b15985351640",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "设置为工程竣工",
|
|
"label" : "设置为工程竣工",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要设置该工程为工程竣工阶段吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PROJECT_UPDATE_PROJECTSTAGEISCOMPLETED",
|
|
"data" : {
|
|
"PM_PROJECT_ID" : "${selectedItems[0].PM_PROJECT_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"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/edd5004a-77b7-4dda-9161-8b88a7308aaa?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_PROJECT_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "设置为工程竣工"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "8dbb3d79-4f87-450a-90c4-8c81ccc8a10f"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "8dbb3d79-4f87-450a-90c4-8c81ccc8a10f"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "8dbb3d79-4f87-450a-90c4-8c81ccc8a10f"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |