领料出库查看功能优化
This commit is contained in:
parent
b706c5f440
commit
e120bd14d7
|
|
@ -313,6 +313,7 @@
|
|||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="待出库数量" align="center" prop="outNum" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="待发布需求数量" align="center" prop="pendingPublishNum" :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()">
|
||||
<template slot-scope="scope">
|
||||
|
|
@ -1549,6 +1550,11 @@ export default {
|
|||
this.$message.error('预出库数量不能大于库存数量')
|
||||
return
|
||||
}
|
||||
if (row.preNum > row.pendingPublishNum) {
|
||||
row.preNum = row.outNum
|
||||
this.$message.error('预出库数量不能大于待发布需求数量')
|
||||
return
|
||||
}
|
||||
// publishTask - 领用申请不能大于发布数
|
||||
// if (row.preNum > row.outNum && row.publishTask) {
|
||||
// row.preNum = row.outNum
|
||||
|
|
@ -1579,6 +1585,7 @@ export default {
|
|||
newTypeId: row.newTypeId,
|
||||
publishTask: row.publishTask,
|
||||
publishNum: row.outNum,
|
||||
oldTypeIdList: row.oldTypeIdList,
|
||||
})
|
||||
if (res.code == 200) {
|
||||
// this.$set(row, 'outNum', row.preNum-row.alNum)
|
||||
|
|
|
|||
Loading…
Reference in New Issue