Commit bab20963 by chenwq

fix: 修复积分列表和用户详情页的显示问题

修复积分列表页表头根据渠道显示不同标签的问题
修复用户详情页员工名称显示问题
修正售后返回的文案为售后返还
设置storeCredit/add.vue中personType的默认值
1 parent bd384c2e
......@@ -137,6 +137,10 @@ export default {
}
},
mounted() {
this.tableParams.tableColumns[1].label = this.channelSource == '1' ? '员工名称' : '客户名称'
this.tableParams.tableColumns[2].label = this.channelSource == '1' ? '员工手机号' : '客户手机号'
this.showFormData[0].label = this.channelSource == '1' ? '员工名称' : '客户名称'
this.showFormData[1].label = this.channelSource == '1' ? '员工手机号' : '客户手机号'
this.$apis.points.getShopMerchantList({}).then((res) => {
this.baseData.merchantServiceList = res
this.getOptionsList()
......@@ -165,6 +169,7 @@ export default {
merchantId: row.merchantId,
staffPhone: row.staffPhone
}),
staffName: row.staffName,
channelSource: this.channelSource
}
} else {
......@@ -172,6 +177,7 @@ export default {
searchObj: JSON.stringify({
staffId: row.staffId
}),
staffName: row.staffName,
channelSource: this.channelSource
}
}
......
......@@ -9,7 +9,7 @@
<div>
<div>{{ item.title }}</div>
<div class="num">
{{ topPointsInfo[item.key] || topPointsInfo[item.key] == 0 ? topPointsInfo[item.key] : "--" }}
{{ item.key == 'staffName' ? staffName : topPointsInfo[item.key] || topPointsInfo[item.key] == 0 ? topPointsInfo[item.key] : "--" }}
</div>
</div>
</div>
......@@ -125,8 +125,8 @@ export default {
confLabel: "撤销抵扣"
},
{
confId: "售后返回",
confLabel: "售后返回"
confId: "售后返还",
confLabel: "售后返还"
},
{
confId: "购物兑换",
......@@ -190,6 +190,7 @@ export default {
created() {
// 积分渠道,1.阳光激励 2.续保用户 3.管理层
this.channelSource = this.$route.query.channelSource
this.staffName = this.$route.query.staffName
},
methods: {
//新增抵扣
......
......@@ -33,7 +33,7 @@
</template>
</template>
<template #table>
<el-radio-group :disabled="isWatchPage" v-model="configForm.personType">
<el-radio-group :disabled="pageObject.id" v-model="configForm.personType">
<el-radio v-for="(item, idx) in baseData.personTypeList" :key="idx" :label="item.confId">{{ item.confLabel }}</el-radio>
</el-radio-group>
<div class="upload">
......@@ -198,9 +198,10 @@ export default {
}
}],
personType: [{ required: true, message: '请选择用户类型', trigger: 'change' }],
},
configForm: {},
configForm: {
personType: 1
},
formData: [
{
label: '选择商户',
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!