fix:待入库商品>0时禁止切换仓库

This commit is contained in:
ShenQiLun 2026-06-27 11:16:54 +08:00
parent 5c0baa6d18
commit 585d0edcda

View File

@ -1520,6 +1520,10 @@ export default {
//
openWarehousePicker(tab) {
if (this.pendingCount > 0) {
uni.showToast({ title: '已有待入库商品,请先提交入库再切换仓库', icon: 'none' })
return
}
this.pickerTargetTab = tab
this.showWarehousePicker = true
const savedData = tab === 'isbn' ? this.isbnWarehouseData : this.noIsbnWarehouseData