The invention relates to the technical field of data management, in particular to a data management system and method based on big data technology.
Disclosure of Invention
The present invention is directed to a data management system and method based on big data technology, so as to solve the problems set forth in the background art.
In order to solve the technical problems, the invention provides the following technical scheme:
the data management system based on the big data technology comprises an input and output module and a processing unit, wherein the input and output module and the processing unit mutually transmit data, the input and output module transmits an order contract and a production form to the processing unit, the processing unit processes the data in the production form, and the processing unit transmits a processing result to the input and output module;
The processing unit comprises a preprocessing module, a budget module and a warehousing module, wherein data are mutually transmitted between the preprocessing module and the budget module, and data are mutually transmitted between the budget module and the warehousing module. After the customer places a bill, a designer selects proper accessories according to the requirements of the customer and the types of mechanical accessories in the order, and fills all the selected accessories into a production form, an input-output module transmits the production form into a preprocessing module for data preprocessing, a budget module invokes inventory data in a storage module according to the types and the numbers of the accessories required in the production form and calculates, after the result is obtained, the budget module selectively informs a purchasing module to purchase or informs the designer, namely a user to confirm the order or inform the designer to confirm a replacement according to the calculation result, and a data management system processes the data in the production form, so that the reasonable replacement of the accessories in the inventory is facilitated, the plan and the targeted purchase are facilitated, the production plan and the purchase plan are effectively combined, and the effective control of the production cost is realized.
The input/output module marks the production form as a j Wherein j is more than or equal to 1 and is a positive integer, and on a single production form, j is only represented as the serial number of the production form, and the input/output module fills in the completed production form a j Transmitting to a preprocessing module; production form a j For the designer to produce form a based on the overall form of the selected parts of the machine parts in the order at the time of customer ordering j The content in the product form a comprises the name, model number and quantity of accessories j Each column of the order contract is a fitting, the order contract comprises the transaction amount of the mechanical fitting, and the order contract is matched with the production form.
The pretreatment module is used for producing the form a j Splitting a plurality of production forms a j Single row data expressed as the number of accessories in the same column number i are combined to form a number of accessories columnWherein i is equal to or greater than 1 and i is an ordered set of positive integers, i being represented as production form a j The number of columns in (1) in the number of fittings column->Wherein j is the number of items in the number of parts array, and the production form a j Serial number of (2) and number of parts are in series->Corresponding to the number of items, form a is produced 1 Production form a 2 Production form a 3 …, production form a 6 Number of parts formed by data in column 1 Column->Number of parts column->The second item of (2) is->Number of parts formed by data in column 2 column +.>Number of parts column->The third item in (2) is->The preprocessing module sorts the names of the accessories, and the number of the accessories is listed in the order of the names of the accessories>Sorting, wherein the pretreatment module sorts the number of the plurality of accessories after sorting into a number sequence +.>And the accessory name ordering is sent to the budget module.
The budget module receives the accessory name ordering and accessory number array transmitted by the preprocessing moduleThe budget module sends an instruction for calling the inventory quantity of the accessories to the storage module according to the received accessory name ordering;
the storage module is used for ordering and calling the inventory quantity of corresponding accessories according to the accessory names, and exporting the inventory quantity of the accessories into an inventory sequence K according to the accessory names n Wherein n is greater than or equal to 1 and is an ordered positive integer set, n is the number of inventory array items, elements in the set n are mapped with elements in the set i one by one, and the inventory array K is stored by the warehouse module n To the budget module.
The budget module receives the inventory number series K sent by the warehouse module n And for each number of parts, a plurality of parts are arrangedSumming, and storing the number K in the budget module n The number of parts per item minus the number of parts per item is in the column +. >Sum to obtain the stock allowance number series Z of all accessories n 。
The total number of the accessories is calculated by summing up the total number of the accessories to obtain the stock allowance, thereby calculating the consumption total amount of the accessories, and when the consumption total amount exceeds the limit amount (the limit amount is formulated by enterprises and is used for controlling the use amount of the accessories), the use amount of two or three accessories is the number of the accessoriesWhen the sum of (2) exceeds the limit number, the budget module is added to the number of accessories according to the number size>The number of parts is ordered by size, and after ordering, the number of parts is ordered by number column +.>The number of the primary items of each item is kept unchanged, the first two items and the second two items are selected from the sorting, and the budget module inquires the production form a where the accessory is located according to the number of the primary items of the first two items and the second two items j And for each production form a j The total cost involved is calculated while the budget module queries the production form a j By calculating the total cost and the amount of the deal, dividing the amount of the deal by the total cost multiplied by 100%, and if the calculated cost profit margin (the acquisition percentage is made by the enterprise) is lower than the cost profit margin made by the enterprise, making the production form a j Production form a for positioning fitting data to be adjusted j Screening out the data of the fittings needing to be adjustedForm a of (2) j After that, the budget module sends replacement information to the storage module, the replacement information comprises the names of the accessories, the types of the accessories and the quantity of the accessories to be replaced, the storage module receives the replacement information, queries the accessories of different types which can be used for reducing the production cost or the accessories of different types of stock backlog according to the replacement information, feeds back the replaceable information to the budget module, the replaceable information comprises the names of the accessories, the types of the accessories, the quantity of the accessories and the sales amount of the accessories which are used for replacement, the budget module replaces the replaced accessories according to the replaceable information, and the budget module replaces the types and the quantity of the accessories to realize effective control of the production cost.
The processing unit also comprises a purchasing module, wherein the warehousing module and the purchasing module mutually transmit data;
the budget module transmits data to the purchasing module in one way, and the purchasing module transmits data to the preprocessing module in one way;
the budget module sets the stock allowance number series Z of all accessories n The data in (a) is transmitted to the purchasing module or the input-output module.
A method of a data management system based on big data technology, the method comprising the steps of:
s1, inputting production data;
s2, processing production data;
s3, calculating production data and feeding back order information;
and S4, confirming feedback information, and updating data of the data management system.
The step S1 comprises the following specific steps:
s101, the input/output module marks the production form as a j Wherein j is greater than or equal to 1 and is a positive integer, and on a single production form, j is only represented as the serial number of the production form, and the completed production form a is filled in j Input into an input-output module; when a production form is input, the input is recorded as a production form a 1 When two production forms are input, the two production forms are recorded as a production form a 2 When the upper limit m production forms are input, the upper limit m production forms are recorded as a production form a m At least one production form is input into the input/output module, and the upper limit is m production forms.
Step S102, the input/output module receives the production form a j Transmitting to a preprocessing module, and carrying out the next step S2;
the step S2 comprises the following specific steps:
step S201, a preprocessing module processes the production form a j Splitting a plurality of production forms a j Single row data expressed as the number of accessories in the same column number i are combined to form a number of accessories columnWherein i is equal to or greater than 1 and i is an ordered set of positive integers, i being represented as production form a j Column number in (a) production form a j The number of fittings in the first column is +.>Production form a j The number of fittings in the second column is +.>Production form a j The number of fittings in the nth column is +.>The preprocessing module sorts the names of the accessories, and the number of the accessories is listed in the order of the names of the accessories>Sorting, wherein the pretreatment module sorts the number of the plurality of accessories after sorting into a number sequence +.>And the accessory name ordering is sent to the budget module, and the next step S3 is carried out.
The step S3 comprises the following specific steps:
step S301, the budget module receives the accessory name ordering transmitted by the preprocessing module in step S202Number of parts is in a seriesThe budget module sends an instruction for calling the inventory quantity of the accessories to the storage module according to the received accessory name ordering;
step S302, the budget module is used for counting and arranging the number of each accessoryCarrying out summation treatment, wherein the summation formula is +.>Wherein j is greater than or equal to 1 and is a positive integer, j is represented as a sequence number of the production form, i is greater than or equal to 1 and i is an ordered positive integer set, and i is represented as a production form a j Column number of (a);
step S303, the warehouse module retrieves the inventory quantity of the corresponding accessories according to the accessory name ordering, and derives the accessory inventory quantity to an inventory number sequence K according to the accessory name ordering n Wherein n is more than or equal to 1 and n is an ordered positive integer set, n is the number of inventory array items, elements in the set n are mapped with elements in the set i one by one, the value of each item is the inventory number of a fitting, and the inventory module stores the inventory array K n Transmitting to a budget module;
step S304, the budget module receives the inventory number sequence K sent by the warehouse module n Inventory number sequence K for budget module n Number of parts per item minus number of parts per itemSum to obtain the stock allowance number series Z of all accessories n The calculation formula is as follows: />
Step S305, budget module counts Z of inventory margins i Screening each item of stock allowance data, and comparing the screened data with the stock allowance value larger than zero with the minimum quantity of accessories formulated by enterprises when the accessories need to be purchased;
step S306, in step S305, when the screened data is lower than the minimum number of accessories formulated by enterprises and needed to be purchased, the budget module sends purchasing information to the purchasing module, and then step S308 is performed;
Step S307, in step S305, when the screened data is higher than the lowest number of accessories formulated by enterprises and needed to be purchased, the budget module does not send purchasing information to the purchasing module, and then step S308 is performed;
step S308, the budget module sends order information to the preprocessing module, the order information comprises names of final order placing accessories, the number of final order placing accessories and the order placing date, the preprocessing module sends the order information to the input and output module, the input and output module displays the order information, and the step S4 is entered, and the user is waited for confirmation.
The step S3 further comprises the following specific steps:
step S309, in step S305, the budget module sends replacement information to the warehouse module according to the names of the accessories with the inventory balance value smaller than zero, wherein the replacement information comprises the names of the accessories with the inventory balance value smaller than zero and the required quantity, the warehouse module inquires the accessories available for replacement according to the replacement information and sends replacement feedback information to the budget module, and the replacement feedback information comprises the names of the accessories used for replacement, the model numbers of the accessories, the quantity of the accessories and the sales amount of the accessories;
in step S3010, in step S309, the budget module receives the replacement feedback information sent by the warehouse module, and sends the replacement feedback information to the preprocessing module, and the preprocessing module sends the replacement feedback information to the input/output module, where the input/output module outputs and displays the replacement feedback information, and proceeds to step S4, and waits for confirmation of the user.
The step S3 further comprises the following specific steps:
step S3011, in step S304, the number of parts is set in a plurality of rowsWhen the sum of the numbers exceeds the limit number, the budget module counts the number of accessories according to the numerical valueQuantity sequence->The number of parts is ordered by size, and after ordering, the number of parts is ordered by number column +.>The number of the primary items of each item is kept unchanged, the first two items and the second two items are selected from the sorting, and the budget module inquires the production form a where the accessory is located according to the number of the primary items of the first two items and the second two items j And for each production form a j The total cost involved is calculated while the budget module queries the production form a j By calculating the total cost and the amount of the deal, dividing the amount of the deal by the total cost multiplied by 100%, and if the calculated cost profit margin (the acquisition percentage is made by the enterprise) is lower than the cost profit margin made by the enterprise, making the production form a j Production form a for positioning fitting data to be adjusted j Screening out a production form a needing to adjust accessory data j After that, the budget module sends replacement information to the warehouse module, wherein the replacement information comprises accessory names, accessory models and accessory numbers which need to be replaced;
Step S3012, according to the content of step S3011, the warehouse module receives replacement information, queries accessories of different types or accessories of different types of stock backlog, which can be used for reducing production cost, according to the replacement information, and feeds back the replacement information to the budget module, wherein the replacement information comprises accessory names, accessory types, accessory number and accessory sales amount used for replacement, the budget module replaces the replaced accessories according to the replacement information and generates a production form copy, the budget module sends the production form copy to the preprocessing module, the preprocessing module sends the production form copy to the input/output module, and the input/output module outputs and displays the production form copy, and enters step S4 to wait for confirmation of a user.
The step S4 comprises the following specific steps:
step S401, in step S308, the user signals the orderAfter verification and determination of information, the input/output module sends determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, the budget module sends inventory data update information to the warehousing module according to the determination information, the data update information comprises accessory names, accessory models and the number of the left accessories to be updated, the warehousing module updates the warehousing information according to the data update information sent by the budget module and feeds back data update success information to the budget module, the operation of the data management system is stopped after the budget module receives the update success information until a new production form a sent by the input/output module is received next time j ;
Step S402, in step S309, after the user checks and determines the replacement feedback information, the input/output module sends the determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module generates the form a according to the determination information j Is replaced, and returns to step S308.
Step S403, in step S3012, after the user checks and determines the copy of the production form, the input/output module sends determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module checks and determines the production form a according to the determination information j Is replaced, and returns to step S308.
Compared with the prior art, the invention has the following beneficial effects:
1. the input and output module transmits the production form to the preprocessing module for data preprocessing, the budget module invokes inventory data in the storage module according to the types and the quantity of accessories required in the production form and calculates, after the result is obtained, the budget module selectively informs the purchasing module to purchase or informs a designer, namely a user to confirm an order or inform the designer to confirm a replacement according to the calculation result, and the data in the production form is processed through the data management system, so that the reasonable replacement of the accessories in inventory is facilitated, the plan and the pertinence purchasing are facilitated, the production plan and the purchasing plan are effectively combined, and the effective control of the production cost is realized.
2. Number of parts is in a seriesWhen the sum of the number of the accessories exceeds the limit number, the budget module counts the number of the accessories according to the value sizeThe size sorting is carried out on a plurality of items in the model, the first two items and the second two items are selected from the sorting, and the budget module inquires the production form a where the accessories are positioned according to the original numbers of the first two items and the second two items j And for each production form a j The total cost involved is calculated while the budget module queries the production form a j By calculating the total cost and the amount of the deal, and screening out the production form a needing to adjust the fitting data by the cost profit margin j And then, the budget module sends replacement information to the storage module, the storage module receives the replacement information, queries accessories of different types which can be used for reducing production cost or accessories of different types of stock backlog according to the replacement information, feeds back the replacement information to the budget module, replaces the replaced accessories according to the replacement information, and replaces the types and the number of the accessories by the budget module, so that effective control of the production cost is realized.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the present invention provides the following technical solutions:
the data management system based on the big data technology comprises an input and output module and a processing unit, wherein the input and output module and the processing unit mutually transmit data, the input and output module transmits an order contract and a production form to the processing unit, the processing unit processes the data in the production form, and the processing unit transmits a processing result to the input and output module;
the processing unit comprises a preprocessing module, a budget module and a warehousing module, wherein data are mutually transmitted between the preprocessing module and the budget module, and data are mutually transmitted between the budget module and the warehousing module. After the customer places a bill, a designer selects proper accessories according to the requirements of the customer and the types of mechanical accessories in the order, and fills all the selected accessories into a production form, an input-output module transmits the production form into a preprocessing module for data preprocessing, a budget module invokes inventory data in a storage module according to the types and the numbers of the accessories required in the production form and calculates, after the result is obtained, the budget module selectively informs a purchasing module to purchase or informs the designer, namely a user to confirm the order or inform the designer to confirm a replacement according to the calculation result, and a data management system processes the data in the production form, so that the reasonable replacement of the accessories in the inventory is facilitated, the plan and the targeted purchase are facilitated, the production plan and the purchase plan are effectively combined, and the effective control of the production cost is realized.
The input/output module marks the production form as a j Wherein j is more than or equal to 1 and is a positive integer, and on a single production form, j is only represented as the serial number of the production form, and the input/output module fills out the completed productionYield form a j Transmitting to a preprocessing module; production form a j For the designer to select the total form of the accessories according to the mechanical accessories in the order when the customer places the order, the list of the same column number in a plurality of production forms is expressed as the same type of the same accessory, and the production form a j The content of the order contract comprises the name, model number and quantity of the accessories, the order contract comprises the transaction amount of the mechanical accessories, and the order contract is matched with the production form.
The pretreatment module is used for producing the form a j Splitting a plurality of production forms a j Single row data expressed as the number of accessories in the same column number i are combined to form a number of accessories columnWherein i is equal to or greater than 1 and i is an ordered set of positive integers, i being represented as production form a j The number of columns in (1) in the number of fittings column->Wherein j is the number of items in the number of parts array, and the production form a j Serial number of (2) and number of parts are in series->Corresponding to the number of items, form a is produced 1 Production form a 2 Production form a 3 …, production form a 6 Number of parts formed by data in column 1 of the series +. >Number of parts column->The second item of (2) is->Number of parts formed by data in column 2 column +.>Number of parts column->The third item in (2) is->The preprocessing module sorts the names of the accessories, and the number of the accessories is listed in the order of the names of the accessories>Sorting, wherein the pretreatment module sorts the number of the plurality of accessories after sorting into a number sequence +.>And the accessory name ordering is sent to the budget module.
The budget module receives the accessory name ordering and accessory number array transmitted by the preprocessing moduleThe budget module sends an instruction for calling the inventory quantity of the accessories to the storage module according to the received accessory name ordering;
the storage module is used for ordering and calling the inventory quantity of corresponding accessories according to the accessory names, and exporting the inventory quantity of the accessories into an inventory sequence K according to the accessory names n Wherein n is greater than or equal to 1 and is an ordered positive integer set, n is the number of inventory array items, elements in the set n are mapped with elements in the set i one by one, and the inventory array K is stored by the warehouse module n To the budget module.
The budget module receives the inventory number series K sent by the warehouse module n And for each number of parts, a plurality of parts are arrangedSumming, and storing the number K in the budget module n The number of parts per item minus the number of parts per item is in the column +. >Sum to obtain the stock allowance number series Z of all accessories n 。
Summing the total number of each fitting to obtain the stock allowance, thereby calculatingTotal consumption of the parts, when two or three parts are used, i.e. the number of parts is in the order of the number of parts, for parts whose total consumption exceeds the limit number (the limit number is set by the enterprise for controlling the amount of use of the parts)When the sum of (2) exceeds the limit number, the budget module is added to the number of accessories according to the number size>The number of parts is ordered by size, and after ordering, the number of parts is ordered by number column +.>The number of the primary items of each item is kept unchanged, the first two items and the second two items are selected from the sorting, and the budget module inquires the production form a where the accessory is located according to the number of the primary items of the first two items and the second two items j And for each production form a j The total cost involved is calculated while the budget module queries the production form a j By calculating the total cost and the amount of the deal, dividing the amount of the deal by the total cost multiplied by 100%, and if the calculated cost profit margin (the acquisition percentage is made by the enterprise) is lower than the cost profit margin made by the enterprise, making the production form a j Production form a for positioning fitting data to be adjusted j Screening out a production form a needing to adjust accessory data j After that, the budget module sends replacement information to the storage module, the replacement information comprises the names of the accessories, the types of the accessories and the quantity of the accessories to be replaced, the storage module receives the replacement information, queries the accessories of different types which can be used for reducing the production cost or the accessories of different types of stock backlog according to the replacement information, feeds back the replaceable information to the budget module, the replaceable information comprises the names of the accessories, the types of the accessories, the quantity of the accessories and the sales amount of the accessories which are used for replacement, the budget module replaces the replaced accessories according to the replaceable information, and the budget module replaces the types and the quantity of the accessories to realize effective control of the production cost.
The processing unit also comprises a purchasing module, wherein the warehousing module and the purchasing module mutually transmit data;
the budget module transmits data to the purchasing module in one way, and the purchasing module transmits data to the preprocessing module in one way;
the budget module sets the stock allowance number series Z of all accessories n The data in (a) is transmitted to the purchasing module or the input-output module.
Referring to fig. 2-3, the present invention provides the following technical solutions:
a method of a data management system based on big data technology, the method comprising the steps of:
s1, inputting production data;
s2, processing production data;
s3, calculating production data and feeding back order information;
and S4, confirming feedback information, and updating data of the data management system.
The step S1 comprises the following specific steps:
s101, the input/output module marks the production form as a j Wherein j is greater than or equal to 1 and is a positive integer, and on a single production form, j is only represented as the serial number of the production form, and the completed production form a is filled in j Input into an input-output module; when a production form is input, the input is recorded as a production form a 1 When two production forms are input, the two production forms are recorded as a production form a 2 When the upper limit m production forms are input, the upper limit m production forms are recorded as a production form a m At least one production form is input into the input/output module, and the upper limit is m production forms.
Step S102, the input/output module receives the production form a j Transmitting to a preprocessing module, and carrying out the next step S2;
the step S2 comprises the following specific steps:
step S201, a preprocessing module processes the production form a j Splitting a plurality of production forms a j In the same column number iCombining single line data of the number of accessories to form a number of accessory columnsWherein i is equal to or greater than 1 and i is an ordered set of positive integers, i being represented as production form a j Column number in (a) production form a j The number of fittings in the first column is +.>Production form a j The number of fittings in the second column is +.>Production form a j The number of fittings in the nth column is +.>The preprocessing module sorts the names of the accessories, and the number of the accessories is listed in the order of the names of the accessories>Sorting, wherein the pretreatment module sorts the number of the plurality of accessories after sorting into a number sequence +.>And the accessory name ordering is sent to the budget module, and the next step S3 is carried out.
The step S3 comprises the following specific steps:
step S301, the budget module receives the accessory name ordering and accessory number array transmitted by the preprocessing module in step S202The budget module sends an instruction for calling the inventory quantity of the accessories to the storage module according to the received accessory name ordering;
step S302, the budget module is used for counting and arranging the number of each accessoryCarrying out summation treatment, wherein the summation formula is +.>Wherein j is greater than or equal to 1 and is a positive integer, j is represented as a sequence number of the production form, i is greater than or equal to 1 and i is an ordered positive integer set, and i is represented as a production form a j Column number of (a);
step S303, the warehouse module retrieves the inventory quantity of the corresponding accessories according to the accessory name ordering, and derives the accessory inventory quantity to an inventory number sequence K according to the accessory name ordering n Wherein n is more than or equal to 1 and n is an ordered positive integer set, n is the number of inventory array items, elements in the set n are mapped with elements in the set i one by one, the value of each item is the inventory number of a fitting, and the inventory module stores the inventory array K n Transmitting to a budget module;
step S304, the budget module receives the inventory number sequence K sent by the warehouse module n Inventory number sequence K for budget module n Number of parts per item minus number of parts per itemSum to obtain the stock allowance number series Z of all accessories n The calculation formula is as follows: />
Step S305, budget module counts Z of inventory margins i Screening each item of stock allowance data, and comparing the screened data with the stock allowance value larger than zero with the minimum quantity of accessories formulated by enterprises when the accessories need to be purchased;
step S306, in step S305, when the screened data is lower than the minimum number of accessories formulated by enterprises and needed to be purchased, the budget module sends purchasing information to the purchasing module, and then step S308 is performed;
Step S307, in step S305, when the screened data is higher than the lowest number of accessories formulated by enterprises and needed to be purchased, the budget module does not send purchasing information to the purchasing module, and then step S308 is performed;
step S308, the budget module sends order information to the preprocessing module, the order information comprises names of final order placing accessories, the number of final order placing accessories and the order placing date, the preprocessing module sends the order information to the input and output module, the input and output module displays the order information, and the step S4 is entered, and the user is waited for confirmation.
The step S3 further comprises the following specific steps:
step S309, in step S305, the budget module sends replacement information to the warehouse module according to the names of the accessories with the inventory balance value smaller than zero, wherein the replacement information comprises the names of the accessories with the inventory balance value smaller than zero and the required quantity, the warehouse module inquires the accessories available for replacement according to the replacement information and sends replacement feedback information to the budget module, and the replacement feedback information comprises the names of the accessories used for replacement, the model numbers of the accessories, the quantity of the accessories and the sales amount of the accessories;
in step S3010, in step S309, the budget module receives the replacement feedback information sent by the warehouse module, and sends the replacement feedback information to the preprocessing module, and the preprocessing module sends the replacement feedback information to the input/output module, where the input/output module outputs and displays the replacement feedback information, and proceeds to step S4, and waits for confirmation of the user.
The step S3 further comprises the following specific steps:
step S3011, in step S304, the number of parts is set in a plurality of rowsWhen the sum of (2) exceeds the limit number, the budget module is added to the number of accessories according to the number size>The number of parts is ordered by size, and after ordering, the number of parts is ordered by number column +.>The number of the primary items of each item is kept unchanged, the first two items and the second two items are selected from the sorting, and the budget module inquires the production form a where the accessory is located according to the number of the primary items of the first two items and the second two items j And for each production form a j Related toThe total cost is calculated and the budget module inquires the production form a j By calculating the total cost and the amount of the deal, dividing the amount of the deal by the total cost multiplied by 100%, and if the calculated cost profit margin (the acquisition percentage is made by the enterprise) is lower than the cost profit margin made by the enterprise, making the production form a j Production form a for positioning fitting data to be adjusted j Screening out a production form a needing to adjust accessory data j After that, the budget module sends replacement information to the warehouse module, wherein the replacement information comprises accessory names, accessory models and accessory numbers which need to be replaced;
Step S3012, according to the content of step S3011, the warehouse module receives replacement information, queries accessories of different types or accessories of different types of stock backlog, which can be used for reducing production cost, according to the replacement information, and feeds back the replacement information to the budget module, wherein the replacement information comprises accessory names, accessory types, accessory number and accessory sales amount used for replacement, the budget module replaces the replaced accessories according to the replacement information and generates a production form copy, the budget module sends the production form copy to the preprocessing module, the preprocessing module sends the production form copy to the input/output module, and the input/output module outputs and displays the production form copy, and enters step S4 to wait for confirmation of a user.
The step S4 comprises the following specific steps:
step S401, in step S308, after checking and determining the order information, the user sends determining information to the preprocessing module by the input/output module, the preprocessing module sends determining information to the budget module, the budget module sends inventory data updating information to the warehousing module according to the determining information, the data updating information comprises accessory names, accessory models and the number of the left inventory of accessories to be updated, the warehousing module updates the warehousing information according to the data updating information sent by the budget module, and feeds back data updating success information to the budget module, and the budget module stops the operation of the data management system after receiving the updating success information until the next time of receiving the input/output module New production form a is fed j ;
Step S402, in step S309, after the user checks and determines the replacement feedback information, the input/output module sends the determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module generates the form a according to the determination information j Is replaced, and returns to step S308.
Step S403, in step S3012, after checking and determining the copy of the production form by the user, i.e. the designer, the input/output module sends determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module checks the production form a according to the determination information j Is replaced, and returns to step S308.
In the case of example 1,
in this embodiment, six production forms are taken as an example, and the six production forms are respectively the production form a 1 Production form a 2 Production form a 3 Production form a 4 Production form a 5 Production form a 6 Each production form a j Only 3 columns are filled in;
the minimum number of accessories formulated by enterprises is 50 when the accessories need to be purchased, the limit number is 70, and the cost profit margin is 30%.
After placing an order with a customer, the designer places six production forms a j Wherein 6 is more than or equal to j is more than or equal to 1 and is a positive integer, and the corresponding order contract is input into an input-output module, and the input-output module receives the production form a j To the preprocessing module.
The pretreatment module is used for producing the form a j Splitting, and producing form a in three parts j The single column data in the same column number i are combined to form a number of fittings arrayIn each production form a j Comprises three columns as an example, 3 is more than or equal to i is more than or equal to 1, i is an ordered positive integer set, and i is expressed as a production form a j Column number in (a) production form a j The first row ofThe number of pieces is in the number series Production form a j The number of accessories in the second row is as follows Production form a j The number of the accessories in the 3 rd column is as followsThe preprocessing module sorts the names of the accessories, and the number of the accessories is listed in the order of the names of the accessories>Sequencing, wherein the pretreatment module sequences the number of the three sequenced accessories>And the accessory name ordering is sent to the budget module.
The budget module receives the accessory name ordering and accessory number array transmitted by the preprocessing moduleThe budget module sends an instruction for calling the inventory quantity of the accessories to the storage module according to the received accessory name ordering;
the budget module counts the number of each accessoryCarrying out summation treatment, wherein the summation formula is +. >
The storage module retrieves the inventory quantity of the corresponding accessories according to the accessory name sequencing, and derives the accessory inventory quantity to be an inventory number sequence K according to the accessory name sequencing n Wherein 3 is more than or equal ton is greater than or equal to 1 and is an ordered positive integer set, n is expressed as the number of inventory array items, elements in set n are mapped with elements in set i one by one, and inventory array K n The numerical value of each item is the stock quantity of a fitting, and the stock quantity K is listed by the stock module n Transmitting to a budget module;
the budget module receives the inventory number series K sent by the warehouse module n Inventory number sequence K for budget module n Number of parts per item minus number of parts per itemSum to obtain the stock allowance number series Z of all accessories n The calculation formula is as follows: wherein (1)>
Budget Module for inventory margin array Z i ={Z 1 ,Z 2 ,Z 3 Screening each item of stock allowance data, and comparing the screened data with the stock allowance value larger than zero with the minimum quantity 50 of accessories formulated by enterprises when the accessories need to be purchased;
if Z is screened out 1 Or Z is 2 Or Z is 3 Or Z is 1 、Z 2 、Z 3 When the numerical value of the accessory is lower than the minimum number 50 when the accessory set by the enterprise needs to be purchased, the budget module sends purchasing information to the purchasing module, and then the budget module sends order information to the preprocessing module, wherein the order information comprises the name of the accessory to be finally placed, the number of the accessory to be finally placed and the date of placing the order;
If Z is screened out 1 Or Z is 2 Or Z is 3 Or Z is 1 、Z 2 、Z 3 When the value of the number is higher than the minimum number of accessories formulated by enterprises and needing to be purchased, the budget module does not send purchasing information to the purchasing module, and thenThe budget module sends order information to the preprocessing module, wherein the order information comprises names of final ordering accessories, the number of final ordering accessories and ordering dates;
the preprocessing module sends the order information to the input and output module, and the input and output module displays the order information and waits for confirmation of a user.
When the stock allowance value is smaller than zero, the number of the warehouses in the stock cannot meet the production use, the budget module sends replacement information to the warehouse module according to the names of the accessories with the stock allowance value smaller than zero, the replacement information comprises the accessory names and the required number with the stock allowance value smaller than zero, the warehouse module inquires the accessories available for replacement according to the replacement information and sends replacement feedback information to the budget module, and the replacement feedback information comprises the accessory names, the accessory types, the accessory number and the accessory sales amount for replacement;
the budget module receives the replacement feedback information sent by the storage module, sends the replacement feedback information to the preprocessing module, and then sends the replacement feedback information to the input and output module which outputs and displays the replacement feedback information to wait for confirmation of a user;
After the user checks and determines the replacement feedback information, the input/output module sends the determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module produces the form a according to the determination information j The data in the order form is replaced, and then the budget module sends order information to the preprocessing module again, wherein the order information comprises names of final order placing accessories, the number of final order placing accessories and order placing dates;
the preprocessing module sends the order information to the input and output module again, and the input and output module displays the order information again and waits for confirmation of a user.
After checking and determining order information by a user, the input/output module sends determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, and the budget module sends inventory data updating information to the warehousing module according to the determination informationThe data updating information comprises the accessory name, the accessory model number and the remaining inventory number of accessories to be updated, the warehousing module updates the warehousing information according to the data updating information sent by the budget module, feeds back the data updating success information to the budget module, and stops the operation of the data management system after the budget module receives the updating success information until a new production form a sent by the input/output module is received next time j 。
With two or three parts in number seriesWhen the sum of (2) exceeds the limit number 70, the budget module counts the number of the parts according to the number value>The number of the accessories is ordered according to the size of a plurality of items in the table, and the number of the accessories is ordered according to the number of the accessories Ordering (S)/(S)>After sorting, the number of accessories column +.>The number of entries of each item is kept unchanged and the first two items are selected from the ranking>And the second twoThe budget module inquires a production form a where the accessory is located according to the primary numbers of the first two items and the second two items 1 、a 3 、a 4 、a 6 And for each production form a j The total cost involved is calculated while the budget module queries the production form a j By sum of the total cost and the amount of the deal in the order contractThe sum is calculated, the sum of the transaction is subtracted by the total cost and divided by the total cost multiplied by 100 percent, and if the calculated cost profit margin is 30 percent lower than the cost profit margin established by enterprises, the production form a is produced j Production form a for positioning fitting data to be adjusted j Screening out a production form a needing to adjust accessory data j After that, the budget module sends replacement information to the warehouse module, wherein the replacement information comprises accessory names, accessory models and accessory numbers which need to be replaced;
the storage module receives replacement information, inquires accessories of different types which can be used for reducing production cost or accessories of different types of stock backlog according to the replacement information, and feeds back the replaceable information to the budget module, wherein the replaceable information comprises accessory names, accessory types, accessory quantity and accessory sales amount for replacement, the budget module replaces the replaced accessories according to the replaceable information and generates a production form copy, the production form copy is sent to the preprocessing module, the preprocessing module sends the production form copy to the input/output module, and the input/output module outputs and displays the production form copy to wait for confirmation of a user;
After checking and determining the copies of the production forms by a user, checking and determining the copies of the production forms by a designer, transmitting determination information to a preprocessing module by an input/output module, transmitting the determination information to a budget module by the preprocessing module, replacing data in the production forms aj by the budget module according to the determination information, transmitting order information to the preprocessing module by the budget module, wherein the order information comprises names of final order placing accessories, the number of final order placing accessories and the order placing date, transmitting the order information to the input/output module by the preprocessing module, displaying the order information by the input/output module, and waiting for confirmation of a user;
after checking and determining order information by a user, the input/output module sends determination information to the preprocessing module, the preprocessing module sends the determination information to the budget module, the budget module sends inventory data updating information to the warehousing module according to the determination information, the data updating information comprises accessory names, accessory models and the number of the left accessories to be updated, and the warehousing module is used for acquiring the information according to the budget moduleThe transmitted data updating information carries out storage information updating, and feeds back data updating success information to the budget module, and the budget module stops the operation of the data management system after receiving the updating success information until receiving a new production form a transmitted by the input/output module next time j 。
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus 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 apparatus.
Finally, it should be noted that: the foregoing description is only a preferred embodiment of the present invention, and the present invention is not limited thereto, but it is to be understood that modifications and equivalents of some of the technical features described in the foregoing embodiments may be made by those skilled in the art, although the present invention has been described in detail with reference to the foregoing embodiments. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.