领料申请-优化

This commit is contained in:
bb_pan 2025-03-10 13:58:53 +08:00
parent 8e9208a438
commit 638acb6e0e
1 changed files with 6 additions and 6 deletions

View File

@ -246,8 +246,8 @@
<el-table-column prop="wholeTypeName" align="center" label="成套设备名称" />
<el-table-column label="机具名称" prop="typeCn" :show-overflow-tooltip="true" />
<el-table-column label="规格型号" prop="guigeCn" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" prop="unitCn" />
<el-table-column label="库存数量" prop="num" />
<el-table-column label="计量单位" prop="unitCn" align="center" />
<el-table-column label="库存数量" prop="num" align="center" />
<el-table-column label="预领数量" align="center">
<template slot-scope="scope">
<el-input
@ -854,10 +854,10 @@ export default {
this.queryParams.leaseApplyDetails = this.leaseApplyDetails
try {
this.queryParams.leaseApplyDetails.forEach((item) => {
if (item.num == 0) {
this.$message.error('机具类型库存量为零无法领料')
throw new Error()
}
// if (item.num == 0) {
// this.$message.error('')
// throw new Error()
// }
if (!item.childrenList && item.preNum == '') {
this.$message.error('请填写预领数量')
throw new Error()