Work log filling method, device, equipment and system
By automatically parsing the work ticket query file, matching the log template and generating script code, intelligent filling of work logs is realized, solving the problems of low efficiency and low accuracy of log filling in the existing technology, and improving the efficiency and accuracy of log management.
Patent Information
- Application Number
- CN202510260287.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-06
- Publication Date
- 2025-06-24
AI Technical Summary
In the prior art, the filling efficiency and accuracy of work logs are low, and relying on manual filling, which makes it difficult to ensure efficiency and accuracy.
Select the file identifier in response to the user's visual operation interface, determine the target work ticket query file, read the file to determine the working status, and determine the target work log template if the processing is not completed, deploy the work content to the template, generate the work log script code, and send it to the log management platform to realize automatic filling.
It improves the efficiency and accuracy of log filling, reduces the workload of manual input, reduces errors and omissions, and ensures the standardization, automation and intelligence of log data.
Smart Images

Figure CN120198064A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of natural language processing, and in particular, to a method, apparatus, device, and system for filling in work logs. Background Art
[0002] The development background of the work log system stems from the power industry's need for standardized and informatized management of the work process. With the expansion of the power system scale and the complexity of work tasks, the traditional paper-based recording method can no longer meet the requirements of efficient and accurate management. Therefore, the work log system came into being. By means of digital means, it records information such as work tasks, responsible persons, and planned time, realizes the electronic tracking and management of the work process, and provides an important informatization support tool for the operation and maintenance of the power industry.
[0003] In the traditional power industry, team members export and view work ticket information from the work ticket system manually, extract data such as work tasks, responsible persons, permitters, and planned time, and then manually log in to the work log system and click and fill in item by item to record work content.
[0004] However, the above work log recording method relies on manual filling, which reduces the efficiency and accuracy of log filling. Summary of the Invention
[0005] This application provides a method, apparatus, device, and system for filling in work logs to solve the technical problems of low efficiency and low accuracy in log filling in the prior art.
[0006] In a first aspect, this application provides a method for filling in a work log, including:
[0007] In response to a user's selection operation on a file identifier in a visual operation interface, determine a target work ticket query file;
[0008] Read the target work ticket query file and determine the work status of the target work;
[0009] If the work status indicates that the target work is not completed, determine a target work log template;
[0010] Deploy the work content in the target work ticket query file to the target work log template to generate work log script code;
[0011] Send the work log script code to the log management platform to complete the filling of the work log. The log management platform is used to automatically fill in the work log according to the work log script code.
[0012] Further, reading the target work ticket query file and determining the work status of the target work includes:
[0013] Read the target work ticket query file to determine the work plan time and the corresponding work content;
[0014] Based on the work plan time and the corresponding work content, determine the target work and the work status of the target work.
[0015] Further, if the work status indicates that the target work is not completed, determine the target work log template, including:
[0016] If the work status indicates that the target work is not completed, extract the work information items in the target work ticket query file;
[0017] Based on the work information items, determine the target work log template.
[0018] Further, deploy the work content in the target work ticket query file to the target work log template to generate a work log script code, including:
[0019] Deploy the work content in the target work ticket query file to the target work log template to obtain the target work log;
[0020] Display the target work log to the user through the visual operation interface. The target work log includes the current work plan time and all work content;
[0021] In response to the user's selection operation on the code generation identifier in the visual operation interface, generate a work log script code.
[0022] Further, after generating the work log script code in response to the user's selection operation on the code generation identifier in the visual operation interface, the method further includes:
[0023] In response to the user's selection operation on the date switching identifier in the visual operation interface, determine to update the work ticket query file;
[0024] Based on the updated work ticket query file, generate an updated work log script code;
[0025] Send the updated work log script code to the log management platform to complete the filling of the updated work log.
[0026] Further, generating the updated work log script code based on the updated work ticket query file includes:
[0027] In response to the user's selection operations on the template viewing identifier and the template selection identifier in the visual operation interface, determine the updated work log template;
[0028] Deploy the work content in the updated work ticket query file to the updated work log template to generate an updated work log;
[0029] The updated work log is displayed to the user through the visual operation interface;
[0030] In response to the user's selection operation on the code generation identifier in the visual operation interface, an updated work log script code is generated.
[0031] Furthermore, the method further includes:
[0032] The file identifier of the work ticket query file is displayed in the visual operation interface;
[0033] The work ticket query file includes the work plan time, work content, and the work permittee corresponding to the work content.
[0034] In a second aspect, the present application provides a device for filling a work log, including:
[0035] A work ticket query file acquisition module, configured to determine and acquire a target work ticket query file in response to the user's selection operation on the file identifier in the visual operation interface;
[0036] A work status determination module, configured to read the target work ticket query file and determine the work status of the target work;
[0037] A work log template determination module, configured to determine a target work log template if the work status indicates that the target work has not been completed;
[0038] A work log script code generation module, configured to deploy the work content in the target work ticket query file to the target work log template to generate a work log script code;
[0039] A work log filling module, configured to send the work log script code to the log management platform to complete the filling of the work log.
[0040] In a third aspect, the present application provides an electronic device, including: a processor, and a memory communicatively connected to the processor;
[0041] The memory stores computer-executable instructions;
[0042] The processor executes the computer-executable instructions stored in the memory to implement the method of the embodiment of the present application.
[0043] In a fourth aspect, the present application provides a work log filling system, including a computer program, and when the computer program product is executed by a processor, it implements the method according to any one of the first aspect.
[0044] The method, apparatus, device, and system for filling a work log provided by this application determine a target work ticket query file by responding to a user's selection operation on a file identifier in a visual operation interface; read the target work ticket query file to determine the work status of the target work; if the work status indicates that the target work is not completed, determine a target work log template; deploy the work content in the target work ticket query file to the target work log template to generate work log script code; send the work log script code to a log management platform to complete the filling of the work log. The log management platform is used to automatically fill the work log according to the work log script code, reducing the workload of manual input, reducing errors and omissions, and improving the work efficiency and accuracy of log filling. Description of the Drawings
[0045] The drawings herein are incorporated into and constitute a part of this specification, showing embodiments consistent with this application and used together with the specification to explain the principles of this application.
[0046] Figure 1 It is a schematic diagram of the overall architecture of the work log filling system provided by this application;
[0047] Figure 2 It is a schematic flowchart of the first embodiment of the method for filling a work log provided by this application;
[0048] Figure 3 It is a schematic flowchart of the second embodiment of the method for filling a work log provided by this application;
[0049] Figure 4 It is a schematic flowchart of the third embodiment of the method for filling a work log provided by this application;
[0050] Figure 5 It is a schematic flowchart of the fourth embodiment of the method for filling a work log provided by this application;
[0051] Figure 6 It is a schematic flowchart of the fifth embodiment of the method for filling a work log provided by this application;
[0052] Figure 7 It is a schematic flowchart of the fifth embodiment of the method for filling a work log provided by this application;
[0053] Figure 8 It is a schematic diagram of the structure of the work log filling apparatus provided by this application;
[0054] Figure 9 It is a schematic diagram of the structure of an electronic device provided by an embodiment of this application.
[0055] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0056] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0057] In the existing work log filling process, it mainly relies on manual input of work plan time, task content, work permit holder, safety monitoring measures and other information, which is not only inefficient, but also prone to inaccurate log data due to manual input errors. In addition, traditional log management systems usually lack intelligent template matching mechanisms, and users need to manually select or fill in log formats, which increases operational complexity and workload. Therefore, how to improve the automation level of log filling, reduce manual intervention, and ensure the uniformity of log formats has become a technical problem that needs to be solved in this field.
[0058] In response to the above problems, this technical solution realizes the intelligent filling of work logs by automatically parsing and extracting key data such as work plan time, task content, work permit holders, safety monitoring measures, etc., and combining it with a log template matching mechanism. In addition, this technical solution also proposes a visual operation interface that supports the display of log data, template selection, log code generation and submission. Users can flexibly switch log data of different dates, and the system automatically updates the corresponding log content. Through this solution, the automation level, operational convenience and data accuracy of log filling are greatly improved, solving the pain points of existing technologies in log management efficiency, template standardization, cross-date data processing, etc., and providing a new technical path for the intelligent management of work logs.
[0059] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0060] Figure 1 This is a schematic diagram of the overall architecture of the work log filling system provided in this application. Figure 1As shown, the filling system 100 of the work log consists of a visual operation interface 101 and a background execution unit 102, which cooperate to complete data parsing, template matching, log display, code generation, and filling of the log. Among them, the overall architecture can be divided into a front-end interface interaction layer, a business logic layer, and a log filling execution layer.
[0061] Specifically, as the core for interacting with users, the visual operation interface 101 provides visual operations for log selection, template matching, log display, code generation, and log filling. Its functional components include a file selection area 1011, a log information display area 1012, a log template management area 1013, a code generation and copying area 1014, and a log submission and feedback area 1015.
[0062] Among them, the file selection area 1011 provides functions for file upload and selection. Users can select or upload work ticket query files for parsing log data; with the date switching function, users can select work ticket query files for different dates to view or fill work logs for different dates.
[0063] The log information display area 1012 displays the currently selected work plan time, work task content, work permit issuer information, and safety supervision measures. Among them, the work task content can parse and display the task content corresponding to the current log, such as equipment maintenance, inspection, etc. The work permit issuer information can display the work approver corresponding to this log. The safety supervision measures can automatically fill in the safety supervision requirements according to the task type matched by the log template.
[0064] The log template management area 1013 provides users with template viewing options and template selection options. Among them, in the template viewing option, users can click to view all available log templates. In the template selection option, users can select a log template suitable for the current task from the available template list and apply it to the current log data.
[0065] The code generation and copying area 1014 provides a log filling code generation button for users. After users click this button, the system can automatically generate script code suitable for the log management unit, such as JavaScript code. In addition, it also includes a log code display section, and the generated script code can be displayed on the interface for users to copy or modify. The code copying button allows users to copy the generated log filling code with one click and paste it into the log management platform for execution.
[0066] In the log submission and feedback area 1015, there are a log submission button and a log filling feedback section. Among them, the log submission button can directly submit the generated script code to the log management platform to achieve automatic filling. The log filling feedback can return the filling status (such as "log filling successful" or "filling failed") and provide adjustment suggestions.
[0067] On the other hand, the background execution unit 102 is responsible for parsing the work ticket query file input by the user, matching the log template, generating the filling code, and performing the log filling operation to ensure the integrity and accuracy of the log. Specifically, it includes a file parsing module 1021, a log template matching module 1022, a log filling code generation module 1023, and a log management platform docking module 1024.
[0068] Among them, the file parsing module 1021 is used to read the work ticket query file and extract data such as the work plan time, task content, permit issuer, and safety measures. If the user switches the date, the log data of the new date is automatically loaded.
[0069] The log template matching module 1022 can automatically match a suitable log template (such as an equipment maintenance template, an inspection log template, etc.) according to the task type. It supports the user to manually select a template and apply it to the log data.
[0070] The log filling code generation module 1023 generates script filling code applicable to the log management platform based on the log template and the task content. Among them, the code logic includes: automatically filling in the time of the pre-shift meeting and the post-shift meeting; automatically selecting the personnel of the pre-shift meeting and the post-shift meeting; automatically filling in the task description, safety supervision measures, and work completion status.
[0071] The log management platform docking module 1024 is responsible for submitting the generated script code to the log management platform. It parses the feedback of the log management system, confirms whether the log filling is successful, and provides an error handling mechanism.
[0072] The log filling system for work logs provided by this application is based on a visual operation interface and a background execution unit, providing a complete process of log file parsing, template matching, log display, automatically generating script code and filling logs, greatly improving the filling efficiency and accuracy of work logs, reducing human errors, and ensuring the standardization, automation, and intelligence of log data.
[0073] Figure 2 It is a schematic flowchart of the first embodiment of the method for filling work logs provided by this application. As Figure 2 shown, the method includes:
[0074] S201. In response to the user's selection operation on the file identifier in the visual operation interface, determine the target work ticket query file.
[0075] Among them, the visual operation interface is a graphical interface that displays information to the user and receives user operations, and the file identifier is the icon and name information related to the file displayed in the visual operation interface, used to distinguish and select files. The target work ticket query file is the file selected by the user that contains data such as work ticket information, work plans, and tasks, and serves as the object for subsequent processing. The file identifier of the work ticket query file is displayed in the visual operation interface; the work ticket query file contains the work plan time, work content, and the work permittee corresponding to the work content.
[0076] Specifically, when the user browses the file list in the visual operation interface, by clicking or selecting the corresponding file identifier, the work log filling system can capture this operation. The program in the system can determine the option selected by the user using the interface components and extract the file unique identifier (such as file name, path, or ID) from the file identifier. Subsequently, the work log filling system can retrieve the corresponding work ticket query file based on this identifier locally or on the server side, determine it as the target file, and load it into the subsequent processing module.
[0077] S202. Read the target work ticket query file and determine the work status of the target work.
[0078] Among them, reading means that the program loads the file content from the storage medium into the memory for parsing through file input operations. Specifically, the work log filling system calls the file reading module to parse the file content according to the format of the target file (such as XML, JSON, or other formats). During the parsing process, the field information used to describe the work status is extracted, such as the status code or status description. The program determines whether the status of the target work is "not processed yet" by judging the value of this field. If the status value meets the expectation, that is, the status is "not processed yet", then it enters the subsequent template matching process; otherwise, the user can be prompted that no further operation is required for this file.
[0079] S203. If the work status indicates that the target work is not processed yet, determine the target work log template.
[0080] Among them, the work status is the data obtained in S202 that describes the current processing progress of the target work. The target work log template is a pre-set log filling template used to standardize the log format and content of each task in the work ticket.
[0081] Specifically, the work log filling system judges the read work status. If it detects that the status is "not processed and completed", it triggers the template selection logic. The work log filling system selects the most suitable log template from the predefined template library according to the type of the target work, the type of work, or other relevant conditions. The template library can be stored as a set of static files or database records. The selected template contains the field layout, format requirements, and corresponding placeholders for subsequent data filling.
[0082] S204. Deploy the work content in the target work ticket query file to the target work log template to generate work log script code.
[0083] Among them, the work content refers to the detailed information such as the specific tasks, operation steps, and on-site supervision measures recorded in the work ticket query file. The work log script code refers to the automatically generated script (usually JavaScript code), whose function is to replace the placeholders in the template with the actual work content data, and finally realize the automatic filling of the log.
[0084] Specifically, the work log filling system first parses the data of the work content in the target file and extracts each task and related description information. Then, through the preset data mapping rules, the extracted work content is assigned to the corresponding fields in the log template (such as the pre-shift meeting description, post-shift meeting description, on-site supervision measures, etc.). On this basis, the program uses a template engine (such as Mustache, Handlebars, etc.) to generate dynamically filled JavaScript script code. The script contains the logic of automatically calculating the meeting time according to the work plan time, calling the personnel selection function, and automatically filling the log description, so that the subsequent filling process is executed automatically.
[0085] S205. Send the work log script code to the log management platform to complete the filling of the work log.
[0086] Among them, the log management platform refers to an automated system or server platform that is responsible for receiving the work log script code and automatically filling and updating the work log records according to the code content.
[0087] Specifically, the work log filling system sends the generated JavaScript script code to the log management platform through a preset interface (such as API call, file upload, or message queue). After receiving the script, the log management platform starts the parsing and execution module, and automatically fills the work log according to the logic defined in the script. Among them, the built-in data verification and feedback mechanism of the log management platform returns the operation result after the filling is completed, such as "filling successful" or an error prompt. The user can then view the filled log data through the visual operation interface and perform necessary manual proofreading and confirmation to ensure the accuracy and completeness of the log information.
[0088] The filling method of the work log adopted in the embodiments of the present application realizes the intelligent selection of the target work ticket query file through a visual operation interface, and combines the automatic analysis of the work status, matches the log template, deploys the work content, generates the work log script code, and finally automatically fills the log by the log management platform. This method improves the efficiency and accuracy of log filling, reduces the workload of manual entry, avoids human errors, and at the same time ensures the consistency and standardization of log filling through the execution of automated scripts, thereby optimizing the work log management process.
[0089] Figure 3 It is a schematic flow chart of the second embodiment of the filling method of the work log provided by the present application. As Figure 3 shown, on the basis of the Figure 2 embodiment, read the target work ticket query file and determine the work status of the target work, further including:
[0090] S301. Read the target work ticket query file and determine the work plan time and the corresponding work content.
[0091] Among them, the work plan time refers to the task execution time recorded in the work ticket query file, including the start time of the pre-shift meeting, the end time of the post-shift meeting, etc. The work content refers to the specific tasks listed in the work ticket, such as equipment maintenance, inspection, patrol, etc., and the detailed description information of the tasks.
[0092] Specifically, the work log filling system calls the file reading module to load the target work ticket query file. Then analyze the file structure, locate the work plan time field and the work content field. Read the time information in the file, such as "planned start time", "planned end time", etc., and store it in memory or a database. Extract the work content corresponding to the work time, such as equipment maintenance, inspection records, safety measures, etc. Store the extracted information in a temporary data structure (such as a hash table or an array) for subsequent matching. Finally, display the parsed work plan time and the corresponding work content in the visual operation interface for the user to confirm.
[0093] S302. Determine the target work and the work status of the target work according to the work plan time and the corresponding work content.
[0094] Among them, the target work refers to the specific task to be processed determined according to the parsed work plan time and content. Exemplarily, the filling system of the work log identifies tasks based on the work plan time and work content. By comparing with the predefined task rule library, the target work corresponding to the work ticket is determined, such as "equipment maintenance" or "safety inspection". Read the status field in the target work ticket query file and parse its value (e.g., 0 = not started, 1 = in progress, 2 = completed). If the file does not directly provide status information, it can be deduced according to the work time: when the current time is less than the planned start time, the status is set to "not started"; when the current time is within the planned time range, the status is set to "in progress"; when the current time is greater than the planned end time and the completion status is not recorded, the status is set to "to be confirmed" or "abnormal". Then display the status of the target work in the visualization interface so that the user can confirm whether further processing is required. If the status is "not completed", enter the subsequent log filling step.
[0095] The filling method of the work log adopted in the embodiment of the present application enables the filling system of the work log to more accurately determine the target work, and combines the planned time for status judgment, ensuring the integrity and accuracy of log filling, realizing the intelligence and automation of log filling, improving work efficiency, and reducing human errors.
[0096] Figure 4 It is a schematic flowchart of the third embodiment of the filling method of the work log provided by the present application. As Figure 4 shown, on the basis of the Figure 2 embodiment, if the work status indicates that the target work is not completed, determine the target work log template, including:
[0097] S401. If the work status indicates that the target work is not completed, extract each work information from the target work ticket query file.
[0098] Among them, each work information refers to the specific data extracted from the target work ticket query file, including: work plan time (estimated start / end time of the task), work content (task description, such as equipment maintenance, inspection, etc.), work approver (person responsible for approving or supervising the task), on-site guardianship measures (specific measures to ensure work safety).
[0099] Specifically, read the work status field in the target work ticket query file. If it indicates that the work is not completed (such as "not processed"), then perform the subsequent steps; otherwise, terminate the process. Read the current work plan time, parse the file structure, extract the start time and end time of the task, and store them in temporary variables for subsequent matching. Read the task list in the file, including task name, execution steps, equipment number, etc. If the task content is in a list structure, use a loop to extract all task items. Parse the file to extract the information of the approver or supervisor responsible for the work. If the task involves safety supervision, further extract the corresponding safety measure description.
[0100] S402. Determine the target work log template according to the work information.
[0101] In this step, read the log template library preset by the work log filling system. Each template matches a specific work type. For example, for equipment maintenance, select the equipment maintenance log template; for daily inspections, select the inspection log template; for high-risk operations, select the high-risk operation log template. That is, traverse the log template library to find the template that best matches the current task content. Then, for the matched log template, further match the corresponding detailed template fields. For example, for the on-site supervision measure field, read the safety measure description in the target file and fill it into the template; for the work task description field, read the work content and fill it into the corresponding position in the template.
[0102] After determining the finally matched log template, extract the corresponding on-site supervision measure description. For example, if the "equipment maintenance log template" is matched, read the "safety supervision" part in the template and fill in the relevant information. In this way, the work log filling system automatically fills in the key fields of the template, avoiding manual entry errors and improving the integrity of the log.
[0103] In the embodiment of the present application, after automatically parsing the target work ticket query file and determining the processing status of the target work, further extract detailed work information to ensure the accuracy of log filling. Combined with the visual display box, users can clearly view information such as work plan time, work content, work approver, etc., improving the efficiency of manual confirmation. At the same time, the tool can automatically match the log template and fill in the corresponding on-site supervision measure description, and finally generate a standardized work log, ensuring the consistency and standardization of the log, and improving the efficiency and accuracy of log filling.
[0104] Figure 5 It is a schematic flowchart of the fourth embodiment of the method for filling a work log provided by the present application. As Figure 5 shown, on the basis of the Figure 2 embodiment, deploy the work content in the target work ticket query file to the target work log template to generate work log script code, including:
[0105] S501. Deploy the work content in the target work ticket query file to the target work log template to obtain the target work log.
[0106] Specifically, read the work content in the target file, parse the target work ticket query file, and extract all work tasks, work plan times, and work permit issuers. Determine the target work log template, and fill in the data according to the field requirements to form a structured target work log, which is convenient for subsequent display and code generation.
[0107] S502. Display the target work log to the user through the visual operation interface.
[0108] Among them, the target work log includes the current work plan time and all work content. Specifically, the target work log is displayed through the interface components (such as tables, text boxes, etc.) in the visual operation interface so that the user can view it intuitively and ensure the correctness of the data. If the data is incorrect, the user is allowed to modify it or select a different template for redeployment.
[0109] S503. Respond to the user's selection operation on the code generation identifier in the visual operation interface to generate the work log script code.
[0110] Among them, the code generation identifier refers to the "Generate Code Button" in the visual operation interface. After the user clicks the "Generate Code Button", the code generation logic can be triggered.
[0111] Specifically, after the work log filling system detects that the user clicks the "Generate Code" button, it triggers the code generation logic to generate the script code suitable for filling into the log management platform. Exemplarily, the script code can be automatically filled, including the start time of the pre-shift meeting, the end time of the pre-shift meeting, the start time of the post-shift meeting, the end time of the post-shift meeting, the personnel information of the pre-shift meeting and the post-shift meeting, the description of the pre-shift meeting, and the work completion status of the post-shift meeting. Among them, the description of the pre-shift meeting is automatically generated according to all current work content, permit issuers, and on-site supervision measures, and the work completion status of the post-shift meeting is used to describe the task execution result. Further, the generated work log script code can be directly executed to automatically fill the form of the log management platform without the user having to enter it manually.
[0112] The embodiment of the present application realizes the automation of log filling, improves work efficiency, and reduces human errors by intelligently matching the log template, visually displaying the log content, and automatically generating the work log script code.
[0113] Figure 6 It is a schematic flowchart of the fifth embodiment of the method for filling the work log provided by the present application. As Figure 6 shown, in Figure 5Based on the embodiments, after generating the work log script code in response to the user's selection operation on the code generation identifier in the visual operation interface, the method further includes:
[0114] S601. In response to the user's selection operation on the date switching identifier in the visual operation interface, determine to update the work ticket query file.
[0115] Wherein, the date switching identifier refers to the "Switch Date" button on the visual operation interface. After the user clicks it, different work plan dates can be selected to update the log filling content. Updating the work ticket query file means that after the user switches the date, the filling system of the work log automatically loads the work ticket file corresponding to the new date, which contains data such as the work plan and task content of the new date.
[0116] Specifically, after the user clicks the "Switch Date" button in the visual operation interface, the filling system of the work log can capture this operation and pop up a date selection interface for the user to select the date to view. According to the log selected by the user, query the database or file storage unit, load the work ticket file corresponding to the date, parse the new file content and store it in memory for subsequent log generation.
[0117] S602. Generate updated work log script code according to the updated work ticket query file.
[0118] Wherein, the updated work log script code refers to the script code generated according to information such as the new work plan time and task content, and is applicable to filling the data of the log system for the new date.
[0119] Exemplarily, read the updated work ticket query file, extract data such as the new work plan time, task content, licensee, and safety supervision measures, match the corresponding log template according to the new work task type, and deploy the data. Generate the updated script code according to the new task content and plan time, and ensure that the updated script code can reflect the latest work task data.
[0120] S603. Send the updated work log script code to the log management platform to complete the filling of the updated work log.
[0121] In this step, the user can click the "Copy Code" button to copy the generated script code to the clipboard. Exemplarily, the log management platform can be the console. When the user pastes the code in the console, the log management platform can execute the script code, thereby completing the automatic filling of the log. Finally, the filling system of the work log prompts "Log filling successful", and the user can view the final filling effect in the visual operation interface.
[0122] Embodiments of the present application significantly improve the efficiency and accuracy of log recording and optimize the convenience of log management through intelligent log management, automated code filling, and visual interaction.
[0123] Figure 7 It is a schematic flowchart of the fifth embodiment of the method for filling a work log provided by the present application. As Figure 7 shown, on the basis of the Figure 6 embodiment, query the updated work ticket file to generate updated work log script code, including:
[0124] S701. In response to the user's selection operation on the template viewing identifier and template selection identifier in the visual operation interface, determine the updated work log template.
[0125] Among them, the template viewing identifier refers to the "View Template" button on the visual operation interface. After the user clicks it, all available log templates can be viewed. The template selection identifier refers to the "Select Template" button on the visual operation interface. The user can select a suitable log template for log filling.
[0126] Specifically, the user clicks the "View Template" button to trigger a pop-up window to display all available log templates. Then the user selects a suitable log template from the drop-down menu. After selecting the template, the work log filling system stores it for use in subsequent steps.
[0127] S702. Deploy the work content in the updated work ticket query file to the updated work log template to generate an updated work log.
[0128] Among them, the updated work ticket query file refers to the new work ticket file loaded after switching the date, which contains the new work plan time and task content. The updated work log template refers to the suitable log template selected by the user, which serves as the format framework for data filling. The updated work log refers to the structured log record generated after filling the new work content into the log template. Specifically, read the new work plan time and task content, match the template fields and fill in the content to generate the updated work log.
[0129] S703. Display the updated work log to the user through the visual operation interface.
[0130] In this step, display the updated log data on the visual interface. The user can check the log content to ensure data accuracy. If an error is found, the user can choose to re-match the template or modify the log content.
[0131] S704. In response to the user's selection operation on the code generation identifier in the visual operation interface, generate updated work log script code.
[0132] In this step, the user clicks a button on the visual operation interface to trigger the script code generation logic. The script code logic fills the log according to the new work plan time and task information. Exemplarily, the script code will automatically fill in the time of the pre-shift meeting and the post-shift meeting, obtain the personnel information of the pre-shift meeting and the post-shift meeting, and fill the log content according to the latest work task data to ensure that all fields meet the requirements of the log management platform. Finally, the user is allowed to click a button to copy the code, thus completing the copying of the script code.
[0133] The embodiment of the present application realizes intelligent log template matching, automatic filling of log content, visual display and code generation, greatly improving the efficiency and accuracy of log management. Users can flexibly switch different working dates, and the system automatically parses the new work ticket data and matches the appropriate log template to ensure the uniformity of the log format. The visual interface allows users to intuitively view and confirm the log content, reducing input errors. At the same time, the system can automatically generate script code for quickly filling the log management system, thereby reducing repetitive manual operations, improving the standardization and automation of log records, and ultimately enhancing the intelligent level of work log management.
[0134] Figure 8 It is a schematic structural diagram of the filling device for work logs provided by the present application. As Figure 8 shown, the filling device 80 for work logs includes a work ticket query file acquisition module 801, a work status determination module 802, a work log template determination module 803, a work log script code generation module 804, and a work log filling module 805. Among them,
[0135] The work ticket query file acquisition module 801 is used to determine the target work ticket query file in response to the user's selection operation on the file identifier in the visual operation interface;
[0136] The work status determination module 802 is used to read the target work ticket query file and determine the work status of the target work;
[0137] The work log template determination module 803 is used to determine the target work log template if the work status indicates that the target work has not been completed;
[0138] The work log script code generation module 804 is used to deploy the work content in the target work ticket query file to the target work log template to generate the work log script code;
[0139] The work log filling module 805 is used to send the work log script code to the log management platform to complete the filling of the work log.
[0140] Specifically, the work status determination module 802 is further specifically used for:
[0141] Read the target work ticket query file to determine the work plan time and the corresponding work content;
[0142] Based on the work plan time and the corresponding work content, determine the target work and the work status of the target work.
[0143] Specifically, the work log template determination module 803 is also used for:
[0144] If the work status indicates that the target work is not completed, extract each work information in the target work ticket query file;
[0145] Based on each work information, determine the target work log template.
[0146] Furthermore, the work log script code generation module 804 is specifically used for:
[0147] Deploy the work content in the target work ticket query file to the target work log template to obtain the target work log;
[0148] Display the target work log to the user through the visual operation interface. The target work log includes the current work plan time and all work content;
[0149] In response to the user's selection operation on the code generation identifier in the visual operation interface, generate the work log script code.
[0150] Furthermore, the work log script code generation module 804 is specifically used for:
[0151] In response to the user's selection operation on the date switching identifier in the visual operation interface, determine to update the work ticket query file;
[0152] Based on the updated work ticket query file, generate the updated work log script code;
[0153] Send the updated work log script code to the log management platform to complete the filling of the updated work log.
[0154] Furthermore, the work log script code generation module 804 is specifically used for, including:
[0155] In response to the user's selection operations on the template viewing identifier and the template selection identifier in the visual operation interface, determine to update the work log template;
[0156] Deploy the work content in the updated work ticket query file to the updated work log template to generate the updated work log;
[0157] Through the visual operation interface, display the updated work log to the user;
[0158] In response to the user's selection operation on the code generation identifier in the visualization operation interface, an updated work log script code is generated.
[0159] Among them, a file identifier of a work ticket query file is displayed in the visualization operation interface;
[0160] The work ticket query file includes a work plan time, work content, and a work permit person corresponding to the work content.
[0161] Figure 9 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application. As Figure 9 shown, the electronic device 90 includes:
[0162] The electronic device 90 may include a processor 901 with one or more processing cores, a memory 902 with one or more computer-readable storage media, a communication component 903, and other components. Among them, the processor 901, the memory 902, and the communication component 903 are connected through a bus 904.
[0163] In a specific implementation process, at least one processor 901 executes the computer execution instructions stored in the memory 902, so that at least one processor 901 executes the above-mentioned method for filling the work log.
[0164] For the specific implementation process of the processor 901, reference can be made to the above method embodiment, and its implementation principle and technical effect are similar, so it will not be elaborated here in this embodiment.
[0165] In the above Figure 9 shown embodiment, it should be understood that the processor may be a central processing unit (English: Central Processing Unit, abbreviated: CPU), and may also be other general-purpose processors, digital signal processors (English: Digital Signal Processor, abbreviated: DSP), application specific integrated circuits (English: Application SpecificIntegrated Circuit, abbreviated: ASIC), etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in combination with the invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.
[0166] The memory may include a high-speed memory (Random Access Memory, RAM), and may also include a non-volatile memory (Non-volatile Memory, NVM), such as at least one disk memory.
[0167] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, an Extended Industry Standard Architecture (EISA) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the buses in the drawings of the present application are not limited to only one bus or one type of bus.
[0168] Those skilled in the art will readily conceive of other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application, which follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application. The specification and examples are only regarded as exemplary, and the true scope and spirit of the present application are pointed out by the following claims.
Claims
1. A method for filling a work log, characterized in that: include: In response to the user's selection operation of the file identifier in the visual operation interface, determining the target work ticket query file; Read the target work ticket query file to determine the work status of the target work; If the work status indicates that the target work has not been processed and completed, determining a target work log template; Deploy the work content in the target work ticket query file to the target work log template to generate a work log script code; The work log script code is sent to a log management platform to complete filling of the work log. The log management platform is used to automatically fill in the work log according to the work log script code.
2. The filling method according to claim 1, characterized in that: The step of reading the target work ticket query file and determining the working status of the target work includes: Read the target work ticket query file to determine the work plan time and corresponding work content; According to the work plan time and the corresponding work content, the target work and the work status of the target work are determined.
3. The filling method according to claim 1, characterized in that: If the work status indicates that the target work has not been completed, determining a target work log template includes: If the work status indicates that the target work has not been processed, extracting various work information in the target work ticket query file; Determine the target work log template based on the work information.
4. The filling method according to claim 1, characterized in that: The step of deploying the work content in the target work ticket query file to the target work log template and generating the work log script code includes: Deploy the work content in the target work ticket query file to the target work log template to obtain the target work log; The target work log is displayed to the user through the visual operation interface, wherein the target work log includes the current work plan time and all work contents; In response to the user's selection operation on the code generation mark in the visual operation interface, a work log script code is generated.
5. The filling method according to claim 4, characterized in that: After generating the work log script code in response to the user's selection operation of the code generation identifier in the visual operation interface, the method further includes: In response to a user's selection operation of a date switching mark in the visual operation interface, determining to update a work ticket query file; Generate an update work log script code based on the update work ticket query file; The update work log script code is sent to the log management platform to complete the filling of the update work log.
6. The filling method according to claim 5, characterized in that: The step of generating an update work log script code according to the update work ticket query file includes: In response to a user's selection operation on a template viewing mark and a template selection mark in the visual operation interface, determining to update the work log template; Deploy the work content in the update work ticket query file to the update work log template to generate an update work log; Displaying the update work log to the user through the visual operation interface; In response to the user's selection operation of the code generation mark in the visual operation interface, a script code for updating the work log is generated.
7. The filling method according to claim 1, characterized in that: The method further comprises: The file identification of the work ticket query file is displayed in the visual operation interface; The work ticket query file includes the work plan time, work content and the work permit holder corresponding to the work content.
8. A device for filling a work log, characterized in that: include: A work ticket query file acquisition module is used to determine a target work ticket query file in response to a user's selection operation of a file identifier in a visual operation interface; A work status determination module, used to read the target work ticket query file and determine the work status of the target work; A work log template determination module, configured to determine a target work log template if the work status indicates that the target work has not been processed and completed; A work log script code generation module, used to deploy the work content in the target work ticket query file to the target work log template and generate a work log script code; The work log filling module is used to send the work log script code to the log management platform to complete the filling of the work log.
9. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the method according to any one of claims 1 to 7.
10. A work log filling system, characterized in that: The invention comprises a computer program, which implements the method according to any one of claims 1 to 7 when being executed by a processor.