|
@@ -103,6 +103,7 @@ export default {
|
|
|
SAVING: "保存数据中",
|
|
|
},
|
|
|
user: this.$ls.get("user", {}),
|
|
|
+ lastStudentCode: "",
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -220,8 +221,12 @@ export default {
|
|
|
console.error(err);
|
|
|
logger.error(`04-2条码解析失败,${err}`);
|
|
|
});
|
|
|
- fileInfo.studentCode = num || "";
|
|
|
+ fileInfo.studentCode = num || this.lastStudentCode;
|
|
|
fileInfo.ocrArea = JSON.stringify(this.ocrArea);
|
|
|
+
|
|
|
+ if (fileInfo.studentCode) {
|
|
|
+ this.lastStudentCode = fileInfo.studentCode;
|
|
|
+ }
|
|
|
}
|
|
|
let res = true;
|
|
|
await db.saveUploadInfo(fileInfo).catch((err) => {
|