From 2c96d3b7ac4c965fa6e119737480736382043c49 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 11 Sep 2025 19:57:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/material/lease/outBound/index.vue | 38 ++++++++++++++------- 1 file changed, 25 insertions(+), 13 deletions(-) diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index b6aaece5..929f81ee 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -252,7 +252,19 @@ - + + + + @@ -1350,12 +1362,12 @@ export default { //输入预出库数量 async checkPreNum(row) { console.log('🚀 ~ checkPreNum ~ row:', row) - if (row.preNum == row.outNum) return - if (row.preNum > row.outNum) { - row.preNum = row.outNum - this.$message.error('预出库数量不能大于待出库数量') - return - } + // if (row.preNum == row.outNum) return + // if (row.preNum > row.outNum) { + // row.preNum = row.outNum + // this.$message.error('预出库数量不能大于待出库数量') + // return + // } // let maxNum = row.pendingNum-row.pendingOutNum let minNum = row.alNum if (row.unitValue == 1) { @@ -1372,11 +1384,11 @@ export default { this.$message.error('预出库数量不能小于已出库数量') return } - if (row.preNum > (row.storageNum-row.pendingOutNum)) { - // row.preNum = maxNum - this.$message.error('预出库数量不能大于可出库数量') - return - } + // if (row.preNum > (row.storageNum-row.pendingOutNum)) { + // // row.preNum = maxNum + // this.$message.error('预出库数量不能大于可出库数量') + // return + // } let isConfirm = false try { // 二次确认 @@ -1476,7 +1488,7 @@ export default { // 检查是否显示预出库字段 checkShowPreButton() { // 检查列表中是否有已出库数量为0的数据 - return this.getListOutInfo && this.getListOutInfo.some(item => item.alNum == 0) && this.currentRowData?.status != 4 + return this.currentRowData?.status != 4 }, // 处理驳回操作