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:
266
转换产物-attach/schema/6001ba24-7889-4bb6-a962-4cd3aed17481.json
Normal file
266
转换产物-attach/schema/6001ba24-7889-4bb6-a962-4cd3aed17481.json
Normal file
@@ -0,0 +1,266 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "开票编辑",
|
||||
"body" : {
|
||||
"type" : "form",
|
||||
"id" : "eip4-edit-form",
|
||||
"title" : "",
|
||||
"mode" : "horizontal",
|
||||
"horizontal" : {
|
||||
"leftFixed" : 120
|
||||
},
|
||||
"body" : [ {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"required" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"value" : "${currentProject}"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "TAXCODE",
|
||||
"label" : "电子票号",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "MONEY",
|
||||
"label" : "开票金额",
|
||||
"required" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "OPENDATE",
|
||||
"label" : "开票日期",
|
||||
"required" : true,
|
||||
"type" : "input-date",
|
||||
"value" : "${now}"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "PAYTYPE",
|
||||
"label" : "付款方式",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/paymentMode"
|
||||
} ]
|
||||
}, {
|
||||
"md" : 6,
|
||||
"body" : [ {
|
||||
"name" : "TOTAL",
|
||||
"label" : "税金合计(元)",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"type" : "grid",
|
||||
"columns" : [ {
|
||||
"md" : 12,
|
||||
"body" : [ {
|
||||
"name" : "TAXES",
|
||||
"label" : "税金明细",
|
||||
"type" : "input-table",
|
||||
"id" : "eg-TAXES",
|
||||
"addable" : false,
|
||||
"removable" : false,
|
||||
"staticOn" : "${__readonly}",
|
||||
"columns" : [ {
|
||||
"name" : "NAME",
|
||||
"label" : "名称",
|
||||
"quickEdit" : {
|
||||
"name" : "NAME",
|
||||
"required" : true,
|
||||
"disabled" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_PROJECTMAKINVOICE_TAXES_TYPE",
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "6001ba24-7889-4bb6-a962-4cd3aed17481",
|
||||
"editgridField" : "TAXES",
|
||||
"scriptKey" : "c147865e-4a39-423d-8eae-945402c3aa14",
|
||||
"changedField" : "NAME",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"TAXES" : "${__rendererData.TAXES || TAXES}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-TAXES",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "TAXESMONEY",
|
||||
"label" : "金额(元)",
|
||||
"quickEdit" : {
|
||||
"name" : "TAXESMONEY",
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "6001ba24-7889-4bb6-a962-4cd3aed17481",
|
||||
"editgridField" : "TAXES",
|
||||
"scriptKey" : "c13414ff-abb3-4442-acbd-85359e99b881",
|
||||
"changedField" : "TAXESMONEY",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"TAXES" : "${__rendererData.TAXES || TAXES}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-TAXES",
|
||||
"args" : {
|
||||
"index" : "${index}",
|
||||
"value" : "${egRow.rowSetValues}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eip4-edit-form",
|
||||
"args" : {
|
||||
"value" : "${egRow.parentSetValues}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"name" : "TAXESPER",
|
||||
"label" : "税率(%)",
|
||||
"quickEdit" : {
|
||||
"name" : "TAXESPER",
|
||||
"disabled" : true,
|
||||
"type" : "input-number",
|
||||
"precision" : 2,
|
||||
"onEvent" : {
|
||||
"change" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"outputVar" : "egRow",
|
||||
"args" : {
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-editgrid-row",
|
||||
"data" : {
|
||||
"templateId" : "6001ba24-7889-4bb6-a962-4cd3aed17481",
|
||||
"editgridField" : "TAXES",
|
||||
"scriptKey" : "e967121f-920a-45b8-b4a8-6ffe1952a6d6",
|
||||
"changedField" : "TAXESPER",
|
||||
"row" : "${__rendererData}",
|
||||
"parent" : {
|
||||
"TAXES" : "${__rendererData.TAXES || TAXES}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"actionType" : "setValue",
|
||||
"componentId" : "eg-TAXES",
|
||||
"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" : "REMARK",
|
||||
"label" : "备注",
|
||||
"type" : "textarea"
|
||||
} ]
|
||||
} ]
|
||||
}, {
|
||||
"name" : "PM_PROJECTMAKINVOICE_ID",
|
||||
"label" : "主键",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RESET",
|
||||
"label" : "RESET",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
} ],
|
||||
"actions" : [ ]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user