增加商品编辑绑定至耗材还是规格默认展示

This commit is contained in:
YeMingfei666 2024-10-31 15:05:31 +08:00
parent 3d2f43761e
commit 6bf5c69361
1 changed files with 6 additions and 3 deletions

View File

@ -298,9 +298,11 @@
const isSku = computed(() => {
return props.goods.typeEnum == 'sku'
})
let isBindGuige = ref(isSku.value)
let isBindGuige = ref(false)
watch(() => props.goods.typeEnum, (newval) => {
isBindGuige.value = isSku.value
if(!newval){
isBindGuige.value = false
}
})
@ -385,7 +387,6 @@
$haocaiMap[item.id] = item
}
haoCaiList.value = res.content
})
tbShopCurrencyGet({
page: 0,
@ -400,6 +401,8 @@
}
onMounted(() => {
init()
const firstItem= props.goods.conInfos[0]
isBindGuige.value=firstItem?(firstItem.productSkuId==0?false:true):false
})
</script>