Commit 7c40ae4e by 王志慧

fixed

1 parent c1753a4f
......@@ -213,6 +213,14 @@ const memberTypeList = [
{
confId: 2,
confName: '试用会员'
},
{
confId: 3,
confName: '金卡会员'
},
{
confId: 4,
confName: '银卡会员'
}
]
const stateList = [
......
......@@ -583,16 +583,6 @@ export default {
return str
},
addMemberTypeList() {
this.baseData.memberTypeList.push(
{
confId: 3,
confName: '金卡会员'
},
{
confId: 4,
confName: '银卡会员'
}
)
this.baseData.memberTypeLists.push(
{
dictValue: 3,
......
......@@ -86,10 +86,10 @@ export default {
handleRates() {
const {marketingCustomerCount, reachCustomerCount, potentialCustomerCount, dealCustomerCount} = this.list
this.rates.reachRate = parseFloat(((reachCustomerCount / marketingCustomerCount) * 100).toFixed(2))
this.rates.reachRate = !marketingCustomerCount ? '-' : parseFloat(((reachCustomerCount / marketingCustomerCount) * 100).toFixed(2))
this.rates.percentConversion
= parseFloat(((potentialCustomerCount / reachCustomerCount)*100).toFixed(2))
this.rates.turnoverRatio = parseFloat(((dealCustomerCount / potentialCustomerCount)*100).toFixed(2))
= !reachCustomerCount ? '-' : parseFloat(((potentialCustomerCount / reachCustomerCount) * 100).toFixed(2))
this.rates.turnoverRatio = !potentialCustomerCount ? '-' : parseFloat(((dealCustomerCount / potentialCustomerCount) * 100).toFixed(2))
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!