定时器修改
This commit is contained in:
zgf committed 2023-11-20 16:33:20 +08:00
1 parent ba8fd9e53b
commit 26d46cad00
6 files changed
+346 -198

No files matched your search

@@ -8,7 +8,7 @@
</el-col>
<el-col :span="8">
<el-input v-model.number="num"
placeholder="请输入数量">
placeholder="请输入数量" readonly>
</el-input>
</el-col>
<el-col :span="4">
@@ -78,7 +78,7 @@
data: { code: _this.qrcode },
url: "/configs/Print/ScanCode",
success: function (json) {
console.log(json);
// console.log(json);
if (json.Code != 200) {
_this.$message({
message: "扫描失败!" + json.Msg,
@@ -86,6 +86,7 @@
duration: "10000",
});
}
_this.printData = [];
},
error: function (json) {
_this.$message({
@@ -130,12 +131,14 @@
return;
}
else{
console.log(json);
// console.log(json);
json.Data.forEach(function (item) {
_this.gendCode += item.UniqueCode + '\n';
_this.gendCode += item.Batch + '\n';
_this.printData.push({ uniqueCode: item.UniqueCode });
_this.printData.push({ uniqueCode: item.Batch });
});
}
},
error: function (json) {
@@ -156,7 +159,7 @@
template: this.template
})
hiprintTemplate.print(this.printData);
_this.printData = [];
// _this.printData = [];
//清空
_this.qrcode = '';
_this.unm = 1;