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:
223
转换产物-attach/schema/b0400c2c-fb72-4ea8-adbb-c5c4c301d0c8.json
Normal file
223
转换产物-attach/schema/b0400c2c-fb72-4ea8-adbb-c5c4c301d0c8.json
Normal file
@@ -0,0 +1,223 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "(设计项目)项目报销申请编辑",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "FORMNO",
|
||||
"label" : "表单号",
|
||||
"required" : true,
|
||||
"type" : "input-text",
|
||||
"maxLength" : 50
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "ORGID",
|
||||
"label" : "报销(分)公司",
|
||||
"type" : "static",
|
||||
"tpl" : "${ORGID_DISPLAY__ ? ORGID_DISPLAY__ : (NAME ? NAME : ORGID)}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "DEPARTID",
|
||||
"label" : "报销部门",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/SYS_DEPART/list?perPage=500",
|
||||
"value" : "${currentDepart}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "INVOICEORNOT",
|
||||
"label" : "有无发票",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/HAVE_NO"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "REIMBURSEMENTNAME",
|
||||
"label" : "经办人",
|
||||
"type" : "static",
|
||||
"tpl" : "${REIMBURSEMENTNAME_DISPLAY__ ? REIMBURSEMENTNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : REIMBURSEMENTNAME)}",
|
||||
"value" : "${currentUser}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PAYEE",
|
||||
"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" : "请点击右侧的图标",
|
||||
"value" : "${currentUser}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "TOTALMONEY",
|
||||
"label" : "报销金额(元)",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CAPITAL",
|
||||
"label" : "大写",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPROVALTYPE",
|
||||
"label" : "审批类型",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/REIMBURSEMENT_APPROVALTYPE"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "SUBJECTIDS",
|
||||
"label" : "报销科目",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/OA_SUBJECT/list?perPage=500"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DETAIL",
|
||||
"label" : "报销明细",
|
||||
"required" : true,
|
||||
"type" : "input-table",
|
||||
"id" : "eg-DETAIL",
|
||||
"addable" : true,
|
||||
"removable" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ ],
|
||||
"needConfirm" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "REIMBURSEMENTREASON",
|
||||
"label" : "报销事由",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DOCUMENT",
|
||||
"label" : "附件",
|
||||
"type" : "input-file",
|
||||
"receiver" : "/api/file/upload?tableName=PM_REIMBURSEMENTAPPLY&businessKey=${PM_REIMBURSEMENTAPPLY_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_REIMBURSEMENTAPPLY_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "填报日期",
|
||||
"required" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "BILLSTATE",
|
||||
"label" : "确认状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/YESNO",
|
||||
"value" : "0",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "CONFIRMATIONDATE",
|
||||
"label" : "确认日期",
|
||||
"type" : "input-date",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "CONFIRMATIONPEOPLE",
|
||||
"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" : "请点击右侧的图标",
|
||||
"hidden" : true
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user