feat:扭转统计添加物料名和批次查询

This commit is contained in:
shijing 2026-06-10 10:12:59 +08:00
parent 5ccb38272d
commit c6bf06bd3b
1 changed files with 22 additions and 0 deletions

View File

@ -17,6 +17,16 @@
placeholder="结束时间"
style="margin-left: 2px; width: 150px"
/>
<el-input v-model="query.material_name"
placeholder="产品名称"
clearable
style="width: 200px;"
></el-input>
<el-input v-model="query.batch"
placeholder="批次号"
clearable
style="width: 200px;"
></el-input>
<el-button
type="primary"
icon="el-icon-search"
@ -226,6 +236,8 @@ export default {
select_cols: "",
mgroup_name: "扭转",
testmgroup_name: "扭后检测",
material_name: "",
batch: "",
},
end_date:'',
start_date:'',
@ -257,6 +269,16 @@ export default {
}else{
query.end_date = that.query.end_date;
}
if(that.query.material_name==''||that.query.material_name==null){
delete query.material_name;
}else{
query.material_name = that.query.material_name;
}
if(that.query.batch==''||that.query.batch==null){
delete query.batch;
}else{
query.batch = that.query.batch;
}
params.query = query;
if(that.activeName=='product'){
biStr = 'product_defect_pb_m';