From 77695961b9320a7574460c33c557d4e533a990e0 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期六, 11 五月 2024 09:53:32 +0800 Subject: [PATCH] fix:称重页面放空按钮限制 --- pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue index 45ad154..b633400 100644 --- a/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue +++ b/pages/driver-page/driver-index/bill-of-lading-details/weighingDevice/weighingDevice.vue @@ -167,6 +167,7 @@ <u-button type="primary" text="鏀剧┖" plain + :disabled="realTimeWeigh == 0 " @click="evacuation" throttleTime="500" :loading="TwoEvacuationLoading" @@ -398,7 +399,7 @@ this.temporaryWeighObj.skin = newV; let xx = new BigNumber(this.avgSkin) let yy = new BigNumber(newV) - this.errorTipShow = (xx.minus(yy).toNumber() <= -this.weightReal || xx.minus(yy).toNumber() >= this.weightReal) && + this.errorTipShow = (xx.minus(yy).toNumber() < -this.weightReal || xx.minus(yy).toNumber() > this.weightReal) && this.avgSkin !== 0 } else { this.isSkinWeigh = false; @@ -422,7 +423,7 @@ this.temporaryWeighObj.skin = newV; let xx = new BigNumber(this.avgSkin) let yy = new BigNumber(newV) - this.errorTipShow = (xx.minus(yy).toNumber() <= -this.weightReal || xx.minus(yy).toNumber() >= this.weightReal) && + this.errorTipShow = (xx.minus(yy).toNumber() < -this.weightReal || xx.minus(yy).toNumber() > this.weightReal) && this.avgSkin !== 0; let x = new BigNumber(this.weighList.hair) let y = new BigNumber(this.temporaryWeighObj.skin) @@ -522,7 +523,7 @@ } else { let xx = new BigNumber(this.avgSkin) let yy = new BigNumber(this.globalweigh) - if (xx.minus(yy).toNumber() <= -this.weightReal || xx.minus(yy).toNumber() >= this.weightReal) { + if (xx.minus(yy).toNumber() < -this.weightReal || xx.minus(yy).toNumber() > this.weightReal) { this.abnormalModalShow = true this.skinAbnormal() } else { -- Gitblit v1.9.1