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>
305 lines
9.0 KiB
JSON
305 lines
9.0 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" : "FORMNO",
|
|
"label" : "单据号",
|
|
"required" : true,
|
|
"type" : "input-text"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "PAYYEAR",
|
|
"label" : "缴交年度",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "PAYMONTH",
|
|
"label" : "缴交月份",
|
|
"required" : true,
|
|
"type" : "input-number",
|
|
"precision" : 0,
|
|
"step" : 1,
|
|
"min" : 1.0,
|
|
"max" : 12.0
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "PAYDATE",
|
|
"label" : "缴交日期",
|
|
"required" : true,
|
|
"type" : "input-date"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "APPLYNAME",
|
|
"label" : "申请人",
|
|
"type" : "static",
|
|
"tpl" : "${APPLYNAME_DISPLAY__ ? APPLYNAME_DISPLAY__ : (DISPLAYNAME ? DISPLAYNAME : APPLYNAME)}",
|
|
"value" : "${currentUser}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "DEPARTID",
|
|
"label" : "申请部门",
|
|
"required" : true,
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/SYS_DEPART/list?perPage=500",
|
|
"value" : "${currentDepart}"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"required" : true,
|
|
"type" : "input-date",
|
|
"value" : "${now}"
|
|
} ]
|
|
}, {
|
|
"md" : 4,
|
|
"body" : [ {
|
|
"name" : "ORGID",
|
|
"label" : "组织",
|
|
"required" : true,
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/35e321b3-a511-4cfb-ba29-ce8541cef747/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
},
|
|
"value" : "${orgId}"
|
|
} ]
|
|
}, {
|
|
"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" ]
|
|
}
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"name" : "PAYEXPLAIN",
|
|
"label" : "缴交说明",
|
|
"type" : "textarea"
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"type" : "grid",
|
|
"columns" : [ {
|
|
"md" : 12,
|
|
"body" : [ {
|
|
"type" : "flex",
|
|
"justify" : "flex-start",
|
|
"alignItems" : "center",
|
|
"style" : {
|
|
"paddingLeft" : "120px",
|
|
"marginBottom" : "4px"
|
|
},
|
|
"items" : [ {
|
|
"name" : "SELECT",
|
|
"label" : "选择",
|
|
"type" : "button",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"id" : "egadddlgSELECT",
|
|
"title" : "",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/picker/73d412d1-ff9e-4a60-86f0-661c344dda8a/list",
|
|
"mode" : "table",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"multiple" : true,
|
|
"keepItemSelectionOnPageChange" : true,
|
|
"primaryField" : "_id",
|
|
"labelField" : "_label",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"placeholder" : "输入关键字搜索",
|
|
"name" : "q"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ],
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "setValue",
|
|
"componentId" : "egadddlgSELECT",
|
|
"args" : {
|
|
"value" : {
|
|
"__egpicked" : "${event.data.selectedItems}"
|
|
}
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "确定",
|
|
"level" : "primary",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "addItem",
|
|
"componentId" : "eg-WELFAREPAYDETAILLIST",
|
|
"args" : {
|
|
"item" : "${ARRAYMAP(__egpicked, item => ({USERID: item.USERID, DEPARTID: item.MASTERDEPART, POSITIONID: item.MASTERPOSITION, PAYBASEMONEY: item.PAYBASEMONEY, UNITPAYPROPORTION: item.UNITPAYPROPORTION, PERSONALPAYPROPORTION: item.PERSONALPAYPROPORTION, UNITPAYMONEY: item.UNITPAYMONEY, PERSONALPAYMONEY: item.PERSONALPAYMONEY}))}"
|
|
}
|
|
}, {
|
|
"actionType" : "closeDialog"
|
|
} ]
|
|
}
|
|
}
|
|
} ]
|
|
},
|
|
"hiddenOn" : "${__readonly}"
|
|
} ]
|
|
}, {
|
|
"name" : "WELFAREPAYDETAILLIST",
|
|
"label" : "福利保险缴交明细",
|
|
"required" : true,
|
|
"type" : "input-table",
|
|
"id" : "eg-WELFAREPAYDETAILLIST",
|
|
"addable" : false,
|
|
"removable" : true,
|
|
"staticOn" : "${__readonly}",
|
|
"columns" : [ {
|
|
"name" : "USERID",
|
|
"label" : "员工",
|
|
"type" : "tpl",
|
|
"tpl" : "${USERID_DISPLAY__ ? USERID_DISPLAY__ : USERID}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "POSITIONID",
|
|
"label" : "岗位",
|
|
"type" : "tpl",
|
|
"tpl" : "${POSITIONID_DISPLAY__ ? POSITIONID_DISPLAY__ : POSITIONID}",
|
|
"quickEdit" : false
|
|
}, {
|
|
"name" : "PAYBASEMONEY",
|
|
"label" : "缴费基数(元)",
|
|
"quickEdit" : {
|
|
"name" : "PAYBASEMONEY",
|
|
"required" : true,
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "UNITPAYPROPORTION",
|
|
"label" : "单位缴费比例(%)",
|
|
"quickEdit" : {
|
|
"name" : "UNITPAYPROPORTION",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "PERSONALPAYPROPORTION",
|
|
"label" : "个人缴费比例(%)",
|
|
"quickEdit" : {
|
|
"name" : "PERSONALPAYPROPORTION",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "UNITPAYMONEY",
|
|
"label" : "单位缴费(元)",
|
|
"quickEdit" : {
|
|
"name" : "UNITPAYMONEY",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
}, {
|
|
"name" : "PERSONALPAYMONEY",
|
|
"label" : "个人缴费(元)",
|
|
"quickEdit" : {
|
|
"name" : "PERSONALPAYMONEY",
|
|
"disabled" : true,
|
|
"type" : "input-number",
|
|
"precision" : 2
|
|
}
|
|
} ],
|
|
"needConfirm" : false
|
|
} ]
|
|
} ]
|
|
}, {
|
|
"name" : "HR_WELFAREPAY_ID",
|
|
"label" : "主键",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"type" : "group",
|
|
"body" : [ ]
|
|
} ],
|
|
"actions" : [ ]
|
|
}
|
|
} |