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>
214 lines
6.0 KiB
JSON
214 lines
6.0 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "固定资产变动",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_FIXEDASSETS_CHANGE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "ASSETSNO",
|
|
"label" : "资产编码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ASSETSNAME",
|
|
"label" : "资产名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CHANGEDATE",
|
|
"label" : "变动日期",
|
|
"type" : "input-date-range"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "CHANGERECORDNO",
|
|
"label" : "变动单编号",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ASSETSCARDNO",
|
|
"label" : "卡片编号",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "ASSETSNO",
|
|
"label" : "资产编码",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ASSETSNAME",
|
|
"label" : "资产名称",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "STANDARD",
|
|
"label" : "规格型号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "CHANGEDATE",
|
|
"label" : "变动日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "ORIGINALCONTENT",
|
|
"label" : "变动前内容",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "NOWCONTENT",
|
|
"label" : "变动后内容",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CHANGEREASON",
|
|
"label" : "变动原因",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "OA_FIXEDASSETS_CHANGE_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ATTNNAME_DISPLAY__",
|
|
"label" : "经办人",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "CHANGESTATUS",
|
|
"label" : "变动原因",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/75edd537-cd2a-42de-9cf1-c75f0da82404?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_FIXEDASSETS_CHANGE/defaults?templateId=75edd537-cd2a-42de-9cf1-c75f0da82404"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FIXEDASSETS_CHANGE_ADD?__egtpl=75edd537-cd2a-42de-9cf1-c75f0da82404",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并更新卡片",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FIXEDASSETS_CHANGE_ADD_AND_UPDATE?__egtpl=75edd537-cd2a-42de-9cf1-c75f0da82404",
|
|
"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]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/24dcf21c-abcc-40e5-98e0-75c7ded64335?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FIXEDASSETS_CHANGE_LOAD?__egtpl=24dcf21c-abcc-40e5-98e0-75c7ded64335",
|
|
"data" : {
|
|
"OA_FIXEDASSETS_CHANGE_ID" : "${OA_FIXEDASSETS_CHANGE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
},
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "b233e091-ae6f-401a-bb5f-b145c8aa9ea4"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_FIXEDASSETS_CHANGE_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "b233e091-ae6f-401a-bb5f-b145c8aa9ea4"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 3,
|
|
"item" : "${&}",
|
|
"templateId" : "b233e091-ae6f-401a-bb5f-b145c8aa9ea4"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult3"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult3.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |