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:
186
转换产物-attach/schema/6847e3da-3fe5-4f33-ae88-05f954532a50.json
Normal file
186
转换产物-attach/schema/6847e3da-3fe5-4f33-ae88-05f954532a50.json
Normal file
@@ -0,0 +1,186 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "批量转账付款记录",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_BATCHTRANSFER_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "CUSTID",
|
||||
"label" : "客户号",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "BUSINESSCODE",
|
||||
"label" : "业务类型",
|
||||
"hidden" : true,
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "BATCHSERIALNO",
|
||||
"label" : "批次流水号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"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" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "APPLYOPERATOR",
|
||||
"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" : "请点击右侧的图标"
|
||||
}, {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "付款日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "ACCOUNTNUMBER",
|
||||
"label" : "银行账号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "TOTALAMT",
|
||||
"label" : " 总金额",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "TOTALNUMBER",
|
||||
"label" : "总笔数",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
}, {
|
||||
"name" : "APPLYSTATUS",
|
||||
"label" : "申请状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/WJ_BANK_APPLYSTATUS"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_BATCHTRANSFER_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "CUSTID",
|
||||
"label" : "客户号",
|
||||
"width" : 100,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "BUSINESSCODE",
|
||||
"label" : "业务类型",
|
||||
"width" : 100,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "BATCHSERIALNO",
|
||||
"label" : "批次流水号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "PROJECTID_DISPLAY__",
|
||||
"label" : "工程名称",
|
||||
"width" : 300
|
||||
}, {
|
||||
"name" : "ACCOUNTNUMBER",
|
||||
"label" : "银行账号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "AVAILBAL",
|
||||
"label" : "可用余额(当日)",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "TOTALAMT",
|
||||
"label" : "总金额",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "TOTALNUMBER",
|
||||
"label" : "总笔数",
|
||||
"width" : 80
|
||||
}, {
|
||||
"name" : "APPLYOPERATOR_DISPLAY__",
|
||||
"label" : "付款人",
|
||||
"width" : 100
|
||||
}, {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "付款日期",
|
||||
"width" : 100,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "APPLYSTATUS",
|
||||
"label" : "申请状态",
|
||||
"width" : 80,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "请求中",
|
||||
"2" : "交易成功",
|
||||
"3" : "交易失败"
|
||||
}
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "查看",
|
||||
"label" : "查看",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "查看",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"&" : "${selectedItems[0]}",
|
||||
"__readonly" : true
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/e382b6a5-4f6f-44e1-aee2-ddb3e475af2e?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_BATCHTRANSFER_LOAD?__egtpl=e382b6a5-4f6f-44e1-aee2-ddb3e475af2e",
|
||||
"data" : {
|
||||
"PM_BATCHTRANSFER_ID" : "${PM_BATCHTRANSFER_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_BATCHTRANSFER_ID"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user