Commit fe392a20 authored by mengwenhao's avatar mengwenhao

feature:修改弹框完成

parent 8dcf481f
......@@ -80,6 +80,21 @@
ref="establish_form"
:model="messageList[0]"
>
<el-form-item
label="商户类型"
prop="merchantsType"
>
<el-select v-model="messageList[0].merchantsType">
<el-option
label="个体工商户"
:value="1"
></el-option>
<el-option
label="普通企业"
:value="2"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label="营业执照:"
ref="licenseChange"
......@@ -393,10 +408,10 @@ export default {
return {
pageStatus: null, // 哪个按钮进入
auditId: null, // 传入的企业id
// 审核/修改详情/查看详情-企业信息
messageList: [
{
merchantsType: null,
status: 1,
id: 1221,
code: 112211,
......@@ -429,7 +444,6 @@ export default {
],
// 审核-审核意见
opinionArea: "",
// 创建生活号表单是否弹出
isDialogShow: false,
// 生活号-生活号信息
......@@ -487,7 +501,13 @@ export default {
validator: idcardNumberRules,
trigger: "blur"
}
]
],
// 商户类型
merchantsType: [{
required: true,
message: "请选择商户类型",
trigger: "change"
}]
},
// 生活号状态
......
......@@ -6,7 +6,7 @@
class="setUp"
@click="goEstablish"
>企业信息提交</el-button>
<div>
<!-- 企业认证管理列表 -->
<el-card class="enterprise_card">
<!-- 企业认证筛选 -->
<el-form
......@@ -150,6 +150,7 @@
@click="goAuditPage('AUDIT', scope.row.id)"
>审核</el-button>
<el-button
:disabled="scope.row.status === 4 ? true : false"
size="mini"
type="success"
@click="goAuditPage('EDIT', scope.row.id)"
......@@ -163,21 +164,39 @@
</el-table-column>
</el-table>
</el-card>
</div>
<!-- 修改提交验证码弹框 -->
<el-dialog
title="获取验证码"
v-model="detailDialogVisible"
>
<el-input
style="width:50%"
placeholder="请输入您收到的验证码"
></el-input>
<el-button
type="primary"
style="margin-left:10px"
@click="getAuthCode"
>获取校验码</el-button>
<el-button
@click="checkAuthCode"
type="warning"
>已有验证码,点击验证</el-button>
</el-dialog>
</layout>
</template>
<style lang="less" src="./index.less" scope></style>
<script>
import Layout from '@/layouts'
import { entCheck } from '../../../service/enterprise'
import Layout from "@/layouts";
import { entCheck } from "@/service/enterprise";
export default {
name: "Certification",
components: { Layout },
data () {
return {
// 表单数据
// 企业认证管理筛选
enterpriseForm: {
name: "",
code: "",
......@@ -198,7 +217,7 @@ export default {
]
},
// 表格信息
// 企业认证管理列表
enterpriseList: [
{
id: 1,
......@@ -210,12 +229,16 @@ export default {
type: 1,
number: 18147683288
}
]
],
// 跳转详情页弹窗
detailDialogVisible: false
};
},
created () {
this.onEntCheck();
console.log("userInfo:", this.$store.state.userInfo);
},
methods: {
......@@ -223,10 +246,9 @@ export default {
async onEntCheck () {
try {
const res = await entCheck(510232747179);
console.log('res:----', res);
}
catch (error) {
console.log('error:', error);
console.log("res:----", res);
} catch (error) {
console.log("error:", error);
}
},
......@@ -235,20 +257,26 @@ export default {
this.$refs[formName].resetFields();
},
// 跳转到企业信息提交
goEstablish () {
this.$router.push({ name: "Establish" });
},
// 跳转到审核页面
goAuditPage (pageStatus, auditId) {
this.$router.push({
name: "Audit",
params: {
pageStatus,
auditId
if (pageStatus === "EDIT") {
return (this.detailDialogVisible = true);
} else {
this.$router.push({ name: "Audit", params: { pageStatus, auditId } });
}
});
},
// 跳转到企业信息提交
goEstablish () {
this.$router.push({ name: "Establish" });
// 获取验证码
getAuthCode () {
},
// 校验验证码
checkAuthCode () {
this.$router.push({ name: "Audit", params: { pageStatus: "EDIT", auditId: 1 } })
}
}
};
......
......@@ -21,11 +21,11 @@
<el-select v-model="establishForm.merchantsType">
<el-option
label="个体工商户"
value="1"
:value="1"
></el-option>
<el-option
label="普通企业"
value="2"
:value="2"
></el-option>
</el-select>
</el-form-item>
......
import moment from "moment";
import CommonServer from "@/api/common";
import CommonServer from "./common";
import axios from "axios";
import { ElMessage } from "element-plus";
......
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