Commit c7c5696a by 杨明

fixed

1 parent c8708667
/* /*
* @Author: 前端 qianduan01@didihu.com.cn * @Author: 前端 qianduan01@didihu.com.cn
* @Date: 2022-12-13 16:38:54 * @Date: 2022-12-13 16:38:54
* @LastEditors: yangming yangming@didihu.com.cn * @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2023-03-22 11:29:49 * @LastEditTime: 2023-05-12 16:18:55
* @FilePath: \scrm-micro-link\src\api\modules\giftBag.js * @FilePath: \scrm-micro-link\src\api\modules\giftBag.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/ */
...@@ -53,5 +53,14 @@ const couponTemplateDetails = params => { ...@@ -53,5 +53,14 @@ const couponTemplateDetails = params => {
sign: true sign: true
}) })
} }
const equityMerchant = params => {
params.method = 'scrm.api.equity.service.merchant.config.get'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getghDirectionalGiftListApi, getEquityListApi, brandList, couponTemplate, couponTemplateDetails } export default { getghDirectionalGiftListApi, getEquityListApi, brandList, couponTemplate, couponTemplateDetails, equityMerchant }
...@@ -262,6 +262,14 @@ const subscribe = [ ...@@ -262,6 +262,14 @@ const subscribe = [
optionLabel: '节假日关怀' optionLabel: '节假日关怀'
}, },
{ {
optionId: 7,
optionLabel: '次新车转化'
},
{
optionId: 7,
optionLabel: '超级营销'
},
{
optionId: 3, optionId: 3,
optionLabel: '其他' optionLabel: '其他'
} }
......
...@@ -49,6 +49,9 @@ ...@@ -49,6 +49,9 @@
<span class="m-l-10">{{ scope.scope.shareName }}</span> <span class="m-l-10">{{ scope.scope.shareName }}</span>
<span class="m-l-10">{{ scope.scope.sharePhone }}</span> <span class="m-l-10">{{ scope.scope.sharePhone }}</span>
</div> </div>
<div slot="isFlow" slot-scope="scope">
<el-switch :value="scope.scope.followUpFlag == 2 ? true : false" class="switchStyle" @change="changeSwith(scope.scope)"></el-switch>
</div>
<div slot="isBuy" slot-scope="scope"> <div slot="isBuy" slot-scope="scope">
<span :class="['table-circle', 'm-r-8', scope.scope.isBuy == 'Y' ? 'back-green' : 'back-grey']"></span> <span :class="['table-circle', 'm-r-8', scope.scope.isBuy == 'Y' ? 'back-green' : 'back-grey']"></span>
<span> <span>
...@@ -234,6 +237,12 @@ export default { ...@@ -234,6 +237,12 @@ export default {
label: '最后浏览时间', label: '最后浏览时间',
prop: 'lastBrowseDate', prop: 'lastBrowseDate',
width: '195px' width: '195px'
},
{
label: '是否跟进',
prop: 'isFlow',
width: '100',
addHtml: 'isFlow'
} }
] ]
break break
...@@ -245,6 +254,12 @@ export default { ...@@ -245,6 +254,12 @@ export default {
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
}, },
methods: { methods: {
changeSwith(scope) {
const { id, followUpFlag } = scope
this.$apis.seckillActivity.updateFollow({ followUpFlag: followUpFlag == 1 ? 2 : 1, id }).then(res => {
this.handleSearch()
})
},
beforeSearchFn() { beforeSearchFn() {
return new Promise(resolve => { return new Promise(resolve => {
console.log(this.$parent) console.log(this.$parent)
......
...@@ -108,6 +108,31 @@ ...@@ -108,6 +108,31 @@
</div> </div>
</div> </div>
</div> </div>
<div slot="selectEquityBtn">
<el-button type="default" class="el-icon-plus" @click="handleEquityAdd">选择服务</el-button>
</div>
<div class="gift-panel" slot="equityListBlock" style="width: 700px" :style="{ 'margin-left': defaultLabelWidth }" v-show="editForm.couponList && editForm.couponList.length != 0">
<div class="gift-block">
<div class="gift-title">
本次权益服务选择共
<span class="price">{{ totalEstimatedCost }}</span>
项
</div>
<div v-for="(item, index) in orderShow" :key="index">
<div class="gift-box" v-show="couponObj[item].list.length">
<!-- <div class="gift-label">{{ couponObj[item].label }}:</div> -->
<img class="server-type" :src="require(`@/assets/coupon/equity.png`)" />
<div class="gift-content">
<div class="gift-item" v-for="(subItem, subIndex) in couponObj[item].list" :key="subIndex">
<span :class="['circle', subItem.status == '3' ? ' grey' : '']"></span>
<p :class="['gift-coupon-name', subItem.status == '3' ? ' txt-grey' : '']">{{ subItem.couponName }}</p>
<i class="el-icon-delete" style="color: #c6c6c6" @click="handleGiftDelete(item, subIndex)"></i>
</div>
</div>
</div>
</div>
</div>
</div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<!-- 活动配置 --> <!-- 活动配置 -->
...@@ -361,6 +386,7 @@ ...@@ -361,6 +386,7 @@
</GLDialog> --> </GLDialog> -->
<select-gift-dialog :merchantId="editForm.merchantId" v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog> <select-gift-dialog :merchantId="editForm.merchantId" v-if="isSelectGiftVisible" :isSelectGiftVisible="isSelectGiftVisible" :selectedGiftList="selectedMealList" @handleGiftConfirm="handleGiftConfirm" @handleGiftClose="handleGiftClose"></select-gift-dialog>
<select-goods-dialog v-if="isSelectGoodsVisible" :isSelectGoodsVisible="isSelectGoodsVisible" :selectedGoodsLists="selectedGoodsList" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></select-goods-dialog> <select-goods-dialog v-if="isSelectGoodsVisible" :isSelectGoodsVisible="isSelectGoodsVisible" :selectedGoodsLists="selectedGoodsList" @handleGoodsConfirm="handleGoodsConfirm" @handleGoodsClose="handleGoodsClose"></select-goods-dialog>
<select-equity-dialog v-if="isSelectEquityVisible" :isSelectEquityVisible="isSelectEquityVisible" :selectedEquityLists="selectedEquityList" @handleEquityConfirm="handleEquityConfirm" @handleEquityClose="handleEquityClose"></select-equity-dialog>
<select-store v-if="relateStoreVisible" ref="relateStore" :dialogVisible="relateStoreVisible" :storeSelected="selectedList" :merchantInfo="editForm.merchantId" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"></select-store> <select-store v-if="relateStoreVisible" ref="relateStore" :dialogVisible="relateStoreVisible" :storeSelected="selectedList" :merchantInfo="editForm.merchantId" @handleRelateStoreConfirm="handleRelateStoreConfirm" @handleRelateStoreClose="handleRelateStoreClose"></select-store>
<select-model v-if="relateModelVisible" :dialogVisible="relateModelVisible" :modelValue="editForm.pageStyle" @handleRelateModelConfirm="handleRelateModelConfirm" @handleRelateModelClose="handleRelateModelClose"></select-model> <select-model v-if="relateModelVisible" :dialogVisible="relateModelVisible" :modelValue="editForm.pageStyle" @handleRelateModelConfirm="handleRelateModelConfirm" @handleRelateModelClose="handleRelateModelClose"></select-model>
</div> </div>
...@@ -373,6 +399,7 @@ import { utils } from 'glsx-common' ...@@ -373,6 +399,7 @@ import { utils } from 'glsx-common'
import selectStore from './components/selectStore' import selectStore from './components/selectStore'
import selectGiftDialog from './components/selectGiftDialog.vue' import selectGiftDialog from './components/selectGiftDialog.vue'
import selectGoodsDialog from './components/selectGoodsDialog.vue' import selectGoodsDialog from './components/selectGoodsDialog.vue'
import selectEquityDialog from './components/selectEquityDialog.vue'
import selectModel from './components/selectModel.vue' import selectModel from './components/selectModel.vue'
import HeaderConfig from './components/header-config.vue' import HeaderConfig from './components/header-config.vue'
const couponObj = { const couponObj = {
...@@ -437,7 +464,8 @@ export default { ...@@ -437,7 +464,8 @@ export default {
selectGiftDialog, selectGiftDialog,
selectGoodsDialog, selectGoodsDialog,
HeaderConfig, HeaderConfig,
selectModel selectModel,
selectEquityDialog
}, },
data() { data() {
var validatorPhone = function(rule, value, callback) { var validatorPhone = function(rule, value, callback) {
...@@ -480,6 +508,7 @@ export default { ...@@ -480,6 +508,7 @@ export default {
numToGoods, numToGoods,
isSelectGiftVisible: false, isSelectGiftVisible: false,
isSelectGoodsVisible: false, isSelectGoodsVisible: false,
isSelectEquityVisible: false,
routeInfo: { routeInfo: {
// 1-新增;2-编辑;3-查看 // 1-新增;2-编辑;3-查看
// add-新增;edit-编辑;detail-详情;copy-复制 // add-新增;edit-编辑;detail-详情;copy-复制
...@@ -716,6 +745,10 @@ export default { ...@@ -716,6 +745,10 @@ export default {
optionLabel: '节假日关怀' optionLabel: '节假日关怀'
}, },
{ {
optionId: 7,
optionLabel: '次新车转化'
},
{
optionId: 3, optionId: 3,
optionLabel: '其他' optionLabel: '其他'
} }
...@@ -771,6 +804,17 @@ export default { ...@@ -771,6 +804,17 @@ export default {
addHtml: 'selectGoodsBtn', addHtml: 'selectGoodsBtn',
tips: '平台提供了种类丰富的权益商品,可进一步提升产品套餐的受众,强烈推荐!' tips: '平台提供了种类丰富的权益商品,可进一步提升产品套餐的受众,强烈推荐!'
}, },
{
label: '权益服务',
name: 'equityList',
addHtml: 'selectEquityBtn'
},
{
label: '',
name: 'equityListBlock',
addHtml: 'equityListBlock'
},
{ {
label: '销售价格', label: '销售价格',
name: 'activityPrice', name: 'activityPrice',
...@@ -1252,7 +1296,7 @@ export default { ...@@ -1252,7 +1296,7 @@ export default {
let hideStatus = false let hideStatus = false
if (val == 2) { if (val == 2) {
hideStatus = true hideStatus = true
this.editForm.couponList =[] this.editForm.couponList = []
this.selectedGoodsList = [] this.selectedGoodsList = []
} else { } else {
hideStatus = false hideStatus = false
...@@ -1419,12 +1463,19 @@ export default { ...@@ -1419,12 +1463,19 @@ export default {
handleGoodsAdd() { handleGoodsAdd() {
this.handleGoodsClose() this.handleGoodsClose()
}, },
//选择权益
handleEquityAdd() {
this.handleEquityClose()
},
handleGiftClose() { handleGiftClose() {
this.isSelectGiftVisible = !this.isSelectGiftVisible this.isSelectGiftVisible = !this.isSelectGiftVisible
}, },
handleGoodsClose() { handleGoodsClose() {
this.isSelectGoodsVisible = !this.isSelectGoodsVisible this.isSelectGoodsVisible = !this.isSelectGoodsVisible
}, },
handleEquityClose() {
this.isSelectEquityVisible = !this.isSelectEquityVisible
},
handleGiftConfirm(selectedData) { handleGiftConfirm(selectedData) {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate('couponList') this.$refs.editFormRef.$refs[this.editChildRef].clearValidate('couponList')
this.handleGiftClose() this.handleGiftClose()
...@@ -1893,7 +1944,7 @@ export default { ...@@ -1893,7 +1944,7 @@ export default {
} }
// 表单设置 // 表单设置
this.editForm.formDescribeCheck = [] this.$set(this.editForm, 'formDescribeCheck', [])
this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1 this.editForm.selectCarNumberFlag = this.editForm.selectCarNumberFlag || 1
this.editForm.selectVehicleTypeFlag = this.editForm.selectVehicleTypeFlag || 1 this.editForm.selectVehicleTypeFlag = this.editForm.selectVehicleTypeFlag || 1
this.editForm.selectPhoneNumberFlag = this.editForm.selectPhoneNumberFlag || 1 this.editForm.selectPhoneNumberFlag = this.editForm.selectPhoneNumberFlag || 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!