页面数量合计;
出库移库,默认状态 调整条码打印
This commit is contained in:
1 parent
cec65caa32
commit
67227db833
12 files changed
+112
-326
No files matched your search
@@ -74,10 +74,11 @@
|
||||
</el-form>
|
||||
|
||||
<el-table :data="tableData.slice((currentPage-1)*pageSize,currentPage*pageSize)"
|
||||
height="600" stripe border
|
||||
max-height="600" stripe border
|
||||
style="width: 100%"
|
||||
ref="tableData"
|
||||
v-loading="loading"
|
||||
show-summary
|
||||
@@cell-mouse-enter="handleCellEnter"
|
||||
@@cell-mouse-leave="handleCellLeave"
|
||||
@@selection-change="handleSelectionChange">
|
||||
@@ -90,12 +91,14 @@
|
||||
<el-table-column label="库位" width="150" align="center" prop="LocationCode"></el-table-column>
|
||||
<el-table-column label="容器" width="150" align="center" prop="ContainerCode"></el-table-column>
|
||||
<el-table-column label="物料编码" width="150" align="center" prop="MaterialCode" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="物料名称" width="180" align="center" prop="MaterialName"></el-table-column>
|
||||
<el-table-column label="物料名称" width="150" align="center" prop="MaterialName" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="批次" width="150" align="center" prop="Batch"></el-table-column>
|
||||
<el-table-column label="规格" width="200" align="center" prop="Lot"></el-table-column>
|
||||
<el-table-column label="供应商名称" width="200" align="center" prop="SupplierName"></el-table-column>
|
||||
<el-table-column label="规格" width="150" align="center" prop="Lot" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="供应商名称" width="150" align="center" prop="SupplierName" show-overflow-tooltip></el-table-column>
|
||||
<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">
|
||||
<el-table-column label="状态" width="150" align="center" prop="Status" v-if="false"></el-table-column>
|
||||
<el-table-column label="单位" width="150" align="center" prop="Unit" v-if="false"></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.ThisQty" placeholder="请输入内容"></el-input>
|
||||
<div class="item__txt">{{scope.row.ThisQty}}</div>
|
||||
@@ -120,7 +123,7 @@
|
||||
@@size-change="handleSizeChange"
|
||||
@@current-change="handleCurrentChange"
|
||||
:current-page="currentPage"
|
||||
:page-sizes="[1,5,10,20]"
|
||||
:page-sizes="[20,50,100,1000]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="tableData.length">
|
||||
@@ -185,7 +188,7 @@
|
||||
tableData: [],
|
||||
currentPage: 1, // 当前页码
|
||||
total: 20, // 总条数
|
||||
pageSize: 20, // 每页的数据条数
|
||||
pageSize: 50, // 每页的数据条数
|
||||
// 需要编辑的属性
|
||||
editProp: ['ThisQty', 'UserDef1'],
|
||||
multipleSelection: []
|
||||
@@ -231,13 +234,13 @@
|
||||
cell.querySelector('.item__input').style.display = 'none'
|
||||
cell.querySelector('.item__txt').style.display = 'block'
|
||||
}
|
||||
if (property == "ThisQty") {
|
||||
// 库存单位除以系数
|
||||
if (row.ThisQty > row.QTY) {
|
||||
row.ThisQty = row.QTY;
|
||||
layer.alert("不能超出库存数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
}
|
||||
// if (property == "ThisQty") {
|
||||
// // 库存单位除以系数
|
||||
// if (row.ThisQty > row.QTY) {
|
||||
// row.ThisQty = row.QTY;
|
||||
// layer.alert("不能超出库存数量!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
// }
|
||||
// }
|
||||
},
|
||||
//每页条数改变时触发 选择一页显示多少行
|
||||
handleSizeChange(val) {
|
||||
@@ -302,7 +305,7 @@
|
||||
_this.$refs.tableData.clearSelection();
|
||||
}
|
||||
else {
|
||||
layer.alert("创建失败!!", { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
layer.alert("创建失败!!" + json.Msg, { icon: 5, shadeClose: true, title: "错误信息" });
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
|
||||
Reference in new issue
Block a user