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
f2ef9dba
Commit
f2ef9dba
authored
Mar 27, 2022
by
Lyan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
条码查询
parent
6799218b
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
57 additions
and
44 deletions
+57
-44
search.js
src/axios/module/search.js
+4
-2
index.vue
src/views/Member/index.vue
+1
-1
check.vue
src/views/MyManage/Admin/check.vue
+2
-2
index.vue
src/views/MyManage/index.vue
+12
-9
external.vue
src/views/Search/external.vue
+9
-8
internal.vue
src/views/Search/internal.vue
+29
-22
5.jpg
src/views/Service/img/5.jpg
+0
-0
No files found.
src/axios/module/search.js
View file @
f2ef9dba
...
...
@@ -6,7 +6,8 @@ const Prefix = process.env.NODE_ENV === 'development' ? '/gs1' : '';
// 条码查询—GLN查询/境外码查询
const
searchGln
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/codeSearch/api/gln`
,
params
)
// return POST(`${Prefix}/office/codeSearch/api/gln`, params)
return
POST
(
`
${
Prefix
}
/office/gTinSearch/api/gtin`
,
params
)
}
// 条码查询—缩短码查询
...
...
@@ -14,6 +15,7 @@ const searchGetList = (params = {}) => {
return
POST
(
`
${
Prefix
}
/office/shortcode/api/getList`
,
params
)
}
// 条码查询—境内码查询
const
searchInternal
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/codeSearch/api/domesticCode`
,
params
)
...
...
@@ -21,7 +23,7 @@ const searchInternal = (params = {}) => {
// 条码查询-境内码商品信息
const
searchInternalProduct
=
(
params
=
{})
=>
{
return
POST
(
`
${
Prefix
}
/office/
code
Search/api/domesticCodeProductionNews`
,
params
)
return
POST
(
`
${
Prefix
}
/office/
gTin
Search/api/domesticCodeProductionNews`
,
params
)
}
// 条码查询—查询商品变更记录
...
...
src/views/Member/index.vue
View file @
f2ef9dba
...
...
@@ -55,7 +55,7 @@ export default {
},
methods
:
{
handleToLogin
()
{
window
.
open
(
'https://
www.gds.org.cn/#/home/index
'
,
'_blank'
)
window
.
open
(
'https://
passport.gds.org.cn/Account/Login?ReturnUrl=%2Fconnect%2Fauthorize%2Fcallback%3Fclient_id%3Dvuejs_code_client%26redirect_uri%3Dhttps%253A%252F%252Fwww.gds.org.cn%252F%2523%252Fcallback%26response_type%3Dcode%26scope%3Dopenid%2520profile%2520api1%2520offline_access%26state%3Dcb6c003f5b8346ada430f122b373f5b6%26code_challenge%3Dgl_jGlP1gFP5jXBdIIhKFGlYd9fiFXQ-eW4O3HnbX6M%26code_challenge_method%3DS256%26response_mode%3Dquery
'
,
'_blank'
)
},
goTraining
(){
this
.
$router
.
push
({
...
...
src/views/MyManage/Admin/check.vue
View file @
f2ef9dba
<
template
>
<div
class=
"gs_admin_check"
>
<div
class=
"dashboard"
v-show=
"!query.status"
>
<
!--
<
div
class=
"dashboard"
v-show=
"!query.status"
>
<div
class=
"card_wrapper"
>
<div
class=
"title"
>
企业实名认证
</div>
<div
class=
"body clearfix"
>
...
...
@@ -32,7 +32,7 @@
</div>
</div>
</div>
<CheckSearchTable
v-if=
"query.status"
:query=
"query"
@
refresh=
"getTotalCount"
></CheckSearchTable>
<CheckSearchTable
v-if=
"query.status"
:query=
"query"
@
refresh=
"getTotalCount"
></CheckSearchTable>
-->
</div>
</
template
>
...
...
src/views/MyManage/index.vue
View file @
f2ef9dba
...
...
@@ -52,7 +52,8 @@ export default {
id
:
uuid
(
"gs_nav"
),
name
:
"厂商实名认证"
,
index
:
1
,
link
:
"/MyManage/UnVerify/vendor"
,
// link: "/MyManage/UnVerify/vendor",
link
:
'https://www.gds.org.cn/#/enterpriseAuth/index'
,
},
// { // 一期先不上线,暂时把该菜单项进行隐藏(包括个人中心首页的检测校准申请相关内容)
// id: uuid("gs_nav"),
...
...
@@ -146,16 +147,17 @@ export default {
index
:
3
,
link
:
"/MyManage/UnVerify/changePhone"
,
},
{
id
:
uuid
(
"gs_nav"
),
name
:
"变更企业信息"
,
index
:
4
,
link
:
"/MyManage/UnVerify/vendor"
,
},
//
{
//
id: uuid("gs_nav"),
//
name: "变更企业信息",
//
index: 4,
//
link: "/MyManage/UnVerify/vendor",
//
},
],
},
],
adminRouterList
:
[
adminRouterList
:[],
//暂时屏蔽管理员审核
adminRouterList2
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"业务审核"
,
...
...
@@ -187,7 +189,8 @@ export default {
link
:
"/MyManage/admin/log"
,
},
],
adminBranchRouterList
:
[
adminBranchRouterList
:[],
//暂时屏蔽管理员审核
adminBranchRouterList2
:
[
{
id
:
uuid
(
"gs_nav"
),
name
:
"实名认证业务审核"
,
...
...
src/views/Search/external.vue
View file @
f2ef9dba
...
...
@@ -111,7 +111,7 @@ export default {
if
(
this
.
hasSpecialString
(
this
.
searchCodeShow
)){
return
true
}
this
.
showResult
=
true
;
const
params
=
{
"code"
:
this
.
search
.
code
,
"type"
:
"GTIN"
,
...
...
@@ -120,18 +120,19 @@ export default {
"uuid"
:
this
.
uuid
};
const
searchGlnRes
=
await
this
.
$api
.
search
.
searchGln
(
params
);
const
{
returnCode
,
data
}
=
searchGlnRes
;
const
{
returnCode
}
=
searchGlnRes
;
console
.
log
(
searchGlnRes
)
if
(
returnCode
===
"0"
)
{
if
(
data
.
returnCode
===
'0'
||
data
.
returnCode
===
'3'
)
{
this
.
result
=
[
data
];
}
else
{
this
.
errorMsg
=
errorText
[
data
.
returnCode
]
||
"数据查询异常!"
;
}
let
redirectUrl
=
'https://www.gds.org.cn/#/importList/index?type=importProduct&keyword='
+
this
.
search
.
code
window
.
open
(
redirectUrl
,
'_blank'
)
}
else
{
this
.
showResult
=
true
;
this
.
errorMsg
=
searchGlnRes
.
returnMsg
||
"您输入的商品条码格式不正确,请确认后重试。"
;
this
.
result
=
null
;
//
this.result = null;
}
this
.
getCaptcha
();
},
...
...
src/views/Search/internal.vue
View file @
f2ef9dba
...
...
@@ -78,18 +78,23 @@
</el-form-item>
<el-form-item
label=
"验证码:"
>
<el-button
type=
"primary"
class=
"w240"
@
click=
"handleVerification"
>
<div
style=
"diplay: flex; align-item: center"
>
<img
style=
"height: 14px"
src=
"./img/guard.png"
alt=
""
/>
点击此处进行验证
<div
class=
"y-center"
>
<el-input
v-model=
"productSearch.captcha"
placeholder=
"请输入验证码"
class=
"w160"
></el-input>
<div
class=
"validate-code"
>
<img
:src=
"captchaPath"
@
click=
"getCaptcha()"
alt=
""
/>
</div>
</el-button>
<el-button
style=
"margin-left: 40px"
type=
"primary"
@
click=
"handleSearchProduct"
>
查询
</el-button>
</div>
</el-form-item>
</el-form>
</el-tab-pane>
...
...
@@ -296,6 +301,7 @@ export default {
},
productSearch
:
{
code
:
""
,
captcha
:
''
},
result
:
null
,
resultType
:
'company'
,
...
...
@@ -419,9 +425,7 @@ export default {
},
async
handleSearchProduct
()
{
if
(
!
this
.
isVerificationPass
)
{
return
this
.
$message
.
error
(
'请先进行验证'
);
}
if
(
!
this
.
productSearch
.
code
)
{
return
this
.
$message
.
error
(
'请输入商品条码'
);
}
...
...
@@ -452,23 +456,26 @@ export default {
// document.body.appendChild(a)
// a.click()
// document.body.removeChild(document.getElementById('cow-link-temp'))
this
.
showResult
=
true
;
this
.
resultType
=
'product'
const
paramsProduct
=
{
uuid
:
this
.
uuid
,
code
:
this
.
productSearch
.
code
,
captcha
:
this
.
productSearch
.
captcha
,};
const
searchGlnResProduct
=
await
this
.
$api
.
search
.
searchInternalProduct
(
paramsProduct
);
const
{
returnCode
}
=
searchGlnResProduct
;
if
(
returnCode
===
"0"
)
{
window
.
open
(
`https://www.gds.org.cn/#/barcodeList/index?type=barcode&keyword=
${
this
.
productSearch
.
code
}
`
,
'_blank'
)
}
else
{
this
.
errorMsg
=
searchGlnResProduct
.
returnMsg
||
"没有符合条件的记录!"
;
this
.
result
=
null
;
}
// this.showResult = true;
// this.resultType = 'product'
// const params = {uuid: this.uuid, keyword: this.productSearch.code, captcha: this.captcha,};
// const searchGlnRes = await this.$api.search.searchInternalProduct(params);
// if (returnCode === "0") {
// this.result = [data.hits.hits];
// } else {
// this.errorMsg =
// searchGlnRes.returnMsg ||
// "没有符合条件的记录!";
// this.result = null;
// }
// },
this
.
getCaptcha
();
},
}
};
</
script
>
...
...
src/views/Service/img/5.jpg
View replaced file @
6799218b
View file @
f2ef9dba
81.9 KB
|
W:
|
H:
186 KB
|
W:
|
H:
2-up
Swipe
Onion skin
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