更新
This commit is contained in:
parent
a28de66eaa
commit
27dcff5206
@ -53,4 +53,9 @@ export function companyListTwo(params: any) {
|
||||
// 获取管辖区域
|
||||
export function companyResponsibleArea(params: any) {
|
||||
return request.get({ url: '/company/responsible_area', params })
|
||||
}
|
||||
|
||||
// 人脸采集
|
||||
export function organizationFaceCreate(params: any) {
|
||||
return request.get({ url: '/company/organizationFaceCreate', params })
|
||||
}
|
@ -250,9 +250,20 @@
|
||||
</el-col>
|
||||
<el-col :span="24" class="el-card pt-6">
|
||||
<div class="tit">主要联系人</div>
|
||||
<!-- <div
|
||||
style="
|
||||
padding-left: 20px;
|
||||
padding-bottom: 10px;
|
||||
color: #e6a23c;
|
||||
font-size: 12px;
|
||||
"
|
||||
>
|
||||
提醒︰联系人照片需要进行人脸认证,请务必上传清晰的标准照
|
||||
</div> -->
|
||||
<el-container>
|
||||
<el-aside width="160px">
|
||||
<div class="headimg">
|
||||
<el-aside width="190px" style="display: flex">
|
||||
<span style="color: #f56c6c; padding-left: 20px">*</span>
|
||||
<div class="headimg" style="margin-left: 5px">
|
||||
<el-upload
|
||||
:disabled="isDisabled"
|
||||
v-model="formData.avatar"
|
||||
@ -272,7 +283,6 @@
|
||||
<el-icon>
|
||||
<Plus />
|
||||
</el-icon>
|
||||
<span>上传人脸证件照</span>
|
||||
</div>
|
||||
</el-upload>
|
||||
</div>
|
||||
@ -310,7 +320,6 @@
|
||||
:disabled="isDisabled"
|
||||
v-model="formData.master_phone"
|
||||
placeholder="请输入手机"
|
||||
type="number"
|
||||
clearable
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
@ -659,11 +668,11 @@
|
||||
</template>
|
||||
1
|
||||
<script lang="ts" setup name="companyEdit">
|
||||
import type {
|
||||
FormInstance,
|
||||
UploadProps,
|
||||
import {
|
||||
type FormInstance,
|
||||
type UploadProps,
|
||||
ElMessage,
|
||||
UploadUserFile,
|
||||
type UploadUserFile,
|
||||
} from "element-plus";
|
||||
import Popup from "@/components/popup/index.vue";
|
||||
import {
|
||||
@ -827,6 +836,13 @@ const formRules = reactive<any>({
|
||||
trigger: ["blur"],
|
||||
},
|
||||
],
|
||||
avatar: [
|
||||
{
|
||||
required: true,
|
||||
message: "请上传照片",
|
||||
trigger: ["blur"],
|
||||
},
|
||||
],
|
||||
account: [
|
||||
{
|
||||
required: true,
|
||||
@ -1217,6 +1233,7 @@ const handleAvatarSuccessAvatar: UploadProps["onSuccess"] = (
|
||||
formData.avatar = response.data.uri;
|
||||
};
|
||||
const create = async () => {
|
||||
if (!formData.avatar) return ElMessage.error("主要联系人头像不可为空");
|
||||
await formRef.value?.validate();
|
||||
const data = JSON.parse(JSON.stringify({ ...formData }));
|
||||
data.qualification.other_qualifications = JSON.stringify(
|
||||
|
@ -239,6 +239,17 @@
|
||||
"
|
||||
>企业认证</el-button
|
||||
>
|
||||
<el-button
|
||||
v-else="row.is_authentication == 1"
|
||||
v-perms="['company/authentication']"
|
||||
type="primary"
|
||||
link
|
||||
@click="
|
||||
auth_id = row;
|
||||
facePop = true;
|
||||
"
|
||||
>人脸采集</el-button
|
||||
>
|
||||
<template v-if="row.is_authentication && row.is_contract == 0">
|
||||
<el-button
|
||||
v-if="
|
||||
@ -400,7 +411,7 @@
|
||||
</p>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="authPop" @close="offAuthPop">
|
||||
<h1>重要提醒</h1>
|
||||
<h1>企业认证提醒</h1>
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; padding-bottom: 10px">
|
||||
企业认证前,请检查以下重要信息是否正确
|
||||
@ -467,6 +478,85 @@
|
||||
<el-button type="info" size="large" @click="offAuthPop">返回</el-button>
|
||||
</p>
|
||||
</el-dialog>
|
||||
<el-dialog v-model="facePop" @close="offFacePop">
|
||||
<h1>人脸采集提醒</h1>
|
||||
<div>
|
||||
<div style="font-size: 18px; font-weight: bold; padding-bottom: 10px">
|
||||
人脸采集前,请检查以下重要信息是否正确
|
||||
</div>
|
||||
<el-form ref="formRef" label-width="90px">
|
||||
<el-row>
|
||||
<el-col :span="24">
|
||||
<el-form-item label="公司名称" prop="company_name">
|
||||
<el-input
|
||||
placeholder="请输入公司名称"
|
||||
clearable
|
||||
:value="auth_id.company_name"
|
||||
readonly
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="企业代码" prop="organization_code">
|
||||
<el-input
|
||||
placeholder="请输入企业代码"
|
||||
clearable
|
||||
:value="auth_id.organization_code"
|
||||
readonly
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="主要联系人" prop="master_name">
|
||||
<el-input
|
||||
placeholder="请输入主要联系人"
|
||||
clearable
|
||||
:value="auth_id.master_name"
|
||||
readonly
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="手机号码" prop="master_phone">
|
||||
<el-input
|
||||
placeholder="请输入手机号码"
|
||||
clearable
|
||||
:value="auth_id.master_phone"
|
||||
readonly
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="邮箱" prop="master_email">
|
||||
<el-input
|
||||
placeholder="请输入邮箱"
|
||||
clearable
|
||||
:value="auth_id.master_email"
|
||||
readonly
|
||||
:style="{ width: '100%' }"
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
</div>
|
||||
<p class="btn_menu">
|
||||
<el-button
|
||||
type="primary"
|
||||
size="large"
|
||||
@click="handleFaceGather(auth_id.id)"
|
||||
>确认</el-button
|
||||
>
|
||||
<el-button type="warning" size="large" @click="toEditCompany"
|
||||
>修改</el-button
|
||||
>
|
||||
<el-button type="info" size="large" @click="offFacePop">返回</el-button>
|
||||
</p>
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -483,6 +573,7 @@ import {
|
||||
authentication,
|
||||
apiCompanyDetail,
|
||||
initiate_contract,
|
||||
organizationFaceCreate,
|
||||
} from "@/api/company";
|
||||
import { timeFormat } from "@/utils/util";
|
||||
import feedback from "@/utils/feedback";
|
||||
@ -520,11 +611,25 @@ const offInitiateContractPop = () => {
|
||||
// 创建合同的id
|
||||
const contractId = ref("");
|
||||
|
||||
//弹窗
|
||||
//企业认证弹窗
|
||||
const authPop = ref(false);
|
||||
const offAuthPop = () => {
|
||||
authPop.value = false;
|
||||
};
|
||||
|
||||
//人脸采集弹窗
|
||||
const facePop = ref(false);
|
||||
const offFacePop = () => {
|
||||
facePop.value = false;
|
||||
};
|
||||
|
||||
const handleFaceGather = async (id: any) => {
|
||||
let res = await organizationFaceCreate({
|
||||
id: id,
|
||||
});
|
||||
offFacePop();
|
||||
};
|
||||
|
||||
const toEditCompany = () => {
|
||||
router.push({
|
||||
path: getRoutePath("company/add:edit"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user