盘料 散料收货扫完码自动滚动

批量新增明细,报错信息修改
散料扫完站台码,显示所有已绑定物料
This commit is contained in:
zgf committed 2024-02-01 13:43:42 +08:00
1 parent 8b4c33283c
commit faa3f5a9d3
6 files changed
+64 -19

No files matched your search

@@ -42,7 +42,9 @@
<el-switch v-model="form.isFull"></el-switch>
</el-form-item>
</el-col>
<el-table :data="bindingData" stripe max-height="450" border style="width: 100%">
<el-table :data="bindingData"
ref="tableData"
stripe max-height="450" border style="width: 100%">
<el-table-column fixed="left" label="操作" width="120" align="center">
<template slot-scope="scope">
<el-button @@click.native.prevent="deleteRow(scope.$index, bindingData)"
@@ -80,7 +82,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="success" @@click="back">回库</el-button>
<el-button type="success" @@click="back" :disabled="disabledbackbutton">回库</el-button>
</el-form-item>
</el-form>
</el-card>
@@ -93,10 +95,11 @@
return {
form: {
code: "",
size: "",
size: "1",
uniqueCode: "",
isFull: false
},
disabledbackbutton: true,// true不可回库,false可回库
boxSize: [
{ label: "8mm", value: "8" },
{ label: "10mm", value: "10" },
@@ -170,6 +173,7 @@
// 扫描散料箱
scanBox(data) {
var _this = this;
_this.bindingData = [];
$.ajax({
type: "post",
dataType: "json",
@@ -184,7 +188,19 @@
});
}
else {
json.Data.forEach(function (item) {
_this.bindingData.push({
"receiptCode":item.ReceiptCode,
"boxCode": item.ContainerCode,
"uniqueCode": item.UniqueCode,
"qty": item.Qty,
"bindQty": item.Qty,
"size": item.Flag
})
});
_this.$refs.uniqueCode.focus();
_this.disabledbackbutton = false;
}
},
error: function (json) {
@@ -215,7 +231,8 @@
_this.$message({
message: "绑定成功!",
});
_this.bindingData = [];
// _this.bindingData = [];
_this.disabledbackbutton = false;
} else {
_this.$message({
message: "绑定失败!",
@@ -289,6 +306,10 @@
bindQty: json.Data.Qty - json.Data.CompletedQty,
size: _this.form.size,
});
_this.disabledbackbutton = true;
_this.$nextTick(() => {
_this.$refs.tableData.bodyWrapper.scrollTop = _this.$refs.tableData.bodyWrapper.scrollHeight
})
}
},
error: function (json) {
@@ -354,6 +375,7 @@
message: "回库任务创建成功!"
});
_this.resetForm('form');
_this.disabledbackbutton = true;
}
},
error: function (json) {