35 lines
853 B
JSON
35 lines
853 B
JSON
{
|
|
"id": "item-update",
|
|
"label": "编辑记录",
|
|
"description": "编辑业务记录并重算派生字段。",
|
|
"replaces": "update",
|
|
"placements": [],
|
|
"executionProfile": "sync",
|
|
"interaction": "form",
|
|
"bind": {
|
|
"tables": ["items"],
|
|
"inputMapping": {
|
|
"id": "$row.$pk",
|
|
"name": "$row.name",
|
|
"note": "$row.note"
|
|
}
|
|
},
|
|
"hostEffects": {
|
|
"onSuccess": ["reloadTable"]
|
|
},
|
|
"inputSchema": {
|
|
"type": "object",
|
|
"required": ["id", "name"],
|
|
"properties": {
|
|
"id": { "type": "number", "title": "编号", "readOnly": true },
|
|
"name": { "type": "string", "title": "名称" },
|
|
"note": { "type": "string", "title": "备注" }
|
|
}
|
|
},
|
|
"entrypoint": {
|
|
"type": "cli",
|
|
"command": "item",
|
|
"args": ["update", "--id", "{{id}}", "--name", "{{name}}", "--note", "{{note}}"]
|
|
}
|
|
}
|