From e6a7da8a38333e201c95a8f583503ac67c06c56e Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期三, 26 六月 2024 10:31:58 +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 446135c..f4d44ab 100644
--- a/pages/phyz/stationManage/pickAgain.vue
+++ b/pages/phyz/stationManage/pickAgain.vue
@@ -155,10 +155,21 @@
// 鍒ゆ柇娣诲姞鐨勫晢鍝佹槸鍚﹀拰宸茬粡娣诲姞鐨勯噸澶�
let dataList = this.dataList
this.index = index
- if (this.dataList[index].stock > this.dataList[index].anfme) {
- this.maxCount = this.dataList[index].anfme
+ let orderCount = this.dataList[index].stock
+ let locCount = this.dataList[index].anfme
+ let pickedAnfme = this.dataList[index].pickedAnfme
+ // 棰勮鏈�澶ц鍑哄簱
+ let ftCount = pickedAnfme + orderCount
+
+ 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()
--
Gitblit v1.9.1