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>
260 lines
6.9 KiB
JSON
260 lines
6.9 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "实名制从业人员基本信息管理",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/GB_WORKER_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "WORKERNAME",
|
|
"label" : "人员姓名",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ZJHM",
|
|
"label" : "证件号码",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "XB",
|
|
"label" : "性别",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "ZZ",
|
|
"label" : "住址",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CSRQ",
|
|
"label" : "出生日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "MZ",
|
|
"label" : "民族",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "SFZYXQRQ",
|
|
"label" : "身份证有效起日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "SFZYXZRQ",
|
|
"label" : "身份证有效止日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "SFZFZJG",
|
|
"label" : "身份证发证机关",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PROVINCE",
|
|
"label" : "所属省份",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CITY",
|
|
"label" : "所属城市",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "LXDH",
|
|
"label" : "联系电话",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "URGENCY",
|
|
"label" : "紧急联系人",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "URGENCYPHONE",
|
|
"label" : "紧急联系人电话",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "HEALTH",
|
|
"label" : "健康状况",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "PARTY",
|
|
"label" : "是否党员",
|
|
"type" : "checkbox"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "GB_WORKER_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "WORKERNAME",
|
|
"label" : "人员姓名",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ZJHM",
|
|
"label" : "证件号码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "XB",
|
|
"label" : "性别",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "ZZ",
|
|
"label" : "住址",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CSRQ",
|
|
"label" : "出生日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "MZ",
|
|
"label" : "民族",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SFZYXQRQ",
|
|
"label" : "身份证有效起日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "SFZYXZRQ",
|
|
"label" : "身份证有效止日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "SFZFZJG",
|
|
"label" : "身份证发证机关",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "PROVINCE",
|
|
"label" : "所属省份",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CITY",
|
|
"label" : "所属城市",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "LXDH",
|
|
"label" : "联系电话",
|
|
"width" : 200
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/74694513-6219-4d07-b7de-3cdbb34f9b0c?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/GB_WORKER/defaults?templateId=74694513-6219-4d07-b7de-3cdbb34f9b0c"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_WORKER_ADDORUPLDATE?__egtpl=74694513-6219-4d07-b7de-3cdbb34f9b0c",
|
|
"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/74694513-6219-4d07-b7de-3cdbb34f9b0c?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_WORKER_LOAD?__egtpl=74694513-6219-4d07-b7de-3cdbb34f9b0c",
|
|
"data" : {
|
|
"GB_WORKER_ID" : "${GB_WORKER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/GB_WORKER_ADDORUPLDATE?__egtpl=74694513-6219-4d07-b7de-3cdbb34f9b0c",
|
|
"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/GB_WORKER_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:GB_WORKER_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/74694513-6219-4d07-b7de-3cdbb34f9b0c?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/GB_WORKER_LOAD?__egtpl=74694513-6219-4d07-b7de-3cdbb34f9b0c",
|
|
"data" : {
|
|
"GB_WORKER_ID" : "${GB_WORKER_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "GB_WORKER_ID"
|
|
}
|
|
} |