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>
272 lines
7.8 KiB
JSON
272 lines
7.8 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "付款账号维护-五建定制",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/PM_PAYBANKACCOUNTINFO_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "PROJECTID",
|
|
"label" : "工程名称",
|
|
"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" ]
|
|
}
|
|
}, {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "付款账号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "INTERBANKNO",
|
|
"label" : "联行号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PAYEEUNITNAME",
|
|
"label" : "付款方户名",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITCODE",
|
|
"label" : "单位代码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ACCSTATUS",
|
|
"label" : "账户状态",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "PM_PAYBANKACCOUNTINFO_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "付款账号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "INTERBANKNO",
|
|
"label" : "联行号",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "PAYEEUNITNAME",
|
|
"label" : "付款方户名",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "UNITCODE",
|
|
"label" : "单位代码",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "BAL",
|
|
"label" : "余额",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "AVAILBAL",
|
|
"label" : "可用余额(当日)",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "ACCSTATUS",
|
|
"label" : "账户状态",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "PROJECTNUM",
|
|
"label" : "配置项目数",
|
|
"width" : 50
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/adf3d14e-f403-4cfb-b467-5533e006fc75?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/PM_PAYBANKACCOUNTINFO/defaults?templateId=adf3d14e-f403-4cfb-b467-5533e006fc75"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PAYBANKACCOUNTINFO_ADD?__egtpl=adf3d14e-f403-4cfb-b467-5533e006fc75",
|
|
"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]}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/adf3d14e-f403-4cfb-b467-5533e006fc75?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PAYBANKACCOUNTINFO_LOAD?__egtpl=adf3d14e-f403-4cfb-b467-5533e006fc75",
|
|
"data" : {
|
|
"PM_PAYBANKACCOUNTINFO_ID" : "${PM_PAYBANKACCOUNTINFO_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PAYBANKACCOUNTINFO_UPDATE?__egtpl=adf3d14e-f403-4cfb-b467-5533e006fc75",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "删除",
|
|
"label" : "删除",
|
|
"level" : "danger",
|
|
"actionType" : "ajax",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PAYBANKACCOUNTINFO_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:PM_PAYBANKACCOUNTINFO_ID|join:','}"
|
|
}
|
|
}
|
|
}, {
|
|
"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/3f6d5b4c-e39f-4ca2-a944-3ae94e5d0731?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PAYBANKACCOUNTINFO_LOAD?__egtpl=3f6d5b4c-e39f-4ca2-a944-3ae94e5d0731",
|
|
"data" : {
|
|
"PM_PAYBANKACCOUNTINFO_ID" : "${PM_PAYBANKACCOUNTINFO_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/3f6d5b4c-e39f-4ca2-a944-3ae94e5d0731?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PAYBANKACCOUNTINFO_LOAD?__egtpl=3f6d5b4c-e39f-4ca2-a944-3ae94e5d0731",
|
|
"data" : {
|
|
"PM_PAYBANKACCOUNTINFO_ID" : "${PM_PAYBANKACCOUNTINFO_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/PM_PAYBANKACCOUNTINFO_UPDATE?__egtpl=3f6d5b4c-e39f-4ca2-a944-3ae94e5d0731",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "同步",
|
|
"label" : "同步",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确认要删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/PM_PAYBANKACCOUNTINFO_SYNC",
|
|
"data" : {
|
|
"PM_PAYBANKACCOUNTINFO_ID" : "${selectedItems[0].PM_PAYBANKACCOUNTINFO_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, "pagination" ],
|
|
"primaryField" : "PM_PAYBANKACCOUNTINFO_ID"
|
|
}
|
|
} |