派件员必填
This commit is contained in:
parent
287e768219
commit
1b6eb07acc
@ -14,6 +14,9 @@
|
||||
</el-col>
|
||||
<el-col :span="8">
|
||||
<el-form-item :label="$t('派件员')" prop="dispatchOrSendManCode">
|
||||
<span slot="label">
|
||||
<span style="color: red">{{ $t('派件员') }}</span>
|
||||
</span>
|
||||
<EmisUserSimplePicker v-model="form.dispatchOrSendManCode" postCode="RSD" @onChange="onStaffSelect" ></EmisUserSimplePicker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user