Commit c92063cd by 前端

Merge branch 'develop' into 'master'

v2.8.3上线,代码合并。

See merge request !351
2 parents 5ef56d5c 34b650ed
Showing 39 changed files with 890 additions and 492 deletions
This diff could not be displayed because it is too large.
......@@ -13,7 +13,7 @@
"el-tree-transfer": "^2.2.6",
"element-ui": "^2.4.5",
"glsx-common": "^1.4.6",
"glsx-components": "^1.5.1",
"glsx-components": "^1.5.2",
"lodash": "^4.17.21",
"node-sass": "^4.0.0",
"vue": "^2.6.10",
......
......@@ -110,8 +110,9 @@ html {
position: relative;
}
.marketing .wechat-container .w-100-per {
width: 100%;
.marketing .w-100-per,
.marketing .w-100-percent {
width: 100% !important;
}
.marketing .wechat-container .wechat-box {
......@@ -131,6 +132,12 @@ html {
margin-top: 20px;
}
.marketing .form-sub-block {
// width: 686px;
background: #f9f9f9;
padding: 20px 80px 20px 20px;
}
.marketing .f-right {
float: right;
}
......@@ -148,6 +155,7 @@ html {
color: #5850ff;
border-color: #5850ff;
height: 32px;
background-color: transparent;
}
.el-scrollbar__bar.is-horizontal {
......@@ -229,11 +237,6 @@ html {
cursor: pointer;
}
.marketing .w-100-percent,
.marketing .img-w-100 {
width: 100%;
}
.marketing .img-36 {
width: 36px;
height: 36px;
......@@ -283,10 +286,6 @@ html {
margin-bottom: 20px;
}
.marketing .m-t-20 {
margin-top: 20px;
}
.marketing .m-b-60 {
margin-bottom: 60px;
}
......@@ -304,7 +303,7 @@ html {
}
.marketing .m-l-10 {
margin-left: 10px;
margin-left: 10px !important;
}
.marketing .m-l-20 {
......@@ -329,6 +328,10 @@ html {
padding-left: 40px;
}
.marketing .p-0 {
padding: 0;
}
.marketing .circle {
display: inline-block;
width: 6px;
......@@ -343,11 +346,11 @@ html {
}
.marketing .txt-green {
color: #61CC43;
color: #61cc43;
}
.marketing .txt-orange {
color: #FB8F28;
color: #fb8f28;
}
.marketing .txt-blue {
......
<!-- 搜索 -->
<template>
<div class="glsx-combi-form">
<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">
<template v-for="(item, index) in formData">
<el-form-item v-if="!item.isHide" :key="index" :id="item.name" :labelWidth="isEdit ? '144px' : 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 class="tips-label">{{ item.label }}</span>
<el-popover placement="top" width="200" trigger="hover" :content="item.tips">
<img slot="reference" class="tips-icon" src="./images/icon-tip.png" />
</el-popover>
:
</span>
<span v-else-if="!item.isHide && item.label && !item.tips" slot="label">
<span class="combi-form-label" :style="{ width: item.labelWidth ? item.labelWidth + labelPaddingRight + 'px' : '', 'padding-right': isEdit ? '12px' : labelPaddingRight + 'px' }">{{ item.label }}</span>
<span class="combi-form-label" :style="{ width: item.labelWidth || labelWidth }">{{ item.label }}:</span>
</span>
<slot v-if="item.addHtml" :name="item.addHtml" :scope="item"></slot>
<span v-else-if="item.type === 'showTxt'">{{ formObj[item.name] }}</span>
......@@ -32,7 +33,9 @@
<!-- radio -->
<div v-else-if="item.type === 'radio'">
<el-radio-group v-model="formObj[item.name]" v-bind="item.attrs ? item.attrs : {}" v-on="item.listeners ? item.listeners : {}" :disabled="item.isDisabled" @change="item.handleRadioChange">
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">{{ subItem[item.optionLabel] }} <slot :name="subItem.suffixSonSlot" :scope="subItem"></slot>
<el-radio v-for="subItem in item.optionList" :key="subItem[item.optionId]" :disabled="subItem.isDisabled" :label="subItem[item.optionId]">
{{ subItem[item.optionLabel] }}
<slot :name="subItem.suffixSonSlot" :scope="subItem"></slot>
</el-radio>
</el-radio-group>
<slot :name="item.suffixSlot" :scope="item"></slot>
......@@ -41,20 +44,21 @@
<template v-else-if="item.type === 'upload'">
<p class="photo-top-tips">{{ item.topTips }}</p>
<div v-if="!item.isDisabled" :style="{ width: item.width || defaultWidth }">
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h">
<div class="add" :style="{ top: item.maxPhotoNum == 1 ? '50%' : '40%' }">+</div>
<span v-if="item.maxPhotoNum > 1" class="number">{{ formObj[item.name].length }} / {{ item.maxPhotoNum }}</span>
<input v-if="item.uploadType == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="video/mp4" @change="e => handleUploadChange(e, item)" />
<input v-else type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length < item.maxPhotoNum : !formObj[item.name]" class="activity-img img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''">
<div class="add" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('addStyle') ? item.uploadStyle.addStyle : ''">+</div>
<!-- <span v-if="item.maxPhotoNum > 1" class="number">{{ formObj[item.name].length }}/{{ item.maxPhotoNum }}</span> -->
<span class="number" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('fontSize') ? item.uploadStyle.fontSize : ''">上传{{ item.uploadType == 'video' ? '视频' : '图片' }}</span>
<input v-if="item.uploadType == 'video'" type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" accept="video/mp4" @change="e => handleUploadChange(e, item)" />
<input v-else type="file" style="opacity: 0" :id="item.name + 'file'" ref="file" class="activity-img img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" accept="image/png, image/jpeg, image/gif, image/jpg" @change="e => handleUploadChange(e, item)" />
</div>
</div>
<template>
<div v-if="Array.isArray(formObj[item.name]) ? formObj[item.name].length : formObj[item.name]">
<span v-if="Array.isArray(formObj[item.name])">
<span v-for="(subItem, subIndex) in formObj[item.name]" :key="subIndex" class="muti-imgs img-w-h">
<video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :src="typeof subItem == 'object' ? subItem.content : subItem"></video>
<img v-else class="img-w-h" :src="typeof subItem == 'object' ? subItem.content : subItem" />
<span class="img-btns">
<span v-for="(subItem, subIndex) in formObj[item.name]" :key="subIndex" class="muti-imgs img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''">
<video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" :src="typeof subItem == 'object' ? subItem.content : subItem"></video>
<img v-else class="img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" :src="typeof subItem == 'object' ? subItem.content : subItem" />
<span class="img-btns" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''">
<span class="btn-item">
<i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item, subIndex)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(typeof subItem == 'object' ? subItem.content : subItem, item)"></i>
......@@ -63,9 +67,9 @@
</span>
</span>
<span v-else class="muti-imgs">
<video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :src="formObj[item.name]"></video>
<img v-else class="img-w-h" :src="formObj[item.name]" />
<span class="img-btns">
<video v-if="item.uploadType == 'video'" class="img-w-h activity-img" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" :src="formObj[item.name]"></video>
<img v-else class="img-w-h" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''" :src="formObj[item.name]" />
<span class="img-btns" :style="item.uploadStyle && item.uploadStyle.hasOwnProperty('imgWH') ? item.uploadStyle.imgWH : ''">
<span class="btn-item">
<i v-show="!item.isDisabled" class="el-icon-delete" @click="handleImgDelete(item)"></i>
<i class="el-icon-zoom-in" @click="handleImgLook(formObj[item.name], item)"></i>
......@@ -138,7 +142,7 @@ export default {
},
defaultWidth: {
type: String,
default: '215px'
default: '432px'
},
formRef: {
type: String,
......@@ -149,14 +153,14 @@ export default {
default: false
},
labelWidth: {
type: Number,
type: String,
// 默认是四个字符长度
default: 56
},
labelPaddingRight: {
type: Number,
default: 15
default: '154px'
},
// labelPaddingRight: {
// type: Number,
// default: 15
// },
formData: {
type: Array,
default: () => []
......@@ -206,7 +210,6 @@ export default {
var reader = new FileReader()
var file = e.srcElement.files[0]
var uploadType = targetItem.uploadType || 'img'
// console.log(file)
// 默认1MB
const limitSize = targetItem.limitSize || 1
const isLt = file.size / 1024 / 1024 < limitSize
......@@ -240,11 +243,11 @@ export default {
if (targetItem.hasPixel && (imgWidth > wdithLt || imgHeight > heightLt)) {
this.$message.error('图片尺寸最大为' + wdithLt + '像素*' + heightLt + '像素')
} else {
targetItem.handleUpload(e, file, targetItem)
targetItem.handleUpload(e, file, targetItem, this.formObj)
}
}
} else {
targetItem.handleUpload(e, file, targetItem)
targetItem.handleUpload(e, file, targetItem, this.formObj)
}
}
document.getElementById(targetItem.name + 'file').value = ''
......@@ -415,12 +418,12 @@ export default {
display: inline-block;
width: 14px;
height: 14px;
margin-right: 12px;
margin-right: 0px !important;
vertical-align: middle;
cursor: pointer;
}
.glsx-combi-form .combi-form-label {
display: inline-block;
/* display: inline-block; */
box-sizing: border-box;
}
/* 图片上传 */
......@@ -450,6 +453,7 @@ export default {
.glsx-combi-form .muti-imgs {
display: inline-block;
position: relative;
margin: 10px 8px 0 0;
}
.activity-img .add {
......@@ -465,6 +469,9 @@ export default {
bottom: 0;
left: 50%;
transform: translateX(-50%);
font-size: 14px;
width: 100%;
text-align: center;
}
.muti-imgs .img-btns {
......
<template>
<div v-if="provinceView">
<el-form ref="provinceForm" :model="provinceForm" inline="true" class="province">
<el-form ref="provinceForm" :model="provinceForm" inline="true" class="province" style="padding-left: 0;">
<el-select size="small" v-model="provinceForm.provinceName" clearable :disabled="isDisabled" placeholder="选择省份" :style="{ width: defaultWidth }" @change="selectProvince" class="select-padding">
<el-option v-for="item in AllData" :key="item.adcode" :label="item.name" :value="item.name" @click.native="selectProvince(item)"></el-option>
</el-select>
......@@ -160,9 +160,12 @@ export default {
}
}
</script>
<style scoped lang="scss">
<style lang="scss">
.province {
display: inline-flex;
.el-select .el-input {
width: auto !important;
}
}
.select-padding {
margin-right: 10px;
......
......@@ -27,6 +27,7 @@ Vue.config.productionTip = false
Vue.prototype.$apis = apis
Vue.prototype.size = 'small'
Vue.prototype.setMinHeight = setMinHeight
Vue.prototype.defaultLabelWidth = '154px'
start()
export { bootstrap, mount, unmount } from '@/setup'
export const http = params => Vue.prototype.$http(params)
......
......@@ -2,13 +2,13 @@
<div class="activity-main">
<div class="activity-box-f" v-loading="addLoading">
<div class="activity-box-title">{{ activityId ? '编辑活动' : '创建活动' }}</div>
<div class="activity-box-form">
<div class="activity-box-form gl-form-page">
<el-form ref="addForm" :model="addForm" class="code-body-form" label-width="120px" :rules="addRules">
<el-form-item label="活动名称" prop="configName" size="small" class="form-w40">
<el-form-item label="活动名称:" prop="configName" size="small" class="form-w40">
<el-input size="small" v-model.trim="addForm.configName" placeholder="请输入活动名称" maxlength="20"></el-input>
<div class="activity-name-tips">例:输入“定保客户”,系统推送任务时将自动追加月份信息“5月招揽-定保客户”</div>
</el-form-item>
<el-form-item label="活动对象" prop="selectType" size="small" class="activity-item">
<el-form-item label="活动对象:" prop="selectType" size="small" class="activity-item">
<el-radio-group v-model="addForm.selectType" :disabled="this.activityId" @change="handleType">
<el-radio :label="1">客群</el-radio>
<el-radio :label="2">Excel导入</el-radio>
......@@ -42,28 +42,28 @@
</template>
</el-form-item>
<template v-if="addForm.selectType == 1">
<el-form-item label="推送日期" prop="sendDate" size="small" class="activity-item">
<el-form-item label="推送日期:" prop="sendDate" size="small" class="activity-item">
<div class="activity-date">
每月
<el-input-number v-model="addForm.sendDate" controls-position="right" :min="1" :max="28"></el-input-number>
号
</div>
</el-form-item>
<el-form-item label="推送月份" prop="sendMonth" size="small" class="activity-item">
<el-form-item label="推送月份:" prop="sendMonth" size="small" class="activity-item">
<el-radio-group v-model="addForm.sendMonth">
<el-radio :label="1">次月</el-radio>
<el-radio :label="0">当月</el-radio>
</el-radio-group>
<div class="activity-name-tips">例:选择“次月”,系统将在设定的推送日期推送次月的待定保客户</div>
</el-form-item>
<el-form-item label="状态" size="small" class="activity-status">
<el-form-item label="状态:" size="small" class="activity-status">
<el-switch v-model="activityStatus"></el-switch>
<span class="activity-stop">{{ activityStatus ? '启用' : '停用' }}</span>
<el-popover placement="top" width="300" trigger="hover" content="停用活动仅会影响下个周期的营销推送,不影响已经生成的招揽活动。">
<img src="@/assets/activity/question.png" slot="reference" class="count-item-question" />
</el-popover>
</el-form-item>
<el-form-item label="客群" prop="custGroupId" size="small">
<el-form-item label="客群:" prop="custGroupId" size="small">
<div class="group-item">
<el-select v-model="addForm.custGroupId" placeholder="请选择" @change="selectCrowd(addForm.custGroupId)">
<el-option v-for="item in crowdGroupUnitList" :key="item.crowdGroupId" :label="item.crowdGroupName" :value="item.crowdGroupId"></el-option>
......@@ -72,7 +72,7 @@
</div>
</el-form-item>
</template>
<el-form-item label="配置营销" prop="name" size="small" v-if="addForm.custGroupId || (successStatus && exportUrl)">
<el-form-item label="配置营销:" prop="name" size="small" v-if="addForm.custGroupId || (successStatus && exportUrl)">
<GLTable :hasPage="false" ref="config" :tableData="tableData" :tableTotal="tableTotal" :pageConf="pageConf" :tableParams="tableParams">
<template slot="welcomeConfigDTOS" slot-scope="scope">
<div class="statusText">
......@@ -152,11 +152,9 @@
</el-button>
<el-button type="primary" @click="handleSure" v-show="(successStatus && addForm.selectType == 2 && exportUrl) || addForm.selectType == 1">提交</el-button>
</GLFooter>
<component @handleConfigChecked="handleConfigChecked" :is="'market-config'" ref="configForm" :boxHeight="boxHeight"></component>
</div>
</template>
<script>
import { utils } from 'glsx-common'
import util from '@/utils/util'
......@@ -463,7 +461,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
.downloading-containner {
padding: 20px;
......@@ -613,7 +610,6 @@ export default {
font-size: 0px;
}
}
a {
margin-left: 6px;
color: #5850ff;
......
......@@ -3,18 +3,21 @@
<div class="edit-classify marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectProBtn" slot-scope="scope" class="select-pro">
<el-button type="default" @click="handleMutiProClose(scope)">{{ editForm.goodsRefList.length ? '更换商品' : '+选择商品' }}</el-button>
</div>
<div slot="proTable" class="select-pro" style="padding-left: 20px">
<div slot="proTable" class="select-pro" :style="{ 'margin-left': defaultLabelWidth, width: `calc(100% - ${defaultLabelWidth} )` }">
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList">
<template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
</template>
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleProDelete(scope)">删除</el-button>
<el-button type="text" @click="handleProTop(scope)">置顶</el-button>
<div slot="goodsImage" class="table-image" slot-scope="scope">
<el-popover placement="top" width="160" trigger="hover" popper-class="table-popover-block">
<img class="table-popover-img" :src="scope.scope.goodsImage" />
<img class="img-60 pointer" slot="reference" :src="scope.scope.goodsImage" />
</el-popover>
</div>
<span slot="customBtn" slot-scope="scope">
<el-button class="p-0" type="text" @click="handleProDelete(scope)">删除</el-button>
<el-button class="p-0 m-l-10" type="text" @click="handleProTop(scope)">置顶</el-button>
</span>
</GLTable>
</div>
......@@ -94,7 +97,6 @@ export default {
],
// 门店表格
tableParams: {
tableOption: true,
tableColumns: [
{
label: '缩略图',
......@@ -103,11 +105,20 @@ export default {
},
{
label: '商品名称',
prop: 'productName'
prop: 'productName',
formatter: cellValue => {
return cellValue.productName || cellValue.goodsName || '--'
}
},
{
label: '零售价',
prop: 'retailPrice'
},
{
label: '操作',
prop: '',
width: '120px',
addHtml: 'customBtn'
}
]
}
......
......@@ -57,8 +57,7 @@
</div>
</div>
<p class="edit-title">{{ title }}代金券</p>
<glsx-combi-form class="edit-form-container" style="min-height: 570px" ref="editFormRef" :isEdit="true"
:isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container" style="min-height: 570px" ref="editFormRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="useChannelHtml">
<el-radio v-model="editForm.useChannel" label="1" :disabled="apear != 'couponAdd'">线上商品</el-radio>
<el-radio v-model="editForm.useChannel" label="2" :disabled="apear != 'couponAdd'">到店核销</el-radio>
......@@ -82,18 +81,14 @@
<br />
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'">
<el-date-picker v-model="editForm.effectiveTime" @change="haveChange" type="datetimerange"
style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOption" :default-time="defaultTime"
:format="format" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable>
<el-date-picker v-model="editForm.effectiveTime" @change="haveChange" type="datetimerange" style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOption" :default-time="defaultTime" :format="format" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable>
</el-date-picker>
</el-radio>
</el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays">
<el-radio v-model="editForm.effectiveType" label="1" :disabled="apear != 'couponAdd'">
领取后
<el-input v-model="editForm.effectiveDays" style="width: 100px; margin-left: 5px; margin-right: 5px"
:disabled="apear != 'couponAdd' || editForm.effectiveType != 1" />
<el-input v-model="editForm.effectiveDays" style="width: 100px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.effectiveType != 1" />
天内有效
</el-radio>
</el-form-item>
......@@ -101,21 +96,16 @@
<template slot="useBarriersHtml">
<el-radio v-model="editForm.useBarriers" label="1" :disabled="apear != 'couponAdd'">无限制</el-radio>
<el-form-item prop="full" ref="full">
<el-radio v-model="editForm.useBarriers" label="2"
:disabled="apear != 'couponAdd' || editForm.useChannel == 2">
<el-radio v-model="editForm.useBarriers" label="2" :disabled="apear != 'couponAdd' || editForm.useChannel == 2">
订单满
<el-input v-model="editForm.full" placeholder="输入金额(元)"
style="width: 110px; margin-left: 5px; margin-right: 5px"
:disabled="apear != 'couponAdd' || editForm.useBarriers != 2" />
<el-input v-model="editForm.full" placeholder="输入金额(元)" style="width: 110px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.useBarriers != 2" />
元可用
</el-radio>
</el-form-item>
</template>
<template slot="denominationHtml">
<el-input v-model="editForm.denomination" id="denomination" style="width: 150px"
:disabled="apear != 'couponAdd'"
@blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<span slot="append">元</span>
<el-input v-model="editForm.denomination" id="denomination" placeholder="请输入面值" :disabled="apear != 'couponAdd'" @blur.native.capture="editForm.useChannel == 1 && denominationBlur($event)">
<!-- <span slot="append">元</span> -->
</el-input>
<span style="color: red; margin-left: 15px" v-if="priceFlag && editForm.useChannel == 1">{{
selectedAllProList.length ? '存在零售价低于代金券的商品' : '系统暂无已创建的商品,请先创建好商品后再配置代金券'
......@@ -124,9 +114,8 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]"
placeholder="请输入库存">
<span slot="suffix">张</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<!-- 只有使用途径为线上商品时才有效,到店核销时屏蔽 -->
......@@ -138,22 +127,19 @@
</el-radio>
</template>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div slot="proTable" class="select-pro">
<div slot="proTable" class="select-pro" :style="{ 'margin-left': defaultLabelWidth, width: `calc(100% - ${defaultLabelWidth} )` }">
<!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> -->
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams"
:tableData="editForm.goodsRefList"
style="padding-left: 10px; margin-right: 340px; max-height: 350px; overflow: auto">
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left: 10px; margin-right: 340px; max-height: 350px; overflow: auto">
<template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" />
</template>
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleProDelete(scope)">删除</el-button>
<span slot="customBtn" slot-scope="scope">
<el-button class="p-0" type="text" @click="handleProDelete(scope)">删除</el-button>
</span>
</GLTable>
</div>
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px"
:autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="editHtml">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
......@@ -161,8 +147,7 @@
</glsx-combi-form>
<div v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true"
:formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule">
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule">
</glsx-combi-form>
</div>
</div>
......@@ -170,9 +155,7 @@
<el-button @click="handleCancel" size="medium">{{ apear != 'couponSee' ? '取消' : '返回' }}</el-button>
<el-button v-if="showSubmit" type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible"
:searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm"
@handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
<select-muti-pro-forcoupon-dialog v-if="isMutiSelectVisible" :isMutiSelectVisible="isMutiSelectVisible" :searchForm="searchProForm" :selectedProList="selectedProList" @handleMutiSelectConfirm="handleMutiSelectConfirm" @handleMutiSelectClose="handleMutiSelectClose"></select-muti-pro-forcoupon-dialog>
</div>
</template>
......@@ -224,7 +207,6 @@ export default {
},
//商品列表
tableParams: {
tableOption: true,
tableColumns: [
{
label: '缩略图',
......@@ -238,6 +220,11 @@ export default {
{
label: '零售价(元)',
prop: 'retailPrice'
},
{
label: '操作',
prop: '',
addHtml: 'customBtn'
}
]
},
......@@ -272,15 +259,14 @@ export default {
{
label: '优惠券名称',
name: 'couponName',
width: '320px',
type: 'input',
maxlength: 20
},
{
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
placeholder: '请输入预估成本',
isDisabled: false
},
{
......@@ -311,12 +297,12 @@ export default {
isHide: true
},
{
label: '面值',
label: '面值/元',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '150px',
......@@ -817,9 +803,9 @@ export default {
this.cancelJump()
}
})
.finally(() => {
this.loading = false
})
.finally(() => {
this.loading = false
})
}
})
},
......
......@@ -2,27 +2,6 @@
<template>
<div class="edit-share marketing edit-box">
<div class="container edit-container" style="position: relative" v-loading="loading">
<!-- <div class="right_show">
<div class="card-top"></div>
<div class="card-middle">
<div>
<span class="cname">{{ editForm.couponName }}</span>
<span class="ctype"><span class="ctypeName">折扣券</span></span>
</div>
<div class="ctime">
<span class="ctime_name">有效期:</span>
<span class="ctime_content" v-if="editForm.effectiveType == 1">{{ editForm.effectiveDays }}天</span>
<span class="ctime_content" v-if="editForm.effectiveType == 2">{{ couponTime }}</span>
</div>
<div class="ctime">
<span class="ctime_name">核销券码:</span>
</div>
<img class="ccode" src="../../assets/coupon/code2.png" />
<div class="ccodeName">GH078-003</div>
<div class="cremarks">使用说明:</div>
<div class="cremarks_content">{{ editForm.useDescription }}</div>
</div>
</div> -->
<div class="right_show">
<div class="card-top"></div>
<div class="slider">
......@@ -32,9 +11,6 @@
<img src="../../images/unDiscount.png" class="couponImg" v-if="editForm.status == 3" />
<img src="../../images/discount.png" class="couponImg" v-else />
</div>
<!-- <div class="ctype">
<div class="ctypeName"></div>
</div> -->
<div class="validityPeriod">
<!-- <span class="ctime_name">有效期:</span> -->
<span v-if="editForm.effectiveType == 3">永久有效</span>
......@@ -45,8 +21,7 @@
<div :class="editForm.status == 3 ? 'darkColor' : ''" class="ctime">
<!-- <span class="ctime_name">使用限制:</span> -->
<span class="ctime_content" style="font-size: 20px;font-weight: 600;"
v-show="editForm.discountIntensity">{{ editForm.discountIntensity }}</span>
<span class="ctime_content" style="font-size: 20px;font-weight: 600;" v-show="editForm.discountIntensity">{{ editForm.discountIntensity }}</span>
<span v-show="editForm.discountIntensity" style="font-size: 12px;">折</span>
<span class="ctime_content">{{ editForm.useBarriers == 1 ? '无门槛' : '满' + editForm.full + '元可用' }}</span>
</div>
......@@ -81,8 +56,7 @@
</div>
</div>
<p class="edit-title">{{ 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">
<template slot="directionalFlagHtml">
<div>
<el-radio v-model="editForm.directionalFlag" label="1" :disabled="apear != 'couponAdd'">所有客户可用</el-radio>
......@@ -100,18 +74,13 @@
<template slot="effectiveHtml">
<el-form-item prop="effectiveTime" ref="effectiveTime" style="margin-top: 12px; display: block">
<el-radio v-model="editForm.effectiveType" label="2" :disabled="apear != 'couponAdd'" id="effectiveTime">
<el-date-picker v-model="editForm.effectiveTime" @change="haveChange" type="datetimerange"
style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
value-format="yyyy-MM-dd HH:mm:ss" :default-time="defaultTime" :format="format"
:picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'"
clearable></el-date-picker>
<el-date-picker v-model="editForm.effectiveTime" @change="haveChange" type="datetimerange" style="width: 340px" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :default-time="defaultTime" :format="format" :picker-options="pickerOption" :disabled="editForm.effectiveType != 2 || apear != 'couponAdd'" clearable></el-date-picker>
</el-radio>
</el-form-item>
<el-form-item prop="effectiveDays" ref="effectiveDays" id="effectiveDays">
<el-radio v-model="editForm.effectiveType" label="1" :disabled="apear != 'couponAdd'">
领取后
<el-input v-model="editForm.effectiveDays" style="width: 100px; margin-left: 5px; margin-right: 5px"
:disabled="apear != 'couponAdd' || editForm.effectiveType != 1" />
<el-input v-model="editForm.effectiveDays" style="width: 100px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.effectiveType != 1" />
天内有效
</el-radio>
</el-form-item>
......@@ -121,9 +90,7 @@
<el-form-item prop="full" ref="full">
<el-radio v-model="editForm.useBarriers" label="2" :disabled="apear != 'couponAdd'">
满
<el-input v-model="editForm.full" @blur="loseFocus"
style="width: 100px; margin-left: 5px; margin-right: 5px"
:disabled="apear != 'couponAdd' || editForm.useBarriers != 2" />
<el-input v-model="editForm.full" @blur="loseFocus" style="width: 100px; margin-left: 5px; margin-right: 5px" :disabled="apear != 'couponAdd' || editForm.useBarriers != 2" />
元可用
</el-radio>
</el-form-item>
......@@ -131,14 +98,12 @@
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]"
placeholder="请输入库存">
<span slot="suffix">张</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<template slot="useDescriptionHtml">
<el-input type="textarea" v-model="editForm.useDescription" style="width: 320px"
:autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
<el-input type="textarea" v-model="editForm.useDescription" :autosize="{ minRows: 2, maxRows: 4 }" maxlength="200" :disabled="userDisable" />
</template>
<template slot="editHtml">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
......@@ -146,9 +111,7 @@
</glsx-combi-form>
<div v-if="$isGroupUp">
<p class="edit-title">适用门店配置</p>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true"
:formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule">
</glsx-combi-form>
<glsx-combi-form class="edit-form-container" ref="merchantRef" :isEdit="true" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="merchantEditFormData" :formRules="merchantRule"></glsx-combi-form>
</div>
</div>
<GLFooter>
......@@ -230,23 +193,21 @@ export default {
{
label: '优惠券名称',
name: 'couponName',
width: '320px',
type: 'input',
maxlength: 20
},
{
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
isDisabled: false
isDisabled: false,
placeholder: '请输入预估成本'
},
{
label: '优惠内容',
label: '优惠内容/折',
name: 'discountIntensity',
width: '180px',
type: 'input',
append: '折'
placeholder: '请输入优惠内容'
},
{
label: '使用限制',
......@@ -254,7 +215,7 @@ export default {
addHtml: 'useLimitHtml'
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '180px',
......@@ -576,9 +537,9 @@ export default {
this.cancelJump()
}
})
.finally(() => {
this.loading = false
})
.finally(() => {
this.loading = false
})
}
})
},
......
......@@ -58,7 +58,7 @@
<template slot="stock" slot-scope="scope">
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="apear != 'couponAdd'" v-else class="w-150" v-model="editForm[scope.scope.name]" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</template>
<template slot="directionalFlagHtml">
......@@ -174,19 +174,17 @@ export default {
{
label: '优惠券名称',
name: 'couponName',
width: '320px',
type: 'input',
maxlength: 20
},
{
label: '预估成本/元',
name: 'anticipatedCost',
width: '320px',
type: 'input',
isDisabled: false
},
{
label: '库存',
label: '库存/张',
name: 'stock',
addHtml: 'stock'
// width: '180px',
......
......@@ -3,15 +3,15 @@
<div class="topMsg">
<p class="pageTitle">基本信息</p>
</div>
<div class="live-room container" style="padding-top: 20px;" v-loading="sloading">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="服务名称" prop="couponName" style="width: 440px" id="couponName">
<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">
<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-form-item>
<el-form-item size="small" label="预估成本/元" prop="anticipatedCost" style="width: 440px" id="anticipatedCost">
<el-form-item size="small" label="预估成本/元:" prop="anticipatedCost" style="width: 440px" id="anticipatedCost">
<el-input size="small" :disabled="disabledCost" v-model.trim="ruleForm.anticipatedCost" maxlength="20" placeholder="请输入预估成本"></el-input>
</el-form-item>
<el-form-item size="small" label="有效期" prop="effectiveType">
<el-form-item size="small" label="有效期:" prop="effectiveType">
<div class="radioGroupWrap">
<el-radio-group v-model="ruleForm.effectiveType" :disabled="disabledContent">
<el-radio :label="3" class="itemBlock">永久有效</el-radio>
......@@ -32,7 +32,7 @@
</el-radio-group>
</div>
</el-form-item>
<el-form-item size="small" label="使用限制" prop="customUseLimit">
<el-form-item size="small" label="使用限制:" prop="customUseLimit">
<div class="radioGroupWrap">
<el-radio-group v-model="ruleForm.customUseLimit" :disabled="disabledContent">
<el-radio :label="0" class="itemBlock">不限制使用次数</el-radio>
......@@ -60,36 +60,30 @@
</el-radio-group>
</div>
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价" prop="vipPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<el-form-item v-if="!$isGroupUp" size="small" label="会员价/元:" prop="vipPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.vipPrice" placeholder="请输入会员价" @keyup.native="ruleForm.vipPrice = oninput(ruleForm.vipPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价" prop="shopPrice" style="width: 315px">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<!-- <template slot="append">元</template> -->
<span slot="suffix" class="suffix-label">元</span>
<el-form-item v-if="!$isGroupUp" size="small" label="门店价/元:" prop="shopPrice">
<el-input size="small" :disabled="disabledContent" maxlength="8" v-model="ruleForm.shopPrice" placeholder="请输入门店价" @keyup.native="ruleForm.shopPrice = oninput(ruleForm.shopPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<!-- 库存,集团版集团账号-无限制库存;其他-输入框 -->
<el-form-item size="small" label="库存" prop="stock" style="width: 315px">
<el-form-item size="small" label="库存/张:" prop="stock">
<!-- <el-input size="small" :disabled="title == '查看'" maxlength="6" v-model.number="ruleForm.stock" placeholder="请输入"></el-input> -->
<span v-if="$isGroupUp">无库存限制</span>
<el-input :disabled="title == '查看'" v-else class="w-150" v-model="ruleForm.stock" placeholder="请输入库存">
<span slot="suffix">张</span>
<!-- <span slot="suffix">张</span> -->
</el-input>
</el-form-item>
<el-form-item size="small" label="使用说明" prop="useDescription" style="width: 670px">
<el-form-item size="small" label="使用说明:" prop="useDescription">
<el-input size="small" :rows="6" :disabled="disabledDescription" type="textarea" v-model="ruleForm.useDescription" placeholder="请输入" maxlength="200" show-word-limit></el-input>
</el-form-item>
<el-form-item size="small" style="margin-left: -100px" v-show="isEdit">
<el-button style="margin-left: 80px" @click="editMessage">编辑</el-button>
</el-form-item>
<!-- <el-form-item size="small">
<el-button type="primary" @click="submitForm('ruleForm')" size="small">创建</el-button>
<el-button type="primary" @click="resetForm('ruleForm')" size="small">重置</el-button>
</el-form-item> -->
</el-form>
<div class="edit-container" v-if="$isGroupUp">
......@@ -225,12 +219,6 @@ export default {
ruleForm: {
anticipatedCost: '',
couponName: '',
// region: '',
// date1: '',
// date2: '',
// delivery: false,
// type: [],
// resource: '',
effectiveType: 3, //有效期(默认永久有效)
effectiveDays: '',
customUseLimit: 0, //使用限制(默认不限制使用次数)
......@@ -248,10 +236,6 @@ export default {
rules: {
anticipatedCost: [{ required: true, message: '请输入预估成本', trigger: 'change' }],
couponName: [{ required: true, message: '请输入服务名称', trigger: 'blur' }],
// region: [{ required: true, message: '请选择活动区域', trigger: 'change' }],
// date1: [{ type: 'date', required: true, message: '请选择日期', trigger: 'change' }],
// date2: [{ type: 'date', required: true, message: '请选择时间', trigger: 'change' }],
// type: [{ type: 'array', required: true, message: '请至少选择一个活动性质', trigger: 'change' }],
effectiveType: [{ required: true, message: '请选择有效期', trigger: 'change' }],
customUseLimit: [{ required: true, message: '请选择使用限制', trigger: 'change' }],
vipPrice: [
......@@ -403,33 +387,33 @@ export default {
},
submitForm(formName) {
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
if (this.isEdit == true) {
this.updateService()
clearTimeout(this.timer)
this.timer = setTimeout(() => {
this.$refs[formName].validate((valid, errorObj) => {
var merchantval = true
var merchantErrorObj = []
if (this.$isGroupUp) {
this.$refs.merchantRef.$refs[this.editChildRef].validate((merchantVaild, errorObj) => {
merchantval = merchantVaild
merchantErrorObj = errorObj
})
}
if (!valid) {
this.whereToGo(Object.keys(errorObj)[0])
} else if (!merchantval) {
this.whereToGo(Object.keys(merchantErrorObj)[0])
}
if (valid && merchantval) {
if (this.isEdit == true) {
this.updateService()
} else {
this.createService()
}
} else {
this.createService()
return false
}
} else {
return false
}
})
},500)
})
}, 500)
},
//创建服务
createService() {
......@@ -636,7 +620,7 @@ export default {
.radioGroupWrap {
width: 550px;
height: 164px;
background-color: #f4f6fc;
background-color: #f9f9f9;
padding-top: 10px;
padding-left: 20px;
}
......
......@@ -26,11 +26,11 @@
<span class="cursor-pointer" @click="orderCodeHandleDetail(scope.scope)" v-else>{{ scope.scope.orderCode }}</span>
</span>
</GLTable>
<GLDialog mode="small" :visible.sync="isDialogVisible" @onCancel="handleClose" @onOk="handleConfirm">
<GLDialog mode="mid" :visible.sync="isDialogVisible" @onCancel="handleClose" @onOk="handleConfirm">
<div slot="title">优惠券核销(请确保用户到店后核销,避免引起不必要问题)</div>
<div class="small-content">
<el-form :rules="rules" ref="ruleForm" :model="ruleForm" label-width="80px">
<el-form-item size="small" label="核销码" prop="verficationCode" style="width: 380px">
<div class="gl-form-page m-t-20">
<el-form :rules="rules" ref="ruleForm" :model="ruleForm" :label-width="defaultLabelWidth">
<el-form-item size="small" label="核销码:" prop="verficationCode">
<el-input size="small" v-model.trim="ruleForm.verficationCode" maxlength="50" placeholder="请输入核销码"></el-input>
</el-form-item>
</el-form>
......
......@@ -5,10 +5,10 @@
<!-- 基础信息 -->
<div class="title">基础信息</div>
<div class="info-box">
<div class="info-content">
<el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm" label-width="120px">
<div class="info-content gl-form-page">
<el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm" label-width="154px">
<el-form-item prop="userList">
<label slot="label" class="required">选择群发账号</label>
<label slot="label" class="required">选择群发账号:</label>
<el-button size="small" :disabled="isSelectCrowd" @click="openMembers">
<i class="el-icon-plus"></i>
选择成员
......@@ -27,7 +27,7 @@
</div>
</div>
</el-form-item>
<el-form-item label="选择客户" prop="selectType">
<el-form-item label="选择客户:" prop="selectType">
<el-radio-group v-model="basicForm.selectType" @change="radioChange">
<el-radio :label="1">全部客户</el-radio>
<el-radio :label="2">筛选客户</el-radio>
......@@ -35,8 +35,8 @@
</el-radio-group>
<div class="filter-box" v-show="basicForm.selectType == 2">
<div class="filter-memeber">
<el-form :model="basicForm.condition" label-width="120px">
<el-form-item label="性别">
<el-form :model="basicForm.condition" label-width="154px">
<el-form-item label="性别:">
<el-radio-group v-model="basicForm.condition.sex" @change="valueChange">
<el-radio label>全部</el-radio>
<el-radio :label="1">男性</el-radio>
......@@ -44,15 +44,15 @@
<el-radio :label="0">未知性别</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item label="所在群聊">
<el-form-item label="所在群聊:">
<el-select v-model="basicForm.condition.chat" @change="valueChange" @focus="groupFocus" :size="size" value-key="id" multiple collapse-tags placeholder="请选择">
<el-option v-for="item in groupList" :key="item.id" :label="item.groupName" :value="item"></el-option>
</el-select>
</el-form-item>
<el-form-item label="添加客户时间">
<el-form-item label="添加客户时间:">
<el-date-picker v-model="basicForm.condition.date" @change="valueChange" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" :size="size" style="width: 320px"></el-date-picker>
</el-form-item>
<el-form-item label="标签筛选">
<el-form-item label="标签筛选:">
<el-button size="small" @click="openLabel">
<i class="el-icon-plus"></i>
标签筛选
......@@ -95,13 +95,18 @@
<!-- 编辑入群欢迎语 -->
<div class="title">编辑群发内容</div>
<div class="group-content">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="154px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<label slot="label" class="required">群发内容:</label>
<GLEditor ref="welcome" :form="'customer'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<div class="transform-text">
<div class="tips-icon"><img src="@/assets/guestCustom/tips.png" alt /></div>
<span>每位客户每天可接收1条群发消息,超过接收上限的客户将无法再收到群发消息。</span>
<!-- <span v-if="form == 'customerGroup'">每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span> -->
</div>
<el-form-item label="发送时间:" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
<el-radio :label="1">立即发送</el-radio>
<el-radio :label="2">定时发送</el-radio>
......@@ -454,7 +459,7 @@ export default {
if (previewList.length != 0) {
this.basicForm.attachmentList = previewList
}
if (this.basicForm.attachmentList && this.basicForm.attachmentList.length && this.basicForm.attachmentList[0].attType == 1 && this.basicForm.attachmentList[0].attContent != "") {
if (this.basicForm.attachmentList && this.basicForm.attachmentList.length && this.basicForm.attachmentList[0].attType == 1 && this.basicForm.attachmentList[0].attContent != '') {
if (this.basicForm.attachmentList.length > 9) {
return (this.attachmentText = '附件不可超过9个')
} else {
......@@ -774,7 +779,8 @@ export default {
.info-content {
// width: calc(100% - 360px);
width: 50%;
width: 66%;
padding-right: 20px;
.filter-box {
// margin-left: 120px;
......@@ -816,10 +822,6 @@ export default {
.basic-form {
padding: 32px 0 20px 20px;
/deep/.el-input {
width: 320px;
}
}
}
}
......@@ -830,8 +832,37 @@ export default {
}
.preview {
flex: 1;
margin-right: 24px;
margin-bottom: 100px;
margin-bottom: 58px;
}
}
.transform-text {
display: flex;
// align-items: center;
justify-self: center;
color: #000;
font-size: 14px;
padding: 10px 16px;
background-color: rgba(230, 233, 255, 0.49);
border: 1px solid rgba(88, 80, 255, 0.49);
border-radius: 4px;
line-height: 20px;
margin-left: 154px;
min-width: 488px;
max-width: 844px;
width: auto;
box-sizing: border-box;
.tips-icon {
display: flex;
align-items: center;
height: 20px;
img {
width: 14px;
height: 14px;
margin-right: 8px;
}
}
}
......@@ -939,10 +970,16 @@ export default {
.el-scrollbar {
padding-bottom: 10px;
}
.gl-form-page .el-form .welcome-box {
min-width: 488px;
max-width: 844px;
width: auto;
}
}
.group-content {
padding: 22px 0 20px 20px;
padding: 22px 0 20px 0;
}
.tips-text {
......
......@@ -5,13 +5,13 @@
<!-- 基础信息 -->
<div class="title">基础信息</div>
<div class="info-box">
<div class="info-content">
<el-form :model="basicForm" class="basic-form" :rules="basicRules" ref="basicForm" label-width="120px">
<el-form-item label="群发名称" prop="massName">
<div class="info-content gl-form-page">
<el-form :model="basicForm" class="basic-form" :rules="basicRules" ref="basicForm" label-width="154px">
<el-form-item label="群发名称:" prop="massName">
<el-input v-model="basicForm.massName" :size="size" placeholder="群发名称仅内部可见" maxlength="10"></el-input>
</el-form-item>
<el-form-item prop="userList">
<label slot="label" class="required">选择群主</label>
<label slot="label" class="required">选择群主:</label>
<el-button size="small" @click="openMembers">
<i class="el-icon-plus"></i>
全部账号
......@@ -30,14 +30,18 @@
</el-form>
<!-- 编辑入群欢迎语 -->
<div class="title">编辑群发内容</div>
<div>
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<div class="group-content">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="154px">
<el-form-item prop="attachmentList">
<label slot="label" class="required">群发内容</label>
<label slot="label" class="required">群发内容:</label>
<GLEditor ref="welcome" :form="'customerGroup'" style="line-height: 12px;" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<div class="transform-text">
<div class="tips-icon"><img src="@/assets/guestCustom/tips.png" alt /></div>
<span>每个客户群每天可接收1条群发消息,超过接收上限的客户群将无法再收到群发消息。</span>
</div>
<el-form-item label="发送时间:" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
<el-radio :label="1">立即发送</el-radio>
<el-radio :label="2">定时发送</el-radio>
......@@ -405,7 +409,7 @@ export default {
message: '操作成功!'
})
// this.$router.push('/customerTransform/index')
this.$tracker.track(Object.assign({},{pageName:'群发助手',name:'新建客户群群发',params}))
this.$tracker.track(Object.assign({}, { pageName: '群发助手', name: '新建客户群群发', params }))
} else {
this.$message({
type: 'error',
......@@ -459,26 +463,54 @@ export default {
justify-content: space-between;
.info-content {
// width: calc(100% - 360px);
width: 50%;
// flex: 1;
width: 66%;
padding-right: 20px;
}
}
.basic-form {
padding: 32px 0 20px 66px;
/deep/.el-input {
width: 320px;
}
padding: 32px 0 20px 20px;
}
.form-tips {
font-size: 12px;
color: #999;
}
.preview {
flex: 1;
margin-right: 24px;
margin-bottom: 100px;
margin-bottom: 58px;
}
}
.transform-text {
display: flex;
// align-items: center;
justify-self: center;
color: #000;
font-size: 14px;
padding: 10px 16px;
background-color: rgba(230, 233, 255, 0.49);
border: 1px solid rgba(88, 80, 255, 0.49);
border-radius: 4px;
line-height: 20px;
margin-left: 154px;
min-width: 488px;
max-width: 844px;
width: auto;
box-sizing: border-box;
.tips-icon {
display: flex;
align-items: center;
height: 20px;
img {
width: 14px;
height: 14px;
margin-right: 8px;
}
}
}
.group-content {
padding: 22px 0 20px 0;
}
.footer-panel {
display: flex;
align-items: center;
......@@ -561,6 +593,11 @@ export default {
.el-scrollbar {
padding-bottom: 10px;
}
.gl-form-page .el-form .welcome-box {
min-width: 488px;
max-width: 844px;
width: auto;
}
}
/deep/.content .btn-group {
line-height: 14px;
......
......@@ -17,18 +17,8 @@
<el-input :size="size" v-model.trim="searchForm.name" @keyup.enter.native="search" clearable placeholder="请输入姓名搜索"></el-input>
</el-form-item>
<el-form-item label="跟进专员类型">
<el-select
v-model="searchForm.status"
clearable
:size="size"
placeholder="全部"
>
<el-option
v-for="item in state"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
<el-select v-model="searchForm.status" clearable :size="size" placeholder="全部">
<el-option v-for="item in state" :key="item.value" :label="item.label" :value="item.value"></el-option>
</el-select>
</el-form-item>
......@@ -145,7 +135,7 @@ export default {
},
unique(arr) {
let res = new Set()
return arr.filter((item) => {
return arr.filter(item => {
let id = JSON.stringify(item)
if (res.has(id)) {
return false
......@@ -176,7 +166,7 @@ export default {
this.selectData = []
}
res[0].entmicroStaffResponses.forEach(e => {
this.state.push({value: e.followerTypeId, label: e.followerName})
this.state.push({ value: e.followerTypeId, label: e.followerName })
})
this.state = this.unique(this.state)
} else {
......
......@@ -120,7 +120,7 @@ export default {
}
},
mounted() {
this.getCustomerDetail()
this.handleRefresh()
// this.getStatistic()
// console.log(this.basicInfo.condition, '----')
},
......
......@@ -9,38 +9,40 @@
</div>
<div class="info-box">
<div class="info-content">
<el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm" label-width="120px">
<el-form-item prop="userList">
<label slot="label" class="required">发表成员</label>
<el-button size="small" @click="openMembers">
<i class="el-icon-plus"></i>
选择成员
</el-button>
<div class="sale-select" v-show="basicForm.userList && basicForm.userList.length != 0">
<div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag effect="plain" type="info" v-for="(tag, idx) in basicForm.userList" :key="idx" closable :disable-transitions="false" @close="remove(tag, idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
<div class="gl-form-page">
<el-form class="basic-form" :model="basicForm" :rules="basicRules" ref="basicForm">
<el-form-item prop="userList">
<label slot="label" class="required">发表成员:</label>
<el-button size="small" @click="openMembers">
<i class="el-icon-plus"></i>
选择成员
</el-button>
<div class="sale-select" v-show="basicForm.userList && basicForm.userList.length != 0">
<div :key="key" class="el-input-tag input-tag-wrapper">
<el-tag effect="plain" type="info" v-for="(tag, idx) in basicForm.userList" :key="idx" closable :disable-transitions="false" @close="remove(tag, idx)">
<i class="el-icon-user-solid"></i>
{{ tag.staffName }}
</el-tag>
</div>
</div>
</div>
<div class="filter-footer">
<!-- <span>将消息发送给客户符合条件的客户</span> -->
<div class="filter-number">
查看客户数
<el-button type="text" v-show="isUpdate" :loading="viewLoading" @click="viewMembers">查看</el-button>
<!-- <span v-show="isUpdate" @click="viewMembers">查看</span> -->
<span v-show="!isUpdate">{{ groupNumber }}</span>
<div class="filter-footer">
<!-- <span>将消息发送给客户符合条件的客户</span> -->
<div class="filter-number">
查看客户数
<el-button type="text" v-show="isUpdate" :loading="viewLoading" @click="viewMembers">查看</el-button>
<!-- <span v-show="isUpdate" @click="viewMembers">查看</span> -->
<span v-show="!isUpdate">{{ groupNumber }}</span>
</div>
</div>
</div>
</el-form-item>
</el-form>
</el-form-item>
</el-form>
</div>
<!-- 编辑入群欢迎语 -->
<div class="title">编辑朋友圈消息</div>
<div class="group-content">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm" label-width="120px">
<div class="group-content gl-form-page">
<el-form :model="basicForm" :rules="basicRules" ref="groupForm">
<el-form-item prop="attachmentList">
<label slot="label" class="required">内容正文</label>
<label slot="label" class="required">内容正文:</label>
<GLEditor ref="welcome" :form="'customer'" :btnList="btnList" @previewWord="previewForm"></GLEditor>
<div v-show="attachmentShow" class="el-form-item__error">{{ attachmentText }}</div>
<div class="tips-text">
......@@ -48,7 +50,7 @@
<span>因企业微信限制,普通图片:总像素不超过1555200,大小不超过10M,数量不超过9张。视频建议不超过1280x720,帧率30FPS,视频码率1.67 Mbps,最长不超过30S,最大不超过10MB</span>
</div>
</el-form-item>
<el-form-item label="发送时间" prop="sendType">
<el-form-item label="发送时间:" prop="sendType">
<el-radio-group v-model="basicForm.sendType">
<el-radio :label="1">立即发送</el-radio>
<el-radio :label="2">定时发送</el-radio>
......@@ -432,8 +434,9 @@ export default {
}
.tips-text {
display: flex;
align-items: center;
// align-items: center;
justify-self: center;
margin-left: 154px;
color: #000;
font-size: 14px;
padding: 6px 16px;
......@@ -445,7 +448,7 @@ export default {
.tips-icon {
width: 14px;
height: 14px;
margin-right: 8px;
margin: 6px 8px 0 0;
}
}
.info-box {
......@@ -477,6 +480,7 @@ export default {
justify-content: space-between;
align-items: center;
color: #999;
margin-left: 154px;
font-size: 14px;
.filter-number {
display: inline-block;
......@@ -529,6 +533,7 @@ export default {
.sale-select {
display: flex;
align-items: center;
margin-left: 80px;
}
.input-tag-wrapper {
max-height: 75px;
......@@ -598,8 +603,11 @@ export default {
.el-scrollbar {
padding-bottom: 10px;
}
.welcome-box {
display: inline-block;
}
}
.group-content {
padding: 22px 0 20px 20px;
padding: 22px 0 20px;
}
</style>
......@@ -307,7 +307,7 @@ export default {
},
mounted() {
this.getListData()
this.handleRefresh()
this.getOptionsList('searchFormData')
},
......
......@@ -41,15 +41,13 @@
</GLTable>
<!-- 表格区域 end -->
</div>
<GLDialog title="作废确认" mode="small" :visible.sync="isCancelVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="small-content">
<p>请先和客户沟通再确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<el-form ref="cancelRef" label-width="80px" :rules="cancelRules" :model="cancelForm">
<el-form-item label="作废原因" prop="cancelReason" class="m-t-20">
<el-input style="width: 410px;" :size="size" type="textarea" v-model="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input>
</el-form-item>
</el-form>
</div>
<GLDialog title="作废确认" mode="mid" :visible.sync="isCancelVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<p class="m-t-20" style="padding-left: 76px;">请先和客户沟通再确认,避免引起客诉,作废后客户将不可使用该礼包下所有优惠卷</p>
<el-form ref="cancelRef" label-width="154px" :rules="cancelRules" :model="cancelForm">
<el-form-item label="作废原因" prop="cancelReason" class="m-t-20">
<el-input style="width: 432px;" :size="size" type="textarea" v-model="cancelForm.cancelReason" placeholder="请输入作废原因" maxlength="50" rows="3" show-word-limit></el-input>
</el-form-item>
</el-form>
</GLDialog>
</div>
</template>
......
......@@ -342,13 +342,14 @@ export default {
<style lang="scss" scoped>
.welcome-box {
display: inline-block !important;
// padding-top: 20px;
// margin-left: 87px;
}
.content {
display: inline-block;
vertical-align: text-top;
width: calc(100% - 103px);
width: calc(100% - 103px) !important;
// margin-left: 12px;
.content-bg {
background-color: #f7f7f7;
......
......@@ -18,8 +18,7 @@
</div>
<div class="marketing-content">{{ item.content }}</div>
<div class="marketing-btn">
<GLButton style="width: 118px;" display="disabled" type="primary" :size="size" :fn="item.linkName"
@click="jumpPage(item.path)">{{ item.linkName }}</GLButton>
<GLButton style="width: 118px;" display="disabled" type="primary" :size="size" :fn="item.linkName" @click="jumpPage(item.path)">{{ item.linkName }}</GLButton>
<!-- <el-button
style="width: 118px;"
:disabled="!$globalState.routers.find(i => i.compath == item.path)"
......@@ -156,16 +155,14 @@
<div class="data-item" style="margin-top: 10px;">
<div class="data-half" style="margin-right: 20px;">
<span class="data-half-name">周同比</span>
<span
:class="[equity.weekFlag ? 'data-red-percentage data-half-red' : 'data-green-percentage data-half-green']">
<span :class="[equity.weekFlag ? 'data-red-percentage data-half-red' : 'data-green-percentage data-half-green']">
<span :class="[equity.weekFlag ? 'data-red-triangle' : 'data-green-triangle']"></span>
<span>{{ equity.lastWeekDayMemberShipCompared ? equity.lastWeekDayMemberShipCompared : '--' }}</span>
</span>
</div>
<div class="data-half">
<span class="data-half-name">日环比</span>
<span
:class="[equity.dayFlag ? 'data-red-percentage data-half-red' : 'data-green-percentage data-half-green']">
<span :class="[equity.dayFlag ? 'data-red-percentage data-half-red' : 'data-green-percentage data-half-green']">
<span :class="[equity.dayFlag ? 'data-red-triangle' : 'data-green-triangle']"></span>
<span>{{ equity.yesterdayMembershipSequential ? equity.yesterdayMembershipSequential : '--' }}</span>
</span>
......@@ -189,8 +186,7 @@
<div class="data-item">
<span class="data-title w-118">累计产值</span>
<span class="date-content">
<span class="data-num orange">{{ equity.totalProductionValue ? equity.totalProductionValue : '--'
}}</span>
<span class="data-num orange">{{ equity.totalProductionValue ? equity.totalProductionValue : '--' }}</span>
元
</span>
</div>
......@@ -200,19 +196,15 @@
</div>
</div>
<div class="border home-bottom">
<div class="title bottom-title">
<div class="bottom-text">店铺数据</div>
<div class="bottom-title">
<div class="bottom-text">微店数据</div>
<div class="bottom-time">
<div class="bottom-btn">
<el-button :style="currentTime == 'week' ? '' : blackColor" type="text" @click="storeData('week')">本周
</el-button>
<el-button :style="currentTime == 'month' ? '' : blackColor" type="text" @click="storeData('month')">本月
</el-button>
<el-button :style="currentTime == 'year' ? '' : blackColor" type="text" @click="storeData('year')">全年
</el-button>
<el-button :style="currentTime == 'week' ? '' : blackColor" type="text" @click="storeData('week')">本周</el-button>
<el-button :style="currentTime == 'month' ? '' : blackColor" type="text" @click="storeData('month')">本月</el-button>
<el-button :style="currentTime == 'year' ? '' : blackColor" type="text" @click="storeData('year')">全年</el-button>
</div>
<el-date-picker class="bottom-picker" v-model="date" type="daterange" size="small" range-separator="至"
start-placeholder="开始日期" end-placeholder="结束日期" @change="dateChange"></el-date-picker>
<el-date-picker class="bottom-picker" v-model="date" type="daterange" size="small" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="dateChange"></el-date-picker>
</div>
</div>
<div class="bottom-content">
......@@ -221,37 +213,39 @@
<div v-show="!order.list" class="no-data">暂无数据</div>
</div>
<div class="bottom-right">
<div class="bottom-right-item">
<div class="item-content">
<img src="@/assets/icon-amount.png" alt />
<div>
<div>成交金额</div>
<div class="item-number">
{{ order.totalAmount ? order.totalAmount : '--' }}
<span>元</span>
<div class="bottom-right-boxs">
<div class="bottom-right-item">
<div class="item-content">
<img src="@/assets/icon-amount.png" alt />
<div>
<div>成交金额</div>
<div class="item-number">
{{ order.totalAmount ? order.totalAmount : '--' }}
<span>元</span>
</div>
</div>
</div>
</div>
<!-- <div class="item-chain">
<!-- <div class="item-chain">
<span>同比上月</span>
<span class="green-num">0.3%</span>
</div>-->
</div>
<div class="bottom-right-item">
<div class="item-content">
<img src="@/assets/icon-order.png" alt />
<div>
<div>订单总数</div>
<div class="item-number">
{{ order.totalCount ? order.totalCount : '--' }}
<span>单</span>
</div>
<div class="bottom-right-item">
<div class="item-content">
<img src="@/assets/icon-order.png" alt />
<div>
<div>订单总数</div>
<div class="item-number">
{{ order.totalCount ? order.totalCount : '--' }}
<span>单</span>
</div>
</div>
</div>
</div>
<!-- <div class="item-chain">
<!-- <div class="item-chain">
<span>同比上月</span>
<span class="red-num">0.3%</span>
</div>-->
</div>
</div>
</div>
</div>
......@@ -700,9 +694,18 @@ export default {
margin-top: 20px;
.bottom {
&-title {
display: flex;
justify-content: space-between;
// &-title {
// display: flex;
// justify-content: space-between;
// }
&-text {
font-size: 20px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 20px;
margin-bottom: 20px;
}
&-btn {
......@@ -710,6 +713,7 @@ export default {
}
&-time {
margin-left: 36px;
width: 31.5%;
}
......@@ -722,20 +726,28 @@ export default {
&-content {
display: flex;
justify-content: space-between;
}
&-right {
margin-top: 10px;
min-width: 240px;
width: 270px;
height: 210px;
background: #f9f9fc;
border-radius: 3px;
&-boxs {
margin: 24px 24px 31px 24px;
}
&-item {
font-size: 16px;
color: #333;
margin-bottom: 21px;
&:first-child {
border-bottom: 1px solid #e5e5e5;
padding-bottom: 31px;
}
&:last-child {
margin-top: 50px;
margin-bottom: 0;
padding-top: 24px;
}
.item-content {
......
......@@ -5,8 +5,8 @@
<div class="home-set-form flex-grow">
<div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': labelWidth, width: '120px', 'text-align': 'center' }">
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule">
<div slot="merchantQrcode" slot-scope="scope" :style="{ 'margin-left': defaultLabelWidth, width: '120px', 'text-align': 'center' }">
<p>
<img class="img-120" :src="editForm[scope.scope.name]" />
</p>
......@@ -15,7 +15,7 @@
<template slot="bannerBtn">
<el-button type="primary" :size="size" @click="handleBannerAdd">新增banner</el-button>
</template>
<div :style="{ 'margin-left': labelWidth }" slot="bannerList" slot-scope="scope">
<div :style="{ 'margin-left': defaultLabelWidth }" slot="bannerList" slot-scope="scope">
<div v-for="(subItem, subIndex) in editForm[scope.scope.name]" :key="subIndex" class="flex">
<!-- 上传图片 -->
<div class="banner-upload-box">
......@@ -136,20 +136,17 @@
<el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox>
</el-checkbox-group>
</div>
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> -->
<div class="approval" slot="customerServerUserId">
<div class="approval" slot="customerServerUserId" :key="freshFlag">
<el-radio v-model="editForm.customerServerType" :label="1">
<el-select style="width: 320px" v-model="editForm.customerServerUserId" :disabled="editForm.customerServerType == 2" :clearable="true" :placeholder="'请选择在线客服'" :no-data-text="'无数据'" @change="selectAddAttr">
<el-select style="width: 432px" v-model="editForm.customerServerUserId" :disabled="editForm.customerServerType == 2" :clearable="true" :placeholder="'请选择在线客服'" :no-data-text="'无数据'" @clear="selectAddAttr" @change="selectAddAttr">
<el-option v-for="value in baseData.consultantList" :key="value.userOneid" :label="value.staffName" :value="value.userOneid"></el-option>
</el-select>
</el-radio>
<el-button v-show="!baseData.consultantList.length" type="text"></el-button>
<p style="color: #5850ff;margin-left: 22px;" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
<el-radio v-model="editForm.customerServerType" :label="2">
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-input style="width: 320px" placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable></el-input>
<!-- <el-radio v-model="editForm.customerServerType" v-if="showGh" :label="2"> -->
<el-input placeholder="请输入链接" :disabled="editForm.customerServerType == 1" v-model="editForm.customerServerUrl" clearable @change="handleServerUrlChange"></el-input>
</el-radio>
</div>
</glsx-combi-form>
......@@ -233,6 +230,7 @@ export default {
// 查看大图
isImgVisible: false,
state: '',
freshFlag: new Date(),
dialogObj: {
url: '',
uploadType: 'img'
......@@ -300,7 +298,7 @@ export default {
noticeToSubMerchant: 'N',
bannerMerchantList: [],
noticeMerchantList: [],
customerServerType: 1,
customerServerType: '',
customerServerUrl: ''
},
bannerItem: {
......@@ -322,7 +320,6 @@ export default {
{ confId: '2', confName: '图文介绍' },
{ confId: '3', confName: '视频介绍' }
],
labelWidth: '144px',
isEdit: true,
externalFormList: [
{
......@@ -457,6 +454,10 @@ export default {
},
methods: {
handleServerUrlChange(value) {
this.editForm.customerServerType = value ? 2 : ''
this.freshFlag = new Date()
},
selectAddAttr(value) {
var tempObj = {
customerServerName: '',
......@@ -467,6 +468,7 @@ export default {
this.editForm.customerServerName = ''
this.editForm.customerServerUserTitle = ''
if (value) {
this.editForm.customerServerType = 1
tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
this.editForm.customerServerId = tempObj.id
this.editForm.customerServerName = tempObj.staffName
......@@ -475,7 +477,10 @@ export default {
customerServerName: tempObj.staffName,
customerServerUserTitle: tempObj.staffTitle
})
return true
}
this.editForm.customerServerType = ''
this.freshFlag = new Date()
},
getInfo() {
this.$apis.homeSet.getHomeInfoListApi({}).then(res => {
......@@ -486,7 +491,7 @@ export default {
this.editForm.clueList = res.clueList.map(k => k.clueId)
this.editForm.preferentialPolicy = res.preferentialPolicy
this.editForm.customerServerUserId = ''
this.editForm.customerServerType = +res.customerServerType || 1
this.editForm.customerServerType = +res.customerServerType
this.editForm.customerServerUrl = res.customerServerUrl
this.editForm.bannerToSubMerchant = res.bannerToSubMerchant || 'N'
this.editForm.noticeToSubMerchant = res.noticeToSubMerchant || 'N'
......@@ -503,7 +508,7 @@ export default {
})
}
if (res.bannerList && res.bannerList.length) {
res.bannerList.forEach((item,inx) => {
res.bannerList.forEach((item, inx) => {
var params = {
bannerImg: item.bannerImg,
goodsId: item.goods ? item.goods.id : '',
......@@ -821,7 +826,15 @@ export default {
return { clueId: k }
})
: []
console.log(params)
// 在线客服
switch (this.editForm.customerServerType) {
case 1:
!this.editForm.customerServerUserId && (params.customerServerType = '')
break
case 2:
!this.editForm.customerServerUrl && (params.customerServerType = '')
break
}
this.$apis.homeSet.updateHomeApi(params).then(res => {
this.$message({
message: res.code == '0' ? '操作成功' : res.message,
......
<template>
<div class="container">
<el-form ref="materialAddForm" :model="materialAddForm" label-width="146px" :rules="materialAddFormRules">
<div class="container marketing">
<el-form ref="materialAddForm" :model="materialAddForm" :label-width="defaultLabelWidth" :rules="materialAddFormRules">
<div class="creat-material">
<h4>{{ title }}</h4>
<el-divider></el-divider>
<div class="form-item-container">
<el-form-item v-if="routeInfo.addOrEdit == 1" label="选择素材组:" prop="groupId">
<div class="m-l-20">
<el-form-item v-if="routeInfo.addOrEdit == 1" label="选择素材组:" prop="groupId">
<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-select>
......@@ -15,10 +15,10 @@
<el-option v-for="item in groupCounter" :key="item.id" :label="item.materialGroupName" :value="item.id"></el-option>
</el-select>
</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-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 :label="1">PDF文件</el-radio>
<!-- <el-radio :label="2">自定义链接</el-radio> -->
......@@ -40,12 +40,12 @@
</div>
<!-- 选择自定义链接 -->
<!-- <div v-show="materialAddForm.materialType == 2">
<el-form :model="linkForm" :rules="linkRules" ref="linkForm" label-width="100px">
<el-form-item label="链接地址" prop="link">
<el-input v-model="linkForm.link" placeholder="请填写跳转链接" maxlength="150" show-word-limit></el-input>
</el-form-item>
</el-form>
</div> -->
<el-form :model="linkForm" :rules="linkRules" ref="linkForm" label-width="100px">
<el-form-item label="链接地址" prop="link">
<el-input v-model="linkForm.link" placeholder="请填写跳转链接" maxlength="150" show-word-limit></el-input>
</el-form-item>
</el-form>
</div> -->
<!-- 选择图文 -->
<div v-show="materialAddForm.materialType == 3">
<textBox @change="writeChange" ref="textBox" @forbid="forbidEdit"></textBox>
......@@ -57,7 +57,7 @@
<div class="track">
<h4>追踪设置</h4>
<el-divider></el-divider>
<div form-item-container>
<div form-item-container class="m-l-20">
<el-form-item prop="businessType">
<span slot="label">
<span class="label-word">
......@@ -65,7 +65,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="给素材添加业务类型,客户可根据业务类型筛选,也可在客户浏览了该素材时能及时提醒跟进员工,以提高客户成单率。">
<img slot="reference" src="@/assets/question.png" alt="" />
</el-popover>
:
:
</span>
</span>
<el-checkbox-group v-model="materialAddForm.businessType">
......@@ -79,7 +79,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="有效浏览:指客户在页面的停留时间超过15秒并且有交互行为,非完全静止">
<img slot="reference" src="@/assets/question.png" alt="" />
</el-popover>
:
:
</span>
</span>
<el-checkbox :value="materialAddForm.isNotifySender" :checked="checked" @change="notifyChange">客户打开素材链接时通知发送人</el-checkbox>
......@@ -92,7 +92,7 @@
<el-popover placement="top-start" width="200" trigger="hover" content="标签失效后在客户信息中看不到此标签,但是在素材效果统计的记录仍然存在">
<img slot="reference" src="@/assets/question.png" alt="" />
</el-popover>
:
:
</span>
</span>
<span class="track-behavior">给浏览了素材的客户自动打上标签,并且标签在30天后自动失效</span>
......@@ -114,7 +114,7 @@
</div>
</div>
<div class="share">
<div class="share-container">
<div class="share-container m-l-20">
<div class="share-top">
<span>分享设置</span>
<span class="share-tips">设置自定义分享内容,能提高用户体验,促进用户打开链接的概率</span>
......@@ -132,14 +132,14 @@
</div>
<el-divider></el-divider>
<div class="share-desc" v-show="descVisible">
<div class="share-desc-left">
<el-form-item label="分享标题:">
<div class="share-desc-left m-l-20">
<el-form-item label="分享标题:">
<el-input v-model="materialAddForm.materialTitle" :size="size" maxlength="30" show-word-limit placeholder="请输入自定义标题"></el-input>
</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-form-item>
<el-form-item label="封面:">
<el-form-item label="封面:">
<div class="img-div">
<div class="put-img" v-show="materialAddForm.titleUrl">
<img :src="materialAddForm.titleUrl" alt="" />
......@@ -684,7 +684,7 @@ export default {
}
.share {
margin-bottom: 80px;
margin-bottom: 20px;
&-container {
display: flex;
justify-content: space-between;
......@@ -719,7 +719,7 @@ export default {
.el-input--small,
.el-select,
.el-select--small {
width: 411px;
width: 432px;
}
.btn-cancle {
border-color: #5850ff;
......
......@@ -43,10 +43,10 @@
</div>
<el-button class="seeEquity" size="small" type="primary" @click="openDialog">查看权益</el-button>
</div>
<div class="cardDetail editForm" v-else>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="90px" class="demo-ruleForm" style="width: 500px">
<div class="cardDetail editForm gl-form-page" v-else>
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" class="demo-ruleForm">
<template v-if="!showGh">
<el-form-item label="会员卡名" prop="cardName" size="small">
<el-form-item label="会员卡名:" prop="cardName" size="small">
<el-input v-model.trim="ruleForm.cardName" size="small" class="cardNameInput" show-word-limit placeholder="请输入会员卡名" maxlength="15"></el-input>
</el-form-item>
</template>
......@@ -60,14 +60,14 @@
</template>
<div class="pricesMerge">
<el-form-item label="售价" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" placeholder="请输入售价" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<span slot="suffix" class="suffix-label">元</span>
<el-form-item label="售价/元:" size="small" prop="price" style="width: 300px">
<el-input v-model="ruleForm.price" size="small" style="width: 136px;" placeholder="请输入售价" @keyup.native="ruleForm.price = oninput(ruleForm.price)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<el-form-item label="市场价" prop="marketPrice" size="small" style="width: 300px">
<el-input v-model="ruleForm.marketPrice" size="small" placeholder="请输入市场价" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<span slot="suffix" class="suffix-label">元</span>
<el-form-item label="市场价/元:" prop="marketPrice" size="small" style="width: 300px">
<el-input v-model="ruleForm.marketPrice" size="small" style="width: 136px;" placeholder="请输入市场价" @keyup.native="ruleForm.marketPrice = oninput(ruleForm.marketPrice)">
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
</div>
......@@ -110,7 +110,7 @@
</span>
</GLTable>
</div>
<GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<div class="modal-body">
<div class="equity-name">汽车权益</div>
<div class="equity-panel">
......@@ -133,7 +133,7 @@
</div>
</GLDialog>
<!-- 推广弹窗 -->
<GLDialog :mode="mode" title="试用推广" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<GLDialog :mode="mode" title="试用推广" @onOk="handleQRConfirm" @onCancel="handleQRClose" :visible.sync="isQRVisible">
<el-form class="proForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="form">
<div class="main-qrcode">
......@@ -771,7 +771,6 @@ export default {
width: 215px;
}
/deep/.el-dialog__body {
.modal-body {
max-height: 400px;
}
......
......@@ -5,14 +5,14 @@
<p class="pageTitle" v-else>编辑套餐</p>
<!-- <el-button type="primary" size="small" @click="goBack">返回</el-button> -->
</div>
<div class="live-room container marketing ">
<el-form ref="ruleForm" :rules="rules" :model="ruleForm" label-width="120px" class="demo-ruleForm">
<el-form-item size="small" label="套餐名称" prop="packageName" style="width: 440px">
<div class="live-room container marketing gl-form-page">
<el-form ref="ruleForm" :rules="rules" :model="ruleForm" class="demo-ruleForm">
<el-form-item size="small" label="套餐名称:" prop="packageName">
<el-input size="small" v-model="ruleForm.packageName" maxlength="15" placeholder="请输入套餐名称"></el-input>
</el-form-item>
<el-form-item size="small" label="服务内容" class="is-required">
<el-form-item size="small" label="服务内容:" class="is-required">
<el-button @click="handleGiftAdd" size="small" class="default-blue-btn">选择服务</el-button>
<div class="gift-block m-t-10" :style="{ 'margin-left': labelWidth }" v-show="choseItemList.length != 0">
<div class="gift-block m-t-10" :style="{ 'margin-left': defaultLabelWidth }" v-show="choseItemList.length != 0">
<div v-for="(item, index) in orderShow" :key="index">
<div class="gift-box flex-top" v-show="couponObj[item].list.length">
<img class="gift-logo" :src="couponObj[item].logo" alt="" />
......@@ -30,9 +30,9 @@
<div class="el-form-item__error" v-if="setmealContentRules">请选择套餐</div>
</el-form-item>
<el-form-item size="small" label="套餐售价" prop="packagePrice" style="width: 315px">
<el-form-item size="small" label="套餐售价/元:" prop="packagePrice">
<el-input size="small" v-model="ruleForm.packagePrice" placeholder="请输入套餐售价" @keyup.native="ruleForm.packagePrice = oninput(ruleForm.packagePrice)">
<span slot="suffix" class="suffix-label">元</span>
<!-- <span slot="suffix" class="suffix-label">元</span> -->
</el-input>
</el-form-item>
<!-- <template v-if="accountLevel == 4">
......@@ -60,7 +60,7 @@
<span class="price">{{ totalShopPrice }}元</span>
</div>
</template> -->
<el-form-item size="small" label="说明" prop="notes" style="width: 670px">
<el-form-item size="small" label="说明:" prop="notes">
<el-input size="small" :rows="6" type="textarea" v-model="ruleForm.notes" placeholder="请输入" maxlength="200" show-word-limit></el-input>
</el-form-item>
</el-form>
......@@ -195,7 +195,7 @@ export default {
this.getServiceInfo()
// this.getSetmealServiceFun() //获取服务套餐,执行完了之后去获取编辑详情
},
mounted() {},
mounted() { },
methods: {
//获取会员卡上方卡片的相关信息
getCardContentFun() {
......
......@@ -3,11 +3,11 @@
<div class="edit-car marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<div slot="merchantTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<div slot="merchantTable" :style="{ 'margin-left': defaultLabelWidth, width: `calc(100% - ${defaultLabelWidth} )` }">
<GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
......@@ -58,7 +58,6 @@ export default {
id: ''
},
editStatus: false,
labelWidth: '144px',
editForm: {
// 专区类型(1发现频道,2商城专区)
zoneType: '2',
......
......@@ -61,12 +61,12 @@
<!-- 表格区域 - 全部订单/售后订单 - end -->
</div>
<!-- 快递信息 -->
<GLDialog v-if="isExpressVisible" title="输入快递信息" mode="small" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose">
<glsx-combi-form class="small-content" ref="expressRef" labelWidth="100px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form>
<GLDialog v-if="isExpressVisible" title="输入快递信息" mode="mid" okText="确定" cancelText="取消" :visible.sync="isExpressVisible" @onOk="handleExpressConfirm" @onCancel="handleExpressClose">
<glsx-combi-form class="small-content m-t-20" ref="expressRef" :isBlock="true" defaultWidth="284px" :isEdit="isEdit" :formRef="editChildRef" :formObj="expressForm" :formData="expressFormData" :formRules="expressRules"></glsx-combi-form>
</GLDialog>
<!-- 订单核销 -->
<GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="small" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose">
<glsx-combi-form class="small-content" ref="writeOffRef" labelWidth="100px" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form>
<GLDialog v-if="isWriteOffVisible" title="订单核销(请确保用户到店后核销,避免引起不必要问题)" mode="mid" okText="确定" cancelText="取消" :visible.sync="isWriteOffVisible" @onOk="handleWriteOffConfirm" @onCancel="handleWriteOffClose">
<glsx-combi-form class="small-content m-t-20" ref="writeOffRef" :isBlock="true" defaultWidth="284px" :formRef="editChildRef" :formObj="writeOffForm" :formData="writeOffFormData" :formRules="writeOffRules"></glsx-combi-form>
</GLDialog>
<!-- 退款审核 -->
<GLDialog v-if="isExamineVisible" bigTitle="退款审核" mode="big" :visible.sync="isExamineVisible" @onOk="handleExamineConfirm" @onCancel="handleExamineClose">
......@@ -95,7 +95,7 @@
</el-radio-group>
</el-form-item>
<template v-if="orderInfo.refundType == 1 && examineForm.isAllowed == '1'">
<glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
<glsx-combi-form ref="examineRef" :isEdit="isEdit" defaultWidth="284px" :isBlock="true" :formRef="editChildRef" :formObj="examineForm" :formData="examineFormData" :formRules="examineRules"></glsx-combi-form>
</template>
</el-form>
</GLDialog>
......@@ -316,6 +316,20 @@ export default {
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '手机号',
name: 'customerPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
}
],
// 快递信息
......@@ -497,19 +511,34 @@ export default {
tableOption: true,
tableColumns: [
{
label: '订单编号',
prop: 'orderCode',
width: '180'
label: '客户名称',
prop: 'customerName',
line: 2,
width: 180,
formatter: cellValue => {
return cellValue.customerName || '-'
}
},
{
label: '商户订单号',
prop: 'outTradeNo',
width: '160',
label: '手机号',
prop: 'customerPhone',
width: 130,
formatter: cellValue => {
return cellValue.outTradeNo || '-'
return cellValue.customerPhone || '-'
}
},
{
label: '其他信息',
prop: 'otherInformation',
width: '280'
},
{
label: '微信名称',
prop: 'weChatName',
addHtml: 'weChatName',
width: 300
},
{
label: '订单时间',
prop: 'createdDate',
width: '180',
......@@ -534,29 +563,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: '车架号',
prop: 'vinNo',
width: 130,
......@@ -632,6 +638,19 @@ export default {
formatter: cellValue => {
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 || '-'
}
}
]
},
......
......@@ -3,7 +3,7 @@
<div class="edit-share marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<template slot="selectPro" slot-scope="scope">
<el-button type="primary" @click="handleRelateProClose(scope)">{{ editForm.goodsId ? '更换' : '请选择' }}</el-button>
<div class="m-t-10" v-show="editForm.goodsId">
......
<template>
<div class="wechat-box marketing">
<img class="w-100-percent" src="@/assets/seckillActivity/phone.png" />
<div class="wechat-back">
<p class="wechat-name one-line-ellipsis">{{ editForm.activityName }}</p>
<img class="wechat-head" src="@/assets/seckillActivity/crowd-head.png" />
<img class="icon-server" src="@/assets/seckillActivity/icon-server.png" />
<div class="wechat-inner-box">
<div class="wechat-banner-img">
<img class="icon-music" src="@/assets/seckillActivity/icon-music.png" />
<img :src="editForm.activityBigImg || require('@/assets/seckillActivity/icon-default.png')" />
<img class="wechat-customer" src="@/assets/seckillActivity/crowd-customer.png" />
<div class="w-100-percent txt-center">
<video v-if="editForm.activityVideoList.length" class="wechat-video" controls>
<source :src="editForm.activityVideoList[0]" type="video/mp4" />
</video>
</div>
<div class="wechat-block">
<p class="wechat-block-title">活动举办方</p>
<div class="flex-center">
<div>
<p class="m-b-10">{{ editForm.sponsorName }}</p>
<p class="m-b-10 wechat-sub-addr">{{ editForm.activityAddressDetailName }}</p>
<p class="wechat-time" v-if="editForm.activityTime && editForm.activityTime.length">活动时间:{{ editForm.activityTime[0].split(' ')[0] }}-{{ editForm.activityTime[1].split(' ')[0] }}</p>
</div>
<img class="icon-addr" src="@/assets/seckillActivity/icon-addr.png" />
</div>
</div>
<div class="wechat-block">
<p class="wechat-block-title">{{ countDownObj.typeTxt }}</p>
<p v-if="countDownObj.activityStatus != 3" class="wechat-count-down">
<span v-if="editForm.activityTime && editForm.activityTime.length">{{ editForm.activityTime[0].split(' ')[0].split('-')[2] }}</span>
日开始活动,还差
<span class="wechat-txt">{{ countDownObj.d }}</span>天
<span class="wechat-txt">{{ countDownObj.h }}</span>时
<span class="wechat-txt">{{ countDownObj.m }}</span>分
<span class="wechat-txt">{{ countDownObj.s }}</span>秒
</p>
<img v-else class="count-down-img" src="@/assets/seckillActivity/count-down.png" />
</div>
<div class="w-100-percent txt-center">
<img class="crowd-jdt" src="@/assets/seckillActivity/crowd-jdt.png" />
</div>
<div class="wechat-block service">
<div class="serve" v-if="editForm.activityServices.length">
<div class="box flex">
<div style="width: 26px;">服务</div>
<div class="serve-text flex-center">
<template v-for="(i, index) in editForm.activityServices">
<div :key="index" class="flex-default">
{{ i.title }}
<span v-if="index != editForm.activityServices.length - 1">·</span>
</div>
</template>
</div>
<div class="sprite-icon icon-arrow"></div>
</div>
</div>
</div>
<div class="wechat-block">
<div>
<div class="flex">
<div>玩家心得({{ editForm.activityExperienceDTOs.length }})</div>
<div class="sprite-icon icon-arrow"></div>
</div>
<div v-if="editForm.activityExperienceDTOs.length">
<div class="head-box">
<img class="icon-head" src="@/assets/seckillActivity/icon-default-head.png" />
<span>虚拟人物1</span>
</div>
<div class="m-t-10">{{ editForm.activityExperienceDTOs[0].experience }}</div>
<div v-if="editForm.activityExperienceDTOs[0].activityExperienceImgs.length">
<img class="img-w-h m-t-10" v-for="(item, index) in editForm.activityExperienceDTOs[0].activityExperienceImgs" :key="index" :src="item" />
</div>
</div>
</div>
<div class="line"></div>
<div v-if="editForm.activityCommoditys.length">
<div class="flex m-b-10">
<div>商品答疑({{ editForm.activityCommoditys.length }})</div>
<div class="sprite-icon icon-arrow"></div>
</div>
<div class="m-b-10">
<span class="icon-question">问</span>
<span>{{ editForm.activityCommoditys[0].question }}</span>
</div>
<div>
<span class="icon-answer">答</span>
<span>{{ editForm.activityCommoditys[0].answer }}</span>
</div>
</div>
</div>
<div class="p-b-6"></div>
<div v-html="editForm.activityDetail"></div>
</div>
</div>
<div>
<img class="wechat-footer" src="@/assets/seckillActivity/crowd-footer.png" />
</div>
</div>
</div>
</template>
<script>
export default {
name: 'crowdEditWechat',
data() {
return {}
},
props: {
editForm: {
type: Object,
default: () => { }
},
countDownObj: {
type: Object,
default: () => { }
}
},
mounted() { },
methods: {}
}
</script>
<style lang="scss" scoped>
.wechat-box {
width: 276px;
box-sizing: border-box;
position: relative;
margin: 0 auto;
}
.wechat-box .wechat-inner-box {
position: absolute;
top: 73px;
left: 20px;
width: 236px;
height: 424px;
background-color: #f7f8fa;
overflow-y: scroll;
overflow-x: hidden;
}
.wechat-box .wechat-footer {
position: absolute;
width: 236px;
height: 35px;
bottom: 20px;
left: 20px;
}
.wechat-box .wechat-head {
position: absolute;
width: 236px;
height: 53px;
top: 20px;
left: 20px;
}
.wechat-box .wechat-banner-img {
width: 100%;
height: 552px;
}
.wechat-box .icon-server {
position: absolute;
width: 34px;
height: 42px;
top: 320px;
right: 30px;
z-index: 999;
}
.wechat-box .wechat-banner-img img {
width: 100%;
height: 385px;
}
.wechat-box .wechat-video {
width: 160px;
height: 90px;
margin: 10px auto;
}
.wechat-box .wechat-banner-img .icon-music {
position: absolute;
width: 20px;
height: 20px;
top: 20px;
right: 10px;
}
.wechat-box .wechat-banner-img .wechat-customer {
position: absolute;
width: 100px;
height: 137px;
top: 240px;
left: 10px;
}
.wechat-box .wechat-banner-img {
.wechat-block-title {
text-align: center;
color: #fc5b32;
}
.wechat-block {
box-sizing: border-box;
background-color: #fff;
width: 205px;
font-size: 14px;
padding: 10px;
margin: 10px 12px;
.wechat-sub-addr {
font-size: 12px;
color: #656566;
}
.wechat-time {
font-size: 12px;
color: #fc5b32;
}
.icon-addr {
width: 34px;
height: 34px;
}
.wechat-count-down {
line-height: 22px;
padding: 15px;
border: 1px dotted #e3e3e3;
margin-top: 10px;
}
.wechat-txt {
color: #f13c3d;
background-color: #fff4f4;
padding: 4px;
margin: 0 4px;
}
.count-down-img {
margin-top: 10px;
width: 180px;
height: 188px;
}
}
}
.wechat-box .wechat-banner-img .crowd-jdt {
width: 205px;
height: 80px;
}
.box {
color: #999999;
font-size: 12px;
font-weight: 400;
border-radius: 4px;
line-height: 17px;
.serve-text {
width: 130px;
color: #2c2c2c;
margin-left: 6px;
overflow: hidden;
white-space: nowrap;
span {
margin: 0 4px;
}
}
.sprite-icon {
margin-left: auto;
}
}
.icon-arrow {
width: 6px;
height: 6px;
border: 1px solid #fc5b32;
border-width: 1px 1px 0 0;
opacity: 0.7;
transform: rotate(45deg);
margin: 6px 0 0 5px;
}
.head-box {
display: flex;
align-items: center;
padding: 20px 0 0 0;
color: #282829;
.icon-head {
width: 26px !important;
height: 26px !important;
margin-right: 4px;
}
}
.img-w-h {
width: 30px !important;
height: 30px !important;
margin-right: 2px;
border-radius: 4px;
}
.line {
border: 1px solid #e3e3e6;
margin: 6px 0;
}
.icon-question {
width: 14px;
height: 14px;
font-size: 12px;
background: linear-gradient(108deg, #ffbe68 0%, #ff5446 60%, #f45454 100%);
border-radius: 2px;
color: #ffffff;
padding: 1px 2px;
margin-right: 4px;
}
.icon-answer {
width: 14px;
height: 14px;
font-size: 12px;
background: linear-gradient(108deg, #4f7bf6 0%, #3d6ced 60%, #3162e6 100%);
border-radius: 2px;
color: #ffffff;
padding: 1px 2px;
margin-right: 4px;
}
.p-b-6 {
padding-bottom: 6px;
}
.wechat-box .wechat-name {
position: absolute;
top: 50px;
left: 58px;
width: 138px;
color: #282829;
z-index: 99;
text-align: center;
}
</style>
......@@ -6,7 +6,7 @@
<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>
<template slot="activityTimeHtml" slot-scope="scope">
<el-date-picker style="width: 474px" v-model="editForm.activityTime" type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" @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" :picker-options="pickerOptions" :default-time="['00:00:00', '23:59:59']" :disabled="isDisabled" @change="e => handleTimeChange(e, scope.scope)"></el-date-picker>
</template>
<div slot="goodsHtml">
<el-button type="default" class="default-blue-btn el-icon-plus" v-if="apear != 'see'" @click="handleRelateProClose">选择商品</el-button>
......@@ -15,11 +15,11 @@
<img class="img-60" :src="selectedProInfo.goodsImage" />
&nbsp;&nbsp;&nbsp; 零售价 {{ (selectedProInfo.retailPrice / 100).toFixed(2) }}元 &nbsp;&nbsp;&nbsp; 商品库存 {{ selectedProInfo.goodsStock }}件
</p>
<el-form-item label="设置秒杀价" prop="activityPrice">
<el-input v-model="editForm.activityPrice" style="width: 150px" :disabled="isDisabled"><span slot="append">元</span></el-input>
<el-form-item label="设置秒杀价/元:" prop="activityPrice">
<el-input v-model="editForm.activityPrice" style="width: 150px" :disabled="isDisabled"></el-input>
</el-form-item>
<el-form-item label="活动库存" prop="goodsStock">
<el-input v-model="editForm.goodsStock" style="width: 150px" :disabled="isDisabled"><span slot="append">件</span></el-input>
<el-form-item label="活动库存/件:" prop="goodsStock">
<el-input v-model="editForm.goodsStock" style="width: 150px" :disabled="isDisabled"></el-input>
</el-form-item>
</div>
</div>
......@@ -60,7 +60,7 @@
<p v-if="editForm[scope.scope.name] == 2" id="limitPurchaseNumber" style="color: #333333;">
每人限购
<el-form-item prop="limitPurchaseNumber">
<el-input v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input>
<el-input style="width: 150px;" v-model="editForm.limitPurchaseNumber" placeholder="请输入限购次数" :disabled="isDisabled"></el-input>
</el-form-item>
件
</p>
......@@ -200,7 +200,6 @@ export default {
{
label: '活动名称',
name: 'activityName',
width: '474px',
type: 'input',
maxlength: 20,
isDisabled: false
......@@ -226,7 +225,6 @@ export default {
{
label: '活动宣传语',
name: 'promotion',
width: '474px',
type: 'input',
maxlength: 20,
isDisabled: false
......
......@@ -2,7 +2,7 @@
<template>
<div class="marketing">
<div class="m-b-20">
<GLButton :size="size" class="default-blue-btn el-icon-plus" type="default" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
<GLButton :size="size" class="el-icon-plus" type="primary" @click="addActivity()" fn="新增秒杀活动" mode="el-button">新增秒杀活动</GLButton>
</div>
<div class="container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
......
......@@ -4,9 +4,9 @@
<div class="sop-base-info">
<div class="container m-b-20">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="startDate">
<el-input class="w-320" :placeholder="!editForm.eventList.length ? '设置营销事件后自动补充' : editForm.startDate + (editForm.endDate ? ' - ' + editForm.endDate : '')" disabled></el-input>
<el-input class="w432" :placeholder="!editForm.eventList.length ? '设置营销事件后自动补充' : editForm.startDate + (editForm.endDate ? ' - ' + editForm.endDate : '')" disabled></el-input>
</div>
<div slot="customerInfoList" slot-scope="scope">
<div v-if="!scope.scope.isDisabled">
......
......@@ -434,7 +434,7 @@ export default {
deep: true
},
'editForm.reachesTypeSet'(newValue, oldValue) {
this.editForm.reachesTypeSet = limitPrice(newValue, oldValue, 5, 0, 1, 9999, 'zNumReg')
this.editForm.reachesTypeSet = limitPrice(newValue + '', oldValue, 5, 0, 1, 9999, 'zNumReg')
},
'editForm.object.additionalType'(val) {
var idx = this.editFormDataChannel.findIndex(item => item.name == 'pushChannelType')
......@@ -719,12 +719,12 @@ export default {
this.editForm.followerTypeName = this.baseData.staffTypeList.find(item => item.id).businessName
// 预估可触达人数
this.editForm.predictCount = this.predictCountObj[this.editForm.pushChannelType == 2 ? 'phone' : 'qiwei']
console.log(this.editForm)
// console.log(this.editForm)
if (this.editForm.repeatFlag == 'Y') {
this.$apis.sop.parseEventCountApi(countParams).then(res => {
// this.editForm.eventCount = res.eventStatistics.eventCount
this.maxReachesTypeSet = res.eventStatistics.eventCount
if (this.maxReachesTypeSet < this.editForm.reachesTypeSet || this.editForm.reachesTypeSet < 2) {
if (this.editForm.reachesType == 2 && (this.maxReachesTypeSet < this.editForm.reachesTypeSet || this.editForm.reachesTypeSet < 2)) {
this.whereToGo('reachesTypeSet')
this.submit = false
return true
......@@ -849,4 +849,4 @@ export default {
}
}
}
</style>
</style>
\ No newline at end of file
......@@ -3,14 +3,14 @@
<div class="edit-zone marketing edit-box">
<div class="container edit-container">
<p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="labelWidth" defaultWidth="320px" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<glsx-combi-form class="edit-form-container m-r-20" ref="editFormRef" :isEdit="isEdit" :labelWidth="defaultLabelWidth" :isBlock="true" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule">
<div slot="selectMerchant" slot-scope="scope" class="select-merchant">
<el-button type="default" @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div>
<div slot="merchantTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<div slot="merchantTable" :style="{ 'margin-left': defaultLabelWidth, width: `calc(100% - ${defaultLabelWidth} )` }">
<GLTable v-show="editForm.merchantList.length" ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="auth-button" slot-scope="scope">
<el-button type="text" @click="handleMerchantDelete(scope)">删除</el-button>
<span slot="customBtn" slot-scope="scope">
<el-button class="p-0" type="text" @click="handleMerchantDelete(scope)">删除</el-button>
</span>
</GLTable>
</div>
......@@ -35,10 +35,6 @@
<el-button @click="handleCancel" size="medium">取消</el-button>
<el-button type="primary" @click="handleConfirm" size="medium" :loading="loading">提交</el-button>
</GLFooter>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="primary" @click="handleConfirm">确定</el-button>
<el-button type="default" @click="handleCancel">取消</el-button>
</div> -->
</div>
</template>
......@@ -60,7 +56,6 @@ export default {
id: ''
},
editStatus: false,
labelWidth: '144px',
editForm: {
// 专区类型(1发现频道,2商城专区)
zoneType: '2',
......@@ -120,11 +115,15 @@ export default {
selectedList: [],
// 门店表格
tableParams: {
tableOption: true,
tableColumns: [
{
label: '门店名称',
prop: 'merchantName'
},
{
label: '操作',
prop: '',
addHtml: 'customBtn'
}
]
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!