From 0e78823dd6ee8de811246e687298b17b28cd80c7 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期四, 30 五月 2024 15:48:43 +0800 Subject: [PATCH] # --- pages/phyz/stationManage/pickAgain.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/pages/phyz/stationManage/pickAgain.vue b/pages/phyz/stationManage/pickAgain.vue index 2ddb41e..f4d44ab 100644 --- a/pages/phyz/stationManage/pickAgain.vue +++ b/pages/phyz/stationManage/pickAgain.vue @@ -155,12 +155,23 @@ // 鍒ゆ柇娣诲姞鐨勫晢鍝佹槸鍚﹀拰宸茬粡娣诲姞鐨勯噸澶� let dataList = this.dataList this.index = index + let orderCount = this.dataList[index].stock + let locCount = this.dataList[index].anfme + let pickedAnfme = this.dataList[index].pickedAnfme + // 棰勮鏈�澶ц鍑哄簱 + let ftCount = pickedAnfme + orderCount - if (this.dataList[index].stock > this.dataList[index].anfme) { - this.maxCount = this.dataList[index].anfme - this.dataList[index].pickedAnfme + if (orderCount > locCount) { + this.maxCount = locCount - pickedAnfme } else { - this.maxCount = this.dataList[index].stock + if (ftCount > locCount) { + this.maxCount = locCount -pickedAnfme + } else { + this.maxCount = orderCount + } + } + this.$refs.addItem.open() }, addClose() { -- Gitblit v1.9.1