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 = {}) => {
return
POST
(
`
${
Prefix
}
/office/shortcode/api/getList`
,
params
)
}
// 条码查询—境内码查询
const
searchInternal
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/codeSearch/api/domesticCode`
,
params
)
}
export
default
{
searchGln
,
searchGetList
,
searchInternal
}
src/views/Search/internal.vue
View file @
e8f7ca36
...
...
@@ -85,7 +85,7 @@
<el-form-item
label=
"验证码:"
>
<el-button
type=
"primary"
class=
"w240"
>
<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>
</el-button>
...
...
@@ -120,7 +120,7 @@
</el-table-column>
<el-table-column
prop=
"name"
label=
"厂商名称"
width=
"180"
>
</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=
"详细"
>
<
template
>
<span
...
...
@@ -153,7 +153,7 @@
<div
class=
"notice"
>
<div
class=
"title"
>
友情提示
</div>
<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>
1、
<a
href=
"http://www.ancc.org.cn/Knowledge/goodsGln.aspx"
...
...
@@ -178,12 +178,12 @@
</div>
</div>
<Vcode
:show=
"isShowVcode"
@
success=
"onSuccess"
@
close=
"onClose"
/>
<Vcode
:show=
"isShowVcode"
@
success=
"onSuccess"
@
close=
"onClose"
/>
</div>
</template>
<
script
>
import
{
getUUID
}
from
"@/utils/utils"
;
import
{
getUUID
}
from
"@/utils/utils"
;
import
Vcode
from
"vue-puzzle-vcode"
;
const
CODE
=
'1'
;
...
...
@@ -210,6 +210,7 @@ export default {
},
result
:
null
,
searchCodeShow
:
""
,
errorMsg
:
""
,
showResult
:
false
,
};
},
...
...
@@ -244,26 +245,26 @@ export default {
this
.
showResult
=
true
;
if
(
this
.
company
===
CODE
)
{
this
.
searchCodeShow
=
this
.
companySearch
.
code
;
if
(
this
.
companySearch
.
code
===
"1"
)
{
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
:
"北京阿里巴巴食品有限公司"
,
状态
:
"已注销"
},
];
}
//
if (this.companySearch.code === "1") {
//
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: "北京阿里巴巴食品有限公司", 状态: "已注销" },
//
];
//
}
}
else
if
(
this
.
company
===
NAME
)
{
this
.
searchCodeShow
=
this
.
companySearch
.
name
;
}
else
{
this
.
searchCodeShow
=
this
.
companySearch
.
address
;
}
const
params
=
{
type
:
this
.
company
,
uuid
:
getUUID
()
};
const
searchGlnRes
=
await
this
.
$api
.
search
.
search
Gln
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
const
params
=
{
type
:
this
.
company
,
uuid
:
getUUID
(),
code
:
this
.
searchCodeShow
,
captcha
:
"7n8df"
,
};
const
searchGlnRes
=
await
this
.
$api
.
search
.
search
Internal
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
if
(
returnCode
===
"0"
)
{
this
.
result
=
[
data
];
}
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