diff --git a/src/views/modules/erf/components/expRawMaterialList.vue b/src/views/modules/erf/components/expRawMaterialList.vue index a339bd1..1b2c04f 100644 --- a/src/views/modules/erf/components/expRawMaterialList.vue +++ b/src/views/modules/erf/components/expRawMaterialList.vue @@ -55,6 +55,7 @@ { + if (this.$refs.rawMaterialTable && this.$refs.rawMaterialTable.doLayout) { + this.$refs.rawMaterialTable.doLayout() + } + }) + }, + /** * 加载原材料修改记录 */ diff --git a/src/views/modules/erf/expApplyList.vue b/src/views/modules/erf/expApplyList.vue index af33e01..e39f6b9 100644 --- a/src/views/modules/erf/expApplyList.vue +++ b/src/views/modules/erf/expApplyList.vue @@ -1434,6 +1434,15 @@ export default { } }) } + + // 切换到原材料清单tab时刷新表格布局,避免表头与内容错位 + if (tab.name === 'rawMaterial' && this.currentRow.applyNo) { + this.$nextTick(() => { + if (this.$refs.rawMaterialList && this.$refs.rawMaterialList.refreshRawMaterialTableLayout) { + this.$refs.rawMaterialList.refreshRawMaterialTableLayout() + } + }) + } }, /**