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