Commit e0dbc8f4 by 李伟康

```

feat(baseDialog): 添加footerCustom插槽支持

添加footerCustom插槽以便在对话框底部自定义内容,
同时为dialog-footer添加相对定位样式以支持绝对定位的元素。

feat(addHandover): 优化业务交接组件UI和交互

调整对话框宽度从1080px到1200px,添加同意确认复选框到footerCustom插槽,
居中显示步骤图片并添加相关样式,优化组件布局。

refactor(quitAndHandover): 重构交接组件代码结构

将同意确认框从step-2.vue移至addHandover组件的footerCustom插槽,
统一管理确认逻辑,清理冗余样式代码,优化代码结构。

feat(quitAndHandover): 增加责任人显示格式化

为原责任人和新接收人列添加格式化器,显示姓名和商户名的组合信息,
优化handleAddHandover和refreshTable方法的代码格式。
```
1 parent c940ec3d
......@@ -13,6 +13,7 @@
>
<slot />
<div slot="footer" class="dialog-footer" v-if="config.isShowFooter">
<slot name="footerCustom" />
<el-button v-preventReClick @click="cancelBtn">
{{ config.cancel_name }}
</el-button>
......@@ -195,6 +196,7 @@ export default {
.dialog-footer {
border-top: 1px solid #e5e5e5;
padding-top: 14px;
position: relative;
}
}
</style>
......@@ -36,6 +36,13 @@
</div>
</div>
</div>
<template #footerCustom>
<template v-if="step == 2 && step2Ref.showAgree">
<div class="agree-box">
<el-checkbox v-model="step2Ref.agree">我确认以上已上传的凭证真实有效,并知晓系统将同步变更拍卖平台上的交付人信息。</el-checkbox>
</div>
</template>
</template>
</baseDialog>
</template>
......@@ -128,7 +135,7 @@ export default {
dialogConfig: {
config: {
title: "发起业务交接",
width: "1080px"
width: "1200px"
}
},
loading: true,
......@@ -249,8 +256,10 @@ export default {
}
.content {
.step-img {
display: block;
width: 1040px;
height: 103px;
margin: 0 auto;
}
}
......@@ -300,5 +309,19 @@ export default {
.hide {
min-height: 0 !important;
}
.agree-box {
position: absolute;
top: 10px;
left: 0;
display: flex;
align-items: center;
height: 36px;
color: #666666;
font-size: 14px;
::v-deep.el-checkbox__label {
color: #666666;
}
}
}
</style>
......@@ -55,11 +55,7 @@
</template>
</template>
</d2-table>
<template v-if="showAgree">
<div class="agree-box">
<el-checkbox v-model="agree">我确认以上已上传的凭证真实有效,并知晓系统将同步变更拍卖平台上的交付人信息。</el-checkbox>
</div>
</template>
<div class="block"></div>
<el-image-viewer
v-if="imgViewerVisible"
:on-close="closeImgViewer"
......@@ -137,7 +133,7 @@ export default {
agree: false,
listData: [],
currentIndex: 0,
currentImgUrls:[]
currentImgUrls: []
}
},
computed: {
......@@ -223,7 +219,7 @@ export default {
let type = this.getFileTypeFromUrl(url)
if (type === 'image') {
const urls = list.filter(i => this.getFileTypeFromUrl(i) == 'image'),
index = urls.findIndex(i => i === url)
index = urls.findIndex(i => i === url)
this.currentImgUrls = urls
this.currentIndex = index
this.imgViewerVisible = true
......@@ -251,16 +247,6 @@ export default {
font-weight: 500;
line-height: 50px;
}
.agree-box {
display: flex;
align-items: center;
height: 52px;
color: #666666;
font-size: 14px;
::v-deep.el-checkbox__label {
color: #666666;
}
}
.upload {
position: relative;
.import-input {
......@@ -291,4 +277,7 @@ export default {
color: #fff;
}
}
.block {
height: 24px;
}
</style>
\ No newline at end of file
......@@ -57,7 +57,10 @@
:visible.sync="detailVisible"
:params-obj="detailParams"
/>
<addHandover :visible.sync="addHandoverVisible" @refresh="refreshTable" />
<addHandover
:visible.sync="addHandoverVisible"
@refresh="refreshTable"
/>
</d2-container>
</template>
......@@ -127,12 +130,18 @@ export default {
{
label: "原责任人 (离职)",
prop: "originalUserName",
minWidth: 176
minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.originalUserName || '-'}/${cellValue.originalMerchantName || '-'}`
}
},
{
label: "新接收人",
prop: "newUserName",
minWidth: 176
minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.newUserName || '-'}/${cellValue.newMerchantName || '-'}`
}
},
{
label: "交接资产数/辆",
......@@ -187,11 +196,11 @@ export default {
this.detailVisible = true
this.detailParams = e
},
handleAddHandover(){
handleAddHandover () {
this.addHandoverVisible = true
},
refreshTable(){
this.$refs.quitAndHandoverTable.refreshTable(true, true)
refreshTable () {
this.$refs.quitAndHandoverTable.refreshTable(true, true)
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!