增加商品编辑绑定至耗材还是规格默认展示
This commit is contained in:
parent
3d2f43761e
commit
6bf5c69361
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue