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() }, /** 重置按钮操作 */