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:
443
转换产物-attach/schema/67f976d2-dc64-4e94-96e2-4e5e62944e5f.json
Normal file
443
转换产物-attach/schema/67f976d2-dc64-4e94-96e2-4e5e62944e5f.json
Normal file
@@ -0,0 +1,443 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "催款函、告知函",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_LAWMANAGEMENT_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "FORMNO",
|
||||
"label" : "单号",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RECEIVEDATE",
|
||||
"label" : "接收日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "INVOLVEDUNIT",
|
||||
"label" : "所涉单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "所涉项目",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RESPONSIBLEPERSON",
|
||||
"label" : "责任人",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "PHONE",
|
||||
"label" : "责任人手机号",
|
||||
"type" : "input-number",
|
||||
"precision" : 0,
|
||||
"step" : 1
|
||||
}, {
|
||||
"name" : "OTHERSUNIT",
|
||||
"label" : "对方单位",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "RECEIVEDMATERIALS",
|
||||
"label" : "收到材料",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "CAUSEOFACTION",
|
||||
"label" : "案由",
|
||||
"type" : "input-text"
|
||||
}, {
|
||||
"name" : "SUBJECTMONEY",
|
||||
"label" : "标的(元)",
|
||||
"type" : "input-number",
|
||||
"precision" : 2
|
||||
}, {
|
||||
"name" : "REMINDTIME",
|
||||
"label" : "提醒时间",
|
||||
"type" : "input-datetime-range"
|
||||
}, {
|
||||
"name" : "DEALTYPE",
|
||||
"label" : "处理状态",
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_LAWMANAGEMENT_DEALTYPE"
|
||||
}, {
|
||||
"name" : "LAWTYPE",
|
||||
"label" : "登记类型",
|
||||
"hidden" : true,
|
||||
"type" : "select",
|
||||
"clearable" : true,
|
||||
"source" : "/api/poc/dict/PM_LAWMANAGEMENT_LAWTYPE",
|
||||
"value" : "2"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_LAWMANAGEMENT_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "FORMNO",
|
||||
"label" : "单号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "RECEIVEDATE",
|
||||
"label" : "接收日期",
|
||||
"width" : 200,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "INVOLVEDUNIT",
|
||||
"label" : "所涉单位",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "PROJECTNAME",
|
||||
"label" : "所涉项目",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "RESPONSIBLEPERSON",
|
||||
"label" : "责任人",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "PHONE",
|
||||
"label" : "责任人手机号",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "OTHERSUNIT",
|
||||
"label" : "对方单位",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "RECEIVEDMATERIALS",
|
||||
"label" : "收到材料",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "CAUSEOFACTION",
|
||||
"label" : "案由",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "SUBJECTMONEY",
|
||||
"label" : "标的(元)",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "REMINDTIME",
|
||||
"label" : "提醒时间",
|
||||
"width" : 200,
|
||||
"type" : "datetime",
|
||||
"format" : "YYYY-MM-DD HH:mm",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "DEALTYPE",
|
||||
"label" : "处理状态",
|
||||
"width" : 120,
|
||||
"type" : "mapping",
|
||||
"map" : {
|
||||
"1" : "待处理",
|
||||
"2" : "进行中",
|
||||
"3" : "已完结"
|
||||
}
|
||||
} ],
|
||||
"headerToolbar" : [ {
|
||||
"type" : "button",
|
||||
"id" : "添加",
|
||||
"label" : "添加",
|
||||
"level" : "primary",
|
||||
"actionType" : "dialog",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "添加",
|
||||
"size" : "lg",
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/3c848fcf-6135-4f34-81be-d2d543172fbb?format=amis",
|
||||
"api" : {
|
||||
"method" : "get",
|
||||
"url" : "/api/form/PM_LAWMANAGEMENT/defaults?templateId=3c848fcf-6135-4f34-81be-d2d543172fbb"
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_LAWMANAGEMENT_ADD?__egtpl=3c848fcf-6135-4f34-81be-d2d543172fbb",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "修改",
|
||||
"label" : "修改",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "修改",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"&" : "${selectedItems[0]}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/6b9bc763-ae4a-430d-88f0-d61e9066d2e8?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8",
|
||||
"data" : {
|
||||
"PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_LAWMANAGEMENT_UPDATE?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "删除",
|
||||
"label" : "删除",
|
||||
"level" : "danger",
|
||||
"actionType" : "ajax",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"confirmText" : "确认要删除此记录吗?",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_LAWMANAGEMENT_DELETE",
|
||||
"data" : {
|
||||
"ids" : "${selectedItems|pick:PM_LAWMANAGEMENT_ID|join:','}"
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"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/6b9bc763-ae4a-430d-88f0-d61e9066d2e8?format=amis",
|
||||
"static" : true,
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=6b9bc763-ae4a-430d-88f0-d61e9066d2e8",
|
||||
"data" : {
|
||||
"PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "处理情况登记",
|
||||
"label" : "处理情况登记",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "处理情况登记",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"&" : "${selectedItems[0]}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/b249b71d-53bc-4f24-a0cb-63316d499504?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504",
|
||||
"data" : {
|
||||
"PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_LAWMANAGEMENT_DETAILS_ADD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, {
|
||||
"type" : "button",
|
||||
"id" : "解锁",
|
||||
"label" : "解锁",
|
||||
"actionType" : "dialog",
|
||||
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
||||
"dialog" : {
|
||||
"type" : "dialog",
|
||||
"title" : "解锁",
|
||||
"size" : "lg",
|
||||
"data" : {
|
||||
"&" : "${selectedItems[0]}"
|
||||
},
|
||||
"body" : {
|
||||
"type" : "service",
|
||||
"schemaApi" : "get:/api/page/schema/b249b71d-53bc-4f24-a0cb-63316d499504?format=amis",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/flow/PM_LAWMANAGEMENT_LOAD?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504",
|
||||
"data" : {
|
||||
"PM_LAWMANAGEMENT_ID" : "${PM_LAWMANAGEMENT_ID}"
|
||||
},
|
||||
"responseData" : {
|
||||
"&" : "${result}"
|
||||
}
|
||||
},
|
||||
"onEvent" : {
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions" : [ {
|
||||
"type" : "button",
|
||||
"label" : "保存",
|
||||
"level" : "primary",
|
||||
"actionType" : "submit",
|
||||
"api" : "POST:/api/flow/PM_LAWMANAGEMENT_UNLOCK?__egtpl=b249b71d-53bc-4f24-a0cb-63316d499504",
|
||||
"close" : true
|
||||
}, {
|
||||
"type" : "button",
|
||||
"label" : "取消",
|
||||
"actionType" : "close"
|
||||
} ]
|
||||
}
|
||||
}, "pagination" ],
|
||||
"primaryField" : "PM_LAWMANAGEMENT_ID",
|
||||
"onEvent" : {
|
||||
"selectedChange" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 3,
|
||||
"item" : "${event.data.selectedItems[0]}",
|
||||
"templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult3"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult3.commands}"
|
||||
}
|
||||
} ]
|
||||
},
|
||||
"inited" : {
|
||||
"actions" : [ {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 2,
|
||||
"item" : "${&}",
|
||||
"templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult2"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult2.commands}"
|
||||
}
|
||||
}, {
|
||||
"actionType" : "ajax",
|
||||
"api" : {
|
||||
"method" : "post",
|
||||
"url" : "/api/script/execute-template",
|
||||
"data" : {
|
||||
"seq" : 1,
|
||||
"item" : "${&}",
|
||||
"templateId" : "67f976d2-dc64-4e94-96e2-4e5e62944e5f"
|
||||
}
|
||||
},
|
||||
"outputVar" : "scriptResult1"
|
||||
}, {
|
||||
"actionType" : "replayScriptCommands",
|
||||
"args" : {
|
||||
"commands" : "${event.data.scriptResult1.commands}"
|
||||
}
|
||||
} ]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user