From 8c517ce3ebd145dd45886d54fc045035b8bb87da Mon Sep 17 00:00:00 2001
From: TanYibin <5491541@qq.com>
Date: Tue, 10 Oct 2023 17:56:43 +0800
Subject: [PATCH] 盘点问题修正

---
 ant-design-vue-jeecg/src/views/system/stocktaking/modules/CycleCountDetailModal.vue | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/ant-design-vue-jeecg/src/views/system/stocktaking/modules/CycleCountDetailModal.vue b/ant-design-vue-jeecg/src/views/system/stocktaking/modules/CycleCountDetailModal.vue
index 49e05ff..17dac10 100644
--- a/ant-design-vue-jeecg/src/views/system/stocktaking/modules/CycleCountDetailModal.vue
+++ b/ant-design-vue-jeecg/src/views/system/stocktaking/modules/CycleCountDetailModal.vue
@@ -251,7 +251,7 @@ export default {
         this.isorter.order = "ascend" == sorter.order ? "asc" : "desc"
       }
       this.detailIpagination = pagination;
-      this.getDetailDataSource();
+      this.getDetailDataSource(this.detailIpagination.current);
     },
     customRowFn(record) {
       return {
@@ -277,8 +277,11 @@ export default {
       this.selectedTable.dataSource.splice(this.selectedTable.dataSource.indexOf(record), 1)
       this.getDetailDataSource();
     },
-    getDetailDataSource() {
+    getDetailDataSource(current) {
       this.loading = true;
+      if (current == undefined) {
+        this.detailIpagination.current = 1;
+      }
       let params = {
         inventoryHeaderIds: this.selectedRowIds.join(","),
         pageNo: this.detailIpagination.current,
--
libgit2 0.22.2