Files
eip4-platform/转换产物-attach/schema/41790f50-c1b0-448e-98c7-c8c306a3fbf9.json
zhengwr 8fe377b0c8 feat(blueprint): master-detail-v1 编译器分支 + PageBlueprintChild
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>
2026-06-20 15:16:30 +08:00

273 lines
7.5 KiB
JSON

{
"type" : "page",
"title" : "投标保证金退款登记(通用)",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_TENDERBONDREGISTER_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "FORMNO",
"label" : "表单号",
"type" : "input-text"
}, {
"name" : "PM_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" ]
},
"value" : "${currentProject}"
}, {
"name" : "PAYMONEYDATE",
"label" : "付款日期",
"type" : "input-date-range"
}, {
"name" : "RECEIPTUNITNAME",
"label" : "收款单位",
"type" : "input-text"
}, {
"name" : "PAYMONEYTYPE",
"label" : "付款方式",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/paymentMode"
}, {
"name" : "BACKSTATUS",
"label" : "退款情况",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/TENDERBOND_BACKSTATUS"
}, {
"name" : "STATUS",
"label" : "审批状态",
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/WFSTATUS",
"value" : "3"
} ]
},
"columns" : [ {
"name" : "PM_TENDERBONDREGISTER_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "FORMNO",
"label" : "表单号",
"width" : 200
}, {
"name" : "PM_PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 150
}, {
"name" : "PAYMONEYDATE",
"label" : "付款日期",
"width" : 80,
"type" : "datetime",
"format" : "YYYY-MM-DD HH:mm",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "RECEIPTUNITNAME",
"label" : "收款单位全称",
"width" : 120
}, {
"name" : "RECEIPTUNITACCOUNT",
"label" : "收款单位账号",
"width" : 100
}, {
"name" : "ABOUCHEMENTBANK",
"label" : "汇入行",
"width" : 100
}, {
"name" : "MONEY",
"label" : "金额(元)",
"width" : 100
}, {
"name" : "PAYMONEYUNIT",
"label" : "付款单位",
"width" : 100
}, {
"name" : "PAYMONEYTYPE",
"label" : "付款方式",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "汇票",
"2" : "转账",
"3" : "现金",
"4" : "支票"
}
}, {
"name" : "BACKMONEYS",
"label" : "退款金额(元)",
"width" : 100
}, {
"name" : "TRUEBACKMONEY",
"label" : "实际退款金额(元)",
"width" : 100
}, {
"name" : "BACKSTATUS",
"label" : "退款情况",
"width" : 65,
"type" : "mapping",
"map" : {
"0" : "未退款",
"1" : "已退部分",
"2" : "已退款"
}
}, {
"name" : "BACKDATE",
"label" : "退款日期",
"width" : 100,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "REMARK",
"label" : "备注",
"width" : 200,
"toggled" : false
} ],
"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/0534de43-a122-4b69-bdd5-86a25996b17f?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_TENDERBONDREGISTER_LOAD_INFO?__egtpl=0534de43-a122-4b69-bdd5-86a25996b17f",
"data" : {
"PM_TENDERBONDREGISTER_ID" : "${PM_TENDERBONDREGISTER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_TENDERBONDREGISTER_UPDATE_BACKSTATUS?__egtpl=0534de43-a122-4b69-bdd5-86a25996b17f",
"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/fb6ea99c-bd7a-4c77-a7db-a36287312f0e?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_TENDERBONDREGISTER_LOAD?__egtpl=fb6ea99c-bd7a-4c77-a7db-a36287312f0e",
"data" : {
"PM_TENDERBONDREGISTER_ID" : "${PM_TENDERBONDREGISTER_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/PM_TENDERBONDREGISTER_UPDATESTATUS?__egtpl=fb6ea99c-bd7a-4c77-a7db-a36287312f0e",
"close" : true
}, {
"type" : "button",
"label" : "取消",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_TENDERBONDREGISTER_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "41790f50-c1b0-448e-98c7-c8c306a3fbf9"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${&}",
"templateId" : "41790f50-c1b0-448e-98c7-c8c306a3fbf9"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}