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>
309 lines
8.4 KiB
JSON
309 lines
8.4 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "已确认单位维护(内部定制)",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_UNITINFO_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "UNITNAME",
|
|
"label" : "单位名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITPROPERTY",
|
|
"label" : "单位性质",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/UNITPROPERTY"
|
|
}, {
|
|
"name" : "UNITNO",
|
|
"label" : "单位编码",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CORPORATE",
|
|
"label" : "法人代表",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "CORPORATEPHONE",
|
|
"label" : "法人代表电话",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITABBREVIATION",
|
|
"label" : "单位简称",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITPHONE",
|
|
"label" : "单位电话",
|
|
"hidden" : true,
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "UNITTYPE",
|
|
"label" : "单位分类",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/UNITTYPE"
|
|
}, {
|
|
"name" : "INDUSTRY",
|
|
"label" : "行业",
|
|
"type" : "input-text"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_UNITINFO_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITNAME",
|
|
"label" : "单位名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "UNITTYPE",
|
|
"label" : "单位分类",
|
|
"width" : 200,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "其它单位",
|
|
"2" : "物资供应商",
|
|
"3" : "机械供应商",
|
|
"4" : "专业分包商",
|
|
"5" : "劳务队组",
|
|
"6" : "其它供应商",
|
|
"7" : "建设单位",
|
|
"8" : "监理单位",
|
|
"9" : "勘察单位",
|
|
"10" : "设计单位",
|
|
"11" : "审计单位",
|
|
"12" : "施工单位",
|
|
"13" : "劳务公司",
|
|
"14" : "代理单位",
|
|
"15" : "本公司组织"
|
|
}
|
|
}, {
|
|
"name" : "UNITNO",
|
|
"label" : "单位编码",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "UNITABBREVIATION",
|
|
"label" : "单位简称",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITPROPERTY",
|
|
"label" : "单位性质",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "外资",
|
|
"2" : "合资",
|
|
"3" : "国有",
|
|
"4" : "民营",
|
|
"5" : "个体",
|
|
"6" : "其它"
|
|
}
|
|
}, {
|
|
"name" : "UNITPHONE",
|
|
"label" : "单位电话",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "CORPORATE",
|
|
"label" : "法人代表",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "UNITADDRESS",
|
|
"label" : "地址",
|
|
"width" : 250
|
|
}, {
|
|
"name" : "TAXPAYERIDNO",
|
|
"label" : "纳税人识别号",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "REGISTERDATE",
|
|
"label" : "登记日期",
|
|
"width" : 200,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/b9d8da33-f939-4cf9-9bf7-737b5d118884?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_UNITINFO/defaults?templateId=b9d8da33-f939-4cf9-9bf7-737b5d118884"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_UNITINFO_ADD?__egtpl=b9d8da33-f939-4cf9-9bf7-737b5d118884",
|
|
"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/b9d8da33-f939-4cf9-9bf7-737b5d118884?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_UNITINFO_LOAD?__egtpl=b9d8da33-f939-4cf9-9bf7-737b5d118884",
|
|
"data" : {
|
|
"OA_UNITINFO_ID" : "${OA_UNITINFO_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_UNITINFO_UPDATE?__egtpl=b9d8da33-f939-4cf9-9bf7-737b5d118884",
|
|
"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/OA_UNITINFO_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:OA_UNITINFO_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/b9d8da33-f939-4cf9-9bf7-737b5d118884?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_UNITINFO_LOAD?__egtpl=b9d8da33-f939-4cf9-9bf7-737b5d118884",
|
|
"data" : {
|
|
"OA_UNITINFO_ID" : "${OA_UNITINFO_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "合并单位信息",
|
|
"label" : "合并单位信息",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "合并单位信息",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/7ecb4af5-c443-4a64-8468-912b176d68ce?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_UNITINFO/defaults?templateId=7ecb4af5-c443-4a64-8468-912b176d68ce"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_UNITINFO_UNION?__egtpl=7ecb4af5-c443-4a64-8468-912b176d68ce",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_UNITINFO_ID",
|
|
"onEvent" : {
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "7f0af3fa-fefd-4c1c-a69a-d7101877a3d1"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |