feat:扭转统计添加物料名和批次查询
This commit is contained in:
parent
5ccb38272d
commit
c6bf06bd3b
|
|
@ -17,6 +17,16 @@
|
||||||
placeholder="结束时间"
|
placeholder="结束时间"
|
||||||
style="margin-left: 2px; width: 150px"
|
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
|
<el-button
|
||||||
type="primary"
|
type="primary"
|
||||||
icon="el-icon-search"
|
icon="el-icon-search"
|
||||||
|
|
@ -226,6 +236,8 @@ export default {
|
||||||
select_cols: "",
|
select_cols: "",
|
||||||
mgroup_name: "扭转",
|
mgroup_name: "扭转",
|
||||||
testmgroup_name: "扭后检测",
|
testmgroup_name: "扭后检测",
|
||||||
|
material_name: "",
|
||||||
|
batch: "",
|
||||||
},
|
},
|
||||||
end_date:'',
|
end_date:'',
|
||||||
start_date:'',
|
start_date:'',
|
||||||
|
|
@ -257,6 +269,16 @@ export default {
|
||||||
}else{
|
}else{
|
||||||
query.end_date = that.query.end_date;
|
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;
|
params.query = query;
|
||||||
if(that.activeName=='product'){
|
if(that.activeName=='product'){
|
||||||
biStr = 'product_defect_pb_m';
|
biStr = 'product_defect_pb_m';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue