fix:快速报工单间扫码问题修复
This commit is contained in:
parent
45062e3333
commit
9f35d79424
|
@ -173,6 +173,7 @@ export default {
|
|||
route_code:"",
|
||||
visible: false,
|
||||
isSaveing: false,
|
||||
batchCountCando:0,
|
||||
materialTracking:10,
|
||||
options: [],
|
||||
bwItemForms: [],
|
||||
|
@ -275,6 +276,7 @@ export default {
|
|||
that.form.wm_in = arr[0].id;
|
||||
that.form.count_use = arr[0].count_cando;
|
||||
that.wm_in = arr[0].batch;
|
||||
that.batchCountCando = Number(arr[0].count_cando);;
|
||||
that.materialTracking = arr[0].material_.tracking;
|
||||
if(that.routeOptions.length==0){
|
||||
that.routeOriginOptions.forEach((item)=>{
|
||||
|
@ -326,6 +328,7 @@ export default {
|
|||
if(that.form.batch==''||that.form.batch==batch){
|
||||
that.form.batch = batch;
|
||||
that.form.wm_in = arr[0].id;
|
||||
that.batchCountCando = Number(arr[0].count_cando);
|
||||
that.materialTracking = arr[0].material_.tracking;
|
||||
let arr1 = that.bwItemForms.filter((item)=>{
|
||||
return item.number == bwitem.number;
|
||||
|
@ -360,7 +363,7 @@ export default {
|
|||
that.isSaveing = true;
|
||||
that.form.mgroup = that.mgroup;
|
||||
that.$API.wpm.mlog.quick.req(that.form).then((res) => {
|
||||
if(that.bwItemForms.length>0){
|
||||
if(that.bwItemForms.length>0&&that.batchCountCando!==that.bwItemForms.length){
|
||||
that.bwItemForms.forEach(item=>{
|
||||
item.mlogb = res.mlogbin;
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue