diff --git a/src/views/emis/emisTmsScanRecord/deliveryScan.vue b/src/views/emis/emisTmsScanRecord/deliveryScan.vue index 1d05515f..16f03535 100644 --- a/src/views/emis/emisTmsScanRecord/deliveryScan.vue +++ b/src/views/emis/emisTmsScanRecord/deliveryScan.vue @@ -14,6 +14,9 @@ + + {{ $t('派件员') }} + @@ -184,8 +187,8 @@ export default { this.form.recordMan=this.$store.getters.empName; this.form.recordManCode=this.$store.getters.empCode; - this.form.dispatchOrSendMan=this.$store.getters.empName; - this.form.dispatchOrSendManCode=this.$store.getters.empCode; + // this.form.dispatchOrSendMan=this.$store.getters.empName; + // this.form.dispatchOrSendManCode=this.$store.getters.empCode; this.$nextTick(function() { let form = this.$refs.form.$el; @@ -212,6 +215,10 @@ export default { this.form.ids= arr.map(item=>item.id) }, handleBatchScan(){ + if(this.form.dispatchOrSendManCode==null || this.form.dispatchOrSendManCode==''){ + this.$message.error("请输入派件员"); + return; + } this.formBatch = { billCode: null, } @@ -234,7 +241,6 @@ export default { this.openBatch=false; }, submitFormBatch(){ - if(this.formBatch.billCode==null || this.formBatch.billCode==''){ this.$message.error("输入单号后回车"); return; @@ -409,12 +415,16 @@ export default { }, handleScanInput(){ - if(this.form.billCode==null || this.form.billCode==''){ this.$message.error("输入单号后回车"); return; } + if(this.form.dispatchOrSendManCode==null || this.form.dispatchOrSendManCode==''){ + this.$message.error("请输入派件员"); + return; + } + if(this.dataMap[this.form.billCode]){ this.$message.error("重复扫描"); this.playNoticeTone(1);