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:
154
转换产物-attach/schema/0b47270f-b164-4947-8d15-031aaa50c39e.json
Normal file
154
转换产物-attach/schema/0b47270f-b164-4947-8d15-031aaa50c39e.json
Normal file
@@ -0,0 +1,154 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "人员证书归还登记-编辑",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "工程名称",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "BORROWDATE",
|
||||
"label" : "借用日期",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PREDICTRETURNDATE",
|
||||
"label" : "预计归还日期",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CARDID",
|
||||
"label" : "证书名称",
|
||||
"type" : "static",
|
||||
"tpl" : "${CARDID_DISPLAY__ ? CARDID_DISPLAY__ : (CARDS ? CARDS : CARDID)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CARDNO",
|
||||
"label" : "证书编号",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "USERID",
|
||||
"label" : "姓名",
|
||||
"type" : "static",
|
||||
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : USERID)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "BORROWUSE",
|
||||
"label" : "借用人",
|
||||
"type" : "static",
|
||||
"tpl" : "${BORROWUSE_DISPLAY__ ? BORROWUSE_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : BORROWUSE)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPLYDEPARTID",
|
||||
"label" : "借用部门",
|
||||
"type" : "static",
|
||||
"tpl" : "${APPLYDEPARTID_DISPLAY__ ? APPLYDEPARTID_DISPLAY__ : (NAME ? NAME : APPLYDEPARTID)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPLYORGID",
|
||||
"label" : "借用(分)公司",
|
||||
"type" : "static",
|
||||
"tpl" : "${APPLYORGID_DISPLAY__ ? APPLYORGID_DISPLAY__ : (NAME ? NAME : APPLYORGID)}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "BORROWREASON",
|
||||
"label" : "借用事由",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "RETURNDATE",
|
||||
"label" : "归还日期",
|
||||
"required" : true,
|
||||
"type" : "input-date"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "RETURNREGISTERUSE",
|
||||
"label" : "归还登记人",
|
||||
"type" : "static",
|
||||
"tpl" : "${RETURNREGISTERUSE_DISPLAY__ ? RETURNREGISTERUSE_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : RETURNREGISTERUSE)}",
|
||||
"value" : "${currentUser}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "RETURNREGISTERDATE",
|
||||
"label" : "归还登记日期",
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "HR_CARDBORROWREGISTER_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "ISRETURN",
|
||||
"label" : "是否归还",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"hidden" : true,
|
||||
"type" : "checkbox",
|
||||
"value" : "1"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user