This commit is contained in:
bb_pan 2025-09-11 19:57:35 +08:00
parent 44a101de15
commit 2c96d3b7ac
1 changed files with 25 additions and 13 deletions

View File

@ -252,7 +252,19 @@
</template>
</el-table-column>
<el-table-column label="当前库存" align="center" prop="storageNum" :show-overflow-tooltip="true" v-if="checkShowPreButton()"/>
<el-table-column label="待出库库存" align="center" prop="pendingOutNum" :show-overflow-tooltip="true" v-if="checkShowPreButton()"/>
<!-- <el-table-column label="待出库库存" align="center" prop="pendingOutNum" :show-overflow-tooltip="true" v-if="checkShowPreButton()"/> -->
<el-table-column
prop="pendingOutNum"
align="center"
show-overflow-tooltip
v-if="checkShowPreButton()"
>
<template #header>
<el-tooltip effect="dark" content="系统内该规格总计待出库数量" placement="top">
<span>待出库库存<i class="el-icon-info" style="color: #409EFF" /></span>
</el-tooltip>
</template>
</el-table-column>
<el-table-column label="待出库数量" align="center" prop="outNum" :show-overflow-tooltip="true" />
<el-table-column label="已出库数量" align="center" prop="alNum" :show-overflow-tooltip="true" />
<el-table-column label="操作" align="center" width="120px" v-if="checkShowRejectButton()">
@ -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
},
//