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 @@ ...@@ -13,6 +13,7 @@
> >
<slot /> <slot />
<div slot="footer" class="dialog-footer" v-if="config.isShowFooter"> <div slot="footer" class="dialog-footer" v-if="config.isShowFooter">
<slot name="footerCustom" />
<el-button v-preventReClick @click="cancelBtn"> <el-button v-preventReClick @click="cancelBtn">
{{ config.cancel_name }} {{ config.cancel_name }}
</el-button> </el-button>
...@@ -195,6 +196,7 @@ export default { ...@@ -195,6 +196,7 @@ export default {
.dialog-footer { .dialog-footer {
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
padding-top: 14px; padding-top: 14px;
position: relative;
} }
} }
</style> </style>
...@@ -36,6 +36,13 @@ ...@@ -36,6 +36,13 @@
</div> </div>
</div> </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> </baseDialog>
</template> </template>
...@@ -128,7 +135,7 @@ export default { ...@@ -128,7 +135,7 @@ export default {
dialogConfig: { dialogConfig: {
config: { config: {
title: "发起业务交接", title: "发起业务交接",
width: "1080px" width: "1200px"
} }
}, },
loading: true, loading: true,
...@@ -249,8 +256,10 @@ export default { ...@@ -249,8 +256,10 @@ export default {
} }
.content { .content {
.step-img { .step-img {
display: block;
width: 1040px; width: 1040px;
height: 103px; height: 103px;
margin: 0 auto;
} }
} }
...@@ -300,5 +309,19 @@ export default { ...@@ -300,5 +309,19 @@ export default {
.hide { .hide {
min-height: 0 !important; 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> </style>
...@@ -55,11 +55,7 @@ ...@@ -55,11 +55,7 @@
</template> </template>
</template> </template>
</d2-table> </d2-table>
<template v-if="showAgree"> <div class="block"></div>
<div class="agree-box">
<el-checkbox v-model="agree">我确认以上已上传的凭证真实有效,并知晓系统将同步变更拍卖平台上的交付人信息。</el-checkbox>
</div>
</template>
<el-image-viewer <el-image-viewer
v-if="imgViewerVisible" v-if="imgViewerVisible"
:on-close="closeImgViewer" :on-close="closeImgViewer"
...@@ -137,7 +133,7 @@ export default { ...@@ -137,7 +133,7 @@ export default {
agree: false, agree: false,
listData: [], listData: [],
currentIndex: 0, currentIndex: 0,
currentImgUrls:[] currentImgUrls: []
} }
}, },
computed: { computed: {
...@@ -223,7 +219,7 @@ export default { ...@@ -223,7 +219,7 @@ export default {
let type = this.getFileTypeFromUrl(url) let type = this.getFileTypeFromUrl(url)
if (type === 'image') { if (type === 'image') {
const urls = list.filter(i => this.getFileTypeFromUrl(i) == '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.currentImgUrls = urls
this.currentIndex = index this.currentIndex = index
this.imgViewerVisible = true this.imgViewerVisible = true
...@@ -251,16 +247,6 @@ export default { ...@@ -251,16 +247,6 @@ export default {
font-weight: 500; font-weight: 500;
line-height: 50px; 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 { .upload {
position: relative; position: relative;
.import-input { .import-input {
...@@ -291,4 +277,7 @@ export default { ...@@ -291,4 +277,7 @@ export default {
color: #fff; color: #fff;
} }
} }
.block {
height: 24px;
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -57,7 +57,10 @@ ...@@ -57,7 +57,10 @@
:visible.sync="detailVisible" :visible.sync="detailVisible"
:params-obj="detailParams" :params-obj="detailParams"
/> />
<addHandover :visible.sync="addHandoverVisible" @refresh="refreshTable" /> <addHandover
:visible.sync="addHandoverVisible"
@refresh="refreshTable"
/>
</d2-container> </d2-container>
</template> </template>
...@@ -127,12 +130,18 @@ export default { ...@@ -127,12 +130,18 @@ export default {
{ {
label: "原责任人 (离职)", label: "原责任人 (离职)",
prop: "originalUserName", prop: "originalUserName",
minWidth: 176 minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.originalUserName || '-'}/${cellValue.originalMerchantName || '-'}`
}
}, },
{ {
label: "新接收人", label: "新接收人",
prop: "newUserName", prop: "newUserName",
minWidth: 176 minWidth: 176,
formatter: (cellValue) => {
return `${cellValue.newUserName || '-'}/${cellValue.newMerchantName || '-'}`
}
}, },
{ {
label: "交接资产数/辆", label: "交接资产数/辆",
...@@ -187,11 +196,11 @@ export default { ...@@ -187,11 +196,11 @@ export default {
this.detailVisible = true this.detailVisible = true
this.detailParams = e this.detailParams = e
}, },
handleAddHandover(){ handleAddHandover () {
this.addHandoverVisible = true this.addHandoverVisible = true
}, },
refreshTable(){ refreshTable () {
this.$refs.quitAndHandoverTable.refreshTable(true, true) 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!