Files
eip4-platform/转换产物-attach/schema/0f917d92-25dc-47a5-a50a-12c921379c4c.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

218 lines
6.1 KiB
JSON

{
"type" : "page",
"title" : "项目人员工资编辑页面",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PRJNUMBER",
"label" : "实名制项目",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/0d674631-7a53-44b0-bb41-6aa201ede8ec/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "CONSTRUCTCOMP",
"label" : "施工企业",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PAYMENTDATE",
"label" : "工资月份",
"required" : true,
"type" : "input-date"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "BANKNAME",
"label" : "银行名称",
"required" : true,
"type" : "input-text"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 6,
"body" : [ {
"name" : "PAYROLLNAME",
"label" : "工资单名称",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 6,
"body" : [ {
"name" : "CREATEBY",
"label" : "创建人",
"disabled" : true,
"type" : "input-text",
"value" : "${currentUser}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "WORKERS",
"label" : "人员",
"type" : "input-table",
"id" : "eg-WORKERS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "NAME",
"label" : "姓名",
"quickEdit" : {
"name" : "NAME",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/d4ff4352-5cfb-452b-a069-262ba2446a38/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
},
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "0f917d92-25dc-47a5-a50a-12c921379c4c",
"editgridField" : "WORKERS",
"scriptKey" : "a52ecf3b-5bbd-4c1f-a4b0-26992309907e",
"changedField" : "NAME",
"row" : "${__rendererData}",
"parent" : {
"WORKERS" : "${__rendererData.WORKERS || WORKERS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-WORKERS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "KQTS",
"label" : "当月考勤天",
"quickEdit" : {
"name" : "KQTS",
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "LJJE",
"label" : "累计拟发金额",
"quickEdit" : {
"name" : "LJJE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "YFJE",
"label" : "应发金额",
"quickEdit" : {
"name" : "YFJE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "NFJE",
"label" : "拟发金额",
"quickEdit" : {
"name" : "NFJE",
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "MEMO",
"label" : "备注",
"quickEdit" : {
"name" : "MEMO",
"type" : "input-text"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "GB_WORKERPAYMENT_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
}, {
"name" : "ISPAY",
"label" : "已发放",
"disabled" : true,
"hidden" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/YESNO",
"value" : "0"
} ],
"actions" : [ ]
}
}