Commit 9197b7d1 by 陈婉清

Merge branch 'chenwq_dev_v2.9.0' into 'v2.9.0'

Chenwq dev v2.9.0

See merge request !337
2 parents d6398cfa d9ff3fbf
<!-- 搜索 --> <!-- 搜索 -->
<template> <template>
<div :class="['glsx-combi-form', isEdit ? 'gl-form-page' : '']"> <div :class="['glsx-combi-form', isEdit ? 'gl-form-page' : '']">
<el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block ml20"> <el-form :ref="formRef" :inline="true" :model="formObj" :rules="formRules" size="small" class="glsx-combi-form-block">
<template v-for="(item, index) in formData"> <template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name"> <el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '154px' : labelWidth" :class="{ 'no-label': !item.label, isBlock: isBlock }" :style="{ 'margin-bottom': isEdit ? '24px' : '', 'margin-right': isEdit ? '0px' : '30px', ...item.style }" :label="item.label" :prop="item.name">
<span v-if="!item.isHide && item.tips" class="tips-block" slot="label"> <span v-if="!item.isHide && item.tips" class="tips-block" slot="label">
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<p class="pageTitle">基本信息</p> <p class="pageTitle">基本信息</p>
</div> </div>
<div class="live-room container gl-form-page" style="padding-top: 20px;" v-loading="sloading"> <div class="live-room container gl-form-page" style="padding-top: 20px;" v-loading="sloading">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-width="defaultLabelWidth" class="demo-ruleForm ml20"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" :label-width="defaultLabelWidth" class="demo-ruleForm">
<el-form-item size="small" label="服务名称:" prop="couponName" style="width: 440px" id="couponName"> <el-form-item size="small" label="服务名称:" prop="couponName" style="width: 440px" id="couponName">
<el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input> <el-input size="small" :disabled="disabledContent" v-model.trim="ruleForm.couponName" maxlength="20" placeholder="请输入服务名称,如“精洗轿车”"></el-input>
</el-form-item> </el-form-item>
......
<template> <template>
<div class="container"> <div class="container marketing">
<el-form ref="materialAddForm" :model="materialAddForm" label-width="146px" :rules="materialAddFormRules"> <el-form ref="materialAddForm" :model="materialAddForm" :label-width="defaultLabelWidth" :rules="materialAddFormRules">
<div class="creat-material"> <div class="creat-material">
<h4>{{ title }}</h4> <h4>{{ title }}</h4>
<el-divider></el-divider> <el-divider></el-divider>
<div class="form-item-container"> <div class="m-l-20">
<el-form-item v-if="routeInfo.addOrEdit == 1" label="选择素材组:" prop="groupId"> <el-form-item v-if="routeInfo.addOrEdit == 1" label="选择素材组:" prop="groupId">
<el-select v-model="materialAddForm.groupId" placeholder="全部" :size="size"> <el-select v-model="materialAddForm.groupId" placeholder="全部" :size="size">
<el-option v-for="item in groupCounter" :key="item.id" :label="item.materialGroupName" :value="item.id"></el-option> <el-option v-for="item in groupCounter" :key="item.id" :label="item.materialGroupName" :value="item.id"></el-option>
</el-select> </el-select>
...@@ -15,10 +15,10 @@ ...@@ -15,10 +15,10 @@
<el-option v-for="item in groupCounter" :key="item.id" :label="item.materialGroupName" :value="item.id"></el-option> <el-option v-for="item in groupCounter" :key="item.id" :label="item.materialGroupName" :value="item.id"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="素材名称:" prop="materialName"> <el-form-item label="素材名称:" prop="materialName">
<el-input v-model="materialAddForm.materialName" :size="size" placeholder="请输入素材名称" maxlength="30"></el-input> <el-input v-model="materialAddForm.materialName" :size="size" placeholder="请输入素材名称" maxlength="30"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="素材类型:" prop="materialType"> <el-form-item label="素材类型:" prop="materialType">
<el-radio-group v-model="materialAddForm.materialType" @change="radioChange" :disabled="routeInfo.addOrEdit == 2 && routeInfo.status != 1"> <el-radio-group v-model="materialAddForm.materialType" @change="radioChange" :disabled="routeInfo.addOrEdit == 2 && routeInfo.status != 1">
<el-radio :label="1">PDF文件</el-radio> <el-radio :label="1">PDF文件</el-radio>
<!-- <el-radio :label="2">自定义链接</el-radio> --> <!-- <el-radio :label="2">自定义链接</el-radio> -->
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
<div class="track"> <div class="track">
<h4>追踪设置</h4> <h4>追踪设置</h4>
<el-divider></el-divider> <el-divider></el-divider>
<div form-item-container> <div form-item-container class="m-l-20">
<el-form-item prop="businessType"> <el-form-item prop="businessType">
<span slot="label"> <span slot="label">
<span class="label-word"> <span class="label-word">
...@@ -65,7 +65,7 @@ ...@@ -65,7 +65,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="给素材添加业务类型,客户可根据业务类型筛选,也可在客户浏览了该素材时能及时提醒跟进员工,以提高客户成单率。"> <el-popover placement="top-start" width="200" trigger="hover" content="给素材添加业务类型,客户可根据业务类型筛选,也可在客户浏览了该素材时能及时提醒跟进员工,以提高客户成单率。">
<img slot="reference" src="@/assets/question.png" alt="" /> <img slot="reference" src="@/assets/question.png" alt="" />
</el-popover> </el-popover>
: :
</span> </span>
</span> </span>
<el-checkbox-group v-model="materialAddForm.businessType"> <el-checkbox-group v-model="materialAddForm.businessType">
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="有效浏览:指客户在页面的停留时间超过15秒并且有交互行为,非完全静止"> <el-popover placement="top-start" width="200" trigger="hover" content="有效浏览:指客户在页面的停留时间超过15秒并且有交互行为,非完全静止">
<img slot="reference" src="@/assets/question.png" alt="" /> <img slot="reference" src="@/assets/question.png" alt="" />
</el-popover> </el-popover>
: :
</span> </span>
</span> </span>
<el-checkbox :value="materialAddForm.isNotifySender" :checked="checked" @change="notifyChange">客户打开素材链接时通知发送人</el-checkbox> <el-checkbox :value="materialAddForm.isNotifySender" :checked="checked" @change="notifyChange">客户打开素材链接时通知发送人</el-checkbox>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="标签失效后在客户信息中看不到此标签,但是在素材效果统计的记录仍然存在"> <el-popover placement="top-start" width="200" trigger="hover" content="标签失效后在客户信息中看不到此标签,但是在素材效果统计的记录仍然存在">
<img slot="reference" src="@/assets/question.png" alt="" /> <img slot="reference" src="@/assets/question.png" alt="" />
</el-popover> </el-popover>
: :
</span> </span>
</span> </span>
<span class="track-behavior">给浏览了素材的客户自动打上标签,并且标签在30天后自动失效</span> <span class="track-behavior">给浏览了素材的客户自动打上标签,并且标签在30天后自动失效</span>
...@@ -114,7 +114,7 @@ ...@@ -114,7 +114,7 @@
</div> </div>
</div> </div>
<div class="share"> <div class="share">
<div class="share-container"> <div class="share-container m-l-20">
<div class="share-top"> <div class="share-top">
<span>分享设置</span> <span>分享设置</span>
<span class="share-tips">设置自定义分享内容,能提高用户体验,促进用户打开链接的概率</span> <span class="share-tips">设置自定义分享内容,能提高用户体验,促进用户打开链接的概率</span>
...@@ -132,14 +132,14 @@ ...@@ -132,14 +132,14 @@
</div> </div>
<el-divider></el-divider> <el-divider></el-divider>
<div class="share-desc" v-show="descVisible"> <div class="share-desc" v-show="descVisible">
<div class="share-desc-left"> <div class="share-desc-left m-l-20">
<el-form-item label="分享标题:"> <el-form-item label="分享标题:">
<el-input v-model="materialAddForm.materialTitle" :size="size" maxlength="30" show-word-limit placeholder="请输入自定义标题"></el-input> <el-input v-model="materialAddForm.materialTitle" :size="size" maxlength="30" show-word-limit placeholder="请输入自定义标题"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="描述:"> <el-form-item label="描述:">
<el-input type="textarea" v-model="materialAddForm.description" :size="size" maxlength="30" show-word-limit placeholder="请输入自定义描述"></el-input> <el-input type="textarea" v-model="materialAddForm.description" :size="size" maxlength="30" show-word-limit placeholder="请输入自定义描述"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="封面:"> <el-form-item label="封面:">
<div class="img-div"> <div class="img-div">
<div class="put-img" v-show="materialAddForm.titleUrl"> <div class="put-img" v-show="materialAddForm.titleUrl">
<img :src="materialAddForm.titleUrl" alt="" /> <img :src="materialAddForm.titleUrl" alt="" />
......
...@@ -497,19 +497,29 @@ export default { ...@@ -497,19 +497,29 @@ export default {
tableOption: true, tableOption: true,
tableColumns: [ tableColumns: [
{ {
label: '订单编号', label: '客户名称',
prop: 'orderCode', prop: 'customerName',
width: '180' line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
}, },
{ {
label: '商户订单号', label: '手机号',
prop: 'outTradeNo', prop: 'customerPhone',
width: '160', width: 130,
formatter: cellValue => { formatter: cellValue => {
return cellValue.outTradeNo || '-' return cellValue.customerPhone || '-'
} }
}, },
{ {
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '订单时间', label: '订单时间',
prop: 'createdDate', prop: 'createdDate',
width: '180', width: '180',
...@@ -534,29 +544,6 @@ export default { ...@@ -534,29 +544,6 @@ export default {
} }
}, },
{ {
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '客户名称',
prop: 'customerName',
line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '手机号',
prop: 'customerPhone',
width: 130,
formatter: cellValue => {
return cellValue.customerPhone || '-'
}
},
{
label: '车架号', label: '车架号',
prop: 'vinNo', prop: 'vinNo',
width: 130, width: 130,
...@@ -599,6 +586,12 @@ export default { ...@@ -599,6 +586,12 @@ export default {
} }
}, },
{ {
label: '其他信息',
prop: '',
width: '180',
line: 1
},
{
label: '活动名称', label: '活动名称',
prop: 'activityName', prop: 'activityName',
width: '120' width: '120'
...@@ -632,6 +625,19 @@ export default { ...@@ -632,6 +625,19 @@ export default {
formatter: cellValue => { formatter: cellValue => {
return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-' return this.baseData.deliveryTypeList.map(item => item.confId).includes(cellValue.deliveryType + '') ? this.baseData.deliveryTypeList.find(item => item.confId == cellValue.deliveryType).confName : '-'
} }
},
{
label: '订单编号',
prop: 'orderCode',
width: '180'
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
formatter: cellValue => {
return cellValue.outTradeNo || '-'
}
} }
] ]
}, },
......
<!-- 众筹活动 --> <!-- 众筹活动 -->
<template> <template>
<div class="edit-share marketing edit-box edit-activity" v-loading="loading"> <div class="edit-share marketing edit-box edit-activity" v-loading="loading">
<div class="container edit-container">
<!-- 基本信息 --> <!-- 基本信息 -->
<div class="container edit-container" style="min-height: 520px !important;">
<p class="edit-title">基本信息</p> <p class="edit-title">基本信息</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="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div> <div slot="activityImg" class="edit-tips m-t-8">展示在首页的活动详情页</div>
...@@ -67,7 +67,9 @@ ...@@ -67,7 +67,9 @@
</p> </p>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
</div>
<!-- 活动配置 --> <!-- 活动配置 -->
<div class="container edit-container crowd-config">
<p class="edit-title">活动配置</p> <p class="edit-title">活动配置</p>
<glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule"> <glsx-combi-form class="edit-form-container" ref="configEditFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="configEditFormData" :formRules="editRule">
<template slot="customerServiceFlag" slot-scope="scope"> <template slot="customerServiceFlag" slot-scope="scope">
...@@ -138,7 +140,8 @@ ...@@ -138,7 +140,8 @@
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
<div class="wechat-box"> <!-- 展示 -->
<!-- <div class="wechat-box">
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" /> <img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back"> <div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p> <p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
...@@ -186,7 +189,7 @@ ...@@ -186,7 +189,7 @@
</div> </div>
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" /> <img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div> </div>
</div> </div> -->
<GLFooter> <GLFooter>
<el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button> <el-button @click="handleCancel" size="medium">{{ routeInfo.addOrEdit != 'detail' ? '取消' : '返回' }}</el-button>
<el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button> <el-button v-if="routeInfo.addOrEdit != 'detail'" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
...@@ -670,7 +673,7 @@ export default { ...@@ -670,7 +673,7 @@ export default {
}, },
mounted() { mounted() {
this.setMinHeight() this.setMinHeight('.crowd-config')
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo() this.routeInfo.addOrEdit != 'add' ? this.getInfo() : this.getMerchantInfo()
var id = this.routeInfo.id var id = this.routeInfo.id
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!