fix(WmOutOrder): 修正库存量显示标签并移除库存校验逻辑
将"出库量"标签改为"现有库存"以更准确反映数据含义 移除需求量不能大于库存的校验逻辑,因业务需求变更
This commit is contained in:
@@ -178,7 +178,7 @@
|
|||||||
<el-input :disabled="opertype === 2" v-model.number="scope.row.requireOutNum" placeholder="请输入物料需求量" @blur="validateRequireOutNum(scope.row)"></el-input>
|
<el-input :disabled="opertype === 2" v-model.number="scope.row.requireOutNum" placeholder="请输入物料需求量" @blur="validateRequireOutNum(scope.row)"></el-input>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column prop="stockQuantity" label="出库量" align="center" :show-overflow-tooltip="true" min-width="100" />
|
<el-table-column prop="stockQuantity" label="现有库存" align="center" :show-overflow-tooltip="true" min-width="100" />
|
||||||
<el-table-column prop="description" label="显示描述" align="center" :show-overflow-tooltip="true" min-width="180" />
|
<el-table-column prop="description" label="显示描述" align="center" :show-overflow-tooltip="true" min-width="180" />
|
||||||
<el-table-column label="操作" align="center" width="140">
|
<el-table-column label="操作" align="center" width="140">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
@@ -552,10 +552,11 @@
|
|||||||
if (row.requireOutNum && row.requireOutNum <= 0) {
|
if (row.requireOutNum && row.requireOutNum <= 0) {
|
||||||
this.$message.error('需求量必须大于0');
|
this.$message.error('需求量必须大于0');
|
||||||
row.requireOutNum = undefined;
|
row.requireOutNum = undefined;
|
||||||
} else if (row.requireOutNum && row.requireOutNum > row.stockQuantity) {
|
}
|
||||||
this.$message.error('需求量不能大于现有库存');
|
// else if (row.requireOutNum && row.requireOutNum > row.stockQuantity) {
|
||||||
row.requireOutNum = undefined;
|
// this.$message.error('需求量不能大于现有库存');
|
||||||
}
|
// row.requireOutNum = undefined;
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user