Commit fbb1b568 by 前端

Merge branch 'v3.5.0' into 'master'

合并V3.5.0

See merge request !2
2 parents 5aa352da 9d49c9ac
...@@ -1888,6 +1888,51 @@ ...@@ -1888,6 +1888,51 @@
"integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==",
"dev": true "dev": true
}, },
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"ssri": { "ssri": {
"version": "8.0.1", "version": "8.0.1",
"resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz",
...@@ -1896,6 +1941,28 @@ ...@@ -1896,6 +1941,28 @@
"requires": { "requires": {
"minipass": "^3.1.1" "minipass": "^3.1.1"
} }
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
},
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
}
} }
} }
}, },
...@@ -13267,75 +13334,6 @@ ...@@ -13267,75 +13334,6 @@
} }
} }
}, },
"vue-loader-v16": {
"version": "npm:vue-loader@16.8.3",
"resolved": "https://registry.npmjs.org/vue-loader/-/vue-loader-16.8.3.tgz",
"integrity": "sha512-7vKN45IxsKxe5GcVCbc2qFU5aWzyiLrYJyUuMz4BQLKctCj/fmCa0w6fGiiQ2cLFetNcek1ppGJQDCup0c1hpA==",
"dev": true,
"optional": true,
"requires": {
"chalk": "^4.1.0",
"hash-sum": "^2.0.0",
"loader-utils": "^2.0.0"
},
"dependencies": {
"ansi-styles": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",
"integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",
"dev": true,
"optional": true,
"requires": {
"color-convert": "^2.0.1"
}
},
"chalk": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",
"integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",
"dev": true,
"optional": true,
"requires": {
"ansi-styles": "^4.1.0",
"supports-color": "^7.1.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
"integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",
"dev": true,
"optional": true,
"requires": {
"color-name": "~1.1.4"
}
},
"color-name": {
"version": "1.1.4",
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",
"integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",
"dev": true,
"optional": true
},
"has-flag": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",
"integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",
"dev": true,
"optional": true
},
"supports-color": {
"version": "7.2.0",
"resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",
"integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",
"dev": true,
"optional": true,
"requires": {
"has-flag": "^4.0.0"
}
}
}
},
"vue-router": { "vue-router": {
"version": "3.6.5", "version": "3.6.5",
"resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz", "resolved": "https://registry.npmjs.org/vue-router/-/vue-router-3.6.5.tgz",
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
<div v-loading="loading" class="edit-activity"> <div v-loading="loading" class="edit-activity">
<div class="link-main edit-box"> <div class="link-main edit-box">
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="container edit-container" style="min-height: 520px !important;"> <div class="container edit-container" style="min-height: 520px !important">
<p class="edit-title" id="basic">基本信息</p> <p class="edit-title" id="basic">基本信息</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="merchantHtml"> <div slot="merchantHtml">
...@@ -17,14 +17,14 @@ ...@@ -17,14 +17,14 @@
<template slot="activityTimeHtml" slot-scope="scope"> <template slot="activityTimeHtml" slot-scope="scope">
<div class="activity-time-container" :style="{ 'margin-left': defaultLabelWidth }"> <div class="activity-time-container" :style="{ 'margin-left': defaultLabelWidth }">
<label> <label>
<span style="color:#f56c6c;margin-right:6px">*</span> <span style="color: #f56c6c; margin-right: 6px">*</span>
<span class="combi-form-label">链接时间:</span> <span class="combi-form-label">链接时间:</span>
</label> </label>
<el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker> <el-date-picker v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="['00:00:00', '23:59:59']" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker>
</div> </div>
</template> </template>
<el-button slot="selectGiftBtn" type="default" class="el-icon-plus" @click="handleGiftAdd">选择优惠券</el-button> <el-button slot="selectGiftBtn" type="default" class="el-icon-plus" @click="handleGiftAdd">选择优惠券</el-button>
<div slot="couponListBlock" style="width:700px" :style="{ 'margin-left': defaultLabelWidth }" v-show="editForm.couponList && editForm.couponList.length != 0"> <div slot="couponListBlock" style="width: 700px" :style="{ 'margin-left': defaultLabelWidth }" v-show="editForm.couponList && editForm.couponList.length != 0">
<div class="gift-block"> <div class="gift-block">
<div class="gift-title"> <div class="gift-title">
预估成本: 预估成本:
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<span :class="['circle', subItem.status == '3' ? ' grey' : '']"></span> <span :class="['circle', subItem.status == '3' ? ' grey' : '']"></span>
<p :class="['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']">{{ subItem.couponName }} × {{ subItem.couponAmount }}</p> <p :class="['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']">{{ subItem.couponName }} × {{ subItem.couponAmount }}</p>
<p v-show="subItem.status == '3'" class="gift-tips">已失效</p> <p v-show="subItem.status == '3'" class="gift-tips">已失效</p>
<i class="el-icon-delete" style="color: #C6C6C6;" @click="handleGiftDelete(item, subIndex)"></i> <i class="el-icon-delete" style="color: #c6c6c6" @click="handleGiftDelete(item, subIndex)"></i>
</div> </div>
</div> </div>
</div> </div>
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
<img src="@/assets/seckillActivity/icon-music-default.png" /> <img src="@/assets/seckillActivity/icon-music-default.png" />
</div> </div>
<div class="music-name"> <div class="music-name">
<p class="ellipsis-1" style="max-width: 90%;">{{ item.name }}</p> <p class="ellipsis-1" style="max-width: 90%">{{ item.name }}</p>
.mp3 .mp3
</div> </div>
<img v-show="item.isCheck" :class="{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" /> <img v-show="item.isCheck" :class="{ 'icon-check': item.isCheck }" src="@/assets/seckillActivity/icon-check.png" />
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
<el-upload class="m-t-10" action="" accept="audio/mp3, audio/m4a" :show-file-list="false" :http-request="handleMusicUpload" :before-upload="e => handleMusicBeforeUpload(e, scope.scope)" :file-list="fileList"> <el-upload class="m-t-10" action="" accept="audio/mp3, audio/m4a" :show-file-list="false" :http-request="handleMusicUpload" :before-upload="e => handleMusicBeforeUpload(e, scope.scope)" :file-list="fileList">
<el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button> <el-button class="el-icon-plus" size="small" type="default">背景音乐</el-button>
</el-upload> </el-upload>
<audio v-if="playObj.src" style="display: none;" id="music-audio" controls> <audio v-if="playObj.src" style="display: none" id="music-audio" controls>
<source type="audio/mpeg" :src="playObj.src" /> <source type="audio/mpeg" :src="playObj.src" />
</audio> </audio>
<!-- <div v-if="editForm[scope.scope.name]" class="flex"> <!-- <div v-if="editForm[scope.scope.name]" class="flex">
...@@ -242,6 +242,59 @@ ...@@ -242,6 +242,59 @@
</div> </div>
</div> </div>
</div> </div>
<!-- 战报内容配置 -->
<template slot="reportConfigure">
<div class="reportConfigure-bag">
<el-tabs v-model="reportFlag">
<el-tab-pane label="进行中战报" name="1">
<el-form-item label="产值活动报告:" prop="produceReportSummary" labelWidth="100px">
<el-input v-model="editForm.activityActionReport.produceReportSummary" placeholder="根据以往经验,活动前三天转发效果最好,赶紧督促大家转发起来吧" type="textarea" maxlength="200" show-word-limit style="width: 580px; height: 79px" rows="3"></el-input>
</el-form-item>
</el-tab-pane>
<el-tab-pane label="已结束战报" name="2">
<el-form-item label="客户资产分析总结:" prop="customerAssetSummary" labelWidth="140px" style="margin-left: 27px; margin-bottom: 0px">
<el-input v-model="editForm.activityActionReport.customerAssetSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width: 580px; height: 79px" rows="3"></el-input>
</el-form-item>
<el-form-item label="触达通道分析总结:" prop="touchPassageSummary" labelWidth="140px" style="margin-left: 27px; margin-top: 10px">
<el-input v-model="editForm.activityActionReport.touchPassageSummary" placeholder="请输入" type="textarea" maxlength="200" show-word-limit style="width: 580px; height: 79px" rows="3"></el-input>
</el-form-item>
<div class="reportConfigureList">
<span class="reportConfigureLabel">标杆门店数据:</span>
<el-form-item label="分享数(次)" prop="signMerchantShareCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.signMerchantShareCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="浏览数(次)" prop="signMerchantBrowseCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.signMerchantBrowseCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="访客数(人)" prop="signMerchantVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.signMerchantVisitorCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="订单数(单)" prop="signMerchantOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.signMerchantOrderCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="总产值(万)" prop="signMerchantProduceCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.signMerchantProduceCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
</div>
<div class="reportConfigureList">
<span class="reportConfigureLabel">短信触达数据:</span>
<el-form-item label="目标客户数(人)" prop="noteTouchCustomerCount" labelWidth="100px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.noteTouchCustomerCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="访客数(人)" prop="noteTouchVisitorCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.noteTouchVisitorCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="订单数(单)" prop="noteTouchOrderCount" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.noteTouchOrderCount" style="width: 136px; height: 32px" placeholder="请输入"></el-input>
</el-form-item>
<el-form-item label="转化率(%)" prop="noteTouchConversionRate" labelWidth="70px" style="margin: 0px 8px 0px 0px">
<el-input v-model="editForm.activityActionReport.noteTouchConversionRate" style="width: 136px; height: 32px" readonly></el-input>
</el-form-item>
</div>
</el-tab-pane>
</el-tabs>
</div>
</template>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<GLFooter> <GLFooter>
...@@ -414,6 +467,8 @@ export default { ...@@ -414,6 +467,8 @@ export default {
limitPurchaseFlag: 1, limitPurchaseFlag: 1,
limitPurchaseNumber: '', limitPurchaseNumber: '',
subscribe: 1, subscribe: 1,
festivalType: 0,
// 活动配置 // 活动配置
customerServiceFlag: 3, customerServiceFlag: 3,
customerServiceName: '', customerServiceName: '',
...@@ -445,7 +500,22 @@ export default { ...@@ -445,7 +500,22 @@ export default {
formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag', 'selectPhoneNumberFlag'], formDescribeCheck: ['selectCarNumberFlag', 'selectVehicleTypeFlag', 'selectPhoneNumberFlag'],
activityServices: [], activityServices: [],
activityCommoditys: [], activityCommoditys: [],
activityExperienceDTOs: [] activityExperienceDTOs: [],
// 战报内容配置
activityActionReport: {
produceReportSummary: '',
customerAssetSummary: '',
touchPassageSummary: '',
signMerchantShareCount: '',
signMerchantBrowseCount: '',
signMerchantVisitorCount: '',
signMerchantOrderCount: '',
signMerchantProduceCount: '',
noteTouchCustomerCount: '',
noteTouchVisitorCount: '',
noteTouchOrderCount: '',
noteTouchConversionRate: ''
}
// formDescribeFirst: '', // formDescribeFirst: '',
// formDescribeSecond: '', // formDescribeSecond: '',
// formDescribeThird: '', // formDescribeThird: '',
...@@ -610,6 +680,23 @@ export default { ...@@ -610,6 +680,23 @@ export default {
optionLabel: 'optionLabel' optionLabel: 'optionLabel'
}, },
{ {
label: '节日关怀',
name: 'festivalType',
type: 'radio',
optionList: [
{
optionId: 1,
optionLabel: '是'
},
{
optionId: 0,
optionLabel: '否'
}
],
optionId: 'optionId',
optionLabel: 'optionLabel'
},
{
label: '链接名称', label: '链接名称',
name: 'activityName', name: 'activityName',
type: 'input', type: 'input',
...@@ -966,6 +1053,12 @@ export default { ...@@ -966,6 +1053,12 @@ export default {
label: '', label: '',
name: 'activityExperienceDTOs', name: 'activityExperienceDTOs',
addHtml: 'activityExperienceDTOs' addHtml: 'activityExperienceDTOs'
},
{
label: '战报内容配置',
name: '',
addHtml: 'reportConfigure',
tips: '可自定义战报内容'
} }
], ],
//直播配置 //直播配置
...@@ -1114,7 +1207,7 @@ export default { ...@@ -1114,7 +1207,7 @@ export default {
// this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit() // this.$refs.configEditFormRef.$refs.activityDetailTextBox[0].forbidEdit()
this.isDisabled = this.routeInfo.addOrEdit == 'edit' this.isDisabled = this.routeInfo.addOrEdit == 'edit'
detailDisableList.forEach(attr => { detailDisableList.forEach(attr => {
this.changeFormAttr(attr, 'isDisabled', ['业务类型', '所属订阅'], true) this.changeFormAttr(attr, 'isDisabled', ['业务类型', '所属订阅', '节日关怀'], true)
}) })
// this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true) // this.changeFormAttr('configEditFormData', 'isDisabled', ['定金收款账户'], true)
} }
...@@ -1175,6 +1268,30 @@ export default { ...@@ -1175,6 +1268,30 @@ export default {
let idx = this.editFormData.findIndex(val => val.name == 'subscribe') let idx = this.editFormData.findIndex(val => val.name == 'subscribe')
this.editFormData[idx].isHide = false this.editFormData[idx].isHide = false
} }
},
'editForm.activityActionReport.noteTouchCustomerCount'(newValue, oldValue) {
this.editForm.activityActionReport.noteTouchCustomerCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.noteTouchVisitorCount'(newValue, oldValue) {
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) {
this.editForm.activityActionReport.signMerchantVisitorCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.signMerchantShareCount'(newValue, oldValue) {
this.editForm.activityActionReport.signMerchantShareCount = limitPrice(newValue, oldValue, 99999, 0)
},
'editForm.activityActionReport.signMerchantBrowseCount'(newValue, oldValue) {
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)
} }
// 'editForm.targetStock'(newValue, oldValue) { // 'editForm.targetStock'(newValue, oldValue) {
// this.editForm.targetStock = limitPrice(newValue, oldValue, 99999, 0) // this.editForm.targetStock = limitPrice(newValue, oldValue, 99999, 0)
...@@ -1696,6 +1813,31 @@ export default { ...@@ -1696,6 +1813,31 @@ export default {
let resetArr = [{ name: 'id' }, { name: 'liveBroadcastRoomId' }, { name: 'groupQrCode' }, { name: 'floatingMaskDiagram' }, { name: 'liveBroadcastRoomCover' }, { name: 'liveBroadcastRoomEndCover' }, { name: 'selectedProInfo', type: 'Object' }, { name: 'crowdFundingPrice' }] let resetArr = [{ name: 'id' }, { name: 'liveBroadcastRoomId' }, { name: 'groupQrCode' }, { name: 'floatingMaskDiagram' }, { name: 'liveBroadcastRoomCover' }, { name: 'liveBroadcastRoomEndCover' }, { name: 'selectedProInfo', type: 'Object' }, { name: 'crowdFundingPrice' }]
this.copyReset(resetArr) this.copyReset(resetArr)
} }
// 兼容以前众筹活动没有战报内容配置,展示页面
if (this.editForm.activityActionReport == null) {
this.editForm.activityActionReport = {
produceReportSummary: '',
customerAssetSummary: '',
touchPassageSummary: '',
signMerchantShareCount: '',
signMerchantBrowseCount: '',
signMerchantVisitorCount: '',
signMerchantOrderCount: '',
signMerchantProduceCount: '',
noteTouchCustomerCount: '',
noteTouchVisitorCount: '',
noteTouchOrderCount: '',
noteTouchConversionRate: ''
}
}
// 标杆门店总产值/元(已结束战报)
if (this.editForm.activityActionReport.signMerchantProduceCount) {
this.editForm.activityActionReport.signMerchantProduceCount = (info.activityActionReport.signMerchantProduceCount / 10000).toFixed(2)
}
// 转化率(已结束战报)
if (this.editForm.activityActionReport.noteTouchConversionRate) {
this.editForm.activityActionReport.noteTouchConversionRate = (info.activityActionReport.noteTouchConversionRate / 100).toFixed(2)
}
// this.getPayList() // this.getPayList()
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
...@@ -1786,6 +1928,41 @@ export default { ...@@ -1786,6 +1928,41 @@ export default {
} }
}) })
delete param.couponList delete param.couponList
// 标杆门店总产值/元(已结束战报)
if (param.activityActionReport.signMerchantProduceCount) {
param.activityActionReport.signMerchantProduceCount = (this.editForm.activityActionReport.signMerchantProduceCount * 10000).toFixed(0)
}
// 判断目标客户数与访客数
if (param.activityActionReport.noteTouchCustomerCount && param.activityActionReport.noteTouchVisitorCount) {
if (Number(param.activityActionReport.noteTouchCustomerCount) < Number(param.activityActionReport.noteTouchVisitorCount)) {
this.loading = false
this.$message({
message: '目标客户数应大于等于访客数',
type: 'error',
customClass: 'message-Z-zinde'
})
return
}
}
// 判断访客数与浏览数
if (param.activityActionReport.signMerchantVisitorCount && param.activityActionReport.signMerchantBrowseCount) {
if (Number(param.activityActionReport.signMerchantBrowseCount) < Number(param.activityActionReport.signMerchantVisitorCount)) {
this.loading = false
this.$message({
message: '浏览数应大于等于访客数',
type: 'error',
customClass: 'message-Z-zinde'
})
return
}
}
// 已结束战报转化率计算
param.activityActionReport.noteTouchConversionRate = ''
if (param.activityActionReport.noteTouchVisitorCount && param.activityActionReport.noteTouchOrderCount) {
let val = param.activityActionReport.noteTouchOrderCount / param.activityActionReport.noteTouchVisitorCount
param.activityActionReport.noteTouchConversionRate = (val * 10000).toFixed(0)
}
//直播 //直播
// if (param.liveFlag) { // if (param.liveFlag) {
// if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram // if (!param.floatingMaskDiagram) param.floatingMaskDiagram = this.defaultFloatingMaskDiagram
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!