diff --git a/src/views/inm/mioitem_check.vue b/src/views/inm/mioitem_check.vue index 20fa0bde..b061c83d 100644 --- a/src/views/inm/mioitem_check.vue +++ b/src/views/inm/mioitem_check.vue @@ -7,7 +7,7 @@ @closed="$emit('closed')" > - + - + + + + {{ objitem.material_name }} + + + + + {{ objitem.batch }} + + + + + + + + + + + + + + + + + + + + + + + + + 异常项: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {{ objitem.material_name }} @@ -605,16 +737,6 @@ - - - - - + - - - - - - - - - - - - + { this.tableHeight = document.getElementById('mioitemwMain').clientHeight-20; },500) @@ -1011,7 +1108,14 @@ export default { that.form.material_name = that.objitem.material_name; that.form.batch = that.objitem.batch; that.form.count = that.objitem.count; + that.form.count_ok = that.objitem.count; that.form.count_bag = that.objitem.count_bag; + if(that.project_code=='gx'){ + that.form.count_n_zw = 0;//直径 + that.form.count_n_zz = 0;//亮面 + that.form.count_n_b = 0;//崩面 + that.form.count_n_dl = 0;//长度 + } } if ( (that.type == "do_in" && that.cate == "halfgood") || @@ -1096,8 +1200,12 @@ export default { } return this; }, + gxPurInCountChange(){ + this.form.count_ok = this.form.count - this.form.count_notok; + }, nqtChange(){ - this.form.count_notok = this.form.count_n_qt; + this.form.count_notok = this.form.count_n_zw+this.form.count_n_zz+this.form.count_n_b+this.form.count_n_dl; + this.form.count_ok = this.form.count - this.form.count_notok; }, getMaterialItem(){ let that = this; @@ -1373,14 +1481,12 @@ export default { that.$message.success("操作成功"); }); } else { - that.$API.inm.mioitem.test - .req(that.mioitemId, that.form) - .then((res) => { - that.isSaveing = false; - that.$emit("success"); - that.visible = false; - that.$message.success("操作成功"); - }); + that.$API.inm.mioitem.test.req(that.mioitemId, that.form).then((res) => { + that.isSaveing = false; + that.$emit("success"); + that.visible = false; + that.$message.success("操作成功"); + }); } } catch (err) { //可以处理校验错误