Commit 61200da7 by 杨北旺

提交售中的代码

1 parent 875a82f2
......@@ -54,6 +54,9 @@ export default {
},
formatter: () => {
let temp = this.priceFormat(res.afterSaleUnitPrice)
if(!temp){
return
}
return `售后代运营新增产值:约${temp || 0}/年\n\n {color|累计3年可触达用户-渗透率:${res.afterSalePermeabilityString}}`
}
}
......@@ -71,6 +74,9 @@ export default {
},
formatter: () => {
let temp = this.priceFormat(res.onSaleUnitPrice)
if(!temp){
return
}
return `售中新品新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.onSalePermeabilityString}}`
}
}
......@@ -88,6 +94,9 @@ export default {
},
formatter: () => {
let temp = this.priceFormat(res.preSaleUnitPrice)
if(!temp){
return
}
return `售前权益新增产值:约${temp || 0}/年\n\n {color|渗透率:${res.preSalePermeabilityString}}`
}
}
......@@ -116,7 +125,8 @@ export default {
res.onSaleUnitPrice = newval.onSaleUnitPrice
res.afterSaleUnitPrice = newval.afterSaleUnitPrice
}
this.getOptions(res)
// this.getOptions(res)
this.computeProduct(0,1)
})
},
computeProduct(num1, num2) {
......@@ -126,7 +136,6 @@ export default {
let inSale = num1 * 12 * onSalePermeability * onSaleUnitPrice
let afterSale = num1 * 12 * 3 * afterSalePermeability * afterSaleUnitPrice
let totalValue = beforeSale + inSale + afterSale
console.log(totalValue);
let singleStoreValue = totalValue / num2
let totalProduct = this.priceFormat(totalValue)
let singleProduct = this.priceFormat(singleStoreValue)
......
......@@ -8,7 +8,7 @@
<div v-if="updateTime" class="drive_line"></div>
<div class="content_wrap">
<div class="time_widget">
<span class="h11_title">生效时间:{{ updateTime ? effectTime : settleRultData.updatedDate }}</span>
<span class="h11_title">生效时间:{{ updateTime ? effectTime : effectStartDate }}</span>
<div v-if="updateTime" class="time_status">待生效</div>
<div v-else class="time_status">已生效</div>
</div>
......@@ -136,6 +136,7 @@ import { getRulesData, getRulesListData } from '../../api/modules/rules'
import ruleTable from './ruleTable.vue'
import utils from '../../util/util'
import qrCode from '../../components/qr-code/index.vue'
import util from '../../util/util'
export default {
name: '',
components: {
......@@ -161,7 +162,8 @@ export default {
noList: 2,
nodataHeight: 460,
stepHeight: 288,
pickerOptions:{}
pickerOptions:{},
effectStartDate:''
}
},
created(){
......@@ -228,6 +230,10 @@ export default {
this.effectTime = utils.dateFormat(temp)
}
this.divisionRuleData = this.handleMoneyShow(this.divisionRuleData)
this.effectStartDate = this.settleRultData.updatedDate
if(res.effectRecord){
this.effectStartDate = utils.dateFormat(res.effectRecord.effectStartDate)
}
})
},
// 处理分账金额显示
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!