|
|
@@ -268,14 +268,14 @@
|
|
|
</el-upload>
|
|
|
</el-form-item> -->
|
|
|
|
|
|
- <el-form-item label="娱乐经营许可证" prop="disportLicenceImgList" v-if="showDisportLicence">
|
|
|
+ <el-form-item label="其他资质证明" prop="disportLicenceImgList" v-if="showDisportLicence">
|
|
|
<el-upload
|
|
|
v-model:file-list="step2Form.disportLicenceImgList"
|
|
|
:http-request="handleHttpUpload"
|
|
|
list-type="picture-card"
|
|
|
:limit="1"
|
|
|
:on-exceed="handleExceed"
|
|
|
- :on-success="(response, file) => handleUploadSuccess(response, file, 'BUSINESS_LICENSE', '娱乐经营许可证')"
|
|
|
+ :on-success="(response, file) => handleUploadSuccess(response, file, 'BUSINESS_LICENSE', '其他资质证明')"
|
|
|
:on-preview="handlePictureCardPreview"
|
|
|
>
|
|
|
<el-icon><Plus /></el-icon>
|
|
|
@@ -374,7 +374,7 @@ const ocrResult = ref<{
|
|
|
|
|
|
// 食品经营许可证到期时间(从 OCR 结果中提取)
|
|
|
const foodLicenceExpirationTime = ref<string>("");
|
|
|
-// 娱乐经营许可证到期时间(从 OCR 结果中提取)
|
|
|
+// 其他资质证明到期时间(从 OCR 结果中提取)
|
|
|
const entertainmentLicenceExpirationTime = ref<string>("");
|
|
|
|
|
|
// 是否正在识别中
|
|
|
@@ -383,7 +383,7 @@ const isOcrProcessing = ref(false);
|
|
|
// OCR识别状态:'success' | 'failed' | 'none'(未识别)
|
|
|
const businessLicenseOcrStatus = ref<"success" | "failed" | "none">("none"); // 营业执照OCR状态
|
|
|
const foodLicenseOcrStatus = ref<"success" | "failed" | "none">("none"); // 食品经营许可证OCR状态
|
|
|
-const entertainmentLicenseOcrStatus = ref<"success" | "failed" | "none">("none"); // 娱乐经营许可证OCR状态
|
|
|
+const entertainmentLicenseOcrStatus = ref<"success" | "failed" | "none">("none"); // 其他资质证明OCR状态
|
|
|
|
|
|
// 日期格式转换函数:支持两种格式
|
|
|
// 1. "20220508" -> "2022-05-08"
|
|
|
@@ -420,7 +420,7 @@ const isIdCardUploadComplete = computed(() => {
|
|
|
return idCardFrontList.value.length > 0 && idCardBackList.value.length > 0;
|
|
|
});
|
|
|
|
|
|
-// 计算是否需要显示娱乐经营许可证(酒吧或KTV时显示)
|
|
|
+// 计算是否需要显示其他资质证明(酒吧或KTV时显示)
|
|
|
const showDisportLicence = computed(() => {
|
|
|
const sectionName = step2Form.businessSectionName;
|
|
|
const sectionId = step2Form.businessSection;
|
|
|
@@ -549,7 +549,7 @@ const step2Rules: FormRules = {
|
|
|
businessLicenseAddress: [{ required: true, message: "请上传营业执照", trigger: "change" }],
|
|
|
// contractImageList: [{ required: true, message: "请上传合同图片", trigger: "change" }], // 已隐藏 (2026-01-17)
|
|
|
// foodLicenceImgList: [{ required: true, message: "请上传食品经营许可证", trigger: "change" }], // 已隐藏 (2026-01-17)
|
|
|
- disportLicenceImgList: [{ required: true, message: "请上传娱乐经营许可证", trigger: "change" }]
|
|
|
+ disportLicenceImgList: [{ required: true, message: "请上传其他资质证明", trigger: "change" }]
|
|
|
};
|
|
|
|
|
|
//地址集合
|
|
|
@@ -988,12 +988,12 @@ const autoOcrRecognition = async (ocrType: string, name: string) => {
|
|
|
// 将正反面 URL 用逗号分隔
|
|
|
imageUrls = `${frontUrl},${backUrl}`;
|
|
|
} else if (ocrType === "BUSINESS_LICENSE") {
|
|
|
- // 营业执照或娱乐经营许可证:检查是否已上传
|
|
|
- // 优先检查营业执照,如果没有再检查娱乐经营许可证
|
|
|
+ // 营业执照或其他资质证明:检查是否已上传
|
|
|
+ // 优先检查营业执照,如果没有再检查其他资质证明
|
|
|
let fileList: UploadUserFile[] = [];
|
|
|
if (name == "营业执照") {
|
|
|
fileList = step2Form.businessLicenseAddress;
|
|
|
- } else if (name == "娱乐经营许可证") {
|
|
|
+ } else if (name == "其他资质证明") {
|
|
|
fileList = step2Form.disportLicenceImgList;
|
|
|
} else {
|
|
|
return;
|
|
|
@@ -1096,10 +1096,10 @@ const autoOcrRecognition = async (ocrType: string, name: string) => {
|
|
|
|
|
|
ElMessage.success("身份证识别成功");
|
|
|
} else if (ocrType === "BUSINESS_LICENSE") {
|
|
|
- // 判断是营业执照还是娱乐经营许可证
|
|
|
+ // 判断是营业执照还是其他资质证明
|
|
|
const isBusinessLicense = step2Form.businessLicenseAddress.length > 0;
|
|
|
|
|
|
- // 提取 validToDate 字段(娱乐经营许可证)
|
|
|
+ // 提取 validToDate 字段(其他资质证明)
|
|
|
if (!isBusinessLicense && res.data && Array.isArray(res.data) && res.data.length > 0) {
|
|
|
const validToDate = res.data[0]?.validToDate || "";
|
|
|
if (validToDate) {
|
|
|
@@ -1111,9 +1111,9 @@ const autoOcrRecognition = async (ocrType: string, name: string) => {
|
|
|
if (name == "营业执照") {
|
|
|
businessLicenseOcrStatus.value = "success";
|
|
|
ElMessage.success("营业执照识别成功");
|
|
|
- } else if (name == "娱乐经营许可证") {
|
|
|
+ } else if (name == "其他资质证明") {
|
|
|
entertainmentLicenseOcrStatus.value = "success";
|
|
|
- ElMessage.success("娱乐经营许可证识别成功");
|
|
|
+ ElMessage.success("其他资质证明识别成功");
|
|
|
}
|
|
|
} else if (ocrType === "FOOD_MANAGE_LICENSE") {
|
|
|
// 提取食品经营许可证的 validToDate 字段
|
|
|
@@ -1132,7 +1132,7 @@ const autoOcrRecognition = async (ocrType: string, name: string) => {
|
|
|
console.warn("OCR 识别失败:", res?.msg);
|
|
|
if (name === "营业执照") {
|
|
|
businessLicenseOcrStatus.value = "failed";
|
|
|
- } else if (name === "娱乐经营许可证") {
|
|
|
+ } else if (name === "其他资质证明") {
|
|
|
entertainmentLicenseOcrStatus.value = "failed";
|
|
|
} else if (ocrType === "FOOD_MANAGE_LICENSE") {
|
|
|
foodLicenseOcrStatus.value = "failed";
|
|
|
@@ -1142,7 +1142,7 @@ const autoOcrRecognition = async (ocrType: string, name: string) => {
|
|
|
} catch (error) {
|
|
|
if (name === "营业执照") {
|
|
|
businessLicenseOcrStatus.value = "failed";
|
|
|
- } else if (name === "娱乐经营许可证") {
|
|
|
+ } else if (name === "其他资质证明") {
|
|
|
entertainmentLicenseOcrStatus.value = "failed";
|
|
|
} else if (ocrType === "FOOD_MANAGE_LICENSE") {
|
|
|
foodLicenseOcrStatus.value = "failed";
|
|
|
@@ -1162,7 +1162,7 @@ const handleUploadSuccess = (response: any, uploadFile: UploadUserFile, ocrType:
|
|
|
if (ocrType && (ocrType === "ID_CARD" || ocrType === "BUSINESS_LICENSE" || ocrType === "FOOD_MANAGE_LICENSE")) {
|
|
|
if (name === "营业执照") {
|
|
|
businessLicenseOcrStatus.value = "none";
|
|
|
- } else if (name === "娱乐经营许可证") {
|
|
|
+ } else if (name === "其他资质证明") {
|
|
|
entertainmentLicenseOcrStatus.value = "none";
|
|
|
} else if (ocrType === "FOOD_MANAGE_LICENSE") {
|
|
|
foodLicenseOcrStatus.value = "none";
|
|
|
@@ -1233,7 +1233,7 @@ const handleRemove = (file: UploadUserFile) => {
|
|
|
// 移除的是食品经营许可证
|
|
|
foodLicenseOcrStatus.value = "none";
|
|
|
} else if (step2Form.disportLicenceImgList.some((f: UploadUserFile) => f.uid === file.uid)) {
|
|
|
- // 移除的是娱乐经营许可证
|
|
|
+ // 移除的是其他资质证明
|
|
|
entertainmentLicenseOcrStatus.value = "none";
|
|
|
}
|
|
|
};
|
|
|
@@ -1321,7 +1321,7 @@ const handleSubmit = async () => {
|
|
|
failedLicenses.push("食品经营许可证");
|
|
|
}
|
|
|
if (step2Form.disportLicenceImgList.length > 0 && entertainmentLicenseOcrStatus.value === "failed") {
|
|
|
- failedLicenses.push("娱乐经营许可证");
|
|
|
+ failedLicenses.push("其他资质证明");
|
|
|
}
|
|
|
|
|
|
if (failedLicenses.length > 0) {
|
|
|
@@ -1407,10 +1407,10 @@ const handleSubmit = async () => {
|
|
|
|
|
|
const params = {
|
|
|
foodLicenceExpirationTime: foodLicenceExpirationTime.value, //食品经营许可证到期时间
|
|
|
- entertainmentLicenceExpirationTime: entertainmentLicenceExpirationTime.value, //娱乐经营许可证到期时间
|
|
|
+ entertainmentLicenceExpirationTime: entertainmentLicenceExpirationTime.value, //其他资质证明到期时间
|
|
|
businessClassifyList: step2Form.businessSecondLevel, //三级分类
|
|
|
mealProvided: step2Form.businessSecondMeal, //是否提供餐食
|
|
|
- entertainmentLicenseAddress: disportLicenceUrls, //娱乐经营许可证
|
|
|
+ entertainmentLicenseAddress: disportLicenceUrls, //其他资质证明
|
|
|
storeTel: userInfo.phone,
|
|
|
storeName: step2Form.storeName,
|
|
|
storeCapacity: step2Form.storeCapacity,
|