主子表刷新问题修改

This commit is contained in:
猫猫guowen
2025-08-26 14:54:44 +08:00
parent 2749ed7be0
commit 8bd78de236
8 changed files with 18 additions and 17 deletions

View File

@@ -333,6 +333,9 @@ export default {
// 如果有数据,自动选中第一行 // 如果有数据,自动选中第一行
if (this.mydoJobList.length > 0) { if (this.mydoJobList.length > 0) {
this.handleRowClick(this.mydoJobList[0]); this.handleRowClick(this.mydoJobList[0]);
}else {
this.mydoJobDetailList = []
this.detailLoading = false
} }
}) })
}, },
@@ -426,14 +429,12 @@ export default {
manualInvalidation(data).then(response => { manualInvalidation(data).then(response => {
this.$modal.msgSuccess(this.$t('checkJobIn.operaSuccess')); this.$modal.msgSuccess(this.$t('checkJobIn.operaSuccess'));
this.getList(); this.getList();
this.getDetailList()
}) })
}else if (row.type === 'completed'){ }else if (row.type === 'completed'){
//手动完成 //手动完成
manualCompleted(data).then(response => { manualCompleted(data).then(response => {
this.$modal.msgSuccess(this.$t('checkJobIn.operaSuccess')); this.$modal.msgSuccess(this.$t('checkJobIn.operaSuccess'));
this.getList(); this.getList();
this.getDetailList()
}) })
} }
}, },

View File

@@ -315,6 +315,9 @@ export default {
// 如果有数据,自动选中第一行 // 如果有数据,自动选中第一行
if (this.mydoJobList.length > 0) { if (this.mydoJobList.length > 0) {
this.handleRowClick(this.mydoJobList[0]); this.handleRowClick(this.mydoJobList[0]);
}else {
this.mydoJobDetailList = []
this.detailLoading = false
} }
}) })
}, },

View File

@@ -312,6 +312,9 @@ export default {
// 获取列表后,自动点击第一行数据 // 获取列表后,自动点击第一行数据
if (this.stockCheckList.length > 0) { if (this.stockCheckList.length > 0) {
this.handleRowClick(this.stockCheckList[0]) this.handleRowClick(this.stockCheckList[0])
}else {
this.stockCheckDetailList = []
this.detailLoading = false
} }
}) })
}, },
@@ -427,7 +430,6 @@ export default {
updateStockCheck(data).then(response => { updateStockCheck(data).then(response => {
this.$modal.msgSuccess(this.$t('checkStockCheck.invalidateSuccess')) this.$modal.msgSuccess(this.$t('checkStockCheck.invalidateSuccess'))
this.getList() this.getList()
this.getDetailList()
}) })
} else { } else {
this.$modal.msgError(this.$t('checkStockCheck.onlyUnreviewedCanInvalidate')) this.$modal.msgError(this.$t('checkStockCheck.onlyUnreviewedCanInvalidate'))
@@ -463,7 +465,6 @@ export default {
updateStockCheck(data).then(response => { updateStockCheck(data).then(response => {
this.$modal.msgSuccess(this.$t('checkStockCheck.confirmSuccess')) this.$modal.msgSuccess(this.$t('checkStockCheck.confirmSuccess'))
this.getList() this.getList()
this.getDetailList()
}) })
} else { } else {
this.$modal.msgError(this.$t('checkStockCheck.onlyReviewedCanConfirm')) this.$modal.msgError(this.$t('checkStockCheck.onlyReviewedCanConfirm'))
@@ -481,7 +482,6 @@ export default {
autoAllocation(stockCheckData).then(response => { autoAllocation(stockCheckData).then(response => {
this.$modal.msgSuccess(this.$t('checkStockCheck.autoAllocationSuccess')) this.$modal.msgSuccess(this.$t('checkStockCheck.autoAllocationSuccess'))
this.getList() this.getList()
this.getDetailList()
}) })
}, },

View File

@@ -325,6 +325,9 @@ export default {
// 如果有数据,自动选中第一行 // 如果有数据,自动选中第一行
if (this.mydoJobList.length > 0) { if (this.mydoJobList.length > 0) {
this.handleRowClick(this.mydoJobList[0]); this.handleRowClick(this.mydoJobList[0]);
} else {
this.mydoJobDetailList = []
this.detailLoading = false
} }
}) })
}, },
@@ -416,8 +419,6 @@ export default {
manualInvalidation(data).then(response => { manualInvalidation(data).then(response => {
this.$modal.msgSuccess(this.$t('inJob.operaSuccess')); this.$modal.msgSuccess(this.$t('inJob.operaSuccess'));
this.getList(); this.getList();
// 查询子表格数据
this.getDetailList();
}) })
@@ -426,9 +427,6 @@ export default {
manualCompleted(data).then(response => { manualCompleted(data).then(response => {
this.$modal.msgSuccess(this.$t('inJob.operaSuccess')); this.$modal.msgSuccess(this.$t('inJob.operaSuccess'));
this.getList(); this.getList();
// 查询子表格数据
this.getDetailList();
}) })
} }

View File

@@ -425,7 +425,6 @@ export default {
return delStockin(stockinGuids) return delStockin(stockinGuids)
}).then(() => { }).then(() => {
this.getList() this.getList()
this.getDetailList()
this.$modal.msgSuccess(this.$t('inReceiveStockin.deleteSuccess')) this.$modal.msgSuccess(this.$t('inReceiveStockin.deleteSuccess'))
}).catch(() => { }).catch(() => {
}) })
@@ -465,7 +464,6 @@ export default {
return delStockInDetail(stockinDetailIds) return delStockInDetail(stockinDetailIds)
}).then(() => { }).then(() => {
this.getDetailList(this.queryDetailParams.stockinId) this.getDetailList(this.queryDetailParams.stockinId)
this.getList()
this.$modal.msgSuccess(this.$t('inReceiveStockin.deleteSuccess')) this.$modal.msgSuccess(this.$t('inReceiveStockin.deleteSuccess'))
}).catch(() => { }).catch(() => {
}) })

View File

@@ -376,7 +376,6 @@ export default {
invalidatedStockIn(data).then(response => { invalidatedStockIn(data).then(response => {
this.$modal.msgSuccess(this.$t('inStockin.invalidateSuccess')) this.$modal.msgSuccess(this.$t('inStockin.invalidateSuccess'))
this.getList() this.getList()
this.getDetailList()
}) })
}else { }else {
this.$modal.msgError(this.$t('inStockin.onlyUnreviewedCanInvalidate')) this.$modal.msgError(this.$t('inStockin.onlyUnreviewedCanInvalidate'))

View File

@@ -279,6 +279,9 @@ export default {
// 如果有数据,自动选中第一行 // 如果有数据,自动选中第一行
if (this.mydoJobList.length > 0) { if (this.mydoJobList.length > 0) {
this.handleRowClick(this.mydoJobList[0]); this.handleRowClick(this.mydoJobList[0]);
}else {
this.mydoJobDetailList = []
this.detailLoading = false
} }
}) })
}, },
@@ -391,7 +394,6 @@ export default {
}).then(() => { }).then(() => {
this.$modal.msgSuccess("手动完成成功"); this.$modal.msgSuccess("手动完成成功");
this.getList(); this.getList();
this.getDetailList()
}).catch(() => {}); }).catch(() => {});
}, },
//手动作废 //手动作废
@@ -413,7 +415,6 @@ export default {
}).then(() => { }).then(() => {
this.$modal.msgSuccess("手动作废成功"); this.$modal.msgSuccess("手动作废成功");
this.getList(); this.getList();
this.getDetailList()
}).catch(() => {}); }).catch(() => {});
} }

View File

@@ -325,6 +325,9 @@ export default {
// 如果有数据,自动选中第一行 // 如果有数据,自动选中第一行
if (this.outStockoutList.length > 0) { if (this.outStockoutList.length > 0) {
this.handleRowClick(this.outStockoutList[0]); this.handleRowClick(this.outStockoutList[0]);
}else {
this.outStockDetailList = []
this.detailLoading = false
} }
}) })
@@ -407,7 +410,6 @@ export default {
updateOutStockStatus(params).then(response => { updateOutStockStatus(params).then(response => {
this.$modal.msgSuccess(response) this.$modal.msgSuccess(response)
this.getList() this.getList()
this.getDetailList()
}) })
}, },
@@ -439,7 +441,6 @@ export default {
this.$modal.msgSuccess(response.msg) this.$modal.msgSuccess(response.msg)
} }
this.getList() this.getList()
this.getDetailList()
}) })
}, },
/** 手动分配按钮操作 */ /** 手动分配按钮操作 */