jiaxing.zhou

fix(editReportingData): 修复行数据保存后未及时刷新的问题

- 移除了不必要的 console.log语句
- 在保存行数据后,通过 $nextTick确保数据更新后执行刷新逻辑
- 更新了 lastItemValid标志位的逻辑判断
......@@ -545,6 +545,7 @@
import RowDataEditForm from "./RowDataEditForm.vue";
import { getCustomerList, getPortList, getDeclareData, updateDeclareData } from "@/api/declareData-api.js";
import { getDictData } from '@/api/system/dict-api.js'
import item from "@/layout/components/Sidebar/Item.vue";
export default {
name: "",
components: { RowDataEditForm },
......@@ -924,7 +925,6 @@
this.$nextTick(() => {
this.expandRowKeys = [orderNum];
console.log("next:",this.lastItemValid)
this.lastItemValid = true; // 重置标志位
});
},
......@@ -965,6 +965,8 @@
this.$nextTick(()=>{
this.getTotalNumber()
this.expandRowKeys = []
this.detailData.length
this.lastItemValid = this.detailData.length === row.index;
})
},
rowFormDataSave(props){
......