CN107958365B - Material information changing method and device, storage medium and electronic equipment - Google Patents

Material information changing method and device, storage medium and electronic equipment Download PDF

Info

Publication number
CN107958365B
CN107958365B CN201810046187.7A CN201810046187A CN107958365B CN 107958365 B CN107958365 B CN 107958365B CN 201810046187 A CN201810046187 A CN 201810046187A CN 107958365 B CN107958365 B CN 107958365B
Authority
CN
China
Prior art keywords
identifier
target material
identification
information
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201810046187.7A
Other languages
Chinese (zh)
Other versions
CN107958365A (en
Inventor
马静一
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810046187.7A priority Critical patent/CN107958365B/en
Publication of CN107958365A publication Critical patent/CN107958365A/en
Application granted granted Critical
Publication of CN107958365B publication Critical patent/CN107958365B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/08Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
    • G06Q10/087Inventory or stock management, e.g. order filling, procurement or balancing against orders
    • G06Q10/0875Itemisation or classification of parts, supplies or services, e.g. bill of materials

Landscapes

  • Business, Economics & Management (AREA)
  • Economics (AREA)
  • Engineering & Computer Science (AREA)
  • Marketing (AREA)
  • Quality & Reliability (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Operations Research (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application discloses a material information changing method, a material information changing device, a storage medium and electronic equipment, wherein a material changing request is received at first, and the material changing request carries an equipment identifier of the electronic equipment of a material to be changed; then acquiring a material information set corresponding to the equipment identifier according to the material change request; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, the material information set is changed according to the target material identification, the target material position identification, the material change type and the changed material information, so that the automatic change of the material information of the electronic equipment is realized, the complicated manual operation is avoided, and the efficiency of the change of the material information of the electronic equipment can be improved.

Description

Material information changing method and device, storage medium and electronic equipment
Technical Field
The application relates to the technical field of material information maintenance, in particular to a material information changing method, a device, a storage medium and electronic equipment.
Background
In the process from design to factory shipment, electronic equipment is usually debugged many times, and each debugging means a change of a corresponding material, that is, material information (such as specification, model and quantity of the material) of the electronic equipment needs to be changed. At present, a change list (or a project change list, a project change notice, etc.) is usually adopted to represent the change of the material information, and the change is implemented according to the content in the change list, so the operation of the whole change process is relatively complicated, and the change efficiency of the material information is low.
Disclosure of Invention
The embodiment of the application provides a material information changing method and device, a storage medium and electronic equipment, and the efficiency of material information changing can be improved.
In a first aspect, an embodiment of the present application provides a method for changing material information, including:
receiving a material change request, wherein the material change request carries an equipment identifier of electronic equipment of a material to be changed;
acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information;
acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification;
acquiring a material change type corresponding to the target material identifier according to the target material position identifier;
and changing the material information set according to the target material identification, the target material position identification, the material change type and the changed material information.
In a second aspect, an embodiment of the present application provides a material information changing apparatus, including:
the request receiving module is used for receiving a material change request, and the material change request carries an equipment identifier of the electronic equipment of the material to be changed;
the set acquisition module is used for acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information;
the information acquisition module is used for acquiring a target material position identifier needing to be changed, a target material identifier needing to be changed corresponding to the target material position identifier and changed material information corresponding to the target material identifier;
the type obtaining module is used for obtaining a material change type corresponding to the target material identifier according to the target material position identifier;
and the information change module is used for changing the material information set according to the target material identifier, the target material position identifier, the material change type and the changed material information.
In a third aspect, a storage medium provided in an embodiment of the present application has a computer program stored thereon, and when the computer program runs on a computer, the computer is caused to execute a material information changing method provided in any embodiment of the present application.
In a fourth aspect, the electronic device provided in this embodiment of the present application includes a processor and a memory, where the memory has a computer program, and the processor is configured to execute the material information changing method provided in any embodiment of the present application by calling the computer program.
The method comprises the steps of firstly receiving a material change request, wherein the material change request carries an equipment identifier of electronic equipment of a material to be changed; then, acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, the material information set is changed according to the target material identification, the target material position identification, the material change type and the changed material information, so that the automatic change of the material information of the electronic equipment is realized, the complicated manual operation is avoided, and the efficiency of the change of the material information of the electronic equipment can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a material information changing method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a material information changing method according to an embodiment of the present application;
fig. 3 is another schematic flow chart of a material information changing method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a material information changing device according to an embodiment of the present application;
fig. 5 is a schematic view of a detailed structure of an information obtaining module of a material information changing apparatus according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device provided in an embodiment of the present application;
fig. 7 is another schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Referring to the drawings, wherein like reference numbers refer to like elements, the principles of the present application are illustrated as being implemented in a suitable computing environment. The following description is based on illustrated embodiments of the application and should not be taken as limiting the application with respect to other embodiments that are not detailed herein.
In the description that follows, specific embodiments of the present application will be described with reference to steps and symbols executed by one or more computers, unless otherwise indicated. Accordingly, these steps and operations will be referred to, several times, as being performed by a computer, the computer performing operations involving a processing unit of the computer in electronic signals representing data in a structured form. This operation transforms the data or maintains it at locations in the computer's memory system, which may be reconfigured or otherwise altered in a manner well known to those skilled in the art. The data maintains a data structure that is a physical location of the memory that has particular characteristics defined by the data format. However, while the principles of the application have been described in language specific to above, it is not intended to be limited to the specific form set forth herein, and it will be recognized by those of ordinary skill in the art that various of the steps and operations described below may be implemented in hardware.
The term module, as used herein, may be considered a software object executing on the computing system. The various components, modules, engines, and services described herein may be viewed as objects implemented on the computing system. The apparatus and method described herein may be implemented in software, but may also be implemented in hardware, and are within the scope of the present application.
The terms "first", "second", and "third", etc. in this application are used to distinguish between different objects and not to describe a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or modules is not limited to only those steps or modules listed, but rather, some embodiments may include other steps or modules not listed or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
An execution main body of the material information changing method may be the material information changing device provided in the embodiment of the present application, or an electronic device integrated with the material information changing device, where the material information changing device may be implemented in a hardware or software manner. The electronic device may be a smart phone, a tablet computer, a palm computer, a notebook computer, or a desktop computer.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a material information changing method provided in an embodiment of the present application, taking an example that a material information changing device is integrated in an electronic device, the electronic device may first receive a material changing request, where the material changing request carries an equipment identifier of the electronic device of a material to be changed; then, acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, changing the material information set according to the target material identification, the target material position identification, the material change type and the changed material information.
Specifically, referring to fig. 1, taking a material information change example of a certain model of electronic device with a project code number "P-26", an engineer may input a material change request to the electronic device in various ways, where the material change request carries a device identifier of the electronic device to which the material is to be changed, and the project code number may be used as the device identifier, i.e., "P-26"; after receiving a material change request input by an engineer, the electronic equipment acquires a material information set corresponding to an equipment identifier "P-26" (the material information set may include multiple display forms, such as may be displayed in a form of a bill of materials) according to the material change request, where the material information set includes material identifiers of materials of the electronic equipment to be changed (the material identifiers may be displayed in multiple forms, such as a material code), material position identifiers corresponding to the material identifiers (the material position identifiers may be displayed in multiple forms, such as a position number, a station, a position code, and the like), and material information (the material information includes a material name, a specification model, and the like of the material); after a material information set of the electronic equipment of the material to be changed is obtained, further obtaining a target material position identifier needing to be changed, a target material identifier needing to be changed corresponding to the target material identifier and changed material information corresponding to the target material identifier; after a target material position identification needing to be changed, a target material identification needing to be changed and corresponding changed material information are obtained, a material change type corresponding to the target material identification is obtained according to the target material position identification (the material change type comprises deletion and addition); after the material change type corresponding to the target material identification is obtained, the material information set of the electronic equipment of the material to be changed can be correspondingly changed according to the target material identification, the target material position identification, the material change type and the changed material information.
Referring to fig. 2, fig. 2 is a schematic flow chart of a material information changing method according to an embodiment of the present disclosure. The specific process of the material information changing method provided by the embodiment of the application can be as follows:
201. and receiving a material change request, wherein the material change request carries the equipment identifier of the electronic equipment of the material to be changed.
The electronic equipment can receive material change requests input in various different forms. For example, the electronic device is provided with a material information change interface, and can trigger and display the material information change interface according to a preset trigger operation, and the material information change interface is provided with a change control; when needed, an engineer can execute the preset triggering operation on the electronic equipment to trigger the electronic equipment to display a material information change interface, and input a material change request through a change control input by the material information change interface; correspondingly, when the electronic device receives a preset trigger operation, a material information change interface is displayed, and when a change control set on the material information change interface is triggered, an identification information input interface is displayed, wherein the identification information input interface is provided with an identification input interface (the identification input interface can be displayed in various forms, such as an input frame, a drop-down frame, an input button and the like) and a 'confirmation control'; then, the electronic device receives the input device identifier through the identifier input interface (the device identifier is selected according to actual needs, for example, a project code in a research and development process may be used as the device identifier); when the input equipment identification is received and the control is confirmed to be triggered, the electronic equipment takes the equipment identification as the equipment identification of the electronic equipment of the material to be changed, a material change request is generated, and the generated material change request carries the equipment identification of the electronic equipment of the material to be changed.
202. And acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information.
In the embodiment of the application, after receiving an input material change request, the electronic device extracts the device identifier carried by the material change request, and obtains a material information set corresponding to the device identifier according to the device identifier.
The material information set may have a plurality of presentation forms, which is not specifically limited in the present application, for example, the material information set may be a bill of material data table. For example, referring to table 1 below, as shown in table 1, the material identifier is a material code shown in table 1 and is used to uniquely represent a certain material, the material position identifier is a bit number shown in table 1 and is used to describe a specific material using position of the material, and the material information includes information such as a serial number, a version, a specification model, a unit, a quantity, a manufacturer, and remarks.
Serial number Version(s) Material code Name of material Specification and model Unit of Number of Number of bits Manufacturer(s) Remarks for note
TABLE 1
The method for acquiring the material information sets is different according to different maintaining and storing modes of the material information sets.
For example, when a manufacturer maintains a material information set by using a product life cycle management system, the electronic device may generate a material information set acquisition request carrying the device identifier according to a command format of the life cycle management system; then, sending the material information set acquisition request to a life cycle management system, and instructing the life cycle management system to return a material information set corresponding to the equipment identifier according to the material information set acquisition request; and then, the electronic equipment receives the material information set returned by the life cycle management system.
For another example, the material information set is stored locally in the electronic device, and after the device identifier carried in the material change request is extracted, the electronic device further finds the storage path of the material information set corresponding to the device identifier according to the mapping relationship between the device identifier and the material information set; and then, extracting a material information set corresponding to the equipment identifier according to the searched storage path.
It should be noted that the product lifecycle management system is developed based on the product data management technology, and is a functional extension of the product data management technology. The product data management technology is a technology for managing all product-related information (such as material information, configuration information, image-text file information, structure information, authority information and the like) and all product-related processes. The product life cycle management system expands the management concept to the whole enterprise and even to the supply chain, and comprises advanced coordination and project management concepts.
Optionally, in an embodiment, after the material information set is obtained, a filling specification check may be performed on the obtained material information set, and after the check is passed, the subsequent steps are performed.
Taking a material information set as a bill of material data table as an example, the filling specification check performed on the material information set comprises the following steps:
checking whether there is a line whose content is repeated;
checking whether repeated material position identification exists;
checking the quantity of the material position identifications corresponding to the material identifications, and judging whether the quantity of the material position identifications corresponding to the material identifications is the same as one of the quantity of the material information corresponding to the material identifications;
checking whether the material information of the missing filling exists, and the like.
In addition, when the inspection fails, the items which are not in the standard are marked in the material information set, and the items which are in the standard are displayed in a distinguishing mode.
203. And acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification.
After the material information set corresponding to the equipment identifier is obtained according to the material change request, the electronic equipment obtains a target material position identifier needing to be changed, a target material identifier needing to be changed and corresponding changed material information.
In an embodiment, "obtaining a target material location identifier that needs to be changed, a target material identifier that needs to be changed and changed material information corresponding to the target material location identifier" may include:
displaying a material change arrangement table, wherein the material change arrangement table comprises a position identification input interface, a material identification input interface and a material information input interface;
receiving an input material position identification through a position identification input interface, and taking the material position identification received by the position identification input interface as a target material position identification;
receiving an input material identification through a material identification input interface, and taking the material identification received by the material identification input interface as a target material identification;
and receiving the input material information through the material information input interface, and taking the material information received by the material information input interface as the changed material information.
The target material identification which is acquired by the electronic equipment and needs to be changed and the target material identification which corresponds to the target material position identification and the changed material information which corresponds to the target material identification can be input in real time from the outside.
Specifically, when the target material position identification, the target material identification and the changed material information corresponding to the target material position identification and the target material identification are obtained, a material change sorting table is displayed at first, and the material change sorting table comprises a position identification input interface, a material identification input interface and a material information input interface. The display of each input interface in the material change sorting table is not specifically limited here. For example, an input interface in the form of an input box may be employed; as another example, an input interface in the form of input buttons may be employed.
For example, please refer to table 2 below:
number of bits Material code Specification and model
TABLE 2
As shown in table 2, a position identification input interface in the form of an input box is adopted, and a "bit number" is adopted to represent the position identification input interface; a material identification input interface in the form of an input frame is adopted, and a material code is adopted to represent the material identification input interface; the material information input interface in the form of an input frame is adopted, and the specification model is adopted to represent the material information input interface.
It should be noted that, although table 2 only shows one material information input interface of "specification model", it is understood by those skilled in the art that a plurality of different material information input interfaces may be provided in the material change sorting table for receiving different material information.
When the material change sorting table is displayed, corresponding data input from the outside can be received through a plurality of input interfaces provided by the material change sorting table.
Specifically, the position identification input interface receives input material position identification, and when the position identification input interface receives the input material position identification, the material position identification received by the position identification input interface is used as the target material position identification needing to be changed.
The input material identification is received through the material identification input interface, and when the material identification input interface receives the input material identification, the material identification received by the material identification input interface is used as the target material identification needing to be changed.
The material information input interface receives input material information, and when the material information input interface receives the input material information, the material information received by the material information input interface is used as changed material information.
204. And acquiring a material change type corresponding to the target material identifier according to the target material position identifier. In the embodiment of the application, after the target material position identification needing to be changed, the target material identification needing to be changed corresponding to the target material position identification and the changed material information corresponding to the target material position identification are obtained, the electronic equipment can further obtain the material change type corresponding to the target material identification according to the obtained target material position identification. The change type includes addition and deletion, that is, the change type corresponding to a target material identifier may be addition or deletion.
In an embodiment, the material change sorting table further includes a state information input interface in addition to a position identification input interface for receiving a position identification of a target material, a material identification input interface for receiving an identification of the target material, and a material information input interface for receiving changed material information, and the material information change method further includes the following steps:
receiving input state information through a state information input interface, and taking the state information received by the state information input interface as state information of a target material identifier, wherein the state information comprises before change and after change;
the "obtaining the material change type corresponding to the target material identifier according to the target material position identifier" may include:
judging whether a target material position identification exists in the material information set or not;
if the target material identifier exists and the state information of the target material identifier is before changing, determining that the change type corresponding to the target material identifier is deleted;
and if the target material identifier does not exist, and the state information of the target material identifier is changed, determining that the change type corresponding to the target material identifier is newly increased.
The electronic equipment specifically combines the target material position identification and the state information when acquiring the material change type corresponding to the target material identification according to the target material position identification.
Specifically, the electronic device first determines whether a target material position identifier exists in the material information set.
When the target material position identification exists in the material information set, further judging whether the state information corresponding to the target material identification is before change, and when the state information corresponding to the target material identification is before change, determining that the change type corresponding to the target material identification is deleted; when the state information corresponding to the target material identifier is changed, it is indicated that the input data is wrong, and at this time, preset error prompt information may be output, for example, output error prompt information "you are good, input error, please re-input".
When the target material position identification does not exist in the material information set, further judging whether the state information corresponding to the target material identification is changed or not, and when the state information corresponding to the target material identification is changed, determining that the change type corresponding to the target material identification is newly increased; when the state information corresponding to the target material identifier is before change, it is indicated that the input data is wrong, and at this time, preset error prompt information may be output, for example, output error prompt information "you are good, input error, please re-input".
For example, please refer to table 3 below:
Figure BDA0001550979570000101
TABLE 3
As shown in table 3, a position identification input interface in the form of an input box is adopted, and a "bit number" is adopted to represent the position identification input interface; a state information input interface in the form of an input frame is adopted, and a state represents the state information input interface; a material identification input interface in the form of an input frame is adopted, and a material code is adopted to represent the material identification input interface; the material information input interface in the form of an input frame is adopted, and the specification model is adopted to represent the material information input interface.
And when a target material position identifier R1 exists in the material information set and the state information corresponding to the target material identifier Resistor-1 is before change, determining that the change type corresponding to the target material identifier Resistor-1 is deletion.
And when the target material position identifier R1 does not exist in the material information set and the state information corresponding to the target material identifier Resistor-2 is changed, determining that the change type corresponding to the target material identifier Resistor-2 is newly increased.
In an embodiment, the step of determining whether the target material location identifier exists in the material information set may include:
and when the material information set has the target material position identifier, the state information of the first target material identifier is before change, and the state information of the second target material identifier is after change, determining that the material change type corresponding to the first target material identifier is deleted, and determining that the material change type corresponding to the second target material identifier is newly added.
The target material identifiers include a first target material identifier and a second target material identifier, that is, the same target material position identifier corresponds to two target material identifiers, that is, the first target material identifier and the second target material identifier, that is, a material corresponding to a certain material position is changed from one material to another material, for example, a 100 ohm resistance of a certain material position is changed to a 200 ohm resistance.
When the target material position identification exists in the material information set, if the state information corresponding to the first target material identification is different from the state information corresponding to the second target material identification, the change type corresponding to one of the first target material identification and the second target material identification can be determined to be new, and the change type corresponding to the other one of the first target material identification and the second target material identification can be deleted.
Specifically, if the state information corresponding to the first target material identifier is before change and the state information corresponding to the second target material identifier is after change, the material change type corresponding to the first target material identifier can be determined as deleted, and the material change type corresponding to the second target material identifier can be determined as new; and if the state information corresponding to the first target material identifier is after change and the state information corresponding to the second target material identifier is before change, determining that the material change type corresponding to the first target material identifier is new, and determining that the material change type corresponding to the second target material identifier is deleted.
For example, please refer to table 4 below:
Figure BDA0001550979570000111
TABLE 4
As shown in table 4, a position identification input interface in the form of an input box is adopted, and a "bit number" is adopted to represent the position identification input interface; a state information input interface in the form of an input frame is adopted, and a state represents the state information input interface; a material identification input interface in the form of an input frame is adopted, and a material code is adopted to represent the material identification input interface; the material information input interface in the form of an input frame is adopted, and the specification model is adopted to represent the material information input interface.
When a target material position identifier R1 exists in the material information set, determining that the change type corresponding to the first target material identifier R1 is deleted, and determining that the change type corresponding to the second target material identifier R892 is newly added.
205. And changing the material information set according to the target material identification, the target material position identification, the material change type and the changed material information.
In the embodiment of the application, after the change type corresponding to the target material identifier is obtained according to the target material position identifier, the electronic device can change the material information set according to the target material identifier, the target material position identifier, the material change type and the changed material information.
In one embodiment, the material information set includes a material list data table, the material list data table includes a material identifier table entry, a material location identifier table entry, and a material information table entry, "changing the material information set according to the target material identifier, the target material location identifier, the material change type, and the changed material information" may include:
judging whether a target material identifier exists in the material identifier table item or not;
if yes, determining a target sub-table item corresponding to the target material identifier in the material position identifier table item;
when the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the target sub-table item;
and when the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the target sub-table item.
When the change of the material information is executed, whether a target material identifier exists in the material identifier table item is judged firstly.
When the target material identifier exists in the material identifier table entry, a target sub-table entry corresponding to the target material identifier in the material position table entry is further determined, that is, a sub-table entry in the same row as the sub-table entry in which the target material identifier is located in the material position table entry.
Then, if the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the determined target sub-table item; and if the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the determined target sub-table item.
In an embodiment, after determining whether the target material identifier exists in the material identifier table entry, "the method may include:
when the target material identification does not exist in the material identification table item and the change type corresponding to the target material identification is newly increased, determining an associated child table item associated with the target material identification in the material identification table item, wherein the parent material identification of the material identification in the associated child table item is the same as the parent material identification of the target material identification;
respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table items;
and respectively adding the target material identifier, the target material position identifier and the changed material information into the corresponding new addition sub-table items.
When the target material identifier does not exist in the material identifier table entry and the change type corresponding to the target material identifier is newly increased, further determining an associated child table entry associated with the target material identifier in the material identifier table entry, wherein the parent material identifier of the material identifier in the associated child table entry is the same as the parent material identifier of the target material identifier.
And then, according to the determined associated sub-table items, respectively adding one sub-table item in the material identification table item, the material position table item and the material information table item, wherein the sub-table item is respectively used for adding the target material identification, the target material position identification and the changed material information. When the item information table entry includes multiple items corresponding to different items of material information, a new sub-table entry needs to be added to each item information table entry. Specifically, the sub-table entry may be newly added before the associated sub-table entry, or the sub-table entry may be newly added in the associated sub-table entry, or the sub-table entry may be newly added after the associated sub-table entry.
For example, please refer to table 5 below:
material identification Material position identification Material information
Resistor-1 R1 ……
Resistor-2 R2 ……
TABLE 5
Taking the target material identifier as "Resistor-3" and the target material position identifier as "R3" as an example, determining sub-table items where the material identifiers "Resistor-1" and "Resistor-2" are located as associated sub-table items of the target material identifier "Resistor-3".
As shown in Table 6 below, the sub-table entry may be newly added before the associated sub-table entry, and corresponding data may be added.
Material identification Material position identification Material information
Resistor-3 R3 ……
Resistor-1 R1 ……
Resistor-2 R2 ……
TABLE 6
As shown in table 7 below, a sub-table entry may be newly added among the associated sub-table entries, and corresponding data may be added.
Material identification Material position identification Material information
Resistor-1 R1 ……
Resistor-3 R3 ……
Resistor-2 R2 ……
TABLE 7
As shown in Table 8 below, the sub-table entry may be newly added after the sub-table entry is associated, and corresponding data may be added.
Material identification Material position identification Material information
Resistor-1 R1 ……
Resistor-2 R2 ……
Resistor-3 R3 ……
TABLE 8
As can be seen from the above, in the embodiment of the present application, a material change request is received first, where the material change request carries an equipment identifier of an electronic equipment of a material to be changed; then acquiring a material information set corresponding to the equipment identifier according to the material change request; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, the material information set is changed according to the target material identification, the target material position identification, the material change type and the changed material information, so that the automatic change of the material information of the electronic equipment is realized, the complicated manual operation is avoided, and the efficiency of the change of the material information of the electronic equipment can be improved.
The material information modification method of the present application will be further described below on the basis of the methods described in the above embodiments. Referring to fig. 3, the material information changing method may include:
301. and receiving a material change request, wherein the material change request carries the equipment identifier of the electronic equipment of the material to be changed.
The electronic equipment can receive material change requests input in various different forms. For example, the electronic device is provided with a material information change interface, and can trigger and display the material information change interface according to a preset trigger operation, and the material information change interface is provided with a change control; when needed, an engineer can execute the preset triggering operation on the electronic equipment to trigger the electronic equipment to display a material information change interface, and input a material change request through a change control input by the material information change interface; correspondingly, when the electronic device receives a preset trigger operation, a material information change interface is displayed, and when a change control set on the material information change interface is triggered, an identification information input interface is displayed, wherein the identification information input interface is provided with an identification input interface (the identification input interface can be displayed in various forms, such as an input frame, a drop-down frame, an input button and the like) and a 'confirmation control'; then, the electronic device receives the input device identifier through the identifier input interface (the device identifier is selected according to actual needs, for example, a project code in a research and development process may be used as the device identifier); when the input equipment identification is received and the control is confirmed to be triggered, the electronic equipment takes the equipment identification as the equipment identification of the electronic equipment of the material to be changed, a material change request is generated, and the generated material change request carries the equipment identification of the electronic equipment of the material to be changed.
302. And acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier filled in the material identifier table item, a material position identifier filled in the material position identifier and corresponding to the material identifier, and material information filled in the material information table item and corresponding to the material identifier.
In the embodiment of the application, after receiving an input material change request, the electronic device extracts the device identifier carried by the material change request, and obtains a material information set corresponding to the device identifier according to the device identifier.
The material information set may have a plurality of presentation forms, which is not specifically limited in the present application, for example, the material information set may be a bill of material data table. For example, referring to table 1, as shown in table 1, the material identifier is a material code shown in table 1 and is used for uniquely representing a certain material, the material position identifier is a bit number shown in table 1 and is used for describing a specific material using position of the material, and the material information includes information such as a serial number, a version, a specification model, a unit, a quantity, a manufacturer, remarks, and the like.
The method for acquiring the material information sets is different according to different maintaining and storing modes of the material information sets.
For example, when a manufacturer maintains a material information set by using a product life cycle management system, the electronic device may generate a material information set acquisition request carrying the device identifier according to a command format of the life cycle management system; then, sending the material information set acquisition request to a life cycle management system, and instructing the life cycle management system to return a material information set corresponding to the equipment identifier according to the material information set acquisition request; and then, the electronic equipment receives the material information set returned by the life cycle management system.
For another example, the material information set is stored locally in the electronic device, and after the device identifier carried in the material change request is extracted, the electronic device further finds the storage path of the material information set corresponding to the device identifier according to the mapping relationship between the device identifier and the material information set; and then, extracting a material information set corresponding to the equipment identifier according to the searched storage path.
It should be noted that the product lifecycle management system is developed based on the product data management technology, and is a functional extension of the product data management technology. The product data management technology is a technology for managing all product-related information (such as material information, configuration information, image-text file information, structure information, authority information and the like) and all product-related processes. The product life cycle management system expands the management concept to the whole enterprise and even to the supply chain, and comprises advanced coordination and project management concepts.
Optionally, in an embodiment, after the material information set is obtained, a filling specification check may be performed on the obtained material information set, and after the check is passed, the subsequent steps are performed.
Taking a material information set as a bill of material data table as an example, the filling specification check performed on the material information set comprises the following steps:
checking whether there is a line whose content is repeated;
checking whether repeated material position identification exists;
checking the quantity of the material position identifications corresponding to the material identifications, and judging whether the quantity of the material position identifications corresponding to the material identifications is the same as one of the quantity of the material information corresponding to the material identifications;
checking whether the material information of the missing filling exists, and the like.
In addition, when the inspection fails, the items which are not in the standard are marked in the material information set, and the items which are in the standard are displayed in a distinguishing mode.
303. And displaying a material change sorting table, wherein the material change sorting table comprises a position identification input interface, a material information input interface and a state information input interface.
After the material information set corresponding to the equipment identifier is obtained according to the material change request, the electronic equipment obtains a target material position identifier needing to be changed, a target material identifier needing to be changed and corresponding changed material information.
Specifically, when a target material position identifier, a target material identifier and corresponding changed material information are obtained, a material change sorting table is displayed at first, and the material change sorting table comprises a position identifier input interface, a material information input interface and a state information input interface. The display of each input interface in the material change sorting table is not specifically limited here. For example, an input interface in the form of an input box may be employed; as another example, an input interface in the form of input buttons may be employed.
For example, referring to table 3, as shown in table 3, a position identification input interface in the form of an input frame is adopted, and a "bit number" is adopted to represent the position identification input interface; a state information input interface in the form of an input frame is adopted, and a state represents the state information input interface; a material identification input interface in the form of an input frame is adopted, and a material code is adopted to represent the material identification input interface; the material information input interface in the form of an input frame is adopted, and the specification model is adopted to represent the material information input interface.
It should be noted that, although table 3 only shows one material information input interface of "specification model", it is understood by those skilled in the art that a plurality of different material information input interfaces may be provided in the material change sorting table for receiving different material information.
304. Receiving an input material position identification through a position identification input interface, and taking the material position identification received by the position identification input interface as a target material position identification; receiving an input material identification through a material identification input interface, and taking the material identification received by the material identification input interface as a target material identification; receiving input material information through a material information input interface, and taking the material information received by the material information input interface as changed material information; and receiving input state information through a state information input interface, and taking the state information received by the state information input interface as state information of the target material identifier, wherein the state information comprises before change and after change.
When the material change sorting table is displayed, corresponding data input from the outside can be received through a plurality of input interfaces provided by the material change sorting table.
Specifically, the position identification input interface receives input material position identification, and when the position identification input interface receives the input material position identification, the material position identification received by the position identification input interface is used as the target material position identification needing to be changed.
The input material identification is received through the material identification input interface, and when the material identification input interface receives the input material identification, the material identification received by the material identification input interface is used as the target material identification needing to be changed.
The material information input interface receives input material information, and when the material information input interface receives the input material information, the material information received by the material information input interface is used as changed material information.
The method comprises the steps of receiving input state information through a state information input interface, and taking the state information received by the state information input interface as state information of a target material identifier when the state information input interface receives the input state information, wherein the state information comprises before change and after change.
305. And judging whether the target material position identification exists in the material information set.
In the embodiment of the application, after the target material position identification needing to be changed, the target material identification needing to be changed corresponding to the target material position identification and the changed material information corresponding to the target material position identification are obtained, the electronic equipment can further obtain the material change type corresponding to the target material identification according to the obtained target material position identification. The change type includes addition and deletion, that is, the change type corresponding to a target material identifier may be addition or deletion.
Specifically, the electronic device first determines whether a target material position identifier exists in the material information set.
306. When a target material position identifier exists in the material information set, if the state information of the target material identifier is before change, determining that the change type corresponding to the target material identifier is deleted; and if the target material identification comprises a first target material identification and a second target material identification, and the state information of the first target material identification is before change and the state information of the second target material identification is after change, determining that the material change type corresponding to the first target material identification is deleted, and determining that the material change type corresponding to the second target material identification is newly added.
When the target material position identification exists in the material information set, further judging whether the state information corresponding to the target material identification is before change, and when the state information corresponding to the target material identification is before change, determining that the change type corresponding to the target material identification is deleted; when the state information corresponding to the target material identifier is changed, it is indicated that the input data is wrong, and at this time, preset error prompt information may be output, for example, output error prompt information "you are good, input error, please re-input".
For example, referring to table 3, when a target material location identifier "R1" exists in the material information set and the state information corresponding to the target material identifier "Resistor-1" is before change, it is determined that the change type corresponding to the target material identifier "Resistor-1" is deleted.
When the target material position identifiers exist in the material information set and include a first target material identifier and a second target material identifier (that is, the same target material position identifier corresponds to two target material identifiers, that is, a first target material identifier and a second target material identifier, that is, a material corresponding to a certain material position is changed from one material to another material, for example, a 100 ohm resistance of a certain material position is changed into a 200 ohm resistance), if the state information corresponding to the first target material identifier and the second target material identifier is different, it may be determined that the change type corresponding to one of the first target material identifier and the second target material identifier is newly added, and the other corresponding change type is deleted.
Specifically, if the state information corresponding to the first target material identifier is before change and the state information corresponding to the second target material identifier is after change, the material change type corresponding to the first target material identifier can be determined as deleted, and the material change type corresponding to the second target material identifier can be determined as new; and if the state information corresponding to the first target material identifier is after change and the state information corresponding to the second target material identifier is before change, determining that the material change type corresponding to the first target material identifier is new, and determining that the material change type corresponding to the second target material identifier is deleted.
For example, referring to table 4, when a target material location identifier "R1" exists in the material information set, it is determined that the change type corresponding to the first target material identifier "Resistor-1" is deleted, and it is determined that the change type corresponding to the second target material identifier "Resistor-2" is newly added.
307. And when the target material position identification does not exist in the material information set and the state information of the target material identification is changed, determining that the change type corresponding to the target material identification is new.
When the target material position identification does not exist in the material information set, further judging whether the state information corresponding to the target material identification is changed or not, and when the state information corresponding to the target material identification is changed, determining that the change type corresponding to the target material identification is newly increased; when the state information corresponding to the target material identifier is before change, it is indicated that the input data is wrong, and at this time, preset error prompt information may be output, for example, output error prompt information "you are good, input error, please re-input".
For example, referring to table 3, when the target material location identifier "R1" does not exist in the material information set and the state information corresponding to the target material identifier "Resistor-2" is changed, it is determined that the change type corresponding to the target material identifier "Resistor-2" is newly added.
308. And judging whether the target material identifier exists in the material identifier table item, if so, executing the step 309, otherwise, executing the step 310.
When the change of the material information is executed, whether a target material identifier exists in the material identifier table item is judged firstly.
309. Determining a target sub-table item corresponding to the target material identifier in the material position identifier table item, and adding the target material position identifier to the target sub-table item when the change type corresponding to the target material identifier is newly increased; and when the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the target sub-table item.
When the target material identifier exists in the material identifier table entry, a target sub-table entry corresponding to the target material identifier in the material position table entry is further determined, that is, a sub-table entry in the same row as the sub-table entry in which the target material identifier is located in the material position table entry.
Then, if the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the determined target sub-table item; and if the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the determined target sub-table item.
310. And when the change type corresponding to the target material identifier is newly increased, determining an associated child table item associated with the target material identifier in the table item of the material identifier, wherein the parent material identifier of the material identifier in the associated child table item is the same as the parent material identifier of the target material identifier.
When the target material identifier does not exist in the material identifier table entry and the change type corresponding to the target material identifier is newly increased, further determining an associated child table entry associated with the target material identifier in the material identifier table entry, wherein the parent material identifier of the material identifier in the associated child table entry is the same as the parent material identifier of the target material identifier.
311. And respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table items, and respectively adding the target material identification, the target material position identification and the changed material information into the corresponding added sub-table items.
And respectively adding a sub-table item in the material identification table item, the material position table item and the material information table item according to the determined associated sub-table item, wherein the sub-table item is respectively used for adding the target material identification, the target material position identification and the changed material information. When the item information table entry includes multiple items corresponding to different items of material information, a new sub-table entry needs to be added to each item information table entry. Specifically, the sub-table entry may be newly added before the associated sub-table entry, or the sub-table entry may be newly added in the associated sub-table entry, or the sub-table entry may be newly added after the associated sub-table entry.
For example, referring to table 5, taking the target material identifier "Resistor-3" and the target material location identifier "R3" as an example, the sub-table items where the material identifiers "Resistor-1" and "Resistor-2" are located are determined to be the associated sub-table items of the target material identifier "Resistor-3".
As shown in Table 6, a new sub-entry may be added before the associated sub-entry and corresponding data may be added.
As shown in table 7, a sub-table entry may be newly added among the associated sub-table entries, and corresponding data may be added.
As shown in Table 8, a sub-entry may be newly added after the sub-entry is associated and corresponding data is added.
As can be seen from the above, in the embodiment of the present application, a material change request is received first, where the material change request carries an equipment identifier of an electronic equipment of a material to be changed; then acquiring a material information set corresponding to the equipment identifier according to the material change request; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, the material information set is changed according to the target material identification, the target material position identification, the material change type and the changed material information, so that the automatic change of the material information of the electronic equipment is realized, the complicated manual operation is avoided, and the efficiency of the change of the material information of the electronic equipment can be improved.
In one embodiment, a material information changing device is further provided. Referring to fig. 4, fig. 4 is a schematic structural diagram of a material information changing device according to an embodiment of the present application. The material information changing device is applied to an electronic device, and includes a request receiving module 401, a set obtaining module 402, an information obtaining module 403, a type obtaining module 404, and an information changing module, as follows:
a request receiving module 401, configured to receive a material change request, where the material change request carries an equipment identifier of an electronic device that needs to change a material;
a set obtaining module 402, configured to obtain a material information set corresponding to the device identifier according to the material change request, where the material information set includes a material identifier, a material position identifier corresponding to the material identifier, and material information;
an information obtaining module 403, configured to obtain a target material location identifier that needs to be changed, a target material identifier that needs to be changed and changed material information corresponding to the target material location identifier;
a type obtaining module 404, configured to obtain, according to the target material position identifier, a material change type corresponding to the target material identifier;
and the information change module 405 is configured to change the material information set according to the target material identifier, the target material position identifier, the material change type, and the changed material information.
In an embodiment, referring to fig. 5, the information obtaining module 403 may include:
the display submodule 4031 is used for displaying a material change sorting table, and the material change sorting table comprises a position identification input interface, a material identification input interface and a material information input interface;
a receiving sub-module 4032 for:
receiving an input material position identification through a position identification input interface, and taking the material position identification received by the position identification input interface as a target material position identification;
receiving an input material identification through a material identification input interface, and taking the material identification received by the material identification input interface as a target material identification;
and receiving the input material information through the material information input interface, and taking the material information received by the material information input interface as the changed material information.
In an embodiment, the material change sorting table further includes a status information input interface, and the receiving sub-module 4032 is further configured to:
receiving input state information through a state information input interface, and taking the state information received by the state information input interface as state information of a target material identifier, wherein the state information comprises before change and after change;
a type obtaining module 404, further configured to:
judging whether a target material position identification exists in the material information set or not;
if the target material identifier exists and the state information of the target material identifier is before changing, determining that the change type corresponding to the target material identifier is deleted;
and if the target material identifier does not exist, and the state information of the target material identifier is changed, determining that the change type corresponding to the target material identifier is newly increased.
In an embodiment, the target material identifier includes a first target material identifier and a second target material identifier, and the type obtaining module 404 is further configured to:
when the material information set has the target material position identification, the state information of the first target material identification is before change, and the state information of the second target material identification is after change, determining that the material change type corresponding to the first target material identification is deleted, and determining that the material change type corresponding to the second target material identification is newly increased.
In an embodiment, the material information set includes a material list data table, the material list data table includes a material identifier table entry, a material location identifier table entry, and a material information table entry, and the information change module 405 is further configured to:
judging whether a target material identifier exists in the material identifier table item or not;
if yes, determining a target sub-table item corresponding to the target material identifier in the material position identifier table item;
when the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the target sub-table item;
and when the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the target sub-table item.
In an embodiment, the information change module 405 is further configured to:
when the target material identification does not exist in the material identification table item and the change type corresponding to the target material identification is newly increased, determining an associated child table item associated with the target material identification in the material identification table item, wherein the parent material identification of the material identification in the associated child table item is the same as the parent material identification of the target material identification;
respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table items;
and respectively adding the target material identifier, the target material position identifier and the changed material information into the corresponding new addition sub-table items.
In specific implementation, the modules may be implemented as independent entities, or may be combined arbitrarily to be implemented as the same or several entities, and specific implementation of the units may refer to the foregoing embodiments, which are not described herein again.
As can be seen from the above, the material information changing apparatus in this embodiment may receive, by the request receiving module 401, a material change request, where the material change request carries an equipment identifier of an electronic device of a material to be changed; a set obtaining module 402 obtains a material information set corresponding to the device identifier according to the material change request; an information acquisition module 403 acquires a target material position identifier to be changed, a target material identifier to be changed corresponding to the target material position identifier, and changed material information corresponding to the target material identifier; the type obtaining module 404 obtains a material change type corresponding to the target material identifier according to the target material position identifier; the information change module 405 changes the material information set according to the target material identifier, the target material position identifier, the material change type and the changed material information, so that automatic change of the material information of the electronic equipment is realized, complicated manual operation is avoided, and the efficiency of changing the material information of the electronic equipment can be improved.
The embodiment of the application also provides the electronic equipment. Referring to fig. 6, an electronic device 500 includes a processor 501 and a memory 502. The processor 501 is electrically connected to the memory 502.
The processor 500 is a control center of the electronic device 500, and is connected to various parts of the whole electronic device through various interfaces and lines, and executes various functions of the electronic device 500 and processes data by running or loading a computer program stored in the memory 502 and calling data stored in the memory 502, thereby implementing automatic change of the material information of the electronic device.
The memory 502 may be used to store software programs and modules, and the processor 501 executes various functional applications and data processing by operating the computer programs and modules stored in the memory 502. The memory 502 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, a computer program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data created according to use of the electronic device, and the like. Further, the memory 502 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, the memory 502 may also include a memory controller to provide the processor 501 with access to the memory 502.
In this embodiment, the processor 501 in the electronic device 500 loads instructions corresponding to one or more processes of the computer program into the memory 502, and the processor 501 runs the computer program stored in the memory 502, so as to implement various functions as follows:
receiving a material change request, wherein the material change request carries an equipment identifier of the electronic equipment of the material to be changed;
acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information;
acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification;
acquiring a material change type corresponding to the target material identifier according to the target material position identifier;
and changing the material information set according to the target material identification, the target material position identification, the material change type and the changed material information.
In some embodiments, when acquiring the target material location identifier that needs to be changed, the target material identifier that needs to be changed and the changed material information corresponding to the target material location identifier, the processor 501 may specifically execute the following steps:
displaying a material change arrangement table, wherein the material change arrangement table comprises a position identification input interface, a material identification input interface and a material information input interface;
receiving an input material position identification through a position identification input interface, and taking the material position identification received by the position identification input interface as a target material position identification;
receiving an input material identification through a material identification input interface, and taking the material identification received by the material identification input interface as a target material identification;
and receiving the input material information through the material information input interface, and taking the material information received by the material information input interface as the changed material information.
In some embodiments, the material change sorting table further includes a status information input interface, and the processor 501 may further perform the following steps:
receiving input state information through a state information input interface, and taking the state information received by the state information input interface as state information of a target material identifier, wherein the state information comprises before change and after change;
when the material change type corresponding to the target material identifier is obtained according to the target material position identifier, the processor 501 may specifically execute the following steps:
judging whether a target material position identification exists in the material information set or not;
if the target material identifier exists and the state information of the target material identifier is before changing, determining that the change type corresponding to the target material identifier is deleted;
and if the target material identifier does not exist, and the state information of the target material identifier is changed, determining that the change type corresponding to the target material identifier is newly increased.
In some embodiments, the target material identifier includes a first target material identifier and a second target material identifier, and after determining whether the target material location identifier exists in the material information set, the processor 501 may perform the following steps:
when the material information set has the target material position identification, the state information of the first target material identification is before change, and the state information of the second target material identification is after change, determining that the material change type corresponding to the first target material identification is deleted, and determining that the material change type corresponding to the second target material identification is newly increased.
In some embodiments, the material information set includes a material list data table, where the material list data table includes a material identifier table entry, a material location identifier table entry, and a material information table entry, and when the material information set is changed according to the target material identifier, the target material location identifier, the material change type, and the changed material information, the processor 501 may further specifically perform the following steps:
judging whether a target material identifier exists in the material identifier table item or not;
if yes, determining a target sub-table item corresponding to the target material identifier in the material position identifier table item;
when the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the target sub-table item;
and when the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the target sub-table item.
In some embodiments, after determining whether the target material identifier exists in the material identifier table entry, the processor 501 may further specifically perform the following steps:
when the target material identification does not exist in the material identification table item and the change type corresponding to the target material identification is newly increased, determining an associated child table item associated with the target material identification in the material identification table item, wherein the parent material identification of the material identification in the associated child table item is the same as the parent material identification of the target material identification;
respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table items;
and respectively adding the target material identifier, the target material position identifier and the changed material information into the corresponding new addition sub-table items.
As can be seen from the above, in the embodiment of the present application, a material change request is received first, where the material change request carries an equipment identifier of an electronic equipment for a material to be changed; then acquiring a material information set corresponding to the equipment identifier according to the material change request; then, acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; then, according to the target material position identification, acquiring a material change type corresponding to the target material identification; and finally, the material information set is changed according to the target material identification, the target material position identification, the material change type and the changed material information, so that the automatic change of the material information of the electronic equipment is realized, the complicated manual operation is avoided, and the efficiency of the change of the material information of the electronic equipment can be improved.
Referring to fig. 7, in some embodiments, the electronic device 500 may further include: a display 503, radio frequency circuitry 504, audio circuitry 505, and a power supply 506. The display 503, the rf circuit 504, the audio circuit 505, and the power source 506 are electrically connected to the processor 501.
The display 503 may be used to display information entered by or provided to the user as well as various graphical user interfaces, which may be made up of graphics, text, icons, video, and any combination thereof. The Display 503 may include a Display panel, and in some embodiments, the Display panel may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The rf circuit 504 may be used for transceiving rf signals to establish wireless communication with a network device or other electronic devices via wireless communication, and for transceiving signals with the network device or other electronic devices.
The audio circuit 505 may be used to provide an audio interface between a user and an electronic device through a speaker, microphone.
The power source 506 may be used to power various components of the electronic device 500. In some embodiments, power supply 506 may be logically coupled to processor 501 through a power management system, such that functions of managing charging, discharging, and power consumption are performed through the power management system.
Although not shown in fig. 7, the electronic device 500 may further include a camera, a bluetooth module, and the like, which are not described in detail herein.
An embodiment of the present application further provides a storage medium, where the storage medium stores a computer program, and when the computer program runs on a computer, the computer is caused to execute the material information changing method in any one of the above embodiments, for example: receiving a material change request, wherein the material change request carries an equipment identifier of electronic equipment of a material to be changed; acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier and material information; acquiring a target material position identification needing to be changed, a target material identification needing to be changed corresponding to the target material position identification and changed material information corresponding to the target material identification; acquiring a material change type corresponding to the target material identifier according to the target material position identifier; and changing the material information set according to the target material identification, the target material position identification, the material change type and the changed material information.
In the embodiment of the present application, the storage medium may be a magnetic disk, an optical disk, a Read Only Memory (ROM), a Random Access Memory (RAM), or the like.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
It should be noted that, for the material information changing method in the embodiment of the present application, it can be understood by a person skilled in the art that all or part of the process of implementing the material information changing method in the embodiment of the present application can be completed by controlling the relevant hardware through a computer program, where the computer program can be stored in a computer readable storage medium, such as a memory of an electronic device, and executed by at least one processor in the electronic device, and during the execution process, the process of the embodiment of the material information changing method can be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, etc.
In the material information changing apparatus according to the embodiment of the present application, each functional module may be integrated in one processing chip, or each module may exist alone physically, or two or more modules are integrated in one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a stand-alone product, may also be stored in a computer readable storage medium, such as a read-only memory, a magnetic or optical disk, or the like.
The above detailed description is provided for a material information changing method, device, storage medium and electronic device provided in the embodiments of the present application, and a specific example is applied in the present application to explain the principle and implementation manner of the present application, and the description of the above embodiments is only used to help understanding the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (8)

1. A material information changing method is characterized by comprising the following steps:
receiving a material change request, wherein the material change request carries an equipment identifier of electronic equipment of a material to be changed;
acquiring a material information set corresponding to the equipment identifier according to the material change request, wherein the material information set comprises a material identifier, a material position identifier corresponding to the material identifier, material information and a material list data table, and the material list data table comprises a material identifier table item, a material position identifier table item and a material information table item;
acquiring a target material position identification needing to be changed, a target material identification needing to be changed and corresponding changed material information of the target material position identification, and state information of the target material identification, wherein the state information comprises before change and after change;
judging whether the target material position identification exists in the material information set or not;
if the target material identifier exists and the state information of the target material identifier is before change, determining that the change type corresponding to the target material identifier is deleted;
if the target material identifier does not exist, and the state information of the target material identifier is changed, determining that the change type corresponding to the target material identifier is newly increased;
when the target material position identification exists in the material information set, if the target material identification comprises a first target material identification and a second target material identification, and the state information of the first target material identification is before change and the state information of the second target material identification is after change, determining that the material change type corresponding to the first target material identification is deleted, and determining that the material change type corresponding to the second target material identification is newly added;
judging whether the target material identifier exists in the material identifier table item or not;
if the target material identifier does not exist, and the change type corresponding to the target material identifier is newly increased, determining an associated child table item associated with the target material identifier in the table item of the material identifier, wherein the parent material identifier of the material identifier in the associated child table item is the same as the parent material identifier of the target material identifier;
respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table item;
and respectively adding the target material identifier, the target material position identifier and the changed material information into corresponding new addition sub-table items.
2. The material information changing method according to claim 1, wherein the step of obtaining the target material position identifier to be changed, the target material identifier to be changed corresponding to the target material position identifier, and the changed material information corresponding to the target material position identifier comprises:
displaying a material change arrangement table, wherein the material change arrangement table comprises a position identification input interface, a material identification input interface and a material information input interface;
receiving an input material position identification through the position identification input interface, and taking the material position identification received by the position identification input interface as the target material position identification;
receiving an input material identification through the material identification input interface, and taking the material identification received by the material identification input interface as the target material identification;
and receiving the input material information through the material information input interface, and taking the material information received by the material information input interface as the changed material information.
3. The material information changing method according to claim 2, wherein the material change collation table further includes a status information input interface, and the step of obtaining the status information of the target material identifier includes:
and receiving input state information through the state information input interface, and taking the state information received by the state information input interface as the state information of the target material identifier.
4. The method for changing material information according to claim 3, wherein after the step of determining whether the target material identifier exists in the material identifier table entry, the method further comprises:
if yes, determining a target sub-table item corresponding to the target material identifier in the material position identifier table item;
when the change type corresponding to the target material identifier is newly increased, adding the target material position identifier into the target sub-table item;
and when the change type corresponding to the target material identifier is deletion, deleting the target material position identifier from the target sub-table entry.
5. The material information changing method according to claim 3, wherein after determining whether the target material position identifier exists in the material information set, the method further comprises:
and outputting preset error prompt information when the target material position identification exists in the material information set and the state information of the target material identification is changed, or when the target material position identification does not exist in the material information set and the state information of the target material identification is before the change.
6. A material information changing apparatus, comprising:
the request receiving module is used for receiving a material change request, and the material change request carries an equipment identifier of the electronic equipment of the material to be changed;
the collection obtaining module is used for obtaining a material information collection corresponding to the equipment identifier according to the material change request, wherein the material information collection comprises a material identifier, a material position identifier corresponding to the material identifier, material information and a bill of material data table, and the bill of material data table comprises a material identifier table item, a material position identifier table item and a material information table item;
the information acquisition module is used for acquiring a target material position identifier needing to be changed, a target material identifier needing to be changed corresponding to the target material position identifier, changed material information corresponding to the target material position identifier and state information of the target material identifier, wherein the state information comprises before change and after change;
the type acquisition module is used for judging whether the target material position identification exists in the material information set or not; if the target material identifier exists and the state information of the target material identifier is before change, determining that the change type corresponding to the target material identifier is deleted; if the target material identifier does not exist, and the state information of the target material identifier is changed, determining that the change type corresponding to the target material identifier is newly increased; when the target material position identification exists in the material information set, if the target material identification comprises a first target material identification and a second target material identification, and the state information of the first target material identification is before change and the state information of the second target material identification is after change, determining that the material change type corresponding to the first target material identification is deleted, and determining that the material change type corresponding to the second target material identification is newly added;
the information change module is used for judging whether the target material identifier exists in the material identifier table item; if the target material identifier does not exist, and the change type corresponding to the target material identifier is newly increased, determining an associated child table item associated with the target material identifier in the table item of the material identifier, wherein the parent material identifier of the material identifier in the associated child table item is the same as the parent material identifier of the target material identifier; respectively adding one sub-table item in the material identification table item, the material position identification table item and the material information table item according to the associated sub-table item; and respectively adding the target material identifier, the target material position identifier and the changed material information into corresponding new addition sub-table items.
7. A storage medium having stored thereon a computer program, characterized in that when the computer program runs on a computer, it causes the computer to execute a material information changing method according to any one of claims 1 to 5.
8. An electronic device comprising a processor and a memory, the memory storing a computer program, wherein the processor is configured to execute the material information modification method according to any one of claims 1 to 5 by calling the computer program.
CN201810046187.7A 2018-01-17 2018-01-17 Material information changing method and device, storage medium and electronic equipment Expired - Fee Related CN107958365B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810046187.7A CN107958365B (en) 2018-01-17 2018-01-17 Material information changing method and device, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810046187.7A CN107958365B (en) 2018-01-17 2018-01-17 Material information changing method and device, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN107958365A CN107958365A (en) 2018-04-24
CN107958365B true CN107958365B (en) 2021-02-02

Family

ID=61956291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810046187.7A Expired - Fee Related CN107958365B (en) 2018-01-17 2018-01-17 Material information changing method and device, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN107958365B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109636279B (en) * 2018-12-03 2020-07-24 深圳市展祥通信科技有限公司 Material detection method and device, electronic equipment and storage medium
CN112508470A (en) * 2019-09-16 2021-03-16 比亚迪股份有限公司 Method and device for changing bill of material, storage medium and electronic equipment
CN113034068B (en) * 2019-12-25 2023-04-07 深圳市富泰通国际物流有限公司 Warehouse management system and warehouse management method
CN111597777B (en) * 2020-05-15 2023-06-02 上海电机系统节能工程技术研究中心有限公司 Material data processing method and device and electronic equipment
CN116128415B (en) * 2022-12-07 2023-09-19 北京国电通网络技术有限公司 Power equipment information sending method and device, electronic equipment and computer medium
CN115700669B (en) * 2022-12-30 2023-04-14 广州智造家网络科技有限公司 Material difference list generation method, electronic equipment and computer storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534524A (en) * 2003-03-28 2004-10-06 鸿富锦精密工业(深圳)有限公司 BOM table automatic comparison system and method
CN1940980A (en) * 2005-09-27 2007-04-04 鸿富锦精密工业(深圳)有限公司 Material inventory changing system and method
CN102298739A (en) * 2011-08-19 2011-12-28 迈普通信技术股份有限公司 Method for changing bill of materials (BOM) and apparatus thereof
CN102479205A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Generation method and system of change order
CN103093038A (en) * 2012-12-31 2013-05-08 深圳市九洲电器有限公司 Updating method and updating device for bills of material (BOMs)
CN107464075A (en) * 2017-07-07 2017-12-12 甘棠软件系统(上海)有限公司 Update the method and apparatus of BOM

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534524A (en) * 2003-03-28 2004-10-06 鸿富锦精密工业(深圳)有限公司 BOM table automatic comparison system and method
CN1940980A (en) * 2005-09-27 2007-04-04 鸿富锦精密工业(深圳)有限公司 Material inventory changing system and method
CN102479205A (en) * 2010-11-26 2012-05-30 金蝶软件(中国)有限公司 Generation method and system of change order
CN102298739A (en) * 2011-08-19 2011-12-28 迈普通信技术股份有限公司 Method for changing bill of materials (BOM) and apparatus thereof
CN103093038A (en) * 2012-12-31 2013-05-08 深圳市九洲电器有限公司 Updating method and updating device for bills of material (BOMs)
CN107464075A (en) * 2017-07-07 2017-12-12 甘棠软件系统(上海)有限公司 Update the method and apparatus of BOM

Also Published As

Publication number Publication date
CN107958365A (en) 2018-04-24

Similar Documents

Publication Publication Date Title
CN107958365B (en) Material information changing method and device, storage medium and electronic equipment
CN109408136B (en) Information processing method, information processing apparatus, storage medium, and electronic device
CN107943683B (en) Test script generation method and device, electronic equipment and storage medium
CN108512695A (en) The method and device of interim card is applied in monitoring
CN108549568B (en) Application entry processing method and device, storage medium and electronic equipment
CN106354458B (en) Double-screen display method and device
CN105404585A (en) Method and apparatus for acquiring code coverage rate
CN106502703B (en) Function calling method and device
CN109062467A (en) Split screen application switching method, device, storage medium and electronic equipment
CN112870724B (en) Resource management method and device, storage medium and electronic equipment
CN103455348A (en) Subarea adjustment method, device, terminal, server and system
CN111078556B (en) Application testing method and device
CN109215130A (en) A kind of product repairing method and system based on augmented reality
CN106484771B (en) Different information file generated and application process, device
CN108073495A (en) The localization method and device of application crash reason
CN108334330B (en) Application unloading method and device, storage medium and electronic equipment
CN110378107A (en) A kind of method and relevant apparatus of installation kit detection
CN104063400A (en) Data search method and data search device
CN104598542A (en) Display method and device for multimedia information
CN107122177A (en) Method for showing interface and device
CN107423291A (en) A kind of data translating method and client device
CN105631059A (en) Data processing method, data processing device and data processing system
CN108874653A (en) Task test method, test machine, shared server and readable storage medium storing program for executing
CN110532231A (en) File polling method, file polling device and terminal device
CN112073505B (en) Method for unloading on cloud server, control device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210202