入库明细拆分

铁心库打码
This commit is contained in:
zgf committed 2024-01-11 20:32:44 +08:00
1 parent fa7b5814ba
commit d19f62e48b
21 files changed
+513 -93

No files matched your search

@@ -97,7 +97,7 @@
<el-table-column label="数量" width="150" align="center" prop="Qty" show-overflow-tooltip></el-table-column>
<el-table-column label="出库数量" width="200" align="center" prop="ThisQty">
<div class="item" slot-scope="scope">
<el-input class="item__input" v-model="scope.row.THISQTYUOM" placeholder="请输入内容"></el-input>
<el-input class="item__input" v-model="scope.row.ThisQty" placeholder="请输入内容"></el-input>
<div class="item__txt">{{scope.row.ThisQty}}</div>
</div>
</el-table-column>
@@ -231,21 +231,11 @@
cell.querySelector('.item__input').style.display = 'none'
cell.querySelector('.item__txt').style.display = 'block'
}
if (property == "THISQTYSTU") {
// 库存单位除以系数
if (row.THISQTYSTU > row.QTYSTU_0) {
row.THISQTYSTU = row.QTYSTU_0;
this.$message.error("不能超出单据数量");
}
else {
row.THISQTYUOM = row.THISQTYSTU / row.UOMSTUCOE_0;
}
}
if (property == "ThisQty") {
// 库存单位除以系数
if (row.THISQTYSTU > row.QTY) {
row.THISQTYSTU = row.QTY;
layer.alert("不能超出单据数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
if (row.ThisQty > row.QTY) {
row.ThisQty = row.QTY;
layer.alert("不能超出库存数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
}
}
},