From 101506ae8261142f8d47f0ce605abc791e22cba1 Mon Sep 17 00:00:00 2001 From: JenniferW <1627055433@qq.com> Date: Tue, 25 Nov 2025 10:46:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/order/index.js | 40 + src/views/order/intention/search静态.vue | 2400 ++++++++++++++++++++ 2 files changed, 2440 insertions(+) create mode 100644 src/api/order/index.js create mode 100644 src/views/order/intention/search静态.vue diff --git a/src/api/order/index.js b/src/api/order/index.js new file mode 100644 index 0000000..3845de8 --- /dev/null +++ b/src/api/order/index.js @@ -0,0 +1,40 @@ +import request from '@/utils/request' + +// 查询 - 关键差异信息推荐 +export function differenceWords(data) { + return request({ + url: '/products/key/differences', + method: 'post', + data: 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) { + return request({ + url: '/products/differences', + method: 'get', + params: query + }) +} + + diff --git a/src/views/order/intention/search静态.vue b/src/views/order/intention/search静态.vue new file mode 100644 index 0000000..936976a --- /dev/null +++ b/src/views/order/intention/search静态.vue @@ -0,0 +1,2400 @@ + + + + + + + + 品号查询 + + + + + + + + + + + + + + + + + + + + 您输入的条件可能属于以下字段: + + + [字段] + {{ 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 }} + 、 + + + + + + + {{ cond.fieldLabel }}: + {{ cond.value }} + + 精准 + + + + 清除所有 + + + + + + 选择精准查询参数: + + + {{ cond.fieldLabel }}: + {{ cond.value }} + + + + + + + + + + + 参数对比 + + + + + + {{ item.name }} + + + 品号:{{ item.productNumber }} + + + 品号-规格型号: {{ item.specificationModel }} + + + 车型: {{ item.carModel }} + + + + + + + + + + + + + + + + + 确定 + + + + + + + + + + {{ showOnlyDifferences ? "显示全部" : "仅看不同项" }} + + + + + + + + + + + + + + + + {{ column.label }} + + {{ + sortedCompareList.find( + (i) => i.productNumber === column.label + ).name + }} + + + + + + + {{ scope.row[scope.column.property] || "-" }} + + + + + + + + + + + 您选择的品号为:{{ selectedProductNumber }} + + + + 确定 + + + + + + + + 正式环境中提供语音输入检索功能,demo中仅做示意。 + + + + 我知道了 + + + + + + + + + + + +