Files
eip4-platform/转换产物-attach/schema/f5b6f7d9-d294-4ce4-823e-82329d9e2ec8.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

321 lines
9.3 KiB
JSON

{
"type" : "page",
"title" : "项目人员工资单",
"body" : {
"type" : "crud",
"api" : "/api/flow/GB_WORKERPAYMENT_SEARCH",
"syncLocation" : false,
"selectable" : true,
"checkOnItemClick" : true,
"filter" : {
"title" : "查询",
"body" : [ {
"name" : "PRJNUMBER",
"label" : "实名制项目",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
}, {
"name" : "CONSTRUCTCOMP",
"label" : "施工企业",
"type" : "input-text"
}, {
"name" : "BANKNAME",
"label" : "银行名称",
"type" : "input-text"
}, {
"name" : "PAYMENTSTARTDATE",
"label" : "工资开始日期",
"type" : "input-date"
}, {
"name" : "PAYMENTENDDATE",
"label" : "工资结束日期",
"type" : "input-date"
}, {
"name" : "PAYROLLNAME",
"label" : "工资单名称",
"type" : "input-text"
}, {
"name" : "PAYMOD",
"label" : "支付模式",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/GB_WORKERPAYMENT_ZFMS"
}, {
"name" : "ISPAY",
"label" : "已发放",
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO"
}, {
"name" : "STATUS",
"label" : "审批状态",
"type" : "select",
"clearable" : true,
"searchable" : true,
"source" : "/api/picker//list?q=${term}&page=${page}&perPage=${perPage}"
} ]
},
"columns" : [ {
"name" : "GB_WORKERPAYMENT_ID",
"label" : "主键",
"width" : 200,
"toggled" : false
}, {
"name" : "PRJNUMBER_DISPLAY__",
"label" : "实名制项目",
"width" : 200
}, {
"name" : "CONSTRUCTCOMP",
"label" : "施工企业",
"width" : 200
}, {
"name" : "BANKNAME",
"label" : "银行名称",
"width" : 200
}, {
"name" : "PAYMENTSTARTDATE",
"label" : "工资开始日期",
"width" : 200
}, {
"name" : "PAYMENTENDDATE",
"label" : "工资结束日期",
"width" : 200
}, {
"name" : "PAYROLLNAME",
"label" : "工资单名称",
"width" : 200
}, {
"name" : "PAYMOD",
"label" : "支付模式",
"width" : 200
}, {
"name" : "ISPAY",
"label" : "已发放",
"width" : 200,
"type" : "mapping",
"map" : {
"0" : "否",
"1" : "是"
}
}, {
"name" : "STATUS",
"label" : "审批状态",
"width" : 200,
"type" : "mapping",
"map" : {
"1" : "未提交",
"2" : "处理中",
"3" : "通过",
"4" : "未通过",
"5" : "重新提交",
"6" : "作废"
}
} ],
"headerToolbar" : [ {
"type" : "button",
"id" : "添加",
"label" : "添加",
"level" : "primary",
"actionType" : "dialog",
"dialog" : {
"type" : "dialog",
"title" : "添加",
"size" : "lg",
"body" : {
"type" : "service",
"schemaApi" : "get:/api/page/schema/0f917d92-25dc-47a5-a50a-12c921379c4c?format=amis",
"api" : {
"method" : "get",
"url" : "/api/form/GB_WORKERPAYMENT/defaults?templateId=0f917d92-25dc-47a5-a50a-12c921379c4c"
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_WORKERPAYMENT_ADD?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"close" : true
}, {
"type" : "button",
"label" : "保存并提交审批",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_WORKERPAYMENT_SAVE_AND_SUBMIT?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"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/0f917d92-25dc-47a5-a50a-12c921379c4c?format=amis",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_WORKERPAYMENT_LOAD?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"data" : {
"GB_WORKERPAYMENT_ID" : "${GB_WORKERPAYMENT_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
},
"actions" : [ {
"type" : "button",
"label" : "保存",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_WORKERPAYMENT_UPDATE?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"close" : true
}, {
"type" : "button",
"label" : "保存并提交审批",
"level" : "primary",
"actionType" : "submit",
"api" : "POST:/api/flow/GB_WORKERPAYMENT_SAVE_AND_SUBMIT?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"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/GB_WORKERPAYMENT_DELETE",
"data" : {
"ids" : "${selectedItems|pick:GB_WORKERPAYMENT_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/0f917d92-25dc-47a5-a50a-12c921379c4c?format=amis",
"static" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/GB_WORKERPAYMENT_LOAD?__egtpl=0f917d92-25dc-47a5-a50a-12c921379c4c",
"data" : {
"GB_WORKERPAYMENT_ID" : "${GB_WORKERPAYMENT_ID}"
},
"responseData" : {
"&" : "${result}"
}
}
}
}
}, {
"type" : "button",
"id" : "提交审批",
"label" : "提交审批",
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/flow/GB_WORKERPAYMENT_SUBMIT",
"data" : {
"GB_WORKERPAYMENT_ID" : "${selectedItems[0].GB_WORKERPAYMENT_ID}"
}
},
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
}, {
"type" : "button",
"id" : "发放",
"label" : "发放",
"actionType" : "ajax",
"disabled" : true,
"api" : {
"method" : "post",
"url" : "/api/flow/GB_WORKERPAYMENT_ISPAY",
"data" : {
"GB_WORKERPAYMENT_ID" : "${selectedItems[0].GB_WORKERPAYMENT_ID}"
}
}
}, {
"type" : "button",
"id" : "查看审批",
"label" : "查看审批",
"icon" : "fa fa-search",
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
"onEvent" : {
"click" : {
"actions" : [ {
"actionType" : "openApprovalDrawer",
"args" : {
"taskName" : "审批详情",
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
"businessKey" : "${selectedItems[0].GB_WORKERPAYMENT_ID}",
"businessTable" : "GB_WORKERPAYMENT",
"readOnly" : true,
"mode" : "read"
}
} ]
}
}
}, "pagination" ],
"primaryField" : "GB_WORKERPAYMENT_ID",
"onEvent" : {
"selectedChange" : {
"actions" : [ {
"actionType" : "disabled",
"componentId" : "发放"
}, {
"actionType" : "ajax",
"api" : {
"method" : "post",
"url" : "/api/script/execute-template",
"data" : {
"seq" : 1,
"item" : "${event.data.selectedItems[0]}",
"templateId" : "f5b6f7d9-d294-4ce4-823e-82329d9e2ec8"
}
},
"outputVar" : "scriptResult1"
}, {
"actionType" : "replayScriptCommands",
"args" : {
"commands" : "${event.data.scriptResult1.commands}"
}
} ]
}
}
}
}