fix:物料分类:完全合格、合格B类、不合格、返工

This commit is contained in:
shijing 2025-08-05 09:27:31 +08:00
parent e934018c85
commit 65aa1979f1
1 changed files with 25 additions and 2 deletions

View File

@ -11,7 +11,7 @@
</div>
<div class="right-panel">
<el-select
v-model="query.state"
v-model="queryState"
placeholder="物料状态"
clearable
@change="searchStateChange"
@ -259,7 +259,8 @@ export default {
tableData: [],
selection: [],
stateOptions:[
{ value: 10, name: "合格"},
{ value: 100, name: "完全合格"},
{ value: 101, name: "合格B类"},
{ value: 20, name: "不合格"},
{ value: 30, name: "返工"},
],
@ -267,6 +268,7 @@ export default {
search: "",
material: "",
},
queryState:null,
cate_type:'',
materialType: "wm",
changebatch:false,
@ -301,6 +303,27 @@ export default {
this.$refs.table_wm.queryData(this.queryWm);
this.materialsVisible = false;
},
searchStateChange(){
let that = this;
switch(that.queryState){
case 100:
that.query.state = 10;
that.query.notok_sign__isnull = true;
break;
case 101:
that.query.state = 10;
that.query.notok_sign__isnull = false;
break;
case 20:
that.query.state = 20;
that.query.notok_sign__isnull = null;
break;
case 30:
that.query.state = 30;
that.query.notok_sign__isnull = null;
break;
}
},
tomio(type) {
let that = this;
that.cate_type=type;