Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
吴迪
gs1
Commits
b113dc20
Commit
b113dc20
authored
Dec 25, 2021
by
tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 首页查询优化
parent
8c8c2994
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
9 deletions
+21
-9
index.vue
src/views/Home/index.vue
+17
-5
internal.vue
src/views/Search/internal.vue
+4
-4
No files found.
src/views/Home/index.vue
View file @
b113dc20
...
...
@@ -325,9 +325,9 @@
<div
class=
"chaxun-kj"
>
<div
class=
"row"
>
<div
class=
"col-lg-2 chaxun-left"
>
<el-select
v-model=
"chaxun.type"
placeholder=
"请选择"
>
<el-select
v-model=
"chaxun.type
2
"
placeholder=
"请选择"
>
<el-option
v-for=
"(item, i) in chaxun.options"
v-for=
"(item, i) in chaxun.options
2
"
:key=
"i"
:label=
"item.label"
:value=
"item.value"
...
...
@@ -337,14 +337,14 @@
</div>
<div
class=
"col-lg-7 chaxun-middle"
>
<el-input
placeholder=
"请输入
厂商名称
"
placeholder=
"请输入
13位或14位的商品条码
"
v-model=
"chaxun.keywords"
clearable
>
</el-input>
</div>
<div
class=
"col-lg-3 chaxun-right"
>
<button
@
click=
"toSearch(chaxun.type,chaxun.keywords,'product')"
>
境内条码查询
</button>
<button
@
click=
"toSearch(chaxun.type
2
,chaxun.keywords,'product')"
>
境内条码查询
</button>
</div>
</div>
</div>
...
...
@@ -631,11 +631,23 @@ export default {
],
chaxun
:
{
type
:
"1"
,
type2
:
''
,
options
:
[
{
label
:
"根据厂商
名称
查询"
,
label
:
"根据厂商
识别代码
查询"
,
value
:
"1"
,
},
{
label
:
"根据厂商名称查询"
,
value
:
"2"
,
},
{
label
:
"根据厂商地址查询"
,
value
:
"3"
,
},
],
options2
:
[
],
keywords
:
""
,
},
...
...
src/views/Search/internal.vue
View file @
b113dc20
...
...
@@ -105,14 +105,14 @@
header-cell-class-name=
"search-table-hc"
style=
"width: 100%"
>
<el-table-column
prop=
"
id
"
label=
"厂商识别代码"
width=
"180"
>
<el-table-column
prop=
"
_source.code
"
label=
"厂商识别代码"
width=
"180"
>
<template
slot-scope=
"scope"
>
<span
type=
"text"
class=
"hover"
size=
"small"
>
{{
scope
.
row
.
id
}}
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"name"
label=
"厂商名称"
width=
"180"
>
<el-table-column
prop=
"
_source.firm_
name"
label=
"厂商名称"
width=
"180"
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
></el-table-column>
<el-table-column
label=
"详细"
>
...
...
@@ -219,7 +219,7 @@ export default {
this
.
productSearch
.
code
=
this
.
$route
.
query
.
keyword
}
else
if
(
this
.
$route
.
query
.
infoType
===
'company'
){
this
.
activeName
=
'first'
this
.
company
=
NAME
this
.
company
=
this
.
$route
.
query
.
type
this
.
companySearch
.
name
=
this
.
$route
.
query
.
keyword
}
}
...
...
@@ -261,7 +261,7 @@ export default {
const
searchGlnRes
=
await
this
.
$api
.
search
.
searchInternal
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
if
(
returnCode
===
"0"
)
{
this
.
result
=
[
data
];
this
.
result
=
[
data
.
hits
.
hits
];
}
else
{
this
.
errorMsg
=
searchGlnRes
.
returnMsg
||
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment