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
e8f7ca36
Commit
e8f7ca36
authored
Dec 07, 2021
by
Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 境内码查询接口
parent
7fa690ac
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
20 deletions
+27
-20
search.js
src/axios/module/search.js
+6
-0
internal.vue
src/views/Search/internal.vue
+21
-20
No files found.
src/axios/module/search.js
View file @
e8f7ca36
...
@@ -15,8 +15,14 @@ const searchGetList = (params = {}) => {
...
@@ -15,8 +15,14 @@ const searchGetList = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/shortcode/api/getList`
,
params
)
return
POST
(
`
${
Prefix
}
/office/shortcode/api/getList`
,
params
)
}
}
// 条码查询—境内码查询
const
searchInternal
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/codeSearch/api/domesticCode`
,
params
)
}
export
default
{
export
default
{
searchGln
,
searchGln
,
searchGetList
,
searchGetList
,
searchInternal
}
}
src/views/Search/internal.vue
View file @
e8f7ca36
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
<el-form-item
label=
"验证码:"
>
<el-form-item
label=
"验证码:"
>
<el-button
type=
"primary"
class=
"w240"
>
<el-button
type=
"primary"
class=
"w240"
>
<div
style=
"diplay: flex; align-item: center"
>
<div
style=
"diplay: flex; align-item: center"
>
<img
style=
"height: 14px"
src=
"./img/guard.png"
alt=
""
/>
<img
style=
"height: 14px"
src=
"./img/guard.png"
alt=
""
/>
点击此处进行验证
点击此处进行验证
</div>
</div>
</el-button>
</el-button>
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"name"
label=
"厂商名称"
width=
"180"
>
<el-table-column
prop=
"name"
label=
"厂商名称"
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
>
</el-table-column>
<el-table-column
prop=
"status"
label=
"状态"
></el-table-column>
<el-table-column
label=
"详细"
>
<el-table-column
label=
"详细"
>
<
template
>
<
template
>
<span
<span
...
@@ -153,7 +153,7 @@
...
@@ -153,7 +153,7 @@
<div
class=
"notice"
>
<div
class=
"notice"
>
<div
class=
"title"
>
友情提示
</div>
<div
class=
"title"
>
友情提示
</div>
<div
class=
"content-wrapper"
>
<div
class=
"content-wrapper"
>
<img
src=
"./img/pic_ex_jl.png"
align=
"right"
alt=
""
/>
<img
src=
"./img/pic_ex_jl.png"
align=
"right"
alt=
""
/>
<p>
<p>
1、
<a
1、
<a
href=
"http://www.ancc.org.cn/Knowledge/goodsGln.aspx"
href=
"http://www.ancc.org.cn/Knowledge/goodsGln.aspx"
...
@@ -178,12 +178,12 @@
...
@@ -178,12 +178,12 @@
</div>
</div>
</div>
</div>
<Vcode
:show=
"isShowVcode"
@
success=
"onSuccess"
@
close=
"onClose"
/>
<Vcode
:show=
"isShowVcode"
@
success=
"onSuccess"
@
close=
"onClose"
/>
</div>
</div>
</template>
</template>
<
script
>
<
script
>
import
{
getUUID
}
from
"@/utils/utils"
;
import
{
getUUID
}
from
"@/utils/utils"
;
import
Vcode
from
"vue-puzzle-vcode"
;
import
Vcode
from
"vue-puzzle-vcode"
;
const
CODE
=
'1'
;
const
CODE
=
'1'
;
...
@@ -210,6 +210,7 @@ export default {
...
@@ -210,6 +210,7 @@ export default {
},
},
result
:
null
,
result
:
null
,
searchCodeShow
:
""
,
searchCodeShow
:
""
,
errorMsg
:
""
,
showResult
:
false
,
showResult
:
false
,
};
};
},
},
...
@@ -244,26 +245,26 @@ export default {
...
@@ -244,26 +245,26 @@ export default {
this
.
showResult
=
true
;
this
.
showResult
=
true
;
if
(
this
.
company
===
CODE
)
{
if
(
this
.
company
===
CODE
)
{
this
.
searchCodeShow
=
this
.
companySearch
.
code
;
this
.
searchCodeShow
=
this
.
companySearch
.
code
;
if
(
this
.
companySearch
.
code
===
"1"
)
{
//
if (this.companySearch.code === "1") {
this
.
result
=
[
//
this.result = [
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
{
id
:
"6912614"
,
name
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
//
{ id: "6912614", name: "北京阿里巴巴食品有限公司", 状态: "已注销" },
];
//
];
}
//
}
}
else
if
(
this
.
company
===
NAME
)
{
}
else
if
(
this
.
company
===
NAME
)
{
this
.
searchCodeShow
=
this
.
companySearch
.
name
;
this
.
searchCodeShow
=
this
.
companySearch
.
name
;
}
else
{
}
else
{
this
.
searchCodeShow
=
this
.
companySearch
.
address
;
this
.
searchCodeShow
=
this
.
companySearch
.
address
;
}
}
const
params
=
{
type
:
this
.
company
,
uuid
:
getUUID
()
};
const
params
=
{
type
:
this
.
company
,
uuid
:
getUUID
(),
code
:
this
.
searchCodeShow
,
captcha
:
"7n8df"
,
};
const
searchGlnRes
=
await
this
.
$api
.
search
.
search
Gln
(
params
);
const
searchGlnRes
=
await
this
.
$api
.
search
.
search
Internal
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
const
{
returnCode
,
data
}
=
searchGlnRes
;
if
(
returnCode
===
"0"
)
{
if
(
returnCode
===
"0"
)
{
this
.
result
=
[
data
];
this
.
result
=
[
data
];
}
else
{
}
else
{
...
...
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