diff --git a/src/api/order/index.js b/src/api/order/index.js
index 3845de8..5313aad 100644
--- a/src/api/order/index.js
+++ b/src/api/order/index.js
@@ -1,5 +1,23 @@
import request from '@/utils/request'
+// 智能搜索接口 - 根据输入内容获取对应的key和value
+export function searchHint(query) {
+ return request({
+ url: '/products/search/smart',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询 - 在所有字段中搜索相似内容,可模糊可精确
+export function search(data) {
+ return request({
+ url: '/products/search/fuzzy',
+ method: 'post',
+ data: data
+ })
+}
+
// 查询 - 关键差异信息推荐
export function differenceWords(data) {
return request({
@@ -9,24 +27,6 @@ export function differenceWords(data) {
})
}
-// 查询 - 在所有字段中搜索相似内容,可模糊可精确
-export function logout(data) {
- return request({
- url: '/products/search/fuzzy',
- method: 'post',
- data: data
- })
-}
-
-
-// 智能搜索接口 - 根据输入内容获取对应的key和value
-export function getInfo(query) {
- return request({
- url: '/products/search/smart',
- method: 'get',
- params: query
- })
-}
// 参数对比
export function compare(query) {
diff --git a/src/views/order/intention/search.vue b/src/views/order/intention/search.vue
index 936976a..eb8de75 100644
--- a/src/views/order/intention/search.vue
+++ b/src/views/order/intention/search.vue
@@ -3,201 +3,193 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
+
+
+
+
+
+
+
+
0
- ? 1 + possibleFields.length
- : 0)
- "
- @keydown.enter.stop="selectSuggestion(item)"
- @keydown.arrow-down.stop="navigateSuggestions('down')"
- @keydown.arrow-up.stop="navigateSuggestions('up')"
+ v-for="(field, index) in possibleFields"
+ :key="'field-' + index"
+ class="possible-field-item"
+ :class="{ active: activePossibleFieldIndex === index }"
+ @click="selectPossibleField(field)"
+ @mouseenter="activePossibleFieldIndex = index"
+ @keydown.enter.stop="selectPossibleField(field)"
+ @keydown.arrow-down.stop="navigatePossibleFields('down')"
+ @keydown.arrow-up.stop="navigatePossibleFields('up')"
tabindex="0"
>
- [字段]
- [值]
- {{ item.label }}
- :
-
+ [字段]
+ {{ field.label }}
+ :
-
-
-
- 查询
-
-
-
-
-
- 以下商品列表中,关键差异信息:
-
+ 0 ? 1 + possibleFields.length : 0)
+ "
+ @keydown.enter.stop="selectSuggestion(item)"
+ @keydown.arrow-down.stop="navigateSuggestions('down')"
+ @keydown.arrow-up.stop="navigateSuggestions('up')"
+ tabindex="0"
>
- {{ item.label }}
- 、
-
+ [字段]
+ [值]
+ {{ item.label }}
+ :
+
-
-
+
+
+
+ 查询
+
+
+
+
+
+ 以下商品列表中,关键差异信息:
+
+ {{ item.label }}
+ 、
+
+
+
+
+
+
+ {{ cond.fieldLabel }}:
+ {{
+ cond.value
+ }}
+ 精准
+
+
+
+ 清除所有
+
+
+
+
+
+
选择精准查询参数:
+
{{ cond.fieldLabel }}:
- {{ cond.value }}
-
- 精准
+ {{ cond.value }}
-
-
- 清除所有
-
-
-
-
-
-
选择精准查询参数:
-
-
- {{ cond.fieldLabel }}:
- {{ cond.value }}
-
-
-
-
+
+
+
参数
对比
+
-
-
-
-
-
-
-
- {{ showOnlyDifferences ? "显示全部" : "仅看不同项" }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ column.label }}
-
- {{
- sortedCompareList.find(
- (i) => i.productNumber === column.label
- ).name
- }}
-
-
-
-
-
-
- {{ scope.row[scope.column.property] || "-" }}
-
-
-
-
-
-
-
-
-
-
- 您选择的品号为:{{ selectedProductNumber }}
-
-
-
- 确定
-
-
-
-
-
-
-
-
-
- 我知道了
-
-
-
+
+
+
+
+
+
+ {{ showOnlyDifferences ? "显示全部" : "仅看不同项" }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ column.label }}
+
+ {{
+ sortedCompareList.find(
+ (i) => i.productNumber === column.label
+ ).name
+ }}
+
+
+
+
+
+
+ {{ scope.row[scope.column.property] || "-" }}
+
+
+
+
+
+
+
+
+
+
+ 您选择的品号为:{{ selectedProductNumber }}
+
+
+ 确定
+
+
+
+
+
+
+
+ 我知道了
+
+
+
+// 对比弹窗样式
+.compare-filter-options {
+ margin-bottom: 16px;
+
+ .el-button {
+ padding: 8px 16px;
+ }
+}
+
+.compare-table-wrap {
+ overflow-x: auto;
+ margin-bottom: 16px;
+}
+
+.param-col {
+ background: #f5f7fa;
+ font-weight: 500;
+}
+
+.new-tag {
+ margin-right: 8px;
+
+ .new-tag-img {
+ width: 24px;
+ height: 24px;
+ vertical-align: middle;
+ }
+}
+
+.different-value {
+ color: #f56c6c;
+ font-weight: 500;
+}
+
+// 确认弹窗样式
+.confirm-message {
+ font-size: 16px;
+ color: #333;
+ text-align: center;
+ padding: 24px 0;
+}
+
+// 语音弹窗样式
+.voice-popup-content {
+ font-size: 14px;
+ color: #666;
+ padding: 16px 0;
+ text-align: center;
+}
+
+// 通用样式补充
+.text-truncate {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+
+:deep(.el-empty) {
+ --el-empty-padding: 40px 0;
+}
+
+:deep(.el-tag) {
+ --el-tag-padding: 4px 10px;
+}
+
+:deep(.el-input) {
+ --el-input-height: 40px;
+}
+
\ No newline at end of file