From bd306ef2b1161c9f623ce4cdbcd47676e5d5798c Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Wed, 18 Sep 2024 14:02:08 +0800 Subject: [PATCH] 20240918 --- .../modules/quote/detail/primary/quoteDetailRouting.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue index 117c1a3..4efb99e 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue @@ -578,11 +578,13 @@ export default { alternativeNo: '', routingType: null, } - if (this.dataList.length > 0){ - row = this.dataList[0]; - }else { + if (this.treeData.length === 0){ this.$message.warning("未维护BOM结构") return; + }else if (this.dataList.length > 0){ + row = this.dataList[0]; + }else { + } if (node){ this.routing = {