diff --git a/src/layout/goodsInQR.vue b/src/layout/goodsInQR.vue index ba10b68..a2b00dd 100644 --- a/src/layout/goodsInQR.vue +++ b/src/layout/goodsInQR.vue @@ -160,7 +160,15 @@ export default { }) }, addTempTask() { - this.workFormEntity.vehicleId = replaceEnglishAndNumberIGAI(this.workFormEntity.vehicleId) + if (this.workFormEntity.vehicleId != '') { + const vehicleIdString = replaceEnglishAndNumberIGAI(this.workFormEntity.vehicleId) + if (!vehicleIdString.startsWith('ASRS') || vehicleIdString.length != 9) { + errorBox('料箱格式不正确') + return + } else { + this.workFormEntity.vehicleId = vehicleIdString + } + } if (this.workFormEntity.qrcode != '') { try { const goodsInfo = this.workFormEntity.qrcode.split('-') diff --git a/src/layout/inTaskRecord.vue b/src/layout/inTaskRecord.vue index 4fb69f6..579c43c 100644 --- a/src/layout/inTaskRecord.vue +++ b/src/layout/inTaskRecord.vue @@ -12,11 +12,6 @@ - - - @@ -30,7 +25,6 @@ - @@ -63,7 +57,7 @@ export default { total: 0, goodsIdQuery: '', vehicleIdQuery: '', - loading: true + loading: true, } }, mounted() { @@ -144,7 +138,7 @@ export default { errorBox('下载文件失败') } }).catch(err => { - console.log(e) + console.log(err) errorBox('导出失败') }) }, diff --git a/src/layout/outTaskRecord.vue b/src/layout/outTaskRecord.vue index 998a57e..53244a1 100644 --- a/src/layout/outTaskRecord.vue +++ b/src/layout/outTaskRecord.vue @@ -3,8 +3,8 @@
- - + + 搜索 重置 导出记录 @@ -12,19 +12,20 @@
+ - - - - + + + + - - + + - - + + diff --git a/src/layout/stockUpdateRecord.vue b/src/layout/stockUpdateRecord.vue index 4c082f8..2d040ef 100644 --- a/src/layout/stockUpdateRecord.vue +++ b/src/layout/stockUpdateRecord.vue @@ -34,7 +34,7 @@ - +