Commit b9c05701 authored by mengwenhao's avatar mengwenhao

feature:企业信息列表接口对接

parent 175b3470
const API_INTERNAL_URI = require("../config.js").API_INTERNAL_URI; const API_INTERNAL_URI = require("../config.js").API_INTERNAL_URI;
const req = require("../utils/request").httpReq; const req = require("../utils/request").httpReq;
// 获取企业信息验证 // 获取企业信息列表
exports.entCheck = async ctx => { exports.auditList = async ctx => {
const url = `${API_INTERNAL_URI}/merchant/inner/ent_check`; const url = `${API_INTERNAL_URI}/merchant/inner/audit_list`;
// const url = `http://bp-test.ini.yidian-inc.com/merchant/inner/ent_check`;
const { user_id } = ctx.request.query;
const opts = { const opts = {
url: url, url: url,
method: "GET", method: "POST",
qs: { json: true,
user_id body: ctx.request.body
}
}; };
ctx.body = await req(ctx, opts); ctx.body = await req(ctx, opts);
}; };
......
...@@ -11,7 +11,7 @@ const API_VERSION = "/api/v1"; ...@@ -11,7 +11,7 @@ const API_VERSION = "/api/v1";
// router.post(`${API_VERSION}/login`, system.login); // router.post(`${API_VERSION}/login`, system.login);
router.get(`${API_VERSION}/fetch_user`, system.fetch_user); router.get(`${API_VERSION}/fetch_user`, system.fetch_user);
router.get(`${API_VERSION}/user/:type`, user.query) router.get(`${API_VERSION}/user/:type`, user.query)
router.get(`${API_VERSION}/certification`, enterprise.entCheck); router.post(`${API_VERSION}/certification`, enterprise.auditList);
router.post(`${API_VERSION}/emterprise_commit`, enterprise.entCommit); router.post(`${API_VERSION}/emterprise_commit`, enterprise.entCommit);
router.post(`${API_VERSION}/check_life`, enterprise.checkLife); router.post(`${API_VERSION}/check_life`, enterprise.checkLife);
router.post(`${API_VERSION}/create_life`, enterprise.createLife); router.post(`${API_VERSION}/create_life`, enterprise.createLife);
......
...@@ -17,31 +17,22 @@ ...@@ -17,31 +17,22 @@
> >
<!-- 查询信息区域 --> <!-- 查询信息区域 -->
<div class="formItem"> <div class="formItem">
<el-form-item <el-form-item label="企业注册名称:">
label="企业注册名称:"
prop="name"
>
<el-input v-model="enterpriseForm.name"></el-input> <el-input v-model="enterpriseForm.name"></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="注册码:">
label="注册码:"
prop="code"
>
<el-input v-model="enterpriseForm.code"></el-input> <el-input v-model="enterpriseForm.code"></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item
label="法人或经营者姓名:" label="法人或经营者姓名:"
prop="userName" prop="userName"
> >
<el-input v-model="enterpriseForm.userName"></el-input> <el-input v-model="enterpriseForm.legalPerson"></el-input>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="审核状态:">
label="审核状态:"
prop="statusValue"
>
<el-select <el-select
placeholder="请选择审核状态" placeholder="请选择审核状态"
v-model="enterpriseForm.statusValue" v-model="enterpriseForm.audit_status"
> >
<el-option <el-option
v-for="item in enterpriseForm.statusOptions" v-for="item in enterpriseForm.statusOptions"
...@@ -51,12 +42,9 @@ ...@@ -51,12 +42,9 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="提交类型:">
label="提交类型:"
prop="typeValue"
>
<el-select <el-select
v-model="enterpriseForm.typeValue" v-model="enterpriseForm.data_form"
placeholder="请选择提交类型" placeholder="请选择提交类型"
> >
<el-option <el-option
...@@ -67,13 +55,10 @@ ...@@ -67,13 +55,10 @@
></el-option> ></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item <el-form-item label="提交人账号:">
label="提交人账号:"
prop="number"
>
<el-input <el-input
type="text" type="text"
v-model="enterpriseForm.number" v-model="enterpriseForm.proxy_user_name"
></el-input> ></el-input>
</el-form-item> </el-form-item>
</div> </div>
...@@ -105,7 +90,6 @@ ...@@ -105,7 +90,6 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="审核状态" label="审核状态"
prop="status"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
...@@ -135,7 +119,6 @@ ...@@ -135,7 +119,6 @@
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
label="提交人账号" label="提交人账号"
prop="number"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column <el-table-column
...@@ -163,6 +146,14 @@ ...@@ -163,6 +146,14 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<!-- 分页 -->
<el-pagination
@current-change="handleCurrentChange"
v-model:currentPage="currentPage"
layout="total,prev,pager,next"
:page-size="pageSize"
:total="100"
></el-pagination>
</el-card> </el-card>
<!-- 修改提交验证码弹框 --> <!-- 修改提交验证码弹框 -->
<el-dialog <el-dialog
...@@ -190,7 +181,7 @@ ...@@ -190,7 +181,7 @@
<script> <script>
import Layout from "@/layouts"; import Layout from "@/layouts";
import { entCheck } from "@/service/enterprise"; import { auditList } from "@/service/enterprise";
export default { export default {
name: "Certification", name: "Certification",
components: { Layout }, components: { Layout },
...@@ -200,16 +191,17 @@ export default { ...@@ -200,16 +191,17 @@ export default {
enterpriseForm: { enterpriseForm: {
name: "", name: "",
code: "", code: "",
userName: "", legal_person: "",
status: "",
type: "", type: "",
number: "", audit_status: null,
data_form: null,
proxy_user_name: null,
statusOptions: [ statusOptions: [
{ value: 1, label: "待审核" }, { value: 5, label: "编辑中" },
{ value: 2, label: "通过" }, { value: 10, label: "身份证校验通过待平台审核" },
{ value: 3, label: "拒绝" } { value: 20, label: "审核成功" },
{ value: 30, label: "审核失败" }
], ],
statusValue: "",
typeOptions: [ typeOptions: [
{ value: 1, label: "生活圈c端" }, { value: 1, label: "生活圈c端" },
{ value: 2, label: "销售端b端" }, { value: 2, label: "销售端b端" },
...@@ -232,24 +224,43 @@ export default { ...@@ -232,24 +224,43 @@ export default {
], ],
// 跳转详情页弹窗 // 跳转详情页弹窗
detailDialogVisible: false detailDialogVisible: false,
// 当前页
currentPage: "1",
// 每页条数
pageSize: 20
}; };
}, },
created () { created () {
this.onEntCheck(); this.getEnterpriseList();
console.log("userInfo:", this.$store.state.userInfo);
}, },
methods: { methods: {
// 获取商户认证检查信息 // 获取商户认证检查信息
async onEntCheck () { async getEnterpriseList () {
try { const {
const res = await entCheck(510232747179); name,
console.log("res:----", res); code,
} catch (error) { legal_person,
console.log("error:", error); audit_status,
} data_form,
proxy_user_name
} = this.enterpriseForm;
const params = {
page: this.currentPage,
limit: this.pageSize,
name,
code,
legal_person,
audit_status,
data_form,
proxy_user_name
};
console.log(params);
const res = await auditList(params);
console.log(res);
}, },
// 重置表单 // 重置表单
...@@ -272,11 +283,18 @@ export default { ...@@ -272,11 +283,18 @@ export default {
}, },
// 获取验证码 // 获取验证码
getAuthCode () { getAuthCode () { },
},
// 校验验证码 // 校验验证码
checkAuthCode () { checkAuthCode () {
this.$router.push({ name: "Audit", params: { pageStatus: "EDIT", auditId: 1 } }) this.$router.push({
name: "Audit",
params: { pageStatus: "EDIT", auditId: 1 }
});
},
// 换页操作
handleCurrentChange (e) {
console.log(e);
} }
} }
}; };
......
...@@ -17,9 +17,12 @@ ...@@ -17,9 +17,12 @@
<!-- 商户类型 --> <!-- 商户类型 -->
<el-form-item <el-form-item
label="商户类型" label="商户类型"
prop="data_type" prop="dataType"
>
<el-select
placeholder="请选择商户类型"
v-model="establishForm.dataType"
> >
<el-select v-model="establishForm.data_type">
<el-option <el-option
label="个体工商户" label="个体工商户"
:value="1" :value="1"
...@@ -170,7 +173,7 @@ export default { ...@@ -170,7 +173,7 @@ export default {
issue_date: null, // 发证日期 issue_date: null, // 发证日期
entterprise_image: null, // 金山云key entterprise_image: null, // 金山云key
data_from: 0, // 数据来源 data_from: 0, // 数据来源
data_type: 0, // 企业认证类型 dataType: null, // 企业认证类型
proxy_user_name: null, // OP后台代提交人姓名 proxy_user_name: null, // OP后台代提交人姓名
licenseList: [], // 营业执照 licenseList: [], // 营业执照
idcardPhoto: [], // 身份证照片 idcardPhoto: [], // 身份证照片
...@@ -216,7 +219,7 @@ export default { ...@@ -216,7 +219,7 @@ export default {
} }
], ],
// 商户类型 // 商户类型
data_type: [{ required: true, message: "请选择商户类型", trigger: "change" }] dataType: [{ required: true, message: "请选择商户类型", trigger: "change" }]
} }
}; };
}, },
......
...@@ -3,14 +3,12 @@ ...@@ -3,14 +3,12 @@
*/ */
import axios from "../utils/request"; import axios from "../utils/request";
// 获取审核列表 /**
// export async function auditList (params) { * 获取企业信息列表
// const res = await axios.post(``) * @param query
// } */
export async function auditList (params) {
// 企业信息检查 const res = await axios.post(`/api/v1/certification`, { params });
export async function entCheck (user_id) {
const res = await axios.get(`/api/v1/certification`, { params: { user_id } });
return res; return res;
} }
......
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