From ef410678896d3fdca6d4b846c00e69b7791e1e18 Mon Sep 17 00:00:00 2001 From: tczjx58520 <2283600185@qq.com> Date: Mon, 14 Oct 2019 11:46:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 10.14 --- src/views/Product/detaillist.vue | 8 ++++++++ src/views/StockArrival/components/MyDialog.vue | 3 +++ 2 files changed, 11 insertions(+) diff --git a/src/views/Product/detaillist.vue b/src/views/Product/detaillist.vue index e8afb4e4..e339f256 100644 --- a/src/views/Product/detaillist.vue +++ b/src/views/Product/detaillist.vue @@ -149,7 +149,15 @@ export default { this.gettree() }, methods: { + // 判断是否显示 isshow(val) { + if (val.productClassfyVos) { + if (val.productClassfyVos.length > 0) { + return false + } else { + return true + } + } console.log('111222333', val) }, zhengze(val) { diff --git a/src/views/StockArrival/components/MyDialog.vue b/src/views/StockArrival/components/MyDialog.vue index 6d64e8b1..b7537495 100644 --- a/src/views/StockArrival/components/MyDialog.vue +++ b/src/views/StockArrival/components/MyDialog.vue @@ -809,6 +809,9 @@ export default { if (Data[key] === '' || Data[key] === undefined || Data[key] === null) { delete Data[key] } + if (key === 'judgeStat') { + delete Data[key] + } } const parms = JSON.stringify(Data) updatestockArrival(parms, parms2).then(res => {