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:
549
转换产物-attach/schema/5e114578-2fc7-42e4-9de5-7d0fa71da072.json
Normal file
549
转换产物-attach/schema/5e114578-2fc7-42e4-9de5-7d0fa71da072.json
Normal file
@@ -0,0 +1,549 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "总包合同评审查看页面",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "PM_PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/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" : "BUILDCOMPANY",
|
||||
"label" : "建设单位",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "FILIALE",
|
||||
"label" : "(分)公司",
|
||||
"type" : "static",
|
||||
"tpl" : "${FILIALE_DISPLAY__ ? FILIALE_DISPLAY__ : (NAME ? NAME : FILIALE)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "TYPE",
|
||||
"label" : "工程类型",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_PROJECT_TYPE"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "CATEGORY",
|
||||
"label" : "工程类别",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_PROJECT_CATEGORY"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "ADDRESS",
|
||||
"label" : "工程地址",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "STRUCTURE",
|
||||
"label" : "结构",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "NUMBER",
|
||||
"label" : "层次",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "ACREAGE",
|
||||
"label" : "建筑面积(m2)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "PROJECTMANAGER",
|
||||
"label" : "项目经理",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"placeholder" : "请点击右侧的图标"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTOR",
|
||||
"label" : "承包人",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "INVOICEFORM",
|
||||
"label" : "征税方式",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/INVOICE_INVOICEFORM"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "TAXRATE",
|
||||
"label" : "税率(%)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "APPROVALTYPE",
|
||||
"label" : "审批类型",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_SPECIALTYSUBCON_APPROVERTYPE"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "SIGNUPTIME",
|
||||
"label" : "签约日期",
|
||||
"required" : true,
|
||||
"type" : "input-date"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "DEPARTMENT",
|
||||
"label" : "组织部门",
|
||||
"required" : true,
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
||||
"searchable" : true,
|
||||
"onlyLeaf" : true
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTUALFORM",
|
||||
"label" : "合同形式",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/CONTRACTFORM"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "GENERALCONTRACTOR",
|
||||
"label" : "发包人(总包方)",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/1964fda1-b020-4a8b-95e2-dc32de36e74a/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "STARTTIME",
|
||||
"label" : "开工日期",
|
||||
"required" : true,
|
||||
"type" : "input-date"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "ENDTIME",
|
||||
"label" : "竣工日期",
|
||||
"required" : true,
|
||||
"type" : "input-date"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTUALMONEY",
|
||||
"label" : "合同价款(元)",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "CAPITAL",
|
||||
"label" : "大写",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "WORKINGDAYS",
|
||||
"label" : "工期(天)",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "SEALCOUNT",
|
||||
"label" : "合同份数",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "TYPEOFPAYMENT",
|
||||
"label" : "付款方式",
|
||||
"required" : true,
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTUALSCOPE",
|
||||
"label" : "承包范围",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTUALCONTENT",
|
||||
"label" : "评审内容",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "MEMBERUSERS",
|
||||
"label" : "合同备案人员",
|
||||
"type" : "input-table",
|
||||
"id" : "eg-MEMBERUSERS",
|
||||
"addable" : true,
|
||||
"removable" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "PROJECTROLE",
|
||||
"label" : "项目角色",
|
||||
"quickEdit" : {
|
||||
"name" : "PROJECTROLE",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_PROJECTMANAGERROLE",
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "5e114578-2fc7-42e4-9de5-7d0fa71da072",
|
||||
"editgridField" : "MEMBERUSERS",
|
||||
"scriptKey" : "ba1d2448-d67f-4997-a778-ef867d153b8d",
|
||||
"changedField" : "PROJECTROLE",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-MEMBERUSERS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "USERID",
|
||||
"label" : "姓名",
|
||||
"type" : "tpl",
|
||||
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : USERID}",
|
||||
"quickEdit" : false
|
||||
}, {
|
||||
"name" : "SELECT",
|
||||
"label" : "SELECT",
|
||||
"quickEdit" : {
|
||||
"name" : "SELECT",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/a801e436-9176-4794-a48b-5c7020697697/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "5e114578-2fc7-42e4-9de5-7d0fa71da072",
|
||||
"editgridField" : "MEMBERUSERS",
|
||||
"scriptKey" : "dbc3a8fd-f663-4905-b013-ed64d13d81f9",
|
||||
"changedField" : "SELECT",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"MEMBERUSERS" : "${__rendererData.MEMBERUSERS || MEMBERUSERS}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-MEMBERUSERS",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
} ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DOCUMENT",
|
||||
"label" : "附件",
|
||||
"required" : true,
|
||||
"type" : "input-file",
|
||||
"receiver" : "/api/file/upload?tableName=VIEW_PM_CONTRACTUALREVIEW&businessKey=${VIEW_PM_CONTRACTUALREVIEW_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "CREATEBY",
|
||||
"label" : "申请人",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/090981ba-0c10-4d84-92dc-80e226594480/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"placeholder" : "请点击右侧的图标"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 3,
|
||||
"body" : [ {
|
||||
"name" : "CREATETIME",
|
||||
"label" : "申请日期",
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "VIEW_PM_CONTRACTUALREVIEW_ID",
|
||||
"label" : "主键",
|
||||
"type" : "static",
|
||||
"tpl" : "${VIEW_PM_CONTRACTUALREVIEW_ID_DISPLAY__ ? VIEW_PM_CONTRACTUALREVIEW_ID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : VIEW_PM_CONTRACTUALREVIEW_ID)}",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "REVIEWID",
|
||||
"label" : "总包合同评审",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "PREPAY",
|
||||
"label" : "预付款(元)",
|
||||
"hidden" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "PROGRESSPAYRATE",
|
||||
"label" : "进度支付比例(%)",
|
||||
"hidden" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 0
|
||||
}, {
|
||||
"name" : "BALANCEPAYRATE",
|
||||
"label" : "竣工结算支付比例(%)",
|
||||
"hidden" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 0
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user