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>
358 lines
10 KiB
JSON
358 lines
10 KiB
JSON
{
|
|
"type" : "page",
|
|
"title" : "待我承办",
|
|
"body" : {
|
|
"type" : "crud",
|
|
"api" : "/api/flow/VIEW_OA_UNDERTAKETOME_SEARCH",
|
|
"syncLocation" : false,
|
|
"selectable" : true,
|
|
"checkOnItemClick" : true,
|
|
"filter" : {
|
|
"title" : "查询",
|
|
"body" : [ {
|
|
"name" : "FILENUMBER",
|
|
"label" : "文件编号",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "FILENAME",
|
|
"label" : "文件名称",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "FILECLASS",
|
|
"label" : "文件类别",
|
|
"type" : "input-text"
|
|
}, {
|
|
"name" : "FILETYPE",
|
|
"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" : "PROVIDETIME",
|
|
"label" : "分发日期",
|
|
"type" : "input-date"
|
|
}, {
|
|
"name" : "ISFINISH",
|
|
"label" : "是否承办",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/YESNO"
|
|
}, {
|
|
"name" : "ISUSED",
|
|
"label" : "是否有效",
|
|
"type" : "select",
|
|
"clearable" : true,
|
|
"source" : "/api/poc/dict/OA_FILERECEIVE_ZUOFEI"
|
|
} ]
|
|
},
|
|
"columns" : [ {
|
|
"name" : "VIEW_OA_UNDERTAKETOME_ID",
|
|
"label" : "主键",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "FILEID_DISPLAY__",
|
|
"label" : "收发文件ID",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "FILENUMBER",
|
|
"label" : "文件编号",
|
|
"width" : 150
|
|
}, {
|
|
"name" : "FILENAME",
|
|
"label" : "文件名称",
|
|
"width" : 300
|
|
}, {
|
|
"name" : "FILECLASS",
|
|
"label" : "文件类别",
|
|
"width" : 50
|
|
}, {
|
|
"name" : "FILETYPE",
|
|
"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" : "FILECONTENT",
|
|
"label" : "文件内容",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "DESPATCHHOSTUSER_DISPLAY__",
|
|
"label" : "分发人",
|
|
"width" : 100
|
|
}, {
|
|
"name" : "PROVIDETIME",
|
|
"label" : "分发日期",
|
|
"width" : 100,
|
|
"type" : "date",
|
|
"format" : "YYYY-MM-DD",
|
|
"inputFormat" : "YYYY-MM-DDTHH:mm:ss.SSSZ"
|
|
}, {
|
|
"name" : "UNDERTAKESUGGESTION",
|
|
"label" : "承办意见",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "RECEIVER_DISPLAY__",
|
|
"label" : "承办人",
|
|
"width" : 100,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISFINISH",
|
|
"label" : "是否承办",
|
|
"width" : 100,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"0" : "否",
|
|
"1" : "是"
|
|
}
|
|
}, {
|
|
"name" : "UNDERTAKEFEEDBACK",
|
|
"label" : "反馈意见",
|
|
"width" : 200,
|
|
"toggled" : false
|
|
}, {
|
|
"name" : "ISUSED",
|
|
"label" : "是否有效",
|
|
"width" : 80,
|
|
"type" : "mapping",
|
|
"map" : {
|
|
"1" : "有效",
|
|
"2" : "无效"
|
|
}
|
|
} ],
|
|
"headerToolbar" : [ {
|
|
"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/f7fcddc4-d013-4444-9f64-c6b1051f4f58?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_OA_UNDERTAKETOME_LOAD?__egtpl=f7fcddc4-d013-4444-9f64-c6b1051f4f58",
|
|
"data" : {
|
|
"VIEW_OA_UNDERTAKETOME_ID" : "${VIEW_OA_UNDERTAKETOME_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "承办",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVEUNDERTAKESITUATION_UNDERTAKE?__egtpl=f7fcddc4-d013-4444-9f64-c6b1051f4f58",
|
|
"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/9d952bc6-0cec-4a70-b1e2-c570852df524?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_OA_UNDERTAKETOME_LOAD?__egtpl=9d952bc6-0cec-4a70-b1e2-c570852df524",
|
|
"data" : {
|
|
"VIEW_OA_UNDERTAKETOME_ID" : "${VIEW_OA_UNDERTAKETOME_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILE_DESPATCH?__egtpl=9d952bc6-0cec-4a70-b1e2-c570852df524",
|
|
"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/36d55de5-7cec-4095-8040-04f284b4ccfe?format=amis",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_OA_UNDERTAKETOME_LOAD?__egtpl=36d55de5-7cec-4095-8040-04f284b4ccfe",
|
|
"data" : {
|
|
"VIEW_OA_UNDERTAKETOME_ID" : "${VIEW_OA_UNDERTAKETOME_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
},
|
|
"actions" : [ {
|
|
"type" : "button",
|
|
"label" : "保存",
|
|
"level" : "primary",
|
|
"actionType" : "submit",
|
|
"api" : "POST:/api/flow/OA_FILERECEIVEUNDERTAKESITUATION_ADD?__egtpl=36d55de5-7cec-4095-8040-04f284b4ccfe",
|
|
"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]}",
|
|
"__readonly" : true
|
|
},
|
|
"body" : {
|
|
"type" : "service",
|
|
"schemaApi" : "get:/api/page/schema/75e5abf1-a0c3-4504-ae23-43bc31712b51?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_OA_UNDERTAKETOME_LOAD_LIST?__egtpl=75e5abf1-a0c3-4504-ae23-43bc31712b51",
|
|
"data" : {
|
|
"VIEW_OA_UNDERTAKETOME_ID" : "${VIEW_OA_UNDERTAKETOME_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, {
|
|
"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/1086518d-53aa-4e9e-9e46-2d4c917dd434?format=amis",
|
|
"static" : true,
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/flow/VIEW_OA_UNDERTAKETOME_LOAD_LIST2?__egtpl=1086518d-53aa-4e9e-9e46-2d4c917dd434",
|
|
"data" : {
|
|
"VIEW_OA_UNDERTAKETOME_ID" : "${VIEW_OA_UNDERTAKETOME_ID}"
|
|
},
|
|
"responseData" : {
|
|
"&" : "${result}"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}, "pagination" ],
|
|
"primaryField" : "VIEW_OA_UNDERTAKETOME_ID",
|
|
"onEvent" : {
|
|
"selectedChange" : {
|
|
"actions" : [ {
|
|
"actionType" : "ajax",
|
|
"api" : {
|
|
"method" : "post",
|
|
"url" : "/api/script/execute-template",
|
|
"data" : {
|
|
"seq" : 2,
|
|
"item" : "${event.data.selectedItems[0]}",
|
|
"templateId" : "6c67d689-936b-479c-90f5-e919ef37b44b"
|
|
}
|
|
},
|
|
"outputVar" : "scriptResult2"
|
|
}, {
|
|
"actionType" : "replayScriptCommands",
|
|
"args" : {
|
|
"commands" : "${event.data.scriptResult2.commands}"
|
|
}
|
|
} ]
|
|
}
|
|
}
|
|
}
|
|
} |