diff --git a/src/views/inm/mioitem_check.vue b/src/views/inm/mioitem_check.vue index 694fed8e..6683acf5 100644 --- a/src/views/inm/mioitem_check.vue +++ b/src/views/inm/mioitem_check.vue @@ -794,45 +794,47 @@ export default { that.form.batch = that.objitem.batch; that.form.count_bag = that.objitem.count_bag; } - - // if (that.type == "do_in" && that.cate == "halfgood") { - // this.form.count_notok = 0; - // this.form.count_n_zw = 0; - // this.form.count_n_tw = 0; - // this.form.count_n_qp = 0; - // this.form.count_n_wq = 0; - // this.form.count_n_dl = 0; - // this.form.count_n_pb = 0; - // this.form.count_n_dxt = 0; - // this.form.count_n_js = 0; - // this.form.count_n_qx = 0; - // this.form.count_n_ysq = 0; - // this.form.count_n_zz = 0; - // this.form.count_n_qt = 0; - // } - // if (that.type == "do_in" && that.cate == "good") { - // this.form.count_notok = 0; - // this.form.count_n_hs = 0; - // this.form.count_n_zs = 0; - // this.form.count_n_zz = 0; - // this.form.count_n_tw = 0; - // this.form.count_n_d = 0; - // this.form.count_n_zdd = 0; - // //棒 - // this.form.count_n_qp = 0; - // this.form.count_n_bl = 0; - // this.form.count_n_hw = 0; - // this.form.count_n_yp = 0; - // this.form.count_n_bp = 0; - // this.form.count_n_sc = 0; - // //管 - // this.form.count_n_qx = 0; - // this.form.count_n_js = 0; - // this.form.count_n_tydu = 0; - // this.form.count_n_sw = 0; - // this.form.count_n_bhpcd = 0; - // this.form.count_n_w = 0; - // } + if ( + (that.type == "do_in" && that.cate == "halfgood") || + that.type == "other_in" + ) { + this.form.count_notok = 0; + this.form.count_n_zw = 0; + this.form.count_n_tw = 0; + this.form.count_n_qp = 0; + this.form.count_n_wq = 0; + this.form.count_n_dl = 0; + this.form.count_n_pb = 0; + this.form.count_n_dxt = 0; + this.form.count_n_js = 0; + this.form.count_n_qx = 0; + this.form.count_n_ysq = 0; + this.form.count_n_zz = 0; + this.form.count_n_qt = 0; + } + if (that.type == "do_in" && that.cate == "good") { + this.form.count_notok = 0; + this.form.count_n_hs = 0; + this.form.count_n_zs = 0; + this.form.count_n_zz = 0; + this.form.count_n_tw = 0; + this.form.count_n_d = 0; + this.form.count_n_zdd = 0; + //棒 + this.form.count_n_qp = 0; + this.form.count_n_bl = 0; + this.form.count_n_hw = 0; + this.form.count_n_yp = 0; + this.form.count_n_bp = 0; + this.form.count_n_sc = 0; + //管 + this.form.count_n_qx = 0; + this.form.count_n_js = 0; + this.form.count_n_tydu = 0; + this.form.count_n_sw = 0; + this.form.count_n_bhpcd = 0; + this.form.count_n_w = 0; + } }, methods: { //显示 @@ -870,17 +872,47 @@ export default { }, countChange() {}, countNotOkSun() { - this.form.count_notok = - this.form.count_n_zw + - this.form.count_n_tw + - this.form.count_n_qp + - this.form.count_n_wq + - this.form.count_n_dl + - this.form.count_n_pb + - this.form.count_n_dxt + - this.form.count_n_js + - this.form.count_n_qx + - this.form.count_n_qt; + if ( + (that.type == "do_in" && that.cate == "halfgood") || + that.type == "other_in" + ) { + this.form.count_notok = + this.form.count_n_zw + + this.form.count_n_tw + + this.form.count_n_qp + + this.form.count_n_wq + + this.form.count_n_dl + + this.form.count_n_pb + + this.form.count_n_dxt + + this.form.count_n_js + + this.form.count_n_qx + + this.form.count_n_ysq + + this.form.count_n_zz + + this.form.count_n_qt; + } + if (that.type == "do_in" && that.cate == "good") { + this.form.count_notok = + this.form.count_n_hs + + this.form.count_n_zs + + this.form.count_n_zz + + this.form.count_n_tw + + this.form.count_n_d + + this.form.count_n_zdd + + //棒 + this.form.count_n_qp + + this.form.count_n_bl + + this.form.count_n_hw + + this.form.count_n_yp + + this.form.count_n_bp + + this.form.count_n_sc + + //管 + this.form.count_n_qx + + this.form.count_n_js + + this.form.count_n_tydu + + this.form.count_n_sw + + this.form.count_n_bhpcd + + this.form.count_n_w; + } }, //提交 submit() {