From e2789f1d80f958944568f50936616e5e469850f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8C=AB=E7=8C=ABguowen?= <9290821+guowen-the-cat@user.noreply.gitee.com> Date: Mon, 18 Aug 2025 14:45:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=90=9C=E7=B4=A2=E5=92=8C?= =?UTF-8?q?=E9=87=8D=E7=BD=AE=E6=8C=89=E9=92=AE=E7=82=B9=E5=87=BB=E6=97=B6?= =?UTF-8?q?=EF=BC=8C=E5=8F=AA=E4=B8=BB=E8=A1=A8=E5=88=B7=E6=96=B0=EF=BC=8C?= =?UTF-8?q?=E5=AD=90=E8=A1=A8=E4=B8=8D=E5=88=B7=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/check/job/in/index.vue | 6 ++++++ ruoyi-ui/src/views/check/job/out/index.vue | 6 ++++++ ruoyi-ui/src/views/check/stockCheck/index.vue | 5 +++++ ruoyi-ui/src/views/in/job/index.vue | 5 +++++ ruoyi-ui/src/views/job/outJobManagement.vue | 6 ++++++ ruoyi-ui/src/views/out/outStockoutManage.vue | 10 ++++++++++ 6 files changed, 38 insertions(+) diff --git a/ruoyi-ui/src/views/check/job/in/index.vue b/ruoyi-ui/src/views/check/job/in/index.vue index 930cac5..30a33e8 100644 --- a/ruoyi-ui/src/views/check/job/in/index.vue +++ b/ruoyi-ui/src/views/check/job/in/index.vue @@ -375,6 +375,12 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据和当前选中行 + this.mydoJobDetailList = [] + this.detailTotal = 0 + this.currentRow = null + this.queryDetailParams.jobId = null + this.queryDetailParams.status = null this.getList() }, /** 重置按钮操作 */ diff --git a/ruoyi-ui/src/views/check/job/out/index.vue b/ruoyi-ui/src/views/check/job/out/index.vue index d2936a7..25766d2 100644 --- a/ruoyi-ui/src/views/check/job/out/index.vue +++ b/ruoyi-ui/src/views/check/job/out/index.vue @@ -357,6 +357,12 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据和当前选中行 + this.mydoJobDetailList = [] + this.detailTotal = 0 + this.currentRow = null + this.queryDetailParams.jobId = null + this.queryDetailParams.status = null this.getList() }, /** 重置按钮操作 */ diff --git a/ruoyi-ui/src/views/check/stockCheck/index.vue b/ruoyi-ui/src/views/check/stockCheck/index.vue index 8ffbc54..5700192 100644 --- a/ruoyi-ui/src/views/check/stockCheck/index.vue +++ b/ruoyi-ui/src/views/check/stockCheck/index.vue @@ -367,6 +367,11 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据和相关状态 + this.stockCheckDetailList = [] + this.detailTotal = 0 + this.queryDetailParams.stockCheckGuid = null + this.queryDetailParams.status = null this.getList() }, /** 重置按钮操作 */ diff --git a/ruoyi-ui/src/views/in/job/index.vue b/ruoyi-ui/src/views/in/job/index.vue index 637b9bd..ebfe0a8 100644 --- a/ruoyi-ui/src/views/in/job/index.vue +++ b/ruoyi-ui/src/views/in/job/index.vue @@ -367,6 +367,11 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据和当前选中行 + this.mydoJobDetailList = [] + this.detailTotal = 0 + this.currentRow = null + this.queryDetailParams.jobId = null this.getList() }, /** 重置按钮操作 */ diff --git a/ruoyi-ui/src/views/job/outJobManagement.vue b/ruoyi-ui/src/views/job/outJobManagement.vue index 9ee2049..1b0ab1b 100644 --- a/ruoyi-ui/src/views/job/outJobManagement.vue +++ b/ruoyi-ui/src/views/job/outJobManagement.vue @@ -321,6 +321,12 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据和当前选中行 + this.mydoJobDetailList = [] + this.detailTotal = 0 + this.currentRow = null + this.queryDetailParams.jobId = null + this.queryDetailParams.status = null this.getList() }, /** 重置按钮操作 */ diff --git a/ruoyi-ui/src/views/out/outStockoutManage.vue b/ruoyi-ui/src/views/out/outStockoutManage.vue index bbfd993..708ec9f 100644 --- a/ruoyi-ui/src/views/out/outStockoutManage.vue +++ b/ruoyi-ui/src/views/out/outStockoutManage.vue @@ -322,6 +322,11 @@ export default { this.outStockoutList = response.rows this.total = response.total this.loading = false + // 如果有数据,自动选中第一行 + if (this.outStockoutList.length > 0) { + this.handleRowClick(this.outStockoutList[0]); + } + }) }, /** 查询子表数据 */ @@ -338,6 +343,11 @@ export default { /** 搜索按钮操作 */ handleQuery() { this.queryParams.pageNum = 1 + // 清空子表数据 + this.outStockDetailList = [] + this.detailTotal = 0 + this.detailQueryParams.stockoutGuid = null + this.detailQueryParams.status = null this.getList() }, /** 重置按钮操作 */