库存回传
入库扫描逻辑
添加物料二维码和唯一码对应表
This commit is contained in:
zgf committed 2023-11-09 17:17:05 +08:00
1 parent f9bf7be066
commit da78422528
19 files changed
+1684 -115

No files matched your search

@@ -55,50 +55,23 @@
},
methods: {
handleSelectionChange(val) {
console.log(22);
val.forEach(row => {
if (row.station == '') {
this.$refs.multipleTable.toggleRowSelection(row);
this.$message({
message: "此周转箱没有选择站台!",
type: "warning",
duration: "5000",
});
}
});
this.selectData = val;
let names = this.selectData.map(item => item["station"]);
let nameSet = new Set(names);
if (nameSet.size != names.length) {
this.$message({
message: "站台不能重复!",
type: "warning",
duration: "5000",
});
this.$refs.multipleTable.clearSelection();
this.selectData = [];
}
console.log(this.selectData);
},
// 启动入库
inOperation() {
console.log(this.tableData)
var _this = this;
for (var i = 0; i < _this.tableData.length; i++) {
if (_this.tableData[i].station == null || _this.tableData[i].station == "") {
this.$message({
message: "必须全部选择!",
type: "warning",
duration: "5000",
});
return;
}
if (_this.selectData.length < 1) {
this.$message({
message: "至少选择一个站台!",
type: "warning",
duration: "5000",
});
return;
}
$.ajax({
type: "post",
dataType: "json",
data: { data: _this.tableData },
data: { data: _this.selectData },
url: "/receipt/ReceiptInOperation/InOperation",
success: function (json) {
if (json.Code == 200) {
@@ -107,6 +80,13 @@
type: "success",
});
}
else {
_this.$message({
message: json.Msg,
type: "warning",
duration: "1000",
});
}
},
error: function (json) {
alert("加载失败");