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>
94 lines
2.7 KiB
JSON
94 lines
2.7 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "项目部未关联人工",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_PM_NOTRELATIONARTIFICIAL_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "ARTIFICIALPLANID",
|
|
"label" : "工作内容",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/ce158390-2054-427c-9e8e-69db2e3d96f1/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_PM_NOTRELATIONARTIFICIAL_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTID_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 350
|
|
}, {
|
|
"name" : "ARTIFICIALPLANID_DISPLAY__",
|
|
"label" : "工作内容",
|
|
"width" : 260
|
|
}, {
|
|
"name" : "TOTALPRICE",
|
|
"label" : "金额(元)",
|
|
"width" : 120
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/924499a8-83ae-45b9-92a0-162cd84d887b?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_PM_NOTRELATIONARTIFICIAL_LOAD?__egtpl=924499a8-83ae-45b9-92a0-162cd84d887b",
|
|
"data" : {
|
|
"VIEW_PM_NOTRELATIONARTIFICIAL_ID" : "${VIEW_PM_NOTRELATIONARTIFICIAL_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/VIEW_PM_NOTRELATIONARTIFICIAL_UPDATE?__egtpl=924499a8-83ae-45b9-92a0-162cd84d887b",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_PM_NOTRELATIONARTIFICIAL_ID"
|
|
}
|
|
} |