fix:gx外协入库添加备注项,以及设置全检合格数=不合格数-全检不合格数
This commit is contained in:
parent
e2698a7738
commit
81de6567a4
|
@ -172,6 +172,11 @@
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-col>
|
</el-col>
|
||||||
|
<el-col :md="12" :sm="24">
|
||||||
|
<el-form-item label="备注">
|
||||||
|
<el-input v-model="form.note" placeholder="备注"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<!-- 不合格项(不良项)统计 -->
|
<!-- 不合格项(不良项)统计 -->
|
||||||
<el-row v-if="qct_defects.length>0&&mgroupMtype==10">
|
<el-row v-if="qct_defects.length>0&&mgroupMtype==10">
|
||||||
|
@ -414,10 +419,9 @@ export default {
|
||||||
if(that.mgroupMtype==20){
|
if(that.mgroupMtype==20){
|
||||||
if(data.count_json_wx.ok_num&&data.count_json_wx.ok_num!==null){
|
if(data.count_json_wx.ok_num&&data.count_json_wx.ok_num!==null){
|
||||||
that.count_json_wx = data.count_json_wx;
|
that.count_json_wx = data.count_json_wx;
|
||||||
// that.count_json_wx.need_inout = data.need_inout;
|
|
||||||
if(data.count_json_wx.ok_num!==null){
|
if(data.count_json_wx.ok_num!==null){
|
||||||
that.form.count_ok = data.count_json_wx.ok_num;
|
that.form.count_ok = data.count_json_wx.ok_num;
|
||||||
that.form.count_notok = data.count_json_wx.notok_num;
|
that.form.count_notok =data.count_json_wx.count_n_not!==null?data.count_json_wx.count_n_not:data.count_json_wx.notok_num;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
that.canWrite = true;
|
that.canWrite = true;
|
||||||
|
@ -499,10 +503,12 @@ export default {
|
||||||
if(type=='ok'){
|
if(type=='ok'){
|
||||||
that.form.count_ok = that.count_json_wx.ok_num + that.count_json_wx.count_n_ok;
|
that.form.count_ok = that.count_json_wx.ok_num + that.count_json_wx.count_n_ok;
|
||||||
that.form.count_notok = that.count_json_wx.notok_num-that.count_json_wx.count_n_ok;
|
that.form.count_notok = that.count_json_wx.notok_num-that.count_json_wx.count_n_ok;
|
||||||
|
that.count_json_wx.count_n_not = that.count_json_wx.notok_num-that.count_json_wx.count_n_ok;
|
||||||
}else{
|
}else{
|
||||||
that.form.count_notok = that.count_json_wx.count_n_not;
|
that.form.count_notok = that.count_json_wx.count_n_not;
|
||||||
let ok_n = that.count_json_wx.notok_num-that.count_json_wx.count_n_not;
|
let ok_n = that.count_json_wx.notok_num-that.count_json_wx.count_n_not;
|
||||||
that.form.count_ok = that.count_json_wx.ok_num + ok_n;
|
that.form.count_ok = that.count_json_wx.ok_num + ok_n;
|
||||||
|
that.count_json_wx.count_n_ok = that.count_json_wx.notok_num-that.count_json_wx.count_n_not;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//添加层组
|
//添加层组
|
||||||
|
|
Loading…
Reference in New Issue