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>
119 lines
3.3 KiB
JSON
119 lines
3.3 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "选择物资需求总计划需求物资明细信息(土建)",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_PM_MATERIALREQUESTMASTERPLANDETAILS_TJ_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "MATERIALCODE",
|
|
"label" : "材料编码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "MATERIALNAME",
|
|
"label" : "材料名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SPECIFICATIONS",
|
|
"label" : "规格、型号等要求",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNIT",
|
|
"label" : "单位",
|
|
"hidden" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/24200cdd-d99b-4778-a2fb-c4653cda684e/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "RESOURCETYPEID",
|
|
"label" : "物资分类",
|
|
"hidden" : true,
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/fdd10db0-963d-4e67-bf2a-584ba48fca33/tree",
|
|
"searchable" : true
|
|
}, {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"hidden" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/66e57e6d-0cbb-40cf-8b84-c512345734b7/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"value" : "${currentProject}"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_PM_MATERIALREQUESTMASTERPLANDETAILS_TJ_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MATERIALCODE",
|
|
"label" : "材料编码",
|
|
"width" : 160
|
|
}, {
|
|
"name" : "MATERIALNAME",
|
|
"label" : "材料名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SPECIFICATIONS",
|
|
"label" : "规格、型号等要求",
|
|
"width" : 180
|
|
}, {
|
|
"name" : "UNIT_DISPLAY__",
|
|
"label" : "单位",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "RESOURCETYPEID_DISPLAY__",
|
|
"label" : "物资分类",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "MATERIALID",
|
|
"label" : "材料信息库表材料ID",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "MATERIALALIASID",
|
|
"label" : "材料别名表材料ID",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ "pagination" ],
|
|
"primaryField" : "VIEW_PM_MATERIALREQUESTMASTERPLANDETAILS_TJ_ID"
|
|
}
|
|
} |