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>
324 lines
8.9 KiB
JSON
324 lines
8.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "组织缴费规则",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/HR_ORGPAYRULE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "ORGID",
|
|
"label" : "组织",
|
|
"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" ]
|
|
}
|
|
}, {
|
|
"name" : "WELFARECATEGORYCITYID",
|
|
"label" : "福利保险类别",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/82914bee-9e5e-4ed6-993f-16a0eab54feb/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "PROVINCE",
|
|
"label" : "省/自治区",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_WELFARE_PROVINCE"
|
|
}, {
|
|
"name" : "CITY",
|
|
"label" : "市",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_WELFARE_CITY"
|
|
}, {
|
|
"name" : "CONUTY",
|
|
"label" : "区县",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/HR_WELFARE_CONUTY"
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "HR_ORGPAYRULE_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ORGID_DISPLAY__",
|
|
"label" : "组织",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "WELFARECATEGORYCITYID_DISPLAY__",
|
|
"label" : "福利保险类别",
|
|
"width" : 120
|
|
}, {
|
|
"name" : "PROVINCE",
|
|
"label" : "省/自治区",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "北京市",
|
|
"2" : "天津市",
|
|
"3" : "河北省",
|
|
"4" : "山西省",
|
|
"5" : "内蒙古自治区",
|
|
"6" : "辽宁省",
|
|
"7" : "吉林省",
|
|
"8" : "黑龙江省",
|
|
"9" : "上海市",
|
|
"10" : "江苏省",
|
|
"11" : "浙江省",
|
|
"12" : "安徽省",
|
|
"13" : "福建省",
|
|
"16" : "山东省",
|
|
"17" : "江西省",
|
|
"18" : "河南省",
|
|
"19" : "湖北省",
|
|
"20" : "湖南省",
|
|
"21" : "广东省",
|
|
"22" : "广西壮族自治区",
|
|
"23" : "海南省",
|
|
"24" : "重庆市",
|
|
"25" : "四川省",
|
|
"26" : "贵州省",
|
|
"27" : "云南省",
|
|
"28" : "西藏自治区",
|
|
"29" : "陕西省",
|
|
"30" : "甘肃省",
|
|
"31" : "青海省",
|
|
"32" : "宁夏回族自治区",
|
|
"33" : "新疆维吾尔自治区",
|
|
"34" : "香港特别行政区",
|
|
"35" : "澳门特别行政区",
|
|
"36" : "台湾省"
|
|
}
|
|
}, {
|
|
"name" : "CITY",
|
|
"label" : "市",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "苏州市",
|
|
"10" : "连云港市",
|
|
"11" : "常州市",
|
|
"12" : "泰州市",
|
|
"13" : "宿迁市",
|
|
"2" : "南京市",
|
|
"3" : "无锡市",
|
|
"4" : "镇江市",
|
|
"5" : "南通市",
|
|
"6" : "扬州市",
|
|
"7" : "盐城市",
|
|
"8" : "徐州市",
|
|
"9" : "淮安市"
|
|
}
|
|
}, {
|
|
"name" : "CONUTY",
|
|
"label" : "区县",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "工业园区",
|
|
"10" : "昆山市",
|
|
"2" : "姑苏区",
|
|
"3" : "相城区",
|
|
"4" : "吴中区",
|
|
"5" : "虎丘区",
|
|
"6" : "吴江区",
|
|
"7" : "张家港市",
|
|
"8" : "常熟市",
|
|
"9" : "太仓巿",
|
|
"100" : "锡山区",
|
|
"101" : "惠山区",
|
|
"102" : "滨湖区",
|
|
"103" : "梁溪区",
|
|
"104" : "新吴区",
|
|
"105" : "江阴市",
|
|
"106" : "宜兴市"
|
|
}
|
|
}, {
|
|
"name" : "STARTYEAR",
|
|
"label" : "开始年",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "STARTMONTH",
|
|
"label" : "开始月",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "ENDYEAR",
|
|
"label" : "结束年",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "ENDMONTH",
|
|
"label" : "结束月",
|
|
"width" : 60
|
|
}, {
|
|
"name" : "BASEONLINE",
|
|
"label" : "缴费基数上限",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "BASEOFFLINE",
|
|
"label" : "缴费基数下限",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "OPENINGBANK",
|
|
"label" : "开户银行",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "ACCOUNTNUMBER",
|
|
"label" : "银行账号",
|
|
"width" : 120
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/848d90d3-e00f-45df-ba41-f66453afebaf?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/HR_ORGPAYRULE/defaults?templateId=848d90d3-e00f-45df-ba41-f66453afebaf"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ORGPAYRULE_ADD?__egtpl=848d90d3-e00f-45df-ba41-f66453afebaf",
|
|
"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/848d90d3-e00f-45df-ba41-f66453afebaf?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_ORGPAYRULE_LOAD?__egtpl=848d90d3-e00f-45df-ba41-f66453afebaf",
|
|
"data" : {
|
|
"HR_ORGPAYRULE_ID" : "${HR_ORGPAYRULE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/HR_ORGPAYRULE_UPDATE?__egtpl=848d90d3-e00f-45df-ba41-f66453afebaf",
|
|
"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/HR_ORGPAYRULE_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:HR_ORGPAYRULE_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/848d90d3-e00f-45df-ba41-f66453afebaf?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/HR_ORGPAYRULE_LOAD?__egtpl=848d90d3-e00f-45df-ba41-f66453afebaf",
|
|
"data" : {
|
|
"HR_ORGPAYRULE_ID" : "${HR_ORGPAYRULE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "HR_ORGPAYRULE_ID"
|
|
}
|
|
} |