Tag express sheet generation method and device, equipment and storage medium

By displaying the plug-in panel and the canvas panel, users can customize label design and generate printing instructions, solving the problems of complex operation and high maintenance costs in the prior art, real-time preview and cross-platform compatibility label printing.

CN118897642APending Publication Date: 2024-11-05GUANGZHOU KUAIPI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411071614.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-05

AI Technical Summary

Technical Problem

The existing label printing technology is complex in operation, unable to meet the diverse needs of users, has high maintenance costs, and cannot achieve real-time preview printing results.

Method used

Provide a method for generating label page list. By displaying the plug-in panel and canvas panel, users can drag and adjust the plug-in components to generate the initial canvas, and enter attribute information through the settings panel to generate printing instructions, supporting real-time preview and cross-platform compatibility. .

Benefits of technology

It improves user design efficiency and experience, reduces maintenance costs, meets diverse needs, and realizes real-time preview effects and efficient and flexible label printing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118897642A_ABST
    Figure CN118897642A_ABST
Patent Text Reader

Abstract

The invention discloses a label express sheet generation method and device, equipment and a storage medium. The method comprises the steps that a plug-in panel and a canvas panel are displayed; wherein the plug-in panel comprises a plurality of plug-in assemblies; in response to a plug-in component dragged by a user in the plug-in panel to the canvas panel, generating an initial canvas; displaying a setting panel corresponding to the plug-in component according to the plug-in component in the initial canvas clicked by the user, so as to receive the attribute input by the user to complete the setting of the plug-in component; after a user sets all the plug-in components, a label style is obtained and stored, a printing instruction is generated according to the stored label style, the printing instruction is sent to a printer for printing, and a label express sheet is generated. The technical problems that in the prior art, operation is complex, diversified customization requirements of users cannot be met, and the maintenance cost is high are solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of Internet technology, and in particular to a method, device, equipment and storage medium for generating a label sheet. Background Art

[0002] In the traditional wholesale, retail and logistics fields, it is necessary to print product labels and logistics labels and paste them to the corresponding goods and logistics boxes to assist in identifying and scanning the goods.

[0003] In the existing label printing technology, most companies or individuals need to rely on fixed templates or professional printing software to design labels. However, using professional printing software requires a certain learning cost, and it is complicated for non-professionals to operate. At the same time, fixed templates are difficult to meet the diverse needs of users, especially when the label style needs to be changed frequently, which causes the problem of complicated operation. Traditional printing methods usually cannot preview the printing effect in real time, which increases the possibility of errors. In addition, each time the label style is modified, the template needs to be redesigned or adjusted, which increases the maintenance cost. Summary of the invention

[0004] The present invention provides a method, device, equipment and storage medium for generating a label face sheet to solve the technical problems in the prior art of complex operation, inability to meet users' diverse customization needs and high maintenance cost.

[0005] In order to solve the above technical problems, an embodiment of the present invention provides a method for generating a label sheet, comprising:

[0006] Displaying a plug-in panel and a canvas panel; wherein the plug-in panel includes a plurality of plug-in components;

[0007] In response to a user dragging a plug-in component from the plug-in panel to the canvas panel, generating an initial canvas;

[0008] According to the plug-in component clicked by the user in the initial canvas, a setting panel corresponding to the plug-in component is displayed, thereby receiving the properties input by the user to complete the setting of the plug-in component;

[0009] After the user sets all the plug-in components, the label style is obtained and saved. A printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet.

[0010] As a preferred solution, in response to the user dragging a plug-in component in the plug-in panel to the canvas panel, generating an initial canvas specifically includes:

[0011] In response to a user clicking a plug-in component in the plug-in panel and dragging the plug-in component to the canvas panel, obtaining a position of each plug-in component in the canvas panel;

[0012] In response to the user performing transformation operations on the plug-in components respectively, the relationship between the plug-in components is obtained, and the initial canvas is generated according to the relationship and position between the plug-in components.

[0013] As a preferred solution, the transformation operation includes: scaling operation, rotation operation and dragging operation;

[0014] The scaling operation is performed by the user dragging the edge of the plug-in component to achieve the size scaling of the plug-in component;

[0015] The rotation operation is achieved by the user rotating the rotation button of the plug-in component to change the angle of the plug-in component;

[0016] The drag operation realizes the position change of the plug-in component by the user clicking and dragging the plug-in component to move on the canvas panel.

[0017] As a preferred solution, according to the plug-in component clicked by the user in the initial canvas, a setting panel corresponding to the plug-in component is displayed, thereby receiving the properties input by the user to complete the setting of the plug-in component, specifically including:

[0018] According to any one or more plug-in components in the initial canvas clicked by the user, all setting panels corresponding to the clicked plug-in components are displayed; wherein each plug-in component corresponds to one setting panel;

[0019] In response to the user inputting corresponding attribute information in the setting panel, the corresponding plug-in component is set according to the attribute information, and the attribute information corresponding to the set plug-in component is displayed in the setting panel.

[0020] As a preferred solution, the attribute information includes: title, field, position, size, font size, color, font thickness, alignment, text line height, rotation angle and omitted display.

[0021] As a preferred solution, after the user sets all plug-in components, a label style is obtained, and the label style is saved, a printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet, which specifically includes:

[0022] After the user sets all the plug-in components, the label style is obtained, and the label style is saved as a data file in JSON format, so as to send the data file to the browser;

[0023] The data file is restored in the browser to obtain data corresponding to its label style, and a printing instruction is generated according to the data corresponding to its label style. The data corresponding to its label style is used as printing data, and the printing instruction and the printing data are sent to the printer for printing, thereby generating a label sheet.

[0024] As a preferred solution, the plug-in components in the plug-in panel include: a vertical line component, a QR code component, a barcode component, a text component, a horizontal line component and a picture component.

[0025] Accordingly, the present invention also provides a device for generating a label sheet, comprising: a display module, an initial canvas module, a component setting module and a label sheet module;

[0026] The display module is used to display the plug-in panel and the canvas panel; wherein the plug-in panel includes a plurality of plug-in components;

[0027] The initial canvas module is used to generate an initial canvas in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel;

[0028] The component setting module is used to display a setting panel corresponding to the plug-in component clicked by the user in the initial canvas, thereby receiving the properties input by the user to complete the setting of the plug-in component;

[0029] The label sheet module is used to obtain the label style after the user sets all the plug-in components, save the label style, generate a printing instruction according to the saved label style, and send the printing instruction to the printer for printing to generate a label sheet.

[0030] Correspondingly, the present invention also provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the method for generating a label face sheet as described in any one of the above.

[0031] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the label face sheet generation method as described in any one of the above.

[0032] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0033] The technical solution of the present invention generates an initial canvas by displaying a plug-in panel and a canvas panel, and in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel, and then displays a corresponding setting panel according to the plug-in component clicked by the user, and then completes the setting of the plug-in component by receiving attribute information input by the user, thereby improving the user's design efficiency and experience, thereby making the custom label printing system more complete and practical, and able to meet the different needs of more users, and obtain the label style after the user sets all plug-in components, save the label style and generate a printing instruction, and finally print the instruction to the printer for printing to generate a label face sheet, thereby achieving real-time preview effect, reducing maintenance costs and improving cross-platform compatibility, greatly improving the efficiency and flexibility of label printing, and meeting the growing customization needs of modern enterprises and individual users. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] Figure 1 : A flowchart of a method for generating a label sheet provided by an embodiment of the present invention;

[0035] Figure 2 : A structural diagram of a label face sheet generating device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0036] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0037] Embodiment 1

[0038] Please refer to Figure 1 , a method for generating a label sheet provided by an embodiment of the present invention includes the following steps S101-S104:

[0039] Step S101: displaying a plug-in panel and a canvas panel; wherein the plug-in panel includes a plurality of plug-in components.

[0040] As a preferred solution of this embodiment, the plug-in components in the plug-in panel include: a vertical line component, a QR code component, a barcode component, a text component, a horizontal line component and a picture component.

[0041] In this embodiment, the plug-in panel provides a variety of plug-in components for users to choose from, including but not limited to text, barcodes, QR codes, pictures, horizontal and vertical lines, etc., and these plug-in components can be freely dragged and placed by users. Users can select the plug-in components they want by clicking the mouse, and then drag them to any position on the canvas panel. When placing the plug-in components, users can adjust the size and position of the plug-in components as needed to create a design that meets their needs. This custom drag-and-drop method can provide great flexibility, allowing users to freely design and customize their canvases according to their needs and preferences.

[0042] In this embodiment, the canvas panel can provide the functions of alignment, undo and rollback, and preview design. The automatic display of the alignment function is that when the user moves the component to the canvas, the system will automatically display the alignment line to assist the user in precise positioning. These alignment lines may include horizontal, vertical, and diagonal lines. And smart adsorption can automatically adsorb the component to the alignment line when the user moves the component close to other components or the edge of the canvas, ensuring that the spacing and position between components are accurate. As for custom settings, users can customize the display mode and sensitivity of the alignment line as needed to adapt to different design needs and habits.

[0043] Furthermore, undo and rollback include: operation record, undo operation and restore operation; among them, operation record, through the system to record every step of the user's operation on the drawing board, including the addition, deletion, movement, property modification of components, etc. For undo operation, the user can undo the previous step or multiple steps by clicking the undo button or shortcut key and return to the previous design state. For restore operation, after undoing the operation, the user can also select the restore button or shortcut key to restore the design state to the state before undoing, so as to achieve flexible editing and modification.

[0044] Furthermore, during the design process, the system will preview the printing effect of the label in real time to ensure that what the user sees is what he gets. The user can make real-time adjustments and optimizations based on the preview effect.

[0045] Step S102: in response to the user dragging a plug-in component in the plug-in panel onto the canvas panel, an initial canvas is generated.

[0046] As a preferred solution of this embodiment, in response to the user dragging a plug-in component in the plug-in panel to the canvas panel, generating an initial canvas specifically includes:

[0047] In response to a user clicking a plug-in component in the plug-in panel and dragging it onto the canvas panel, the position of each plug-in component in the canvas panel is obtained; in response to the user performing a transformation operation on each plug-in component, the relationship between the plug-in components is obtained, and an initial canvas is generated based on the relationship and position between the plug-in components.

[0048] In this embodiment, the user can obtain the position of each plug-in component in the canvas panel by clicking on the plug-in component in the plug-in panel and dragging the clicked plug-in component to the canvas panel. Then, by the relationship between each position in the canvas panel, it is convenient to perform transformation operations on each plug-in component, and finally the relationship information between the plug-in components can be obtained, and finally the initial canvas is generated according to the relationship and position between the plug-in components.

[0049] In this embodiment, various plug-in components can be displayed on the canvas panel to form a visual layout, wherein the plug-in components include but are not limited to text, pictures, barcodes, QR codes, horizontal lines and vertical lines, etc., and each plug-in component can be freely operated by the user, including scaling, dragging and rotating, etc.

[0050] As a preferred solution of this embodiment, the transformation operation includes: a scaling operation, a rotation operation and a dragging operation;

[0051] The scaling operation enables the user to scale the size of the plug-in component by dragging the edge of the plug-in component; the rotation operation enables the user to rotate the rotation button of the plug-in component to change the angle of the plug-in component; the dragging operation enables the user to click and drag the plug-in component on the canvas panel to change the position of the plug-in component.

[0052] In this embodiment, the user can click and drag the component with the mouse to move it to any position on the canvas. At the same time, the user can also change the size of the component by dragging the edge of the component to achieve a zooming effect. In addition, the user can also rotate the component through certain operations to change its display angle.

[0053] Step S103: according to the plug-in component clicked by the user in the initial canvas, a setting panel corresponding to the plug-in component is displayed, thereby receiving the properties input by the user to complete the setting of the plug-in component.

[0054] As a preferred solution of this embodiment, according to the plug-in component clicked by the user in the initial canvas, the setting panel corresponding to the plug-in component is displayed, thereby receiving the attributes input by the user to complete the setting of the plug-in component, specifically including:

[0055] According to any one or more plug-in components in the initial canvas clicked by the user, all setting panels corresponding to the clicked plug-in components are displayed; wherein each plug-in component corresponds to a setting panel; in response to the user inputting corresponding attribute information in the setting panel, and according to the attribute information, the corresponding plug-in component is set, and the attribute information corresponding to the set plug-in component is displayed in the setting panel.

[0056] In this embodiment, when the user clicks on any one or more plug-in components in the initial canvas, all setting panels of the corresponding plug-in components are displayed, and through the property setting window in the setting panel, the user can set various properties for each component through this window to meet their personalized needs. Finally, after the user enters the corresponding property information in the setting panel, the corresponding plug-in component is set, and the property information corresponding to the set plug-in component is displayed in the setting panel.

[0057] As a preferred solution of this embodiment, the attribute information includes: title, field, position, size, font size, color, font thickness, alignment, text line height, rotation angle and omitted display.

[0058] In this embodiment, Title: the user can set a specific title for the component to facilitate identification and management; Field: the user can set related fields for the component, which can be a specific field in the data source or a user-defined field; Position: the user can set the position of the component on the canvas, including the horizontal and vertical coordinates; Size: the user can set the width and height of the component to adjust its size on the canvas; Font size: the user can set the font size of the text in the component; Color: the user can set the color of the component, including the background color and the foreground color; Font weight: the user can set the font weight of the text in the component; Alignment: the user can set the alignment of the component, including left alignment, center alignment and right alignment; Text line height: the user can set the line height of the text in the component; Rotation angle: the user can set the rotation angle of the component to change its display angle on the canvas; Omitted display: the user can set whether to use ellipsis to indicate the excess part when the content of the component exceeds its set size.

[0059] Step S104: After the user sets all the plug-in components, a label style is obtained and saved, a printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet.

[0060] As a preferred solution of this embodiment, after the user sets all plug-in components, a label style is obtained, and the label style is saved, a printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet, which specifically includes:

[0061] After the user sets all plug-in components, the label style is obtained, and the label style is saved as a data file in JSON format, and the data file is sent to the browser; the data file is restored in the browser to obtain the data corresponding to its label style, and a printing instruction is generated according to the data corresponding to the label style, and the data corresponding to its label style is used as printing data, and the printing instruction and the printing data are sent to the printer for printing, thereby generating a label face sheet.

[0062] In this embodiment, the designed label style can be saved as a data file in JSON format, which contains all the information of the label. Users can quickly restore the label style by loading the JSON file, which is convenient for reuse and modification. When printing, the server reads the JSON file through a headless browser, and restores the label style according to the data therein, generates print data that complies with the printer instructions, and sends it to the printer for printing. It supports setting parameters such as printer accuracy, number of printed label rows, and printer concentration to meet different needs. In addition, the system has a certain degree of scalability, allowing users to add custom components and attributes according to their needs, improving the flexibility and scalability of the system, and can support binding corporate charging functions to realize on-demand charging.

[0063] In this embodiment, through the intuitive and easy-to-use graphical interface and real-time preview effect, the alignment line and undo rollback functions are added, which further improves the user's design efficiency and experience. The addition of these functions makes the custom label printing system more complete and practical, and can meet the different needs of more users.

[0064] It can be understood that this embodiment has the following functions:

[0065] 1. Intuitive and easy-to-use graphical interface and smart alignment function; traditional label design software often lacks intuitive and easy-to-use interface design, which makes it difficult for users to get started. This solution allows users to design labels intuitively by providing a visual drag page. More importantly, the introduction of the smart alignment function greatly improves the accuracy and efficiency of user component placement. When the user moves the component, the system automatically displays the alignment line to help the user quickly locate and adjust the component position to ensure the neatness and beauty of the label design. When the user moves the component close to other components or the edge of the canvas, the component will automatically adsorb to the alignment line to ensure that the spacing and position between components are accurate.

[0066] 2. Flexible undo and rollback function: During the design process, users may frequently make modifications and adjustments. Traditional software usually only provides limited undo operations, which cannot meet the needs of users. The undo and rollback function in this solution can record every step of the user's operation and allow the user to undo or restore the previous operation at any time. This flexible editing mechanism greatly improves the user's design efficiency and reduces the loss caused by misoperation.

[0067] 3. Real-time preview of design effects: In the traditional printing process, users can usually only see the actual effect after printing, which increases the risk of printing errors and waste. This solution uses the innovative point of real-time preview of design effects to enable users to accurately judge the typesetting, layout and visual effects of labels during the design process. This instant feedback mechanism reduces the user's design cost and time, and improves the accuracy and satisfaction of the design.

[0068] 4. Saving and loading files in JSON format: This embodiment saves the label style as a data file in JSON format. This innovation makes the reuse and modification of label styles simpler and more efficient. Users only need to load the JSON file to quickly restore the previous label style without redesigning it. At the same time, the JSON format has good readability and editability, which is convenient for users to make further modifications and optimizations.

[0069] 5. Server-side headless browser printing technology: Traditional printing solutions usually rely on specific browsers or plug-ins, which limits their flexibility and convenience in cross-platform use. This solution uses server-side headless browser printing technology, which parses JSON files on the server and generates printer instructions to achieve cross-platform and cross-browser printing support. This innovation breaks the limitations of traditional printing solutions and allows users to print labels on any device and in any environment.

[0070] 6. Highly customizable and scalable system architecture: This embodiment allows users to add custom components and attributes according to their needs. This high degree of customizability enables the system to meet the personalized needs of different users. At the same time, the scalability of the system also provides the possibility for future functional upgrades and optimizations. Enterprises can customize and develop specific functional modules according to their own business needs to further enhance the practicality and competitiveness of the system.

[0071] Implementing the above embodiments has the following effects:

[0072] The technical solution of the present invention generates an initial canvas by displaying a plug-in panel and a canvas panel, and in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel, and then displays a corresponding setting panel according to the plug-in component clicked by the user, and then completes the setting of the plug-in component by receiving attribute information input by the user, thereby improving the user's design efficiency and experience, thereby making the custom label printing system more complete and practical, and able to meet the different needs of more users, and obtain the label style after the user sets all plug-in components, save the label style and generate a printing instruction, and finally print the instruction to the printer for printing to generate a label face sheet, thereby achieving real-time preview effect, reducing maintenance costs and improving cross-platform compatibility, greatly improving the efficiency and flexibility of label printing, and meeting the growing customization needs of modern enterprises and individual users.

[0073] Embodiment 2

[0074] See also Figure 2 , which is a label sheet generation device provided by the present invention, comprising: a display module 201, an initial canvas module 202, a component setting module 203 and a label sheet module 204;

[0075] The display module 201 is used to display the plug-in panel and the canvas panel; wherein the plug-in panel includes a plurality of plug-in components;

[0076] The initial canvas module 202 is used to generate an initial canvas in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel;

[0077] The component setting module 203 is used to display a setting panel corresponding to the plug-in component clicked by the user in the initial canvas, thereby receiving the properties input by the user to complete the setting of the plug-in component;

[0078] The label sheet module 204 is used to obtain the label style after the user sets all the plug-in components, save the label style, generate a printing instruction according to the saved label style, and send the printing instruction to the printer for printing to generate a label sheet.

[0079] As a preferred solution, in response to the user dragging a plug-in component in the plug-in panel to the canvas panel, generating an initial canvas specifically includes:

[0080] In response to a user clicking a plug-in component in the plug-in panel and dragging the plug-in component to the canvas panel, obtaining a position of each plug-in component in the canvas panel;

[0081] In response to the user performing transformation operations on the plug-in components respectively, the relationship between the plug-in components is obtained, and the initial canvas is generated according to the relationship and position between the plug-in components.

[0082] As a preferred solution, the transformation operation includes: scaling operation, rotation operation and dragging operation;

[0083] The scaling operation is performed by the user dragging the edge of the plug-in component to achieve the size scaling of the plug-in component;

[0084] The rotation operation is achieved by the user rotating the rotation button of the plug-in component to change the angle of the plug-in component;

[0085] The drag operation realizes the position change of the plug-in component by the user clicking and dragging the plug-in component to move on the canvas panel.

[0086] As a preferred solution, according to the plug-in component clicked by the user in the initial canvas, a setting panel corresponding to the plug-in component is displayed, thereby receiving the properties input by the user to complete the setting of the plug-in component, specifically including:

[0087] According to any one or more plug-in components in the initial canvas clicked by the user, all setting panels corresponding to the clicked plug-in components are displayed; wherein each plug-in component corresponds to one setting panel;

[0088] In response to the user inputting corresponding attribute information in the setting panel, the corresponding plug-in component is set according to the attribute information, and the attribute information corresponding to the set plug-in component is displayed in the setting panel.

[0089] As a preferred solution, the attribute information includes: title, field, position, size, font size, color, font thickness, alignment, text line height, rotation angle and omitted display.

[0090] As a preferred solution, after the user sets all plug-in components, a label style is obtained, and the label style is saved, a printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet, which specifically includes:

[0091] After the user sets all the plug-in components, the label style is obtained, and the label style is saved as a data file in JSON format, so as to send the data file to the browser;

[0092] The data file is restored in the browser to obtain data corresponding to its label style, and a printing instruction is generated according to the data corresponding to its label style. The data corresponding to its label style is used as printing data, and the printing instruction and the printing data are sent to the printer for printing, thereby generating a label sheet.

[0093] As a preferred solution, the plug-in components in the plug-in panel include: a vertical line component, a QR code component, a barcode component, a text component, a horizontal line component and a picture component.

[0094] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the device described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0095] Implementing the above embodiments has the following effects:

[0096] The technical solution of the present invention generates an initial canvas by displaying a plug-in panel and a canvas panel, and in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel, and then displays a corresponding setting panel according to the plug-in component clicked by the user, and then completes the setting of the plug-in component by receiving attribute information input by the user, thereby improving the user's design efficiency and experience, thereby making the custom label printing system more complete and practical, and able to meet the different needs of more users, and obtain the label style after the user sets all plug-in components, save the label style and generate a printing instruction, and finally print the instruction to the printer for printing to generate a label face sheet, thereby achieving real-time preview effect, reducing maintenance costs and improving cross-platform compatibility, greatly improving the efficiency and flexibility of label printing, and meeting the growing customization needs of modern enterprises and individual users.

[0097] Embodiment 3

[0098] Correspondingly, the present invention also provides a terminal device, comprising: a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, it implements the method for generating a label face sheet as described in any one of the above embodiments.

[0099] The terminal device of this embodiment includes: a processor, a memory, and a computer program and a computer instruction stored in the memory and executable on the processor. When the processor executes the computer program, each step in the above-mentioned embodiment 1 is implemented, for example: Figure 1 Alternatively, when the processor executes the computer program, the functions of each module / unit in the above device embodiment are implemented, such as setting the component module 203.

[0100] Exemplarily, the computer program may be divided into one or more modules / units, and the one or more modules / units are stored in the memory and executed by the processor to complete the present invention. The one or more modules / units may be a series of computer program instruction segments that can complete specific functions, and the instruction segments are used to describe the execution process of the computer program in the terminal device. For example, the setting component module 203 is used to display the setting panel corresponding to the plug-in component in the initial canvas clicked by the user, thereby receiving the properties entered by the user to complete the setting of the plug-in component.

[0101] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, and a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a terminal device and does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the terminal device may also include an input / output device, a network access device, a bus, etc.

[0102] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and various interfaces and lines are used to connect various parts of the entire terminal device.

[0103] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the terminal device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile terminal, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (Smart Med ia Card, SMC), a secure digital (SecureDi gita l, SD) card, a flash card (F l ash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0104] Wherein, if the module / unit integrated in the terminal device is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Wherein, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0105] Embodiment 4

[0106] Correspondingly, the present invention also provides a computer-readable storage medium, which includes a stored computer program, wherein when the computer program is running, the device where the computer-readable storage medium is located is controlled to execute the label face sheet generation method described in any one of the above embodiments.

[0107] The specific embodiments described above further illustrate the purpose, technical solutions and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. It is particularly pointed out that for those skilled in the art, any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of protection of the present invention.

Claims

1. A method for generating a label sheet, characterized in that: include: Displaying a plug-in panel and a canvas panel; wherein the plug-in panel includes a plurality of plug-in components; In response to a user dragging a plug-in component from the plug-in panel to the canvas panel, generating an initial canvas; According to the plug-in component clicked by the user in the initial canvas, a setting panel corresponding to the plug-in component is displayed, thereby receiving the properties input by the user to complete the setting of the plug-in component; After the user sets all the plug-in components, the label style is obtained and saved. A printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet.

2. A method for generating a label sheet as claimed in claim 1, characterized in that: The generating of the initial canvas in response to the user dragging the plug-in component in the plug-in panel to the canvas panel specifically includes: In response to a user clicking a plug-in component in the plug-in panel and dragging the plug-in component to the canvas panel, obtaining a position of each plug-in component in the canvas panel; In response to the user performing transformation operations on the plug-in components respectively, the relationship between the plug-in components is obtained, and the initial canvas is generated according to the relationship and position between the plug-in components.

3. A method for generating a label sheet as claimed in claim 2, characterized in that: The transformation operation includes: scaling operation, rotation operation and dragging operation; The scaling operation is performed by the user dragging the edge of the plug-in component to achieve the size scaling of the plug-in component; The rotation operation is achieved by the user rotating the rotation button of the plug-in component to change the angle of the plug-in component; The drag operation realizes the position change of the plug-in component by the user clicking and dragging the plug-in component to move on the canvas panel.

4. A method for generating a label sheet as claimed in claim 1, characterized in that: The method of displaying a setting panel corresponding to the plug-in component clicked by the user in the initial canvas, thereby receiving the properties input by the user to complete the setting of the plug-in component, specifically includes: According to any one or more plug-in components in the initial canvas clicked by the user, all setting panels corresponding to the clicked plug-in components are displayed; wherein each plug-in component corresponds to one setting panel; In response to the user inputting corresponding attribute information in the setting panel, the corresponding plug-in component is set according to the attribute information, and the attribute information corresponding to the set plug-in component is displayed in the setting panel.

5. A method for generating a label sheet as claimed in claim 4, characterized in that: The attribute information includes: title, field, position, size, font size, color, font weight, alignment, text line height, rotation angle and omitted display.

6. A method for generating a label sheet as claimed in claim 1, characterized in that: After the user sets all the plug-in components, a label style is obtained, and the label style is saved, a printing instruction is generated according to the saved label style, and the printing instruction is sent to the printer for printing to generate a label sheet, which specifically includes: After the user sets all the plug-in components, the label style is obtained, and the label style is saved as a data file in JSON format, so as to send the data file to the browser; The data file is restored in the browser to obtain data corresponding to its label style, and a printing instruction is generated according to the data corresponding to its label style. The data corresponding to its label style is used as printing data, and the printing instruction and the printing data are sent to the printer for printing, thereby generating a label sheet.

7. A method for generating a label sheet according to any one of claims 1 to 6, characterized in that: The plug-in components in the plug-in panel include: a vertical line component, a QR code component, a barcode component, a text component, a horizontal line component and a picture component.

8. A device for generating a label sheet, characterized in that: include: Display module, initial canvas module, component settings module and label order module; The display module is used to display the plug-in panel and the canvas panel; wherein the plug-in panel includes a plurality of plug-in components; The initial canvas module is used to generate an initial canvas in response to a plug-in component dragged by a user from the plug-in panel to the canvas panel; The component setting module is used to display a setting panel corresponding to the plug-in component clicked by the user in the initial canvas, thereby receiving the properties input by the user to complete the setting of the plug-in component; The label sheet module is used to obtain the label style after the user sets all the plug-in components, save the label style, generate a printing instruction according to the saved label style, and send the printing instruction to the printer for printing to generate a label sheet.

9. A terminal device, characterized in that: It includes a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, and when the processor executes the computer program, it implements the method for generating a label face sheet as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the label face sheet generation method as described in any one of claims 1 to 7.