|
|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="card content-box">
|
|
|
<div class="content-section">
|
|
|
- <div class="tip-text">娱乐经营许可证到期时间:{{ entertainmentLicenseExpireTime || "--" }}</div>
|
|
|
+ <div class="tip-text">娱乐经营许可证到期时间:{{ expirationTime || "--" }}</div>
|
|
|
<div class="action-buttons">
|
|
|
<el-button type="primary" @click="handleReplace"> 更换 </el-button>
|
|
|
<el-button type="primary" @click="handleViewChangeRecord"> 查看变更记录 </el-button>
|
|
|
@@ -132,7 +132,7 @@ const statusMap: Record<number, { name: string; class: string }> = {
|
|
|
};
|
|
|
|
|
|
const id = localGet("createdId");
|
|
|
-const entertainmentLicenseExpireTime = ref<string>("");
|
|
|
+const expirationTime = ref<string>("");
|
|
|
const licenseImage = ref<string>("");
|
|
|
const replaceDialogVisible = ref(false);
|
|
|
const changeRecordDialogVisible = ref(false);
|
|
|
@@ -179,8 +179,8 @@ const initData = async () => {
|
|
|
};
|
|
|
const res: any = await getEntertainmentBusinessLicense(params);
|
|
|
if (res.code == 200) {
|
|
|
- licenseImage.value = res.data[0].imgUrl;
|
|
|
- entertainmentLicenseExpireTime.value = res.data[0].expireTime;
|
|
|
+ licenseImage.value = res.data[0]?.imgUrl;
|
|
|
+ expirationTime.value = res.data[0]?.expirationTime;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -193,7 +193,7 @@ const handleReplace = async () => {
|
|
|
id: localGet("createdId")
|
|
|
};
|
|
|
const res: any = await getStoreEntertainmentLicenceStatus(params);
|
|
|
- if (res.data.entertainmentLicenceStatus === 2) {
|
|
|
+ if (res.data.EntertainmentStatus == 2) {
|
|
|
ElMessage.warning("娱乐经营许可证审核中,请耐心等待");
|
|
|
} else {
|
|
|
replaceDialogVisible.value = true;
|
|
|
@@ -600,14 +600,13 @@ const getStatusText = (status: string) => {
|
|
|
}
|
|
|
.content-section {
|
|
|
display: flex;
|
|
|
- gap: 50px;
|
|
|
align-items: center;
|
|
|
justify-content: space-between;
|
|
|
+ width: 100%;
|
|
|
margin-top: 20px;
|
|
|
margin-bottom: 50px;
|
|
|
}
|
|
|
.tip-text {
|
|
|
- margin-right: 450px;
|
|
|
font-size: 18px;
|
|
|
color: var(--el-text-color-regular);
|
|
|
}
|