Data filing method, device, equipment and storage medium based on form template
Through the data filing method based on form templates, the problem of redundant data filing between different business platforms and regulatory agencies is solved, efficient data filtering and unified filing are realized, and filing efficiency is improved.
Patent Information
- Application Number
- CN202111007670.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-30
- Publication Date
- 2025-01-14
- Estimated Expiration
- 2041-08-30
AI Technical Summary
There is a problem of redundant data filing between different business platforms and regulatory agencies, which leads to a complex and inefficient data filing process.
Using the data filing method based on form templates, by obtaining the template configuration information of the business platform, analyzing the area identification and filing requirements, configuring the form template, generating the filing configuration form, dynamically rendering the form, collecting and processing data, and filtering redundant data and unified filing.
The data filing process is simplified, redundant data is reduced, registration efficiency is improved, and data filtering and unified filing functions are ensured for different regulatory needs.
Smart Images

Figure CN113704344B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data, and in particular to a data filing method, device, equipment and storage medium based on a form template. Background Art
[0002] The form is mainly responsible for data collection in a web page. A form has three basic components: Form tag: This contains the URL of the CGI program used to process form data and the method of submitting data to the server. Form field: Contains text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio buttons, drop-down selection boxes and file upload boxes. Form buttons: Includes submit buttons, reset buttons and general buttons; used to transmit data to the CGI script on the server or cancel input. Form buttons can also be used to control other processing tasks that define processing scripts.
[0003] At present, the company is advancing in an orderly manner in terms of Internet hospitals, and the number of physical hospitals cooperating is gradually increasing. These large numbers of physical hospitals need to create their own Internet hospital systems, and each Internet hospital has different basic data required according to local laws and regulations, such as different qualifications for hospitals and doctors, and different certificates required. This results in redundant data between hospitals and regulators, so it is necessary to filter the relevant redundant data. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problem that the regulatory data that needs to be filed between different business platforms and different regulatory agencies is prone to redundancy.
[0005] The first aspect of the present invention provides a data filing method based on a form template, including: obtaining template configuration information corresponding to the filing of a first business platform, and extracting the regional identification information and filing requirement information of the area where the first business platform is located from the template configuration information; parsing the filing requirement information to obtain the regulatory dimension information and functional attribute information required for the area where the first business platform is located; based on the regulatory dimension information and the functional attribute information, configuring the form configuration template corresponding to the first business platform, and using the regional identification information to identify the form configuration template; obtaining a data filing request corresponding to a second business platform, and extracting the target area identification information of the area where the second business platform is located from the data filing request; selecting a target form configuration template corresponding to the target area identification information, and generating a filing configuration form corresponding to the second business platform through the target form configuration template; and collecting the filing data corresponding to the second business platform through the filing configuration form.
[0006] Optionally, in a first implementation method of the first aspect of the present invention, generating a filing configuration form corresponding to the second business platform through the target form configuration template includes: determining the target regulatory dimension information and target functional attribute information corresponding to the second business platform through the target form configuration template; determining the regulatory key value required for filing of the second business platform based on the target regulatory dimension information, and obtaining a filing field corresponding to the regulatory key value from a preset database; filling the filing field into the target form configuration template to obtain a field configuration form corresponding to the filing of the second business platform; and dynamically rendering the field configuration form based on the target functional attribute information to obtain a filing configuration form corresponding to the second business platform.
[0007] Optionally, in a second implementation method of the first aspect of the present invention, the field configuration form is dynamically rendered based on the target function attribute information to obtain the filing configuration form corresponding to the second business platform, including: based on the target function attribute information, determining the function attribute parameters corresponding to the field configuration form and selecting the corresponding preset form rendering component; passing the function attribute parameters into each function attribute module in the form rendering component; according to the passed function attribute parameters, the function attribute modules in the form rendering component are used in turn to dynamically render the field configuration form to obtain the filing configuration form corresponding to the second business platform.
[0008] Optionally, in a third implementation method of the first aspect of the present invention, after dynamically rendering the field configuration form based on the target function attribute information to obtain the filing configuration form corresponding to the second business platform, it also includes: parsing the filing configuration form to obtain a form object described in a preset format and a value domain corresponding to the form object; selecting a preset regular expression corresponding to the value domain, and determining whether the filing field in the form object corresponding to the value domain matches the regular expression; if matched, deploying the filing configuration form on the second business platform.
[0009] Optionally, in a fourth implementation method of the first aspect of the present invention, collecting the registration data corresponding to the second business platform through the registration configuration form includes: collecting the input information of the second business platform and the URL address of the corresponding data processing CGI script through the form fields of the registration configuration form; passing the input information to the CGI script corresponding to the URL address through the form button of the registration configuration form; and performing data conversion of the input information into a preset structure form through the CGI script to obtain the registration data corresponding to the second business platform.
[0010] Optionally, in a fifth implementation manner of the first aspect of the present invention, configuring the form configuration template corresponding to the first business platform based on the regulatory dimension information and the functional attribute information includes: selecting multiple form rendering components corresponding to the first business platform from a preset component library based on the regulatory dimension information and the functional attribute information; configuring the dependencies and logical relationships between each of the form rendering components; and loading each of the form rendering components into a preset form engine container corresponding to the first business platform; and mounting the trigger events corresponding to each of the form rendering components in the form engine container according to the dependencies and the logical relationships, to obtain the form configuration template corresponding to the first business platform.
[0011] The second aspect of the present invention provides a data filing device based on a form template, including: a first extraction module, used to obtain template configuration information corresponding to the filing of a first business platform, and extract the regional identification information and filing requirement information of the area where the first business platform is located from the template configuration information; a parsing module, used to parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required for the area where the first business platform is located; a configuration module, used to configure the form configuration template corresponding to the first business platform based on the regulatory dimension information and the functional attribute information, and use the regional identification information to identify the form configuration template; a second extraction module, used to obtain the data filing request corresponding to the second business platform, and extract the target area identification information of the area where the second business platform is located from the data filing request; a generation module, used to select the target form configuration template corresponding to the target area identification information, and generate the filing configuration form corresponding to the second business platform through the target form configuration template; a collection module, used to collect the filing data corresponding to the second business platform through the filing configuration form.
[0012] Optionally, in a first implementation method of the second aspect of the present invention, the generation module includes: a determination unit, used to determine the target regulatory dimension information and target functional attribute information corresponding to the second business platform through a target form configuration template; an acquisition unit, used to determine the regulatory key value required for the filing of the second business platform based on the target regulatory dimension information, and obtain the filing field corresponding to the regulatory key value from a preset database; a filling unit, used to fill the filing field into the target form configuration template to obtain a field configuration form corresponding to the filing of the second business platform; a rendering unit, used to dynamically render the field configuration form based on the target functional attribute information to obtain a filing configuration form corresponding to the second business platform.
[0013] Optionally, in a second implementation method of the second aspect of the present invention, the rendering unit is also used to include: based on the target functional attribute information, determining the functional attribute parameters corresponding to the field configuration form and selecting the corresponding preset form rendering component; passing the functional attribute parameters into each functional attribute module in the form rendering component; according to the passed functional attribute parameters, using the functional attribute modules in the form rendering component in turn to dynamically render the field configuration form to obtain the registration configuration form corresponding to the second business platform.
[0014] Optionally, in a third implementation method of the second aspect of the present invention, the generation module also includes a deployment unit, which is used to: parse the filing configuration form to obtain a form object described in a preset format and a value domain corresponding to the form object; select a preset regular expression corresponding to the value domain, and determine whether the filing field in the form object corresponding to the value domain matches the regular expression; if matched, deploy the filing configuration form on the second business platform.
[0015] Optionally, in a fourth implementation method of the second aspect of the present invention, the collection module includes: a collection unit, used to collect the input information of the second business platform and the URL address of the corresponding data processing CGI script through the form field of the filing configuration form; an input unit, used to input the input information to the CGI script corresponding to the URL address through the form button of the filing configuration form; and a conversion unit, used to perform data conversion of the input information in a preset structure form through the CGI script to obtain the filing data corresponding to the second business platform.
[0016] Optionally, in a fifth implementation manner of the second aspect of the present invention, the configuration module includes: a selection unit, used to select multiple form rendering components corresponding to the first business platform from the preset component library based on the supervision dimension information and the functional attribute information; a loading unit, used to configure the dependencies and logical relationships between each of the form rendering components; and load each of the form rendering components into a preset form engine container corresponding to the first business platform; a mounting unit, used to mount the trigger events corresponding to each of the form rendering components in the form engine container according to the dependency relationship and the logical relationship, and obtain the form configuration template corresponding to the first business platform.
[0017] The third aspect of the present invention provides a data filing device based on a form template, comprising: a memory and at least one processor, wherein the memory stores instructions; the at least one processor calls the instructions in the memory so that the data filing device based on the form template executes the above-mentioned data filing method based on the form template.
[0018] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned data filing method based on the form template.
[0019] In the technical solution provided by the present invention, since the supervision corresponding to the same region is generally the same and the required filing information is also the same, the form configuration template is first configured according to different regions. The same set of form configuration templates is configured for the same region, and fields are uniformly added or reduced. The filing configuration form is configured after all information is classified and integrated. When configuring the template, all configurable function items are dynamically rendered. After selecting the corresponding form configuration according to the requirements, the data is saved in the back end by calling the configured interface, and then the corresponding form data can be obtained. For the business platforms in the same region, only the same set of templates needs to be applied to realize the data filing function for the regulatory agency. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 It is a schematic diagram of a first embodiment of a data filing method based on a form template in the present invention;
[0021] Figure 2 It is a schematic diagram of a second embodiment of the data filing method based on the form template in the present invention;
[0022] Figure 3 It is a schematic diagram of a third embodiment of the data filing method based on the form template in the present invention;
[0023] Figure 4 A schematic diagram of an embodiment of a data filing device based on a form template in the present invention;
[0024] Figure 5 It is a schematic diagram of another embodiment of the data filing device based on the form template in the present invention;
[0025] Figure 6 It is a schematic diagram of an embodiment of a data filing device based on a form template in the present invention. DETAILED DESCRIPTION
[0026] The embodiment of the present invention provides a data filing method, device, equipment and storage medium based on a form template, which obtains the template configuration information filed by the first business platform and extracts the regional identification information and filing requirement information of the first business platform; parses the filing requirement information to obtain the regulatory dimension information and functional attribute information to configure the form configuration template corresponding to the first business platform, and identifies the form configuration template with the regional identification information; obtains the data filing request of the second business platform and extracts the target regional identification information of the second business platform; selects the target form configuration template corresponding to the target regional identification information, and generates the filing configuration form corresponding to the second business platform; collects the filing data corresponding to the second business platform through the filing configuration form. The present invention realizes filtering the regulatory data of different business platforms with form templates according to different regulatory requirements.
[0027] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the data filing method based on the form template in the embodiment of the present invention includes:
[0029] 101. Obtain template configuration information corresponding to the filing of the first business platform, and extract regional identification information and filing requirement information of the region where the first business platform is located from the template configuration information;
[0030] It is understandable that the execution subject of the present invention may be a data filing device based on a form template, or may be a terminal or a server, which is not specifically limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0031] In this embodiment, the first business platform refers to various types of business platforms that require regulatory configuration form configuration. Generally speaking, regulatory agencies in the same region have the same regulatory requirements for the same type of platforms, so developers configure templates according to the regulatory requirements of regulatory agencies in different regions. After each first business platform is configured, the template configuration information corresponding to the first business platform is uploaded, where the template configuration information includes the regional identification information of the local area where the regulated agency is located, and also includes the integrated filing requirement information such as the content and rendering style required by the form configuration template, so the regional identification information and filing requirement information of the first business platform can be directly extracted from the template configuration information.
[0032] For example, for Internet medical platforms, the regulatory requirements of comprehensive medical service regulatory platforms in different places may be different. City A needs to conduct regulatory filing of patients' medical consultation data, but does not need to conduct regulatory filing of doctors' prescription information, while city B needs to conduct regulatory filing of doctors' prescription information, but does not need to conduct regulatory filing of patients' medical consultation data. At this time, the template configuration information corresponding to the first business platform of city A contains the regional identification information of city A and the filing requirement information corresponding to the medical consultation data, and the template configuration information corresponding to the first business platform of city B contains the regional identification information of city B and the filing requirement information corresponding to the prescription information.
[0033] 102. Analyze the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located;
[0034] In this embodiment, the filing requirement information includes the regulatory dimension information and functional attribute information required by the regulatory agency in the area where the first business platform is located, wherein the regulatory dimension information refers to the field information of various types of dimensions that the first business platform needs to file for supervision, that is, the fields of various types of dimensions that need to be configured in the filing configuration template, and the functional attribute information refers to the style rendering content in the filing configuration template, such as form button size, font color, text alignment, and format conversion.
[0035] For example, the medical consultation data required for registration and supervision of the first business platform in city A and the prescription information required for registration and supervision of the first business platform in city B mentioned above are regulatory dimension information containing different types of dimensions. If the first business platform in city A needs to add a date format to the registration content, and city B needs to convert all registration fields in the registration content into XML (Extensible Markup Language) format, then the date format and XML format are both functional attribute information.
[0036] 103. Based on the supervision dimension information and the functional attribute information, configure a form configuration template corresponding to the first business platform, and use the regional identification information to identify the form configuration template;
[0037] In this embodiment, based on the regulatory dimension information and functional attribute information, multiple form rendering components corresponding to the first business platform are selected from the preset component library, and the dependency relationship and logical relationship between each form rendering component are configured; each form rendering component is loaded into a preset form engine container corresponding to the first business platform, and based on the dependency relationship and logical relationship, the trigger event corresponding to each form rendering component is hung in the form engine container to obtain the form configuration template corresponding to the first business platform.
[0038] Specifically, the form rendering components include: pop-up box container components, logic container components, group container components, conditional judgment container components, list container components, table container components, and tab container components; the regulatory dimension information and functional attribute information contain the identification information of the form rendering components that implement the corresponding regulatory fields and functional style configurations. Through the identification information, the corresponding form rendering components can be screened from the component library. At the same time, the form rendering components are set through the pre-set dependencies and logical relationships.
[0039] Specifically, when configuring logical relationships, an event subscription mechanism is used to define the mutual dependence of data between components. For example, component B can only be displayed when component A takes the value of true. When configuring dependency relationships, an event callback mechanism is used. When a common component triggers a method, it will be captured. By parsing the method and performing some necessary operations, control over the form rendering components can be achieved.
[0040] In this embodiment, each form rendering component is loaded into a preset form triggering container, and then the triggering event of each component is mounted on the form engine, so that the form engine has the ability to dominate and control the form rendering component; at the same time, the form rendering component mounted on the form engine maintains standardization, and the form engine can receive and call the triggering event of the subsequent form rendering component, so it has the ability to dominate the form rendering component. In this way, the configuration of the form configuration template is completed, and the available second business platforms are determined by the regional identification information. The subsequent direct execution of the form engine can realize the generation of the filing configuration form.
[0041] 104. Obtain a data filing request corresponding to the second business platform, and extract target area identification information of the area where the second business platform is located from the data filing request;
[0042] In this embodiment, the second business platform refers to a business platform that needs to file data. After completing the configuration of the form configuration template, when data filing is required, the second client will initiate a data filing request, directly obtain the corresponding target area identification information based on the area where the second business platform is located, and use the target area identification information as an index to find the corresponding form configuration template to generate a filing configuration form.
[0043] 105. Select a target form configuration template corresponding to the target area identification information, and generate a filing configuration form corresponding to the second business platform through the target form configuration template;
[0044] In this embodiment, the concept of form configuration template is introduced, and the filing configuration form is configured as needed. The method of one form configuration template for each region is because the regulatory agency corresponding to the same type of business platform in the same region is the same, and the required filing information is also the same. The same set of form configuration templates is configured for the same region, and fields are uniformly added or reduced. The form configuration template is configured after the information recorded by all business platforms is classified and integrated.
[0045] In this embodiment, the second business platform or the server retains a JSON format data of all record fields. When the record configuration form corresponding to the second business platform is generated through the form configuration template, the corresponding record fields are obtained according to the configuration information in the form configuration template, and the corresponding position of the form configuration template is written to generate the record configuration form. At this time, only the fields required for supervision will be recorded in the record configuration form, and redundant fields will be filtered.
[0046] 106. Collect the filing data corresponding to the second business platform through the filing configuration form.
[0047] In this embodiment, the filing configuration form is deployed in the second business platform, and the business personnel can enter the corresponding filing data through the filing configuration form.
[0048] In the embodiment of the present invention, since the supervision corresponding to the same region is generally the same and the required filing information is also the same, the form configuration template is first configured according to different regions. The same set of form configuration templates is configured for the same region, and fields are uniformly added or reduced. The filing configuration form is configured after all information is classified and integrated. When configuring the template, all configurable function items are dynamically rendered. After selecting the corresponding form configuration according to the needs, the data is saved in the back end by calling the configured interface, and then the corresponding form data can be obtained. For the business platforms in the same region, only the same set of templates needs to be applied to realize the data filing function for the regulatory agency.
[0049] See also Figure 2The second embodiment of the data filing method based on the form template in the embodiment of the present invention includes:
[0050] 201. Obtain template configuration information corresponding to the first business platform filing, and extract area identification information and filing requirement information of the area where the first business platform is located from the template configuration information;
[0051] 202. Parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located;
[0052] 203. Based on the supervision dimension information and the functional attribute information, configure a form configuration template corresponding to the first business platform, and use the regional identification information to identify the form configuration template;
[0053] 204. Obtain a data filing request corresponding to the second business platform, and extract target area identification information of the area where the second business platform is located from the data filing request;
[0054] 205. Select a target form configuration template corresponding to the target area identification information, and determine the target supervision dimension information and target function attribute information corresponding to the second business platform through the target form configuration template;
[0055] 206. Determine the regulatory key value required for filing the second business platform according to the target regulatory dimension information, and obtain the filing field corresponding to the regulatory key value from the preset database;
[0056] 207. Fill the record fields into the target form configuration template to obtain the field configuration form corresponding to the record of the second business platform;
[0057] 208. Based on the target function attribute information, dynamically render the field configuration form to obtain a filing configuration form corresponding to the second business platform;
[0058] In this embodiment, the target form configuration template carries the target supervision dimension information and functional attribute information, and has determined which fields need to be supervised and which style configurations need to be performed on the filing configuration form. Among them, the target supervision dimension information includes the supervision key values of multiple fields required by the second business platform. Through the supervision key values, the corresponding filing fields are obtained from the stored database and filled in to obtain the field configuration form; then the configurable items are selected through the functional attribute information, and the field configuration form is dynamically rendered to obtain the filing configuration form corresponding to the second business platform.
[0059] 209. Collecting input information of the second business platform and the URL address of the corresponding data processing CGI script through the form fields of the filing configuration form;
[0060] 210. Through the form button of the record configuration form, the input information is transferred to the CGI script corresponding to the URL address;
[0061] 211. Perform data conversion of the input information into a preset structure form through the CGI script to obtain the filing data corresponding to the second business platform.
[0062] In this embodiment, after the second business platform completes the deployment of the filing configuration form, the data collection function is performed in the second business platform through the filing configuration form. The filing configuration form includes form fields, form labels and form buttons, wherein the input information of the second business platform is first collected through the form fields, and the form labels corresponding to each form field, wherein the form label contains the URL address of the CGI script used to process the form input information, and the form field includes a text box, a password box, a hidden field, a multi-line text box, a check box, a radio button, a drop-down selection box and a file upload box, etc. Finally, the input information is passed into the CGI script according to the URL address through the form button, and the data conversion is performed according to the preset standard conversion rules to obtain the corresponding filing data, wherein the form button includes a submit button, a reset button and a general button.
[0063] In an embodiment of the present invention, when configuring the filing configuration form, the pre-configured form configuration template is used to determine which regulatory dimension information and functional attribute information the current second business platform requires, so as to determine the regulatory fields and functional item renderings required by the second business platform, thereby realizing automatic acquisition of regulatory fields.
[0064] See also Figure 3 The third embodiment of the data filing method based on the form template in the embodiment of the present invention includes:
[0065] 301. Obtain template configuration information corresponding to the first business platform filing, and extract region identification information and filing requirement information of the region where the first business platform is located from the template configuration information;
[0066] 302. Parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located;
[0067] 303. Based on the supervision dimension information and the functional attribute information, configure a form configuration template corresponding to the first business platform, and use the regional identification information to identify the form configuration template;
[0068] 304. Obtain a data filing request corresponding to the second business platform, and extract target area identification information of the area where the second business platform is located from the data filing request;
[0069] 305. Determine the target supervision dimension information and target function attribute information corresponding to the second business platform through the target form configuration template;
[0070] 306. Determine the regulatory key value required for filing the second business platform according to the target regulatory dimension information, and obtain the filing field corresponding to the regulatory key value from the preset database;
[0071] 307. Fill the record fields into the target form configuration template to obtain the field configuration form corresponding to the record of the second business platform;
[0072] 308. Based on the target function attribute information, determine the function attribute parameters corresponding to the field configuration form and select the corresponding preset form rendering component;
[0073] 309. Pass the function attribute parameters into each function attribute module in the form rendering component;
[0074] 310. According to the function attribute parameters passed in, the function attribute modules in the form rendering component are used in sequence to dynamically render the field configuration form to obtain a filing configuration form corresponding to the second business platform;
[0075] In this embodiment, the form rendering component corresponding to each field configuration form is pre-configured, wherein the form rendering component is a form rendering component implemented based on the Vue.js framework and the iView UI component library. Taking the form rendering component in the form of a pop-up window as an example, multiple form basic components are written inside the pop-up window component to complete the creation of the initial form rendering component. Multiple form basic components constitute the pop-up window component. The pop-up window component is the main file. The background management system generally has multiple field configuration forms, and each field configuration form corresponds to a form rendering component. When any field configuration form uses the form rendering component, it is necessary to reference the pop-up window component. Specifically, the form rendering component is referenced in each field configuration form so that the pop-up window component of the form rendering component is rendered to each field configuration form.
[0076] Furthermore, form rendering components may include text boxes, password boxes, hidden fields, multi-line text boxes, check boxes, radio buttons, drop-down selection boxes, and file upload boxes, etc. The specific descriptions of some form rendering components are as follows: 1) Pop-up window component. Due to the large number of forms, a pop-up window opening method is usually adopted for better display; text input box component: expanded on the basis of the input text input box component of iView UI, which includes multiple types: plain text box, text field, password box, search box with button, etc.; the type attribute is used to pass parameters to distinguish various types with the simplest code, and configure the corresponding properties to render the form rendering component to each field configuration form; radio button component, multiple selection box component, drop-down selection box component, and tree drop-down selection box component, etc., are expanded on the basis of the radio button component of iView UI, and the form rendering component is rendered to each field configuration form using the passed selection box data; date component: expanded on the basis of the date component of iView UI, used to set the date format and date type.
[0077] In this embodiment, the functional attribute module is a configuration dependency file of the form rendering component. A single functional attribute module is established based on the form module of the field configuration form that needs to reference the form rendering component. It can be written in JavaScript language, and the corresponding custom attributes are used to configure the various attribute information of the field configuration form. It is introduced separately in each field configuration form and directly referenced.
[0078] Specifically, create a new functional attribute module file and write the preset form values of the field configuration form, including a series of extensible attributes such as form item name, form item field, form item width, form item type, read-only option, whether to perform mandatory verification, whether required, whether default, etc. The configuration information of the form rendering component can be read from the functional attribute module.
[0079] In this embodiment, when the functional attribute module is used to render the field configuration form, a public interface service between the form in the field configuration form and the registered data is configured in each field configuration form; then, according to the passed-in functional attribute parameters, the interface connection between the field configuration form and the registered data is realized, and at the same time, the button size, color, horizontal and vertical centering and other style attributes of the field configuration form are configured, and the form, data format conversion (such as JSON format), date format and other functional attributes are reset. Using the v-for attribute loop, the functional attributes corresponding to each field configuration form are rendered to obtain the registered configuration form corresponding to the second business platform.
[0080] 311. Parse the record configuration form to obtain the form object described in the preset format and the value field corresponding to the form object;
[0081] 312. Select a preset regular expression corresponding to the value domain, and determine whether the record field in the form object corresponding to the value domain matches the regular expression;
[0082] 313. If there is a match, the record configuration form is deployed on the second business platform;
[0083] In this embodiment, each filing configuration form includes a corresponding form object and a value domain of the form object. If multiple filing configuration forms include the same type of form object, and the form object of this type is consistent with the information requirements submitted by the second business platform, then only one value domain can be saved for the same type of form objects in multiple second business platforms. Otherwise, corresponding value domains can be established according to different form objects. In addition, the value domain is different according to the type of form object. For example, if the form object is a dialog box that instructs the user to enter an email address, the value domain of the form object is a value specification. If the form object is a text box, the value domain of the form object is a coding specification.
[0084] The set regular expression is used as the value domain to determine whether the information submitted by the user matches the specification corresponding to the regular expression. In actual applications, the value domain can also be set as a value range or a set of several specified values. For example, the value domain of a dialog box instructing the user to enter a city name may be a set of several specified values, such as the values corresponding to cities such as Guangzhou and Shenzhen. Specifically, the value domain can be set according to the requirements of each form object.
[0085] When parsing the received filing configuration form, the filing configuration form can be parsed into two parts, namely, a form object described in the format of the page code supported by the second business platform and a corresponding value domain. Specifically, for the parsed form object described in the preset format, the format description of the page code supported by the Windows operating system is Hypertext Marked Language (html), and the filing configuration form is parsed into a form object described in the HTML format; for the format of the parsed value domain, the value domain can be converted into a corresponding code according to the code format pre-set by the second business platform.
[0086] In this embodiment, the configuration fields submitted in the filing configuration form can be verified by comparing the value domain with the corresponding regular expression. For example, a set of numerical values corresponding to a specified city (such as Guangzhou and Shenzhen) can be used to determine whether the configuration field of the city item is in the set to determine whether there is a match.
[0087] 314. Collect the filing data corresponding to the second business platform through the filing configuration form.
[0088] In an embodiment of the present invention, through the pre-developed functional attribute module, when dynamically rendering the filing configuration form, the functional attribute module required by the corresponding form rendering component can be directly selected according to the functional attribute parameters for assembly to obtain the corresponding filing configuration form, thereby improving the filing efficiency of regulatory data.
[0089] The above describes the data filing method based on the form template in the embodiment of the present invention. The following describes the data filing device based on the form template in the embodiment of the present invention. Figure 4 In one embodiment of the present invention, a data filing device based on a form template includes:
[0090] The first extraction module 401 is used to obtain the template configuration information corresponding to the first service platform filing, and extract the area identification information and filing requirement information of the area where the first service platform is located from the template configuration information;
[0091] Parsing module 402, used to parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located;
[0092] A configuration module 403, configured to configure a form configuration template corresponding to the first business platform based on the supervision dimension information and the functional attribute information, and identify the form configuration template using the region identification information;
[0093] The second extraction module 404 is used to obtain a data filing request corresponding to the second business platform, and extract the target area identification information of the area where the second business platform is located from the data filing request;
[0094] A generating module 405 is used to select a target form configuration template corresponding to the target area identification information, and generate a filing configuration form corresponding to the second business platform through the target form configuration template;
[0095] The collection module 406 is used to collect the filing data corresponding to the second business platform through the filing configuration form.
[0096] In the embodiment of the present invention, since the supervision corresponding to the same region is generally the same and the required filing information is also the same, the form configuration template is first configured according to different regions. The same set of form configuration templates is configured for the same region, and fields are uniformly added or reduced. The filing configuration form is configured after all information is classified and integrated. When configuring the template, all configurable function items are dynamically rendered. After selecting the corresponding form configuration according to the needs, the data is saved in the back end by calling the configured interface, and then the corresponding form data can be obtained. For the business platforms in the same region, only the same set of templates needs to be applied to realize the data filing function for the regulatory agency.
[0097] See also Figure 5 Another embodiment of the data filing device based on the form template in the embodiment of the present invention includes:
[0098] The first extraction module 401 is used to obtain the template configuration information corresponding to the first service platform filing, and extract the area identification information and filing requirement information of the area where the first service platform is located from the template configuration information;
[0099] Parsing module 402, used to parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located;
[0100] A configuration module 403, configured to configure a form configuration template corresponding to the first business platform based on the supervision dimension information and the functional attribute information, and identify the form configuration template using the region identification information;
[0101] The second extraction module 404 is used to obtain a data filing request corresponding to the second business platform, and extract the target area identification information of the area where the second business platform is located from the data filing request;
[0102] A generating module 405 is used to select a target form configuration template corresponding to the target area identification information, and generate a filing configuration form corresponding to the second business platform through the target form configuration template;
[0103] The collection module 406 is used to collect the filing data corresponding to the second business platform through the filing configuration form.
[0104] Specifically, the generating module 405 includes:
[0105] The determination unit 4051 is used to determine the target supervision dimension information and target function attribute information corresponding to the second business platform through the target form configuration template;
[0106] An acquisition unit 4052 is used to determine the regulatory key value required for filing the second business platform according to the target regulatory dimension information, and acquire a filing field corresponding to the regulatory key value from a preset database;
[0107] A filling unit 4053 is used to fill the record fields into the target form configuration template to obtain a field configuration form corresponding to the record of the second business platform;
[0108] The rendering unit 4054 is used to dynamically render the field configuration form based on the target function attribute information to obtain the filing configuration form corresponding to the second business platform.
[0109] Specifically, the rendering unit 4054 is further configured to include:
[0110] Based on the target function attribute information, determining the function attribute parameters corresponding to the field configuration form and selecting the corresponding preset form rendering component;
[0111] Passing the function attribute parameters into each function attribute module in the form rendering component;
[0112] According to the input function attribute parameters, the function attribute modules in the form rendering component are used in sequence to dynamically render the field configuration form to obtain the filing configuration form corresponding to the second business platform.
[0113] Specifically, the generation module further includes a deployment unit 4055, which is used to:
[0114] Parsing the filing configuration form to obtain a form object described in a preset format and a value domain corresponding to the form object;
[0115] Selecting a preset regular expression corresponding to the value domain, and determining whether the record field in the form object corresponding to the value domain matches the regular expression;
[0116] If there is a match, the filing configuration form is deployed on the second business platform.
[0117] Specifically, the acquisition module 406 includes:
[0118] The collection unit 4061 is used to collect the input information of the second business platform and the URL address of the corresponding data processing CGI script through the form fields of the filing configuration form;
[0119] The input unit 4062 is used to input the input information to the CGI script corresponding to the URL address through the form button of the record configuration form;
[0120] The conversion unit 4063 is used to perform data conversion of the input information into a preset structure form through the CGI script to obtain the filing data corresponding to the second business platform.
[0121] Specifically, the configuration module 403 includes:
[0122] A selection unit 4031 is used to select a plurality of form rendering components corresponding to the first business platform from a preset component library based on the supervision dimension information and the functional attribute information;
[0123] The loading unit 4032 is used to configure the dependency relationship and logical relationship between the form rendering components; and load each form rendering component into a preset form engine container corresponding to the first business platform;
[0124] The mounting unit 4033 is used to mount the trigger events corresponding to each of the form rendering components in the form engine container according to the dependency relationship and the logical relationship, so as to obtain the form configuration template corresponding to the first business platform.
[0125] In an embodiment of the present invention, when configuring a filing configuration form, a pre-configured form configuration template is used to determine which regulatory dimension information and functional attribute information the current second business platform needs, so as to determine the regulatory fields and functional item renderings required by the second business platform, thereby realizing automatic acquisition of regulatory fields; through a pre-developed functional attribute module, when dynamically rendering the filing configuration form, the functional attribute module required by the corresponding form rendering component is directly selected according to the functional attribute parameters for assembly to obtain the corresponding filing configuration form, thereby improving the filing efficiency of regulatory data.
[0126] above Figure 4 and Figure 5 The data filing device based on the form template in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The data filing device based on the form template in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0127] Figure 6 1 is a schematic diagram of the structure of a data filing device based on a form template provided by an embodiment of the present invention. The data filing device 600 based on a form template may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 may be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the data filing device 600 based on the form template. Furthermore, the processor 610 may be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the data filing device 600 based on the form template.
[0128] The data filing device 600 based on the form template may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 6 The structure of the data filing device based on the form template shown does not constitute a limitation on the data filing device based on the form template, and may include more or fewer components than shown in the figure, or a combination of certain components, or a different arrangement of components.
[0129] The present invention also provides a data filing device based on a form template, wherein the computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the data filing method based on the form template in the above-mentioned embodiments.
[0130] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the form template-based data filing method.
[0131] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0132] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0133] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A data filing method based on a form template, characterized in that: The data filing method based on the form template includes: Acquire template configuration information corresponding to the first business platform filing, and extract region identification information and filing requirement information of the region where the first business platform is located from the template configuration information; Parsing the filing requirement information to obtain the regulatory dimension information and functional attribute information required for the region where the first business platform is located; Based on the supervision dimension information and the functional attribute information, configure a form configuration template corresponding to the first business platform, and use the region identification information to identify the form configuration template; Obtaining a data filing request corresponding to the second business platform, and extracting target area identification information of the area where the second business platform is located from the data filing request; Selecting a target form configuration template corresponding to the target area identification information, and generating a filing configuration form corresponding to the second business platform through the target form configuration template; Collecting the filing data corresponding to the second business platform through the filing configuration form; The collecting of the filing data corresponding to the second business platform through the filing configuration form includes: Collecting the input information of the second business platform and the URL address of the corresponding data processing CGI script through the form fields of the filing configuration form; Through the form button of the record configuration form, the input information is transferred to the CGI script corresponding to the URL address; By means of the CGI script, the input information is converted into data in a preset structure form to obtain the filing data corresponding to the second business platform; The step of generating a record configuration form corresponding to the second business platform through the target form configuration template includes: Determine the target supervision dimension information and target function attribute information corresponding to the second business platform through the target form configuration template; Determine, according to the target regulatory dimension information, the regulatory key value required for filing the second business platform, and obtain a filing field corresponding to the regulatory key value from a preset database; Fill the record fields into the target form configuration template to obtain a field configuration form corresponding to the record of the second business platform; Based on the target function attribute information, dynamically render the field configuration form to obtain a filing configuration form corresponding to the second business platform; The dynamically rendering the field configuration form based on the target function attribute information to obtain the filing configuration form corresponding to the second business platform includes: Based on the target function attribute information, determining the function attribute parameters corresponding to the field configuration form and selecting the corresponding preset form rendering component; Passing the function attribute parameters into each function attribute module in the form rendering component; According to the input function attribute parameters, the function attribute modules in the form rendering component are used in sequence to dynamically render the field configuration form to obtain the filing configuration form corresponding to the second business platform.
2. The data filing method based on form template according to claim 1, characterized in that: After dynamically rendering the field configuration form based on the target function attribute information to obtain the filing configuration form corresponding to the second business platform, the method further includes: Parsing the filing configuration form to obtain a form object described in a preset format and a value domain corresponding to the form object; Selecting a preset regular expression corresponding to the value domain, and determining whether the record field in the form object corresponding to the value domain matches the regular expression; If there is a match, the filing configuration form is deployed on the second business platform.
3. The data filing method based on form template according to any one of claims 1-2, characterized in that: The configuring the form configuration template corresponding to the first business platform based on the supervision dimension information and the functional attribute information includes: Based on the supervision dimension information and the functional attribute information, selecting multiple form rendering components corresponding to the first business platform from a preset component library; Configuring the dependency relationship and logical relationship between the form rendering components; and loading the form rendering components into the preset form engine container corresponding to the first business platform; According to the dependency relationship and the logical relationship, the trigger events corresponding to the form rendering components are mounted in the form engine container to obtain the form configuration template corresponding to the first business platform.
4. A data filing device based on a form template, characterized in that: The data filing device based on the form template includes: A first extraction module is used to obtain template configuration information corresponding to the first business platform filing, and extract area identification information and filing requirement information of the area where the first business platform is located from the template configuration information; A parsing module, used to parse the filing requirement information to obtain the regulatory dimension information and functional attribute information required by the region where the first business platform is located; A configuration module, configured to configure a form configuration template corresponding to the first business platform based on the supervision dimension information and the functional attribute information, and identify the form configuration template using the region identification information; A second extraction module, used to obtain a data filing request corresponding to the second business platform, and extract target area identification information of the area where the second business platform is located from the data filing request; A generating module, configured to select a target form configuration template corresponding to the target area identification information, and generate a filing configuration form corresponding to the second business platform through the target form configuration template; A collection module, used for collecting the filing data corresponding to the second business platform through the filing configuration form; The collection module is also used to: collect the input information of the second business platform and the URL address of the corresponding data processing CGI script through the form field of the filing configuration form; transfer the input information to the CGI script corresponding to the URL address through the form button of the filing configuration form; perform data conversion of the input information in a preset structure form through the CGI script to obtain the filing data corresponding to the second business platform; The generation module includes: a determination unit, used to determine the target regulatory dimension information and target functional attribute information corresponding to the second business platform through a target form configuration template; an acquisition unit, used to determine the regulatory key value required for the filing of the second business platform according to the target regulatory dimension information, and to acquire the filing field corresponding to the regulatory key value from a preset database; a filling unit, used to fill the filing field into the target form configuration template to obtain a field configuration form corresponding to the filing of the second business platform; a rendering unit, used to dynamically render the field configuration form based on the target functional attribute information to obtain a filing configuration form corresponding to the second business platform; The rendering unit is also used to: determine the functional attribute parameters corresponding to the field configuration form and select the corresponding preset form rendering component based on the target functional attribute information; pass the functional attribute parameters into each functional attribute module in the form rendering component; and according to the passed functional attribute parameters, use the functional attribute modules in the form rendering component in turn to dynamically render the field configuration form to obtain the filing configuration form corresponding to the second business platform.
5. A data filing device based on a form template, characterized in that: The data filing device based on the form template includes: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory to enable the form template-based data filing device to perform the steps of the form template-based data filing method as described in any one of claims 1-3.
6. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the steps of the data filing method based on the form template as described in any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method, system and device for processing form template
CN103514159A
Data processing method and device and machine readable medium
CN110223052A
Form configuration method and system based on configurable form engine
CN110232173A