去除共享库存验证

This commit is contained in:
gyq 2024-10-15 18:26:27 +08:00
parent 45999ef022
commit b1272852d8
2 changed files with 29 additions and 15846 deletions

File diff suppressed because one or more lines are too long

View File

@ -600,18 +600,22 @@ const showGoodsEditorStock = ref(false)
const goodsEditorStockNumber = ref(0)
const goodsEditorStockLoading = ref(false)
function goodStockNumberHandle(item) {
if (item.isDistribute == 0 && item.typeEnum == 'sku') {
ElMessage({
type: 'warning',
message: '未开启共享库存无法修改',
// if (item.isDistribute == 0 && item.typeEnum == 'sku') {
// ElMessage({
// type: 'warning',
// message: '',
showClose: true,
})
} else {
goodsEditorStockItem.value = item
goodsEditorStockNumber.value = item.stockNumber
showGoodsEditorStock.value = true
}
// showClose: true,
// })
// } else {
// goodsEditorStockItem.value = item
// goodsEditorStockNumber.value = item.stockNumber
// showGoodsEditorStock.value = true
// }
goodsEditorStockItem.value = item
goodsEditorStockNumber.value = item.stockNumber
showGoodsEditorStock.value = true
}
//