A drag-and-drop configuration method based on a large-screen business report of fresh food
By introducing drag and drop configuration methods and iterative aggregated value encryption processing in fresh food business reports, the problems of inefficient efficiency and insufficient data security of traditional report generation methods are solved, and real-time dynamic configuration and data security guarantee of fresh food business reports are realized.
Patent Information
- Application Number
- CN202510294357.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-13
- Publication Date
- 2025-06-03
- Estimated Expiration
- 2045-03-13
AI Technical Summary
The traditional fresh food business report generation method is inefficient and error-prone, and cannot meet the real-time and dynamic needs of fresh food business reports. The existing drag and drop configuration methods lack in-depth considerations on the quality of fresh food items and data security.
A drag-and-drop configuration method based on the large-screen business report of fresh food is proposed. By dynamically generating the target area based on the quality of fresh food items in the real-time business report, drag-and-drop operations and rendering operations, the final business report is obtained, and the iterative aggregate value of the final business report is used to encrypt the report.
Real-time update and dynamic configuration of fresh food business reports is realized, the accuracy and efficiency of reports are improved, and the confidentiality and integrity of data are enhanced through encryption processing, helping enterprises to accurately manage fresh food inventory, reduce expired losses, and improve inventory turnover.
Smart Images

Figure CN119783647B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of data processing, and particularly relates to a drag-and-drop configuration method for a large-screen business report based on fresh food. Background Art
[0002] In modern retail, the management and sales of fresh food are crucial. Due to the relatively short shelf life of fresh food, the display of its inventory management reports requires a high degree of real-time and accuracy. Traditional report generation methods often rely on manual input and static configuration, which is not only inefficient but also error-prone, and cannot meet the real-time and dynamic requirements of fresh food business reports.
[0003] To solve this problem, the industry has begun to explore business report generation methods based on drag-and-drop configuration. However, most of the existing drag-and-drop configuration methods stay at the interface interaction level and lack in-depth consideration of aspects such as the shelf-life situation of fresh food items and data security. Summary of the Invention
[0004] To solve the above problems, the present invention proposes a drag-and-drop configuration method for a large-screen business report based on fresh food.
[0005] The technical solution of the present invention is: A drag-and-drop configuration method for a large-screen business report based on fresh food includes the following steps:
[0006] S1. Generate target areas for each fresh food item according to the shelf-life situation of the fresh food items in the real-time business report;
[0007] S2. Based on the target areas of each fresh food item, perform drag-and-drop operations and rendering operations to obtain the final business report;
[0008] S3. Use several iterative aggregation values of the final business report to encrypt the final business report.
[0009] Further, S1 includes the following sub-steps:
[0010] S11. Obtain the remaining shelf life of the fresh food items in the real-time business report;
[0011] S12. Arrange the remaining shelf life of the fresh food items in ascending order to generate a business report to be processed;
[0012] S13. Determine the target areas of each fresh food item according to the real-time business report and the business report to be processed.
[0013] Further, S2 includes the following sub-steps:
[0014] S21. Generate a drag trajectory for each fresh food item according to the current area and target area of each fresh food item;
[0015] S22. Use the drag event to move each fresh food item along the drag trajectory to the target area to obtain a business report to be rendered;
[0016] S23. Perform a rendering operation on the business report to be rendered to obtain the final business report.
[0017] The beneficial effects of the above further solution are as follows: In the present invention, it is necessary to know the current position (i.e., the current area) and the target position (i.e., the target area) of each fresh food item, and then obtain an optimal path from the current position to the target position, that is, the drag trajectory. It is necessary to monitor the user's drag operation and perform corresponding operations when the user starts dragging (dragstart event), during the dragging process (involving dragover, which usually refers to the event that the dragged element enters a certain droppable area, and the movement during the dragging process depends more on the continuous processing of the drag event or the mouse movement event), and when the dragging ends (dragend event). During the dragging process, it is necessary to dynamically update the position of the fresh food item according to the pre-calculated drag trajectory until it is dragged to the target area. Once the dragging is completed, the system can generate a business report to be rendered containing the latest position information.
[0018] Further, in S22, start listening to the dragstart drag event when the fresh food item starts to be dragged, start listening to the drag drag event when the fresh food item is dragged along the drag trajectory to the target area, and listen to the dragend drag event when the dragging operation is completed.
[0019] Further, S3 includes the following sub-steps:
[0020] S31. Generate an initial iterative model for the fresh food item in the first row of the final business report;
[0021] S32. Based on the initial iterative model, generate iterative aggregation values for the remaining rows of the final business report;
[0022] S33. Generate a password pair according to several iterative aggregation values;
[0023] S34. Encrypt the final business report using the password pair.
[0024] The beneficial effects of the above further solution are as follows: In the present invention, the dragstart event inherits from the MouseEvent interface, so the event object contains the timeStamp property, which records the time stamp when the event is triggered. By iteratively aggregating values to generate password pairs, the security of data can be increased to prevent unauthorized access. IDfirst provides a unique identifier for the first row of fresh food items in the report, which helps to accurately identify and reference this item in subsequent processing. STAMP first The introduction of makes the initial iteration model associated with the time stamp of the drag event, which can reflect the timeliness of data generation and is particularly important for scenarios that require tracking data freshness. The application of the HASH(·) function provides a fixed hash value for the initial iteration model. If the data in the first row of the report is tampered with, its hash value will change, and thus it can be detected. Through iteration, each row of fresh food items can be calculated based on the data of the previous row (or the initial iteration model), integrating information from multiple dimensions such as the ID value, remaining shelf life time, and time stamp parameter, making the report data more comprehensive and timely.
[0025] Further, in S31, the initial iteration model Q * has the following expression:
[0026] ; where ID first represents the ID value of the first row of fresh food items in the final business report, T first represents the remaining shelf life time of the first row of fresh food items in the final business report, STAMP first represents the time stamp parameter of the dragstart drag event corresponding to the first row of fresh food items in the final business report, and HASH(·) represents the hash function.
[0027] Further, in S32, the calculation formula for the iterative aggregation value of the t-th row of fresh food items in the final business report is:
[0028] ; where ID k represents the ID value of the k-th row of fresh food items in the final business report, T 2 represents the remaining shelf life time of the 2nd row of fresh food items in the final business report, T 3 represents the remaining shelf life time of the 3rd row of fresh food items in the final business report, T k represents the remaining shelf life time of the k-th row of fresh food items in the final business report, STAMP k represents the time stamp parameter of the dragstart drag event corresponding to the k-th row of fresh food items in the final business report, and HASH(·) represents the hash function, Q* Represents the initial iteration model.
[0029] Furthermore, S33 includes the following sub-steps:
[0030] S331. Take the average of several iteration aggregation values;
[0031] S332. Combine the initial iteration model value and the several iteration aggregation values whose average is taken to generate a password pair.
[0032] Furthermore, in S332, the calculation formula for the password pair F:
[0033] ; where Q * Represents the initial iteration model, q represents the several iteration aggregation values whose average is taken, and random represents a random number.
[0034] The beneficial effects of the present invention are as follows: The present invention dynamically generates a target area according to the shelf life of fresh food, enabling the report to reflect the freshness status of fresh food in real time. Through drag-and-drop operations and rendering operations, the report content can be quickly configured according to actual needs without relying on cumbersome manual input or static templates. Finally, the report is encrypted using several iteration aggregation values of the final business report, enhancing the confidentiality and integrity of the report data, providing strong protection for the information security of the enterprise, helping the enterprise achieve precise management of fresh food inventory, reducing expired losses, and improving inventory turnover. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] Figure 1 It is a flowchart of a drag-and-drop configuration method for a large-screen business report based on fresh food. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0036] The following further describes the embodiments of the present invention with reference to the accompanying drawings.
[0037] As Figure 1 shown, the present invention provides a drag-and-drop configuration method for a large-screen business report based on fresh food, including the following steps:
[0038] S1. Generate a target area for each fresh food item according to the shelf life of the fresh food items in the real-time business report;
[0039] S2. Based on the target areas of each fresh food item, perform drag-and-drop operations and rendering operations to obtain the final business report;
[0040] S3. Encrypt the final business report using several iteration aggregation values of the final business report.
[0041] In the embodiments of the present invention, S1 includes the following sub-steps:
[0042] S11. Obtain the remaining shelf life of the fresh food items in the real-time business report;
[0043] S12. Arrange the remaining shelf life of the fresh food items in ascending order to generate a business report to be processed;
[0044] S13. Determine the target area of each fresh food item according to the real-time business report and the business report to be processed.
[0045] In the embodiment of the present invention, S2 includes the following sub-steps:
[0046] S21. Generate a drag trajectory for each fresh food item according to the current area and the target area of each fresh food item;
[0047] S22. Use the drag event to drag each fresh food item along the drag trajectory to the target area to obtain a business report to be rendered;
[0048] S23. Perform a rendering operation on the business report to be rendered to obtain a final business report.
[0049] In the present invention, it is necessary to know the current position (i.e., the current area) and the target position (i.e., the target area) of each fresh food item, and then obtain an optimal path from the current position to the target position, that is, the drag trajectory. It is necessary to listen to the user's drag operation and perform corresponding operations when the user starts dragging (dragstart event), during the dragging process (involving dragover, which usually refers to the event that the dragged element enters a certain drop area, and the movement during the dragging process depends more on the continuous processing of the drag event or the mouse movement event), and when the dragging ends (dragend event). During the dragging process, it is necessary to dynamically update the position of the fresh food item according to the pre-calculated drag trajectory until it is dragged to the target area. Once the dragging is completed, the system can generate a business report to be rendered containing the latest position information.
[0050] In the embodiment of the present invention, in S22, start listening to the dragstart drag event when the fresh food item starts to be dragged, start listening to the drag drag event when the fresh food item is dragged along the drag trajectory to the target area, and listen to the dragend drag event when the dragging operation is completed.
[0051] In the embodiment of the present invention, S3 includes the following sub-steps:
[0052] S31. Generate an initial iterative model for the fresh food items in the first row of the final business report;
[0053] S32. Based on the initial iteration model, generate iteration aggregation values for the remaining rows of the final business report;
[0054] S33, generating a password pair according to a number of iterative aggregation values;
[0055] S34. Encrypt the final business report using a password.
[0056] In the present invention, the dragstart event inherits from the MouseEvent interface, so the event object contains a timeStamp attribute to record the timestamp of the event triggering. By iterating the aggregated value to generate a password pair, the security of the data can be increased to prevent unauthorized access. IDfirst provides a unique identifier for the first row of fresh food items in the report, which helps to accurately identify and reference the item in subsequent processing. STAMP first The introduction of makes the initial iteration model associated with the timestamp of the drag event, which can reflect the timeliness of data generation, which is particularly important for scenarios that need to track data freshness. The application of the HASH(·) function provides a fixed hash value for the initial iteration model. If the first row of data in the report is tampered with, its hash value will change and can be detected. Through iteration, each row of fresh food items can be calculated based on the data of the previous row (or the initial iteration model), integrating multiple dimensions of information such as ID value, remaining shelf life time and timestamp parameters, making the report data more comprehensive and timely.
[0057] In the embodiment of the present invention, in S31, the initial iteration model Q * The expression is:
[0058] ; Where, ID first Indicates the ID value of the first row of fresh food items in the final business report, T first Indicates the remaining shelf life of the first line of fresh food items in the final business report, STAMP first It indicates the timestamp parameter of the dragstart drag event corresponding to the first row of fresh food items in the final business report. HASH(·) indicates the hash function.
[0059] In the embodiment of the present invention, in S32, the calculation formula of the iterative aggregation value of the fresh food item in the tth row in the final business report is:
[0060] ; Where, ID k Indicates the ID value of the fresh food item in row k in the final business report, T 2 Indicates the remaining shelf life of the fresh food item in line 2 of the final business report, T 3Represents the remaining shelf life time of the fresh food item in the 3rd row of the final business report, T k Represents the remaining shelf life time of the fresh food item in the kth row of the final business report, STAMP k Represents the timestamp parameter of the dragstart drag event corresponding to the fresh food item in the kth row of the final business report, HASH(·) represents the hash function, Q * Represents the initial iteration model.
[0061] In the embodiment of the present invention, S33 includes the following sub-steps:
[0062] S331: Take the mean value of several iteration aggregation values;
[0063] S332: Combine the initial iteration model value and the several iteration aggregation values with the mean value to generate a password pair.
[0064] In the embodiment of the present invention, in S332, the calculation formula of the password pair F:
[0065] ; In the formula, Q * Represents the initial iteration model, q represents the several iteration aggregation values with the mean value taken, and random represents a random number.
[0066] Those of ordinary skill in the art will realize that the embodiments described herein are for helping the reader understand the principles of the present invention, and should be understood that the protection scope of the present invention is not limited to such specific statements and embodiments. Those of ordinary skill in the art can make various other specific deformations and combinations that do not depart from the essence of the present invention based on the technical revelations disclosed in the present invention, and these deformations and combinations are still within the protection scope of the present invention.
Claims
1. A drag-and-drop configuration method based on a large-screen business report of fresh food, characterized in that: The following steps are involved: S1. Generate a target area for each fresh food item according to the quality status of the fresh food item in the real-time business report; S2. Based on the target area of each fresh food item, drag and drop operations and rendering operations are performed to obtain a final business report; S3, encrypting the final business report using several iterative aggregation values of the final business report; The S3 comprises the following sub-steps: S31, generating an initial iteration model for the first line of fresh food items in the final business report; S32. Based on the initial iteration model, generate iteration aggregation values for the remaining rows of the final business report; S33, generating a password pair according to a number of iterative aggregation values; S34, encrypting the final business report using a password; In S31, the initial iteration model Q * The expression is: ; Where, ID first Indicates the ID value of the first row of fresh food items in the final business report, T first Indicates the remaining shelf life of the first line of fresh food items in the final business report, STAMP first Indicates the timestamp parameter of the dragstart drag event corresponding to the first row of fresh food items in the final business report, and HASH(·) indicates a hash function; In S32, the calculation formula for the iterative aggregation value of the fresh food item in the tth row in the final business report is: ; Where, ID k represents the ID value of the fresh food item in the kth row in the final business report, T2 represents the remaining shelf life of the fresh food item in the second row in the final business report, T3 represents the remaining shelf life of the fresh food item in the third row in the final business report, and T k Indicates the remaining shelf life of the fresh food item in row k in the final business report, STAMP k represents the timestamp parameter of the dragstart drag event corresponding to the k-th row of fresh food in the final business report, HASH(·) represents the hash function, Q * represents the initial iteration model; The S33 comprises the following sub-steps: S331, taking the average of several iterative aggregation values; S332, combining the initial iterative model value and the averaged several iterative aggregation values to generate a password pair; In S332, the calculation formula of the password pair F is: Where Q * represents the initial iterative model, q represents several iterative aggregation values whose average is taken, and random represents a random number.
2. The drag-and-drop configuration method based on the fresh food large-screen business report according to claim 1 is characterized in that: The S1 comprises the following sub-steps: S11. Obtain the remaining shelf life of fresh food items in the real-time business report; S12, arranging the remaining shelf life of the fresh food items in order from low to high, and generating a pending business report; S13. Determine the target area of each fresh food item according to the real-time business report and the pending business report.
3. The drag-and-drop configuration method based on the fresh food large-screen business report according to claim 1 is characterized in that: The S2 comprises the following sub-steps: S21, generating a dragging track for each fresh food item according to the current area and the target area of each fresh food item; S22, using a drag event to drag each fresh food item along the drag track to a target area, to obtain a business report to be rendered; S23: Render the business report to be rendered to obtain a final business report.
4. The drag-and-drop configuration method based on the fresh food large-screen business report according to claim 3 is characterized in that: In S22, the dragstart event is monitored when the fresh food item starts to be dragged, the drag event is monitored when the fresh food item is dragged to the target area along the drag track, and the dragend event is monitored when the drag operation is completed.
Citation Information
Patent Citations
Distribution management method
CN111815249A
Service regulation and control network security and credibility auditing method and system suitable for 5G network
CN114885325A
Method and system for generating large-screen report based on dragging of metadatabase
CN118502736A