盘料入库页面,层号排序后再分配
添加货架库扫码捡货动作 添加异常出库单据清理任务
This commit is contained in:
1 parent
9bfee8930c
commit
caab84071c
5 files changed
+111
-65
No files matched your search
@@ -2,7 +2,7 @@
|
||||
<el-card class="box-card" :span="16">
|
||||
<el-form ref="form" :model="form" label-width="100px">
|
||||
<el-row>
|
||||
<el-col :span="4">
|
||||
<el-col :span="6">
|
||||
<el-form-item label="类型" prop="type">
|
||||
<el-select v-model="form.type"
|
||||
placeholder="请选择类型"
|
||||
@@ -91,7 +91,7 @@
|
||||
taskType: [
|
||||
{ label: "散料站台", value: "slbox" },
|
||||
{ label: "料塔周转箱", value: "lt" },
|
||||
// { label: "唯一码", value: "uniqueCode" },
|
||||
{ label: "货架库", value: "pk" },
|
||||
],
|
||||
invTable:[],
|
||||
showTable: false,
|
||||
@@ -109,6 +109,11 @@
|
||||
},
|
||||
// 扫描二维码
|
||||
scanUnique(data) {
|
||||
if (this.form.type == "pk") {
|
||||
this.form.uniqueCode = data;
|
||||
this.onSubmit();
|
||||
}
|
||||
else{
|
||||
if (this.invTable.length == 0) {
|
||||
this.$message({
|
||||
message: "待拣物料列表为空!",
|
||||
@@ -141,6 +146,7 @@
|
||||
|
||||
_this.onSubmit();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
select(data) {
|
||||
@@ -166,51 +172,54 @@
|
||||
return;
|
||||
}
|
||||
let url = "";
|
||||
if (_this.form.type == "uniqueCode") {
|
||||
url = "/shipment/ShipOut/ScanUniqueCode"
|
||||
if (_this.form.type == "pk") {
|
||||
// url = "/shipment/ShipOut/ScanUniqueCode"
|
||||
// _this.form.uniqueCode = data;
|
||||
//this.onSubmit();
|
||||
}
|
||||
else{
|
||||
url = "/shipment/ShipOut/ScanBox"
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { code: _this.form.code, type: _this.form.type },
|
||||
url: url,
|
||||
success: function (json) {
|
||||
if (json.Code != 200) {
|
||||
_this.$message({
|
||||
message: "扫描失败!" + json.Msg,
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
_this.form.code = "";
|
||||
} else {
|
||||
if (_this.form.type == "uniqueCode") {
|
||||
_this.form.uniqueCode = json.Data.UniqueCode;
|
||||
_this.form.materialCode = json.Data.MaterialCode;
|
||||
_this.form.materialSpec = json.Data.MaterialSpec;
|
||||
_this.form.batch = json.Data.Batch;
|
||||
_this.form.qty = json.Data.Qty;
|
||||
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { code: _this.form.code, type: _this.form.type },
|
||||
url: url,
|
||||
success: function (json) {
|
||||
if (json.Code != 200) {
|
||||
_this.$message({
|
||||
message: "扫描失败!" + json.Msg,
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
_this.form.code = "";
|
||||
} else {
|
||||
_this.showTable = true;
|
||||
_this.invTable = json.Data;
|
||||
if (_this.invTable.length == 0
|
||||
&& _this.form.type == "slbox"
|
||||
&& _this.form.code.startsWith("C")) {
|
||||
_this.showBack = true;
|
||||
if (_this.form.type == "uniqueCode") {
|
||||
_this.form.uniqueCode = json.Data.UniqueCode;
|
||||
_this.form.materialCode = json.Data.MaterialCode;
|
||||
_this.form.materialSpec = json.Data.MaterialSpec;
|
||||
_this.form.batch = json.Data.Batch;
|
||||
_this.form.qty = json.Data.Qty;
|
||||
} else {
|
||||
_this.showTable = true;
|
||||
_this.invTable = json.Data;
|
||||
if (_this.invTable.length == 0
|
||||
&& _this.form.type == "slbox"
|
||||
&& _this.form.code.startsWith("C")) {
|
||||
_this.showBack = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "扫描失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
},
|
||||
});
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "扫描失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
// 拣货
|
||||
onSubmit() {
|
||||
@@ -245,8 +254,9 @@
|
||||
&& _this.form.code.startsWith("C")) {
|
||||
_this.showBack = true;
|
||||
}
|
||||
if (_this.form.code == "uniqueCode") {
|
||||
if (_this.form.type == "pk") {
|
||||
_this.form.code = "";
|
||||
_this.form.uniqueCode = "";
|
||||
}
|
||||
// 清空下面表单 不清空code
|
||||
_this.form.uniqueCode = "";
|
||||
@@ -261,6 +271,10 @@
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
if (_this.form.type == "pk"){
|
||||
_this.form.code = "";
|
||||
_this.form.uniqueCode = "";
|
||||
}
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
|
||||
Reference in new issue
Block a user