diff --git a/src/views/wpm_gx/f_mlogs_form.vue b/src/views/wpm_gx/f_mlogs_form.vue index 75319b36..fd21c3e8 100644 --- a/src/views/wpm_gx/f_mlogs_form.vue +++ b/src/views/wpm_gx/f_mlogs_form.vue @@ -131,8 +131,7 @@ - @@ -176,9 +174,8 @@ @@ -397,7 +394,7 @@ export default { work_end_time:[{required: true,message: "请选择生产开始时间",trigger: "blur",},], route: [{required: true,message: "请选择工艺路线",trigger: "blur",},] }, - materialCount:1, + materialCount:1,//领料批次现有库存数 material_in:'', material_out:'', shiftOtions:[], @@ -475,8 +472,21 @@ export default { let that = this; that.materialOptions.forEach(item=>{ if(item.id == val){ - that.materialCount = item.count; - that.form.count_use = item.count; + that.form.count_n_hs = + that.form.count_n_qp = + that.form.count_n_swen = + that.form.count_n_bb = + that.form.count_n_xbb = + that.form.count_n_md = + that.form.count_n_xh = + that.form.count_n_ps = + that.form.count_n_zq = + that.form.count_n_qt = + that.form.count_n_wm=0; + that.materialCount = + that.form.count_use = + that.form.count_real = + that.form.count_ok = item.count; that.form.count_real = item.count-that.form.count_pn_jgqbl; } }) @@ -512,9 +522,9 @@ export default { this.form.count_n_wm; this.form.count_ok = this.form.count_real - this.form.count_notok; }, - countChanges(){ - this.form.count_ok = this.form.count_real - this.form.count_notok; - }, + // countChanges(){ + // this.form.count_ok = this.form.count_real - this.form.count_notok; + // }, //表单提交方法 submit() { let that = this;