From 69d95f27075ffca38b17020ef9c748830577af60 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Wed, 4 Dec 2024 11:06:23 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E6=95=B0=E9=87=8F=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lease/apply/component/addToolsApply.vue | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/views/material/lease/apply/component/addToolsApply.vue b/src/views/material/lease/apply/component/addToolsApply.vue index 6ffec32e..4d7c3acd 100644 --- a/src/views/material/lease/apply/component/addToolsApply.vue +++ b/src/views/material/lease/apply/component/addToolsApply.vue @@ -133,10 +133,10 @@ @@ -457,7 +457,7 @@ export default { if (z.data.typeId === i) { const obj = JSON.parse(JSON.stringify(z.data)); obj.preNum = 1; - if(obj.storageNum==0){ + if(obj.storageNum<=0){ let index = this.deviceType.length; if(index==1){ this.$nextTick(() => { @@ -466,7 +466,7 @@ export default { }else{ this.deviceType=this.deviceType.splice(0,1) } - this.$modal.msgError("所选物资规格类型库存量为0!"); + this.$modal.msgError("所选物资规格类型库存量为空!"); }else{ tempList.push(obj); } @@ -513,12 +513,12 @@ export default { // await this.projectInfoList(); }, checkNum(row) { - let maxNum = row.storageNum - if (row.preNum <= 1) { - row.preNum = 1 - } else if (row.preNum >= maxNum) { - row.preNum = maxNum-1 - } + // let maxNum = row.storageNum + // if (row.preNum <= 1) { + // row.preNum = 1 + // } else if (row.preNum > maxNum) { + // row.preNum = maxNum-1 + // } }, //单位,工程树结构数据获取父 treeParentsById(list, id) {