Commodity price calculation method and device, electronic equipment and storage medium

By configuring business demand parameters in the configuration interface, the target price calculation method is obtained, which solves the problem that traditional price calculation methods are difficult to cope with complex scenarios, and achieves higher comprehensiveness and promotion.

CN120047201APending Publication Date: 2025-05-27RICHFIT INFORMATION TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311586996.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-24
Publication Date
2025-05-27

AI Technical Summary

Technical Problem

Traditional commodity price calculation methods are difficult to deal with price calculations in complex scenarios, and their comprehensiveness and flexibility are average, resulting in limited promotion.

Method used

By configuring the parameters corresponding to business requirements in the configuration interface, the target price calculation method is obtained and the price of the target product is calculated based on this method, which is suitable for a variety of complex business scenarios.

Benefits of technology

It improves the comprehensiveness and promotion of commodity price calculations, so that price calculation methods can be more flexible to adapt to complex business needs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120047201A_ABST
    Figure CN120047201A_ABST
Patent Text Reader

Abstract

The invention provides a commodity price calculation method and device, electronic equipment and a storage medium, and the method comprises the steps: displaying configurable parameters in a configuration interface in response to the operation of a user, configuring parameters corresponding to a business demand in the configuration interface according to the preset business demand, so as to obtain a corresponding target price calculation method, and calculating the commodity price according to the target price calculation method. And in response to the information of the target commodity input by the user, calculating the price of the target commodity based on the target price calculation method. According to the method, the corresponding target price calculation method is obtained by configuring the parameters corresponding to the business requirements in the configuration interface according to the preset business requirements, and the price of the target commodity is calculated based on the target price calculation method, so that the method can be suitable for various complex business scenes, the comprehensiveness of commodity price calculation is improved, and the user experience is improved. And the generalization performance of the price calculation method is also improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular, to a method, device, electronic device, and storage medium for calculating commodity prices. Background Art

[0002] In software for order management, calculating commodity prices is a core function. The sales and purchases of commodities are the business with the largest data volume, and calculating prices for commodities directly affects a company's sales profit and procurement cost.

[0003] Currently, the applicable scenarios in traditional commodity price calculation methods are relatively simple, making it difficult to handle price calculations in complex scenarios, and the comprehensiveness is average, which also makes the promotion of this price calculation method relatively average. Summary of the Invention

[0004] In view of this, the purpose of the present application is to provide a method, device, electronic device, and storage medium for calculating commodity prices. By configuring parameters corresponding to business requirements in a configuration interface according to preset business requirements to obtain a corresponding target price calculation method, and calculating the price of a target commodity based on the target price calculation method, it can be applicable to a variety of complex business scenarios, improving the comprehensiveness of commodity price calculation, and also improving the promotion of this price calculation method.

[0005] In a first aspect, an embodiment of the present application provides a method for calculating commodity prices, the method including:

[0006] In response to a user's operation, display configurable parameters on a configuration interface; wherein, the parameters are used for price calculation;

[0007] Configure the parameters corresponding to the business requirements on the configuration interface according to the preset business requirements to obtain a corresponding target price calculation method;

[0008] In response to information of a target commodity input by the user, calculate the price of the target commodity based on the target price calculation method.

[0009] In a possible implementation manner, the configuring the parameters corresponding to the business requirements on the configuration interface according to the preset business requirements to obtain a corresponding target price calculation method includes:

[0010] Determine a corresponding policy price type according to the preset business requirements; wherein, the policy price type represents the parameters that make up the target price calculation method;

[0011] Determine the corresponding policy access order according to the policy price type, and search for the corresponding target price table based on the policy access order; the target price table includes at least one price table, and the price table is the price table of the target commodity; the policy access order represents the indexing rule of the price table, and one policy access order maintains at least one price table;

[0012] Determine the corresponding policy calculation method according to the policy price type and the preset calculation logic;

[0013] Based on the policy calculation method, the policy price type, the policy access order and the target price table, form the corresponding target price calculation method.

[0014] In a possible implementation manner, the calculating the price of the target commodity based on the target price calculation method in response to the information of the target commodity input by the user includes;

[0015] Take values for the parameters in the policy price type in the target price table based on the policy price type and the policy access order to obtain the corresponding parameter values;

[0016] Through the policy calculation method, calculate the price of the target commodity according to the information of the target commodity input by the user and the parameter values.

[0017] In a possible implementation manner, the taking values for the parameters in the policy price type in the target price table based on the policy price type and the policy access order includes:

[0018] Sort the priorities of the target price table from high to low based on the policy access order to obtain the sorted target price table;

[0019] Take values in the sorted target price table based on the parameters that need to take values in the policy price type and the preset value-taking rules.

[0020] In a possible implementation manner, the policy price type is obtained through the following steps:

[0021] Establish different policy price types according to different business requirements;

[0022] Classify the policy price types according to the categories of the business requirements to obtain the classified policy price types.

[0023] In a possible implementation manner, the searching for the corresponding target price table based on the policy access order includes:

[0024] Build a price table set based on the preset target order;

[0025] Find and determine the corresponding target price list in the set of price lists based on the policy access order.

[0026] In a possible implementation, building the set of price lists based on a preset target order includes:

[0027] Determine the reading conditions for price elements in the price list based on a preset keyword; wherein, the reading conditions include the price list range and the reading order;

[0028] Read the data corresponding to the price elements that match in the preset target order according to the reading conditions to build the set of price lists.

[0029] In a second aspect, an embodiment of the present application further provides a commodity price calculation device, and the device includes:

[0030] A configuration module, configured to display configurable parameters on a configuration interface in response to a user operation; wherein, the parameters are used for price calculation;

[0031] An acquisition module, configured to configure the parameters corresponding to the service requirements on the configuration interface according to the preset service requirements to obtain a corresponding target price calculation method;

[0032] A calculation module, configured to calculate the price of the target commodity based on the target price calculation method in response to the information of the target commodity input by the user.

[0033] In a possible implementation, the acquisition module is specifically configured to:

[0034] Determine the corresponding policy price type according to the preset service requirements; wherein, the policy price type characterizes the parameters that make up the target price calculation method;

[0035] Determine the corresponding policy access order according to the policy price type, and find the corresponding target price list based on the policy access order; the target price list includes at least one price list, and the price list is the price list of the target commodity; the policy access order characterizes the indexing rule of the price list, and one policy access order maintains at least one price list;

[0036] Determine the corresponding policy calculation method according to the policy price type and the preset calculation logic;

[0037] Compose the corresponding target price calculation method based on the policy calculation method, the policy price type, the policy access order, and the target price list.

[0038] In a possible implementation, the calculation module is specifically configured to:

[0039] Obtain the parameter values corresponding to the parameters in the policy price type from the target price list based on the policy price type and the policy access order;

[0040] According to the policy calculation method, calculate the price of the target commodity based on the information of the target commodity input by the user and the parameter values.

[0041] In a possible implementation manner, the calculation module is specifically configured to:

[0042] Sort the priorities of the target price list from high to low based on the policy access order to obtain a sorted target price list;

[0043] Obtain values from the sorted target price list based on the parameters that need to be valued in the policy price type and the preset value-taking rules.

[0044] In a possible implementation manner, the policy price type is obtained through the following steps:

[0045] Establish different policy price types according to different business requirements;

[0046] Classify the policy price types according to the categories of the business requirements to obtain classified policy price types.

[0047] In a possible implementation manner, the obtaining module is specifically configured to:

[0048] Build a price list set based on a preset target order;

[0049] Search for and determine the corresponding target price list in the price list set based on the policy access order.

[0050] In a possible implementation manner, the obtaining module is specifically configured to:

[0051] Determine the reading conditions of the price elements in the price list based on a preset keyword; wherein, the reading conditions include the price list range and the reading order;

[0052] Read the data matching the price elements in a preset target order according to the reading conditions to build a price list set.

[0053] In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a storage medium, and a bus. The storage medium stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the storage medium through the bus, and the processor executes the machine-readable instructions to perform the steps of the commodity price calculation method according to any item in the first aspect.

[0054] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps of the commodity price calculation method according to any one of the first aspect.

[0055] An embodiment of the present application provides a commodity price calculation method, device, electronic device and storage medium. In response to a user's operation, parameters that can be configured are displayed on a configuration interface, and parameters corresponding to service requirements are configured on the configuration interface according to preset service requirements to obtain a corresponding target price calculation method. In response to information of a target commodity input by the user, the price of the target commodity is calculated based on the target price calculation method. In this application, by configuring parameters corresponding to service requirements on the configuration interface according to preset service requirements to obtain a corresponding target price calculation method, and calculating the price of the target commodity based on the target price calculation method, it can be applicable to a variety of complex service scenarios, improving the comprehensiveness of commodity price calculation and also enhancing the popularity of this price calculation method.

[0056] To make the above objects, features and advantages of the present application more obvious and understandable, the following specifically gives preferred embodiments and, in conjunction with the accompanying drawings, detailed descriptions are as follows. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] To more clearly illustrate the technical solutions of the embodiments of the present application, the following will briefly introduce the drawings required to be used in the embodiments. It should be understood that the following drawings only show some embodiments of the present application and should not be regarded as limiting the scope. For those of ordinary skill in the art, without creative efforts, other relevant drawings can also be obtained based on these drawings.

[0058] Figure 1 is a flowchart of a commodity price calculation method according to an embodiment of the present application;

[0059] Figure 2 is a flowchart of a commodity price calculation method according to another embodiment of the present application;

[0060] Figure 3 is a schematic diagram of the background configuration of the policy price type;

[0061] Figure 4 is a schematic diagram of the background configuration of the price list;

[0062] Figure 5 is a schematic diagram of the background configuration of the policy access sequence;

[0063] Figure 6 is a schematic diagram of the background configuration of the policy calculation method;

[0064] Figure 7It is a schematic diagram of the background configuration of the commodity price calculation method;

[0065] Figure 8 It is a flowchart of the commodity price calculation method according to another embodiment of the present application;

[0066] Figure 9 It is a schematic diagram of commodity price calculation;

[0067] Figure 10 It is a schematic structural diagram of the commodity price calculation device according to an embodiment of the present application;

[0068] Figure 11 It is a schematic structural diagram of an electronic device according to an embodiment of the present application. Detailed implementation manners

[0069] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the accompanying drawings in the present application are only for the purposes of illustration and description, and are not used to limit the protection scope of the present application. Additionally, it should be understood that the schematic drawings are not drawn to scale. The flowcharts used in the present application illustrate the operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical context relationships may be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.

[0070] In addition, the described embodiments are only some of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but only represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present application.

[0071] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the features stated thereafter, but does not exclude the addition of other features.

[0072] Considering that in the software for order management, the calculation of commodity prices is a core function, the sales and purchases of commodities are the operations with the largest data volume, and the calculation of prices for commodities involved directly affects the sales profit and procurement cost of the enterprise. At present, the applicable scenarios in traditional commodity price calculation methods are relatively simple, making it difficult to handle price calculations in complex scenarios. Their comprehensiveness and flexibility are average, resulting in relatively average popularity of this price calculation method. To address this problem, the present application provides a commodity price calculation method, device, electronic device, and storage medium. The host computer generates and sends a monitoring script to the target device, enabling the target device to run the monitoring script through a monitoring tool and obtain the operation result. When it is determined that there is a target fault in the operation result, the corresponding fault information is obtained and displayed on the interface, avoiding the generation of a huge amount of data, reducing the complexity of commodity price calculation in the target device, and having a relatively short test time, thereby improving the test efficiency.

[0073] It should be noted that the present application can be applied to the order management software of various terminal devices, and can be specifically set according to actual situations.

[0074] Figure 1 is a flowchart of a commodity price calculation method according to an embodiment of the present application. As Figure 1 shown, the commodity price calculation method of the embodiment of the present application may specifically include:

[0075] S101, in response to a user's selection operation, display the configurable parameters on the configuration page.

[0076] It should be noted that the present application can be applied to the software of various terminal devices. For example, for order management software, the present application describes it taking order management software as an example, but this is not a limitation thereto, and it can be specifically set according to actual situations.

[0077] In the embodiment of the present application, the user is the person who executes the commodity price calculation process. For example, an implementation consultant. The configuration interface is the visual background configuration interface of the software that executes the commodity price calculation. For example, the background configuration interface of order management software. In response to a series of operations performed by the user on this configuration interface, such as selection operations, click operations, and input operations, etc., the configuration interface displays the corresponding configurable parameters, and the parameters are used for price calculation, that is, various configured parameters that can be used for price calculation are displayed on the configuration page for the user to perform subsequent parameter configuration.

[0078] S102, configure the parameters corresponding to the business requirements on the configuration page according to the preset business requirements to obtain the corresponding target price calculation method.

[0079] In the embodiments of the present application, the business requirement is the requirement preset by an enterprise for calculating the price of a commodity. According to the preset business requirement, parameters corresponding to the business requirement are configured in the configuration interface, so as to obtain the corresponding target price calculation method for subsequent processing.

[0080] S103. In response to the information of the target commodity input by the user, calculate the price of the target commodity based on the target price calculation method.

[0081] It should be noted that the price of the target commodity calculated in the present application may include data related to price in a narrow sense, such as the transaction price, tax amount, net value, marginal profit, credit control amount, etc.

[0082] In the embodiments of the present application, the target commodity is the commodity for which the price is to be calculated, and the information is the information of the commodity. For example, the unit price of the commodity. After the user inputs the information of the target commodity, the target price calculation method obtained based on the above steps can calculate the price of the target commodity.

[0083] The commodity price calculation method provided by the embodiments of the present application generates a monitoring script for the target device and sends the monitoring script to the target device, so that the target device silently runs the monitoring script in the system background through a pre-installed monitoring tool and obtains the running result of the monitoring script. The running result is sent to the host computer through the monitoring tool; after receiving the running result, it is determined whether there is a keyword corresponding to the target fault in the running result; if so, it is determined that the target device has the target fault corresponding to the keyword, and the corresponding fault information is obtained according to the running result and displayed on the interface. In the commodity price calculation method of the present application, the host computer generates and sends a monitoring script to the target device, so that the target device runs the monitoring script through the monitoring tool and obtains the running result, and obtains the corresponding fault information to be displayed on the interface when it is determined that there is a target fault in the running result, avoiding the generation of a huge amount of data, reducing the complexity of calculating the commodity price in the target device, and having a short test time, thereby improving the test efficiency.

[0084] Further, as Figure 2 shown, step S102 in the above embodiment, "Configure the parameters corresponding to the business requirement in the configuration interface according to the preset business requirement to obtain the corresponding target price calculation method", may specifically include the following steps:

[0085] S201. Determine the corresponding policy price type according to the preset business requirement.

[0086] In the embodiments of the present application, the policy price type characterizes the parameters that make up the target price calculation method. Based on the preset business requirement, the corresponding policy price type is determined for subsequent processing.

[0087] It should be noted that the policy price type is obtained through the following steps:

[0088] Establish different policy price types according to different business requirements; classify the policy price types according to the categories of business requirements to obtain the classified policy price types.

[0089] Among them, different policy price types can be established in advance according to business requirements. After establishing the policy price types, classify the policy price types according to the categories of business requirements, so as to determine the corresponding policy price types according to business requirements subsequently.

[0090] It should also be noted that the policy price type includes attribute types. Figure 3 As a schematic diagram of the background configuration of the policy price type, such as Figure 3 shown, the attribute types corresponding to the policy price type include policy access sequence parameters, calculation type parameters, condition type parameters, type attribute parameters, modification control parameters, and level ladder parameters, etc. It is not difficult to see that the calculation type parameters include price type, discount type, surcharge type, tax type, etc., the condition type parameters include quantity type, percentage type, formula type, tax-included percentage type, etc., the type attribute parameters include formula type and cost type, etc., the modification control parameters include can be modified manually and cannot be modified manually, and the level ladder parameters include ascending ladder and no ladder. For example, when the policy price type is "company recommended selling price", the corresponding attribute types are "policy access sequence 1, price type, quantity type, cannot be modified manually, ascending ladder". Those skilled in the art can understand that when the policy price type is net value, obviously it needs to be calculated based on a formula, so the corresponding condition type parameter is the formula type, and others will not be elaborated.

[0091] S202. Determine the corresponding policy access sequence according to the policy price type, and search for the corresponding target price list based on the policy access sequence.

[0092] In the embodiment of the present application, the target price list includes at least one price list. The price list is the price list of the target commodity. The policy access sequence represents the index rule of the target price list. One policy access sequence maintains at least one price list, and further determines the policy access sequence corresponding to the policy price type according to the policy price type determined in step S201. Among them, each price list contains different data elements and is applicable to different business scenarios. For example, Figure 4 As a schematic diagram of the background configuration of the price list, such as Figure 4 shown, for example, in price list 1, the data sources included in this price list 1 are "company, channel, customer, product, price".

[0093] It should be noted that this application does not limit the specific method of finding the corresponding target price list based on the policy access order too much, and it can be set according to the actual situation.

[0094] In some embodiments, a price list set is built based on a preset target order, and the corresponding target price list is found and determined in the price list set based on the policy access order. Among them, the target order includes a sales order and a purchase order, and the price list is composed of the most basic data sources in the sales order and the purchase order. It should be noted that in the logic of the policy access order, the software searches and confirms the required target price list in a certain order.

[0095] Optionally, when building the price list set based on the preset target order, the reading conditions of the price elements in the price list are determined based on the preset keywords, and the data corresponding to the matching price elements is read in the preset target order to build the price list set. Among them, the reading conditions include the price list range and the reading order. For example, the reading conditions of the price elements are determined through a set of preset keywords, and the matching data is read in the target order. In addition, the business values of the price elements can be maintained. It can be understood that the price list set can be freely built according to business requirements.

[0096] It should be noted that each policy access order can include multiple different price lists. For example, Figure 5 is a schematic diagram of the background configuration of the policy access order. As Figure 5 shown, Price List 1, Price List 2, and Price List 3 represent multiple different price lists.

[0097] For example, continuing as above Figure 3 shown, when the policy price type is "percentage discount", the corresponding policy access order parameter can be determined as "Policy Access Order 1", thereby determining the policy access order corresponding to this policy price type.

[0098] S203, determine the corresponding policy calculation method according to the policy price type and the preset calculation logic.

[0099] In the embodiments of this application, the calculation logic is the processing logic for calculating the commodity price preset in the software underlying code. The corresponding policy calculation method is determined according to the policy price type determined in step S201 and the preset calculation logic for subsequent processing.

[0100] It should be noted that multiple policy price types can be combined and the priority of calculation can be sorted, and then the corresponding policy calculation method is determined in combination with the preset calculation logic.

[0101] It should also be noted that the policy calculation method includes at least one of the policy calculation parameters and the policy calculation formula. For example,Figure 6 Schematic diagram of the background configuration of the policy calculation method, as Figure 6 shown, the policy calculation parameters include mandatory input parameters, other control parameters, financial accounting codes, etc. Among them, the mandatory input parameter indicates whether it is a mandatory input parameter, and the policy calculation formula includes a demand formula, a calculation formula, etc. For example, when the policy price type is "net value", the corresponding policy calculation parameter is the main business income code, and the corresponding policy calculation formulas are Formula 3 and Formula 7.

[0102] S204. Based on the policy calculation method, policy price type, policy access sequence, and target price table, a corresponding target price calculation method is formed.

[0103] In the embodiments of the present application, the policy calculation method, policy price type, policy access sequence, and target price table obtained based on the above steps S201, S202, and S203 form a corresponding target price calculation method. For example, as Figure 7 shown.

[0104] Further, as Figure 8 shown, step S103 in the above embodiments, "responding to the information of the target commodity input by the user, calculating the price of the target commodity based on the target price calculation method", may specifically include the following steps:

[0105] S801. Based on the policy price type and policy access sequence, values are taken for the parameters in the policy price type in the target price table to obtain corresponding parameter values.

[0106] In the embodiments of the present application, based on the policy price type and policy access sequence obtained in the above embodiments, values are taken for various parameters in the policy price type in the target price table to obtain various parameter values.

[0107] It should be noted that the present application does not overly limit the specific manner of taking values in the target price table, and it can be set according to the actual situation.

[0108] As a possible implementation manner, the priorities of the target price table are sorted from high to low based on the policy access sequence; values are taken in the sorted target price table based on the parameters that need to take values in the policy price type and the preset value-taking rules. In response to all parameter value-taking being successful, the value-taking stops. Among them, the value-taking rule is a rule for taking values for parameters set in advance. For example, first take the value corresponding to the highest priority. When the value cannot be obtained, take values downward. When a value is obtained from the price table with a higher priority, the subsequent price tables will no longer take values. For example, as Figure 5As shown, the price list is sorted by priority in the order of the priority step numbers, with the priority decreasing gradually from high to low, and the business granularity becoming coarser and coarser. In this way, the sorted target price lists 1, 2, 3, etc. are obtained. Continuing as Figure 4 As shown, for example, for the parameters that need to be valued in the policy price type, first obtain the values of these parameters from the price list 1. If a certain parameter value is obtained from the price list 1, then no further value is obtained from the price list 2. If a certain parameter value is not obtained from the price list 1, then continue to obtain the value of this parameter from the price list 2. When all parameter values are successfully obtained, the value obtaining stops.

[0109] S802, through the policy calculation method, calculates the price of the target commodity according to the information and parameter values of the target commodity input by the user.

[0110] In the embodiment of the present application, according to the information and parameter values of the target commodity input by the user, the price of the target commodity is calculated based on the policy calculation method obtained in the above embodiment.

[0111] For example, as Figure 9 As shown, after inputting the information of the target commodity, that is, the unit price, the policy calculation method calculates the transaction price, tax amount, net value, marginal profit, credit control amount, etc. of the target commodity according to the calculation logic preset in the code and in combination with the parameters set in the policy price type.

[0112] Figure 10 is a flowchart of a commodity price calculation device according to an embodiment of the present application. As Figure 10 As shown, the commodity price calculation device 1000 in the embodiment of the present application may specifically include:

[0113] A configuration module 1001, configured to display the configurable parameters on the configuration interface in response to the user's operation; wherein, the parameters are used for price calculation.

[0114] An acquisition module 1002, configured to configure the parameters corresponding to the business requirements on the configuration interface according to the preset business requirements to obtain the corresponding target price calculation method.

[0115] A calculation module 1003, configured to calculate the price of the target commodity based on the target price calculation method in response to the information of the target commodity input by the user.

[0116] In a possible implementation manner, the acquisition module 1002 is specifically configured to:

[0117] Determine the corresponding policy price type according to the preset business requirements; wherein, the policy price type represents the parameters that make up the target price calculation method;

[0118] Determine the corresponding policy access order according to the policy price type, and search for the corresponding target price list based on the policy access order; the target price list includes at least one price list, and the price list is the price list of the target commodity; the policy access order represents the index rule of the price list, and one policy access order maintains at least one price list;

[0119] Determine the corresponding policy calculation method according to the policy price type and the preset calculation logic;

[0120] Based on the policy calculation method, the policy price type, the policy access order, and the target price list, form the corresponding target price calculation method.

[0121] In a possible implementation manner, the calculation module 1003 is specifically configured to:

[0122] Based on the policy price type and the policy access order, obtain the corresponding parameter value by taking values for the parameters in the policy price type in the target price list;

[0123] Through the policy calculation method, calculate the price of the target commodity according to the information of the target commodity input by the user and the parameter value.

[0124] In a possible implementation manner, the calculation module 1003 is specifically configured to:

[0125] Sort the priorities of the target price list from high to low based on the policy access order to obtain the sorted target price list;

[0126] Based on the parameters that need to take values in the policy price type and the preset value-taking rules, take values in the sorted target price list.

[0127] In a possible implementation manner, the policy price type is obtained through the following steps:

[0128] Establish different policy price types according to different business requirements;

[0129] Classify the policy price types according to the categories of business requirements to obtain the classified policy price types.

[0130] In a possible implementation manner, the acquisition module 1002 is specifically configured to:

[0131] Build a price list set based on the preset target order;

[0132] Search for and determine the corresponding target price list in the price list set based on the policy access order.

[0133] In a possible implementation manner, the acquisition module 1002 is specifically configured to:

[0134] Determine the reading conditions for price elements in the price list based on preset keywords; among them, the reading conditions include the price list range and the reading order;

[0135] Read the data corresponding to the matching price elements in the preset target order according to the reading conditions to build a price list set.

[0136] The commodity price calculation device provided by the embodiment of the present application, in response to the user's operation, displays configurable parameters on the configuration interface, configures the parameters corresponding to the service requirements on the configuration interface according to the preset service requirements to obtain the corresponding target price calculation method, and in response to the information of the target commodity input by the user, calculates the price of the target commodity based on the target price calculation method. The commodity price calculation device of the present application, by configuring the parameters corresponding to the service requirements on the configuration interface according to the preset service requirements to obtain the corresponding target price calculation method, and calculating the price of the target commodity based on the target price calculation method, can be applicable to a variety of complex service scenarios, improving the comprehensiveness of commodity price calculation and also improving the popularization of this price calculation method.

[0137] As Figure 11 shown, an electronic device 1100 provided by the embodiment of the present application includes: a processor 1101, a memory 1102, and a bus. The memory 1102 stores machine-readable instructions executable by the processor 1101. When the electronic device runs, the processor 1101 communicates with the memory 1102 through the bus, and the processor 1101 executes the machine-readable instructions to perform the steps of the commodity price calculation method as described above.

[0138] Specifically, the above-mentioned memory 1102 and processor 1101 can be general-purpose memory and processor, which are not specifically limited here. When the processor 1101 runs the computer program stored in the memory 1102, it can execute the above-mentioned commodity price calculation method.

[0139] Corresponding to the above commodity price calculation method, the embodiment of the present application also provides a computer-readable storage medium. A computer program is stored on the computer-readable storage medium, and when the computer program is run by a processor, it executes the steps of the above commodity price calculation method.

[0140] Those skilled in the art can clearly understand that for the convenience and brevity of description, the specific working processes of the systems and devices described above can refer to the corresponding processes in the method embodiments, and will not be elaborated herein. In several embodiments provided in the present application, it should be understood that the disclosed systems, devices, and methods can be implemented in other ways. The device embodiments described above are merely illustrative. For example, the division of the modules is only a logical functional division, and there can be other division methods in actual implementation. For another example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed couplings or direct couplings or communication connections to each other can be through some communication interfaces. The indirect couplings or communication connections of the devices or modules can be in electrical, mechanical, or other forms.

[0141] The modules described as separate components may or may not be physically separated. The components shown as modules may or may not be physical units, that is, they can be located in one place or distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0142] In addition, in each embodiment of the present application, the functional units can be integrated in a processing unit, or each unit can exist physically alone, or two or more units can be integrated in one unit.

[0143] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such an understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the deployment method described in each embodiment of the present application. The foregoing storage medium includes: various media such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical discs that can store program codes.

[0144] The above is only the specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present application, and all should be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for calculating commodity prices, It is characterized in that The method comprises: In response to the user's operation, configurable parameters are displayed on the configuration interface; wherein the parameters are used for price calculation; According to the preset business requirements, configure the parameters corresponding to the business requirements in the configuration interface to obtain the corresponding target price calculation method; In response to the information of the target product input by the user, the price of the target product is calculated based on the target price calculation method.

2. The method according to claim 1, It is characterized in that The configuring parameters corresponding to the business requirements on the configuration interface according to the preset business requirements to obtain the corresponding target price calculation method includes: Determine the corresponding strategy price type according to the preset business requirements; wherein the strategy price type represents the parameters constituting the target price calculation method; Determine a corresponding policy access sequence according to the policy price type, and search for a corresponding target price table based on the policy access sequence; the target price table includes at least one price table, which is a price table of a target commodity; the policy access sequence represents an index rule of the price table, and one policy access sequence maintains at least one price table; Determine the corresponding strategy calculation method according to the strategy price type and the preset calculation logic; A corresponding target price calculation method is formed based on the policy calculation method, the policy price type, the policy access sequence and the target price table.

3. The method according to claim 2, It is characterized in that The step of calculating the price of the target product based on the target price calculation method in response to the information of the target product input by the user comprises: Based on the policy price type and the policy access order, the parameters in the policy price type are taken from the target price table to obtain corresponding parameter values; Through the strategy calculation method, the price of the target commodity is calculated according to the information of the target commodity input by the user and the parameter value.

4. The method according to claim 3, It is characterized in that The step of obtaining values ​​of parameters in the policy price type in the target price table based on the policy price type and the policy access order includes: sorting the priorities of the target price list from high to low based on the policy access order to obtain a sorted target price list; The values ​​are taken from the sorted target price table based on the parameters that need to be taken values ​​in the strategy price type and the preset value taking rules.

5. The method according to claim 2, It is characterized in that The strategy price type is obtained by following the steps below: Establish different strategic price types according to different business needs; The policy price types are classified according to the categories of the business requirements to obtain classified policy price types.

6. The method according to claim 2, It is characterized in that The searching for the corresponding target price table based on the policy access order includes: Build a price table set based on preset target orders; The corresponding target price table is searched and determined in the price table set based on the policy access order.

7. The method according to claim 6, It is characterized in that The step of building a price list set based on a preset target order includes: Determining the reading conditions of the price elements in the price list based on the preset keywords; wherein the reading conditions include the price list range and the reading order; According to the reading condition, data corresponding to the matching price element is read in the preset target order to build a price table set.

8. A commodity price calculation device, It is characterized in that The device comprises: A configuration module, used to display configurable parameters on a configuration interface in response to user operations; wherein the parameters are used for price calculation; An acquisition module, used to configure parameters corresponding to the business requirements in the configuration interface according to preset business requirements, so as to obtain a corresponding target price calculation method; The calculation module is used to calculate the price of the target product based on the target price calculation method in response to the information of the target product input by the user.

9. An electronic device, It is characterized in that include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the commodity price calculation method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the commodity price calculation method according to any one of claims 1 to 7 are executed.