+
-->
+
+
+
+
+
@@ -903,11 +907,12 @@ import { firstLevel, secondAndThirdLevel } from '@/api/EquipmentEntryApply'
import { getMaxFeatureAPI, getProvinceListAPI } from '@/api/EquipmentLedger/equ-out.js'
import { deptTreeSelect } from '@/api/system/user'
import AddEquip from '@/views/stockManagement/entryApply/components/AddEquip'
+import EquAnalysis from '@/views/EquipmentLedger/components/EquAnalysis'
export default {
name: 'EquipmentLedger',
dicts: ['user_year_type'],
- components: { AddEquip, QrcodeGenerator },
+ components: { AddEquip, QrcodeGenerator, EquAnalysis },
data() {
return {
treeSearchKey: '', //用于存储左侧树搜索框内容
@@ -1207,6 +1212,9 @@ export default {
toggleCollapse() {
this.collapsed = !this.collapsed
// 可以在这里添加折叠/展开的动画效果或其他逻辑
+ this.$nextTick(() => {
+ this.$refs.equAnalysis.init()
+ })
},
/**
* 切换搜索区域展开/收起状态
@@ -1547,6 +1555,8 @@ export default {
this.tableData = listResult.data?.rows || []
this.total = listResult.data?.total || 0
+ this.$refs.equAnalysis.init()
+
let maxLength = 0
this.tableData.forEach((item) => {
if (item.propertyVoList && item.propertyVoList.length > maxLength) {