Commit 62180457 by 李伟康

fix(payment): 修复分账表格中父级名称显示问题

- 移除表格列固定属性以优化布局
- 添加parentName属性传递到SplitPaymentTable组件
- 更新商户类型映射逻辑,对类型3使用parentName字段
- 在StepThreeForm中传入实际店铺商户名称
- 移除不必要的z-index样式设置
- 移除下拉框可见性变化事件监听
1 parent bbbc49a0
......@@ -2,7 +2,7 @@
<div class="split-payment-table">
<el-table :data="tableRows" border style="width: 100%">
<!-- 业务对象/费用类目列 -->
<el-table-column prop="merchantTypeName" label="业务对象/费用类目" width="180" fixed="left" />
<el-table-column prop="merchantTypeName" label="业务对象/费用类目" width="180" />
<!-- 动态生成的费用列 -->
<el-table-column v-for="(item, index) in componentData" :key="'col-' + item.expenseCategoryId + '-' + index"
......@@ -35,6 +35,7 @@ export default {
shelfType: Number,
currentTrafficParty: Object,
trafficParty: Array,
parentName: String,
},
data() {
return {
......@@ -49,7 +50,6 @@ export default {
nameMap: {
1: 'signingEntity',
2: 'partnerName',
3: 'parentName',
5: 'serviceMerchant2fName'
},
// expenseCategoryId 枚举映射
......@@ -86,7 +86,7 @@ export default {
tableRows() {
const rows = [],
{ currentTrafficParty, shelfType, nameMap, trafficParty } = this
{ currentTrafficParty, shelfType, nameMap, trafficParty ,parentName} = this
// 固定的业务对象类型(平台方、服务商、4s店)
const fixedMerchantTypes = [1, 2, 3]
let hasService2 = trafficParty.some(item => item.serviceMerchant2fId)
......@@ -94,7 +94,7 @@ export default {
fixedMerchantTypes.forEach(type => {
let merchantTypeName = this.merchantTypeMap[type] || ''
if (shelfType == 1) {
merchantTypeName = `${merchantTypeName}:${currentTrafficParty[nameMap[type]] || ''}`
merchantTypeName = `${merchantTypeName}:${type == 3 ? parentName : currentTrafficParty[nameMap[type]] || ''}`
}
const row = {
targetMerchantType: type,
......
......@@ -53,7 +53,7 @@
<template v-if="item.htmlName == 'table'">
<SplitPaymentTable :data="componentData.productCategoryRules[productCategoryIndex][item.key]"
:isViewMode="isViewMode" :shelfType="shelfType" :currentTrafficParty="currentTrafficParty"
:trafficParty="trafficParty" @change="change($event, item)">
:trafficParty="trafficParty" @change="change($event, item)" :parentName="componentData.autoDivideConfig.realityShopMerchantName">
</SplitPaymentTable>
</template>
</template>
......@@ -432,7 +432,6 @@ export default {
.step-title {
gap: 16px;
margin-bottom: 20px;
z-index: 4 !important;
}
.form-box {
......
......@@ -17,7 +17,7 @@
</template>
<template v-else-if="i.type == 'select'">
<el-select v-model="componentData[i.key]" class="select" :placeholder="`请选择${i.label}`"
:filterable="i.filterable" @change="selectionChange" @visible-change="visibleChange">
:filterable="i.filterable" @change="selectionChange" >
<el-option v-for="item in options" :key="item.metricCode" :label="item.metricName"
:value="item.metricCode" :filterable="i.filterable" :disabled="includesList.includes(item.metricCode)" />
</el-select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!