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:
179
转换产物-attach/schema/9450b922-cd24-47f7-a97c-1f42f62b0ac2.json
Normal file
179
转换产物-attach/schema/9450b922-cd24-47f7-a97c-1f42f62b0ac2.json
Normal file
@@ -0,0 +1,179 @@
|
||||
{
|
||||
"type" : "page",
|
||||
"title" : "选择物资采购订单(土建)",
|
||||
"body" : {
|
||||
"type" : "crud",
|
||||
"api" : "/api/flow/PM_MATERIALPURCHASEORDERS_TJ_SEARCH",
|
||||
"syncLocation" : false,
|
||||
"selectable" : true,
|
||||
"checkOnItemClick" : true,
|
||||
"filter" : {
|
||||
"title" : "查询",
|
||||
"body" : [ {
|
||||
"name" : "PROJECTID",
|
||||
"label" : "工程名称",
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/33865715-fb25-41b2-896d-f36168d70d5a/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
},
|
||||
"value" : "${currentProject}"
|
||||
}, {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "申请日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "DELIVERYREQUIRE",
|
||||
"label" : "交货要求",
|
||||
"hidden" : true,
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "CONFIRMATIONDATE",
|
||||
"label" : "订货日期",
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "DELIVERDATE",
|
||||
"label" : "预计到货日期",
|
||||
"hidden" : true,
|
||||
"type" : "input-date-range"
|
||||
}, {
|
||||
"name" : "CONTRACTID",
|
||||
"label" : "物资合同名称",
|
||||
"hidden" : true,
|
||||
"type" : "picker",
|
||||
"clearable" : true,
|
||||
"source" : "/api/picker/c8c73e1b-9ae1-4f71-9361-1fdd89244f2a/list",
|
||||
"labelField" : "_label",
|
||||
"valueField" : "_id",
|
||||
"modalMode" : "dialog",
|
||||
"modalSize" : "lg",
|
||||
"pickerSchema" : {
|
||||
"mode" : "table",
|
||||
"headerToolbar" : [ {
|
||||
"type" : "search-box",
|
||||
"name" : "q",
|
||||
"placeholder" : "输入关键字搜索"
|
||||
} ],
|
||||
"footerToolbar" : [ "pagination" ]
|
||||
}
|
||||
}, {
|
||||
"name" : "MATERIALNAME",
|
||||
"label" : "材料名称",
|
||||
"type" : "input-text"
|
||||
} ]
|
||||
},
|
||||
"columns" : [ {
|
||||
"name" : "PM_MATERIALPURCHASEORDERS_TJ_ID",
|
||||
"label" : "主键",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PURCHASEAPPLYID_DISPLAY__",
|
||||
"label" : "物资采购申请表ID",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "PROJECTID_DISPLAY__",
|
||||
"label" : "工程名称",
|
||||
"width" : 220
|
||||
}, {
|
||||
"name" : "FORMNO",
|
||||
"label" : "表单号",
|
||||
"width" : 120
|
||||
}, {
|
||||
"name" : "DEPARTID_DISPLAY__",
|
||||
"label" : "申请部门",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "APPLYNAME_DISPLAY__",
|
||||
"label" : "申请人",
|
||||
"width" : 70
|
||||
}, {
|
||||
"name" : "APPLYDATE",
|
||||
"label" : "申请日期",
|
||||
"width" : 80,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "CONFIRMATIONDATE",
|
||||
"label" : "订货日期",
|
||||
"width" : 80,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
||||
}, {
|
||||
"name" : "MATERIALLIST",
|
||||
"label" : "物资明细",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "ORDERSDETAILS",
|
||||
"label" : "订单明细",
|
||||
"width" : 180,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "REMARK",
|
||||
"label" : "备注",
|
||||
"width" : 200
|
||||
}, {
|
||||
"name" : "DELIVERYREQUIRE",
|
||||
"label" : "交货要求",
|
||||
"width" : 80,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DELIVERYPLACE",
|
||||
"label" : "送货地点",
|
||||
"width" : 80,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "CONSIGNEE_DISPLAY__",
|
||||
"label" : "收货联系人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "EXPLAIN",
|
||||
"label" : "说明",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "CONFIRMATIONPEOPLE_DISPLAY__",
|
||||
"label" : "确认人",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "DELIVERDATE",
|
||||
"label" : "预计到货日期",
|
||||
"width" : 90,
|
||||
"type" : "date",
|
||||
"format" : "YYYY-MM-DD",
|
||||
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "CONTRACTID_DISPLAY__",
|
||||
"label" : "物资合同名称",
|
||||
"width" : 150,
|
||||
"toggled" : false
|
||||
}, {
|
||||
"name" : "USETYPE",
|
||||
"label" : "物资使用类型",
|
||||
"width" : 200,
|
||||
"toggled" : false
|
||||
} ],
|
||||
"headerToolbar" : [ "pagination" ],
|
||||
"primaryField" : "PM_MATERIALPURCHASEORDERS_TJ_ID"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user