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>
523 lines
15 KiB
JSON
523 lines
15 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "收文拟稿",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/OA_FILERECEIVE_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "FILE_NAME",
|
|
"label" : "文件名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "FILE_NUMBER",
|
|
"label" : "文件编号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "FILE_TYPE",
|
|
"label" : "文件类型",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_FILE_TYPE"
|
|
}, {
|
|
"name" : "SIGNTYPE",
|
|
"label" : "字号类别",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_FILESEND_SIGNTYPE"
|
|
}, {
|
|
"name" : "ISPROVIDE",
|
|
"label" : "是否分发",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISUSED",
|
|
"label" : "是否有效",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_FILERECEIVE_ZUOFEI"
|
|
}, {
|
|
"name" : "ISPLACE",
|
|
"label" : "归档状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/SYS_FILINGUP_STATUS"
|
|
}, {
|
|
"name" : "RECEIVED_TIME",
|
|
"label" : "收文日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "RECORDDATE",
|
|
"label" : "登记日期",
|
|
"type" : "input-date-range"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/WFSTATUS"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "FILE_NUMBER",
|
|
"label" : "文件编号",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "FILE_NAME",
|
|
"label" : "文件名称",
|
|
"width" : 200
|
|
}, {
|
|
"name" : "SOURCE_UNIT",
|
|
"label" : "来文单位",
|
|
"width" : 260
|
|
}, {
|
|
"name" : "FILE_TYPE",
|
|
"label" : "文件类型",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : " ",
|
|
"2" : "工程管理",
|
|
"3" : "财税管理",
|
|
"4" : "人事、劳务",
|
|
"5" : "会议通知",
|
|
"6" : "经营、造价",
|
|
"7" : "其他"
|
|
}
|
|
}, {
|
|
"name" : "SIGNTYPE",
|
|
"label" : "字号类别",
|
|
"width" : 50,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "董字号",
|
|
"2" : "工字号",
|
|
"3" : "经字号",
|
|
"4" : "党字号",
|
|
"5" : "安字号",
|
|
"6" : "联合行文"
|
|
}
|
|
}, {
|
|
"name" : "RECEIVED_TIME",
|
|
"label" : "收文日期 ",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "RECORDDATE",
|
|
"label" : "登记日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "STATUS",
|
|
"label" : "审批状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "未提交",
|
|
"2" : "处理中",
|
|
"3" : "通过",
|
|
"4" : "未通过",
|
|
"5" : "重新提交",
|
|
"6" : "作废"
|
|
}
|
|
}, {
|
|
"name" : "ISPROVIDE",
|
|
"label" : "是否分发",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
}, {
|
|
"name" : "ISPLACE",
|
|
"label" : "归档状态",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "未归档",
|
|
"1" : "待归档",
|
|
"2" : "已退档",
|
|
"3" : "已归档"
|
|
}
|
|
}, {
|
|
"name" : "ISUSED",
|
|
"label" : "是否有效",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "有效",
|
|
"2" : "无效"
|
|
}
|
|
}, {
|
|
"name" : "RECEIVED_USER_DISPLAY__",
|
|
"label" : "收文人",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "RECEIVED_TIME",
|
|
"label" : "收文日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ",
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "REGISTRANT_DISPLAY__",
|
|
"label" : "登记人",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "NUMBER",
|
|
"label" : "份数",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "FILECONTENT",
|
|
"label" : "文件内容",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "REMARK",
|
|
"label" : "备注",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "OA_FILERECEIVE_ID",
|
|
"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/7d64df3f-070c-4e2d-814e-06e071052e32?format=amis",
|
|
"api" : {
|
|
"method" : "get",
|
|
"url" : "/api/form/OA_FILERECEIVE/defaults?templateId=7d64df3f-070c-4e2d-814e-06e071052e32"
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVE_ADD?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVE_SUBMIT2?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"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/7d64df3f-070c-4e2d-814e-06e071052e32?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_LOAD?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${OA_FILERECEIVE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVE_UPDATE?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "保存并提交审批",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVE_SUBMIT2?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "文件删除",
|
|
"label" : "文件删除",
|
|
"actionType" : "ajax",
|
|
"confirmText" : " 确定删除此记录吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_DELETE",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}"
|
|
}
|
|
},
|
|
"disabledOn" : "${!selectedItems || selectedItems.length === 0}"
|
|
}, {
|
|
"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/7d64df3f-070c-4e2d-814e-06e071052e32?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_LOAD?__egtpl=7d64df3f-070c-4e2d-814e-06e071052e32",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${OA_FILERECEIVE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/10ed5168-3ac1-4d31-b0ff-65905b81c180?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_LOAD_file_dispense?__egtpl=10ed5168-3ac1-4d31-b0ff-65905b81c180",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${OA_FILERECEIVE_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVEDESPATCHSITUATION_ADD?__egtpl=10ed5168-3ac1-4d31-b0ff-65905b81c180",
|
|
"close" : true
|
|
}, {
|
|
"type" : "button",
|
|
"label" : "取消",
|
|
"actionType" : "close"
|
|
} ]
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "文件归档",
|
|
"label" : "文件归档",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要发送归档吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_UPDATE_AC",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "无效",
|
|
"label" : "无效",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要将该文件变为无效吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_NOTUSED",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "有效",
|
|
"label" : "有效",
|
|
"actionType" : "ajax",
|
|
"disabled" : true,
|
|
"confirmText" : "确认要将该文件变为有效吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_INUSED",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}"
|
|
}
|
|
}
|
|
}, {
|
|
"type" : "button",
|
|
"id" : "提交审批",
|
|
"label" : "提交审批",
|
|
"actionType" : "ajax",
|
|
"confirmText" : "确定要提交审批吗?",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/OA_FILERECEIVE_SUBMIT",
|
|
"data" : {
|
|
"OA_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_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_FILERECEIVE_ID" : "${selectedItems[0].OA_FILERECEIVE_ID}"
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/d7e5acfd-7760-433b-934e-ea8dd3a02a6f?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_FILERECEIVE_ID}",
|
|
"businessTable" : "OA_FILERECEIVE",
|
|
"readOnly" : true,
|
|
"mode" : "read"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "OA_FILERECEIVE_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "disabled",
|
|
"componentId" : "文件归档"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "无效"
|
|
}, {
|
|
"actionType" : "disabled",
|
|
"componentId" : "有效"
|
|
}, {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 1,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "338ca81d-899a-4998-8e85-9fdaab24ffc0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult1"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult1.commands}"
|
|
}
|
|
} ]
|
|
},
|
|
"inited" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${&}",
|
|
"templateId" : "338ca81d-899a-4998-8e85-9fdaab24ffc0"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |