fix:修复订单搜索问题
This commit is contained in:
@@ -111,22 +111,33 @@
|
|||||||
|
|
||||||
if (type.value == 'orderNo') {
|
if (type.value == 'orderNo') {
|
||||||
where.orderNo = searchText.value;
|
where.orderNo = searchText.value;
|
||||||
|
where.merchantCode = undefined;
|
||||||
|
where.keywords = undefined
|
||||||
where.userId = undefined;
|
where.userId = undefined;
|
||||||
}
|
}
|
||||||
if (type.value == 'userId') {
|
if (type.value == 'userId') {
|
||||||
where.userId = searchText.value;
|
where.userId = searchText.value;
|
||||||
where.orderNo = undefined;
|
where.orderNo = undefined;
|
||||||
|
where.merchantCode = undefined;
|
||||||
|
where.keywords = undefined
|
||||||
}
|
}
|
||||||
if (type.value == 'merchantCode') {
|
if (type.value == 'merchantCode') {
|
||||||
where.merchantCode = searchText.value;
|
where.merchantCode = searchText.value;
|
||||||
where.orderNo = undefined;
|
where.orderNo = undefined;
|
||||||
|
where.userId = undefined;
|
||||||
|
where.keywords = undefined
|
||||||
}
|
}
|
||||||
if(type.value == 'equipmentCode'){
|
if(type.value == 'equipmentCode'){
|
||||||
where.keywords = searchText.value;//直接通过模糊查询来查询电池编号
|
where.keywords = searchText.value;//直接通过模糊查询来查询电池编号
|
||||||
|
where.merchantCode = undefined;
|
||||||
|
where.userId = undefined;
|
||||||
where.orderNo = undefined;
|
where.orderNo = undefined;
|
||||||
}
|
}
|
||||||
if (type.value == 'keywords') {
|
if (type.value == 'keywords') {
|
||||||
where.keywords = searchText.value;
|
where.keywords = searchText.value;
|
||||||
|
where.merchantCode = undefined;
|
||||||
|
where.orderNo = undefined;
|
||||||
|
where.userId = undefined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
emit('search', {
|
emit('search', {
|
||||||
|
|||||||
Reference in New Issue
Block a user