Files
eip4-platform/转换产物-attach/schema/b5beac80-25fc-4819-89ea-b6ac444b117e.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

289 lines
8.0 KiB
JSON

{
"type" : "page",
"title" : "项目代扣款确认",
"body" : {
"type" : "crud",
"api" : "/api/flow/PM_PROJECTDEBIT_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PROJECTID",
"label" : "工程名称",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/07eef963-fd17-42a5-997c-219f0ec18cff/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"value" : "${currentProject}"
}, {
"name" : "DEBITNUMBER",
"label" : "扣款单号",
"type" : "input-text"
}, {
"name" : "DEBITITEMS",
"label" : "代扣款名目",
"type" : "input-text"
}, {
"name" : "DEBITAMOUNT",
"label" : "扣款金额(元)",
"type" : "input-number",
"precision" : 2
}, {
"name" : "DEBITDATE",
"label" : "扣款日期",
"type" : "input-date-range"
}, {
"name" : "ATTNNAME",
"label" : "经办人",
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/76d2f950-ef40-4eff-89ec-98ad9a4976b9/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"placeholder" : "请点击右侧的图标"
}, {
"name" : "ATTNDEPART",
"label" : "经办部门",
"type" : "tree-select",
"clearable" : true,
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
"searchable" : true,
"onlyLeaf" : true
}, {
"name" : "CONFIRMSTATUS",
"label" : "确认状态",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/confirmationStatus"
} ]
},
"columns" : [ {
"name" : "PM_PROJECTDEBIT_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PROJECTID_DISPLAY__",
"label" : "工程名称",
"width" : 280
}, {
"name" : "DEBITNUMBER",
"label" : "扣款单号",
"width" : 120
}, {
"name" : "DEBITITEMS",
"label" : "代扣款名目",
"width" : 220
}, {
"name" : "DEBITAMOUNT",
"label" : "扣款金额(元)",
"width" : 120
}, {
"name" : "DEBITDATE",
"label" : "扣款日期",
"width" : 90,
"type" : "date",
"format" : "YYYY-MM-DD",
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
}, {
"name" : "ATTNNAME_DISPLAY__",
"label" : "经办人",
"width" : 70
}, {
"name" : "ATTNDEPART_DISPLAY__",
"label" : "经办部门",
"width" : 120
}, {
"name" : "REMARK",
"label" : "备注",
"width" : 200
}, {
"name" : "CONFIRMSTATUS",
"label" : "确认状态",
"width" : 80,
"type" : "mapping",
"map" : {
"1" : "未确认",
"2" : "已确认",
"3" : "作废"
}
}, {
"name" : "CONFIRMPEOPLE_DISPLAY__",
"label" : "确认人",
"width" : 70
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "确认",
"label" : "确认",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要扣款吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECTDEBIT_UPDATECONFIRMSTATUS",
"data" : {
"PM_PROJECTDEBIT_ID" : "${selectedItems[0].PM_PROJECTDEBIT_ID}"
}
}
}, {
"type" : "button",
"id" : "取消确认",
"label" : "取消确认",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要取消扣款吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECTDEBIT_UPDATECANCELCONFIRMSTATUS",
"data" : {
"PM_PROJECTDEBIT_ID" : "${selectedItems[0].PM_PROJECTDEBIT_ID}"
}
}
}, {
"type" : "button",
"id" : "作废",
"label" : "作废",
"actionType" : "ajax",
"disabled" : true,
"confirmText" : "确认要作废吗?",
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECTDEBIT_UPDATECANCELLATION",
"data" : {
"PM_PROJECTDEBIT_ID" : "${selectedItems[0].PM_PROJECTDEBIT_ID}"
}
}
}, {
"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/b914a227-cbbd-4945-aeeb-ffee9c4765b8?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/PM_PROJECTDEBIT_LOAD?__egtpl=b914a227-cbbd-4945-aeeb-ffee9c4765b8",
"data" : {
"PM_PROJECTDEBIT_ID" : "${PM_PROJECTDEBIT_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "打印",
"label" : "打印",
"actionType" : "dialog",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"dialog" : {
"type" : "dialog",
"title" : "项目代扣款申请表",
"size" : "lg",
"data" : {
"PM_PROJECTDEBIT_ID" : "${selectedItems[0].PM_PROJECTDEBIT_ID}"
},
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/7c421365-3994-4aa0-8dfd-ce92218a18eb?format=amis"
},
"actions" : [ {
"type" : "button",
"label" : "关闭",
"actionType" : "close"
} ]
}
}, "pagination" ],
"primaryField" : "PM_PROJECTDEBIT_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "确认"
}, {
"actionType" : "disabled",
"componentId" : "取消确认"
}, {
"actionType" : "disabled",
"componentId" : "作废"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "b5beac80-25fc-4819-89ea-b6ac444b117e"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
},
"inited" : {
"actions" : [ {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 2,
"item" : "${&}",
"templateId" : "b5beac80-25fc-4819-89ea-b6ac444b117e"
}
},
"outputVar" : "scriptResult2"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult2.commands}"
}
} ]
}
}
}
}