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>
235 lines
6.4 KiB
JSON
235 lines
6.4 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "项目资金往来设置",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_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" : "CATEGORY",
|
|
"label" : "项目类别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
|
|
}, {
|
|
"name" : "FILIALE",
|
|
"label" : "(分)公司",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "AREA",
|
|
"label" : "地区分布",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_AREA"
|
|
}, {
|
|
"name" : "PROJECTSTAGE",
|
|
"label" : "工程阶段",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_PROJECT_PROJECTSTAGE"
|
|
}, {
|
|
"name" : "MANAGEMENTMODE",
|
|
"label" : "经营模式",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/PM_ManagementMode"
|
|
}, {
|
|
"name" : "ISCAPITALCONTACTS",
|
|
"label" : "是否有资金往来",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO",
|
|
"value" : "1"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "BUILDCOMPANY_DISPLAY__",
|
|
"label" : "建设单位",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CATEGORY",
|
|
"label" : "项目类别",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "Ⅰ类工程",
|
|
"2" : "Ⅱ类工程",
|
|
"3" : "Ⅲ类工程"
|
|
}
|
|
}, {
|
|
"name" : "ACREAGE",
|
|
"label" : "建筑面积(m2)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "TOTALPRICE",
|
|
"label" : "工程造价(元)",
|
|
"width" : 110
|
|
}, {
|
|
"name" : "FILIALE_DISPLAY__",
|
|
"label" : "(分)公司",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "AREA",
|
|
"label" : "地区分布",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "苏州市",
|
|
"2" : "省内",
|
|
"3" : "省外"
|
|
}
|
|
}, {
|
|
"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" : "MANAGEMENTMODE",
|
|
"label" : "经营模式",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "直营",
|
|
"2" : "全费用承包",
|
|
"3" : "直营过渡项目",
|
|
"4" : "直营部分分包"
|
|
}
|
|
}, {
|
|
"name" : "ISCAPITALCONTACTS",
|
|
"label" : "是否有资金往来",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "资金有往来",
|
|
"label" : "资金有往来",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_YES",
|
|
"data" : {
|
|
"VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID" : "${selectedItems[0].VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "资金无往来",
|
|
"label" : "资金无往来",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_NO",
|
|
"data" : {
|
|
"VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID" : "${selectedItems[0].VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID}"
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_PM_PROJECTCAPITALCONTACTSCONTROL_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "资金有往来"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "资金无往来"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "9d8359da-c860-48b1-bf38-841c80cf15f5"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |