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 => {