From 6f717b03ec5bbfe847c4166f33fecab87a7d22b7 Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 1 Nov 2024 09:11:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:fmlog=E6=97=A5=E5=BF=97=E4=B8=AD=E7=BC=96?= =?UTF-8?q?=E8=BE=91mlog=E6=97=B6=E5=8F=96=E6=B6=88=E9=A2=86=E6=96=99?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E4=B8=8D=E8=83=BD=E5=A4=A7=E4=BA=8E=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E5=B7=A5=E6=AE=B5=E5=BA=93=E5=AD=98=E6=95=B0=E7=9A=84?= =?UTF-8?q?=E9=99=90=E5=88=B6=EF=BC=8C=E4=B8=94=E5=90=88=E6=A0=BC=E4=B8=8D?= =?UTF-8?q?=E5=90=88=E6=A0=BC=E7=A6=81=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/f_mlogs_form.vue | 34 ++++++++++++++++++++----------- 1 file changed, 22 insertions(+), 12 deletions(-) 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;