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:
262
转换产物-attach/schema/217ff6db-f823-4e72-b364-c9694b7e2342.json
Normal file
262
转换产物-attach/schema/217ff6db-f823-4e72-b364-c9694b7e2342.json
Normal file
@@ -0,0 +1,262 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "劳务合同登记关联评审编辑",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "PM_LABOURSUBCONTRACTREVIEW_ID",
|
||||
"label" : "劳务分包合同评审表ID",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/4e703695-c7d9-4484-b728-a79d3efcb4dc/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "SUBCONTRACTNAME",
|
||||
"label" : "分包合同名称",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "SUBCONTRACTNUMBER",
|
||||
"label" : "分包合同编号",
|
||||
"required" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTCATEGORY",
|
||||
"label" : "合同类别",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/CONTRACTCATEGORY"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTFORM",
|
||||
"label" : "合同形式",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/CONTRACTFORM"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTMONEY",
|
||||
"label" : "合同价款(元)",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"min" : 0.0
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "PM_PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"type" : "static",
|
||||
"tpl" : "${PM_PROJECTID_DISPLAY__ ? PM_PROJECTID_DISPLAY__ : (PROJECTNAME ? PROJECTNAME : PM_PROJECTID)}",
|
||||
"value" : "${currentProject}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "ORGID",
|
||||
"label" : "(分)公司",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/SYS_ORG/list?perPage=500"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "FIRSTPARTY",
|
||||
"label" : "甲方",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "LABOURNAME",
|
||||
"label" : "劳务队组",
|
||||
"type" : "static",
|
||||
"tpl" : "${LABOURNAME_DISPLAY__ ? LABOURNAME_DISPLAY__ : (SHOWNAME ? SHOWNAME : LABOURNAME)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "LC_COMANY",
|
||||
"label" : "劳务公司",
|
||||
"type" : "static",
|
||||
"tpl" : "${LC_COMANY_DISPLAY__ ? LC_COMANY_DISPLAY__ : (UNITNAME ? UNITNAME : LC_COMANY)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "CONTACTPERSONID",
|
||||
"label" : "联系人",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/OA_CONTACTPERSONINFO/list?perPage=500"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "CONTACTPHONENUMBER",
|
||||
"label" : "联系电话",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "SIGNUPTIME",
|
||||
"label" : "签约日期",
|
||||
"required" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "BYCONTRACTTYPE",
|
||||
"label" : "承包方式",
|
||||
"disabled" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/bycontracttype"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 7,
|
||||
"body" : [ {
|
||||
"name" : "STARTDATE",
|
||||
"label" : "开始日期",
|
||||
"required" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 5,
|
||||
"body" : [ {
|
||||
"name" : "ENDDATE",
|
||||
"label" : "结束日期",
|
||||
"required" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "SUBCONTENT",
|
||||
"label" : "分包内容",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DOCUMENT",
|
||||
"label" : "附件",
|
||||
"required" : true,
|
||||
"type" : "input-file",
|
||||
"receiver" : "/api/file/upload?tableName=PM_LABOURSUBCONTRACTREGISTER&businessKey=${PM_LABOURSUBCONTRACTREGISTER_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "CONTRACTSTATUS",
|
||||
"label" : "合同状态",
|
||||
"required" : true,
|
||||
"hidden" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/CONTRACTSTATUS",
|
||||
"value" : "1"
|
||||
}, {
|
||||
"name" : "STOPREASON",
|
||||
"label" : "终止原因",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "EXPIRYDATE",
|
||||
"label" : "终止日期",
|
||||
"hidden" : true,
|
||||
"type" : "input-date"
|
||||
}, {
|
||||
"name" : "PM_LABOURSUBCONTRACTREGISTER_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user