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