Method and device for additional recording of resource data and computing equipment
Through the resource supplementary entry template in Excel format, the user fills in the resource data in the template, and after the system parses it, it realizes the one-time supplementary entry of multiple resource projects, which solves the problem of low efficiency of supplementary entry of resource data in the existing technology and improves the efficiency of supplementary entry. efficiency.
Patent Information
- Application Number
- CN202410800001.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-20
- Publication Date
- 2024-10-11
AI Technical Summary
The efficiency of resource data supplementary registration in the existing technology is low, and each supplementary registration page needs to be called and filled in one by one, which consumes a lot of time.
A resource supplementary entry template in Excel format is used. Users fill in resource data in the template. Different rows or columns in the template correspond to different equipment or resource projects. After the system parses, the data of multiple resource projects can be supplemented at one time.
It greatly improves the efficiency of supplementary registration of resource data, reduces the page call and fill-in processing time, and realizes the simultaneous supplementary registration of multiple resource projects.
Smart Images

Figure CN118761394A_ABST
Abstract
Description
Technical Field
[0001] One or more embodiments of the present invention relate to network communication technology, and more particularly, to a method, apparatus, and computing device for supplementing resource data. Background Art
[0002] With the development of the Internet, various management systems have emerged to facilitate people's daily lives. However, in response to complex needs and business scenarios, the way a system is displayed and used in different scenarios will vary depending on the deployment environment. Therefore, for many management systems, it is necessary to provide order resource data, such as the size of the cloud server's system disk, the type of cloud server's system disk or the memory size, so that the management system can be maintained based on these order resource data in the future.
[0003] Some resource data must be manually supplemented by the management personnel in the management system. In the prior art, the resource data supplementation method includes: presetting various supplementation pages for various resource data of a device, and when it is necessary to supplement various resource data for a device, calling the supplementation page corresponding to each resource data, and then supplementing each resource data item by item and page by page.
[0004] It can be seen that in the prior art, for each device and each system resource, the relevant supplementary recording pages must be called one by one, and the supplementary recording must be performed page by page. Therefore, the efficiency of supplementary recording is extremely low. Summary of the invention
[0005] One or more embodiments of the present invention describe a method, an apparatus, and a computing device for supplementing resource data, which greatly improves the efficiency of supplementing resource data.
[0006] According to a first aspect, a method for supplementing resource data is provided, wherein a resource supplement template in Excel format is set; the resource supplement template includes at least one first Sheet page of an Excel table, and at least one row / column of cells in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items; the method further includes:
[0007] Receive resource supplement requests from users;
[0008] Providing the resource supplementary recording template in the Excel format to the user, so that the user can fill in the resource data of the resource item that needs to be supplemented at the corresponding position of the cell corresponding to the resource item that needs to be supplemented in the at least one first Sheet page according to the resource item that needs to be supplemented;
[0009] Receive the resource supplement template form in Excel format filled out and uploaded by the user;
[0010] According to the template format of the resource supplementary recording template in the preset Excel format, the resource supplementary recording template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0011] After receiving the resource supplement request from the user and before providing the resource supplement template in Excel format to the user, the method further includes:
[0012] According to the user information carried in the resource supplementary recording request, it is determined whether the user has the resource supplementary recording authority. If yes, the step of providing the resource supplementary recording template in the Excel format to the user continues.
[0013] In each first Sheet page of the resource supplement template in the Excel format, a row / column of cells corresponding to a resource item corresponds to different devices in different columns / rows, so that in the same first Sheet page, for a row / column of cells corresponding to a resource item, the user fills in resource data corresponding to the resource item of different devices in different columns / rows;
[0014] The step of parsing the resource supplement template form filled in and uploaded by the user to obtain resource data of at least one resource item of at least one device includes:
[0015] In the same first Sheet page, for a row / column of cells corresponding to a resource item, parse the resource data corresponding to the resource item of different devices filled in different columns / rows, so as to obtain the resource data corresponding to the resource item that needs to be supplemented for multiple different devices.
[0016] The resource supplement template in the Excel format includes a plurality of first Sheet pages, and different devices correspond to different first Sheet pages;
[0017] The step of parsing the resource supplement template form filled in and uploaded by the user to obtain resource data of at least one resource item of at least one device includes:
[0018] Each first Sheet page is parsed separately, and according to the current device corresponding to the first Sheet page, the resource data filled in from the row / column cells corresponding to a resource item in the first Sheet page is parsed to obtain the resource data corresponding to the resource item that needs to be supplemented for the current device.
[0019] The resource supplement template in Excel format further includes a second Sheet page, which includes remarks and / or descriptions of at least one resource item in the first Sheet page.
[0020] The method further includes: adding a template import button and a template download button on the system's automated supplementary recording page;
[0021] The providing the resource supplementary recording template in Excel format to the user comprises: receiving a click command of the user on a template download button on the automatic supplementary recording page, executing a method call interface, and downloading the resource supplementary recording template in Excel format returned by the backend by the browser, so as to provide the resource supplementary recording template in Excel format to the user;
[0022] The receiving of the resource supplementary recording template form in Excel format filled out and uploaded by the user includes: receiving a click command of the user on the template import button on the automated supplementary recording page, and then receiving the resource supplementary recording template form in Excel format filled out and uploaded by the user.
[0023] Different business scenarios correspond to different resource supplement templates in Excel format;
[0024] The providing the user with the resource supplement template in Excel format includes:
[0025] Determine the business scenario of the current deployment based on the received resource supplement request;
[0026] Get the resource supplement template in Excel format corresponding to the currently deployed business scenario;
[0027] When the master account is enabled, the master account sheet page information is added to the resource supplement template in Excel format. The user needs to fill in the master account information corresponding to the data to be imported in the template.
[0028] After obtaining resource data of at least one resource item of at least one device that needs to be supplemented, at least one of the following items is further included:
[0029] For the resource data of at least one resource item of at least one device obtained, the required items thereof shall be checked to be non-empty;
[0030] For the resource data of at least one resource item of at least one device obtained, in addition to checking whether the product type, project data, business system data, and department information are not empty, a check is also performed to check whether they exist in the query database;
[0031] Perform approval verification for order approval scenarios.
[0032] According to a second aspect, a device for supplementing resource data is provided, the device comprising:
[0033] A user interface module configured to receive a resource supplement request sent by a user;
[0034] The template download processing module is configured to provide a resource supplement template in Excel format to the user, wherein the resource supplement template includes at least one first Sheet page of an Excel table, wherein at least one row / column of cells in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items; the resource supplement template in Excel format is provided for the user to fill in the resource data of the resource item currently required to be supplemented at the corresponding position of the cell corresponding to the resource item currently required to be supplemented in the at least one first Sheet page according to the resource item currently required to be supplemented;
[0035] The template import processing module is configured to receive the resource supplement template form in Excel format filled out and uploaded by the user;
[0036] The supplementary information acquisition module is configured to parse the resource supplementary information template form filled out and uploaded by the user according to the template format of the resource supplementary information template in a preset Excel format, and obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0037] According to a third aspect, a computing device is provided, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method described in any embodiment of the present invention is implemented.
[0038] In the method and device for supplementing resource data provided by the embodiment of the present invention, when it is necessary to supplement resource data, the user only needs to fill in the resource data of the resource item that needs to be supplemented at the corresponding position of the cell corresponding to the resource item that needs to be supplemented in the first sheet page according to the resource item that needs to be supplemented. There is no need to call the supplement page for each device one by one, nor is there any need to call the supplement page for each resource item one by one, thereby greatly reducing the processing time of calling the page and filling in the page. In addition, the method of the embodiment of the present invention utilizes the characteristics of the Excel table to make a resource supplement template, so that based on the characteristics of the Excel table, different devices and / or different resource items can be filled in at the same time in the same resource supplement template, and the subsequent system can directly parse the filled resource supplement template table, that is, it realizes the one-time supplement of resource data of multiple resource items, thereby greatly improving the efficiency of supplementing resource data. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0040] Figure 1 It is a flow chart of a method for supplementing resource data in one embodiment of the present invention.
[0041] Figure 2 It is a flow chart of a method for supplementing resource data in another embodiment of the present invention.
[0042] Figure 3 It is a schematic diagram of the structure of a device for supplementing resource data in one embodiment of the present invention. DETAILED DESCRIPTION
[0043] In the prior art, for each device and each system resource, the relevant supplementary recording pages must be called one by one, and supplementary recording must be performed page by page, so the supplementary recording efficiency is extremely low. For example, it is necessary to supplement the type and memory size of the system disk of cloud server 1 and the type and image type of the system disk of cloud server 2. In this way, it is necessary to first call the supplementary recording page 1 for the type of the system disk for cloud server 1, enter the type of the system disk of cloud server 1 on the supplementary recording page 1, then call the supplementary recording page 2 for the memory size for cloud server 1, enter the memory size of cloud server 1 on the supplementary recording page 2, then call the supplementary recording page 3 for the type of the system disk, enter the type of the system disk of cloud server 2 on the supplementary recording page 3, then call the supplementary recording page 4 for the image type for cloud server 2, and enter the image type of cloud server 2 on the supplementary recording page 4. It can be seen that in the prior art, each device needs to have its own supplementary recording page, and each resource item (such as memory size, system disk type, etc.) needs to have its own supplementary recording page, and supplementary recording must be performed page by page. The processing of calling pages and filling in pages is time-consuming. When the number of devices and / or resource data that need to be supplemented is large, the time spent on resource data will be unacceptable.
[0044] The solution provided by the present invention is described below in conjunction with the accompanying drawings.
[0045] First of all, it should be noted that the terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "the" and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates otherwise.
[0046] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0047] Figure 1 1 is a flow chart of a method for supplementing resource data in one embodiment of the present invention. The execution subject of the method is a device for supplementing resource data. Figure 1 , the method comprising:
[0048] Step 101: pre-set a resource supplement template in Excel format; the resource supplement template includes at least one first Sheet page of an Excel table, in each first Sheet page at least one row / column of cells corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items.
[0049] Step 103: Receive a resource supplement request from a user.
[0050] Step 105: Provide the resource supplement template in the Excel format to the user, so that the user can fill in the resource data of the resource item that currently needs to be supplemented at the corresponding position of the cell corresponding to the resource item that currently needs to be supplemented in the at least one first Sheet page according to the resource item that currently needs to be supplemented.
[0051] Step 107: Receive the resource supplement template form in Excel format filled out and uploaded by the user.
[0052] Step 109: according to the preset template format of the resource supplementary recording template in Excel format, the resource supplementary recording template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0053] It can be seen that in Figure 1In the method for supplementing resource data in the embodiment of the present invention shown, a resource supplement template in Excel format is used, and the resource supplement template includes at least one first Sheet page of an Excel table, and at least one row / column cell in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items. In this way, when it is necessary to supplement resource data, the user only needs to fill in the resource data of the resource item that needs to be supplemented at the corresponding position of the cell corresponding to the resource item that needs to be supplemented in the first Sheet page according to the resource item that needs to be supplemented at the current time, and there is no need to call the supplement page one by one for each device, and there is no need to call the supplement page one by one for each resource item, so that the processing time of calling the page and filling in the page is greatly reduced. In addition, the method of the embodiment of the present invention utilizes the characteristics of the Excel table to make a resource supplement template, so that based on the characteristics of the Excel table, different devices and / or different resource items can be filled in at the same time in the same resource supplement template, and the subsequent system directly parses the filled resource supplement template table, that is, the resource data of multiple resource items can be supplemented at one time, so the efficiency of supplementing resource data is greatly improved.
[0054] For example, in a Sheet page of a resource supplement template in Excel format, which is recorded as the first Sheet page, the cells in the first column are set to correspond to the resource item "system disk type", the cells in the second column are set to correspond to the resource item "memory size", and the cells in the third column are set to correspond to the resource item "mirror type". In this way, when the user needs to supplement the type and memory size of the system disk of cloud server 1 and the type and mirror type of the system disk of cloud server 2, after downloading the resource supplement template in Excel format, he only needs to fill in the type data of the system disk of cloud server 1 in the cell position of the first column and first row of the template, fill in the type data of the system disk of cloud server 2 in the cell position of the first column and second row of the template, fill in the memory size data of cloud server 1 in the cell position of the second column and first row of the template, and fill in the mirror type data of cloud server 2 in the cell position of the third column and first row of the template. It can be seen that compared with the processing method of the prior art, the efficiency of supplementing resource data is greatly improved.
[0055] The following is a specific example Figure 1 Some of the steps shown are explained.
[0056] For step 101: pre-set a resource supplement template in Excel format; the resource supplement template includes at least one first Sheet page of an Excel table, in each first Sheet page at least one row / column of cells corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items.
[0057] This step 101 is a pre-processing process. The embodiment of the present invention utilizes the characteristics of the Excel table to complete the supplementary recording of resource data. For example, in advance in a first Sheet page of a resource supplementary recording template in Excel format, the cells in the first column are set to correspond to the resource item "type of system disk", the cells in the second column are set to correspond to the resource item "memory size", the cells in the third column are set to correspond to the resource item "mirror type", and the cells in the fourth column are set to correspond to the resource item "intranet IP", etc., that is, different columns are used to fill in different resource items for supplementary recording. Furthermore, different rows can also be used to fill in the data of different devices for supplementary recording. In this way, through an Excel table, the resource data of different resource items for different devices for supplementary recording can be filled in at the same time.
[0058] Of course, this step 101 can be implemented in the following two ways:
[0059] Method 1: Set up the same Sheet page to fill in resource data for different devices.
[0060] Method 2: Set different Sheet pages to fill in the resource data of different devices. The same Sheet page cannot be used to fill in the resource data of different devices.
[0061] In method one, in each first Sheet page of the resource supplement template in Excel format, a row / column of cells corresponding to a resource item corresponds to different devices in different columns / rows, so that in the same first Sheet page, for a row / column of cells corresponding to a resource item, the user can fill in the resource data of different devices corresponding to the resource item in different columns / rows. For example, in Sheet1, the same column corresponds to the same resource item, different columns correspond to different resource items, the same row corresponds to the same device, and different rows correspond to different devices. In this way, various resource data of the same resource item of different devices can be filled in each cell in the same column. For example, in Sheet1, the type data of the system disk of cloud server 1 is filled in the cell position of the first column and the first row, and the type data of the system disk of cloud server 2 is filled in the cell position of the first column and the second row of the template.
[0062] In the second method, the Excel format resource supplement template includes multiple first Sheet pages, and different devices correspond to different first Sheet pages; for example, all resource items of device 1 are set in Sheet 1 page, all resource items of device 2 are set in Sheet 2 page, and so on.
[0063] In this step 101, when setting the resource supplement template in Excel format, the template can be further set to include a second sheet page, and the second sheet page includes notes and / or descriptions for at least one resource item in the first sheet page. For example, a description of the resource item "department main account", etc., so that subsequent users can better fill in the data of the supplementary related resources according to the notes and / or descriptions.
[0064] After setting the resource supplementary recording template in Excel format, the method further includes step 102: modifying the automatic supplementary recording page, that is, adding a template import button and a template download button on the automatic supplementary recording page of the system.
[0065] Next, step 103 is to receive a resource supplement request from a user.
[0066] After receiving the resource supplement request sent by the user in step 103 and before performing step 105 of providing the resource supplement template in Excel format to the user, the method further includes:
[0067] Step 104: According to the user information carried in the resource supplementary recording request, determine whether the user has the resource supplementary recording authority. If yes, continue to step 105, otherwise end the current process.
[0068] Step 104 is the processing of authority control. The template import and template download buttons are displayed only when the super administrator account logs in to view the automatic supplementary recording page. Other users do not have the authority to view the template import and template download buttons. The front-end code obtains the information of the current logged-in user based on the data on the initialization page. If the current logged-in user is a super administrator, the button is displayed, otherwise it is hidden.
[0069] Next, for step 105: a resource supplement template in Excel format is provided to the user, so that the user can fill in the resource data of the resource item that currently needs to be supplemented at the corresponding position of the cell corresponding to the resource item that currently needs to be supplemented in at least one first Sheet page according to the resource item that currently needs to be supplemented.
[0070] In this step 105, a template import button and a template download button can be displayed on the system's automated supplementary recording page. When a user clicks on the template download button on the automated supplementary recording page, the method call interface is executed, and the browser downloads the resource supplementary recording template in the Excel format returned by the backend, so that the resource supplementary recording template in the Excel format can be provided to the user.
[0071] It should be noted that, in the method of the embodiment of the present invention, different business scenarios in step 101 may correspond to different resource supplement templates in Excel format; thus, the process of step 105 includes:
[0072] Determine the business scenario of the current deployment based on the received resource supplement request;
[0073] Get the resource supplement template in Excel format corresponding to the currently deployed business scenario;
[0074] When the master account is enabled, the master account sheet page information is added to the resource supplement template in Excel format. The user needs to fill in the master account information corresponding to the data to be imported in the template.
[0075] Afterwards, the user, ie, the super administrator, can fill in the resource data that needs to be supplemented in the downloaded resource supplement template in Excel format for each resource item of each device that needs to be supplemented.
[0076] Next, for step 107: receiving the resource supplement template form in Excel format filled out and uploaded by the user.
[0077] As mentioned above, a template import button can be displayed on the system's automated supplementary recording page. In this way, in this step 107, a user's click command on the template import button on the automated supplementary recording page is received, and then the resource supplementary recording template form in Excel format filled out and uploaded by the user is received.
[0078] Next, for step 109: according to the template format of the resource supplementary recording template in the preset Excel format, the resource supplementary recording template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0079] In step 109, after obtaining the resource data of at least one resource item of at least one device that needs to be supplemented, further perform at least one of the following data verifications:
[0080] For the resource data of at least one resource item of at least one device obtained, the required items thereof shall be checked to be non-empty;
[0081] For the resource data of at least one resource item of at least one device obtained, in addition to checking whether the product type, project data, business system data, and department information are not empty, a check is also performed to check whether they exist in the query database;
[0082] Perform approval verification for order approval scenarios.
[0083] When a user requests a template import interface, first determine whether the user executing the request is a super administrator user. If not, a prompt indicating that the user does not have permission is returned. If so, further process the template data. After obtaining the template data, verify the template data. The required items must be verified to be non-empty. In addition to the non-empty verification, the data of the commodity center, such as product type, project data, business system data, and department information, also need to be verified to see if they exist in the query library. In addition, the MSS approval verification is required for the MSS order approval scenario. After the data verification is completed, the order is supplemented and the data is entered into the warehouse, and the transaction management of the entry operation is performed. When the supplementary recording is completed, the results of the supplementary recording are recorded in the log table, and the failed list is returned to the front end for display.
[0084] Corresponding to the above-mentioned method one, in this step 109, the resource supplement template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device, including: in the same first Sheet page, for a row / column cell corresponding to a resource item, the resource data corresponding to the resource item of different devices filled in different columns / rows are parsed, so as to obtain the resource data corresponding to the resource item that needs to be supplemented for multiple different devices.
[0085] Corresponding to the above-mentioned method 2, in this step 109, the resource supplement template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device, including: parsing each first Sheet page separately, and according to the current device corresponding to the first Sheet page, parsing the filled in resource data from a row / column cell corresponding to a resource item in the first Sheet page, so as to obtain the resource data corresponding to the resource item that needs to be supplemented for the current device.
[0086] Figure 2 FIG. 1 is a flow chart of a method for supplementing resource data in another embodiment of the present invention. Figure 2 In another embodiment of the present invention, the method for supplementing resource data includes:
[0087] Step 201: Pre-set a resource supplement template in Excel format; the resource supplement template includes a first Sheet page and at least one second Sheet page of an Excel table, at least one column of cells in the first Sheet page corresponds to at least one resource item, and cells in different rows correspond to different devices; the second Sheet page includes remarks and / or descriptions of at least one resource item and / or device in the first Sheet page.
[0088] See above Figure 1 The first sheet is used to fill in the specific resource data of the resource items of each device that needs to be supplemented, and the second sheet is used to annotate and / or explain the first sheet so that subsequent users can better fill in the supplementary data of related resources. For example, the second sheet includes a description of the resource item "department main account" in the first sheet.
[0089] Step 203: Modify the automatic supplementary recording page of the system so that a template import button and a template download button can be displayed on the automatic supplementary recording page.
[0090] Step 205: Receive a resource supplementary recording request from the user, and determine whether the user has the resource supplementary recording authority based on the user information carried in the resource supplementary recording request. If yes, continue to step 207, otherwise end the current process.
[0091] Step 207: Display the modified automatic supplementary recording page to the user, and receive a click command from the user on a template download button on the automatic supplementary recording page.
[0092] Step 209: Determine the currently deployed business scenario based on the received resource supplement request; obtain the resource supplement template in Excel format corresponding to the currently deployed business scenario; when the primary account is opened, add the primary account sheet page information to the obtained resource supplement template in Excel format, so that the user can subsequently fill in the primary account information corresponding to the data to be imported in the template.
[0093] Step 211: executing the method call interface, the browser downloads the resource supplement template in Excel format returned by the backend, so as to provide the resource supplement template in Excel format to the user.
[0094] After that, the user fills in the resource data to be supplemented in the downloaded resource supplement template. For example, the user, i.e., the super administrator, fills in the type data of the system disk of cloud server 1 in the cell position of the first column and the first row of the resource supplement template in the Excel format, fills in the type data of the system disk of cloud server 2 in the cell position of the first column and the second row of the template, fills in the memory size data of cloud server 1 in the cell position of the second column and the first row of the template, fills in the image type data of cloud server 2 in the cell position of the third column and the first row of the template, etc.
[0095] Step 213: receiving a command from the user to click the template import button on the automated supplementary recording page, and then receiving the resource supplementary recording template form in Excel format filled out and uploaded by the user.
[0096] In one embodiment of the present invention, a button indicating that the import failed this time can be added. After the user clicks the template import button, the backend performs the import processing of the template data and returns the failure information after the processing is completed. If all are successful, the failure information is empty. This button is only used to display the failure column of the Excel template data imported this time, and will not be displayed after the page is refreshed or re-entered. This button is convenient for users to view the error data of the template and improve the accuracy of the template data.
[0097] Step 215: according to the preset template format of the resource supplementary recording template in Excel format, the resource supplementary recording template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0098] In this step 215, in the same first Sheet page, for a column of cells corresponding to a resource item, the resource data corresponding to the resource item of different devices filled in different rows are parsed to obtain the resource data corresponding to the resource item that needs to be supplemented for multiple different devices.
[0099] Step 217: Perform at least one of the following data verifications: for the resource data of at least one resource item of at least one device obtained, the required items shall be verified to be non-empty; for the resource data of at least one resource item of at least one device obtained, in addition to the verification that the product type, project data, business system data, and department information are not empty, a verification shall be performed to verify whether they exist in the query database; and approval verification shall be performed for order approval scenarios.
[0100] It can be seen that in one embodiment of the present invention,
[0101] The front-end solution includes:
[0102] 1. Reconstruct the automatic supplementary recording page and add template import and template download buttons on the original basis;
[0103] 2. Permission control: the template import and template download buttons are displayed when and only when the super administrator account logs in to view the automatic supplementary recording page. Other users do not have permission to view the template import and template download buttons. The front-end code obtains the information of the currently logged-in user based on the data on the initialization page. If the currently logged-in user is a super administrator, the button is displayed. If not, it is hidden.
[0104] 3. Added a button for failed import. After the user clicks the template to import, the backend will process the template data import and return the failure information after the processing is completed. If all is successful, the failure information is empty. This button is only used to display the failed column of the Excel template data imported this time. It will not be displayed after refreshing the page or re-entering the page. This button is convenient for users to view the error data of the template and improve the accuracy of the template data.
[0105] 4. After the user clicks the template download button, the code first determines the information of the logged-in user. If the user is a super administrator, the method call interface is executed. After the browser downloads the Excel table returned by the backend, the user fills in the data to be imported according to the downloaded template.
[0106] The idea of front-end solution processing mainly revolves around the template download and template import buttons, followed by permission control of the two buttons. This permission is only open to super administrators, and the information of logged-in users can be obtained through public data. In addition, the viewing function of the import failure button is also a highlight of this design. The design of this button can view the information of this failed import, and through the pop-up window, users can more intuitively see the problems with the template data and make corresponding modifications.
[0107] Backend solutions include:
[0108] Two interfaces are provided for front-end use, one is the template download interface and the other is the template import interface.
[0109] 1. Template download:
[0110] A) When the super administrator user clicks the template download interface, the backend provides different templates according to the deployment scenario. When the master account is enabled, the template adds the master account sheet page information. The user needs to fill in the master account information corresponding to the data to be imported in the template.
[0111] B) When a user requests a template download interface, first determine whether the user executing the request is a super administrator user. If not, a prompt indicating that the user has no authority is returned. If so, further obtain the current template data. In addition to returning the necessary template data, the template will also add necessary data in the template, such as department list information for users to find when filling in template data, in addition to project information, business system information and main account information.
[0112] 2. Template import:
[0113] A) When the super administrator clicks on the template to import, the edited template Excel table is selected to import the data. First, it is determined whether the user executing the request is a super administrator. If not, a prompt indicating that there is no permission is returned. If yes, the interface receives the Excel table and parses it, and generates the supplementary order information based on the parsed data to complete the supplementary operation.
[0114] B) When a user requests a template import interface, first determine whether the user executing the request is a super administrator user. If not, a prompt indicating that the user does not have permission is returned. If so, further process the template data. After obtaining the template data, verify the template data. The required items must be verified to be non-empty. In addition to the non-empty verification, the data of the commodity center, such as product type, project data, business system data, and department information, also need to be verified to see if they exist in the query library. In addition, the MSS approval verification is required for the MSS order approval scenario. After the data verification is completed, the order is supplemented and the data is entered into the warehouse, and the transaction management of the entry operation is performed. When the supplementary recording is completed, the results of the supplementary recording are recorded in the log table, and the failed list is returned to the front end for display.
[0115] An embodiment of the present invention further provides a device for supplementing resource data, see Figure 3 , the device comprises:
[0116] The user interface module 301 is configured to receive a resource supplement request sent by a user;
[0117] The template download processing module 302 is configured to provide the user with a resource supplement template in Excel format, wherein the resource supplement template includes at least one first Sheet page of an Excel table, wherein at least one row / column of cells in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items; the resource supplement template in Excel format is provided for the user to fill in the resource data of the resource item currently required to be supplemented at the corresponding position of the cell corresponding to the resource item currently required to be supplemented in the at least one first Sheet page according to the resource item currently required to be supplemented;
[0118] The template import processing module 303 is configured to receive the resource supplement template form in Excel format filled out and uploaded by the user;
[0119] The supplementary recording information acquisition module 304 is configured to parse the resource supplementary recording template form filled out and uploaded by the user according to the template format of the resource supplementary recording template in a preset Excel format, and obtain resource data of at least one resource item of at least one device that needs to be supplemented.
[0120] In one embodiment of the device of the present invention, it further comprises: an authority control module;
[0121] The permission control module is configured as follows: after the user interface module 301 receives a resource supplement request from the user, it determines whether the user has the resource supplement permission based on the user information carried in the resource supplement request. If yes, it triggers the download processing module 302 to provide the user with a resource supplement template in Excel format.
[0122] In one embodiment of the device of the present invention, in each first Sheet page of the resource supplement template in the Excel format, a row / column of cells corresponding to a resource item corresponds to different devices in different columns / rows, so that in the same first Sheet page, for a row / column of cells corresponding to a resource item, a user can fill in resource data corresponding to the resource item of different devices in different columns / rows;
[0123] Correspondingly, the supplementary information acquisition module 304 is configured to execute: in the same first Sheet page, for a row / column of cells corresponding to a resource item, the resource data of different devices filled in different columns / rows corresponding to the resource item are parsed, so as to obtain the resource data corresponding to the resource item that needs to be supplemented for multiple different devices.
[0124] In one embodiment of the apparatus of the present invention, the resource supplement template in the Excel format includes a plurality of first Sheet pages, and different devices correspond to different first Sheet pages;
[0125] Correspondingly, the supplementary information acquisition module 304 is configured to execute: parsing each first Sheet page separately, and according to the current device corresponding to the first Sheet page, parsing the filled-in resource data from a row / column cell corresponding to a resource item in the first Sheet page, so as to obtain the resource data corresponding to the resource item that needs to be supplemented by the current device.
[0126] In one embodiment of the device of the present invention, the resource supplement template in Excel format further includes a second Sheet page, and the second Sheet page includes remarks and / or descriptions of at least one resource item in the first Sheet page.
[0127] In one embodiment of the device of the present invention, a template import button and a template download button are added to the automatic supplementary recording page of the system;
[0128] The template download processing module 302 is configured to execute: upon receiving a click command of a template download button on the automated supplementary recording page by a user, execute a method call interface, and download the resource supplementary recording template in Excel format returned by the backend through a browser, so as to provide the resource supplementary recording template in Excel format to the user;
[0129] The template import processing module 303 is configured to execute: receiving a user's click command on a template import button on the automated supplementary recording page, and then receiving a resource supplementary recording template form in Excel format filled out and uploaded by the user.
[0130] In one embodiment of the device of the present invention, different business scenarios correspond to different resource supplement templates in Excel format;
[0131] The template download processing module 302 is configured to execute:
[0132] Determine the business scenario of the current deployment based on the received resource supplement request;
[0133] Get the resource supplement template in Excel format corresponding to the currently deployed business scenario;
[0134] When the master account is enabled, the master account sheet page information is added to the resource supplement template in Excel format. The user needs to fill in the master account information corresponding to the data to be imported in the template.
[0135] In one embodiment of the apparatus of the present invention, the apparatus further comprises a verification module configured to execute:
[0136] For the resource data of at least one resource item of at least one device obtained, the required items thereof shall be checked to be non-empty;
[0137] For the resource data of at least one resource item of at least one device obtained, in addition to checking whether the product type, project data, business system data, and department information are not empty, a check is also performed to check whether they exist in the query database;
[0138] Perform approval verification for order approval scenarios.
[0139] It should be noted that the above-mentioned devices are usually implemented on the server side, and can be set on independent servers respectively, or some or all of the devices can be combined and set on the same server. The server can be a single server or a server cluster composed of multiple servers. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system. The above-mentioned devices can also be implemented on a computer terminal with strong computing power.
[0140] An embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed in a computer, the computer is caused to execute a method in any one of the embodiments in the specification.
[0141] An embodiment of the present invention provides a computing device, including a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method in any embodiment of the specification is implemented.
[0142] It is to be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the device of the embodiment of the present invention. In other embodiments of the specification, the above-mentioned device may include more or fewer components than those shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0143] The various embodiments of the present invention are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0144] Those skilled in the art should be aware that in one or more of the above examples, the functions described in the present invention can be implemented by hardware, software, widgets, or any combination thereof. When implemented by software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium.
[0145] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solution of the present invention should be included in the scope of protection of the present invention.
Claims
1. Methods for supplementing resource data. It is characterized in that A resource supplement template in Excel format is set; the resource supplement template includes at least one first Sheet page of an Excel table, at least one row / column of cells in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items; the method further includes: Receive resource supplement requests from users; Providing the resource supplementary recording template in the Excel format to the user, so that the user can fill in the resource data of the resource item that needs to be supplemented at the corresponding position of the cell corresponding to the resource item that needs to be supplemented in the at least one first Sheet page according to the resource item that needs to be supplemented; Receive the resource supplement template form in Excel format filled out and uploaded by the user; According to the template format of the resource supplementary recording template in the preset Excel format, the resource supplementary recording template form filled in and uploaded by the user is parsed to obtain resource data of at least one resource item of at least one device that needs to be supplemented.
2. The method according to claim 1, It is characterized in that After receiving the resource supplement request from the user and before providing the resource supplement template in Excel format to the user, the method further includes: According to the user information carried in the resource supplementary recording request, it is determined whether the user has the resource supplementary recording authority. If yes, the step of providing the resource supplementary recording template in the Excel format to the user continues.
3. The method according to claim 1, It is characterized in that In each first Sheet page of the resource supplement template in the Excel format, a row / column of cells corresponding to a resource item corresponds to different devices in different columns / rows, so that in the same first Sheet page, for a row / column of cells corresponding to a resource item, the user fills in resource data corresponding to the resource item of different devices in different columns / rows; The step of parsing the resource supplement template form filled in and uploaded by the user to obtain resource data of at least one resource item of at least one device includes: In the same first Sheet page, for a row / column of cells corresponding to a resource item, parse the resource data corresponding to the resource item of different devices filled in different columns / rows, so as to obtain the resource data corresponding to the resource item that needs to be supplemented for multiple different devices.
4. The method according to claim 1, It is characterized in that The resource supplement template in the Excel format includes a plurality of first Sheet pages, and different devices correspond to different first Sheet pages; The step of parsing the resource supplement template form filled in and uploaded by the user to obtain resource data of at least one resource item of at least one device includes: Each first Sheet page is parsed separately, and according to the current device corresponding to the first Sheet page, the resource data filled in from the row / column cells corresponding to a resource item in the first Sheet page is parsed to obtain the resource data corresponding to the resource item that needs to be supplemented for the current device.
5. The method according to claim 1, It is characterized in that The resource supplement template in Excel format further includes a second Sheet page, which includes remarks and / or descriptions of at least one resource item in the first Sheet page.
6. The method according to claim 1, It is characterized in that The method further includes: adding a template import button and a template download button on the system's automated supplementary recording page; The providing the resource supplementary recording template in Excel format to the user comprises: receiving a click command of the user on a template download button on the automatic supplementary recording page, executing a method call interface, and downloading the resource supplementary recording template in Excel format returned by the backend by the browser, so as to provide the resource supplementary recording template in Excel format to the user; The receiving of the resource supplementary recording template form in Excel format filled out and uploaded by the user includes: receiving a click command of the user on the template import button on the automated supplementary recording page, and then receiving the resource supplementary recording template form in Excel format filled out and uploaded by the user.
7. The method according to claim 1, It is characterized in that Different business scenarios correspond to different resource supplement templates in Excel format; The providing the user with the resource supplement template in Excel format includes: Determine the business scenario of the current deployment based on the received resource supplement request; Get the resource supplement template in Excel format corresponding to the currently deployed business scenario; When the master account is enabled, the master account sheet page information is added to the resource supplement template in Excel format. The user needs to fill in the master account information corresponding to the data to be imported in the template.
8. The method according to claim 1, It is characterized in that After obtaining resource data of at least one resource item of at least one device that needs to be supplemented, at least one of the following items is further included: For the resource data of at least one resource item of at least one device obtained, the required items thereof shall be checked to be non-empty; For the resource data of at least one resource item of at least one device obtained, in addition to checking whether the product type, project data, business system data, and department information are not empty, a check is also performed to check whether they exist in the query database; Perform approval verification for order approval scenarios.
9. A device for supplementing resource data. It is characterized in that The device includes: A user interface module configured to receive a resource supplement request sent by a user; The template download processing module is configured to provide a resource supplement template in Excel format to the user, wherein the resource supplement template includes at least one first Sheet page of an Excel table, wherein at least one row / column of cells in each first Sheet page corresponds to at least one resource item, and cells in different rows / columns correspond to different resource items; the resource supplement template in Excel format is provided for the user to fill in the resource data of the resource item currently required to be supplemented at the corresponding position of the cell corresponding to the resource item currently required to be supplemented in the at least one first Sheet page according to the resource item currently required to be supplemented; The template import processing module is configured to receive the resource supplement template form in Excel format filled out and uploaded by the user; The supplementary information acquisition module is configured to parse the resource supplementary information template form filled out and uploaded by the user according to the template format of the resource supplementary information template in a preset Excel format, and obtain resource data of at least one resource item of at least one device that needs to be supplemented.
10. A computing device, comprising a memory and a processor, wherein the memory stores executable code, and when the processor executes the executable code, the method according to any one of claims 1 to 8 is implemented.
