Production scheduling method, device, computer equipment and storage medium

Through the Gantt chart presentation and drag stretch color blocks, the problem of inconvenient adjustment of existing production scheduling is solved, and flexible adjustment and intuitive operation of production scheduling is realized to adapt to production changes.

CN114925966BActive Publication Date: 2024-12-17FOSHAN JIYAN ZHILIAN TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202210357531.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2021-11-01
Filing Date
2022-04-02
Publication Date
2024-12-17
Estimated Expiration
2042-04-02

AI Technical Summary

Technical Problem

The existing production scheduling methods cannot be adjusted in time when facing situations such as order insertion, delivery time changes and resource abnormalities, and are inconvenient to modify and are not intuitive enough.

Method used

The production schedule content is presented in the Gantt chart. Dynamic adjustment of the production schedule is achieved by dragging and stretching color blocks, and the insertion, dragging and stretching operations are supported to respond to changes quickly.

Benefits of technology

It realizes flexible adjustment of production scheduling, improves the intuitiveness and convenience of modification, and can respond to production changes in a timely manner.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114925966B_ABST
    Figure CN114925966B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention discloses a production scheduling method, device, computer equipment and storage medium. The method includes: obtaining order information, production process and bill of materials to obtain initial data; screening and sorting the initial data to generate a first production list; generating a Gantt chart based on the first production list to obtain a first Gantt chart; judging whether there is new order information at present; if there is new order information at present, generating a second production list according to the new order information and the initial data; modifying the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart; displaying the second Gantt chart. By implementing the method of the embodiment of the present invention, the color blocks corresponding to each link of the production schedule can be adjusted at any time, which is more intuitive and convenient to modify.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to an automatic scheduling method, and more specifically to a production scheduling method, device, computer equipment and storage medium. Background Art

[0002] At present, manufacturing companies mainly schedule production based on production and sales coordination plans. Specifically, the sales department and production management department will plan and schedule production orders in advance based on the existing system, and then adjust and schedule production plans based on past production experience and actual production conditions, that is, formulate production schedules.

[0003] However, the existing production schedules are manually adjusted based on past production experience and actual production conditions. After the production schedule is confirmed, it is listed in a table. If the production schedule is affected by a series of subsequent order insertions, delivery date changes, resource anomalies, etc., and the situation is complex and changeable, and there are many factors affecting production, the production schedule cannot be adjusted in time and can only be remade, which is inconvenient to modify and not intuitive enough.

[0004] Therefore, it is necessary to design a new method to achieve the ability to adjust the color blocks corresponding to each link of the production schedule at any time, which is more intuitive and easy to modify. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the prior art and provide a production scheduling method, device, computer equipment and storage medium.

[0006] To achieve the above object, the present invention adopts the following technical solution: a production scheduling method, comprising:

[0007] Obtain order information, production process and bill of materials to obtain initial data;

[0008] Screening and sorting the initial data to generate a first production list;

[0009] Generate a Gantt chart according to the first production list to obtain a first Gantt chart;

[0010] Determine whether there is new order information at present;

[0011] If there is new order information, a second production list is generated according to the new order information and the initial data;

[0012] Modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart;

[0013] Display the second Gantt chart.

[0014] A further technical solution is: generating a Gantt chart according to the first production list to obtain a first Gantt chart includes:

[0015] Determining relevant color blocks in the first production list;

[0016] According to the production scheduling sequence of the first production list, the color blocks are dragged and stretched into the corresponding Gantt chart in sequence to form a first Gantt chart.

[0017] A further technical solution is: modifying the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart, including:

[0018] Determining the color blocks to be added according to the second production list and the first production list to obtain the color blocks to be added;

[0019] Determine the color blocks in the first Gantt chart and the adjustment plan for the color blocks to be added according to the second production list and the first production list;

[0020] The first Gantt chart is modified according to the adjustment scheme to obtain a second Gantt chart.

[0021] A further technical solution is: modifying the first Gantt chart according to the adjustment scheme to obtain a second Gantt chart, including:

[0022] Determine the color blocks involved in the adjustment scheme to obtain the color block currently in the dragging state;

[0023] Determine the adjustment method of the color block currently being dragged within the adjustment scheme;

[0024] Determine whether the adjustment method is to insert behind the specified color block;

[0025] If the adjustment method is to insert behind the designated color block, the color block currently in the dragging state is inserted behind the designated color block;

[0026] Determine whether the first Gantt chart has been modified;

[0027] If the first Gantt chart has not been modified, then determining the next color block involved in the adjustment scheme to obtain the color block currently in the dragging state, and executing the step of determining the adjustment method of the color block currently in the dragging state in the adjustment scheme;

[0028] If the first Gantt chart is modified, the modified first Gantt chart is used as the second Gantt chart;

[0029] If the adjustment method is not to insert the color block behind the specified color block, then determining whether the adjustment method is to insert the color block to the frontmost position of all color blocks;

[0030] If the adjustment method is to insert the color block to the front position of all color blocks, the color block currently being dragged is inserted to the front position of all color blocks, and the step of determining whether the first Gantt chart has been modified is performed;

[0031] If the adjustment method is not to insert the color block to the frontmost position of all color blocks, the color block currently in the dragging state is inserted at a specific position, and the determination of whether the first Gantt chart is modified is performed.

[0032] A further technical solution is: inserting the color block currently in the dragging state behind the designated color block comprises:

[0033] Determine whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located;

[0034] If the center line of the color block currently being dragged is not within the range of the row where the specified color block is located, continue to drag the color block currently being dragged, and execute the step of determining whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located;

[0035] If the center line of the color block currently being dragged is within the range of the row where the specified color block is located, then determine whether the leftmost side of the color block currently being dragged is within the range involved by the specified color block;

[0036] If the leftmost side of the color block currently being dragged is not within the range covered by the designated color block, drag the color block currently being dragged within the range of the row where the designated color block is located, and execute the step of determining whether the leftmost side of the color block currently being dragged is within the range covered by the designated color block;

[0037] If the leftmost portion of the color block currently being dragged is within the range covered by the specified color block, a virtual placeholder is generated behind the specified color block, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder;

[0038] The color block currently in the dragging state is inserted into the virtual placeholder.

[0039] A further technical solution is: inserting the color block currently in the dragging state to the frontmost position of all color blocks includes:

[0040] Determine whether the center line of the color block currently being dragged is within the range of the specified row;

[0041] If the center line of the color block currently being dragged is not within the range of the specified row, continue to drag the color block currently being dragged, and execute the step of determining whether the center line of the color block currently being dragged is within the range of the specified row;

[0042] If the center line of the color block currently being dragged is within the range of the specified row, then determine whether the leftmost side of the color block currently being dragged is in front of the first color block in the specified row;

[0043] If the leftmost portion of the color block currently being dragged is not in front of the first color block in the specified row, drag the color block currently being dragged within the range of the specified row, and execute the step of determining whether the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row;

[0044] If the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row, a virtual placeholder is generated in front of the first color block in the specified row, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder;

[0045] The color block currently in the dragging state is inserted into the virtual placeholder.

[0046] A further technical solution is: inserting the color block currently in the dragging state at a specific position includes:

[0047] Determine whether the center line of the color block currently being dragged is within the range of the row corresponding to the specific position;

[0048] If the center line of the color block currently being dragged is not within the range of the row corresponding to the specific position, continue to drag the color block currently being dragged, and perform the determination of whether the center line of the color block currently being dragged is within the range of the row corresponding to the specific position;

[0049] If the center line of the color block currently in the dragging state is within the range of the line corresponding to the specific position, the color block currently in the dragging state is inserted after the timeline corresponding to the specific position.

[0050] The present invention also provides a production scheduling device, comprising:

[0051] An initial data acquisition unit, used to acquire order information, production process and bill of materials to obtain initial data;

[0052] A first list forming unit, used for screening and sorting the initial data to generate a first production list;

[0053] A first Gantt chart generating unit, configured to generate a Gantt chart according to the first production list to obtain a first Gantt chart;

[0054] A judgment unit, used to judge whether there is new order information at present;

[0055] A second production list forming unit, configured to generate a second production list according to the new order information and the initial data if there is new order information at present;

[0056] a second Gantt chart generating unit, configured to modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart;

[0057] The second display unit is used to display the second Gantt chart.

[0058] The present invention further provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor implements the above method when executing the computer program.

[0059] The present invention also provides a storage medium, wherein the storage medium stores a computer program, and the computer program can implement the above method when executed by a processor.

[0060] The beneficial effects of the present invention compared with the prior art are: the present invention presents the content of the production schedule by adopting a Gantt chart, and when there is new order information, a variety of adjustment methods, dragging and stretching the color blocks involved can be used to quickly adjust the Gantt chart, so that the color blocks corresponding to each link of the production schedule can be adjusted at any time, which is more intuitive and easy to modify.

[0061] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.

[0063] Figure 1 A schematic diagram of an application scenario of the production scheduling method provided by an embodiment of the present invention;

[0064] Figure 2 A flowchart of a production scheduling method provided by an embodiment of the present invention;

[0065] Figure 3 A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0066] Figure 4A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0067] Figure 5 A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0068] Figure 6 A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0069] Figure 7 A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0070] Figure 8 A schematic diagram of a sub-process of a production scheduling method provided by an embodiment of the present invention;

[0071] Fig. 9 A schematic block diagram of a production scheduling device provided by an embodiment of the present invention;

[0072] Fig.10 A schematic block diagram of a first Gantt chart generating unit of a production scheduling device provided in an embodiment of the present invention;

[0073] Fig.11 A schematic block diagram of a second Gantt chart generating unit of a production scheduling device provided in an embodiment of the present invention;

[0074] Fig.12 A schematic block diagram of a modification subunit of a production scheduling device provided in an embodiment of the present invention;

[0075] Fig.13 A schematic block diagram of a first plug-in module of a production scheduling device provided in an embodiment of the present invention;

[0076] Fig.14 A schematic block diagram of a second plug-in module of a production scheduling device provided in an embodiment of the present invention;

[0077] Fig.15 A schematic block diagram of a third plug-in module of the production scheduling device provided in an embodiment of the present invention;

[0078] Fig.16 A schematic block diagram of a computer device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0079] 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 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.

[0080] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.

[0081] It should also be understood that the terms used in this specification of the present invention are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the specification of the present invention and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0082] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0083] See also Figure 1 and Figure 2 , Figure 1 A schematic diagram of an application scenario of the production scheduling method provided in an embodiment of the present invention. Figure 2 A schematic flow chart of a production scheduling method provided by an embodiment of the present invention. The production scheduling is applicable to a first terminal, the first terminal and the second terminal perform data exchange, continuously obtain order information through the second terminal, and generate a corresponding list and a first Gantt chart. When there is new order information, the color blocks corresponding to each link of the production schedule can be adjusted at any time, and the production schedule is displayed using a Gantt chart, which is more intuitive and convenient to modify.

[0084] Figure 2 Schematic diagram of the production scheduling method provided by the embodiment of the present invention. Figure 2 As shown, the method includes the following steps S110 to S180.

[0085] S110, obtaining order information, production process and bill of materials to obtain initial data.

[0086] In this embodiment, the initial data includes order information, production process and bill of materials, and the order letter information includes the materials involved in the order and information about the person who placed the order.

[0087] S120: Screen and sort the initial data to generate a first production list.

[0088] In this embodiment, the first production list includes orders to be scheduled for production, and the orders include the colors of the dyed cloth and the status of completed, in production, or planned production, as well as the production sequence, etc.

[0089] S130. Generate a Gantt chart according to the first production list to obtain a first Gantt chart.

[0090] In this embodiment, the first Gantt chart includes a number of color blocks, which have three colors, one representing completed, one representing in production, and one representing planned production. The color in front of the color block represents the color of the dyed cloth; these color blocks constitute the first Gantt chart, which intuitively displays the content of the production schedule.

[0091] In one embodiment, see Figure 3 , the above-mentioned step S130 may include steps S131 to S132.

[0092] S131, determining relevant color blocks in the first production list;

[0093] S132. According to the production scheduling sequence of the first production list, drag and stretch the color blocks into the corresponding Gantt chart in sequence to form a first Gantt chart.

[0094] In this embodiment, the dragging and stretching process can be performed by a person directly dragging the corresponding color block to a specified position, which is convenient and intuitive.

[0095] Specifically, dragging may include a common drag component, which can drag the color block to any position in the browser; locking the draggable range of the color block, allowing the color block to be dragged only within the visible window of the browser; the draggable range can be customized; the component can also be used for horizontal locking, allowing the color block to be dragged only vertically; vertical dragging, allowing the color block to be dragged only horizontally; locking the position, the color block cannot be dragged.

[0096] The stretching component can be used when stretching. When the color block is lengthened / shortened, the positions of all the color blocks behind the color block will move accordingly.

[0097] S140: Determine whether there is new order information.

[0098] In this embodiment, it is determined whether the first terminal currently receives new order information transmitted by the second terminal, wherein the order information includes order information to be scheduled for production and order information to be added to the first production list.

[0099] S150: If there is no new order information, display the first Gantt chart;

[0100] S160: If there is new order information, generate a second production list according to the new order information and the initial data.

[0101] The second production list is generated in a manner consistent with the manner in which the first production list is generated, and the second production list includes new orders to be scheduled for production.

[0102] S170: Modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart.

[0103] The color blocks that need to be adjusted can be determined based on the second production list and the first production list, including the color blocks that need to be added or adjusted in position, so as to modify the first Gantt chart.

[0104] In one embodiment, see Figure 4 , the above-mentioned step S170 may include steps S171 to S173.

[0105] S171. Determine the color blocks that need to be added according to the second production list and the first production list to obtain the color blocks to be added.

[0106] In this embodiment, the color block to be added refers to the color block of the dyed cloth that needs to be added.

[0107] S172. Determine the color blocks in the first Gantt chart and an adjustment plan for the color blocks to be added according to the second production list and the first production list.

[0108] In this embodiment, the adjustment scheme refers to the adjustment method of each color block to be added and the color block in the first Gantt chart, which includes inserting into a specific position, inserting into the first position of the entire row, or inserting behind a specified color block.

[0109] S173. Modify the first Gantt chart according to the adjustment plan to obtain a second Gantt chart.

[0110] In one embodiment, see Figure 5 , the above-mentioned step S173 may include steps S173a~S173j.

[0111] S173a, determining the color blocks involved in the adjustment scheme to obtain the color blocks currently in the dragging state.

[0112] In this embodiment, the color blocks involved in the adjustment scheme are determined in sequence, and the subsequent steps S173b to S173j are performed in sequence.

[0113] S173b, determining an adjustment method of the color block currently in the dragging state within the adjustment scheme;

[0114] S173c, determining whether the adjustment method is to insert behind the designated color block;

[0115] S173d. If the adjustment method is to insert the color block behind the designated color block, the color block currently in the dragging state is inserted behind the designated color block.

[0116] In one embodiment, see Figure 6 , the above-mentioned step S173d may include steps S173d1 to S173d6.

[0117] S173d1. Determine whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located.

[0118] In this embodiment, when determining which row the center line of the color block currently in the dragging state is within, the distance from the upper edge of the row to the browser, the distance from the lower edge of the row to the browser, and the distance from the center line of the color block currently in the dragging state to the browser are calculated, and the position of the row is determined by the distance from the upper edge of the row to the browser < the distance from the center line of the color block currently in the dragging state to the browser < and the distance from the lower edge of the row to the browser, thereby determining whether it is within the range of the row where the specified color block is located. The distance from the center line of the color block currently in the dragging state to the browser is equal to half of the sum of the distance from the upper edge of the color block currently in the dragging state to the browser and the distance from the lower edge of the color block currently in the dragging state to the browser.

[0119] S173d2, if the center line of the color block currently being dragged is not within the range of the row where the designated color block is located, continue to drag the color block currently being dragged, and execute the step S173d1;

[0120] S173d3. If the center line of the color block currently being dragged is within the range of the row where the designated color block is located, determine whether the leftmost side of the color block currently being dragged is within the range involved by the designated color block.

[0121] In this embodiment, when determining which color block the leftmost side of the color block currently being dragged is within the range of, the distance from the left border of the color block to the browser, the distance from the right border of the color block to the browser, and the distance from the left border of the color block currently being dragged to the browser are calculated. The position of the color block is determined by the distance from the left border of the color block to the browser < the distance from the center line of the color block currently being dragged to the browser < and the distance from the right border of the line to the browser, thereby determining whether it is within the range of the specified color block.

[0122] S173d4, if the leftmost side of the color block currently being dragged is not within the range of the designated color block, drag the color block currently being dragged within the range of the row where the designated color block is located, and execute step S173d3;

[0123] S173d5. If the leftmost portion of the color block currently being dragged is within the range covered by the designated color block, a virtual placeholder is generated behind the designated color block, and all color blocks behind the virtual placeholder are moved by a distance equal to the width of the virtual placeholder.

[0124] S173d6. Insert the color block currently in the dragging state into the virtual placeholder.

[0125] In this embodiment, the virtual placeholder refers to a virtual dom (nDom) placeholder. A virtual dom (nDom) placeholder is generated behind the designated color block, and all elements after nDom are moved backward by a distance of nDom width.

[0126] S173e, determining whether the first Gantt chart has been modified;

[0127] S173f, if the first Gantt chart has not been modified, determine the next color block involved in the adjustment plan to obtain the color block currently in the dragging state, and execute the step S173b;

[0128] S173g: If the first Gantt chart is modified, use the modified first Gantt chart as the second Gantt chart.

[0129] S173h, if the adjustment method is not to insert the color block behind the designated color block, determine whether the adjustment method is to insert the color block to the frontmost position of all color blocks;

[0130] S173i. If the adjustment method is to insert the color block to the frontmost position of all color blocks, insert the color block currently in the dragging state to the frontmost position of all color blocks, and execute step S173e.

[0131] In one embodiment, see Figure 7 , the above step S173i may include steps S173i1 to S173i6. S173i1, determining whether the center line of the color block currently in the dragging state is within the range of the specified row;

[0132] S173i2, if the center line of the color block currently being dragged is not within the range of the specified row, continue to drag the color block currently being dragged, and execute the above S173i1;

[0133] S173i3, if the center line of the color block currently in the dragging state is within the range of the specified row, determine whether the leftmost side of the color block currently in the dragging state is in front of the first color block in the specified row;

[0134] S173i4, if the leftmost portion of the color block currently being dragged is not in front of the first color block in the specified row, drag the color block currently being dragged within the range of the specified row, and execute the step of determining whether the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row;

[0135] S173i5. If the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row, a virtual placeholder is generated in front of the first color block in the specified row, and all color blocks behind the virtual placeholder are moved by a width of the virtual placeholder;

[0136] S173i6. Insert the color block currently in the dragging state into the virtual placeholder.

[0137] S173j. If the adjustment method is not to insert the color block to the frontmost position of all color blocks, the color block currently in the dragging state is inserted at a specific position, and the step S173e is executed.

[0138] In one embodiment, see Figure 8 The above-mentioned step S173j includes steps S173j1 to S173j3.

[0139] S173j1, determining whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position;

[0140] S173j2, if the center line of the color block currently in the dragging state is not within the range of the row corresponding to the specific position, continue to drag the color block currently in the dragging state, and execute the above S173j1;

[0141] S173j3. If the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position, the color block currently in the dragging state is inserted after the timeline corresponding to the specific position.

[0142] Determine whether the center line of the color block currently being dragged is within a certain row range. If so, the color block currently being dragged should be inserted behind the timeline, and a virtual dom (nCDom) placeholder is generated behind the row to directly insert the color block.

[0143] When the mouse is pressed, a virtual dom (oDom) placeholder is generated at the original color block position; when the mouse is moved, there are three situations, which are the three adjustment methods mentioned above; when the mouse is lifted, the position attribute of nDom or nFDom or nCDom is assigned to the color block currently in the dragging state, and the nDom placeholder is removed, and all elements after nDom are moved forward by the width of nDom.

[0144] S180: Display the second Gantt chart.

[0145] In this embodiment, the second Gantt chart is displayed on the first terminal and the second terminal respectively, so that both the scheduler and the production personnel can intuitively view the production schedule content.

[0146] The above-mentioned production scheduling method presents the content of the production schedule by adopting a Gantt chart. When there is new order information, a variety of adjustment methods can be used, and the color blocks involved can be dragged and stretched to quickly adjust the Gantt chart, so that the color blocks corresponding to each link of the production schedule can be adjusted at any time, which is more intuitive and easy to modify.

[0147] Fig. 9 is a schematic block diagram of a production scheduling device 300 provided in an embodiment of the present invention. Fig. 9 As shown, corresponding to the above production scheduling method, the present invention also provides a production scheduling device 300. The production scheduling device 300 includes a unit for executing the above production scheduling method, and the device can be configured in a desktop computer, a tablet computer, a laptop computer, etc. Specifically, please refer to Fig. 9 The production scheduling device 300 includes an initial data acquisition unit 301, a first list forming unit 302, a first Gantt chart generating unit 303, a judgment unit 304, a first display unit 305, a second production list forming unit 306, a second Gantt chart generating unit 307 and a second display unit 308.

[0148] The initial data acquisition unit 301 is used to acquire order information, production process and bill of materials to obtain initial data; the first list forming unit 302 is used to filter and sort the initial data to generate a first production list; the first Gantt chart generating unit 303 is used to generate a Gantt chart according to the first production list to obtain a first Gantt chart; the judgment unit 304 is used to judge whether there is new order information at present; the first display unit 305 is used to display the first Gantt chart if there is no new order information at present; the second production list forming unit 306 is used to generate a second production list according to the new order information and the initial data if there is new order information at present; the second Gantt chart generating unit 307 is used to modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart; the second display unit 308 is used to display the second Gantt chart.

[0149] In one embodiment, if Fig.10 As shown, the first Gantt chart generating unit 303 includes a related color block determining subunit 3031 and a processing subunit 3032 .

[0150] The related color block determination subunit 3031 is used to determine the related color blocks in the first production list; the processing subunit 3032 is used to drag and stretch the color blocks into the corresponding Gantt chart in order according to the production schedule of the first production list to form the first Gantt chart.

[0151] In one embodiment, if Fig.11 As shown, the second Gantt chart generating unit 307 includes a color block to be added determining subunit 3071 , a scheme determining subunit 3072 and a modifying subunit 3073 .

[0152] The color block determination subunit 3071 is used to determine the color blocks to be added according to the second production list and the first production list to obtain the color blocks to be added; the scheme determination subunit 3072 is used to determine the color blocks in the first Gantt chart and the adjustment scheme of the color blocks to be added according to the second production list and the first production list; the modification subunit 3073 is used to modify the first Gantt chart according to the adjustment scheme to obtain the second Gantt chart.

[0153] In one embodiment, if Fig.12 As shown, the modification subunit 3073 includes a color block determination module 30731, a method determination module 30732, a first judgment module 30733, a first insertion module 30734, a modification judgment module 30735, a next color block determination module 30736, a Gantt chart determination module 30737, a second judgment module 30738, a second insertion module 30739 and a third insertion module 30710.

[0154] The color block determination module 30731 is used to determine the color blocks involved in the adjustment scheme to obtain the color block currently in the dragging state; the method determination module 30732 is used to determine the adjustment method of the color block currently in the dragging state in the adjustment scheme; the first judgment module 30733 is used to judge whether the adjustment method is to insert behind the specified color block; the first insertion module 30734 is used to insert the color block currently in the dragging state behind the specified color block if the adjustment method is to insert behind the specified color block; the modification judgment module 30735 is used to judge whether the first Gantt chart has been modified; the next color block determination module 30736 is used to determine the next color block involved in the adjustment scheme to obtain the color block currently in the dragging state if the first Gantt chart has not been modified, and execute the determination of the color block currently in the dragging state. a Gantt chart determination module 30737, for, if the first Gantt chart is modified, using the modified first Gantt chart as the second Gantt chart; a second judgment module 30738, for, if the adjustment method is not to insert behind the specified color block, judging whether the adjustment method is to insert to the frontmost position of all color blocks; a second insertion module 30739, for, if the adjustment method is to insert to the frontmost position of all color blocks, inserting the color block currently in the dragging state to the frontmost position of all color blocks, and executing the judgment of whether the first Gantt chart is modified; a third insertion module 30710, for, if the adjustment method is not to insert to the frontmost position of all color blocks, inserting the color block currently in the dragging state at a specific position, and executing the judgment of whether the first Gantt chart is modified.

[0155] In one embodiment, if Fig.13 As shown, the first insertion module 30734 includes a row determination submodule 307341, a first dragging submodule 307342, a designated block determination submodule 307343, a second dragging submodule 307344, a first placeholder setting submodule 307345 and a first adding submodule 307346.

[0156] The row determination submodule 307341 is used to determine whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; the first dragging submodule 307342 is used to, if the center line of the color block currently being dragged is not within the range of the row where the specified color block is located, continue to drag the color block currently being dragged, and execute the determination of whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; the specified block determination submodule 307343 is used to, if the center line of the color block currently being dragged is within the range of the row where the specified color block is located, determine whether the leftmost side of the color block currently being dragged is within the range involved by the specified color block; the second dragging submodule Module 307344 is used to drag the color block currently in the dragging state within the range of the row where the specified color block is located if the leftmost side of the color block currently in the dragging state is not within the range involved by the specified color block, and execute the determination of whether the leftmost side of the color block currently in the dragging state is within the range involved by the specified color block; the first placeholder setting submodule 307345 is used to generate a virtual placeholder behind the specified color block if the leftmost side of the color block currently in the dragging state is within the range involved by the specified color block, and move all the color blocks behind the virtual placeholder by the width of the virtual placeholder; the first adding submodule 307346 is used to insert the color block currently in the dragging state into the virtual placeholder.

[0157] In one embodiment, if Fig.14 As shown, the second insertion module 30739 includes a designated row judgment submodule 307391, a third dragging submodule 307392, a first color block judgment submodule 307393, a fourth dragging submodule 307394, a second placeholder generation submodule 307395 and a second adding submodule 307396.

[0158] The designated row judgment submodule 307391 is used to judge whether the center line of the color block currently in the dragging state is within the range of the designated row; the third dragging submodule 307392 is used to, if the center line of the color block currently in the dragging state is not within the range of the designated row, continue to drag the color block currently in the dragging state, and execute the judgment of whether the center line of the color block currently in the dragging state is within the range of the designated row; the first color block judgment submodule 307393 is used to, if the center line of the color block currently in the dragging state is within the range of the designated row, judge whether the leftmost of the color block currently in the dragging state is in front of the first color block in the designated row; the fourth dragging submodule 307394 is used If the leftmost part of the color block currently being dragged is not in front of the first color block in the specified row, then drag the color block currently being dragged within the range of the specified row, and execute the determination of whether the leftmost part of the color block currently being dragged is in front of the first color block in the specified row; the second placeholder generation submodule 307395 is used to generate a virtual placeholder in front of the first color block in the specified row if the leftmost part of the color block currently being dragged is in front of the first color block in the specified row, and move all color blocks behind the virtual placeholder by the width of the virtual placeholder; the second adding submodule 307396 is used to insert the color block currently being dragged into the virtual placeholder.

[0159] In one embodiment, if Fig.15 As shown, the third insertion module 307310 includes a specific position determination submodule 3073101 , a fifth dragging submodule 3073102 and an adding submodule 3073103 .

[0160] The specific position judgment submodule 3073101 is used to judge whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position; the fifth dragging submodule 3073102 is used to continue dragging the color block currently in the dragging state and execute the judgment whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position if the center line of the color block currently in the dragging state is not within the range of the row corresponding to the specific position; the adding submodule 3073103 is used to insert the color block currently in the dragging state after the timeline corresponding to the specific position if the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position.

[0161] It should be noted that those skilled in the art can clearly understand that the specific implementation process of the above-mentioned production scheduling device 300 and each unit can refer to the corresponding description in the aforementioned method embodiment, and for the convenience and brevity of description, it will not be repeated here.

[0162] The production scheduling device 300 can be implemented in the form of a computer program. Fig.16 Runs on the computer device shown.

[0163] See also Fig.16 , Fig.16 500 is a schematic block diagram of a computer device provided in an embodiment of the present application. The computer device 500 may be a terminal, wherein the terminal may be an electronic device with communication functions such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a personal digital assistant, and a wearable device.

[0164] See also Fig.16 The computer device 500 includes a processor 502 , a memory and a network interface 505 connected via a system bus 501 , wherein the memory may include a non-volatile storage medium 503 and an internal memory 504 .

[0165] The non-volatile storage medium 503 can store an operating system 5031 and a computer program 5032. The computer program 5032 includes program instructions, and when the program instructions are executed, the processor 502 can execute a production scheduling method.

[0166] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .

[0167] The internal memory 504 provides an environment for the operation of the computer program 5032 in the non-volatile storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute a production scheduling method.

[0168] The network interface 505 is used to communicate with other devices over the network. Fig.16 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device 500 to which the solution of the present application is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0169] The processor 502 is used to run the computer program 5032 stored in the memory to implement the following steps:

[0170] Obtain order information, production process and bill of materials to obtain initial data; filter and sort the initial data to generate a first production list; generate a Gantt chart based on the first production list to obtain a first Gantt chart; determine whether there is new order information; if there is new order information, generate a second production list based on the new order information and the initial data; modify the first Gantt chart based on the second production list and the first production list to generate a second Gantt chart; display the second Gantt chart.

[0171] In one embodiment, when the processor 502 implements the step of generating a Gantt chart according to the first production list to obtain a first Gantt chart, the processor 502 specifically implements the following steps:

[0172] Determine the relevant color blocks in the first production list; and drag and stretch the color blocks into the corresponding Gantt chart in sequence according to the production scheduling sequence of the first production list to form a first Gantt chart.

[0173] In one embodiment, when the processor 502 implements the step of modifying the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart, the processor 502 specifically implements the following steps:

[0174] Determine the color blocks that need to be added according to the second production list and the first production list to obtain the color blocks to be added; determine the color blocks in the first Gantt chart and the adjustment plan of the color blocks to be added according to the second production list and the first production list; modify the first Gantt chart according to the adjustment plan to obtain the second Gantt chart.

[0175] In one embodiment, when the processor 502 implements the step of modifying the first Gantt chart according to the adjustment scheme to obtain the second Gantt chart, the processor 502 specifically implements the following steps:

[0176] Determine the color block involved in the adjustment scheme to obtain the color block currently in the dragging state; determine the adjustment method of the color block currently in the dragging state in the adjustment scheme; determine whether the adjustment method is to insert it behind the specified color block; if the adjustment method is to insert it behind the specified color block, insert the color block currently in the dragging state behind the specified color block; determine whether the first Gantt chart has been modified; if the first Gantt chart has not been modified, determine the next color block involved in the adjustment scheme to obtain the color block currently in the dragging state, and execute the adjustment method of the color block currently in the dragging state in the adjustment scheme. method; if the first Gantt chart is modified, the modified first Gantt chart is used as the second Gantt chart; if the adjustment method is not to insert behind the specified color block, it is determined whether the adjustment method is to insert to the frontmost position of all color blocks; if the adjustment method is to insert to the frontmost position of all color blocks, the color block currently in the dragging state is inserted to the frontmost position of all color blocks, and the determination of whether the first Gantt chart is modified is executed; if the adjustment method is not to insert to the frontmost position of all color blocks, the color block currently in the dragging state is inserted at a specific position, and the determination of whether the first Gantt chart is modified is executed.

[0177] In one embodiment, when the processor 502 implements the step of inserting the color block currently in the dragging state behind the designated color block, the processor 502 specifically implements the following steps:

[0178] Determine whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; if the center line of the color block currently being dragged is not within the range of the row where the specified color block is located, continue to drag the color block currently being dragged, and execute the determination of whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; if the center line of the color block currently being dragged is within the range of the row where the specified color block is located, determine whether the leftmost side of the color block currently being dragged is within the range involved by the specified color block; if the color block currently being dragged is within the range of the row where the specified color block is located If the leftmost portion of the color block in the dragged state is not within the range covered by the specified color block, the color block currently in the dragged state is dragged within the range of the row where the specified color block is located, and the determination of whether the leftmost portion of the color block currently in the dragged state is within the range covered by the specified color block is performed; if the leftmost portion of the color block currently in the dragged state is within the range covered by the specified color block, a virtual placeholder is generated behind the specified color block, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder; and the color block currently in the dragged state is inserted into the virtual placeholder.

[0179] In one embodiment, when the processor 502 implements the step of inserting the color block currently in the dragging state to the frontmost position of all color blocks, the processor 502 specifically implements the following steps:

[0180] Determine whether the center line of the color block currently in the dragging state is within the range of the specified row; if the center line of the color block currently in the dragging state is not within the range of the specified row, continue to drag the color block currently in the dragging state, and execute the determination of whether the center line of the color block currently in the dragging state is within the range of the specified row; if the center line of the color block currently in the dragging state is within the range of the specified row, determine whether the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row; if the leftmost side of the color block currently in the dragging state is not in front of the first color block of the specified row, drag the color block currently in the dragging state within the range of the specified row, and execute the determination of whether the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row; if the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row, generate a virtual placeholder in front of the first color block of the specified row, and move all color blocks behind the virtual placeholder by the width of the virtual placeholder; insert the color block currently in the dragging state into the virtual placeholder.

[0181] In one embodiment, when the processor 502 implements the step of inserting the color block currently in the dragging state into a specific position, the processor 502 specifically implements the following steps:

[0182] Determine whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position; if the center line of the color block currently in the dragging state is not within the range of the row corresponding to the specific position, continue to drag the color block currently in the dragging state, and execute the determination of whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position; if the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position, insert the color block currently in the dragging state after the timeline corresponding to the specific position.

[0183] It should be understood that in the embodiment of the present application, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be 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. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.

[0184] It can be understood by those skilled in the art that all or part of the processes in the method for implementing the above embodiment can be completed by instructing the relevant hardware through a computer program. The computer program includes program instructions, and the computer program can be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the process steps of the embodiment of the above method.

[0185] Therefore, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium. The storage medium stores a computer program, wherein when the computer program is executed by a processor, the processor executes the following steps:

[0186] Obtain order information, production process and bill of materials to obtain initial data; filter and sort the initial data to generate a first production list; generate a Gantt chart based on the first production list to obtain a first Gantt chart; determine whether there is new order information; if there is new order information, generate a second production list based on the new order information and the initial data; modify the first Gantt chart based on the second production list and the first production list to generate a second Gantt chart; display the second Gantt chart.

[0187] In one embodiment, when the processor executes the computer program to implement the step of generating a Gantt chart according to the first production list to obtain a first Gantt chart, the processor specifically implements the following steps:

[0188] Determine the relevant color blocks in the first production list; and drag and stretch the color blocks into the corresponding Gantt chart in sequence according to the production scheduling sequence of the first production list to form a first Gantt chart.

[0189] In one embodiment, when the processor executes the computer program to implement the step of modifying the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart, the processor specifically implements the following steps:

[0190] Determine the color blocks that need to be added according to the second production list and the first production list to obtain the color blocks to be added; determine the color blocks in the first Gantt chart and the adjustment plan of the color blocks to be added according to the second production list and the first production list; modify the first Gantt chart according to the adjustment plan to obtain the second Gantt chart.

[0191] In one embodiment, when the processor executes the computer program to implement the step of modifying the first Gantt chart according to the adjustment scheme to obtain the second Gantt chart, the processor specifically implements the following steps:

[0192] Determine the color block involved in the adjustment scheme to obtain the color block currently in the dragging state; determine the adjustment method of the color block currently in the dragging state in the adjustment scheme; determine whether the adjustment method is to insert it behind the specified color block; if the adjustment method is to insert it behind the specified color block, insert the color block currently in the dragging state behind the specified color block; determine whether the first Gantt chart has been modified; if the first Gantt chart has not been modified, determine the next color block involved in the adjustment scheme to obtain the color block currently in the dragging state, and execute the adjustment method of the color block currently in the dragging state in the adjustment scheme. method; if the first Gantt chart is modified, the modified first Gantt chart is used as the second Gantt chart; if the adjustment method is not to insert behind the specified color block, it is determined whether the adjustment method is to insert to the frontmost position of all color blocks; if the adjustment method is to insert to the frontmost position of all color blocks, the color block currently in the dragging state is inserted to the frontmost position of all color blocks, and the determination of whether the first Gantt chart is modified is executed; if the adjustment method is not to insert to the frontmost position of all color blocks, the color block currently in the dragging state is inserted at a specific position, and the determination of whether the first Gantt chart is modified is executed.

[0193] In one embodiment, when the processor executes the computer program to implement the step of inserting the color block currently in the dragging state behind the designated color block, the processor specifically implements the following steps:

[0194] Determine whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; if the center line of the color block currently being dragged is not within the range of the row where the specified color block is located, continue to drag the color block currently being dragged, and execute the determination of whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; if the center line of the color block currently being dragged is within the range of the row where the specified color block is located, determine whether the leftmost side of the color block currently being dragged is within the range involved by the specified color block; if the color block currently being dragged is within the range of the row where the specified color block is located If the leftmost portion of the color block in the dragged state is not within the range covered by the specified color block, the color block currently in the dragged state is dragged within the range of the row where the specified color block is located, and the determination of whether the leftmost portion of the color block currently in the dragged state is within the range covered by the specified color block is performed; if the leftmost portion of the color block currently in the dragged state is within the range covered by the specified color block, a virtual placeholder is generated behind the specified color block, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder; and the color block currently in the dragged state is inserted into the virtual placeholder.

[0195] In one embodiment, when the processor executes the computer program to implement the step of inserting the color block currently in the dragging state to the frontmost position of all color blocks, the processor specifically implements the following steps:

[0196] Determine whether the center line of the color block currently in the dragging state is within the range of the specified row; if the center line of the color block currently in the dragging state is not within the range of the specified row, continue to drag the color block currently in the dragging state, and execute the determination of whether the center line of the color block currently in the dragging state is within the range of the specified row; if the center line of the color block currently in the dragging state is within the range of the specified row, determine whether the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row; if the leftmost side of the color block currently in the dragging state is not in front of the first color block of the specified row, drag the color block currently in the dragging state within the range of the specified row, and execute the determination of whether the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row; if the leftmost side of the color block currently in the dragging state is in front of the first color block of the specified row, generate a virtual placeholder in front of the first color block of the specified row, and move all color blocks behind the virtual placeholder by the width of the virtual placeholder; insert the color block currently in the dragging state into the virtual placeholder.

[0197] In one embodiment, when the processor executes the computer program to implement the step of inserting the color block currently in the dragging state at a specific position, the processor specifically implements the following steps:

[0198] Determine whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position; if the center line of the color block currently in the dragging state is not within the range of the row corresponding to the specific position, continue to drag the color block currently in the dragging state, and execute the determination of whether the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position; if the center line of the color block currently in the dragging state is within the range of the row corresponding to the specific position, insert the color block currently in the dragging state after the timeline corresponding to the specific position.

[0199] The storage medium may be a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk, etc., which are computer-readable storage media that can store program codes.

[0200] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0201] In the several embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of each unit is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0202] The steps in the method of the embodiment of the present invention can be adjusted in order, combined and deleted according to actual needs. The units in the device of the embodiment of the present invention can be combined, divided and deleted according to actual needs. In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0203] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, terminal, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention.

[0204] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A production scheduling method, characterized in that: include: Obtain order information, production process and bill of materials to obtain initial data; Screening and sorting the initial data to generate a first production list; Generate a Gantt chart according to the first production list to obtain a first Gantt chart; Determine whether there is new order information at present; If there is new order information, a second production list is generated according to the new order information and the initial data; Modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart; Display the second Gantt chart; The modifying the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart includes: Determining the color blocks to be added according to the second production list and the first production list to obtain the color blocks to be added; Determine the color blocks in the first Gantt chart and the adjustment plan for the color blocks to be added according to the second production list and the first production list; Modifying the first Gantt chart according to the adjustment plan to obtain a second Gantt chart; The step of modifying the first Gantt chart according to the adjustment scheme to obtain a second Gantt chart includes: Determine the color blocks involved in the adjustment scheme to obtain the color block currently in the dragging state; Determine the adjustment method of the color block currently being dragged within the adjustment scheme; Determine whether the adjustment method is to insert behind the specified color block; If the adjustment method is to insert behind the designated color block, the color block currently in the dragging state is inserted behind the designated color block; Determine whether the first Gantt chart has been modified; If the first Gantt chart has not been modified, then determining the next color block involved in the adjustment scheme to obtain the color block currently in the dragging state, and executing the step of determining the adjustment method of the color block currently in the dragging state in the adjustment scheme; If the first Gantt chart is modified, the modified first Gantt chart is used as the second Gantt chart; If the adjustment method is not to insert the color block behind the specified color block, then determining whether the adjustment method is to insert the color block to the frontmost position of all color blocks; If the adjustment method is to insert the color block to the front position of all color blocks, the color block currently being dragged is inserted to the front position of all color blocks, and the step of determining whether the first Gantt chart has been modified is performed; If the adjustment method is not to insert the color block to the front position of all color blocks, insert the color block currently in the dragging state to a specific position, and execute the determination of whether the first Gantt chart has been modified; The step of inserting the color block currently in the dragging state behind the designated color block includes: Determine whether the center line of the color block currently in the dragging state is within the range of the row where the specified color block is located; specifically, when determining which row the center line of the color block currently in the dragging state is within, calculate the distance from the upper edge of the row to the browser, the distance from the lower edge of the row to the browser, and the distance from the center line of the color block currently in the dragging state to the browser, and determine the position of the row by the distance from the upper edge of the row to the browser being less than the distance from the center line of the color block currently in the dragging state to the browser and the distance from the lower edge of the row to the browser, thereby determining whether it is within the range of the row where the specified color block is located, wherein the distance from the center line of the color block currently in the dragging state to the browser is equal to half of the sum of the distance from the upper edge of the color block currently in the dragging state to the browser and the distance from the lower edge of the color block currently in the dragging state to the browser; If the center line of the color block currently being dragged is not within the range of the row where the specified color block is located, continue to drag the color block currently being dragged, and execute the step of determining whether the center line of the color block currently being dragged is within the range of the row where the specified color block is located; If the center line of the color block currently being dragged is within the range of the row where the specified color block is located, then determine whether the leftmost side of the color block currently being dragged is within the range involved by the specified color block; If the leftmost side of the color block currently being dragged is not within the range covered by the designated color block, drag the color block currently being dragged within the range of the row where the designated color block is located, and execute the step of determining whether the leftmost side of the color block currently being dragged is within the range covered by the designated color block; If the leftmost portion of the color block currently being dragged is within the range covered by the specified color block, a virtual placeholder is generated behind the specified color block, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder; The color block currently in the dragging state is inserted into the virtual placeholder.

2. The production scheduling method according to claim 1, characterized in that: Generating a Gantt chart according to the first production list to obtain a first Gantt chart includes: Determining relevant color blocks in the first production list; According to the production scheduling sequence of the first production list, the color blocks are dragged and stretched into the corresponding Gantt chart in sequence to form a first Gantt chart.

3. The production scheduling method according to claim 1, characterized in that: The method of inserting the color block currently being dragged to the front position of all color blocks includes: Determine whether the center line of the color block currently being dragged is within the range of the specified row; If the center line of the color block currently being dragged is not within the range of the specified row, continue to drag the color block currently being dragged, and execute the step of determining whether the center line of the color block currently being dragged is within the range of the specified row; If the center line of the color block currently being dragged is within the range of the specified row, then determine whether the leftmost side of the color block currently being dragged is in front of the first color block in the specified row; If the leftmost portion of the color block currently being dragged is not in front of the first color block in the specified row, drag the color block currently being dragged within the range of the specified row, and execute the step of determining whether the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row; If the leftmost portion of the color block currently being dragged is in front of the first color block in the specified row, a virtual placeholder is generated in front of the first color block in the specified row, and all color blocks behind the virtual placeholder are moved by the width of the virtual placeholder; The color block currently in the dragging state is inserted into the virtual placeholder.

4. The production scheduling method according to claim 1, characterized in that: The inserting the color block currently being dragged at a specific position includes: Determine whether the center line of the color block currently being dragged is within the range of the row corresponding to the specific position; If the center line of the color block currently being dragged is not within the range of the row corresponding to the specific position, continue to drag the color block currently being dragged, and perform the determination of whether the center line of the color block currently being dragged is within the range of the row corresponding to the specific position; If the center line of the color block currently in the dragging state is within the range of the line corresponding to the specific position, the color block currently in the dragging state is inserted after the timeline corresponding to the specific position.

5. A production scheduling device, characterized in that: include: An initial data acquisition unit, used to acquire order information, production process and bill of materials to obtain initial data; A first list forming unit, used for screening and sorting the initial data to generate a first production list; A first Gantt chart generating unit, configured to generate a Gantt chart according to the first production list to obtain a first Gantt chart; A judgment unit, used to judge whether there is new order information at present; A second production list forming unit, configured to generate a second production list according to the new order information and the initial data if there is new order information at present; a second Gantt chart generating unit, configured to modify the first Gantt chart according to the second production list and the first production list to generate a second Gantt chart; A second display unit, used for displaying the second Gantt chart; The second Gantt chart generating unit includes a color block determination subunit to be added, a scheme determination subunit and a modification subunit; A color block to be added determining subunit, used for determining the color blocks to be added according to the second production list and the first production list, so as to obtain the color blocks to be added; A scheme determination subunit, used to determine the color blocks in the first Gantt chart and the adjustment scheme of the color blocks to be added according to the second production list and the first production list; A modification subunit, configured to modify the first Gantt chart according to the adjustment plan to obtain a second Gantt chart; The modification subunit includes a color block determination module, a mode determination module, a first judgment module, a first insertion module, a modification judgment module, a next color block determination module, a Gantt chart determination module, a second judgment module, a second insertion module and a third insertion module; A color block determination module is involved, which is used to determine the color blocks involved in the adjustment scheme to obtain the color blocks currently in the dragging state; a method determination module is used to determine the adjustment method of the color blocks currently in the dragging state in the adjustment scheme; A first judging module, used to judge whether the adjustment method is to insert behind the designated color block; A first inserting module, used for inserting the color block currently in the dragging state behind the designated color block if the adjustment mode is to insert behind the designated color block; A modification judgment module is used to judge whether the first Gantt chart has been modified; a next color block determination module is used to determine the next color block involved in the adjustment scheme if the first Gantt chart has not been modified, so as to obtain the color block currently in the dragging state, and execute the adjustment method of the color block currently in the dragging state in the adjustment scheme; a Gantt chart determination module is used to use the modified first Gantt chart as the second Gantt chart if the first Gantt chart has been modified; a second judgment module is used to judge whether the adjustment method is inserted into the frontmost position of all color blocks if the adjustment method is not inserted behind the specified color block; A second inserting module is used for inserting the color block currently being dragged to the front position of all color blocks if the adjustment method is to insert the color block to the front position of all color blocks, and executing the step of determining whether the first Gantt chart has been modified; A third inserting module is used to insert the color block currently in the dragging state at a specific position if the adjustment method is not to insert it to the frontmost position of all color blocks, and to execute the determination of whether the first Gantt chart has been modified; The first insertion module includes a row determination submodule, a first drag submodule, a designated block determination submodule, a second drag submodule, a first placeholder setting submodule and a first adding submodule; The row determination submodule is used to determine whether the center line of the color block currently in the dragging state is within the range of the row where the specified color block is located; specifically, when determining which row the center line of the color block currently in the dragging state is within, by calculating the distance from the upper edge of the row to the browser, the distance from the lower edge of the row to the browser, and the distance from the center line of the color block currently in the dragging state to the browser, the position of the row is determined by the distance from the upper edge of the row to the browser being less than the distance from the center line of the color block currently in the dragging state to the browser being less than the distance from the center line of the color block currently in the dragging state to the browser and the distance from the lower edge of the row to the browser, thereby determining whether it is within the range of the row where the specified color block is located, wherein the distance from the center line of the color block currently in the dragging state to the browser is equal to half of the sum of the distance from the upper edge of the color block currently in the dragging state to the browser and the distance from the lower edge of the color block currently in the dragging state to the browser; The first dragging submodule is used to, if the center line of the color block currently in the dragging state is not within the range of the row where the designated color block is located, continue to drag the color block currently in the dragging state, and execute the judgment of whether the center line of the color block currently in the dragging state is within the range of the row where the designated color block is located; the designated block judgment submodule is used to, if the center line of the color block currently in the dragging state is within the range of the row where the designated color block is located, judge whether the leftmost side of the color block currently in the dragging state is within the range involved by the designated color block; The second dragging submodule is used to drag the color block currently in the dragging state within the range of the row where the specified color block is located if the leftmost side of the color block currently in the dragging state is not within the range involved by the specified color block, and to perform the determination of whether the leftmost side of the color block currently in the dragging state is within the range involved by the specified color block; the first placeholder setting submodule is used to generate a virtual placeholder behind the specified color block if the leftmost side of the color block currently in the dragging state is within the range involved by the specified color block, and to move all the color blocks behind the virtual placeholder by the width of the virtual placeholder; The first adding submodule is used to insert the color block currently in the dragging state into the virtual placeholder.

6. A computer device, characterized in that: The computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 4 when executing the computer program.

7. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 can be implemented.

Citation Information

Patent Citations

  • Production scheduling method and system for production line

    CN106897832A

  • Project management method used by deep editing based on Gantt chart

    CN112766919A

  • Production scheduling method, system and equipment, medium and production scheduling management platform

    CN113344338A