CN115214243B - Automatic label printing method, system, terminal and storage medium - Google Patents

Automatic label printing method, system, terminal and storage medium Download PDF

Info

Publication number
CN115214243B
CN115214243B CN202211135035.7A CN202211135035A CN115214243B CN 115214243 B CN115214243 B CN 115214243B CN 202211135035 A CN202211135035 A CN 202211135035A CN 115214243 B CN115214243 B CN 115214243B
Authority
CN
China
Prior art keywords
label
printing
work order
data
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202211135035.7A
Other languages
Chinese (zh)
Other versions
CN115214243A (en
Inventor
王晓峰
张南野
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dongfang Hezhi Data Technology Guangdong Co ltd
Original Assignee
Dongfang Hezhi Data Technology Guangdong Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dongfang Hezhi Data Technology Guangdong Co ltd filed Critical Dongfang Hezhi Data Technology Guangdong Co ltd
Priority to CN202211135035.7A priority Critical patent/CN115214243B/en
Publication of CN115214243A publication Critical patent/CN115214243A/en
Application granted granted Critical
Publication of CN115214243B publication Critical patent/CN115214243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/407Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed for marking on special material
    • B41J3/4075Tape printers; Label printers
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J29/00Details of, or accessories for, typewriters or selective printing mechanisms not otherwise provided for
    • B41J29/38Drives, motors, controls or automatic cut-off devices for the entire printing mechanism
    • B41J29/393Devices for controlling or analysing the entire machine ; Controlling or analysing mechanical parameters involving printing of test patterns
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B41PRINTING; LINING MACHINES; TYPEWRITERS; STAMPS
    • B41JTYPEWRITERS; SELECTIVE PRINTING MECHANISMS, i.e. MECHANISMS PRINTING OTHERWISE THAN FROM A FORME; CORRECTION OF TYPOGRAPHICAL ERRORS
    • B41J3/00Typewriters or selective printing or marking mechanisms characterised by the purpose for which they are constructed
    • B41J3/44Typewriters or selective printing mechanisms having dual functions or combined with, or coupled to, apparatus performing other functions
    • B41J3/445Printers integrated in other types of apparatus, e.g. printers integrated in cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a method, a system, a terminal and a storage medium for automatically printing labels, which relate to the technical field of label printing, and the method comprises the following steps: configuring the label field, selecting the required label field to configure a plurality of label templates and configure work order information, selecting the required label template, acquiring the work order information of the current production work order and the label template matched with the work order information of the current production work order, when the work is started and the data transmitted to the production management system by the printing machine meets the preset conditions, matching the label template and the work order information to generate printing label data, transmitting the printing label data to the Vue component to render to the browser, acquiring the html code and transmitting to the plug-in unit of the CLOdp for compiling, controlling the printing machine to automatically print the label and record the printing state. The invention improves the efficiency of manufacturing the corrugated paper label, reduces the development manpower resource and the development time to a great extent, and quickly realizes the automatic printing function of the corrugated paper label.

Description

Automatic label printing method, system, terminal and storage medium
Technical Field
The present invention relates to the field of label printing technologies, and in particular, to an automatic label printing method, system, terminal, and storage medium.
Background
The corrugated package belongs to one of paper packages, and refers to production activities for further processing paper products by using raw materials such as paper, paperboard and the like; and a series of activities of product packaging services in related industries are carried out by utilizing the processed and manufactured corrugated paper, paperboard, paper boxes and the like. Corrugated paper is a plate-like object formed by bonding a liner paper and corrugated paper formed by corrugating with corrugating rollers.
In a production line of the corrugated paper packaging industry, semi-finished products and finished products of some enterprises are unsmooth in internal circulation, and labels are required to be pasted on the produced finished products, wherein the labels are labels used for recording related information such as equipment names and equipment codes, work order numbers and work order quantity, product codes and product names, current support quantity, stacking quantity and the like in the circulation process of production procedures in the corrugated paper packaging industry.
The number of medium and small enterprises in the corrugated paper packaging industry is large, each company has own label, the requirements for the labels are different, and the labels in the current production cannot be automatically printed according to the real-time production number. Different labels are required to be provided for different clients, and the modification of each label requires the release of functions and the restart of a server, so that the development cost is high and the efficiency is low. Therefore, the problem to be solved is to manufacture the label meeting the user requirements of all corrugated paper packaging enterprises.
Accordingly, there is a need for improvements and developments in the art.
Disclosure of Invention
The invention mainly aims to provide a method, a system, a terminal and a computer readable storage medium for automatically printing labels, and aims to solve the problem that the labels in the current production cannot be automatically printed according to the real-time production quantity during the production of corrugated paper in the prior art.
In order to achieve the above object, the present invention provides an automatic label printing method, including the steps of:
configuring and storing the label field in a database in a label field management module of the production management system;
in a label template management module of the production management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database;
in a production work order management module of the production management system, configuring work order information to be stored in the database, and selecting a required label template;
dispatching the current production work order to a printing machine table for starting work, and performing real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order;
when a work order is started and data transmitted to the production management system by the printer meets preset conditions, matching the label template with the work order information to generate printing label data;
and transmitting the printing label data into a Vue component to render to a browser, acquiring an html code, transmitting to a plug-in of the CLOdop to compile, controlling a printing machine to automatically print a label and recording the printing state.
Optionally, the method for automatically printing a label, wherein the label field includes: tag name, source, service packet, source table, and source field.
Optionally, the label automatic printing method, wherein the work order information includes: the product name of the production work order, the number of work orders, the modulus, the input number, the equipment state, the stacking number and the template for label printing.
Optionally, the label automatic printing method, wherein the data transmitted to the production management system by the printer is the input number.
Optionally, the method for automatically printing a label includes: the input number modulus is a multiple of the number of stacks.
Optionally, the label automatic printing method, wherein the printing state includes: success, failure, and not starting printing.
Optionally, the method for automatically printing a label, wherein the step of importing the print label data into a Vue component to render the print label data into a browser, the step of obtaining an html code and the html code are uploaded into a plug-in of a CLodop to be compiled, and the step of controlling a printer to automatically print a label and record a print state specifically includes:
assigning the JSON data returned by the tag template matched with the work order information of the current production work order and the JSON value of the current production work order object through the JSON data and the JSON value, outputting the JSON data of the tag to be printed and transmitting the JSON data into a packaged Vue component;
assigning JSON data of a printing label in a Vue component through a Vue component, controlling the Style of the label component by Style, wherein the label component comprises a title component and a text component, and rendering Vue components into a browser;
and acquiring html codes of the label template matched with the work order information of the current production work order in the browser, performing secondary compilation on the acquired html code segments through the CLOdopp plug-in, controlling the printer to automatically print compiled data and recording the printing state.
In addition, to achieve the above object, the present invention also provides an automatic label printing system, wherein the automatic label printing system includes:
the label field configuration module is used for configuring the label field in a label field management module of the living management system and storing the label field in a database;
the label template configuration module is used for acquiring all label fields from the database in a label template management module of the production management system, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database;
the work order information configuration module is used for configuring work order information in a production work order management module of the production management system, storing the work order information in the database and selecting a required label template;
the interactive information acquisition module is used for dispatching the current production work order to a printing machine table for starting up, carrying out real-time interaction with the printing machine on a production center interface of the production management system, and acquiring the work order information of the current production work order and a label template matched with the work order information of the current production work order;
the label data generation module is used for matching the label template with the work order information to generate printing label data when the work order is started and the data transmitted to the production management system by the printing machine meets the preset conditions;
the label printing recording module is used for transmitting printing label data into a Vue component to render to a browser, acquiring html codes and transmitting the html codes to a plug-in of a CLOdp for compiling, controlling a printing machine to automatically print labels and record printing states
In addition, to achieve the above object, the present invention further provides a terminal, wherein the terminal includes: a memory, a processor and an automatic label printing program stored on the memory and executable on the processor, the automatic label printing program when executed by the processor implementing the steps of the automatic label printing method as described above.
Further, to achieve the above object, the present invention also provides a computer readable storage medium, wherein the computer readable storage medium stores a label automatic printing program, which when executed by a processor, implements the steps of the label automatic printing method as described above.
In a tag field management module of a living management system, the tag field is configured and stored in a database; in a label template management module of the production management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database; in a production work order management module of the production management system, configuring work order information to be stored in the database, and selecting a required label template; sending the current production work order to a printing machine table for starting work, and carrying out real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order; when a work order is started and data transmitted to the production management system by the printer meets preset conditions, matching the label template with the work order information to generate printing label data; and transmitting the printing label data into a Vue component to render to a browser, acquiring an html code, transmitting to a plug-in of the CLOdop to compile, controlling a printing machine to automatically print a label and recording the printing state. The invention improves the efficiency of manufacturing the corrugated paper label, can reduce the human resources and the working hours of development to a great extent, quickly realizes the automatic printing function of the corrugated paper label, and the user can independently select the label to be printed and the field to be printed, and can modify the label template and the field in real time, thereby being applicable to different customers and meeting different requirements of the customers.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of the method for automatic printing of labels of the present invention;
FIG. 2 is a schematic diagram of the automatic label printing system of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to a preferred embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer and clearer, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are merely illustrative of the invention and do not limit the invention.
As shown in fig. 1, the automatic label printing method according to the preferred embodiment of the present invention includes the following steps:
step S10, configuring and storing the label field in a database in a label field management module of the living management system, wherein the label field comprises: tag name, source, service packet, source table, and source field.
For example: a label field is newly added in a production management system (production management system), label names, sources, service groups, a source table and the source field are respectively filled, and the data are stored in a database after the label fields are filled.
Specifically, the process of storing and acquiring database information by the tag field includes:
the storage process of the tag field is that in a large database system, a group of SQL statement sets for completing specific functions, such as tag names, sources, source tables, source fields and the like, are stored in the database, and are called again after first compiling without recompiling.
The acquisition of the tag field information includes, for example: and the Mysql database reads the configuration address information of the Mysql database through a drive package of the Mysql database, and accesses the Mysql database according to the user name and the password to acquire data information such as a label name, a source table, a source field and the like.
And step S20, in a label template management module of the living management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database.
Specifically, in the tag template management module of the production management system, all tags are acquired from the database, and a required tag field (for example, a tag field required by a current production work order) is selected to configure a tag template and store the tag template in the database, where the configuration of a plurality of different templates includes: and acquiring all the label fields from the database, and selecting the label fields required by the labels from all the label fields to configure the label template. The label fields are provided for the label templates, different templates can have the same label fields, different label fields can also be provided, the label templates can be personalized, and the configuration can be carried out according to requirements. And all templates will fill in the template's title and description and then select the desired tag fields. For example:
the A label field, the B field and the C field are selected in the template 1
{
title: 'template 1',
des, description of,
list:[
{ A-tag field },
{ B-tag field },
{ C-tag field },
]
}
the B label field, the C field and the D field are selected from the template 2
{
title: 'template 2',
des, description of,
list:[
{ B-tag field },
{ C-tag field },
{ D tag field },
]
}
the A label field, the B field and the D field are selected in the template 3
{
title: 'template 3',
des, description of,
list:[
{ A-tag field },
{ B-tag field },
{ D tag field },
]
}
the types of the tag fields in the tag template comprise a data table, a function and a constant, wherein the data table refers to a certain field in the work order object, the function refers to date or work order number with a certain rule, and the constant refers to a fixed value configured in the database in a returning mode. And there are some fixed, unchanging values that need to be presented in the tag, such as company name, factory name, contact phone, etc.
And S30, configuring work order information in a production work order management module of the production management system, storing the work order information in the database, and selecting a required label template.
Specifically, the work order information processing method may include: receiving a work order information processing instruction, and acquiring a work order information field type and a work order information processing type; the work order information processing types comprise creating a work order, updating the work order and closing the work order.
In the production work order management module of the production management system, corresponding work order information such as product names, work order quantity, modulus, stacking quantity, label printing templates and the like of production work orders are configured and stored in a database.
The work order information includes: the product name of the production work order, the number of work orders, the modulus, the input number, the equipment state, the stacking number and the template for label printing.
And S40, dispatching the current production work order to a printing machine for starting work, and performing real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order.
Specifically, the real-time interaction between the production management system and the printing machine is mainly realized by reading and writing register information in an interface of the printing machine by the production management system so as to control the behavior of the printing machine.
The printer interface typically includes 3 registers:
1. the status register can read and check the current status of the printing machine;
2. a command register for informing the device to execute a specific task;
3. a data register to transmit data to or receive data from the printer.
By reading and writing these registers, the green management system can control the behavior of the printer.
The general mechanism for interaction of the tube-in-tube system with the printing press comprises the following steps:
1. the administration system waits for the printer to enter a ready state to receive commands, called a polling device (basically, asking it what it is doing), by repeatedly reading the status register;
2. the production management system issues data to the data register. For example, it is conceivable that if this is a disk, multiple write operations are required, delivering a disk block (e.g., 4 KB) to the device;
3. the production management system writes the command into a command register; the printer then knows that the data is ready and that it should begin executing commands;
4. the administration system again waits and determines whether the device executes the completion command (possibly with an error code indicating success or failure) by constantly polling the device.
Specifically, the current production work order is dispatched to a printing machine bench for starting, real-time interaction is carried out between a production center interface of a production management system in the bench and the printing machine through websocket, and information such as the number of the work orders, the input number and the equipment state is transmitted to the production management system.
Among them, webSocket is a protocol for full duplex communication over a single TCP connection. The WebSocket enables data exchange between the production management system and the printing machine to be simpler, allows the production management system to actively push data to the printing machine, and can also actively acquire data such as the number of work orders, the input number and the equipment state from the printing machine. In the WebSocket API, the browser and the server only need to complete one handshake, and persistent connection can be directly established between the browser and the server, and bidirectional data transmission is carried out. The Websocket can be used for processing, transmitting and analyzing the printer calling instruction and processing, transmitting and analyzing the printer feedback information by the production management system, and the printer receives the equipment calling instruction transmitted by the Websocket and transmits the feedback information back to the Websocket.
And S50, when the work order is started and the data transmitted to the production management system by the printing machine meets preset conditions, matching the label template with the work order information to generate printing label data (for example, after the current production work order is obtained, the work order information of the current production work order is obtained, then the corresponding label template is matched in the database according to the work order information of the current production work order, and each piece of work order information corresponds to one label template).
Specifically, the data transmitted to the production management system by the printer mainly includes the input number, stop time, water, electricity and the like, but the data used for label printing mainly includes the input number. The data transmitted to the production management system by the printer is the input number, and the preset conditions are as follows: the advantage of setting the preset conditions as above is that the output number can be accurately calculated from the modulus, and the printing number can be made to coincide with the actual number by automatically printing according to the number of stacks.
When the work order is started, the label of the work order is automatically printed when the data transmitted to the production management system by the printer meets a certain condition. For example, the printing rules are as follows:
(1) When the printing machine is started, printing one label when the input number of the labels is a multiple of the stacking number except the last tray label;
(2) If the number of stacks is 400, the number of work orders is 1500, printing one sheet each at the input number × module =400/800/1200, and when the number of pallets is the number of stacks (wherein, when the number of pallets indicates the actual number of products of the corresponding pallet);
(3) The last sheet is automatically printed when the work order is finished, and when the number of the supports is the number of good products in the work order-the number printed in the front;
a. as in 1200 herein, if there are reprint update numbers for the previous label, the number is not necessarily equal to the number of times stacked;
b. if the good product number of the work order-the number of prints before (as 1200 here) < =0, skip printing;
(4) If the stacking number is 400 and the work order number is 1500, if the work order good product number is 1450, the current support number of the last label is 450;
a. if the number of good products in the work order is 1520, the number of the last label in the pallet is 520;
b. if the number of good products of the work order is < =1200, printing the last label, and if the number of the support is 0;
(5) The print status includes success, failure, and non-start of printing.
And S60, transmitting the printing label data into a Vue component, rendering the component to a browser, acquiring an html code, transmitting the html code to a plug-in of a CLOdp for compiling, controlling a printing machine to automatically print a label and recording a printing state.
Specifically, the client side based on the Vue frame and the CLOdop plug-in and the printer interact to obtain the number of work orders and the number of stacks in real time to automatically print labels, and the technical field of the Internet of things is related.
Rendering the virtual Dom compiled by the Vue component into a browser to convert the virtual Dom into a real Dom, generating an html code, and transmitting the html code to the CLOdop plug-in for secondary compiling and printing.
The automatic label printing process comprises the following steps: confirming a work order (confirming data), confirming a production rule, printing a sample, scanning and confirming, and printing.
Rendering the label template and the data by using Vue to dynamically generate a label; and controlling the CLOfollowed plug-in to compile the code segment of the label to be printed, and controlling a printer to automatically print the compiled label. The method comprises the steps that template data are obtained and rendered, a user can independently select a label to be printed and a field to be printed, the user can select one of printers of a client side to print, the user can modify the label template and the field in real time, the method can be applied to different clients, and different requirements of the clients are met.
For example: at present, some enterprises exist, semi-finished products and finished products are unsmooth to flow in the enterprises, no procedure circulation cards (labels) are arranged on the site, and the semi-finished products and the finished products are mainly found by manual handwriting or pure manual identification under the condition of no label. The existing label integrated printing schemes are all integrated mainstream printers, invoice type receipts are printed, and the defects that printing integrated software needs to be purchased, the printing cost is high, the real-time performance of the existing label integrated printing schemes only integrated with ERP (enterprise resource planning) and not integrated into a production management system is low, and the like exist, so that the enterprise application enthusiasm is low.
The high-grade version of the production management provides a solution for the circulation of semi-finished products and finished products, the automatic printing function of labels is added, the automatic printing of the labels in the process circulation is realized, and the time for finding and ordering the products is reduced. The printing function provided by the browser can only be used for printing after previewing, and the high-grade version of the production control automatically calls the system function to automatically print by installing a third-party control LODOP. And the high-grade version direct integrated printer of the production control has high printing instantaneity, a customer does not need to purchase printing integrated software, the purchase cost of the printer is low, the printing is carried out by adopting thermal paper, the cost of single printing is as low as 1 minute, and the requirement of reducing the cost of corrugated paper packaging and printing enterprises is met.
The main flow of automatically printing the label is as follows:
1. configuring a label field in the production management system;
2. configuring a label template in a production management system;
3. creating a work order in a production management system and selecting a required label template;
4. and starting the work order in a production center interface of the production management system, performing real-time interaction with the printing machine, automatically printing a label when the acquired data transmitted by the printing machine reaches a printing condition, and generating label content after matching the label template with a real-time value of the work order.
Assigning the JSON data returned by the tag template matched with the work order information of the current production work order and the JSON value of the current production work order object through the JSON data and the JSON value, outputting the JSON data of the tag to be printed and transmitting the JSON data into a packaged Vue component; assigning JSON data of a printed label in a Vue component through a Vue component, controlling the Style of the label component by Style, wherein the label component comprises a title component and a text component, and rendering Vue component into a browser; acquiring html codes of a label template matched with work order information of a current production work order in a browser, compiling the acquired html code fragments for the second time through a CLOdp plug-in, controlling a printing machine to automatically print compiled data and recording a printing state.
The JSON data of the printing label is assigned in a component through a Vue frame, a title is assigned through a title component < h2> label element, a des is assigned through a text component < p > label element, a list is assigned through an array traversal rendering through a < table > < tr > < td >, the Style of the label component is controlled through Style, the label component comprises a title component and a text component, and the component is rendered into a browser finally; the html code of the label module is obtained through document, getElementById ('print _ div') and innerHTML (), the obtained html code fragment is compiled for the second time through a CLOdp plug-in, a printer is controlled to automatically print compiled data and record the printing state of the compiled data, the method can skip a preview interface printed by the browser, the label is automatically printed through an html template, in addition, the web item is packaged into a desktop application, the preview interface can not be popped up, and the system printing function is directly called to automatically print.
And the printed label stores the label template configured by the work order and JSON data of the work order information output label template in a database.
The JSON data returned by the tag template matched with the work order information of the current production work order and the JSON value of the current production work order object are assigned through the JSON data and the JSON value, finally the JSON data of the tag to be printed is output and is transmitted into a packaged Vue component, for example:
a. tag template data:
{
title: 'Label title',
des: 'description',
list:[
{ type: 'data table', prop: 'aa', label: 'field name 1', span: '1' },
{ type: 'function', prop: 'function name', label: 'field name 2', span: '1' },
{ type: 'constant', prop: '123', label: 'field name 3', span: '2' }
]
}
b. Work order data:
{
aa:’111’,
bb:’22’,
cc:’33’,
}
c. final output printed data:
{
title: 'Label title',
des, description of,
list: [
{ label: 'field name 1', value: '111', span: '1' },
{ label: 'field name 2', value: 'return value after execution of function', span: '1' },
{ label: ' field name 3', value: '123, span: '2' }
]
}
In summary, the label printing method includes configuring label template data, and acquiring real-time data of the label template data and corresponding fields of the template, and the specific operation flow of automatic label printing is as follows:
the production management system = label field management = > label template) = work order management (configuration label template, work order information) = production center (interact with printer through websocket = > obtaining work order information and data transmitted by the label template = > printer reach printing condition = > generating printing label data by matching the label template with the work order information = > transmitting Vue component rendering to browser = > obtaining html code and transmitting to plug-in unit of CLOdp for automatic printing and recording printing state) = end.
The invention improves the efficiency of manufacturing the corrugated paper label, can reduce the development manpower resource and the development time to a great extent, and can quickly realize the automatic printing function of the corrugated paper label.
Further, in the invention, if the third-party control is not used for automatic printing, the browser API can be directly called or the API provided by the printer can be called for automatic printing.
Further, as shown in fig. 2, based on the above method for automatically printing a label, the present invention also provides an automatic label printing system, wherein the automatic label printing system includes:
a tag field configuration module 51, configured to configure and store the tag field in a tag field management module of the living management system into a database;
a tag template configuration module 52, configured to, in a tag template management module of the administration and management system, obtain all tag fields from the database, select a desired tag field to configure multiple tag templates, and store the tag templates in the database;
a work order information configuration module 53, configured to configure, in the production work order management module of the production management system, work order information to be stored in the database, and select a required label template;
the interactive information acquisition module 54 is used for dispatching the current production work order to a printing machine table for starting up, performing real-time interaction with the printing machine on a production center interface of the production management system, and acquiring the work order information of the current production work order and a label template matched with the work order information of the current production work order;
the label data generating module 55 is configured to generate print label data by matching the label template with the work order information when the work order is started and data transmitted to the production management system by the printing machine meets a preset condition;
and the label printing recording module 56 is used for transmitting the printing label data into a Vue component to render the printing label data to a browser, acquiring an html code, transmitting the html code to a plug-in of the CLOdp to compile, controlling the printing machine to automatically print a label and record a printing state.
Further, as shown in fig. 3, based on the above method and system for automatically printing labels, the present invention also provides a terminal, which includes a processor 10, a memory 20 and a display 30. Fig. 3 shows only some of the components of the terminal, but it should be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.
The memory 20 may in some embodiments be an internal storage unit of the terminal, such as a hard disk or a memory of the terminal. The memory 20 may also be an external storage device of the terminal in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like provided on the terminal. Further, the memory 20 may also include both an internal storage unit and an external storage device of the terminal. The memory 20 is used for storing application software installed in the terminal and various types of data, such as program codes of the installation terminal. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores a label automatic printing program 40, and the label automatic printing program 40 can be executed by the processor 10 to implement the label automatic printing method in the present application.
The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), microprocessor or other data Processing chip for executing program codes stored in the memory 20 or Processing data, such as executing the automatic label printing method.
The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the terminal and for displaying a visual user interface. The components 10-30 of the terminal communicate with each other via a system bus.
In one embodiment, the following steps are implemented when the processor 10 executes the label auto-print routine 40 in the memory 20:
in a tag field management module of a production management system, configuring tag fields and storing the tag fields in a database;
in a label template management module of the production management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database;
in a production work order management module of the production management system, configuring work order information to be stored in the database, and selecting a required label template;
sending the current production work order to a printing machine table for starting work, and carrying out real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order;
when the work order is started and the data transmitted to the production management system by the printer meets the preset conditions, matching the label template with the work order information to generate printing label data;
and transmitting the printing label data into a Vue component to render to a browser, acquiring an html code, transmitting to a plug-in of the CLOdop to compile, controlling a printing machine to automatically print a label and recording the printing state.
Wherein the tag field comprises: tag name, source, service packet, source table, and source field.
Wherein the work order information includes: the product name of the production work order, the number of work orders, the modulus, the input number, the equipment state, the stacking number and the template for label printing.
Wherein, the data transmitted to the tube production system by the printer is the input number.
Wherein the preset conditions are as follows: the input number modulus is a multiple of the number of stacks.
Wherein the printing state comprises: success, failure, and not starting printing.
The method includes the steps of transmitting print label data to a Vue component, rendering the print label data to a browser, acquiring html codes, transmitting the html codes to a plug-in of a CLOdp for compiling, controlling a printing machine to automatically print labels and record printing states, and specifically includes the steps of:
assigning the JSON data returned by the tag template matched with the work order information of the current production work order and the JSON value of the current production work order object through the JSON data and the JSON value, outputting the JSON data of the tag to be printed and transmitting the JSON data into a packaged Vue component;
assigning JSON data of a printed label in a Vue component through a Vue component, controlling the Style of the label component by Style, wherein the label component comprises a title component and a text component, and rendering Vue component into a browser;
and acquiring html codes of the label template matched with the work order information of the current production work order in the browser, performing secondary compilation on the acquired html code segments through the CLOdopp plug-in, controlling the printer to automatically print compiled data and recording the printing state.
The present invention also provides a computer-readable storage medium, wherein the computer-readable storage medium stores a label automatic printing program, and the label automatic printing program realizes the steps of the label automatic printing method as described above when executed by a processor.
In summary, the present invention provides a method, a system, a terminal and a storage medium for automatically printing a label, where the method includes: configuring and storing the label field in a database in a label field management module of the production management system; in a label template management module of the production management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database; in a production work order management module of the production management system, configuring work order information to be stored in the database, and selecting a required label template; sending the current production work order to a printing machine table for starting work, and carrying out real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order; when a work order is started and data transmitted to the production management system by the printer meets preset conditions, matching the label template with the work order information to generate printing label data; and transmitting the printing label data into a Vue component to render to a browser, acquiring an html code, transmitting to a plug-in of the CLOdop to compile, controlling a printing machine to automatically print a label and recording the printing state. The invention improves the efficiency of manufacturing the corrugated paper label, can reduce the human resources and the working hours of development to a great extent, quickly realizes the automatic printing function of the corrugated paper label, and the user can independently select the label to be printed and the field to be printed, and can modify the label template and the field in real time, thereby being applicable to different customers and meeting different requirements of the customers.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal that comprises the element.
Of course, it will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by instructing relevant hardware (such as a processor, a controller, etc.) through a computer program, and the program can be stored in a computer readable storage medium, and when executed, the program can include the processes of the embodiments of the methods described above. The computer readable storage medium may be a memory, a magnetic disk, an optical disk, etc.
It is to be understood that the invention is not limited to the examples described above, but that modifications and variations may be effected thereto by those of ordinary skill in the art in light of the foregoing description, and that all such modifications and variations are intended to be within the scope of the invention as defined by the appended claims.

Claims (6)

1. An automatic label printing method, comprising:
configuring and storing the label field in a database in a label field management module of the production management system;
in a label template management module of the production management system, acquiring all label fields from the database, selecting the required label fields to configure a plurality of label templates and storing the label templates in the database;
in a production work order management module of the production management system, configuring work order information to be stored in the database, and selecting a required label template, wherein different label templates have the same label field and different label fields;
the work order information includes: the product name, the number of work orders, the modulus, the input number, the equipment state, the stacking number and the label printing template of the production work order;
dispatching the current production work order to a printing machine table for starting work, and performing real-time interaction with the printing machine on a production center interface of the production management system to obtain work order information of the current production work order and a label template matched with the work order information of the current production work order;
the data transmitted to the production pipe system by the printer is input number;
when a work order is started and data transmitted to the production management system by the printer meets preset conditions, matching the label template with the work order information to generate printing label data;
the preset conditions are as follows: the input number modulus is a multiple of the stacking number;
transmitting the printing label data into a Vue component, rendering the printing label data to a browser, acquiring an html code, transmitting the html code to a plug-in of a CLOdop for compiling, controlling a printing machine to automatically print a label and recording a printing state;
the method for printing the label data includes the steps of transmitting the printing label data into a Vue component, rendering the printing label data to a browser, obtaining an html code, transmitting the html code to a plug-in of a CLOdopp for compiling, controlling a printing machine to automatically print a label and record a printing state, and specifically includes the following steps:
JSON data returned by a tag template matched with the work order information of the current production work order and a JSON value of a current production work order object are assigned through the JSON data and the JSON value, the JSON data of the tag to be printed are output and are transmitted into a packaged Vue component;
assigning JSON data of a printed label in a Vue component through a Vue component, controlling the Style of the label component by Style, wherein the label component comprises a title component and a text component, and rendering Vue component into a browser;
and acquiring html codes of the label template matched with the work order information of the current production work order in the browser, performing secondary compilation on the acquired html code segments through the CLOdopp plug-in, controlling the printer to automatically print compiled data and recording the printing state.
2. The method of automatic label printing according to claim 1, wherein the label field comprises: tag name, source, service packet, source table, and source field.
3. The method of automatic label printing according to claim 1, wherein the printing state comprises: success, failure, and not starting printing.
4. An automatic label printing system, comprising:
the tag field configuration module is used for configuring tag fields in a tag field management module of the production management system and storing the tag fields in a database;
the label template configuration module is used for acquiring all label fields from the database in a label template management module of the production management system, selecting the required label fields, configuring a plurality of label templates and storing the label templates in the database;
the work order information configuration module is used for configuring work order information to be stored in the database and selecting a required label template in a production work order management module of the production management system, wherein different label templates have the same label field and different label fields;
the work order information includes: the product name, the number of work orders, the modulus, the input number, the equipment state, the stacking number and the template for label printing of the production work order;
the interactive information acquisition module is used for dispatching the current production work order to a printing machine table for starting work, performing real-time interaction with the printing machine on a production center interface of the production management system, and acquiring the work order information of the current production work order and a label template matched with the work order information of the current production work order;
the data transmitted to the production management system by the printer is input number;
the label data generation module is used for matching the label template with the work order information to generate printing label data when the work order is started and the data transmitted to the production management system by the printing machine meets the preset conditions;
the preset conditions are as follows: the input number modulus is a multiple of the stacking number;
the label printing recording module is used for transmitting printing label data into a Vue component to render to a browser, acquiring html codes and transmitting the html codes to a plug-in of a CLOdp for compiling, controlling a printing machine to automatically print labels and record printing states;
the method for printing the label data includes the steps of transmitting the printing label data into a Vue component, rendering the printing label data to a browser, obtaining an html code, transmitting the html code to a plug-in of a CLOdopp for compiling, controlling a printing machine to automatically print a label and record a printing state, and specifically includes the following steps:
assigning the JSON data returned by the tag template matched with the work order information of the current production work order and the JSON value of the current production work order object through the JSON data and the JSON value, outputting the JSON data of the tag to be printed and transmitting the JSON data into a packaged Vue component;
assigning JSON data of a printed label in a Vue component through a Vue component, controlling the Style of the label component by Style, wherein the label component comprises a title component and a text component, and rendering Vue component into a browser;
and acquiring html codes of the label template matched with the work order information of the current production work order in the browser, performing secondary compilation on the acquired html code segments through the CLOdopp plug-in, controlling the printer to automatically print compiled data and recording the printing state.
5. A terminal, characterized in that the terminal comprises: memory, a processor and a label auto-printing program stored on the memory and executable on the processor, the label auto-printing program when executed by the processor implementing the steps of the label auto-printing method according to any one of claims 1 to 3.
6. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a label automatic printing program which, when executed by a processor, implements the steps of the label automatic printing method according to any one of claims 1 to 3.
CN202211135035.7A 2022-09-19 2022-09-19 Automatic label printing method, system, terminal and storage medium Active CN115214243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211135035.7A CN115214243B (en) 2022-09-19 2022-09-19 Automatic label printing method, system, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211135035.7A CN115214243B (en) 2022-09-19 2022-09-19 Automatic label printing method, system, terminal and storage medium

Publications (2)

Publication Number Publication Date
CN115214243A CN115214243A (en) 2022-10-21
CN115214243B true CN115214243B (en) 2022-12-20

Family

ID=83616964

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211135035.7A Active CN115214243B (en) 2022-09-19 2022-09-19 Automatic label printing method, system, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN115214243B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116176144A (en) * 2023-04-23 2023-05-30 广州市普理司科技有限公司 Digital printing cold wave control system
CN116737094B (en) * 2023-08-15 2023-10-27 北京谷器数据科技有限公司 Custom label printing method based on Vue framework
CN117032602B (en) * 2023-10-10 2024-01-26 海通安恒科技股份有限公司 Printing method and system for rapidly realizing label field mapping and label rule configuration

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009069913A (en) * 2007-09-10 2009-04-02 Max Co Ltd Information management device
CN109219523A (en) * 2016-05-06 2019-01-15 恩图鲁斯特咨询卡有限公司 For printing the label model of customization customer interaction label
CN110749367A (en) * 2019-11-20 2020-02-04 石门依云电子商务有限公司 Electronic scale label printing system
CN112148230A (en) * 2019-06-26 2020-12-29 北京京东振世信息技术有限公司 Printing method, system, device and storage medium thereof
CN112214184A (en) * 2020-10-16 2021-01-12 平安国际智慧城市科技股份有限公司 User-defined printing method and device, computer equipment and medium
CN113619291A (en) * 2021-06-30 2021-11-09 苏州浪潮智能科技有限公司 Online label printing system and printing method thereof
CN114296660A (en) * 2021-12-24 2022-04-08 徐工汉云技术股份有限公司 Label printing method based on Vue framework

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009069913A (en) * 2007-09-10 2009-04-02 Max Co Ltd Information management device
CN109219523A (en) * 2016-05-06 2019-01-15 恩图鲁斯特咨询卡有限公司 For printing the label model of customization customer interaction label
CN112148230A (en) * 2019-06-26 2020-12-29 北京京东振世信息技术有限公司 Printing method, system, device and storage medium thereof
CN110749367A (en) * 2019-11-20 2020-02-04 石门依云电子商务有限公司 Electronic scale label printing system
CN112214184A (en) * 2020-10-16 2021-01-12 平安国际智慧城市科技股份有限公司 User-defined printing method and device, computer equipment and medium
CN113619291A (en) * 2021-06-30 2021-11-09 苏州浪潮智能科技有限公司 Online label printing system and printing method thereof
CN114296660A (en) * 2021-12-24 2022-04-08 徐工汉云技术股份有限公司 Label printing method based on Vue framework

Also Published As

Publication number Publication date
CN115214243A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
CN115214243B (en) Automatic label printing method, system, terminal and storage medium
US9201845B2 (en) XML printer system
US7407102B2 (en) XML printer system
US20110242580A1 (en) Submission of jdf print jobs to a target printer using a usb storage device and other related methods
KR20040063000A (en) Xml printer system
US9021350B2 (en) Device control system, service-providing method for a device control system, and a program for the same
US20080030771A1 (en) Xml printer system
JP2012181572A (en) Print management program, print management device, print management method, and print system
CN108388408A (en) A kind of print out task management method and equipment
US7907299B2 (en) Method and server for processing an electronic workflow
JP2010113673A (en) Print management apparatus and control method thereof
JPH1191189A (en) Method and apparatus for producing printed matter by utilizing network
US8880646B2 (en) Information distribution system, service-providing method for an information distribution system, and a program for the same
JP2024000374A (en) Program, production base system, packing processing method, and information processing system
KR100607845B1 (en) Print ordering system using PD file automatic conversion and its method
JP4914760B2 (en) Form issuing server, form issuing method, and form issuing program
JP2000242718A (en) Product delivery system, delivery center, receiving terminal, and recording medium
US11409969B2 (en) Method, system, and apparatus for automated dispensing of labels in a production environment
JP6354216B2 (en) Management device and printing processing system
JP2011060057A (en) Information processing apparatus, control method thereof, program, and recording medium
CN101770464A (en) Method for converting data formats
JP6354215B2 (en) Management device and printing processing system
CN115115006A (en) Label generation method, generation system and printing system
US20130083351A1 (en) Method and system for managing print on demand jobs by maintaining customer order records with content identification of printed articles
JP2003132141A (en) Stripping data using network and printed matter making method and making device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant