MK公开页、预结算体验优化、地图选址与认证密码规则完善

This commit is contained in:
2026-09-22 12:06:48 +08:00
parent 57368f0179
commit ac87208ba9
41 changed files with 1882 additions and 391 deletions
+69 -13
View File
@@ -99,13 +99,25 @@
<el-table :data="attachmentRows" border @selection-change="selectedAttachments = $event">
<el-table-column type="selection" width="55" align="center" />
<el-table-column type="index" label="序号" width="70" align="center" />
<el-table-column label="文件名" min-width="240" show-overflow-tooltip>
<el-table-column label="文件名" min-width="240" show-overflow-tooltip>
<template #default="{ row }">
<el-link type="primary" @click="previewAttachment(row)">
{{ attachmentName(row) }}
</el-link>
</template>
</el-table-column>
<el-table-column label="附件描述" min-width="220">
<template #default="{ row }">
<span v-if="dialogReadonly">{{ row.description || '-' }}</span>
<el-input
v-else
v-model="row.description"
maxlength="200"
placeholder="请输入"
@input="syncAttachmentsJson"
/>
</template>
</el-table-column>
<el-table-column label="文件大小" width="120" align="center">
<template #default="{ row }">{{ formatFileSize(row.size) }}</template>
</el-table-column>
@@ -172,7 +184,7 @@
title="查看临时额度申请"
append-to-body
destroy-on-close
width="96%"
width="1100px"
class="temporary-credit-limit-dialog temporary-credit-limit-detail-dialog"
>
<div v-loading="detailLoading" class="business-crud-page__detail-content">
@@ -204,13 +216,16 @@
</div>
<el-table :data="attachmentRows" empty-text="暂无附件">
<el-table-column type="index" label="序号" width="70" align="center" />
<el-table-column label="文件名" min-width="240" show-overflow-tooltip>
<el-table-column label="文件名" min-width="240" show-overflow-tooltip>
<template #default="{ row }">
<el-link type="primary" @click="previewAttachment(row)">
{{ attachmentName(row) }}
</el-link>
</template>
</el-table-column>
<el-table-column label="附件描述" min-width="220" show-overflow-tooltip>
<template #default="{ row }">{{ row.description || '-' }}</template>
</el-table-column>
<el-table-column label="文件大小" width="120" align="center">
<template #default="{ row }">{{ formatFileSize(row.size) }}</template>
</el-table-column>
@@ -783,24 +798,37 @@ export default {
const uploadTime = this.$dayjs().format('YYYY-MM-DD HH:mm:ss');
this.attachmentRows = (list || []).map(item => ({
...item,
description: item.description || '',
uploadUserName: item.uploadUserName || uploadUserName,
uploadTime: item.uploadTime || uploadTime,
}));
this.form.attachmentsJson = JSON.stringify(this.attachmentRows);
this.syncAttachmentsJson();
},
removeAttachment(index) {
this.attachmentRows.splice(index, 1);
this.form.attachmentsJson = JSON.stringify(this.attachmentRows);
this.syncAttachmentsJson();
},
syncAttachmentsJson() {
this.form.attachmentsJson = JSON.stringify(this.attachmentRows || []);
},
parseJsonArray(value) {
if (Array.isArray(value)) return value;
if (!value) return [];
try {
const data = JSON.parse(value);
return Array.isArray(data) ? data : [];
} catch (error) {
let list = [];
if (Array.isArray(value)) {
list = value;
} else if (!value) {
return [];
} else {
try {
const data = JSON.parse(value);
list = Array.isArray(data) ? data : [];
} catch (error) {
return [];
}
}
return list.map(item => ({
...item,
description: item?.description || '',
}));
},
attachmentName(row = {}) {
return row.originalName || row.name || row.fileName || '附件';
@@ -907,6 +935,7 @@ export default {
.temporary-credit-limit-page {
&__field {
width: 100%;
max-width: 240px;
}
&__attachment-head {
@@ -993,7 +1022,7 @@ export default {
align-items: center;
gap: 8px;
width: 100%;
padding: 14px 16px 4px;
padding: 14px 0 4px;
margin-bottom: 0;
color: #303133;
font-size: 15px;
@@ -1086,9 +1115,36 @@ export default {
background: transparent !important;
box-shadow: none !important;
margin: 0 !important;
padding: 0 !important;
padding: 0 16px 8px !important;
border-radius: 0 !important;
}
// 新增/编辑:控件限宽,避免宽屏下撑满列宽贴到弹窗右边缘
&:not(.temporary-credit-limit-detail-dialog) {
.el-form-item__content {
min-width: 0;
}
.el-form-item__content > .el-input,
.el-form-item__content > .el-select,
.el-form-item__content > .el-date-editor,
.el-form-item__content > .el-cascader,
.el-form-item__content > .el-textarea,
.temporary-credit-limit-page__field {
width: 100%;
max-width: 240px;
}
.el-form-item__content > .el-textarea {
max-width: 100%;
}
.el-date-editor.el-input,
.el-date-editor.el-input__wrapper {
width: 100%;
max-width: 240px;
}
}
}
.temporary-credit-limit-dialog .business-crud-page__detail-content .el-descriptions__label {