fix:光芯日志mlogb扫描物料二维码弹出新增表单
This commit is contained in:
parent
2549abe1b3
commit
840a82b87f
|
|
@ -135,6 +135,7 @@ export default {
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
codeBatch:"",
|
||||||
options: [],
|
options: [],
|
||||||
materialOptions: [],
|
materialOptions: [],
|
||||||
visible: false,
|
visible: false,
|
||||||
|
|
@ -143,8 +144,19 @@ export default {
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
let that = this;
|
||||||
|
if(that.codeText!==''){
|
||||||
|
let id = data.split('#')[1];
|
||||||
|
this.$API.cm.labelmat.item.req(id).then((res) => {
|
||||||
|
that.codeBatch = res.batch;
|
||||||
|
this.getMaterial();
|
||||||
|
}).catch((err) => {
|
||||||
|
that.getMaterial();
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
that.getMaterial();
|
||||||
|
}
|
||||||
this.getMtask();
|
this.getMtask();
|
||||||
this.getMaterial();
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
open() {
|
open() {
|
||||||
|
|
@ -174,9 +186,7 @@ export default {
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
that.materialOptions = res;
|
that.materialOptions = res;
|
||||||
res.forEach(item => {
|
res.forEach(item => {
|
||||||
console.log('item',item);
|
if(item.batch==that.codeBatch){
|
||||||
console.log('codeText',that.codeText);
|
|
||||||
if(item.batch==that.codeText){
|
|
||||||
that.form.wm_in = item.id;
|
that.form.wm_in = item.id;
|
||||||
that.form.count_use = item.count_cando;
|
that.form.count_use = item.count_cando;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue