diff --git a/src/views/wpm_bx/mlog_form2.vue b/src/views/wpm_bx/mlog_form2.vue index efb3254e..49c6a111 100644 --- a/src/views/wpm_bx/mlog_form2.vue +++ b/src/views/wpm_bx/mlog_form2.vue @@ -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; })