Files
eip4-platform/转换产物-attach/schema/b07a648b-e5e0-4c83-8f2e-7e2918502a75.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

532 lines
16 KiB
JSON

{
"type" : "page",
"title" : "福利保险档案编辑(待删除)",
"body" : {
"type" : "form",
"id" : "eip4-edit-form",
"title" : "",
"mode" : "horizontal",
"horizontal" : {
"leftFixed" : 120
},
"body" : [ {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "USERID",
"label" : "姓名",
"required" : true,
"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" : "请点击右侧的图标"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "SERIALNO",
"label" : "员工工号",
"disabled" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ORGID",
"label" : "所属(分)公司",
"type" : "static",
"tpl" : "${ORGID_DISPLAY__ ? ORGID_DISPLAY__ : (NAME ? NAME : ORGID)}"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "WELFARECATEGORYID",
"label" : "福利保险类别",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/758dd939-fb17-4cca-8a71-3044feb4934f/list",
"labelField" : "_label",
"valueField" : "_id",
"modalMode" : "dialog",
"modalSize" : "lg",
"pickerSchema" : {
"mode" : "table",
"headerToolbar" : [ {
"type" : "search-box",
"name" : "q",
"placeholder" : "输入关键字搜索"
} ],
"footerToolbar" : [ "pagination" ]
}
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "WELFAREACCOUNT",
"label" : "福利账号",
"required" : true,
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "OPENACCOUNTDATE",
"label" : "开户日期",
"required" : true,
"type" : "input-date"
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "OPENACCOUNTREASON",
"label" : "开户原因",
"type" : "input-text"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "STARTYEAR",
"label" : "开始年",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "STARTMONTH",
"label" : "开始月",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 4,
"body" : [ {
"name" : "PAYCATEGORY",
"label" : "缴费人员类别",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_PAYCATEGORY"
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ENDYEAR",
"label" : "结束年",
"type" : "input-number",
"precision" : 0,
"step" : 1
} ]
}, {
"md" : 4,
"body" : [ {
"name" : "ENDMONTH",
"label" : "结束月",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "CHANGERECORDS",
"label" : "账户变动记录",
"type" : "input-table",
"id" : "eg-CHANGERECORDS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "CHANGEREASON",
"label" : "变动原因",
"quickEdit" : {
"name" : "CHANGEREASON",
"required" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_CHANGEREASON",
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b07a648b-e5e0-4c83-8f2e-7e2918502a75",
"editgridField" : "CHANGERECORDS",
"scriptKey" : "1dd4f119-dd65-4216-9dee-f1733c1506ee",
"changedField" : "CHANGEREASON",
"row" : "${__rendererData}",
"parent" : {
"CHANGERECORDS" : "${__rendererData.CHANGERECORDS || CHANGERECORDS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-CHANGERECORDS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "CHANGEDATE",
"label" : "变动日期",
"quickEdit" : {
"name" : "CHANGEDATE",
"required" : true,
"type" : "input-date"
}
}, {
"name" : "CHANGEEXPLAIN",
"label" : "变动说明",
"quickEdit" : {
"name" : "CHANGEEXPLAIN",
"type" : "input-text"
}
}, {
"name" : "STARTYEAR",
"label" : "开始年",
"quickEdit" : {
"name" : "STARTYEAR",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "STARTMONTH",
"label" : "开始月",
"quickEdit" : {
"name" : "STARTMONTH",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "ENDYEAR",
"label" : "结束年",
"quickEdit" : {
"name" : "ENDYEAR",
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "ENDMONTH",
"label" : "结束月",
"quickEdit" : {
"name" : "ENDMONTH",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "CHANGESTATE",
"label" : "状态",
"quickEdit" : {
"name" : "CHANGESTATE",
"required" : true,
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_CHANGESTATE"
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"type" : "grid",
"columns" : [ {
"md" : 12,
"body" : [ {
"name" : "PAYBASERECORDS",
"label" : "缴费基数记录",
"required" : true,
"type" : "input-table",
"id" : "eg-PAYBASERECORDS",
"addable" : true,
"removable" : true,
"staticOn" : "${__readonly}",
"columns" : [ {
"name" : "ORGPAYRULEID",
"label" : "ORGPAYRULEID",
"quickEdit" : {
"name" : "ORGPAYRULEID",
"required" : true,
"type" : "picker",
"clearable" : true,
"source" : "/api/picker/8d94c108-521c-4227-a23d-2e3849379dcf/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" : "b07a648b-e5e0-4c83-8f2e-7e2918502a75",
"editgridField" : "PAYBASERECORDS",
"scriptKey" : "10b4cdd2-d397-4351-8814-73347c36f0aa",
"changedField" : "ORGPAYRULEID",
"row" : "${__rendererData}",
"parent" : {
"PAYBASERECORDS" : "${__rendererData.PAYBASERECORDS || PAYBASERECORDS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-PAYBASERECORDS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "PROVINCE",
"label" : "省份",
"quickEdit" : {
"name" : "PROVINCE",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_PROVINCE"
}
}, {
"name" : "CITY",
"label" : "市",
"quickEdit" : {
"name" : "CITY",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_CITY"
}
}, {
"name" : "CONUTY",
"label" : "区县",
"quickEdit" : {
"name" : "CONUTY",
"disabled" : true,
"type" : "select",
"clearable" : true,
"source" : "/api/poc/dict/HR_WELFARE_CONUTY"
}
}, {
"name" : "STARTYEAR",
"label" : "开始年",
"quickEdit" : {
"name" : "STARTYEAR",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "STARTMONTH",
"label" : "开始月",
"quickEdit" : {
"name" : "STARTMONTH",
"required" : true,
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "ENDYEAR",
"label" : "结束年",
"quickEdit" : {
"name" : "ENDYEAR",
"type" : "input-number",
"precision" : 0,
"step" : 1
}
}, {
"name" : "ENDMONTH",
"label" : "结束月",
"quickEdit" : {
"name" : "ENDMONTH",
"type" : "input-number",
"precision" : 0,
"step" : 1,
"min" : 1.0,
"max" : 12.0
}
}, {
"name" : "PAYBASEMONEY",
"label" : "缴费基数(元)",
"quickEdit" : {
"name" : "PAYBASEMONEY",
"required" : true,
"type" : "input-number",
"precision" : 2,
"onEvent" : {
"change" : {
"actions" : [ {
"actionType" : "ajax",
"outputVar" : "egRow",
"args" : {
"api" : {
"method" : "post",
"url" : "/api/script/execute-editgrid-row",
"data" : {
"templateId" : "b07a648b-e5e0-4c83-8f2e-7e2918502a75",
"editgridField" : "PAYBASERECORDS",
"scriptKey" : "35824481-e34a-4e40-b37d-44a68b1972e7",
"changedField" : "PAYBASEMONEY",
"row" : "${__rendererData}",
"parent" : {
"PAYBASERECORDS" : "${__rendererData.PAYBASERECORDS || PAYBASERECORDS}"
}
}
}
}
}, {
"actionType" : "setValue",
"componentId" : "eg-PAYBASERECORDS",
"args" : {
"index" : "${index}",
"value" : "${egRow.rowSetValues}"
}
}, {
"actionType" : "setValue",
"componentId" : "eip4-edit-form",
"args" : {
"value" : "${egRow.parentSetValues}"
}
} ]
}
}
}
}, {
"name" : "UNITPAYPROPORTION",
"label" : "单位缴费比例(%)",
"quickEdit" : {
"name" : "UNITPAYPROPORTION",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "UNITPAYMONEY",
"label" : "单位缴费(元)",
"quickEdit" : {
"name" : "UNITPAYMONEY",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "PERSONALPAYPROPORTION",
"label" : "个人缴费比例(%)",
"quickEdit" : {
"name" : "PERSONALPAYPROPORTION",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
}, {
"name" : "PERSONALPAYMONEY",
"label" : "个人缴费(元)",
"quickEdit" : {
"name" : "PERSONALPAYMONEY",
"disabled" : true,
"type" : "input-number",
"precision" : 2
}
} ],
"needConfirm" : false
} ]
} ]
}, {
"name" : "HR_WELFAREARCHIVES_ID",
"label" : "主键",
"hidden" : true,
"type" : "input-text"
} ],
"actions" : [ ]
}
}