A method, device and equipment for generating a purchase and sale contract and a storage medium

By generating pre-purchase and sales contracts and merging them into purchase and sales contracts, the problem of a large number of purchase and sales contracts and low production efficiency in the apparel industry has been solved, achieving fast and efficient contract production and data management.

CN114372802BActive Publication Date: 2026-01-02GREIGER (SHENZHEN) TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202111460355.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-02
Publication Date
2026-01-02
Estimated Expiration
2041-12-02

AI Technical Summary

Technical Problem

In the apparel industry, there are many purchase and sales contracts, and the production efficiency is low, making them prone to loss or errors, resulting in printing waste.

Method used

By obtaining order information, a pre-purchase and sales contract is generated. After determining the merging rules, the purchase and sales contracts are merged and generated. A connection is established using related foreign keys to avoid duplicate information input and data redundancy.

Benefits of technology

It enables the rapid and efficient creation of purchase and sales contracts, reduces the number of contracts, avoids printing waste and errors, and reduces data redundancy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114372802B_ABST
    Figure CN114372802B_ABST
Patent Text Reader

Abstract

The application provides a purchase and sale contract generation method and device, equipment and a storage medium, including: when the order is approved, obtaining order information, the order information including: the number, the quantity; generating a pre-purchase and sale contract according to the order information; obtaining the input pre-purchase and sale contract that needs to be merged; judging whether the number of pre-purchase and sale contracts that need to be merged is greater than one; if yes, judging whether the pre-purchase and sale contract that needs to be merged meets the merging rule; if yes, merging the pre-purchase and sale contract that needs to be merged to generate a purchase and sale contract, and associating the pre-purchase and sale contract that needs to be merged with the purchase and sale contract through the way of an associated foreign key. Through the connection between the upstream order, the purchase and sale contract is quickly and efficiently made, and multiple pre-purchase and sale contracts are merged into one purchase and sale contract, so that the number of contracts is reduced, and the problems of printing waste and easy error are avoided. Again, by associating the pre-purchase and sale contract with the purchase and sale contract, the repeated storage of data is avoided, and the data redundancy is greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of computer software, in particular to a method and device for generating a purchase and sale contract, and a storage medium. BACKGROUND

[0002] With the rapid development of economy, a large number of contracts are signed in various trade and business activities among market entities.

[0003] In the clothing industry, a large number of contracts are often generated due to various styles and inconsistent delivery dates of each style of clothing. Too many contracts will not only cause printing waste, but also be easily lost or incorrect. In addition, in the production of purchase and sale contracts, a large amount of repeated information needs to be manually searched and input, which is inefficient. SUMMARY

[0004] The purpose of the present application is to provide a method and device for generating a purchase and sale contract, and a storage medium, which can solve the problems of too many contracts and low efficiency in generating a purchase and sale contract.

[0005] In order to achieve the above-mentioned purpose, the present application provides the following technical solutions:

[0006] In a first aspect, a method for generating a purchase and sale contract is provided, comprising:

[0007] When the order is approved, the order information is obtained, and the order information includes: style number, quantity;

[0008] A pre-purchase and sale contract is generated according to the order information;

[0009] The input pre-purchase and sale contract that needs to be merged is obtained;

[0010] It is determined whether the number of pre-purchase and sale contracts that need to be merged is greater than one;

[0011] If yes, it is determined whether the pre-purchase and sale contract that needs to be merged meets the merging rule, and the merging rule includes: the pre-purchase and sale contract that needs to be merged has not generated a purchase and sale contract, the customer of the pre-purchase and sale contract that needs to be merged is consistent, and the supplier of the pre-purchase and sale contract that needs to be merged is consistent;

[0012] If yes, the pre-purchase and sale contract that needs to be merged is merged to generate a purchase and sale contract, and the pre-purchase and sale contract that needs to be merged is associated with the purchase and sale contract by means of an associated foreign key.

[0013] In a second aspect, a device for generating a purchase and sale contract is provided, comprising:

[0014] The first obtaining module is configured to obtain the order information when the order is approved, and the order information includes: style number, quantity;

[0015] a first generating module, configured to generate a pre-purchase contract according to the order information;

[0016] a second obtaining module, configured to obtain input pre-purchase contracts that need to be merged;

[0017] a first judging module, configured to judge whether the number of the pre-purchase contracts that need to be merged is greater than one;

[0018] a second judging module, configured to judge whether the pre-purchase contracts that need to be merged meet a merging rule when the number of the pre-purchase contracts that need to be merged is greater than one, the merging rule including that the pre-purchase contracts that need to be merged have not generated a purchase contract, the pre-purchase contracts that need to be merged have consistent customers, and the pre-purchase contracts that need to be merged have consistent suppliers;

[0019] a second generating module, configured to generate a purchase contract by merging the pre-purchase contracts that need to be merged when the pre-purchase contracts that need to be merged meet the merging rule, and associate the pre-purchase contracts that need to be merged with the purchase contract by means of an associated foreign key.

[0020] In a third aspect, a computer device is provided, comprising:

[0021] a memory and a processor, the memory storing a computer program, the computer program being executed by the processor to cause the processor to perform the following steps:

[0022] obtaining order information when the order is approved, the order information including a style number and a quantity;

[0023] generating a pre-purchase contract according to the order information;

[0024] obtaining input pre-purchase contracts that need to be merged;

[0025] judging whether the number of the pre-purchase contracts that need to be merged is greater than one;

[0026] if yes, judging whether the pre-purchase contracts that need to be merged meet a merging rule, the merging rule including that the pre-purchase contracts that need to be merged have not generated a purchase contract, the pre-purchase contracts that need to be merged have consistent customers, and the pre-purchase contracts that need to be merged have consistent suppliers;

[0027] if yes, generating a purchase contract by merging the pre-purchase contracts that need to be merged, and associating the pre-purchase contracts that need to be merged with the purchase contract by means of an associated foreign key.

[0028] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program stored therein, which, when executed by a processor, causes the processor to perform the following steps:

[0029] When the order is approved, the order information is obtained, the order information comprising: a style number, a quantity;

[0030] A purchase-sale contract is generated according to the order information;

[0031] The input purchase-sale contracts that need to be combined are obtained;

[0032] It is determined whether the quantity of the purchase-sale contracts that need to be combined is greater than one;

[0033] If yes, it is determined whether the purchase-sale contracts that need to be combined meet a combination rule, the combination rule comprising: the purchase-sale contracts that need to be combined have not generated a purchase-sale contract, the purchase-sale contracts that need to be combined have the same customer, and the purchase-sale contracts that need to be combined have the same supplier;

[0034] If yes, the purchase-sale contracts that need to be combined are combined to generate a purchase-sale contract, and the purchase-sale contracts that need to be combined are associated with the purchase-sale contract by means of an associated foreign key.

[0035] The above purchase-sale contract generation method, device, equipment and storage medium first obtain order information, generate a purchase-sale contract according to the order information, quickly and efficiently obtain the order information through the connection between the purchase-sale contract and the upstream order, avoid manually searching for and inputting a large amount of repeated information, and avoid errors caused by human intervention, thereby realizing the quick and efficient production of the purchase-sale contract.

[0036] Secondly, it is determined whether the purchase-sale contracts that need to be combined meet the combination rule, and if yes, the multiple purchase-sale contracts are combined into one purchase-sale contract, thereby reducing the number of contracts and avoiding printing waste and errors.

[0037] Thirdly, the connection relationship between the purchase-sale contract and the purchase-sale contract is established, thereby avoiding the repeated storage of data and greatly reducing the redundancy of data. BRIEF DESCRIPTION OF DRAWINGS

[0038] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the drawings needed in the embodiment or prior art description will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present application, and other drawings can be obtained by those skilled in the art without creative labor.

[0039] Wherein:

[0040] Figure 1 A flow chart of a method for generating a purchase and sale contract in an embodiment;

[0041] Figure 2 A structural block diagram of a device for generating a purchase and sale contract in an embodiment;

[0042] Figure 3 An internal structural diagram of a computer device in an embodiment. DETAILED DESCRIPTION

[0043] It should be understood that the specific embodiments described herein merely exemplify the application and do not limit the application.

[0044] The technical solutions in the embodiments of the application will be described clearly and completely in the embodiments of the application in conjunction with the drawings in the embodiments of the application. Obviously, the described embodiments are only a part of the embodiments of the application, but not all the embodiments of the application. Based on the embodiments in the application, all other embodiments obtained by those skilled in the art without creative efforts fall within the scope of the application.

[0045] It should be noted that the terms "comprise", "contain", and "have" and any variations thereof in the specification and claims of the application and the above-described drawings are intended to cover non-exclusive inclusion. For example, a process, method, terminal, product or device including a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units not listed, or optionally includes other steps or units inherent to the process, method, product or device. In the claims, specification and drawings of the application, the relationship terms such as "first" and "second" and the like are only used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any actual relationship or order between the entities / operations / objects.

[0046] Reference herein to "an embodiment" means that a particular feature, structure or characteristic described in connection with an embodiment can be included in at least one embodiment of the application. The appearance of the phrase in various places in the specification does not necessarily all refer to the same embodiment, nor does it necessarily refer to a separate or alternative embodiment. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined.

[0047] As shown in Figure 1 A purchase and sale contract generation method is proposed, and the method specifically includes the following steps:

[0048] Step 101, after the order is approved, the terminal acquires the order information, and the order information includes: style number, quantity.

[0049] Wherein, after the customer orders, the order needs to be audited. When the order is passed, the content of the order is obtained, that is, the order number corresponding to the clothing ordered by the customer, the product quantity, the total price of the order, each kind of clothing has a corresponding order number, which can be queried from the terminal pre-stored information table according to the clothing name. The material information required by the order is quickly and efficiently obtained through the connection with the upstream order. The terminal includes a tablet computer and a computer.

[0050] Step 102, the terminal generates a pre-purchase contract according to the order information.

[0051] Wherein, when the terminal gets the order number, quantity and supplier, it can generate a pre-purchase contract according to the pre-stored template in the terminal. The pre-purchase contract is generated according to the template, which is an intermediate file before the generation of the purchase contract. When multiple pre-purchase contracts meet the merging rules, a purchase contract can be generated by merging. The terminal pre-stores supplier information, including which order number corresponding to the clothing each supplier can produce. The purchase contract is a contract signed with the supplier. The supplier in this application refers to a textile factory. The contract subject is usually a certain style of clothing. The production capacity of the textile factory and the quantity of clothing in the order placed by the customer are judged to select the supplier. When the production capacity of a textile factory is strong enough to produce the required quantity of clothing in an order, the textile factory is selected as the supplier. When the supplier of a kind of clothing cannot produce alone, the production capacity of the supplier is sorted, and the maximum production quantity of the supplier is added according to the sorting. When the added production quantity of the supplier is greater than the order quantity, the supplier is selected as the supplier of the order, and a purchase contract is signed with the supplier respectively.

[0052] Step 103, obtaining the input pre-purchase contract that needs to be merged.

[0053] Wherein, after the pre-purchase contract is generated, because the product quantity in the order placed by the customer is often large, and the types of products are also many, it is necessary to sign a purchase contract with many suppliers, resulting in too many contracts, which is easy to cause printing waste and easy to lose or make mistakes. Therefore, it is necessary to merge the purchase contract to reduce the number of contracts. When the user feels that some pre-purchase contracts can be merged, the pre-purchase contracts that need to be merged are input on the terminal, and the terminal judges whether the pre-purchase contracts can be merged.

[0054] Step 104, the terminal judges whether the quantity of the pre-purchase contract that needs to be merged is greater than one.

[0055] When a user inputs the pre-purchase and sale contracts to be merged, the terminal determines whether the number of pre-purchase and sale contracts entered by the user is greater than one. If the number of pre-purchase and sale contracts entered by the user is greater than one, the terminal determines whether these pre-purchase and sale contracts can be merged into a single purchase and sale contract. If the number of pre-purchase and sale contracts entered by the user is equal to one, a purchase and sale contract is generated directly.

[0056] Step 105: If yes, the terminal determines whether the pre-purchase and sales contracts to be merged meet the merging rules, which include: the pre-purchase and sales contracts to be merged have not generated purchase and sales contracts, the customers of the pre-purchase and sales contracts to be merged are the same, and the suppliers of the pre-purchase and sales contracts to be merged are the same.

[0057] When the number of pre-sale contracts entered by the user is greater than one, the terminal determines whether these pre-sale contracts can be merged into a single sales contract based on merging rules. These merging rules are pre-set and include: the pre-sale contracts to be merged have not yet generated a sales contract; the customers of the pre-sale contracts to be merged are the same; and the suppliers of the pre-sale contracts to be merged are the same. The determination that the pre-sale contracts to be merged have not yet generated a sales contract is achieved through the status field of the pre-sale contracts. When a pre-sale contract is generated, the order status field is initialized. When multiple pre-sale contracts are merged into one sales contract, the status field of the pre-sale contract is updated. If the status field of the pre-sale contract has been updated, it means that the pre-sale contracts have already been merged into a sales contract, and at this point, they cannot be merged again. The terminal determines whether a pre-sale contract has been merged into a sales contract by checking whether its status field has been updated. The terminal obtains the user information of the pre-sale contracts to be merged to determine if these users are the same user; if they are not the same user, these pre-sale contracts cannot be merged into a single sales contract. Similarly, the terminal obtains supplier information for the pre-purchase and sale contracts that need to be merged, and determines whether these suppliers are the same supplier. If they are not the same supplier, these pre-purchase and sale contracts cannot be merged to generate a single purchase and sale contract. By setting merging rules to determine whether pre-purchase and sale contracts can be merged to generate a single purchase and sale contract, multiple pre-purchase and sale contracts are merged into one purchase and sale contract if the merging rules are met. This reduces the number of contracts and avoids printing waste and errors.

[0058] Step 106: If yes, merge the pre-purchase and sale contracts that need to be merged into a purchase and sale contract, and associate the pre-purchase and sale contracts that need to be merged with the purchase and sale contract through a foreign key.

[0059] In this process, pre-purchase and sales contracts that need to be merged are combined into purchase and sales contracts, and the association between pre-purchase and sales contracts and purchase and sales contracts is established, which is conducive to the connection and traceability of upstream and downstream data.

[0060] The above purchase and sale contract generation method first generates a pre-purchase and sale contract according to order information by acquiring the order information, quickly and efficiently acquires the order information through the connection between the pre-purchase and sale contract and the upstream order, avoids manually searching and inputting a large amount of repeated information, and avoids errors caused by human intervention, thereby realizing rapid and efficient production of the purchase and sale contract.

[0061] Secondly, it is judged whether the pre-purchase and sale contracts to be merged meet the merging rules, and if the merging rules are met, the pre-purchase and sale contracts are merged into one purchase and sale contract, thereby reducing the number of contracts and avoiding printing waste and errors.

[0062] Thirdly, the connection relationship between the pre-purchase and sale contract and the purchase and sale contract is established, thereby avoiding repeated storage of data and greatly reducing data redundancy.

[0063] In one embodiment, the pre-purchase and sale contract to be merged does not generate a purchase and sale contract, including: acquiring a state field of the pre-purchase and sale contract to be merged, the state field including: an initialization state field and an update state field, the initialization state field being used to indicate that the pre-purchase and sale contract to be merged has been generated, and the update state field being used to indicate that the pre-purchase and sale contract to be merged has been merged; judging whether the pre-purchase and sale contract to be merged generates a purchase and sale contract according to the state field of the pre-purchase and sale contract to be merged; and if the pre-purchase and sale contract to be merged does not have the update state field, it is determined that the pre-purchase and sale contract to be merged does not generate a purchase and sale contract.

[0064] The judgment that the pre-purchase and sale contract to be merged does not generate a purchase and sale contract is realized through the state field of the pre-purchase and sale contract. When the pre-purchase and sale contract is generated, the order state field is initialized. When the pre-purchase and sale contracts are merged into one purchase and sale contract, the state field of the pre-purchase and sale contract is updated. If the state field of the pre-purchase and sale contract is updated, it indicates that the pre-purchase and sale contract has been merged to generate a purchase and sale contract, and at this time, the pre-purchase and sale contract cannot be merged to generate a purchase and sale contract. The terminal judges whether the pre-purchase and sale contract has been merged to generate a purchase and sale contract by judging whether the pre-purchase and sale contract has the update state field.

[0065] In one embodiment, the pre-purchase and sale contract is generated according to the order information, including: selecting a supplier; and generating the pre-purchase and sale contract according to the order information and the selected supplier.

[0066] The pre-purchase and sale contract is signed with a supplier, and therefore the pre-purchase and sale contract must include the supplier. The terminal automatically selects the supplier and generates the pre-purchase and sale contract according to the order information and the selected supplier.

[0067] In one embodiment, the selecting the supplier comprises: obtaining a first supplier group having the capability of producing the order number corresponding clothes; obtaining the production capacity of the first supplier group; obtaining the cooperation record of the first supplier group, the cooperation record recording the performance of the supplier; and selecting the supplier according to the order quantity, the cooperation record of the first supplier group and the production capacity of the first supplier group.

[0068] In the method, the terminal obtains the supplier capable of producing the product in the order to form a first supplier group, obtains the production capacity of the first supplier group, and judges which suppliers to select according to the production capacity of the first supplier group. Meanwhile, the cooperation record of the first supplier group is obtained. After each cooperation with the supplier, a cooperation record is generated to record whether the supplier delivers on time, whether the product supply is completed according to the requirements and other information, and to judge whether the supplier is reliable. The above method is used to select the appropriate supplier to avoid affecting the on-time delivery of the product.

[0069] In one embodiment, the selecting the supplier according to the order quantity, the cooperation record of the first supplier group and the production capacity of the first supplier group comprises: selecting a second supplier group with good performance from the first supplier group according to the performance of the first supplier group; judging whether the production capacity of the supplier in the second supplier group is greater than the order quantity; if yes, selecting the supplier as the designated supplier of the order; if no, sorting the second supplier group according to the production capacity of the second supplier group, adding the production capacity of the suppliers in the second supplier group one by one according to the sorting order, and selecting the suppliers as a third supplier group, when the production capacity of the third supplier group is greater than the order quantity, selecting the third supplier group as the designated supplier of the order.

[0070] The terminal automatically selects the supplier, first needs to obtain the supplier who can produce the product in the order, and the supplier is taken as a first supplier group, which is the first step of screening. Then, the performance records of the first supplier group are obtained, and the supplier with good performance records is screened to form a second supplier group, and the good performance record means that the supplier has no default during cooperation, which is the second step of screening. Finally, the final supplier is selected according to the production capacity of the second supplier group. Specifically, it is judged whether the production capacity of the supplier in the second supplier group is greater than the order quantity. When the production capacity of the supplier is greater than the order quantity, the supplier can be selected to produce the product of the order placed by the customer. When there is no supplier whose production capacity is greater than the order quantity, multiple suppliers are needed to produce the product of the order placed by the customer, at this time, the production capacity of the second supplier group is sorted, the production capacity of the supplier is added in descending order, until the sum of the production capacity of the supplier is greater than the order quantity, for example, the quantity of a product ordered by the customer is 500, the suppliers in the second supplier group are sorted according to the production capacity, the production capacity of the first sorted supplier is 250, the production capacity of the second sorted supplier is 200, and the production capacity of the second sorted supplier is 150, at this time, the three suppliers are selected to form a third supplier group. At this time, a pre-purchase sale contract can be signed with the third supplier group. The terminal selects the final supplier, which maximizes the guarantee of delivering the product quantity in the order on time.

[0071] In one embodiment, after the pre-purchase sale contract is generated according to the order information, the method further includes: sending a sample request to the supplier; obtaining a sample provided by the supplier; judging whether the sample is qualified; and if so, sending a formal production notice to the supplier.

[0072] In one embodiment, after the pre-purchase sale contract is generated according to the order information, the method further includes: sending a sample request to the supplier; obtaining a sample provided by the supplier; judging whether the sample is qualified; and if so, sending a formal production notice to the supplier.

[0073] In one embodiment, the method further includes: obtaining a sample effect photo provided by the supplier; inputting data corresponding to the order number into a visual model to obtain an effect diagram corresponding to the order number; obtaining a comparison result of the input sample effect photo and the effect diagram corresponding to the order number; and judging whether the sample is qualified according to the comparison result.

[0074] When the supplier provides a sample photo corresponding to a certain style number, the sample photo provided by the supplier is compared with the effect drawing corresponding to the style number generated by the terminal, and whether the sample is qualified is determined according to the comparison result. If it is qualified, a formal production notice is sent to the supplier; if it is not qualified, the supplier is required to re-sample. The specific process of generating the effect drawing corresponding to the style number by the terminal is that the terminal obtains the style number corresponding to the order product, and obtains the corresponding clothing manufacturing data according to the style number; the visual model corresponding to the style number is determined according to the style number; the clothing manufacturing data is input into the visual model to generate the effect drawing corresponding to the style number.

[0075] The visual model is a 3D model pre-stored by the terminal and established in advance according to the clothing manufacturing data. The 3D model is matched with a human body model through 3D software modeling, and an effect drawing is output. According to the effect drawing, the style effect of the garment corresponding to the style number can be seen, which is beneficial to the customer's grasp of the product style. By comparing the sample style provided by the supplier with the effect drawing generated according to the visual model, it can be determined whether the clothing of the style desired by the customer can be produced according to the production process of the supplier, and then the supplier is required to modify the process or material so that it can meet the requirements of the customer.

[0076] As shown in Figure 2 , a purchase and sale contract generation device is proposed, comprising:

[0077] The first acquisition module 201 is configured to acquire the order information after the order is approved, wherein the order information includes a style number and a quantity.

[0078] The first generation module 202 is configured to generate a pre-purchase and sale contract according to the order information.

[0079] The second acquisition module 203 is configured to acquire the input pre-purchase and sale contract that needs to be merged.

[0080] The first judgment module 204 is configured to judge whether the quantity of the pre-purchase and sale contract that needs to be merged is greater than one.

[0081] The second judgment module 205 is configured to judge whether the pre-purchase and sale contract that needs to be merged meets the merging rule when the quantity of the pre-purchase and sale contract that needs to be merged is greater than one, wherein the merging rule includes that the pre-purchase and sale contract that needs to be merged has not generated a purchase and sale contract, the customers of the pre-purchase and sale contract that needs to be merged are consistent, and the suppliers of the pre-purchase and sale contract that needs to be merged are consistent.

[0082] The second generation module 206 is configured to merge the pre-purchase and sale contract that needs to be merged to generate a purchase and sale contract when the pre-purchase and sale contract that needs to be merged meets the merging rule, and associate the pre-purchase and sale contract that needs to be merged with the purchase and sale contract through an associated foreign key.

[0083] The purchase and sale contract generation device, first, generates a pre-purchase and sale contract according to order information by acquiring the order information, quickly and efficiently acquires the order information through the connection between the upstream order, avoids manually searching for and inputting a large amount of repeated information, and avoids errors caused by human intervention, and realizes the rapid and efficient production of the purchase and sale contract.

[0084] Secondly, it is judged whether the pre-purchase and sale contracts to be merged meet the merging rules, and if the merging rules are met, the multiple pre-purchase and sale contracts are merged into one purchase and sale contract, thereby reducing the number of contracts and avoiding printing waste and errors.

[0085] Thirdly, by establishing the connection relationship between the pre-purchase and sale contract and the purchase and sale contract, the repeated storage of data is avoided, and the data redundancy is greatly reduced.

[0086] In one embodiment, the second judging module 205 is further configured to acquire a state field of the pre-purchase and sale contract to be merged, the state field including an initialization state field and an update state field, the initialization state field being used to indicate that the pre-purchase and sale contract to be merged has been generated, and the update state field being used to indicate that the pre-purchase and sale contract to be merged has been merged; and judge whether the pre-purchase and sale contract to be merged generates a purchase and sale contract according to the state field of the pre-purchase and sale contract to be merged; if the pre-purchase and sale contract to be merged does not have the update state field, it is determined that the pre-purchase and sale contract to be merged does not generate a purchase and sale contract.

[0087] In one embodiment, the first generating module 202 is further configured to select a supplier; and generate a pre-purchase and sale contract according to the order information and the selected supplier.

[0088] In one embodiment, the first generating module 202 is further configured to acquire a first supplier group having the ability to produce a garment corresponding to a style number of the order; acquire the production capacity of the first supplier group; acquire a cooperation record of the first supplier group, the cooperation record recording the performance of the supplier; and select a supplier according to the quantity of the order, the cooperation record of the first supplier group, and the production capacity of the first supplier group.

[0089] In one embodiment, the first generating module 202 is further configured to select a second supplier group with good performance from the first supplier group according to the performance of the first supplier group; determine whether the production capacity of a supplier in the second supplier group is greater than the order quantity; if yes, select the supplier as the designated supplier of the order; if not, sort the second supplier group according to the production capacity of the second supplier group, add the production capacity of the suppliers of the second supplier group one by one according to the sorting order, and add the suppliers as a third supplier group; when the production capacity of the third supplier group is greater than the order quantity, select the third supplier group as the designated supplier of the order.

[0090] In one embodiment, the first generating module 202 is further configured to send a sample request to a supplier; obtain a sample provided by the supplier; determine whether the sample is qualified; if yes, send a formal production notification to the supplier.

[0091] In one embodiment, the first generating module 202 is further configured to obtain a sample effect photo provided by the supplier; input the data corresponding to the style number into a visualization model to obtain an effect drawing corresponding to the style number; obtain a comparison result of the input sample effect photo and the effect drawing corresponding to the style number; and determine whether the sample is qualified according to the comparison result.

[0092] As shown in Figure 3 The computer device includes a processor, a memory and a network interface connected through a system bus. The memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and can also store a computer program which, when executed by the processor, can enable the processor to implement the above-mentioned purchase and sale contract generation method. The internal memory can also store a computer program which, when executed by the processor, can enable the processor to execute the above-mentioned purchase and sale contract generation method. Those skilled in the art can understand that Figure 3 The structure shown in the figure is only a block diagram of part of the structure related to the scheme of the present application, and does not constitute a limitation on the equipment to which the scheme of the present application is applied. The specific equipment can include more or fewer components than those shown in the figure, or combine certain components, or have a different component arrangement.

[0093] In one embodiment, a computer device is provided, including a memory and a processor, the memory has a computer program stored therein, and the computer program, when executed by the processor, enables the processor to execute the steps of the above-mentioned purchase and sale contract generation method.

[0094] In one embodiment, a computer readable storage medium is provided, which stores a computer program. The computer program is executed by a processor to cause the processor to perform the steps of the above-mentioned method for generating a purchase and sale contract.

[0095] It can be understood that the above-mentioned method for generating a purchase and sale contract, device, computer equipment and computer readable storage medium belong to one general inventive concept, and the embodiments are applicable to each other.

[0096] It can be understood by those skilled in the art that all or part of the processes in the above-mentioned embodiment methods can be completed by a computer program instructing related hardware. The program can be stored in a non-volatile computer readable storage medium. When the program is executed, it can include the processes of the above-mentioned embodiments of each method. Any reference to memory, storage, database or other medium used in the embodiments provided in the present application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration but not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM) and memory bus dynamic RAM (RDRAM) and the like.

[0097] Each technical feature of the above embodiments can be combined arbitrarily. In order to make the description simple, each technical feature of the above-mentioned embodiments is not described in all possible combinations, however, as long as the combination of these technical features does not exist, it should be considered as the scope of the present application.

[0098] The above-mentioned embodiments only express several embodiments of the present application, and the description is more specific and detailed, but it should not be understood as a limitation on the scope of the patent of the present application. It should be noted that for ordinary skilled in the art, without departing from the concept of the present application, a number of modifications and improvements can be made, which are within the scope of the present application. Therefore, the scope of protection of the patent of the present application should be subject to the appended claims.

Claims

1. A method of generating a purchase and sale contract, characterized by, The method comprises: When the order is approved, obtaining order information, the order information comprising: a style number, a quantity; Generating a pre-purchase contract according to the order information; Obtaining an input pre-purchase contract that needs to be combined; Determining whether the quantity of the pre-purchase contract that needs to be combined is greater than one; If yes, determining whether the pre-purchase contract that needs to be combined meets a combination rule, the combination rule comprising: the pre-purchase contract that needs to be combined has not generated a purchase contract, the pre-purchase contract that needs to be combined has the same customer, and the pre-purchase contract that needs to be combined has the same supplier; If yes, combining the pre-purchase contract that needs to be combined to generate a purchase contract, and associating the pre-purchase contract that needs to be combined with the purchase contract through an associated foreign key; Wherein the pre-purchase contract that needs to be combined has not generated a purchase contract, comprising: Obtaining a state field of the pre-purchase contract that needs to be combined, the state field comprising: an initialization state field and an update state field, the initialization state field being used to indicate that the pre-purchase contract that needs to be combined has been generated, and the update state field being used to indicate that the pre-purchase contract that needs to be combined has been combined; Determining whether the pre-purchase contract that needs to be combined has generated a purchase contract according to the state field of the pre-purchase contract that needs to be combined; If the pre-purchase contract that needs to be combined has no update state field, it is determined that the pre-purchase contract that needs to be combined has not generated a purchase contract.

2. The method of claim 1, wherein The pre-purchase contract is generated according to the order information, comprising: Selecting a supplier; Generating a pre-purchase contract according to the order information and the selected supplier.

3. The method of claim 2, wherein The selection of the supplier comprises: Obtaining a first supplier group having a production capacity of a garment corresponding to a style number of the order; Obtaining a production capacity of the first supplier group; Obtaining a cooperation record of the first supplier group, the cooperation record recording a performance of the supplier; Selecting a supplier according to the quantity of the order, the cooperation record of the first supplier group, and the production capacity of the first supplier group.

4. The method of claim 3, wherein The selection of the supplier according to the quantity of the order, the cooperation record of the first supplier group, and the production capacity of the first supplier group comprises: Selecting a second supplier group having a good performance from the first supplier group according to the performance of the first supplier group; Determining whether a production capacity of a supplier in the second supplier group is greater than the quantity of the order; If yes, selecting the supplier as a designated supplier of the order; If no, sorting the second supplier group according to the production capacity of the second supplier group, adding the production capacity of the suppliers in the second supplier group one by one according to the sorting order, and selecting a third supplier group as the designated supplier of the order when the production capacity of the third supplier group is greater than the quantity of the order.

5. The method of claim 1, wherein After the pre-purchase contract is generated according to the order information, further comprising: Sending a sample request to a supplier; Obtaining a sample provided by the supplier; Determining whether the sample is qualified; If yes, sending a formal production notice to the supplier.

6. The method of claim 5, wherein, The determination of whether the sample is qualified comprises: Obtaining a sample effect photo provided by the supplier; Inputting data corresponding to the style number into a visualization model to obtain an effect diagram corresponding to the style number; Obtaining an alignment result of the input sample effect photo and the effect diagram corresponding to the style number; Determining whether the sample is qualified according to the alignment result.

7. A purchase and sale contract generating apparatus characterized by comprising: The sales contract generation method of any one of claims 1 to 6, the sales contract generation device comprises: A first obtaining module, configured to obtain order information when the order is approved, the order information comprising a style number and a quantity; A first generation module, configured to generate a pre-sales contract according to the order information; A second obtaining module, configured to obtain an input pre-sales contract that needs to be merged; A first judgment module, configured to determine whether the quantity of the pre-sales contract that needs to be merged is greater than one; A second judgment module, configured to determine whether the pre-sales contract that needs to be merged meets a merging rule when the quantity of the pre-sales contract that needs to be merged is greater than one, the merging rule comprising that the pre-sales contract that needs to be merged has not generated a sales contract, the pre-sales contract that needs to be merged has the same customer, and the pre-sales contract that needs to be merged has the same supplier; A second generation module, configured to merge the pre-sales contract that needs to be merged to generate a sales contract when the pre-sales contract that needs to be merged meets the merging rule, and associate the pre-sales contract that needs to be merged with the sales contract through an associated foreign key. 8.A computer device, comprising a memory and a processor, the memory storing a computer program, the computer program being executed by the processor to cause the processor to perform the steps of the sales contract generation method of any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that, The computer program is stored in the memory and executed by the processor to cause the processor to perform the steps of the sales contract generation method of any one of claims 1 to 6.

Citation Information

Patent Citations

  • Parallel processing for transaction data generation

    US9871694B1