fix:gx交接扫码无工段修改
This commit is contained in:
parent
407a6beacb
commit
9de8e67289
|
@ -186,7 +186,6 @@
|
|||
</el-dialog>
|
||||
</template>
|
||||
<script>
|
||||
import scanDialog from "./../template/scan.vue";
|
||||
export default {
|
||||
emits: ["success", "closed"],
|
||||
props: {
|
||||
|
@ -217,9 +216,6 @@ export default {
|
|||
default:false
|
||||
}
|
||||
},
|
||||
components: {
|
||||
scanDialog
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
change_batch:false,
|
||||
|
@ -598,22 +594,14 @@ export default {
|
|||
let that = this;
|
||||
data = data.replace(' ','');
|
||||
let id = data.split('#')[1];
|
||||
console.log('id',id);
|
||||
this.$API.cm.labelmat.item.req(id).then((res) => {
|
||||
console.log('res',res);
|
||||
let arr = that.form.handoverb.filter((item) => {
|
||||
return item.batch == res.batch;
|
||||
})
|
||||
console.log('arr',arr);
|
||||
if(arr.length>0){
|
||||
that.$message.error("该批次已存在")
|
||||
}else{
|
||||
console.log('that.materialOptions',that.materialOptions);
|
||||
that.materialOptions.forEach((item) => {
|
||||
console.log('item',item);
|
||||
console.log('item.batch',item.batch);
|
||||
console.log('res.batch',res.batch);
|
||||
console.log('item.batch == res.batch',item.batch == res.batch);
|
||||
if(item.batch == res.batch){
|
||||
let obj = {};
|
||||
obj.wm = item.id;
|
||||
|
@ -621,7 +609,6 @@ export default {
|
|||
obj.counts = item.count;
|
||||
obj.count = item.count;
|
||||
that.form.handoverb.push(obj)
|
||||
that.$refs.scanDialog.closed();
|
||||
that.getResaveMgroups(item.material);
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue