Information input method and system supporting rapid billing of retail web application
By receiving and splicing user input data in retail web applications, the problems of missing and incorrect input operations in retail cashier applications are solved, and fast and complete information entry is achieved to ensure the data consistency and integrity of business operations.
Patent Information
- Application Number
- CN202411597648.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-11
- Publication Date
- 2024-12-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
In retail cashiers applications, cashiers need to specify input controls to enter product barcodes, and the code is easily lost when scanning the code too quickly, and the existing system cannot effectively solve these problems.
By receiving data input from the user's keyboard or code scan gun in a web application, using event listeners to splice data to prevent dirty data from being generated by misoperation, and compensate for input data when the system state is switched to ensure data integrity.
It realizes the rapid entry of information without specifying input controls, ensures data integrity, solves the problem of missing code entry and mismatch in application feedback, and does not affect other entry or control operations.
Smart Images

Figure CN119130386A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of web page data processing, and in particular to an information entry method and system supporting rapid order opening of retail web applications. Background Art
[0002] In retail cashier applications, cashiers expect to be able to directly pick up a barcode scanner to scan the barcode without specifying an input control to receive the product barcode; however, the existing technology generally has the following technical difficulties, such as: 1. The cashier needs to specify an input control to receive the entered product barcode; 2. When the cashier scans the code to add a product, the barcode may be lost due to scanning too quickly. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides an information entry method and system that supports quick order opening in retail web applications. After entering the web application, there is no need to use input controls such as input. The user only needs to use peripherals such as a keyboard or a barcode scanner to directly input and obtain input data, which facilitates business operations.
[0004] A method for inputting information to support rapid order opening in a retail web application comprises the following steps: Step 1: Receive user input data; Because there is no data entry component, the system needs to add the onkeydown event of document.body.addEventListener after entering the page. When the user enters data, the browser's event listener receives and stores the user's input data. When the user enters data again, the last entered information and the current entered information are automatically spliced to obtain complete input data. The specific process design includes: When the user enters data, the system determines whether it is in the waiting state. If not, the user input is terminated. If yes, the system determines whether to press Enter. If yes, the system presses Enter to search for products. If not, the system continues to collect and enter data and then performs splicing operations. As an example, the splicing operation refers to: splicing the historical input data with the current input data.
[0005] As an example, the data entry component refers to: an input type control.
[0006] As an example, when receiving user input data, the first input is 1 and the second input is 2. After executing the splicing operation, the information entered by the user is 1 and 2; after pressing the Enter key on the keyboard, the overall information of 1 and 2 is obtained, and the business operation is executed.
[0007] Step 2: Prevent dirty data from being generated by user misoperation; When the user enters data, the timer is started. If the user enters data again within a certain period of time, the splicing operation is performed on the entered data. If the user does not enter data within a certain period of time, the stored entered data is cleared to prevent dirty data from being generated due to erroneous operations. The specific process design includes: When the user enters data, the system determines whether to wait for the input state. If not, the system ends directly. If yes, the system starts the timer. If the time for the user to enter data is less than a certain time, the stored input data (stored data) is directly cleared. If the user enters data again within a certain period of time, the system determines whether to press Enter. If yes, the system presses Enter and searches for products directly. If not, the system continues to collect the user's input data, performs the splicing operation, and updates the stored input data (stored data). As an example, the certain time is: 1 second or 0.5 second, and the timer can be adjusted and updated uniformly or individually according to the speed of the user's operation.
[0008] Step 3: Solve the problem of lost data entry; The reasons for the loss of input data are: when the existing system is in a non-input state, the user still performs the user input data operation, and the input information will be lost at this time; when the user is entering data, the system switches back to the input state, and the subsequent input data will be collected, resulting in incorrect overall input data.
[0009] The present invention designs the following solutions: ① When the system is in a non-entry state, the second data is enabled to be stored for receiving; ② When the system switches back to the user data entry state, the user input data is normally entered into the first data (i.e. the original saved data), and the subsequent user input data is compensated to the first data, and the splicing operation is performed to obtain the complete input data; The specific process design includes: The user enters data and determines whether to wait for entry. If not, the second data operation is stored. Click Enter to update to a non-entry state. At this time, after the user enters data, the first data is no longer stored; the product search is performed and the first data is cleared. When the update is to an entry state, the user enters data normally and starts from the beginning; when the Enter is no, the entered data is collected and the second data is spliced with the first data, and the first data continues to be further spliced with the current entered data; Step 4: Do not affect other inputs or other inputs interfere: ① When focusing on other input controls, the system will reject the user input data based on the active elements of the current page; ② After supporting pop-up boxes, this system will no longer accept user input data based on whether there is a pop-up box on the page.
[0010] A system based on a method for inputting information to support rapid order opening in a retail web application, comprising: A memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, all steps in an information entry method supporting rapid order opening for retail web applications are implemented.
[0011] Beneficial effects of the present invention: 1. The present invention supports inputting information without specifying an input control after entering an application, and supports obtaining input content without focusing on a page control.
[0012] 2. The present invention ensures the integrity of the data of the interaction when the user initiates multiple interactions continuously (the process of entering data once and waiting for application feedback is called one interaction), and solves the problem of losing the entered content when scanning the code again during the business execution process.
[0013] 3. The present invention solves the problem that application feedback and user operations may not match each other when scanning codes continuously.
[0014] 4. It does not affect the content operation of the pop-up window or the input of other controls, which will affect the input of this system. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 The present invention is a flowchart of receiving user input data in an information input method supporting rapid order opening of retail web applications.
[0016] Figure 2 The present invention is a flow chart of an information entry method supporting rapid order opening for retail web applications, which prevents dirty data generated by user misoperation.
[0017] Figure 3 The present invention is a flow chart of a method for inputting information to support rapid order opening for retail web applications and solve the problem of lost input.
[0018] Figure 4 The present invention is a flowchart of an example of information entry loss in a method for quickly opening orders for retail web applications. DETAILED DESCRIPTION
[0019] Below, reference Figures 1 to 3 As shown, a method for inputting information to support quick order opening in a retail web application includes the following steps: Step 1: Receive user input data; Because there is no data entry component, the system needs to add the onkeydown event of document.body.addEventListener after entering the page. When the user enters data, the browser's event listener receives and stores the user's input data. When the user enters data again, the last entered information and the current entered information are automatically spliced to obtain complete input data. The specific process design includes: When the user enters data, the system determines whether it is in the waiting state. If not, the user input is terminated. If yes, the system determines whether to press Enter. If yes, the system presses Enter to search for products. If not, the system continues to collect and enter data and then performs splicing operations. As an example, the splicing operation refers to: splicing the historical input data with the current input data.
[0020] As an example, the data entry component refers to: an input type control.
[0021] As an example, when receiving user input data, the first input is 1 and the second input is 2. After executing the splicing operation, the information entered by the user is 1 and 2; after pressing the Enter key on the keyboard, the overall information of 1 and 2 is obtained, and the business operation is executed.
[0022] Step 2: Prevent dirty data from being generated by user misoperation; When the user enters data, the timer is started. If the user enters data again within a certain period of time, the splicing operation is performed on the entered data. If the user does not enter data within a certain period of time, the stored entered data is cleared to prevent dirty data from being generated due to erroneous operations. The specific process design includes: When the user enters data, the system determines whether to wait for the input state. If not, the system ends directly. If yes, the system starts the timer. If the time for the user to enter data is less than a certain time, the stored input data (stored data) is directly cleared. If the user enters data again within a certain period of time, the system determines whether to press Enter. If yes, the system presses Enter and searches for products directly. If not, the system continues to collect the user's input data, performs the splicing operation, and updates the stored input data (stored data). As an example, the certain time is: 1 second or 0.5 second. The timer can be adjusted and updated uniformly or individually according to the user's operating speed, that is, the user's input speed.
[0023] Step 3: Solve the problem of lost data entry; The reasons for the loss of input data are: when the existing system is in a non-input state, the user still performs the user input data operation, and the input information will be lost at this time; when the user is entering data, the system switches back to the input state, and the subsequent input data will be collected, resulting in incorrect overall input data.
[0024] The present invention designs the following solutions: ① When the system is in a non-entry state, the second data is enabled to be stored for receiving; ② When the system switches back to the user data entry state, the user input data is normally entered into the first data (i.e. the original saved data), and the subsequent user input data is compensated to the first data, and the splicing operation is performed to obtain the complete input data; The specific process design includes: The user enters data and determines whether to wait for entry. If not, the second data operation is stored. Click Enter to update to a non-entry state. At this time, after the user enters data, the first data is no longer stored; the product search is performed and the first data is cleared. When the update is to an entry state, the user enters data normally and starts from the beginning; when the Enter is no, the entered data is collected and the second data is spliced with the first data, and the first data continues to be further spliced with the current entered data; Step 4: Do not affect other inputs or other inputs interfere: ① When focusing on other input controls, the system will reject the user input data based on the active elements of the current page; ② After supporting pop-up boxes, this system will no longer accept user input data based on whether there is a pop-up box on the page.
[0025] A system based on a method for inputting information to support rapid order opening in a retail web application, comprising: A memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, all steps in an information entry method supporting rapid order opening for retail web applications are implemented.
[0026] In order to better illustrate the problem of loss of input in the prior art, Figure 4 As shown, the design defects of the prior art are illustrated by way of example; like Figure 4 As shown, the prior art does not include the architectural design of the first data and the second data, resulting in a situation where all the data entered in the former is lost when the normal entry operation is not performed.
[0027] The present invention supports inputting information without specifying an input control after entering an application, and supports obtaining input content without focusing on a page control; the present invention ensures the integrity of the data of the interaction when the user continuously initiates multiple interactions (the process of inputting once and waiting for application feedback is called an interaction), and solves the problem of losing the input content when scanning the code again during business execution; the present invention solves the situation where application feedback and user operation may not match when scanning the code continuously; it does not affect the content operation of the pop-up box or the input of other controls that affect the input of this system.
[0028] The above are only preferred embodiments of the present invention. It should be understood that the description of the above embodiments is only used to help understand the method and core ideas of the present invention, and is not used to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, etc. made within the ideas and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for inputting information to support rapid order opening in retail web applications, characterized in that: The steps include: Step 1: Receive user input data; Because there is no data entry component, the system needs to add the onkeydown event of document.body.addEventListener after entering the page. When the user enters data, the browser's event listener receives and stores the user's input data. When the user enters data again, the last entered information and the current entered information are automatically spliced to obtain complete input data. Step 2: Prevent dirty data from being generated by user misoperation; When the user enters data, the timer is started. If the user enters data again within a certain period of time, the splicing operation is performed on the entered data. If the user does not enter data within a certain period of time, the stored entered data is cleared to prevent dirty data from being generated due to erroneous operations. Step 3: Solve the problem of lost data entry; When the system is in a non-entry state, enabling storage of the second data for receiving; When the system switches back to the user data entry state, the user input data is normally entered into the first data, and the subsequent user input data is compensated to the first data, and a splicing operation is performed to obtain complete input data; Step 4: Do not affect other inputs or be interfered with by other inputs; When focusing on other input controls, the system will reject the user input data based on the active element of the current page; After supporting pop-up boxes, the system will no longer accept user input data based on whether there is a pop-up box on the page; if there is a pop-up box, the system will no longer accept user input data; otherwise, the user continues to enter data.
2. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The specific process design of receiving user input data includes: When the user enters data, the system determines whether it is in the waiting state. If not, the user input is terminated. If yes, it determines whether to press Enter. If yes, press Enter to search for products. If not, continue to collect and enter data and then perform splicing operations.
3. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The splicing operation refers to: splicing the historical input data with the current input data.
4. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The data entry component refers to: an input type control.
5. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The specific process design for preventing dirty data generated by user misoperation includes: When the user enters data, the system determines whether to wait for the entry status. If not, it ends directly. If so, it starts the timer. If the time for the user to enter data is less than a certain time, the stored entry data is directly cleared; if the user enters data again within a certain period of time, it determines whether to press Enter. If yes, press Enter and search for products directly. If not, it continues to collect user entry data, performs the splicing operation, and updates the stored entry data.
6. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The certain time is: 1 second or 0.5 second. The timers are adjusted and updated uniformly or individually according to the speed of the user's operation.
7. The method for inputting information to support rapid order opening of retail web applications according to claim 1, characterized in that: The specific process design for solving the problem of lost input includes: The user enters data and determines whether to wait for entry. If not, the second data operation is stored. Click Enter to update to the non-entry state. At this time, after the user enters data, the first data is no longer stored; Execute the product search, clear the first data, and when it is updated to the entry state, the user enters the data normally and starts from the beginning; when the Enter button is no, collect the entered data, and perform the splicing operation on the second data and the first data, and the first data continues to be further spliced with the current entered data.
8. A system for supporting the method for quickly opening a retail web application order based on any one of claims 1 to 7, characterized in that: include: A memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, all steps in the information entry method supporting rapid order opening of retail web applications according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Data scanning and inputting method
CN101782907A
An intelligent recording bill-making method, a device and a computer device
CN109254974A
A system and method for automatically triggering browser actions
CN109359258A
Data processing method and a data processing device
CN109582470A
Web security input system and method, terminal equipment and readable storage medium
CN115795569A
