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>
407 lines
13 KiB
JSON
407 lines
13 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" : "PAYSCHEMEID",
|
|
"label" : "薪资方案",
|
|
"type" : "static",
|
|
"tpl" : "${PAYSCHEMEID_DISPLAY__ ? PAYSCHEMEID_DISPLAY__ : (NAME ? NAME : PAYSCHEMEID)}"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "USERID",
|
|
"label" : "用户",
|
|
"type" : "static",
|
|
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : USERID)}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "ISPAIDSOCIAL",
|
|
"label" : "是否缴交社保",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO",
|
|
"value" : "1"
|
|
} ]
|
|
}, {
|
|
"md" : 6,
|
|
"body" : [ {
|
|
"name" : "ANNUALSALARY",
|
|
"label" : "年薪(元)",
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "PAYARCHIVES",
|
|
"label" : "薪资档案",
|
|
"type" : "input-table",
|
|
"id" : "eg-PAYARCHIVES",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "PAYITEMID",
|
|
"label" : "薪资项目",
|
|
"quickEdit" : {
|
|
"name" : "PAYITEMID",
|
|
"required" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/00f6638e-72c7-4834-96ff-904935375951/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" : "335c1881-5c7e-452d-b20f-7ca045caadd2",
|
|
"editgridField" : "PAYARCHIVES",
|
|
"scriptKey" : "e35bf191-3e06-4d35-8208-b468421eef18",
|
|
"changedField" : "PAYITEMID",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"PAYARCHIVES" : "${__rendererData.PAYARCHIVES || PAYARCHIVES}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-PAYARCHIVES",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "PAYGRADE",
|
|
"label" : "薪资档级",
|
|
"quickEdit" : {
|
|
"name" : "PAYGRADE",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_PAY_GRADE",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "335c1881-5c7e-452d-b20f-7ca045caadd2",
|
|
"editgridField" : "PAYARCHIVES",
|
|
"scriptKey" : "e35bf191-3e06-4d35-8208-b468421eef18",
|
|
"changedField" : "PAYGRADE",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"PAYARCHIVES" : "${__rendererData.PAYARCHIVES || PAYARCHIVES}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-PAYARCHIVES",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "PAYMONEY",
|
|
"label" : "薪资项目值",
|
|
"quickEdit" : {
|
|
"name" : "PAYMONEY",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "STARTDATE",
|
|
"label" : "生效月",
|
|
"quickEdit" : {
|
|
"name" : "STARTDATE",
|
|
"required" : true,
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "ENDDATE",
|
|
"label" : "失效月",
|
|
"quickEdit" : {
|
|
"name" : "ENDDATE",
|
|
"type" : "input-date"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "PAYTAXMETHOD",
|
|
"label" : "纳税方式",
|
|
"type" : "input-table",
|
|
"id" : "eg-PAYTAXMETHOD",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "TAXINFO",
|
|
"label" : "征税情况",
|
|
"quickEdit" : {
|
|
"name" : "TAXINFO",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_PAYTAX_INFO",
|
|
"onEvent" : {
|
|
"change" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"outputVar" : "egRow",
|
|
"args" : {
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-editgrid-row",
|
|
"data" : {
|
|
"templateId" : "335c1881-5c7e-452d-b20f-7ca045caadd2",
|
|
"editgridField" : "PAYTAXMETHOD",
|
|
"scriptKey" : "d28eb420-32e5-42fa-90db-fa54dac361ab",
|
|
"changedField" : "TAXINFO",
|
|
"row" : "${__rendererData}",
|
|
"parent" : {
|
|
"PAYTAXMETHOD" : "${__rendererData.PAYTAXMETHOD || PAYTAXMETHOD}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eg-PAYTAXMETHOD",
|
|
"args" : {
|
|
"index" : "${index}",
|
|
"value" : "${egRow.rowSetValues}"
|
|
}
|
|
}, {
|
|
"actionType" : "setValue",
|
|
"componentId" : "eip4-edit-form",
|
|
"args" : {
|
|
"value" : "${egRow.parentSetValues}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"name" : "TAXTYPE",
|
|
"label" : "代缴方式",
|
|
"quickEdit" : {
|
|
"name" : "TAXTYPE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_PAYTAX_TYPE"
|
|
}
|
|
}, {
|
|
"name" : "REDUCE",
|
|
"label" : "减征比例(%)",
|
|
"quickEdit" : {
|
|
"name" : "REDUCE",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "REDUCEFEE",
|
|
"label" : "附加费减除费用",
|
|
"quickEdit" : {
|
|
"name" : "REDUCEFEE",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}
|
|
}, {
|
|
"name" : "STARTYEAR",
|
|
"label" : "开始年",
|
|
"quickEdit" : {
|
|
"name" : "STARTYEAR",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 1000.0,
|
|
"max" : 9999.0
|
|
}
|
|
}, {
|
|
"name" : "STARTMONTH",
|
|
"label" : "开始月",
|
|
"quickEdit" : {
|
|
"name" : "STARTMONTH",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"min" : 1.0,
|
|
"max" : 12.0
|
|
}
|
|
}, {
|
|
"name" : "ENDYEAR",
|
|
"label" : "结束年",
|
|
"quickEdit" : {
|
|
"name" : "ENDYEAR",
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"min" : 1000.0,
|
|
"max" : 9999.0
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "BANKNUM",
|
|
"label" : "账号",
|
|
"type" : "input-table",
|
|
"id" : "eg-BANKNUM",
|
|
"addable" : true,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "BANKNAME",
|
|
"label" : "银行",
|
|
"quickEdit" : {
|
|
"name" : "BANKNAME",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "BANKNUM",
|
|
"label" : "账号",
|
|
"quickEdit" : {
|
|
"name" : "BANKNUM",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "BANKNUMNAME",
|
|
"label" : "账号名称",
|
|
"quickEdit" : {
|
|
"name" : "BANKNUMNAME",
|
|
"type" : "input-text"
|
|
}
|
|
}, {
|
|
"name" : "ISDEFAULT",
|
|
"label" : "默认账号",
|
|
"quickEdit" : {
|
|
"name" : "ISDEFAULT",
|
|
"required" : true,
|
|
"type" : "checkbox",
|
|
"value" : "false"
|
|
}
|
|
}, {
|
|
"name" : "ISEFFECT",
|
|
"label" : "生效",
|
|
"quickEdit" : {
|
|
"name" : "ISEFFECT",
|
|
"type" : "checkbox",
|
|
"value" : "false"
|
|
}
|
|
}, {
|
|
"name" : "EFFECTDATE",
|
|
"label" : "生效日期",
|
|
"quickEdit" : {
|
|
"name" : "EFFECTDATE",
|
|
"type" : "input-date"
|
|
}
|
|
}, {
|
|
"name" : "IVALIDDATE",
|
|
"label" : "失效日期",
|
|
"quickEdit" : {
|
|
"name" : "IVALIDDATE",
|
|
"type" : "input-date"
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "HR_PAYUSERINFO_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SYS_USER_ID",
|
|
"label" : "用户ID",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |