单据核对,审核扫码问题

ywj_dev
anthonywj 2 years ago
parent 0273eea91e
commit 331a58af7d

@ -194,6 +194,7 @@ export default {
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
this.udiCode = response.data;
this.originCode = "";
this.addCode(event);
} else {
if (response.code == 502) {
@ -277,6 +278,9 @@ export default {
} else {
this.$message.error(response.message);
if (event == null) {
} else event.target.select();
this.$refs.inputRef.select();
}

@ -194,6 +194,7 @@ export default {
this.$refs.inputRef.focus();
this.$refs.inputRef.select();
this.udiCode = response.data;
this.originCode = "";
this.addCode(event);
} else {
if (response.code == 502) {
@ -241,7 +242,7 @@ export default {
});
},
addCode() {
addCode(event) {
if (this.$isBlank(this.udiCode)) {
this.$message.error("UDI码不能为空");
}
@ -250,6 +251,8 @@ export default {
orderDetailEntities: this.detailList,
code: this.udiCode,
}
acceptAddCode(postQuery)
.then((response) => {
if (response.code == 20000) {
@ -268,10 +271,16 @@ export default {
});
} else {
this.$message.success("匹配成功!");
if (event == null) {
} else event.target.select();
this.$refs.inputRef.select();
}
} else {
this.$message.error(response.message);
if (event == null) {
} else event.target.select();
this.$refs.inputRef.select();
}
@ -289,7 +298,6 @@ export default {
checkFinish() {
let query = {
orderId: this.orderQuery.billNo,
};
@ -309,6 +317,7 @@ export default {
},
finishAccept(tip) {
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
@ -316,11 +325,12 @@ export default {
type: 'warning'
}).then(() => {
this.postAccept();
}).catch(() => {
// this.$message.info('退');
});
},
},
postAccept() {
let query = {
orderId: this.orderQuery.billNo,
@ -339,7 +349,6 @@ export default {
});
},
renewAccept() {
let query = {
billNo: this.orderQuery.billNo,
@ -414,6 +423,7 @@ export default {
};
inputer.focus();
},
created() {

Loading…
Cancel
Save