一些bug的修改

This commit is contained in:
xiaofajia 2024-11-15 16:23:07 +08:00
parent ac6c36894c
commit a0a9eaff45

View File

@ -327,7 +327,7 @@ export default {
item.waresCount = this.type ? count : item.waresAlreadyCount item.waresCount = this.type ? count : item.waresAlreadyCount
item.isStock = this.type ? count <= item.wares.stock : true item.isStock = this.type ? count <= item.wares.stock : true
}) })
this.items = this.items.filter(item => this.type ? (item.waresCount > item.waresAlreadyCount) : (item.waresAlreadyCount > 0)) this.items = this.items.filter(item => this.type ? item.waresCount > 0 : item.waresAlreadyCount > 0)
} finally { } finally {
this.dialogLoading = false this.dialogLoading = false
} }