Purchase order management method and device based on block chain

By using blockchain technology to store the supplier's product information and generate smart contracts in the enterprise procurement system, the problems of information asymmetry and low data security caused by manual operations in traditional procurement systems are solved, and higher data security and transparency are achieved.

CN119722223APending Publication Date: 2025-03-28AISINO CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411774999.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-04
Publication Date
2025-03-28

AI Technical Summary

Technical Problem

Traditional enterprise procurement systems require manual data entry, inspection and distribution, which are prone to information asymmetry and order amount errors, resulting in low data security.

Method used

Blockchain technology is used to store the product information of the supplier in the blockchain, and during the procurement process, use the product information in the blockchain to match the procurement requirements, select the product of the supplier, and generate smart contracts in the blockchain to execute smart contracts.

Benefits of technology

Through blockchain technology, data security in the procurement process is improved, information asymmetry and order amount errors are avoided, and data transparency and immutability are enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119722223A_ABST
    Figure CN119722223A_ABST
Patent Text Reader

Abstract

The invention provides a purchase order management method and device based on a block chain, and relates to the technical field of block chains, and the method comprises the steps: determining at least one supply product corresponding to each to-be-purchased order; if the to-be-purchased product in the to-be-purchased order is purchased, selecting one supply product from the at least one supply product corresponding to the to-be-purchased order according to the historical purchasing value of the to-be-purchased order, and taking the selected supply product as a target supply product of the to-be-purchased order; and when the total value in the purchase list is not less than the sum of the quoted prices of the target supply products of the plurality of orders to be purchased in the purchase list, generating and executing an intelligent contract between each order to be purchased in the purchase list and a product supplier of the target supply product of the order to be purchased in the block chain. According to the embodiment of the invention, the product information of the supplier is stored in the block chain, and the purchase contract is stored in the block chain in a smart contract manner, so that the data security of the purchase process is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of blockchain technology, and in particular to a purchase order management method and device based on blockchain. Background Art

[0002] The purchase order system can be used by enterprises to publish purchase information, negotiate prices with suppliers, evaluate supplier performance, analyze purchase strategies, obtain partners, understand market information, track order shipments, etc. Traditional enterprise procurement systems require manual data entry, manual inspection, and manual distribution, which can lead to errors in every link, such as information asymmetry and errors in order amounts. Summary of the invention

[0003] The present invention provides a purchase order management method and device based on blockchain, which utilizes blockchain technology to store the supplier's products, and uses the product information in the blockchain to match the purchased products during the procurement process, selects the supplier's products, generates a smart contract in the blockchain, and executes the smart contract, so that information asymmetry and order amount errors will not occur, thereby improving the data security of the procurement process.

[0004] In a first aspect, an embodiment of the present invention provides a purchase order management method based on blockchain, comprising:

[0005] According to the purchase requirements of multiple pending purchase orders in the purchase list and the product information of multiple product suppliers stored in the blockchain, at least one supply product corresponding to each pending purchase order is determined; wherein each block in the blockchain stores one product information of a product supplier; and at least one supply product corresponding to a pending purchase order is a supply product of a product supplier whose product information stored in the blockchain meets the purchase requirements of the pending purchase order;

[0006] For each order to be purchased, if the product to be purchased in the order to be purchased has been purchased, the purchase value of the order to be purchased is determined according to the historical purchase value of the order to be purchased; according to the matching of the purchase value of the order to be purchased and the quotation of at least one supply product corresponding to the order to be purchased, a supply product is selected from the at least one supply product corresponding to the order to be purchased, and the selected supply product is used as the target supply product of the order to be purchased;

[0007] When the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased is generated in the blockchain, and the smart contract corresponding to each order to be purchased is executed.

[0008] The above method uses blockchain technology to store the supplier's product information, and uses the product information in the blockchain to match the purchased products during the procurement process, selects the supplier's products, generates a smart contract in the blockchain, and executes the smart contract. Since the supplier's product information is stored in the blockchain, the procurement contract is stored in the blockchain in the form of a smart contract, so there will be no information asymmetry and order amount errors, thereby improving the data security of the procurement process.

[0009] In a possible implementation, the names and numbers of the pending purchase orders in the purchase list are generated in the following manner:

[0010] Display the purchasing user login interface;

[0011] Responding to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, displaying the filling interface of the purchase list;

[0012] The purchase list is generated in response to the purchase requirements of each pending purchase order input by the purchase user.

[0013] The above method can log in through the login page and perform user verification. After the verification is passed, the purchase list can be written. This limits the user's authority and improves the security of the data.

[0014] In a possible implementation, according to the purchase requirements of multiple pending purchase orders in the purchase list and the product information of multiple product suppliers stored in the blockchain, determining at least one supply product corresponding to each pending purchase order includes:

[0015] For any order to be purchased in the purchase list, if the product name provided in the purchase demand of the order to be purchased is the same as the product name in the product information of the product supplier, and the number of products provided in the purchase demand of the order to be purchased is not greater than the number of products in the product information of the product supplier, then the product information of the product supplier is determined to be the supply product corresponding to the order to be purchased.

[0016] The above method determines whether the product information matches the requirements of the purchase order by comparing the product name and the number of products, thereby avoiding the problem that the selected product information cannot meet the purchase requirements.

[0017] In a possible implementation, determining the purchase value of the order to be purchased according to the historical purchase value of the order to be purchased includes:

[0018] Inputting the historical purchase value of the pending purchase order into the prediction network model, and having the prediction network model output the purchase value of the pending purchase order; or

[0019] Determine the difference between two adjacent historical purchase values ​​of the pending purchase orders in chronological order;

[0020] Determine the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased;

[0021] The purchase value of the order to be purchased is determined according to the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased, and the historical purchase value of the order to be purchased at the last purchase.

[0022] The above method can estimate the purchase value of the order to be purchased by the difference between the adjacent historical purchase values ​​of the order to be purchased, so as to better match the purchase value with the quotation in the product information, thereby improving the adaptability of the matching.

[0023] In a possible implementation, determining the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased comprises:

[0024] Determine the growth trend of the purchase value of the order to be purchased and the growth value of the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased;

[0025] If the growth trend of the purchase value of the order to be purchased is upward growth, the sum of the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the product; wherein the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is the difference between the historical purchase value at the last purchase of the order to be purchased and the historical purchase values ​​at the last two purchases of the order to be purchased;

[0026] If the growth trend of the purchase value of the order to be purchased is downward growth, the difference between the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased shall be taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the order to be purchased.

[0027] The above method can determine the growth trend based on the difference between historical purchase values, and thus predict the purchase value according to the growth trend, thereby improving the prediction accuracy.

[0028] In one possible implementation, the method further includes:

[0029] If the product to be purchased in the order to be purchased has not been purchased, determining the selection value of each supply product corresponding to the order to be purchased according to the sales volume, score, and quotation of each supply product corresponding to the order to be purchased;

[0030] The supply product corresponding to the order to be purchased that meets the preset requirements and the selected value is used as the target supply product of the order to be purchased.

[0031] The above method can determine the selection value of the supplier's product based on the sales volume, rating, and quotation of the product when the product has not been purchased, and select the supply product based on the selection data, thereby selecting the supplier more accurately.

[0032] In a second aspect, an embodiment of the present invention provides a purchase order management device based on blockchain, comprising:

[0033] A determination module, configured to determine at least one supply product corresponding to each order to be purchased based on the purchase requirements of multiple orders to be purchased in the purchase list and the product information of multiple product suppliers stored in the blockchain; wherein each block in the blockchain stores one product information of a product supplier; and at least one supply product corresponding to an order to be purchased is a supply product of a product supplier whose product information stored in the blockchain meets the purchase requirements of the order to be purchased;

[0034] A selection module is used for, for each order to be purchased, if the product to be purchased in the order to be purchased has been purchased, determining the purchase value of the order to be purchased according to the historical purchase value of the order to be purchased; selecting a supply product from the at least one supply product corresponding to the order to be purchased according to the matching of the purchase value of the order to be purchased and the quotation of at least one supply product corresponding to the order to be purchased, and using the selected supply product as the target supply product of the order to be purchased;

[0035] The execution module is used to generate a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased in the blockchain when the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, and execute the smart contract corresponding to each order to be purchased.

[0036] In a possible implementation, the selection module is further used to:

[0037] Display the purchasing user login interface;

[0038] Responding to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, displaying the filling interface of the purchase list;

[0039] The purchase list is generated in response to the purchase requirements of each pending purchase order input by the purchase user.

[0040] In a third aspect, an embodiment of the present invention provides an electronic device, including:

[0041] processor;

[0042] A processor, configured to execute the computer program or instructions in the memory so that the blockchain-based purchase order management method as described in any one of the first aspects is executed.

[0043] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium. When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the blockchain-based purchase order management method as described in any one of the first aspects.

[0044] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising: a computer program code, which, when executed on a computer, enables the computer to execute the blockchain-based purchase order management method as described in any one of the first aspects.

[0045] In addition, the technical effects brought about by any implementation method in the second to fifth aspects can refer to the technical effects brought about by different implementation methods in the first aspect, and will not be repeated here.

[0046] It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 A schematic diagram of a blockchain provided by an embodiment of the present invention;

[0048] Figure 2 A flowchart of a blockchain-based purchase order management method provided in an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of generating a purchase list provided by an embodiment of the present invention;

[0050] Figure 4A flowchart of a method for generating current purchase value based on historical purchase value provided by an embodiment of the present invention;

[0051] Figure 5 A schematic diagram of the structure of a blockchain-based purchase order management device provided by an embodiment of the present invention;

[0052] Figure 6 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all 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.

[0054] In the description of the embodiments of the present application, unless otherwise specified, in the description of the embodiments of the present application, "plurality" refers to two or more than two.

[0055] In the following, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as suggesting or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features.

[0056] Glossary:

[0057] Blockchain: A decentralized distributed ledger that is tamper-proof, secure and reliable. It combines distributed storage, peer-to-peer transmission, consensus mechanism, cryptography and other technologies to record transactions and information through a growing chain of data blocks, also known as blocks, to ensure data security and transparency.

[0058] Smart Contract: A computer protocol designed to disseminate, verify or execute contracts in an information-based manner. It allows for trusted transactions without a third party, which are traceable and irreversible. It is based on blockchain technology and is decentralized, transparent and tamper-proof.

[0059] Quotation: refers to the specific value proposed by the purchaser or supplier for each product in a commercial transaction.

[0060] Existing procurement requires manual data entry, manual inspection, and manual distribution processes, which have the possibility of errors in every link, such as information asymmetry, incorrect order amount, etc.

[0061] Based on this, an embodiment of the present invention provides a technical solution based on blockchain, which uses blockchain technology to store the supplier's product information in blocks in the blockchain, and uses the product information in the blockchain to match the procurement requirements during the procurement process to select the supplier's products, and generates a smart contract between the supplier's products that meet the procurement requirements and the purchased products in the blockchain, and executes the smart contract. In this way, there will be no information asymmetry or errors in the order amount, thereby improving the data security of the procurement process.

[0062] The present invention is described in detail below with reference to the accompanying drawings:

[0063] The product information of different suppliers is stored in the blockchain in the form of blocks. Each block in the blockchain stores a product information of a product supplier. Figure 1 As shown, an embodiment of the present invention provides a schematic diagram of a blockchain, wherein the blockchain includes 12 blocks, and the 12 blocks respectively store multiple product information of multiple suppliers. For example, multiple suppliers include supplier A, supplier B, and supplier C, and supplier A includes products aa, ab, ac, and ad; supplier B includes products ba, bb, and bc; and supplier C includes products ca, cb, cc, cd, and ce. Block 1 stores product aa of supplier A, block 2 stores product ab of supplier A, block 3 stores product ac of supplier A, block 4 stores product ad of supplier A, block 5 stores product ba of supplier B, block 6 stores product bb of supplier B, block 7 stores product bc of supplier B, block 8 stores product ca of supplier C, block 9 stores product cb of supplier C, block 10 stores product cc of supplier C, block 11 stores product cd of supplier C, and block 12 stores product ce of supplier C.

[0064] Combination Figure 2 As shown, an embodiment of the present invention provides a purchase order management method based on blockchain, including:

[0065] S200: Determine at least one supply product corresponding to each order to be purchased based on the purchase requirements of multiple orders to be purchased in the purchase list and the product information of multiple product suppliers stored in the blockchain.

[0066] Among them, at least one supply product corresponding to a pending purchase order is a supply product of a product supplier whose product information stored in the blockchain meets the purchase needs of the pending purchase order.

[0067] For example, the product information stored in the blockchain includes the number of products, product names, and product quotations. The purchase requirements of the pending purchase order include product names, the number of products required, and so on.

[0068] S201: For each order to be purchased, if the product to be purchased in the order to be purchased has been purchased, determine the purchase value of the order to be purchased based on the historical purchase value of the order to be purchased; based on the matching of the purchase value of the order to be purchased and the quotation of at least one supply product corresponding to the order to be purchased, select a supply product from at least one supply product corresponding to the order to be purchased, and use the selected supply product as the target supply product of the order to be purchased.

[0069] S202: When the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased is generated in the blockchain, and the smart contract corresponding to each order to be purchased is executed.

[0070] Exemplary, combined Figure 1 As shown, taking the case that there is only one purchase order 10 in the purchase list, the product information in the 12 blocks is matched one by one with the purchase requirements of the purchase order 10. For example, the information of product aa of supplier A in block 1 and the information of product ba of supplier B in block 5 both meet the purchase requirements of the purchase order 10. Then the supply products corresponding to the purchase order 10 are product aa of supplier A and product ba of supplier B.

[0071] According to the historical purchase value of the order 10 to be purchased, the purchase value of the order 10 to be purchased is determined, and the purchase value of the order 10 to be purchased is matched with the quotation of the product aa of supplier A, and the purchase value of the order 10 to be purchased is matched with the quotation of the product ba of supplier B. According to these two matching situations, the product ba of supplier B is selected, and the product ba of supplier B is the target supply of the order 10 to be purchased.

[0072] When the total value of the pending purchase order 10 is not less than the quotation of the target supply of the pending purchase order 10, Figure 1 A smart contract regarding product ba between the purchase order 10 and supplier B is generated in the blockchain in , and the smart contract regarding product ba between the purchase order 10 and supplier B is executed.

[0073] Of course, when the purchase list includes multiple pending purchase orders, the target supply of each pending purchase order is determined, and a smart contract about the target supply is generated between each pending purchase order and the product supplier corresponding to the target supply of each pending purchase order. That is, there are as many smart contracts as there are pending purchase orders.

[0074] Among them, after the smart contract is executed, the blockchain records, tracks and controls the execution of the smart contract.

[0075] Barrier-free information communication with information systems in other links of the supply chain. For example, the account information generated by the execution of smart contracts can interact with the account system to provide account-related information to the account system.

[0076] Before executing the smart contract, you can also call the unified cryptographic service system to sign with the enterprise certificate private key; write the order and signature information into the local blockchain node; and synchronize the blockchain local node information to other nodes.

[0077] In this way, the purchase order management method based on blockchain provided by the present invention solves the problems of easy manual errors and low procurement efficiency in the traditional procurement process, connects business data such as upstream and downstream information flows of the supply chain through blockchain, realizes real-time sharing of purchase order information, and automatically executes purchase orders through smart contract technology.

[0078] In some embodiments, the names and numbers of the pending purchase orders in the purchase list are generated in the following manner:

[0079] Display the purchasing user login interface;

[0080] Respond to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, display the purchase list filling interface;

[0081] Generate a purchase list in response to the purchase requirements of each pending purchase order entered by the purchasing user.

[0082] In detail, Figure 3 For example, when a user opens a purchasing webpage or purchasing application, the purchasing user login interface is displayed. The interface displays the user name and password. After the user fills in the user name and password, click the "OK" button. After the user name and password entered by the purchasing user are confirmed to be the same as the pre-stored user name and password, the verification is passed, and the purchase list filling interface is displayed. After clicking "+" in the filling area in the filling interface, the purchase demand filling interface of the pending purchase order is displayed. The filling interface includes the number of products to be purchased and the product name. Of course, if there are other descriptions, they can also be filled in the custom area of ​​other descriptions. And so on, fill in multiple pending purchase orders, and after the user clicks submit, a purchase list is generated.

[0083] In some embodiments, the specific implementation of step 200 includes:

[0084] For any pending purchase order in the purchase list, if the product name provided in the purchase demand of the pending purchase order is the same as the product name in the product information of the product supplier, and the number of products provided in the purchase demand of the pending purchase order is not greater than the number of products in the product information of the product supplier, then the product information of the product supplier is determined to be the supply product corresponding to the pending purchase order.

[0085] Exemplary, combined Figure 1 As shown, taking the purchase order 10 to be purchased as an example, the product names of the product information in the 12 blocks are compared with the product names provided by the purchase requirements of the purchase order 10 to be purchased. If there are products with the same name, for example, block 1, block 5, block 6, block 11, and block 12, it is determined whether the number of products in the product information of block 1 is not less than the number of products provided by the purchase requirements of the purchase order 10 to be purchased. If so, it is determined that the product information of block 1 meets the purchase requirements of the purchase order 10 to be purchased, and the product of block 1 is the supply corresponding to the purchase order 10 to be purchased. If not, the product of block 1 is not the supply corresponding to the purchase order 10 to be purchased, and so on, and blocks 5, 6, 11, and 12 are determined respectively.

[0086] Optionally, when judging whether the product name provided by the purchase demand of the purchase order is the same as the product name in the product information of the product supplier, a fuzzy judgment method can be used, that is, a semantic analysis model can be used to analyze whether the meanings of the two names are the same. Alternatively, a text judgment can be performed directly, and if the text is exactly the same, the names are the same.

[0087] In some embodiments, according to the historical purchase value of the order to be purchased, the purchase value of the order to be purchased may be determined by:

[0088] The most recent historical purchase value of the pending purchase order is directly used as the purchase value of the pending purchase order; or

[0089] The average value of the historical purchase values ​​of the pending purchase orders is used as the purchase value of the pending purchase orders; or

[0090] Input the historical purchase value of the pending purchase order into the prediction network model, and the prediction network model outputs the purchase value of the pending purchase order; or

[0091] Combination Figure 4 As shown, including:

[0092] S400: Determine the difference between two adjacent historical purchase values ​​of the purchase orders to be purchased in chronological order.

[0093] S401: Determine the difference between the historical purchase value of the order to be purchased at the time of the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased.

[0094] S402: Determine the purchase value of the order to be purchased based on the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased, and the historical purchase value of the order to be purchased at the last purchase.

[0095] For example, three months ago, the product to be purchased in the pending purchase order was purchased for the first time, and the purchase value was value 1; two months ago, the product to be purchased in the pending purchase order was purchased for the second time, and the purchase value was value 2; one month ago, the product to be purchased in the pending purchase order was purchased for the third time, and the purchase value was value 3; one week ago, the product to be purchased in the pending purchase order was purchased for the fourth time, and the purchase value was value 4. In chronological order, the difference between the adjacent historical purchase values ​​of the pending purchase order is (value 2-value 1), (value 3-value 2), (value 4-value 3). According to (value 2-value 1), (value 3-value 2), (value 4-value 3), the difference between value 4 and the purchase value of the pending purchase order is determined. According to the difference between value 4 and the purchase value of the pending purchase order, value 4, the purchase value of the pending purchase order is determined.

[0096] The implementation of step 401 is as follows: determining the growth trend of the purchase value of the order to be purchased and the growth value of the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased;

[0097] If the growth trend of the purchase value of the pending purchase order is upward growth, the sum of the growth value of the purchase value of the pending purchase order and the difference value corresponding to the historical purchase value at the last purchase of the pending purchase order shall be taken as the difference between the historical purchase value at the last purchase of the pending purchase order and the purchase value of the pending purchase order; wherein, the difference value corresponding to the historical purchase value at the last purchase of the pending purchase order is the difference between the historical purchase value at the last purchase of the pending purchase order and the historical purchase values ​​at the last two purchases of the pending purchase order;

[0098] If the growth trend of the purchase value of the order to be purchased is downward growth, the difference between the growth value of the purchase value of the order to be purchased and the corresponding difference between the historical purchase value at the last purchase of the order to be purchased shall be taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the order to be purchased.

[0099] Exemplarily, the growth value may be the sum of the maximum growth value and the minimum growth value, or the range between the maximum growth value and the minimum growth value; or the growth value may be determined according to the mathematical law between the historical growth values, and so on, and the present invention does not impose specific restrictions on this. For example, (value 2-value 1) is 0.2, (value 3-value 2) is 0.5, (value 4-value 3) is 1.2, and the growth values ​​are (0.5-0.2)=0.3, (1.2-0.5)=0.7, respectively, and the growth value is [0.4, 1]. The difference between the historical purchase value of the last purchase of the order to be purchased and the purchase value of the order to be purchased is [0.4+1.2, 1+1.2], and the purchase value of the order to be purchased is [0.4+1.2+value 4, 1+1.2+value 4].

[0100] For example, (value 2 - value 1) is 1, (value 3 - value 2) is 0.7, and (value 4 - value 3) is 0.3. The growth values ​​are (1-0.7) = 0.3 and (0.7-0.3) = 0.4 respectively, and the growth value is [0.3, 0.4]. The above differences are 1, 0.7, and 0.3. It can be seen that the growth trend between them is downward. The difference between the historical purchase value of the last purchase of the order to be purchased and the purchase value of the order to be purchased is [0.3-0.3, 03-0.4], so the purchase value of the order to be purchased is [0+value 4, -0.1+value 4].

[0101] In some embodiments, the method further comprises:

[0102] If the product to be purchased in the order to be purchased has not been purchased, then determine the selection value of each supply product corresponding to the order to be purchased according to the sales volume, score, and quotation of each supply product corresponding to the order to be purchased;

[0103] The supply products corresponding to the pending purchase orders that meet the preset selection values ​​are used as the target supply products for the pending purchase orders.

[0104] In detail, the sales volume of each supply product corresponding to the purchase order is multiplied by the weight corresponding to the sales volume, the score is multiplied by the weight corresponding to the score, and the sum of the value and the weight corresponding to the value is used as the selection value of each supply product corresponding to the purchase order. The preset requirement is the maximum value, and the supply product corresponding to the purchase order with the maximum selection value is used as the target supply product for the purchase order.

[0105] like Figure 5 As shown, the present invention also provides a purchase order management device based on blockchain, comprising:

[0106] The determination module 500 is used to determine at least one supply product corresponding to each order to be purchased according to the purchase requirements of multiple orders to be purchased in the purchase list and the product information of multiple product suppliers stored in the blockchain; wherein each block in the blockchain stores one product information of a product supplier; and the at least one supply product corresponding to an order to be purchased is a supply product of a product supplier whose product information stored in the blockchain meets the purchase requirements of the order to be purchased.

[0107] The selection module 501 is used for, for each pending purchase order, if the pending purchase product in the pending purchase order has been purchased, determining the purchase value of the pending purchase order according to the historical purchase value of the pending purchase order; selecting a supply product from the at least one supply product corresponding to the pending purchase order according to the matching of the purchase value of the pending purchase order and the quotation of at least one supply product corresponding to the pending purchase order, and using the selected supply product as the target supply product of the pending purchase order;

[0108] The execution module 502 is used to generate a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased in the blockchain when the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, and execute the smart contract corresponding to each order to be purchased.

[0109] Optionally, the selection module 501 is further used to:

[0110] Display the purchasing user login interface;

[0111] Responding to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, displaying the filling interface of the purchase list;

[0112] The purchase list is generated in response to the purchase requirements of each pending purchase order input by the purchase user.

[0113] Optionally, the determination module 500 is specifically configured to:

[0114] For any order to be purchased in the purchase list, if the product name provided in the purchase demand of the order to be purchased is the same as the product name in the product information of the product supplier, and the number of products provided in the purchase demand of the order to be purchased is not greater than the number of products in the product information of the product supplier, then the product information of the product supplier is determined to be the supply product corresponding to the order to be purchased.

[0115] Optionally, the selection module 501 is specifically used for:

[0116] Inputting the historical purchase value of the pending purchase order into the prediction network model, and having the prediction network model output the purchase value of the pending purchase order; or

[0117] Determine the difference between two adjacent historical purchase values ​​of the pending purchase orders in chronological order;

[0118] Determine the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased;

[0119] The purchase value of the order to be purchased is determined according to the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased, and the historical purchase value of the order to be purchased at the last purchase.

[0120] Optionally, the selection module 501 is specifically used for:

[0121] Determine the growth trend of the purchase value of the order to be purchased and the growth value of the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased;

[0122] If the growth trend of the purchase value of the order to be purchased is upward growth, the sum of the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the product; wherein the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is the difference between the historical purchase value at the last purchase of the order to be purchased and the historical purchase values ​​at the last two purchases of the order to be purchased;

[0123] If the growth trend of the purchase value of the order to be purchased is downward growth, the difference between the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased shall be taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the order to be purchased.

[0124] Optionally, the selection module 501 is further used for:

[0125] If the product to be purchased in the order to be purchased has not been purchased, determining the selection value of each supply product corresponding to the order to be purchased according to the sales volume, score, and quotation of each supply product corresponding to the order to be purchased;

[0126] The supply product corresponding to the order to be purchased that meets the preset requirements and the selected value is used as the target supply product of the order to be purchased.

[0127] In addition, combined Figure 1-Figure 5 The blockchain-based purchase order management method and device described in the embodiments of the present invention can be implemented by an electronic device.

[0128] Electronic devices, including: processors;

[0129] a memory for storing instructions executable by the processor;

[0130] Wherein, the processor is configured to execute the instructions to implement the blockchain-based purchase order management method as described in any one of the above descriptions.

[0131] Based on the above introduction, an exemplary Figure 6 electronic equipment structure.

[0132] The electronic device may include a processor 601 and a memory 602 storing computer program instructions.

[0133] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiment of the present invention.

[0134] The memory 602 may include a large capacity memory for data or instructions. For example, but not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. In appropriate cases, the memory 602 may include a removable or non-removable (or fixed) medium. In appropriate cases, the memory 602 may be inside or outside the data processing device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory. In a specific embodiment, the memory 602 includes a read-only memory (ROM). In appropriate cases, the ROM may be a mask-programmed ROM, a programmable ROM (PROM), an erasable PROM (EPROM), an electrically erasable PROM (EEPROM), an electrically rewritable ROM (EAROM) or a flash memory or a combination of two or more of these.

[0135] The processor 601 implements any one of the methods for performing tasks in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0136] In one example, the electronic device may further include a communication interface 603 and a bus 604. Figure 6 As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 604 and communicate with each other.

[0137] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiment of the present invention.

[0138] Bus 604 includes hardware, software or both, and the parts of electronic equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front side bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 604 may include one or more buses. Although the embodiment of the present invention describes and shows a specific bus, the present invention considers any suitable bus or interconnection.

[0139] The electronic device can execute the blockchain-based purchase order management method in the embodiment of the present invention based on the received task, thereby realizing the combination Figure 1-Figure 5 The described blockchain-based purchase order management method and device.

[0140] In addition, in combination with the electronic device in the above embodiments, an embodiment of the present invention may provide a storage medium, and when the instructions in the storage medium are executed by the processor of the electronic device, the electronic device can execute the blockchain-based purchase order management method as described in any one of the above items.

[0141] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0142] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0143] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0144] Although the preferred embodiments of the present invention have been described, those skilled in the art may make other changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.

[0145] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.

Claims

1. A purchase order management method based on blockchain, characterized in that: include: According to the purchase requirements of multiple pending purchase orders in the purchase list and the product information of multiple product suppliers stored in the blockchain, at least one supply product corresponding to each pending purchase order is determined; wherein each block in the blockchain stores one product information of a product supplier; and at least one supply product corresponding to a pending purchase order is a supply product of a product supplier whose product information stored in the blockchain meets the purchase requirements of the pending purchase order; For each pending purchase order, if the pending purchase product in the pending purchase order has been purchased, the purchase value of the pending purchase order is determined according to the historical purchase value of the pending purchase order; According to the matching of the purchase value of the order to be purchased and the quotation of at least one supply product corresponding to the order to be purchased, select a supply product from the at least one supply product corresponding to the order to be purchased, and use the selected supply product as the target supply product of the order to be purchased; When the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased is generated in the blockchain, and the smart contract corresponding to each order to be purchased is executed.

2. The blockchain-based purchase order management method according to claim 1, characterized in that: Generate the names and numbers of pending purchase orders in the purchase list in the following ways: Display the purchasing user login interface; Responding to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, displaying the filling interface of the purchase list; The purchase list is generated in response to the purchase requirements of each pending purchase order input by the purchase user.

3. The blockchain-based purchase order management method according to claim 1, characterized in that: According to the purchase requirements of multiple pending purchase orders in the purchase list and the product information of multiple product suppliers stored in the blockchain, at least one supply product corresponding to each pending purchase order is determined, including: For any order to be purchased in the purchase list, if the product name provided in the purchase demand of the order to be purchased is the same as the product name in the product information of the product supplier, and the number of products provided in the purchase demand of the order to be purchased is not greater than the number of products in the product information of the product supplier, then the product information of the product supplier is determined to be the supply product corresponding to the order to be purchased.

4. The blockchain-based purchase order management method according to claim 1, characterized in that: Determining the purchase value of the order to be purchased according to the historical purchase value of the order to be purchased includes: Inputting the historical purchase value of the pending purchase order into the prediction network model, and having the prediction network model output the purchase value of the pending purchase order; or Determine the difference between two adjacent historical purchase values ​​of the pending purchase orders in chronological order; Determine the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased; The purchase value of the order to be purchased is determined according to the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased, and the historical purchase value of the order to be purchased at the last purchase.

5. The blockchain-based purchase order management method according to claim 4 is characterized in that: Determining the difference between the historical purchase value of the order to be purchased at the last purchase and the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased, includes: Determine the growth trend of the purchase value of the order to be purchased and the growth value of the purchase value of the order to be purchased according to the time sequence and the difference between the adjacent historical purchase values ​​of the order to be purchased; If the growth trend of the purchase value of the order to be purchased is upward growth, the sum of the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the product; wherein the difference corresponding to the historical purchase value at the last purchase of the order to be purchased is the difference between the historical purchase value at the last purchase of the order to be purchased and the historical purchase values ​​at the last two purchases of the order to be purchased; If the growth trend of the purchase value of the order to be purchased is downward growth, the difference between the growth value of the purchase value of the order to be purchased and the difference corresponding to the historical purchase value at the last purchase of the order to be purchased shall be taken as the difference between the historical purchase value at the last purchase of the order to be purchased and the purchase value of the order to be purchased.

6. The blockchain-based purchase order management method according to claim 1, characterized in that: The method further comprises: If the product to be purchased in the order to be purchased has not been purchased, determining the selection value of each supply product corresponding to the order to be purchased according to the sales volume, score, and quotation of each supply product corresponding to the order to be purchased; The supply product corresponding to the order to be purchased that meets the preset requirements and the selected value is used as the target supply product of the order to be purchased.

7. A purchase order management device based on blockchain, characterized in that: include: A determination module, configured to determine at least one supply product corresponding to each order to be purchased based on the purchase requirements of multiple orders to be purchased in the purchase list and the product information of multiple product suppliers stored in the blockchain; wherein each block in the blockchain stores one product information of a product supplier; and at least one supply product corresponding to an order to be purchased is a supply product of a product supplier whose product information stored in the blockchain meets the purchase requirements of the order to be purchased; A selection module is used for, for each order to be purchased, if the product to be purchased in the order to be purchased has been purchased, determining the purchase value of the order to be purchased according to the historical purchase value of the order to be purchased; selecting a supply product from the at least one supply product corresponding to the order to be purchased according to the matching of the purchase value of the order to be purchased and the quotation of at least one supply product corresponding to the order to be purchased, and using the selected supply product as the target supply product of the order to be purchased; The execution module is used to generate a smart contract between each order to be purchased in the purchase list and the product supplier of the target supply product of the order to be purchased in the blockchain when the total value in the purchase list is not less than the sum of the quotations of the target supply products of multiple orders to be purchased in the purchase list, and execute the smart contract corresponding to each order to be purchased.

8. The blockchain-based purchase order management device according to claim 7, characterized in that: The selection module is further used for: Display the purchasing user login interface; Responding to the login information input by the purchasing user, and after the login information input by the purchasing user is verified, displaying the filling interface of the purchase list; The purchase list is generated in response to the purchase requirements of each pending purchase order input by the purchase user.

9. An electronic device, characterized in that: include: Memory, used to store computer programs or instructions; A processor, configured to execute the computer program or instructions in the memory so that the blockchain-based purchase order management method as described in any one of claims 1 to 6 is executed.

10. A computer-readable storage medium, characterized in that: When the instructions in the storage medium are executed by a processor, the processor is enabled to execute the blockchain-based purchase order management method as described in any one of claims 1-6.