计数:已操作的改个颜色

打印:两个二维码打到一个标签上,显示唯一码内容
货架入库:自动滚到最新数据,添加托盘信息
分解单据:不查找货架库库存
货架出库:添加导出excel
This commit is contained in:
zhougf committed 2024-04-29 16:21:44 +08:00
1 parent eacc0551a2
commit 5b1912ff07
8 files changed
+24558 -58

No files matched your search

@@ -3,28 +3,34 @@
<el-row id="shelfinv" :gutter="20">
<el-card class="box-card">
<el-table :data="tableData" max-height="600" border
style="width: 100%"
>
<el-table-column label="位置" align="center" prop="LocationCode"></el-table-column>
<el-table-column label="唯一码" width="220" align="center" prop="UniqueCode"></el-table-column>
<el-table-column label="编码" align="center" prop="MaterialCode"></el-table-column>
<el-table-column label="批次" align="center" prop="Batch"></el-table-column>
<el-table-column label="数量" align="center" prop="Qty"></el-table-column>
</el-table>
<el-table :data="tableData" max-height="600" border
style="width: 100%">
<el-table-column type="index"
width="50">
</el-table-column>
<el-table-column label="位置" align="center" prop="LocationCode"></el-table-column>
<el-table-column label="唯一码" width="220" align="center" prop="UniqueCode"></el-table-column>
<el-table-column label="编码" align="center" prop="MaterialCode"></el-table-column>
<el-table-column label="批次" align="center" prop="Batch"></el-table-column>
<el-table-column label="数量" align="center" prop="Qty"></el-table-column>
</el-table>
<el-row style="float:right">
<el-button type="primary" @@click="print">打印</el-button>
<el-button type="success" @@click="pick">全部拣货</el-button>
<el-button type="primary" @@click="print">打印</el-button>
<el-button @@click="toExcel">导出</el-button>
<el-button type="success" @@click="pick">全部拣货</el-button>
</el-row>
</el-card>
</el-row>
<script src="/lib/xlsx.js"></script>
<script>
Vue.prototype.XLSX = XLSX;
var str = "";
@{
<text>str = @Model.Entity.ID; </text>
<text>str = @Model.Entity.ID; </text>
}
var app = new Vue({
@@ -45,11 +51,34 @@
app.tableData = json.Data;
},
error: function (json) {
alert.log("加载失败");
layer.alert("加载失败");
}
});
},
methods: {
toExcel(){
// element-ui 导出excel
let tableData = [
['序号','位置', '唯一码','编码','批次', '数量']//导出表头
] // 表格表头
this.tableData.forEach ((item,index)=> {
let rowData = []
//导出内容的字段
rowData = [
index+1,
item.LocationCode,
item.UniqueCode,
item.MaterialCode,
item.Batch,
item.Qty,
]
tableData.push(rowData)
})
let ws = this.XLSX.utils.aoa_to_sheet(tableData)
let wb = this.XLSX.utils.book_new()
this.XLSX.utils.book_append_sheet(wb, ws, '货架库存') // 工作簿名称
this.XLSX.writeFile(wb, '货架库存.xlsx') // 保存的文件名
},
pick() {
var _this = this;
@@ -147,4 +176,5 @@
}
}
});
</script>