修改WCS任务反馈逻辑,添加盘料入库扫描料箱号占用站台逻辑,修改盘料库启动入库逻辑,将启动入库功能迁移到盘料操作界面中,修改盘料出库料塔取料逻辑,创建出库单据分解定时器,任务下发定时器添加盘料出库任务逻辑
This commit is contained in:
1 parent
79d4512266
commit
1fa11ab235
11 files changed
+536
-136
No files matched your search
@@ -63,6 +63,7 @@
|
||||
<el-form-item style="float:right">
|
||||
<el-button type="primary" @@click="onSubmit">绑定</el-button>
|
||||
<el-button @@click="resetForm('form')">重置</el-button>
|
||||
<el-button type="primary" @@click="inOperation">启动入库</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
@@ -75,12 +76,12 @@
|
||||
data() {
|
||||
var validatePass = (rule, value, callback) => {
|
||||
if (value === '') {
|
||||
callback(new Error('请输入周转箱编码'));
|
||||
callback(new Error('请输入工位编码'));
|
||||
}
|
||||
else if (value == 'M00000001' || value == 'M00000002' || value == 'E00000001' || value == 'E00000002') {
|
||||
else if (value == 'L01' || value == 'L02') {
|
||||
callback();
|
||||
} else {
|
||||
callback(new Error('请输入正确周转箱编码'));
|
||||
callback(new Error('请输入正确工位编码'));
|
||||
}
|
||||
};
|
||||
|
||||
@@ -123,6 +124,7 @@
|
||||
sizeFormatter(row) {
|
||||
return row.size + 'mm';
|
||||
},
|
||||
//绑定单据
|
||||
onSubmit() {
|
||||
var _this = this;
|
||||
|
||||
@@ -154,6 +156,35 @@
|
||||
}
|
||||
});
|
||||
},
|
||||
// 启动入库
|
||||
inOperation() {
|
||||
var _this = this;
|
||||
console.log(_this);
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { data: this.form.boxCode },
|
||||
url: "/receipt/ReceiptInOperation/InOperation",
|
||||
success: function (json) {
|
||||
if (json.Code == 200) {
|
||||
_this.$message({
|
||||
message: "启动成功!",
|
||||
type: "success",
|
||||
});
|
||||
}
|
||||
else{
|
||||
_this.$message({
|
||||
message: "启动入库失败!" + json.Msg,
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
alert("加载失败");
|
||||
}
|
||||
});
|
||||
},
|
||||
resetForm(formName) {
|
||||
this.$refs[formName].resetFields();
|
||||
this.form.boxSize = [];
|
||||
@@ -196,29 +227,55 @@
|
||||
},
|
||||
// 扫描周转箱
|
||||
scanBox(data) {
|
||||
this.form.size = '';
|
||||
this.form.boxSize = [];
|
||||
if (data == "M00000001" || data == "M00000002") {
|
||||
this.form.boxSize = [{ label: "8mm", value: "8" }]
|
||||
this.form.size = this.form.boxSize[0].value;
|
||||
this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
|
||||
var _this = this;
|
||||
_this.form.size = '';
|
||||
_this.form.boxSize = [];
|
||||
if (data == "L02") {
|
||||
_this.form.boxSize = [{ label: "8mm", value: "8" }]
|
||||
_this.form.size = _this.form.boxSize[0].value;
|
||||
_this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
|
||||
}
|
||||
else if (data == "E00000001" || data == "E00000002") {
|
||||
this.form.boxSize = [{ label: "10mm", value: "10" }, { label: "16mm", value: "16" }, { label: "24mm", value: "24" }];
|
||||
this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
else if (data == "L01") {
|
||||
_this.form.boxSize = [{ label: "10mm", value: "10" }, { label: "16mm", value: "16" }, { label: "24mm", value: "24" }];
|
||||
_this.dataIndex = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20];
|
||||
}
|
||||
else {
|
||||
this.$message({
|
||||
_this.$message({
|
||||
message: '输入周转箱编码不正确!',
|
||||
type: 'warning'
|
||||
});
|
||||
return;
|
||||
}
|
||||
$.ajax({
|
||||
type: "post",
|
||||
dataType: "json",
|
||||
data: { boxCode: data },
|
||||
url: "/receipt/ReceiptIn/ScanBox",
|
||||
success: function (json) {
|
||||
if (json.Code != 200) {
|
||||
_this.$message({
|
||||
message: "扫描失败!" + json.Msg,
|
||||
type: "warning",
|
||||
duration: "10000",
|
||||
});
|
||||
}
|
||||
else {
|
||||
_this.$refs.uniqueCode.focus();
|
||||
}
|
||||
},
|
||||
error: function (json) {
|
||||
_this.$message({
|
||||
message: "扫描失败!",
|
||||
type: "error",
|
||||
duration: "10000",
|
||||
});
|
||||
},
|
||||
});
|
||||
// 重新扫描箱号后,待绑定列表清空
|
||||
this.bindingData = [];
|
||||
this.changeselect(this.value);
|
||||
_this.bindingData = [];
|
||||
_this.changeselect(_this.value);
|
||||
|
||||
this.$refs.uniqueCode.focus();
|
||||
_this.$refs.uniqueCode.focus();
|
||||
},
|
||||
// 选择尺寸后
|
||||
changeSize() {
|
||||
|
||||
Reference in new issue
Block a user