fix:光芯入厂检验时不合格添加其他=不合格-四个不合格项的和
This commit is contained in:
parent
35b7186f5c
commit
af6403d9f0
|
|
@ -634,11 +634,14 @@
|
|||
</el-col>
|
||||
<el-col :md="12" :sm="24">
|
||||
<el-form-item label="不合格数量" label-width="100">
|
||||
<el-input
|
||||
<el-input-number
|
||||
v-model="form.count_notok"
|
||||
:min="0"
|
||||
style="width: 100%"
|
||||
placeholder="不合格数量"
|
||||
/>
|
||||
controls-position="right"
|
||||
@change="count_notok_change"
|
||||
></el-input-number>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col>异常项:</el-col>
|
||||
|
|
@ -1114,6 +1117,7 @@ export default {
|
|||
that.form.count_n_zz = 0;//亮面
|
||||
that.form.count_n_b = 0;//崩面
|
||||
that.form.count_n_dl = 0;//长度
|
||||
that.form.count_n_qt = 0;//其他
|
||||
}
|
||||
}
|
||||
if (
|
||||
|
|
@ -1206,6 +1210,12 @@ export default {
|
|||
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;
|
||||
},
|
||||
count_notok_change(){
|
||||
let count_notok =this.form.count_n_zw+this.form.count_n_zz+this.form.count_n_b+this.form.count_n_dl;
|
||||
if(this.form.count_notok>count_notok){
|
||||
this.form.count_n_qt = this.form.count_notok-count_notok;
|
||||
}
|
||||
},
|
||||
getMaterialItem(){
|
||||
let that = this;
|
||||
that.$API.mtm.material.item.req(that.objitem.material).then(()=>{
|
||||
|
|
|
|||
Loading…
Reference in New Issue