|
|
@@ -1,11 +1,8 @@
|
|
|
<template>
|
|
|
<div class="card content-box">
|
|
|
- <div class="page-header">
|
|
|
- <h1 class="store-title">重庆老火锅</h1>
|
|
|
- </div>
|
|
|
<div class="content-section">
|
|
|
<div class="tip-text">
|
|
|
- 如需续约合同或更改合同图片请在此处上传,重新上传之后需要重新进行审核,审核通过后,新的合同图片将会覆盖之前的合同
|
|
|
+ 如需续约合同或更改合同图片请在此处上传,重新上传之后需要重新进行审核,审核通过后,新的合同图片将会覆盖之前的合同
|
|
|
</div>
|
|
|
<div class="action-buttons">
|
|
|
<el-button type="primary" @click="handleReplace"> 更换 </el-button>
|
|
|
@@ -17,10 +14,10 @@
|
|
|
<el-col v-for="(item, index) in contractList" :key="index" :xs="12" :sm="8" :md="6" :lg="4" :xl="4">
|
|
|
<div class="contract-item">
|
|
|
<el-image
|
|
|
- :src="item.url"
|
|
|
- fit="cover"
|
|
|
+ :src="item.imgUrl"
|
|
|
+ fit=""
|
|
|
class="contract-image"
|
|
|
- :preview-src-list="contractList.map(img => img.url)"
|
|
|
+ :preview-src-list="contractList.map(img => img.imgUrl)"
|
|
|
:initial-index="index"
|
|
|
>
|
|
|
<template #error>
|
|
|
@@ -31,15 +28,15 @@
|
|
|
</el-image>
|
|
|
</div>
|
|
|
</el-col>
|
|
|
- <template v-for="n in Math.max(0, 8 - contractList.length)" :key="`empty-${n}`">
|
|
|
- <el-col :xs="12" :sm="8" :md="6" :lg="4" :xl="4">
|
|
|
- <div class="contract-item empty-item">
|
|
|
- <el-icon class="empty-icon">
|
|
|
- <Picture />
|
|
|
- </el-icon>
|
|
|
- </div>
|
|
|
- </el-col>
|
|
|
- </template>
|
|
|
+ <!-- <template v-for="n in Math.max(0, 8 - contractList.length)" :key="`empty-${n}`">-->
|
|
|
+ <!-- <el-col :xs="12" :sm="8" :md="6" :lg="4" :xl="4">-->
|
|
|
+ <!-- <div class="contract-item empty-item">-->
|
|
|
+ <!-- <el-icon class="empty-icon">-->
|
|
|
+ <!-- <Picture />-->
|
|
|
+ <!-- </el-icon>-->
|
|
|
+ <!-- </div>-->
|
|
|
+ <!-- </el-col>-->
|
|
|
+ <!-- </template>-->
|
|
|
</el-row>
|
|
|
</div>
|
|
|
|
|
|
@@ -114,6 +111,8 @@ import { ElMessage, ElMessageBox } from "element-plus";
|
|
|
import { Plus, Picture } from "@element-plus/icons-vue";
|
|
|
import { uploadImg } from "@/api/modules/upload";
|
|
|
import type { UploadProps, UploadFile, UploadRequestOptions } from "element-plus";
|
|
|
+import { localGet } from "@/utils";
|
|
|
+import { getContractImages } from "@/api/modules/licenseManagement";
|
|
|
|
|
|
interface ContractItem {
|
|
|
id: string;
|
|
|
@@ -127,7 +126,7 @@ interface ChangeRecordItem {
|
|
|
rejectionReason?: string;
|
|
|
}
|
|
|
|
|
|
-const contractList = ref<ContractItem[]>([]);
|
|
|
+const contractList = ref<any>([]);
|
|
|
const replaceDialogVisible = ref(false);
|
|
|
const cancelConfirmVisible = ref(false);
|
|
|
const changeRecordDialogVisible = ref(false);
|
|
|
@@ -137,19 +136,19 @@ const currentRecordDate = ref("2025.08.01 10:29");
|
|
|
const changeRecordList = ref<ChangeRecordItem[]>([]);
|
|
|
const rejectionReason = ref("");
|
|
|
|
|
|
+const id = localGet("createdId");
|
|
|
+
|
|
|
onMounted(async () => {
|
|
|
await initData();
|
|
|
});
|
|
|
|
|
|
const initData = async () => {
|
|
|
- try {
|
|
|
- // TODO: 调用API获取合同图片列表
|
|
|
- // const response = await getContractImages();
|
|
|
- // if (response.code === 200) {
|
|
|
- // contractList.value = response.data;
|
|
|
- // }
|
|
|
- } catch (error) {
|
|
|
- ElMessage.error("获取合同图片失败");
|
|
|
+ const params = {
|
|
|
+ id: id
|
|
|
+ };
|
|
|
+ const res = await getContractImages(params);
|
|
|
+ if (res.code === 200) {
|
|
|
+ contractList.value = res.data;
|
|
|
}
|
|
|
};
|
|
|
|
|
|
@@ -298,15 +297,14 @@ const getStatusText = (status: string) => {
|
|
|
}
|
|
|
.content-section {
|
|
|
display: flex;
|
|
|
- gap: 20px;
|
|
|
- align-items: flex-start;
|
|
|
+ gap: 50px;
|
|
|
+ align-items: center;
|
|
|
justify-content: space-between;
|
|
|
- margin-bottom: 30px;
|
|
|
+ margin-top: 20px;
|
|
|
+ margin-bottom: 50px;
|
|
|
}
|
|
|
.tip-text {
|
|
|
- flex: 1;
|
|
|
- font-size: 14px;
|
|
|
- line-height: 1.6;
|
|
|
+ font-size: 18px;
|
|
|
color: var(--el-text-color-regular);
|
|
|
}
|
|
|
.action-buttons {
|
|
|
@@ -316,6 +314,7 @@ const getStatusText = (status: string) => {
|
|
|
}
|
|
|
.contract-container {
|
|
|
width: 100%;
|
|
|
+ min-height: 570px;
|
|
|
padding: 20px;
|
|
|
background-color: var(--el-bg-color-page);
|
|
|
border-radius: 8px;
|