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:
237
转换产物-attach/schema/7fd58f6d-20f8-41a7-bd4c-e95bbcfce741.json
Normal file
237
转换产物-attach/schema/7fd58f6d-20f8-41a7-bd4c-e95bbcfce741.json
Normal file
@@ -0,0 +1,237 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "办公付款申请编辑(审批人)",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PAYMENTAPPLYCODE",
|
||||
"label" : "付款单据号",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "INVOICEORNOT",
|
||||
"label" : "有无发票",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/HAVE_NO"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTMONEY",
|
||||
"label" : "合同价款(元)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CONTRACTPAIDMONEY",
|
||||
"label" : "已付金额(元)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PARTB",
|
||||
"label" : "用款单位",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/d5c99764-931b-4f8a-8db7-d7bffc2089b0/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PAYMETHOD",
|
||||
"label" : "支付方式",
|
||||
"required" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PROJECTFUNDS_PAYMETHOD",
|
||||
"value" : "1"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "ACCOUNTNUMBER",
|
||||
"label" : "银行账号",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/OA_BANKACCOUNTINFO/list?perPage=500"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "OPENINGBANK",
|
||||
"label" : "开户银行",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "PAYEEUNITNAME",
|
||||
"label" : "用款单位全称",
|
||||
"disabled" : true,
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPLYPRICE",
|
||||
"label" : "本次申请付款金额(元)",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "CAPITAL",
|
||||
"label" : "大写",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPROVEDAMOUNT",
|
||||
"label" : "批准金额(元)",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "APPLYCONTENT",
|
||||
"label" : "申请内容",
|
||||
"required" : true,
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "REMARK",
|
||||
"label" : "备注",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "DOCUMENT",
|
||||
"label" : "附件",
|
||||
"disabled" : true,
|
||||
"type" : "input-file",
|
||||
"receiver" : "/api/file/upload?tableName=PM_PAYMENTAPPLY&businessKey=${PM_PAYMENTAPPLY_ID}",
|
||||
"downloadUrl" : "/api/file/${id}",
|
||||
"multiple" : true,
|
||||
"staticOn" : "${__readonly}",
|
||||
"joinValues" : false,
|
||||
"extractValue" : false
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "OPERATOR",
|
||||
"label" : "申请人",
|
||||
"type" : "static",
|
||||
"tpl" : "${OPERATOR_DISPLAY__ ? OPERATOR_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : OPERATOR)}",
|
||||
"value" : "${currentUser}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "DEPARTID",
|
||||
"label" : "申请部门",
|
||||
"required" : true,
|
||||
"type" : "tree-select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
||||
"searchable" : true,
|
||||
"onlyLeaf" : true
|
||||
} ]
|
||||
}, {
|
||||
"md" : 4,
|
||||
"body" : [ {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "申请日期",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_PAYMENTAPPLY_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "COMPLETION",
|
||||
"label" : "完成情况",
|
||||
"type" : "input-text",
|
||||
"hidden" : true
|
||||
}, {
|
||||
"name" : "PAYMETTYPE",
|
||||
"label" : "付款类型",
|
||||
"required" : true,
|
||||
"hidden" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PROJECTFUNDS_PAYMETTYPE",
|
||||
"value" : "2"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user