Files
eip4-platform/转换产物-attach/schema/f5c10374-3ed9-4764-a381-d2e09f746a61.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

432 lines
15 KiB
JSON

{
"type" : "page",
"title" : "项目劳务成本计划变更编辑界面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 2,
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/33865715-fb25-41b2-896d-f36168d70d5a/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "ARTIFICIALPLANID",
"label" : "计划名称",
"type" : "static",
"tpl" : "${ARTIFICIALPLANID_DISPLAY__ ? ARTIFICIALPLANID_DISPLAY__ : (WORKCONTENT ? WORKCONTENT : ARTIFICIALPLANID)}"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "TOTALPRICESUM",
"label" : "变更金额(元)",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "CREATETIME",
"label" : "日期",
"required" : true,
"disabled" : true,
"type" : "input-date",
"value" : "${now}"
} ]
}, {
"md" : 2,
"body" : [ {
"name" : "CHANGETYPE",
"label" : "签证类型",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/PM_PLANCHANGETYPE"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "ARTIFICIALPLANCHANGEDETAILS",
"label" : "劳务明细",
"required" : true,
"type" : "input-table",
"id" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "NUM",
"label" : "编号",
"quickEdit" : {
"name" : "NUM",
"type" : "input-text"
}
}, {
"name" : "WORKDETAILS",
"label" : "项目名称",
"quickEdit" : {
"name" : "WORKDETAILS",
"required" : true,
"type" : "input-text",
"maxLength" : 50
}
}, {
"name" : "SIGNALMENT",
"label" : "范围描述",
"quickEdit" : {
"name" : "SIGNALMENT",
"type" : "input-text"
}
}, {
"name" : "UNITLISTID",
"label" : "单位",
"quickEdit" : {
"name" : "UNITLISTID",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
}
}, {
"name" : "OWNERPRICE",
"label" : "业主确认单价(元)",
"quickEdit" : {
"name" : "OWNERPRICE",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "f5c10374-3ed9-4764-a381-d2e09f746a61",
"editgridField" : "ARTIFICIALPLANCHANGEDETAILS",
"scriptKey" : "1ea6408f-11b2-49e9-ba19-6134018516d8",
"changedField" : "OWNERPRICE",
"row" : "${__rendererData}",
"parent" : {
"ARTIFICIALPLANCHANGEDETAILS" : "${__rendererData.ARTIFICIALPLANCHANGEDETAILS || ARTIFICIALPLANCHANGEDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "OWNERTOTALPRICE",
"label" : "业主确认小计(元)",
"quickEdit" : {
"name" : "OWNERTOTALPRICE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "COMPWORKLOAD",
"label" : "数量",
"quickEdit" : {
"name" : "COMPWORKLOAD",
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "f5c10374-3ed9-4764-a381-d2e09f746a61",
"editgridField" : "ARTIFICIALPLANCHANGEDETAILS",
"scriptKey" : "33dd35d6-dce3-4817-8ad7-312976db6a44",
"changedField" : "COMPWORKLOAD",
"row" : "${__rendererData}",
"parent" : {
"ARTIFICIALPLANCHANGEDETAILS" : "${__rendererData.ARTIFICIALPLANCHANGEDETAILS || ARTIFICIALPLANCHANGEDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "COMPPRICE",
"label" : "公司单价(元)",
"quickEdit" : {
"name" : "COMPPRICE",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "f5c10374-3ed9-4764-a381-d2e09f746a61",
"editgridField" : "ARTIFICIALPLANCHANGEDETAILS",
"scriptKey" : "0bcc703a-930f-404c-9c9e-6e076a7c7d7c",
"changedField" : "COMPPRICE",
"row" : "${__rendererData}",
"parent" : {
"ARTIFICIALPLANCHANGEDETAILS" : "${__rendererData.ARTIFICIALPLANCHANGEDETAILS || ARTIFICIALPLANCHANGEDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "COMPTOTALPRICE",
"label" : "公司小计(元)",
"quickEdit" : {
"name" : "COMPTOTALPRICE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "WORKLOAD",
"label" : "分包数量",
"quickEdit" : {
"name" : "WORKLOAD",
"type" : "input-number",
"precision" : 4,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "f5c10374-3ed9-4764-a381-d2e09f746a61",
"editgridField" : "ARTIFICIALPLANCHANGEDETAILS",
"scriptKey" : "d049ed97-c439-4365-8f55-fc5fcb96857e",
"changedField" : "WORKLOAD",
"row" : "${__rendererData}",
"parent" : {
"ARTIFICIALPLANCHANGEDETAILS" : "${__rendererData.ARTIFICIALPLANCHANGEDETAILS || ARTIFICIALPLANCHANGEDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "UNITPRICE",
"label" : "分包单价(元)",
"quickEdit" : {
"name" : "UNITPRICE",
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "f5c10374-3ed9-4764-a381-d2e09f746a61",
"editgridField" : "ARTIFICIALPLANCHANGEDETAILS",
"scriptKey" : "d049ed97-c439-4365-8f55-fc5fcb96857e",
"changedField" : "UNITPRICE",
"row" : "${__rendererData}",
"parent" : {
"ARTIFICIALPLANCHANGEDETAILS" : "${__rendererData.ARTIFICIALPLANCHANGEDETAILS || ARTIFICIALPLANCHANGEDETAILS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-ARTIFICIALPLANCHANGEDETAILS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "TOTALPRICE",
"label" : "分包小计(元)",
"quickEdit" : {
"name" : "TOTALPRICE",
"required" : true,
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "SUBEMP",
"label" : "分包人员",
"quickEdit" : {
"name" : "SUBEMP",
"required" : true,
"type" : "input-text"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "REMARK",
"label" : "备注",
"type" : "textarea"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "DOCUMENT",
"label" : "附件",
"type" : "input-file",
"receiver" : "/api/file/upload?tableName=PM_ARTIFICIALPLANCHANGE&businessKey=${PM_ARTIFICIALPLANCHANGE_ID}",
"downloadUrl" : "/api/file/${id}",
"multiple" : true,
"staticOn" : "${__readonly}",
"joinValues" : false,
"extractValue" : false
} ]
} ]
}, {
"name" : "PM_ARTIFICIALPLANCHANGE_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "WORKTYPE",
"label" : "工种",
"disabled" : true,
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/picker/PM_DATA_COMPANYMATERIAL/list?perPage=500"
}, {
"name" : "PROJECTCODE",
"label" : "原选择工程",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}