diff --git a/mycomponents/detail/comDetailCard.vue b/mycomponents/detail/comDetailCard.vue index d48c70c5..ffbcc382 100644 --- a/mycomponents/detail/comDetailCard.vue +++ b/mycomponents/detail/comDetailCard.vue @@ -73,7 +73,19 @@ }, }, watch: { - + dataContent: { + handler(newName, oldName) { + if (this.dataContent.subList.length > 0) { + if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { + this.$nextTick(res => { + this.$refs.collapse1.resize() + }) + } + } + }, + immediate: true, + deep: true + } }, data() { diff --git a/pages/productReceipt/coms/comProductDetailCard.vue b/pages/productReceipt/coms/comProductDetailCard.vue index ee8c62c6..8bbfadba 100644 --- a/pages/productReceipt/coms/comProductDetailCard.vue +++ b/pages/productReceipt/coms/comProductDetailCard.vue @@ -69,7 +69,19 @@ }, watch: { - + dataContent: { + handler(newName, oldName) { + if (this.dataContent.subList.length > 0) { + if (this.$refs.collapse1 != undefined && this.$refs.collapse1 != null) { + this.$nextTick(res => { + this.$refs.collapse1.resize() + }) + } + } + }, + immediate: true, + deep: true + } }, data() { diff --git a/pages/productionReturn/coms/comReturnDetailCard.vue b/pages/productionReturn/coms/comReturnDetailCard.vue index 205747fc..0ccad990 100644 --- a/pages/productionReturn/coms/comReturnDetailCard.vue +++ b/pages/productionReturn/coms/comReturnDetailCard.vue @@ -62,8 +62,8 @@ default: {} }, locationTypeList: { - type: Object, - default: {} + type: Array, + default: [] },