Commit 8cb4611f by 李伟康

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

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