Commit e8f7ca36 by Tang

feat: 境内码查询接口

parent 7fa690ac
...@@ -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
} }
...@@ -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.searchGln(params); const searchGlnRes = await this.$api.search.searchInternal(params);
const { returnCode, data } = searchGlnRes; const {returnCode, data} = searchGlnRes;
if (returnCode === "0") { if (returnCode === "0") {
this.result = [data]; this.result = [data];
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment