Page inspection item display method and device, electronic equipment and storage medium
By automatically locating and displaying the latest inspection items in the historical operation time of the store inspection management system, the problem of time-consuming manual searching by users is solved, thereby improving the operational efficiency of store inspection tasks and the user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SUZHOU WANDIANZHANG NETWORK TECH CO LTD
- Filing Date
- 2026-05-29
- Publication Date
- 2026-06-30
AI Technical Summary
In the store inspection management system, when a user exits midway and re-enters the same task, they need to manually scroll through the page to find the inspection item from the last operation, which results in a long search time, low operation efficiency, and a negative impact on user experience.
By responding to the activation status of the inspection task, the system automatically locates and displays the latest inspection item based on the historical operation time, reducing the tedious process of users manually scrolling through the page.
It enables quick location of the latest inspection item from historical operation times, shortens the location time after the user re-enters the task, and improves the operational efficiency and user experience of store inspection tasks.
Smart Images

Figure CN122308673A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer technology, and in particular to a method, apparatus, electronic device, and storage medium for displaying page inspection items. Background Technology
[0002] Store inspection management systems are core tools for the operation and management of chain stores. The store inspection page typically contains dozens or even hundreds of inspection items (such as store hygiene, equipment status, and service standards), all of which are divided into different inspection tasks (store inspection tasks). Users (such as store inspection personnel) may only be able to complete some of the inspection items in a single inspection task. If they exit the page midway and reopen the same inspection task, they need to manually scroll through the inspection page to find the previously performed inspection item. This manual search is particularly time-consuming and inefficient when there are many inspection items in the task.
[0003] Therefore, how to quickly locate the last completed inspection item after reopening the same inspection task, thereby improving operational efficiency and enhancing user experience, is an urgent problem to be solved. Summary of the Invention
[0004] This disclosure provides a method, apparatus, electronic device, and storage medium for displaying page inspection items.
[0005] According to a first aspect of the present disclosure, a method for displaying page inspection items is provided, the method comprising: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
[0006] In some embodiments, the method further includes: In response to performing an operation on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
[0007] In some embodiments, the method further includes: In response to the inspection task having historical operation records, the historical operation records are deleted and the current operation records of the inspection task are stored.
[0008] In some embodiments, the method further includes: Based on the operation time indicated in the operation log, delete operation logs that are outside their validity period.
[0009] In some embodiments, the method further includes: The operation record corresponding to the first inspection task is determined based on the identifier of the first inspection task. Based on the identifier of the inspection item indicated in the operation record corresponding to the first inspection task, the target inspection item corresponding to the first inspection task is determined.
[0010] In some embodiments, scrolling the scrolling page displaying multiple inspection items corresponding to the first inspection task and moving the target inspection item to a preset display area for display includes: Determine the document object model element corresponding to the inspection item identifier indicated by the operation record of the first inspection task, and move the document object model element to the preset display area.
[0011] According to a second aspect of the present disclosure, a page inspection item display device is provided, characterized in that the device includes: a processing module, wherein the processing module is used for: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
[0012] In some embodiments, the processing module is further configured to: In response to performing an operation on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
[0013] In some embodiments, the processing module is further configured to: In response to the inspection task having historical operation records, the historical operation records are deleted and the current operation records of the inspection task are stored.
[0014] In some embodiments, the processing module is further configured to: Based on the operation time indicated in the operation log, delete operation logs that are outside their validity period.
[0015] In some embodiments, the processing module is further configured to: The operation record corresponding to the first inspection task is determined based on the identifier of the first inspection task. Based on the identifier of the inspection item indicated in the operation record corresponding to the first inspection task, the target inspection item corresponding to the first inspection task is determined.
[0016] In some embodiments, the processing module is specifically used for: Determine the document object model element corresponding to the inspection item identifier indicated by the operation record of the first inspection task, and move the document object model element to the preset display area.
[0017] According to a third aspect of the present disclosure, an electronic device is provided, the electronic device comprising: One or more processors; The processor is used to invoke instructions to cause the electronic device to execute the page inspection item display method described in the first aspect.
[0018] According to a fourth aspect of the present disclosure, a storage medium is provided that stores instructions that, when executed on an electronic device, cause the electronic device to perform the page inspection item display method described in the first aspect.
[0019] The page inspection item display method according to an embodiment of this disclosure includes, in response to a first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, performing a scrolling operation on a scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and moving a target inspection item to a preset display area for display. The target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items. This achieves automatic location and display of the inspection item with the latest historical operation time, reducing the tedious process of users manually scrolling the page to find it. It shortens the location time after the user re-enters the task, improves the operational efficiency of the store inspection task, and enhances the user experience. Attached Figure Description
[0020] Figure 1 This is a flowchart illustrating a method for displaying page inspection items according to an exemplary embodiment. Figure 1 ; Figure 2 This is a schematic diagram of an inspection page according to an exemplary embodiment. Figure 1 ; Figure 3 This is a schematic diagram of an inspection page according to an exemplary embodiment. Figure 2 ; Figure 4 This is a schematic diagram of an inspection page according to an exemplary embodiment. Figure 3 ; Figure 5 This is a schematic diagram of an inspection page according to an exemplary embodiment. Figure 4 ; Figure 6 This is a flowchart illustrating a method for displaying page inspection items according to an exemplary embodiment. Figure 2 ; Figure 7 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment. Detailed Implementation
[0021] To make the technical solution and beneficial effects of the present invention more apparent and understandable, a detailed description is provided below by listing specific embodiments. The accompanying drawings are not necessarily drawn to scale, and local features may be enlarged or reduced to more clearly show the details of the local features; unless otherwise defined, the technical and scientific terms used herein have the same meanings as those in the technical field to which this application pertains.
[0022] This disclosure is not exhaustive, but merely illustrative of some embodiments, and is not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment can be arbitrarily interchanged. Furthermore, the optional implementation methods in a particular embodiment can be arbitrarily combined; moreover, the embodiments can be arbitrarily combined, for example, some or all steps of different embodiments can be arbitrarily combined, and a particular embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.
[0023] In each of the disclosed embodiments, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of the embodiments are consistent and can be referenced by each other. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.
[0024] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure.
[0025] In this disclosure, unless otherwise stated, elements expressed in the singular form, such as "a," "an," "the," "the," "the," "the," "the," "the," "this," etc., can mean "one and only one," or "one or more," "at least one," etc. For example, when using articles such as "a," "an," "the," etc. in translation, the noun following the article can be understood as either a singular or a plural expression.
[0026] In the embodiments disclosed herein, "multiple" refers to two or more.
[0027] In some embodiments, the terms “at least one of”, “one or more”, “a plurality of”, “multiple”, etc., may be used interchangeably.
[0028] In some embodiments, the notation "at least one of A and B", "A and / or B", "A in one case, B in another", "A in one case, B in another", etc., may include the following technical solutions depending on the situation: in some embodiments, A (A is executed regardless of B); in some embodiments, B (B is executed regardless of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, both A and B are executed. The same applies when there are more branches such as A, B, C, etc.
[0029] In some embodiments, the notation "A or B" may include the following technical solutions, depending on the situation: in some embodiments, A (execution of A regardless of B); in some embodiments, B (execution of B regardless of A); in some embodiments, selective execution from A and B (A and B are selectively executed). The same applies when there are more branches such as A, B, and C.
[0030] The prefixes "first," "second," etc., used in the embodiments of this disclosure are merely for distinguishing different descriptive objects and do not impose restrictions on the position, order, priority, value, or content of the descriptive objects. The description of the descriptive objects should be found in the claims or the context of the embodiments, and the use of prefixes should not constitute unnecessary restrictions. For example, if the descriptive object is a "field," the ordinal numbers preceding "field" in "first field" and "second field" do not restrict the position or order of the "fields." "First" and "second" do not restrict whether the "fields" they modify are in the same message, nor do they restrict the order of "first field" and "second field." Similarly, if the descriptive object is a "level," the ordinal numbers preceding "level" in "first level" and "second level" do not restrict the priority between "levels." Furthermore, the value of the descriptive object is not limited by ordinal numbers and can be one or more. For example, in "first device," the value of "device" can be one or more. Furthermore, the objects modified by different prefixes can be the same or different. For example, if the object being described is "device", then "first device" and "second device" can be the same device or different devices, and their types can be the same or different. Similarly, if the object being described is "information", then "first information" and "second information" can be the same information or different information, and their content can be the same or different.
[0031] In some embodiments, “including A,” “containing A,” “for indicating A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.
[0032] In some embodiments, terms such as “…”, “determine…”, “in the case of…”, “when…”, “when…”, “if…”, etc. can be used interchangeably.
[0033] In some embodiments, the terms “greater than,” “greater than or equal to,” “not less than,” “more than,” “more than or equal to,” “not less than,” “higher than,” “higher than or equal to,” “not lower than,” and “above” can be used interchangeably, as can the terms “less than,” “less than or equal to,” “not greater than,” “less than,” “less than or equal to,” “not more than,” “lower than,” “lower than or equal to,” “not higher than,” and “below”.
[0034] In some embodiments, devices, etc., can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as “device”, “equipment”, “circuit”, “network element”, “node”, “function”, “unit”, “section”, “system”, “network”, “chip”, “chip system”, “entity”, and “subject” can be used interchangeably.
[0035] When users are performing store inspection tasks in the store inspection management system, due to the large number of inspection items, if a user exits midway and re-enters the same task, they need to manually scroll through the page to find the inspection item they last operated on. This results in long search times, low operation efficiency, and a negative impact on user experience.
[0036] This disclosure provides a method for displaying page inspection items, such as... Figure 1 As shown, the method includes: Step 101: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
[0037] In one possible implementation, the method for displaying page inspection items can be executed by the store inspection device carrying the store inspection management system, such as by a personal terminal, mobile phone, or computer.
[0038] Here, an inspection task can be a set of related inspection items set in a store inspection management system to achieve specific store inspection goals, such as store hygiene inspection or equipment status inspection. An inspection item can be the smallest operational unit that constitutes an inspection task, and can include a specific inspection or operation, such as floor cleanliness or refrigerator temperature.
[0039] In one possible implementation, the store inspection management system may include multiple inspection tasks, and each inspection task may include multiple inspection items.
[0040] The inactive state of an inspection task can include: the inspection task is not currently selected by the user, the inspection task is in a closed state, or the store inspection management system in which the inspection task resides is closed. The active state can include: the inspection task is currently selected by the user and is ready to be operated.
[0041] Historical operation time can be a timestamp recorded when a user performs an operation on an inspection item. Historical operation time can be used to indicate the time when the inspection item was last operated on.
[0042] Target inspection items can be included in a specific inspection task, and are the inspection items that were last operated by the user, determined based on historical operation time.
[0043] The inspection page can be a user interface that displays all inspection items for a specific inspection task. For example, ... Figure 2 As shown, the store inspection management system can include multiple inspection tasks (Inspection Task 1, Inspection Task 2, Inspection Task n), each with a corresponding inspection page listing all inspection items for that task. Figure 2 As shown, inspection task 2 includes multiple inspection items (inspection item 1 to inspection item n). Figure 2 In the middle, some inspection items of inspection task 2 (inspection items 7 to n are outside the screen range).
[0044] Scrolling can be controlled programmatically or through user interaction, causing the content on the inspection page to move up and down to display content currently off-screen. For example... Figure 3 As shown, by Figure 2 The inspection page shown can be scrolled to move inspection items that are outside the screen area into the screen area.
[0045] A preset display area can be a fixed location on the inspection page, such as an area typically located in the center or top of the screen. This area is used to highlight specific inspection items.
[0046] Specifically, when a user selects and clicks the first inspection task (e.g., inspection task 2) among multiple inspection tasks in the store inspection management system's task list, the status of the first inspection task changes from inactive to active. For example, if a user clicks on inspection task 2 (e.g., store hygiene inspection task) in the task list interface, inspection task 2 is activated. After the first inspection task is activated, the store inspection equipment can determine the target inspection item with the most recent historical operation time among the multiple inspection items of that first inspection task.
[0047] In one possible implementation, all inspection items under the first inspection task can be traversed, and the most recent operation time associated with each inspection item can be queried. By comparing these times, the inspection item with the latest operation time can be identified as the target inspection item.
[0048] In one possible implementation, the store inspection device can maintain only one operation record for an inspection task. The operation record records the inspection items that were recently operated on for the inspection task. When the inspection task is activated, the operation record is directly operated to obtain the target inspection item.
[0049] After identifying the target inspection item, the store inspection device scrolls the inspection page displaying multiple inspection items for that first inspection task. For example, the device can calculate the current position of the target inspection item on the inspection page and trigger the page to scroll up or down based on its relative position to a preset display area.
[0050] The store inspection equipment can move the target inspection item to a specific area on the inspection page by scrolling through the page. For example... Figure 4 and Figure 5 As shown, inspection item 25 is the target inspection item with the latest historical operation time among the multiple inspection items in inspection task 2. For example... Figure 4 As shown, inspection item 25 is located outside the screen area of the inspection task 2 inspection page. After adopting the method of this embodiment, as... Figure 5 The store inspection device shown can move inspection item 25 to a specific area on the inspection page (such as the area indicated by arrow A) when inspection task 2 is activated.
[0051] This allows for the automatic location and display of the latest inspection items based on historical operation times, reducing the tedious process of users manually scrolling through pages to find them. It also shortens the location time after users re-enter the task, improving the operational efficiency of store inspection tasks and enhancing the user experience.
[0052] In some embodiments, the method further includes: In response to performing an operation on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
[0053] When a user performs an operation on any inspection item in the inspection task (such as filling in inspection results, uploading inspection photos, or marking the inspection status), the store inspection device can trigger a recording mechanism. The recording mechanism can be used to acquire and store information related to this operation, forming an operation record.
[0054] Operation logs can be structured data used to provide clear, traceable information about user actions. The identifier for the most recently operated inspection item can be a code or string used to uniquely identify the operated inspection item. The identifier for the inspection task is a code or string used to uniquely identify the inspection task to which the inspection item belongs. The operation time can be a timestamp, recording the point in time when the operation occurred.
[0055] In one possible implementation, operation records can be stored in the local cache of the store inspection device.
[0056] For example, a unique identifier (ID) can be assigned to each inspection item (e.g., checkItem_1001), and a task identifier (e.g., task_20260310_001) can be assigned to each inspection task to distinguish different inspection tasks (store patrol tasks). The specific time of operation completion can be recorded in timestamp format (e.g., 1741507200000).
[0057] One possible implementation is to encapsulate the data into JSON format for recording operations. This would make the operation records lightweight and improve parsing efficiency.
[0058] For example, the above operation record can be recorded as {taskId: "task_20260310_001", itemId: "checkItem_1001", operationTime: 1741507200000}. taskId represents the identifier of the inspection task, itemId represents the identifier of the inspection item, and operationTime represents the operation time. The operation record can be stored in the front-end local cache (preferably localStorage, supporting cross-session retention), and the storage key name can be designed as storeCheck_${taskId}.
[0059] When users perform operations on inspection items in the inspection task, the store inspection equipment can store operation records in real time, including inspection item identifiers, inspection task identifiers, and operation times. This provides a reliable data foundation for determining the target inspection item with the latest historical operation time.
[0060] In some embodiments described above, this application proposes storing the operation record of the most recent inspection item when performing an operation on an inspection task. However, in practical applications, an inspection task may be performed multiple times. If only each operation record is stored without effective management of historical records, a large number of redundant or outdated operation records may accumulate in the inspection equipment. This not only increases the burden of data storage and processing but may also require processing more data when subsequently identifying target inspection items, thereby reducing the efficiency and accuracy of data retrieval and potentially even incorrectly identifying historical operation records that are not currently up-to-date.
[0061] In some embodiments, the method further includes: In response to the inspection task having historical operation records, the historical operation records are deleted and the current operation records of the inspection task are stored.
[0062] Here, for a single inspection task, the store inspection equipment can maintain only one operation record to reduce the complexity of operation record maintenance and the amount of cached data.
[0063] Specifically, before storing operation record data, it first checks whether the operation record of the inspection item corresponding to the current inspection task (i.e. the identifier of the inspection task) already exists in the local cache. If it exists, the original record is overwritten. If it is confirmed that the current inspection task has historical operation records, the store inspection device will perform a deletion operation to delete the historical operation records and store the latest operation record generated by the current operation on the inspection item. This achieves the goal of keeping only the latest operation record and reducing the amount of cached data.
[0064] In this way, when an inspection task is performed, the store inspection equipment checks whether there are any existing historical operation records for that task before storing a new operation record. If so, these old historical records are deleted first, and then the latest operation record is stored. Each inspection task always retains only one latest operation record in the store inspection equipment, reducing data redundancy and information clutter, and reducing the amount of cached data.
[0065] In some embodiments, the method further includes: deleting operation records that are outside their validity period based on the operation time indicated by the operation record.
[0066] The operation time in the operation log represents the specific moment when a user performs an operation on a particular inspection item. The store inspection equipment can read and parse the operation time to obtain the operation time of each operation record, which is a key basis for determining whether the operation record is within its validity period.
[0067] The validity period can be preset. For example, the validity period of the operation record can be set to one week. The store inspection equipment can periodically or under specific conditions (such as when the store inspection system is turned on) check the operation records of all inspection tasks. For operation records whose time interval exceeds the validity period, a deletion operation is performed. The deletion operation can be performed through the deletion command provided by the store inspection system, or by directly removing the corresponding data file from the storage medium.
[0068] For example, when a user opens the store inspection system page, the cache clearing logic is triggered: the store inspection device can traverse all key-value pairs prefixed with storeCheck_ in the local cache to obtain all inspection item operation records; calculate the difference between the operation time of each record and the current time. If the difference is greater than 7 days, it is determined to be an expired record; delete all expired records and only keep the operation records that have not expired to reduce cache usage.
[0069] In this way, the store inspection equipment can identify and delete operation records that have exceeded the preset validity period based on the operation time indicated in the operation log. By cleaning up expired data, the operation records on which the store inspection equipment relies are kept in the latest and most relevant state.
[0070] In some embodiments, the method further includes: The operation record corresponding to the first inspection task is determined based on the identifier of the first inspection task. Based on the identifier of the inspection item indicated in the operation record corresponding to the first inspection task, the target inspection item corresponding to the first inspection task is determined.
[0071] When the first inspection task is activated, the store inspection device can search through pre-stored operation records based on the identifier of the first inspection task, such as the task ID. Each operation record typically contains information such as the identifier of the inspection item, the identifier of the inspection task to which it belongs, and the operation time. By matching the identifier of the first inspection task with the identifiers of the inspection tasks in the stored operation records, the operation record corresponding to the first inspection task is determined.
[0072] As described in the above embodiments, typically only one most recent operation record is retained for each inspection task. After obtaining the operation record of the first inspection task, the store inspection equipment can determine the target inspection item from the identifier of the inspection item recorded in the operation record. That is, the inspection item corresponding to the identifier of the inspection item recorded in the operation record is determined as the target inspection item.
[0073] For example, the store inspection device can filter target inspection items based on the currently opened first inspection task. The device can extract the identifier of the first inspection task, obtaining its unique identifier (e.g., task_20260310_001) from page routing parameters or global status; from the filtered, unexpired operation records, it can select operation records whose taskId (inspection task identifier) matches the first inspection task identifier, and determine the inspection item identifier within that operation record.
[0074] Thus, based on the unique identifiers of the first inspection task and the inspection items, the store inspection equipment can accurately determine the operation record and target inspection item corresponding to the first inspection task, thereby improving the accuracy of determining the target inspection item.
[0075] In some embodiments, scrolling the scrolling page displaying multiple inspection items corresponding to the first inspection task and moving the target inspection item to a preset display area for display includes: Determine the document object model element corresponding to the inspection item identifier indicated by the operation record of the first inspection task, and move the document object model element to the preset display area.
[0076] Document Object Model (DOM) elements can be the nodes and objects that make up the Document Object Model (DOM) in a webpage or application interface. Every visible or invisible element on a page, such as text, images, buttons, and input boxes, corresponds to a DOM element.
[0077] Here, the specific presentation of the target inspection item on the inspection page can be a Document Object Model (DOM) element. By obtaining this DOM element, it can be precisely located and manipulated, thereby achieving fine-grained control over the page content.
[0078] Document object model elements and their corresponding inspection items can use the same identifier. The store inspection equipment can use the identifier of the inspection item indicated by the operation record to correspond to the document object model element corresponding to the target inspection item.
[0079] In one possible implementation, the document object model element corresponding to the target inspection item can be directly called, and the browser will automatically calculate and perform a scrolling operation to bring the element into the preset display area.
[0080] In one possible implementation, the scrolling behavior of the inspection page can be configured, such as smooth scrolling.
[0081] In one possible implementation, the precise scroll distance is calculated by obtaining the position information of the document object model element corresponding to the target inspection item relative to a preset display area, and combining this information with the position and size of the preset display area. The calculated scroll distance value is then assigned to the page's scroll property, thereby achieving programmatic control of the inspection page's scrollbar and moving the document object model element corresponding to the target inspection item to the preset display area.
[0082] For example, the corresponding inspection item can be located based on the operation record. For instance, to find a DOM element: based on the inspection item identifier (itemId) in the operation record, use `document.getElementById(itemId)` or `document.querySelector([data-item-id="${itemId}"])` to find the corresponding target inspection item DOM element on the page; then call `element.scrollIntoView({behavior: "smooth", block: "center"})` to scroll the DOM element to the center of the visible area.
[0083] By identifying the document object model element corresponding to the target inspection item and directly manipulating that element to move it to a preset display area, the accuracy of presenting the target inspection item in the user's field of vision is improved. This enhances the ease and efficiency of operation for users when handling inspection tasks, especially when there are many inspection items or complex page layouts. Users do not need to search manually; the inspection equipment can intelligently place the most relevant inspection items in the focus position, improving the user experience.
[0084] The following provides several specific examples in conjunction with any of the above embodiments: A store inspection page check item positioning system includes: The recording and storage module is used to collect the inspection item identifier, inspection task identifier, and operation time after the user completes the inspection item operation, and encapsulate them into record data and store them in the local cache. The expired cleanup module is used to read cached records when the page is opened, filter and delete expired records that have a validity period of more than 7 days; The record matching module is used to match the latest non-expired operation record corresponding to the current task and extract the target inspection item identifier; The scroll positioning module is used to locate DOM elements based on the check item identifiers and control the page to scroll to the visible area of the element; The cache management module is used to uniformly manage the CRUD operations of the local cache, and restricts a single task to retain only the latest operation record.
[0085] In some embodiments, the steps of the store inspection system performing the inspection item display method are as follows: Figure 6 As shown, it includes: Step 601: Store the operation record of the inspection item.
[0086] When a user completes any inspection item on the store inspection page (such as filling in inspection results, uploading inspection photos, or marking the inspection status), the record storage logic is triggered: 1.1 Collect core data: Unique identifier for each inspection item: A globally unique ID (e.g., checkItem_1001) assigned to each inspection item, generated based on the task ID; Task Identifier: A unique number for the current inspection task (e.g., task_20260310_001), used to distinguish different inspection tasks; Operation time: Record the specific time of operation completion using a timestamp format (e.g., 1741507200000) for easy verification of validity period later; 1.2 Data Encapsulation and Storage: Encapsulate the above data into operation records in JSON format (Example: {taskId: "task_20260310_001", itemId: "checkItem_1001", operationTime: 1741507200000, )
[0087] 1.3 Cache Write: Store operation records to the front-end local cache (localStorage is preferred, and cross-session retention is supported); the storage key name can be designed as storeCheck_${taskId}.
[0088] Step 602: Filtering expired records.
[0089] When a user opens the store visit page, the cache clearing logic is triggered: 2.1 Read cached data: Traverse all key-value pairs in the local cache that are prefixed with storeCheck_ to obtain all check item operation records; 2.2 Validity period verification: The preset validity period is 7 days (604,800,000 milliseconds). Calculate the difference between the operation time of each operation record and the current time. If the difference is greater than 7 days, it is determined to be an expired record. 2.3 Clean up expired data: Delete all expired operation records and keep only the operation records that have not expired to reduce cache usage.
[0090] Step 603: Matching of target inspection items.
[0091] Based on the currently open inspection task, filter the target inspection items: 3.1 Extract the current task identifier: Obtain the unique identifier of the current inspection task (e.g., task_20260310_001) from the page routing parameters or global status. 3.2 Filtering Task Matching Records: Among the filtered non-expired records, select the target operation records whose taskId matches the current task identifier.
[0092] Step 604: Page scroll positioning.
[0093] Locate the corresponding inspection item based on the target operation record: 4.1 Finding DOM Elements: Based on the itemId in the target operation record, use document.getElementById(itemId) or document.querySelector([data-item-id="${itemId}"]) to find the corresponding DOM element of the item on the page; 4.2 Perform a scrolling operation: Call element.scrollIntoView({behavior: "smooth", block: "center"}) to scroll the DOM element to the center of the visible area; This disclosure also proposes a page inspection item display device, the device comprising: a processing module, wherein the processing module is used for: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
[0094] In some embodiments, the processing module is further configured to: In response to performing an operation on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
[0095] In some embodiments, the processing module is further configured to: In response to the inspection task having historical operation records, the historical operation records are deleted and the current operation records of the inspection task are stored.
[0096] In some embodiments, the processing module is further configured to: Based on the operation time indicated in the operation log, delete operation logs that are outside their validity period.
[0097] In some embodiments, the processing module is further configured to: The operation record corresponding to the first inspection task is determined based on the identifier of the first inspection task. Based on the identifier of the inspection item indicated in the operation record corresponding to the first inspection task, the target inspection item corresponding to the first inspection task is determined.
[0098] In some embodiments, the processing module is specifically used for: Determine the document object model element corresponding to the inspection item identifier indicated by the operation record of the first inspection task, and move the document object model element to the preset display area.
[0099] It should be understood that the division of units or modules in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, the units or modules in the device can be implemented by a processor calling software: for example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of the units or modules in the above device. The processor can be, for example, a general-purpose processor, such as a Central Processing Unit (CPU) or a microprocessor, and the memory can be internal or external to the device. Alternatively, the units or modules in the device can be implemented in the form of hardware circuits. The functionality of some or all of the units or modules can be achieved through the design of these hardware circuits, which can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC), and the functionality of some or all of the units or modules is achieved through the design of the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a programmable logic device (PLD), such as a field-programmable gate array (FPGA), which can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files, thereby achieving the functionality of some or all of the units or modules. All units or modules of the above device can be implemented entirely through processor-called software, entirely through hardware circuits, or partially through processor-called software with the remaining parts implemented through hardware circuits.
[0100] In this disclosure, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a Central Processing Unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a type of microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the aforementioned hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units or modules. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), a Tensor Processing Unit (TPU), a Deep Learning Processing Unit (DPU), etc.
[0101] Figure 7 This is a schematic diagram of the structure of the electronic device 9100 provided in this embodiment. The electronic device 9100 can be a network device, a terminal (e.g., a user equipment), a chip, chip system, or processor that supports the network device in implementing any of the above methods, or a chip, chip system, or processor that supports the terminal in implementing any of the above information transmission methods. The electronic device 9100 can be used to implement the page inspection item display method described in the above method embodiments; please refer to the description in the above method embodiments for details.
[0102] like Figure 7 As shown, the electronic device 9100 includes one or more processors 9101. The processor 9101 can be a general-purpose processor or a special-purpose processor, etc. The processor 9101 is used to invoke instructions to cause the electronic device 9100 to execute any of the above-mentioned page inspection item display methods.
[0103] In some embodiments, the electronic device 9100 further includes one or more memories 9102 for storing instructions. Optionally, all or part of the memories 9102 may also be located outside the electronic device 9100.
[0104] In some embodiments, the electronic device 9100 further includes one or more transceivers 9103. When the electronic device 9100 includes one or more transceivers 9103, the steps of sending, receiving and / or acquiring in the above method are performed by the transceivers 9103, and the other steps are performed by the processor 9101.
[0105] In some embodiments, the acquisition steps in the above method can also be executed by the processor 9101, for example, acquiring information from the memory 9102.
[0106] In some embodiments, a transceiver may include a receiver and a transmitter, which may be separate or integrated. Optionally, the terms transceiver, transceiver unit, transceiver, transceiver circuit, etc., may be used interchangeably; the terms transmitter, transmitting unit, transmitter, transmitting circuit, etc., may be used interchangeably; and the terms receiver, receiving unit, receiver, receiving circuit, etc., may be used interchangeably.
[0107] Optionally, the electronic device 9100 further includes one or more interface circuits 9104 connected to the memory 9102. The interface circuits 9104 can be used to receive signals from the memory 9102 or other devices, and can be used to send signals to the memory 9102 or other devices. For example, the interface circuits 9104 can read instructions stored in the memory 9102 and send the instructions to the processor 9101.
[0108] The electronic device 9100 described in the above embodiments may be a network device or a terminal, but the scope of the electronic device 9100 described in this disclosure is not limited thereto, and the structure of the electronic device 9100 may vary. Figure 7 The limitations. Electronic devices can be standalone devices or part of a larger device. For example, the electronic devices can be: (1) standalone integrated circuits (ICs), or chips, or chip systems or subsystems; (2) a collection of one or more ICs, optionally including storage components for storing data and programs; (3) ASICs, such as modems; (4) modules that can be embedded in other devices; (5) receivers, terminal devices, smart terminal devices, cellular phones, wireless devices, handheld devices, mobile units, vehicle-mounted devices, network devices, cloud devices, artificial intelligence devices, etc.; (6) others, etc.
[0109] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program commands. The aforementioned program can be stored in a storage medium, including various media capable of storing program code such as mobile storage devices, read-only memory (ROM), random access memory (RAM), magnetic disks or optical disks.
[0110] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several commands to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROM, RAM, magnetic disks, or optical disks.
[0111] It should be understood that the above embodiments are exemplary and are not intended to encompass all possible implementations included in the claims. Various modifications and changes can be made to the above embodiments without departing from the scope of this disclosure. Similarly, the various technical features of the above embodiments can be arbitrarily combined to form other embodiments of the present invention that may not be explicitly described. Therefore, the above embodiments only illustrate several implementations of the present invention and do not limit the scope of protection of this patent.
Claims
1. A method for displaying page inspection items, characterized in that, The method includes: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
2. The method for displaying page inspection items according to claim 1, characterized in that, The method further includes: In response to performing an operation on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
3. The method for displaying page inspection items according to claim 2, characterized in that, The method further includes: In response to the inspection task having historical operation records, the historical operation records are deleted and the current operation records of the inspection task are stored.
4. The method for displaying page inspection items according to claim 2, characterized in that, The method further includes: Based on the operation time indicated in the operation log, delete operation logs that are outside their validity period.
5. The method for displaying page inspection items according to claim 2, characterized in that, The method further includes: The operation record corresponding to the first inspection task is determined based on the identifier of the first inspection task. Based on the identifier of the inspection item indicated in the operation record corresponding to the first inspection task, the target inspection item corresponding to the first inspection task is determined.
6. The method for displaying page inspection items according to claim 2, characterized in that, The step of scrolling the page displaying multiple inspection items corresponding to the first inspection task to move the target inspection item to a preset display area includes: Determine the document object model element corresponding to the inspection item identifier indicated by the operation record of the first inspection task, and move the document object model element to the preset display area.
7. A page inspection item display device, characterized in that, The device includes a processing module, wherein the processing module is used for: In response to the first inspection task in a plurality of inspection tasks switching from an inactive state to an active state, a scrolling operation is performed on the scrolling page displaying the plurality of inspection items corresponding to the first inspection task, and the target inspection item is moved to a preset display area for display, wherein the target inspection item is the inspection item with the latest historical operation time among the plurality of inspection items.
8. The page inspection item display device according to claim 7, characterized in that, The processing module is also used for: In response to operations performed on the inspection items of the inspection task, the operation record of the inspection item with the latest operation time is stored; The operation record is used to indicate: the identifier of the inspection item with the latest operation time, the identifier of the inspection task, and the operation time.
9. An electronic device, characterized in that, The electronic device includes: One or more processors; The processor is used to invoke instructions to cause the electronic device to execute the page inspection item display method according to any one of claims 1 to 6.
10. A storage medium, characterized in that, The storage medium stores instructions that, when executed on an electronic device, cause the electronic device to perform the page inspection item display method according to any one of claims 1 to 6.