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>
365 lines
11 KiB
JSON
365 lines
11 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "印章刻制申请",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_SEALENGRAVINGAPPLY_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "SEALUSEBOUND",
|
|
"label" : "印章使用范围",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_SEALTYPE_SEALUSEBOUND"
|
|
}, {
|
|
"name" : "SEALTYPEID",
|
|
"label" : "印章类型",
|
|
"type" : "picker",
|
|
"clearable" : true,
|
|
"source" : "/api/picker/56620018-dea6-4fe0-9934-f0404069a2de/list",
|
|
"labelField" : "_label",
|
|
"valueField" : "_id",
|
|
"modalMode" : "dialog",
|
|
"modalSize" : "lg",
|
|
"pickerSchema" : {
|
|
"mode" : "table",
|
|
"headerToolbar" : [ {
|
|
"type" : "search-box",
|
|
"name" : "q",
|
|
"placeholder" : "输入关键字搜索"
|
|
} ],
|
|
"footerToolbar" : [ "pagination" ]
|
|
}
|
|
}, {
|
|
"name" : "SEALNAME",
|
|
"label" : "印章名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
}, {
|
|
"name" : "DEPART_ID",
|
|
"label" : "申请部门",
|
|
"type" : "tree-select",
|
|
"clearable" : true,
|
|
"source" : "/api/template/138b7ca7-befb-4a0c-bfc6-ed8fb4d4e434/tree",
|
|
"searchable" : true,
|
|
"onlyLeaf" : true
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"type" : "input-date-range"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "OA_SEALENGRAVINGAPPLY_ID",
|
|
"label" : "主键",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "FORMNO",
|
|
"label" : "表单号",
|
|
"width" : 180
|
|
}, {
|
|
"name" : "DEPART_ID_DISPLAY__",
|
|
"label" : "申请部门",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "APPLYNAME_DISPLAY__",
|
|
"label" : "申请人",
|
|
"width" : 80
|
|
}, {
|
|
"name" : "APPLYDATE",
|
|
"label" : "申请日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "SEALNAME",
|
|
"label" : "印章名称",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "SEALUSEBOUND",
|
|
"label" : "印章使用范围",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1370" : "总公司",
|
|
"1371" : "子公司类",
|
|
"1372" : "分公司类",
|
|
"1374" : "项目部"
|
|
}
|
|
}, {
|
|
"name" : "SEALTYPEID_DISPLAY__",
|
|
"label" : "印章类型",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "APPLYREASON",
|
|
"label" : "申请刻制原因",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "PROJECTNAME_DISPLAY__",
|
|
"label" : "工程名称",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"type" : "button",
|
|
"id" : "添加",
|
|
"label" : "添加",
|
|
"level" : "primary",
|
|
"actionType" : "dialog",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "添加",
|
|
"size" : "lg",
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_SEALENGRAVINGAPPLY/defaults?templateId=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_SEALENGRAVINGAPPLY_ADD?__egtpl=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_SEALENGRAVINGAPPLY_ADDSUBMIT?__egtpl=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc",
|
|
"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/5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_SEALENGRAVINGAPPLY_LOAD?__egtpl=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc",
|
|
"data" : {
|
|
"OA_SEALENGRAVINGAPPLY_ID" : "${OA_SEALENGRAVINGAPPLY_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_SEALENGRAVINGAPPLY_UPDATE?__egtpl=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_SEALENGRAVINGAPPLY_ADDSUBMIT?__egtpl=5b70538b-36bb-4ae7-a0bb-0a5f15ecf3fc",
|
|
"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_SEALENGRAVINGAPPLY_DELETE",
|
|
"data" : {
|
|
"ids" : "${selectedItems|pick:OA_SEALENGRAVINGAPPLY_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/f75a0890-58b6-42e6-ba34-c6bbc73870a5?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_SEALENGRAVINGAPPLY_LOAD?__egtpl=f75a0890-58b6-42e6-ba34-c6bbc73870a5",
|
|
"data" : {
|
|
"OA_SEALENGRAVINGAPPLY_ID" : "${OA_SEALENGRAVINGAPPLY_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "提交审批",
|
|
"label" : "提交审批",
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_SEALENGRAVINGAPPLY_SUBMIT",
|
|
"data" : {
|
|
"OA_SEALENGRAVINGAPPLY_ID" : "${selectedItems[0].OA_SEALENGRAVINGAPPLY_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0 || (selectedItems[0].STATUS && selectedItems[0].STATUS != 1 && selectedItems[0].STATUS != 4 && selectedItems[0].STATUS != 5)}"
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "打印",
|
|
"label" : "打印",
|
|
"actionType" : "dialog",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"dialog" : {
|
|
"type" : "dialog",
|
|
"title" : "印章刻制申请单",
|
|
"size" : "lg",
|
|
"data" : {
|
|
"OA_SEALENGRAVINGAPPLY_ID" : "${selectedItems[0].OA_SEALENGRAVINGAPPLY_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/d6878936-8aef-475b-a2b8-b325c6325b1a?format=amis"
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "关闭",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "查看审批",
|
|
"label" : "查看审批",
|
|
"icon" : "fa fa-search",
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}",
|
|
"onEvent" : {
|
|
"click" : {
|
|
"actions" : [ {
|
|
"actionType" : "openApprovalDrawer",
|
|
"args" : {
|
|
"taskName" : "审批详情",
|
|
"processInstanceId" : "${selectedItems[0].processInstanceId || selectedItems[0].PROCESSINSTANCEID || ''}",
|
|
"businessKey" : "${selectedItems[0].OA_SEALENGRAVINGAPPLY_ID}",
|
|
"businessTable" : "OA_SEALENGRAVINGAPPLY",
|
|
"readOnly" : true,
|
|
"mode" : "read"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_SEALENGRAVINGAPPLY_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "70fb1c0f-489a-4199-aeeb-a25e54f1fb8d"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 4,
|
|
"item" : "${&}",
|
|
"templateId" : "70fb1c0f-489a-4199-aeeb-a25e54f1fb8d"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult4"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult4.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |