盘料库出入库流程测试修改,盘料库入库创建入库任务逻辑添加到绑定完成里面

This commit is contained in:
霍尔 committed 2023-09-14 08:49:36 +08:00
1 parent 1fa11ab235
commit 771c12040c
7 files changed
+128 -70

No files matched your search

@@ -26,7 +26,7 @@
<el-input v-model="form.code" readonly></el-input>
</el-form-item>
<el-form-item label="周转箱编码" prop="boxCode">
<el-input v-model="form.boxCode" @@change="scanBox"></el-input>
<el-input v-model="form.boxCode" @@change="scanBox" ref="boxCode"></el-input>
</el-form-item>
<el-form-item label="料盘尺寸" prop="size">
<el-select v-model="form.size" placeholder="请选择料盘尺寸" style="width:100%" @@change="changeSize" clearable>
@@ -61,9 +61,9 @@
<el-table-column label="料盘尺寸" align="center" prop="size" :formatter="sizeFormatter"></el-table-column>
</el-table>
<el-form-item style="float:right">
<el-button type="primary" @@click="onSubmit">绑定</el-button>
<el-button type="primary" @@click="onSubmit">绑定入库</el-button>
<el-button @@click="resetForm('form')">重置</el-button>
<el-button type="primary" @@click="inOperation">启动入库</el-button>
@* <el-button type="primary" @@click="inOperation">启动入库</el-button> *@
</el-form-item>
</el-form>
</el-card>
@@ -137,54 +137,26 @@
success: function (json) {
if (json.Code == 200) {
_this.$message({
message: '绑定成功!'
message: '入库成功!',
type: 'success'
});
_this.resetForm('form');
}
else {
_this.$message({
message: '绑定失败!',
message: '入库失败!',
type: 'warning'
});
}
},
error: function (json) {
_this.$message({
message: '绑定失败!',
message: '入库失败!',
type: 'error'
});
}
});
},
// 启动入库
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 = [];
@@ -214,7 +186,6 @@
}
});
})
console.log(json.Data);
},
error: function (json) {
_this.$message({
@@ -260,6 +231,11 @@
});
}
else {
_this.$message({
message: "扫描成功!",
type: "success",
duration: "10000",
});
_this.$refs.uniqueCode.focus();
}
},
@@ -269,13 +245,14 @@
type: "error",
duration: "10000",
});
return;
},
});
// 重新扫描箱号后,待绑定列表清空
_this.bindingData = [];
_this.changeselect(_this.value);
_this.$refs.uniqueCode.focus();
// _this.$refs.uniqueCode.focus();
},
// 选择尺寸后
changeSize() {