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>
This commit is contained in:
420
转换产物-attach/schema/dfdf69cf-a053-4c87-9439-9db5e2ba5a5f.json
Normal file
420
转换产物-attach/schema/dfdf69cf-a053-4c87-9439-9db5e2ba5a5f.json
Normal file
@@ -0,0 +1,420 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "项目劳务成本计划编辑界面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 3,
|
||||
"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" : 3,
|
||||
"body" : [ {
|
||||
"name" : "WORKCONTENT",
|
||||
"label" : "计划名称",
|
||||
"required" : true,
|
||||
"type" : "input-text",
|
||||
"maxLength" : 100
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "TOTALPRICESUM",
|
||||
"label" : "计划金额(元)",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "CREATETIME",
|
||||
"label" : "日期",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "ARTIFICIALPLANDETAILS",
|
||||
"label" : "劳务明细",
|
||||
"required" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"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" : "WORKLOAD",
|
||||
"label" : "数量",
|
||||
"quickEdit" : {
|
||||
"name" : "WORKLOAD",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "dfdf69cf-a053-4c87-9439-9db5e2ba5a5f",
|
||||
"editgridField" : "ARTIFICIALPLANDETAILS",
|
||||
"scriptKey" : "028ae7d6-7493-469e-9197-97b73431607f",
|
||||
"changedField" : "WORKLOAD",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"ARTIFICIALPLANDETAILS" : "${__rendererData.ARTIFICIALPLANDETAILS || ARTIFICIALPLANDETAILS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "UNITLISTID",
|
||||
"label" : "单位",
|
||||
"quickEdit" : {
|
||||
"name" : "UNITLISTID",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/PM_UNITLIST/list?perPage=500"
|
||||
}
|
||||
}, {
|
||||
"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" : "dfdf69cf-a053-4c87-9439-9db5e2ba5a5f",
|
||||
"editgridField" : "ARTIFICIALPLANDETAILS",
|
||||
"scriptKey" : "20e65b69-65d2-47a1-acd9-f163b52a6c9d",
|
||||
"changedField" : "COMPPRICE",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"ARTIFICIALPLANDETAILS" : "${__rendererData.ARTIFICIALPLANDETAILS || ARTIFICIALPLANDETAILS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "COMPTOTALPRICE",
|
||||
"label" : "公司小计(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "COMPTOTALPRICE",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "DISCOUNTPRICE",
|
||||
"label" : "折扣单价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "DISCOUNTPRICE",
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "dfdf69cf-a053-4c87-9439-9db5e2ba5a5f",
|
||||
"editgridField" : "ARTIFICIALPLANDETAILS",
|
||||
"scriptKey" : "e52f8aa9-699a-4cd5-80bf-105a91e41eac",
|
||||
"changedField" : "DISCOUNTPRICE",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"ARTIFICIALPLANDETAILS" : "${__rendererData.ARTIFICIALPLANDETAILS || ARTIFICIALPLANDETAILS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "DISCOUNTTOTALPRICE",
|
||||
"label" : "折扣小计(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "DISCOUNTTOTALPRICE",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}
|
||||
}, {
|
||||
"name" : "UNITPRICE",
|
||||
"label" : "分包单价(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "UNITPRICE",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "dfdf69cf-a053-4c87-9439-9db5e2ba5a5f",
|
||||
"editgridField" : "ARTIFICIALPLANDETAILS",
|
||||
"scriptKey" : "bca5f0b0-adf3-413c-a4c1-0ef1d39218ca",
|
||||
"changedField" : "UNITPRICE",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"ARTIFICIALPLANDETAILS" : "${__rendererData.ARTIFICIALPLANDETAILS || ARTIFICIALPLANDETAILS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"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,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "dfdf69cf-a053-4c87-9439-9db5e2ba5a5f",
|
||||
"editgridField" : "ARTIFICIALPLANDETAILS",
|
||||
"scriptKey" : "bcc090dd-ddf4-4342-b0e0-00e888a303ea",
|
||||
"changedField" : "TOTALPRICE",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"ARTIFICIALPLANDETAILS" : "${__rendererData.ARTIFICIALPLANDETAILS || ARTIFICIALPLANDETAILS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-ARTIFICIALPLANDETAILS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "SUBEMP",
|
||||
"label" : "分包人员",
|
||||
"quickEdit" : {
|
||||
"name" : "SUBEMP",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
}
|
||||
}, {
|
||||
"name" : "REMARKS",
|
||||
"label" : "备注信息",
|
||||
"quickEdit" : {
|
||||
"name" : "REMARKS",
|
||||
"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_ARTIFICIALPLAN&businessKey=${PM_ARTIFICIALPLAN_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_ARTIFICIALPLAN_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "WORKTYPE",
|
||||
"label" : "工种",
|
||||
"hidden" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/PM_DATA_COMPANYMATERIAL/list?perPage=500"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user