|
|
@ -116,11 +116,11 @@ export default { |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
if (arr[0] !== this.detail.site || arr[1] !== this.detail.partNo){ |
|
|
if (arr[0] !== this.detail.site || arr[1] !== this.detail.partNo){ |
|
|
this.$message.warning(`扫描标签有误,标签site:${arr[0]}partNo:${arr[1]},site应为:${this.detail.site}partNo应为:${this.detail.partNo}`) |
|
|
|
|
|
|
|
|
this.$message.warning(`物料不匹配或每袋/每卷数量未维护`) |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (this.partValue===0 && this.model.flag !== 'Y'){ |
|
|
if (this.partValue===0 && this.model.flag !== 'Y'){ |
|
|
this.$message.warning(`工厂编码:${this.detail.site},partNo:${this.detail.partNo},每袋/每卷数量未维护;${this.partValue}`) |
|
|
|
|
|
|
|
|
this.$message.warning(`物料不匹配或每袋/每卷数量未维护`) |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|
if (this.model.flag !== 'Y' && this.partValue != arr[2]){ |
|
|
if (this.model.flag !== 'Y' && this.partValue != arr[2]){ |
|
|
@ -156,6 +156,17 @@ export default { |
|
|
this.model.flag = ""; |
|
|
this.model.flag = ""; |
|
|
this.model.label = ''; |
|
|
this.model.label = ''; |
|
|
}) |
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
closeScanDialog(){ |
|
|
|
|
|
this.model = { |
|
|
|
|
|
label: '', |
|
|
|
|
|
flag: '', |
|
|
|
|
|
} |
|
|
|
|
|
if (this.total < this.notifyQty){ |
|
|
|
|
|
this.$message.warning("出货书数量未达到通知单需求数量") |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
this.scanLabelDetailList = []; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -169,13 +180,7 @@ export default { |
|
|
:visible.sync="flag" |
|
|
:visible.sync="flag" |
|
|
width="50%" |
|
|
width="50%" |
|
|
@open="scanLabel" |
|
|
@open="scanLabel" |
|
|
@close="()=>{ |
|
|
|
|
|
this.model = { |
|
|
|
|
|
label: '', |
|
|
|
|
|
flag: '', |
|
|
|
|
|
} |
|
|
|
|
|
this.scanLabelDetailList = []; |
|
|
|
|
|
}" @opened="openScanDialog"> |
|
|
|
|
|
|
|
|
@close="closeScanDialog" @opened="openScanDialog"> |
|
|
<el-form :model="model" :inline="true" label-position="top"> |
|
|
<el-form :model="model" :inline="true" label-position="top"> |
|
|
<el-form-item label=" "> |
|
|
<el-form-item label=" "> |
|
|
<el-select v-model="model.flag" clearable> |
|
|
<el-select v-model="model.flag" clearable> |
|
|
|