去除共享库存验证

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 goodsEditorStockNumber = ref(0)
const goodsEditorStockLoading = ref(false) const goodsEditorStockLoading = ref(false)
function goodStockNumberHandle(item) { function goodStockNumberHandle(item) {
if (item.isDistribute == 0 && item.typeEnum == 'sku') { // if (item.isDistribute == 0 && item.typeEnum == 'sku') {
ElMessage({ // ElMessage({
type: 'warning', // type: 'warning',
message: '未开启共享库存无法修改', // message: '',
showClose: true, // showClose: true,
}) // })
} else { // } else {
goodsEditorStockItem.value = item // goodsEditorStockItem.value = item
goodsEditorStockNumber.value = item.stockNumber // goodsEditorStockNumber.value = item.stockNumber
showGoodsEditorStock.value = true // showGoodsEditorStock.value = true
} // }
goodsEditorStockItem.value = item
goodsEditorStockNumber.value = item.stockNumber
showGoodsEditorStock.value = true
} }
// //