Commit 8cb4611f by 李伟康

fix(sales): 修复支付表格点击区域和兜底条件显示问题

- 修复SplitPaymentTable组件中单选框点击区域样式问题
- 添加radio-item容器元素以改善点击交互体验
- 移除不必要的cursor样式和console.log调试代码
- 修复BottomLineCondition组件中兜底条件显示逻辑错误
- 确保只有当数据为1时才显示兜底条件内容
1 parent 221b54c0
......@@ -8,11 +8,12 @@
<el-table-column v-for="(item, index) in componentData" :key="'col-' + item.expenseCategoryId + '-' + index"
:label="getExpenseName(item.expenseCategoryId)" align="center">
<template slot-scope="{ row }">
<span class="radio-wrapper"
:class="[{ 'is-checked': getSelectedValue(item.expenseCategoryId) === row.targetMerchantType }, { 'disabled': isViewMode }]"
@click.stop="handleRadioChange(row, item, index)">
<i class="radio"></i>
</span>
<div class="radio-item" @click.stop="handleRadioChange(row, item, index)">
<span class="radio-wrapper"
:class="[{ 'is-checked': getSelectedValue(item.expenseCategoryId) === row.targetMerchantType }, { 'disabled': isViewMode }]">
<i class="radio"></i>
</span>
</div>
</template>
</el-table-column>
</el-table>
......@@ -183,7 +184,14 @@ export default {
}
}
::v-deep .el-table__body-wrapper {}
.radio-item {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
padding: 18px 0;
cursor: pointer;
}
.radio-wrapper {
display: block;
......@@ -192,7 +200,7 @@ export default {
height: 12px;
border-radius: 50%;
border: 1px solid #dcdfe6;
cursor: pointer;
transition: all 0.3s;
margin: 0 auto;
......
......@@ -366,7 +366,6 @@ export default {
}, item) {
let data = this.componentData.productCategoryRules[this.productCategoryIndex][item.key]
data[index].targetMerchantType = targetMerchantType
console.log(data)
this.$set(this.componentData.productCategoryRules[this.productCategoryIndex], item.key, data)
},
validate(callback) {
......
......@@ -5,39 +5,41 @@
1: '是',
0: '否'
}[data] }}
<div class="condition-box-view">
<template v-for="(item, index) in guaranteeConfigs">
<div class="block" :key="index">
<div class="item">
<div class="item-label">兜底标准:</div>
<div class="item-value">{{ metricName(item) }}</div>
</div>
<div class="item">
<div class="item-label">赔付标准:</div>
<div class="item-value">
<template v-if="item.guaranteeIndex">
<template v-if="item.compensationMode == 0">无</template>
<template v-else>
<template v-if="item.compensationMode == 1">
固定模式
<div class="text">差距订单数每单赔付{{ item.guaranteeStandard }}元</div>
</template>
<template v-if="data == 1">
<div class="condition-box-view">
<template v-for="(item, index) in guaranteeConfigs">
<div class="block" :key="index">
<div class="item">
<div class="item-label">兜底标准:</div>
<div class="item-value">{{ metricName(item) }}</div>
</div>
<div class="item">
<div class="item-label">赔付标准:</div>
<div class="item-value">
<template v-if="item.guaranteeIndex">
<template v-if="item.compensationMode == 0">无</template>
<template v-else>
阶梯模式
<template v-for="(i, ind) in formatGuaranteeConfigs(item.ladderConditions)">
<div class="text" :key="`i-${ind}`">
<span v-html="formatGuaranteeItem(i, item)"></span>
</div>
<template v-if="item.compensationMode == 1">
固定模式
<div class="text">差距订单数每单赔付{{ item.guaranteeStandard }}元</div>
</template>
<template v-else>
阶梯模式
<template v-for="(i, ind) in formatGuaranteeConfigs(item.ladderConditions)">
<div class="text" :key="`i-${ind}`">
<span v-html="formatGuaranteeItem(i, item)"></span>
</div>
</template>
</template>
</template>
</template>
</template>
<template v-else>-</template>
<template v-else>-</template>
</div>
</div>
</div>
</div>
</template>
</div>
</template>
</div>
</template>
</template>
<template v-else>
<el-radio-group v-model="data" @change="changeData">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!