Commit 84b6aae9 authored by chenqikuai's avatar chenqikuai

fix

parent bf5d62a2
......@@ -79,7 +79,7 @@ export interface iCopyRight {
contact_address: string;
authentication_ids: number[];
authentication_main_id: number;
authentication_audit_opinions?: string;
record_audit_opinions?: string;
record_work_status: string;
record_work_id: number;
certificate: string;
......
......@@ -25,3 +25,9 @@ export const checkVerificationCode = (rule: any, value: any, callback: any) => {
if (!checkReg.test(value)) callback(new Error("请输入6位数字验证码"));
else callback();
};
export const checkEmail = (rule: any, value: any, callback: any) => {
const checkReg = /^.+\@.+\..+$/;
if (!checkReg.test(value)) callback(new Error("请输入正确格式的邮箱"));
else callback();
};
......@@ -40,6 +40,7 @@ watch(
(newV) => {
URL.revokeObjectURL(url.value);
url.value = getImageUrl(props.modelValue) || "";
console.log(getImageUrl(props.modelValue), props.modelValue);
}
);
......
......@@ -256,6 +256,7 @@ import CommonDialog from "@/components/CommonDialog/index.vue";
import syDialogInput from "@/components/CommonInput/index.vue";
import syRadio from "@/components/Radio/index.vue";
import syDatePicker from "../../components/DatePicker/index.vue";
import { checkEmail, checkIdNumber, checkPhone } from "@/utils/match";
function handle() {
console.log(...arguments);
......@@ -288,7 +289,12 @@ const modelOfCert = ref({
const rulesOfCert = {
name: [{ required: true, message: "请输入姓名/名称" }],
property: [{ required: true, message: "选择主体性质" }],
idCard: [{ required: true, message: "请输入身份证号码" }],
idCard: [
{ required: true, message: "请输入身份证号码" },
{
validator: checkIdNumber,
},
],
city: [{ required: true, message: "请选择所在城市" }],
idCardImg: [{ required: true, message: "请上传身份证" }],
auth: [],
......@@ -326,12 +332,18 @@ const rulesOfContact = {
required: true,
message: "请输入电子邮箱",
},
{
validator: checkEmail,
},
],
cellphoneNumber: [
{
required: true,
message: "请输入手机号",
},
{
validator: checkPhone,
},
],
phoneNumber: [],
postCode: [],
......@@ -411,8 +423,8 @@ const handleConfirm = () => {
emit("addSuccess");
} else {
}
loading.value = false;
}
loading.value = false;
});
});
};
......
......@@ -88,7 +88,7 @@
v-if="data?.record_work_status === eStatusOfCopyright.NOT_PASSED"
>
<span style="color: var(--sy-gray)">审核意见:</span>
<span>{{ data.authentication_audit_opinions }}</span>
<span>{{ data.record_audit_opinions }}</span>
</div>
<div>
<span style="color: var(--sy-gray)">备注说明:</span>
......
......@@ -48,7 +48,7 @@
</template>
<script lang="ts" setup>
import LayoutVue from "@/components/Layout.vue";
import { ref, watch } from "vue";
import { nextTick, ref, watch } from "vue";
import Search from "@/components/Search/index.vue";
import Avatar from "@/components/Avatar/index.vue";
import Title from "@/components/Title.vue";
......@@ -131,42 +131,45 @@ const handleClickStatusFilter = (status: eStatusOfFilerCertification) => {
const handleClickEdit = ({ id }: { id: number }) => {
addFilingPersonDailogVisible.value = true;
const raw = tableData.value.find((i) => i.id === id);
AddFilingPersonRef.value!.mode = "edit";
AddFilingPersonRef.value!.modelOfCert.name = raw!.authentication_name;
AddFilingPersonRef.value!.modelOfCert.property =
raw!.authentication_subject_nature;
AddFilingPersonRef.value!.modelOfCert.idCard =
raw!.authentication_subject_nature_code;
AddFilingPersonRef.value!.modelOfCert.unifiedSocialCreditCode =
raw!.authentication_subject_nature_code;
AddFilingPersonRef.value!.modelOfCert.powerOfAttorneyImage =
raw!.authentication_certificate_of_authorization_image;
AddFilingPersonRef.value!.modelOfCert.authorizationValidityPeriod =
raw!.authentication_certificate_of_authorization_date;
nextTick(() => {
const raw = tableData.value.find((i) => i.id === id);
AddFilingPersonRef.value!.mode = "edit";
AddFilingPersonRef.value!.modelOfCert.name = raw!.authentication_name;
AddFilingPersonRef.value!.modelOfCert.property =
raw!.authentication_subject_nature;
AddFilingPersonRef.value!.modelOfCert.idCard =
raw!.authentication_subject_nature_code;
AddFilingPersonRef.value!.modelOfCert.unifiedSocialCreditCode =
raw!.authentication_subject_nature_code;
AddFilingPersonRef.value!.modelOfCert.powerOfAttorneyImage =
raw!.authentication_certificate_of_authorization_image;
AddFilingPersonRef.value!.modelOfCert.authorizationValidityPeriod =
raw!.authentication_certificate_of_authorization_date;
AddFilingPersonRef.value!.modelOfContact.name = raw!.contact_person;
AddFilingPersonRef.value!.modelOfContact.email = raw!.contact_email;
AddFilingPersonRef.value!.modelOfContact.cellphoneNumber =
raw!.contact_mobile;
AddFilingPersonRef.value!.modelOfContact.phoneNumber = raw!.contact_telephone;
AddFilingPersonRef.value!.modelOfContact.postCode = raw!.contact_post_code;
AddFilingPersonRef.value!.modelOfContact.fax = raw!.contact_fax;
AddFilingPersonRef.value!.modelOfContact.addr = raw!.contact_address;
AddFilingPersonRef.value!.modelOfCert.city = [
raw!.authentication_province,
raw!.authentication_city,
raw!.authentication_district,
];
AddFilingPersonRef.value!.modelOfContact.name = raw!.contact_person;
AddFilingPersonRef.value!.modelOfContact.email = raw!.contact_email;
AddFilingPersonRef.value!.modelOfContact.cellphoneNumber =
raw!.contact_mobile;
AddFilingPersonRef.value!.modelOfContact.phoneNumber =
raw!.contact_telephone;
AddFilingPersonRef.value!.modelOfContact.postCode = raw!.contact_post_code;
AddFilingPersonRef.value!.modelOfContact.fax = raw!.contact_fax;
AddFilingPersonRef.value!.modelOfContact.addr = raw!.contact_address;
AddFilingPersonRef.value!.modelOfCert.city = [
raw!.authentication_province,
raw!.authentication_city,
raw!.authentication_district,
];
AddFilingPersonRef.value!.modelOfCert.businessLicenseOrCopy =
raw!.authentication_business_license;
AddFilingPersonRef.value!.modelOfCert.idCardImg = {
front: raw!.authentication_held_front_id_card,
back: raw!.authentication_held_back_id_card,
};
AddFilingPersonRef.value!.modelOfCert.businessLicenseOrCopy =
raw!.authentication_business_license;
AddFilingPersonRef.value!.modelOfCert.idCardImg = {
front: raw!.authentication_held_front_id_card,
back: raw!.authentication_held_back_id_card,
};
AddFilingPersonRef.value!.id = id;
AddFilingPersonRef.value!.id = id;
});
};
watch(searchValue, () => {
......
......@@ -9,7 +9,7 @@
<Icon icon-name="iconshenpiweitongguo-chakanyuanyin"></Icon>
</template>
<template #message>
{{ rowData?.authentication_audit_opinions }}
{{ rowData?.record_audit_opinions }}
<!-- <span v-if="!msg" class="text-xs">原因加载中...</span>
<span v-else class="">
{{ msg }}
......
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