Commit 449e9cdd by wuwx

修复第一轮bug

1 parent 217fd530
...@@ -697,7 +697,7 @@ ...@@ -697,7 +697,7 @@
<el-input v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px;height:32px;" placeholder="请输入"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="转化率" prop="noteTouchConversionRate" labelWidth="50px" style="margin: 0px 8px 0px 0px;"> <el-form-item label="转化率" prop="noteTouchConversionRate" labelWidth="50px" style="margin: 0px 8px 0px 0px;">
<el-input v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px;height:32px;" placeholder="请输入"></el-input> <el-input v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px;height:32px;" readonly></el-input>
</el-form-item> </el-form-item>
</div> </div>
</el-tab-pane> </el-tab-pane>
...@@ -1422,7 +1422,7 @@ export default { ...@@ -1422,7 +1422,7 @@ export default {
addHtml: 'activityMusic' addHtml: 'activityMusic'
}, },
{ {
label: '预估销量/元', label: '预估产值',
name: 'predictVolume', name: 'predictVolume',
type: 'input', type: 'input',
maxlength: 20, maxlength: 20,
...@@ -1664,8 +1664,8 @@ export default { ...@@ -1664,8 +1664,8 @@ export default {
this.editFormData[idx].isHide = false this.editFormData[idx].isHide = false
} }
}, },
'editForm.activityActionReport.noteTouchConversionRate'(newValue, oldValue) { 'editForm.targetStock'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchConversionRate = limitPrice(newValue, oldValue, 99999, 2, 0) this.editForm.targetStock = limitPrice(newValue, oldValue, 99999, 0)
}, },
'editForm.activityActionReport.noteTouchCustomerCount'(newValue, oldValue) { 'editForm.activityActionReport.noteTouchCustomerCount'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchCustomerCount = limitPrice(newValue, oldValue, 99999, 0) this.editForm.activityActionReport.noteTouchCustomerCount = limitPrice(newValue, oldValue, 99999, 0)
...@@ -1673,6 +1673,9 @@ export default { ...@@ -1673,6 +1673,9 @@ export default {
'editForm.activityActionReport.noteTouchVisitorCount'(newValue, oldValue) { 'editForm.activityActionReport.noteTouchVisitorCount'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchVisitorCount = limitPrice(newValue, oldValue, 99999, 0) this.editForm.activityActionReport.noteTouchVisitorCount = limitPrice(newValue, oldValue, 99999, 0)
}, },
'editForm.activityActionReport.noteTouchOrderCount'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchOrderCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.signMerchantVisitorCount'(newValue, oldValue) { 'editForm.activityActionReport.signMerchantVisitorCount'(newValue, oldValue) {
this.editForm.activityActionReport.signMerchantVisitorCount = limitPrice(newValue, oldValue, 99999, 0) this.editForm.activityActionReport.signMerchantVisitorCount = limitPrice(newValue, oldValue, 99999, 0)
}, },
...@@ -1681,6 +1684,12 @@ export default { ...@@ -1681,6 +1684,12 @@ export default {
}, },
'editForm.activityActionReport.signMerchantBrowseCount'(newValue, oldValue) { 'editForm.activityActionReport.signMerchantBrowseCount'(newValue, oldValue) {
this.editForm.activityActionReport.signMerchantBrowseCount = limitPrice(newValue, oldValue, 99999, 0) this.editForm.activityActionReport.signMerchantBrowseCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.signMerchantOrderCount'(newValue, oldValue) {
this.editForm.activityActionReport.signMerchantOrderCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.signMerchantProduceCount'(newValue, oldValue) {
this.editForm.activityActionReport.signMerchantProduceCount = limitPrice(newValue, oldValue, 99999, 2, 0)
} }
}, },
...@@ -2297,10 +2306,6 @@ export default { ...@@ -2297,10 +2306,6 @@ export default {
if (param.activityActionReport.signMerchantProduceCount) { if (param.activityActionReport.signMerchantProduceCount) {
param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0) param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0)
} }
// 转化率(已结束战报)
if (param.activityActionReport.noteTouchConversionRate) {
param.activityActionReport.noteTouchConversionRate = (this.editForm.activityActionReport.noteTouchConversionRate * 100).toFixed(0)
}
// 判断目标客户数与访客数 // 判断目标客户数与访客数
if (param.activityActionReport.noteTouchCustomerCount && param.activityActionReport.noteTouchVisitorCount) { if (param.activityActionReport.noteTouchCustomerCount && param.activityActionReport.noteTouchVisitorCount) {
if (param.activityActionReport.noteTouchCustomerCount < param.activityActionReport.noteTouchVisitorCount) { if (param.activityActionReport.noteTouchCustomerCount < param.activityActionReport.noteTouchVisitorCount) {
...@@ -2325,6 +2330,12 @@ export default { ...@@ -2325,6 +2330,12 @@ export default {
return return
} }
} }
// 已结束战报转化率计算
param.activityActionReport.noteTouchConversionRate = ""
if (param.activityActionReport.noteTouchVisitorCount && param.activityActionReport.noteTouchOrderCount) {
let val = param.activityActionReport.noteTouchOrderCount / param.activityActionReport.noteTouchVisitorCount
param.activityActionReport.noteTouchConversionRate = (val * 100).toFixed(0)
}
delete param.liveFlag delete param.liveFlag
return param return param
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!