Commit 731b89b9 by 胡悦

Merge branch 'v2.7.0' into huy_dev_v2.7.0

2 parents 4654a14e 2c45eae6
...@@ -230,7 +230,6 @@ function setMinHeight(calssName = '.edit-container') { ...@@ -230,7 +230,6 @@ function setMinHeight(calssName = '.edit-container') {
let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px' let height = document.querySelector('.header-wrap').clientHeight + 110 + 'px'
let minHeight = 'calc(100vh - ' + height + ')' let minHeight = 'calc(100vh - ' + height + ')'
document.querySelector(calssName).style.minHeight = minHeight document.querySelector(calssName).style.minHeight = minHeight
console.log(minHeight)
} }
export { limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight } export { limitPrice, getExplorer, exportFn, aToExport, downloadIamge, orderManageStatusList, afterSaleStatusList, orderSourceList, deliveryTypeList, statusList, serviceStatusList, memberTypeList, stateList, orderTypesList, orderStatusList, setMinHeight }
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<!-- radio --> <!-- radio -->
<div v-else-if="item.type === '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-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] }}</el-radio> <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> </el-radio-group>
<slot :name="item.suffixSlot" :scope="item"></slot> <slot :name="item.suffixSlot" :scope="item"></slot>
</div> </div>
......
...@@ -121,12 +121,12 @@ export default { ...@@ -121,12 +121,12 @@ export default {
}) })
}, },
handleChange(selection, row) { handleChange(selection, row) {
var addOrDelete = !!selection.find(item => item.merchantNo === row.merchantNo) var addOrDelete = !!selection.find(item => +item.merchantNo === +row.merchantNo)
addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo)) addOrDelete ? this.selectedData.push(row) : (this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo))
}, },
handleAll(selection) { handleAll(selection) {
this.selectingData.forEach(item => { this.selectingData.forEach(item => {
var isExit = this.selectedData.findIndex(subItem => subItem.merchantNo === item.merchantNo) let isExit = this.selectedData.findIndex(subItem => +subItem.merchantNo === +item.merchantNo)
var isServed = item.hasOwnProperty('beServed') ? item.beServed : false var isServed = item.hasOwnProperty('beServed') ? item.beServed : false
if (selection.length && isExit === -1 && !isServed) { if (selection.length && isExit === -1 && !isServed) {
this.selectedData.push(item) this.selectedData.push(item)
...@@ -136,7 +136,7 @@ export default { ...@@ -136,7 +136,7 @@ export default {
}) })
}, },
handleDelete(row) { handleDelete(row) {
this.selectedData = this.selectedData.filter(item => item.merchantNo !== row.merchantNo) this.selectedData = this.selectedData.filter(item => +item.merchantNo !== +row.merchantNo)
this.recoverySelection() this.recoverySelection()
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
......
<!-- 礼包详情 --> <!-- 礼包详情 -->
<template> <template>
<div class="edit-gift marketing edit-box"> <div class="edit-gift detail-page marketing edit-box">
<!-- <div class="container approval-container"> <!-- <div class="container approval-container">
<p class="edit-title">审批信息</p> <p class="edit-title">审批信息</p>
<div class="approval-info"> <div class="approval-info">
...@@ -41,16 +41,11 @@ ...@@ -41,16 +41,11 @@
<div slot="approveFlagBlock"> <div slot="approveFlagBlock">
{{ editForm.approveFlag == 1 ? '赠送前需审批' : '无需审批' }} {{ editForm.approveFlag == 1 ? '赠送前需审批' : '无需审批' }}
</div> </div>
<div slot="receiveDetails"> <div slot="receiveDetails" :class="editForm.receiveRule == 4 ? 'user' : ''">
<span v-if="editForm.receiveRule != 1">{{ editForm.receiveRule == 2 ? '员工赠送时指定' : '直接领取' }}</span>
<span v-if="editForm.receiveRule == 2 && editForm.receiveWay && editForm.receiveDetails">{{ `${editForm.receiveWay == '1' ? '手机号:' : '车架号后6位:'}${editForm.receiveDetails}` }}</span> <span v-if="editForm.receiveRule == 2 && editForm.receiveWay && editForm.receiveDetails">{{ `${editForm.receiveWay == '1' ? '手机号:' : '车架号后6位:'}${editForm.receiveDetails}` }}</span>
<span v-if="editForm.receiveRule == 1">{{ editForm.receiveWay == '1' ? '指定手机号' : '指定车架号后6位' }}:</span> <span v-if="editForm.receiveRule == 1">{{ editForm.receiveWay == '1' ? '指定手机号' : '指定车架号后6位' }}:</span>
<div v-if="editForm.receiveRule == 1" class="phone-wrap"> <span v-if="editForm.receiveRule == 4"><span style="color: #f56c6c;margin-right: 4px;">*</span>用户手机号:</span>
<span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span> <div v-if="editForm.receiveRule == 1 || editForm.receiveRule == 4" class="phone-wrap">
</div>
</div>
<div slot="phones">
<div v-if="receiveDetailList" class="phone-wrap">
<span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span> <span :class="['phone', editForm.receiveWay == 1 ? 'realTel' : 'realNum']" v-for="(item, id) in receiveDetailList" :key="id">{{ item }}</span>
</div> </div>
</div> </div>
...@@ -109,7 +104,8 @@ export default { ...@@ -109,7 +104,8 @@ export default {
staffList: [], staffList: [],
// 优惠券类型(discountType) 1:满减券,2:折扣券,3:代金券,4:兑换券,5:购车代金券,6:商品折扣券,7:会员服务 // 优惠券类型(discountType) 1:满减券,2:折扣券,3:代金券,4:兑换券,5:购车代金券,6:商品折扣券,7:会员服务
// 优惠券状态(status):1:未生效,2:生效中,3:已失效 // 优惠券状态(status):1:未生效,2:生效中,3:已失效
couponList: [] couponList: [],
receiveRule: 1
}, },
totalEstimatedCost: '', totalEstimatedCost: '',
orderShow: ['service', 'cash', 'discount', 'exchange'], orderShow: ['service', 'cash', 'discount', 'exchange'],
...@@ -153,7 +149,7 @@ export default { ...@@ -153,7 +149,7 @@ export default {
staffList: [{ required: true, message: '请选择发放员工', trigger: 'change' }], staffList: [{ required: true, message: '请选择发放员工', trigger: 'change' }],
approveFlag: [{ required: true, message: '请选择审批要求', trigger: 'change' }], approveFlag: [{ required: true, message: '请选择审批要求', trigger: 'change' }],
stock: [{ required: true, message: '请选择库存数量', trigger: 'change' }], stock: [{ required: true, message: '请选择库存数量', trigger: 'change' }],
phones: [{ required: true, message: '请选择用户手机号', trigger: 'change' }] receiveRule: [{ required: true, message: '请选择领取规则设置', trigger: 'change' }],
}, },
isEdit: true, isEdit: true,
editFormData: [ editFormData: [
...@@ -185,10 +181,38 @@ export default { ...@@ -185,10 +181,38 @@ export default {
isHide: false isHide: false
}, },
{ {
label: '领取规则', label: '领取规则设置',
name: 'receiveRule',
type: 'radio',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: true,
optionList: [
{
confId: 1,
confName: '创建时指定',
suffixSonSlot: 'bubble'
},
{
confId: 2,
confName: '员工赠送时指定',
suffixSonSlot: 'giveAway'
},
{
confId: 3,
confName: '直接领取',
suffixSonSlot: 'receives'
},
{
confId: 4,
confName: '直接发送到小程序卡包',
suffixSonSlot: 'cardHolder'
}
]},
{
label: '',
name: 'receiveWay', name: 'receiveWay',
addHtml: 'receiveDetails', addHtml: 'receiveDetails'
isHide: false
}, },
{ {
label: '发放员工', label: '发放员工',
...@@ -196,12 +220,6 @@ export default { ...@@ -196,12 +220,6 @@ export default {
addHtml: 'staffListBlock' addHtml: 'staffListBlock'
}, },
{ {
label: '用户手机号',
name: 'phones',
addHtml: 'phones',
isHide: true
},
{
label: '赠送原因', label: '赠送原因',
name: 'giveReason', name: 'giveReason',
type: 'showTxt' type: 'showTxt'
...@@ -229,15 +247,15 @@ export default { ...@@ -229,15 +247,15 @@ export default {
res.data.createdDate = dayjs(res.data.createdDate).format('YYYY-MM-DD HH:mm:ss') res.data.createdDate = dayjs(res.data.createdDate).format('YYYY-MM-DD HH:mm:ss')
res.data.updatedDate = dayjs(res.data.updatedDate).format('YYYY-MM-DD HH:mm:ss') res.data.updatedDate = dayjs(res.data.updatedDate).format('YYYY-MM-DD HH:mm:ss')
this.editForm = res.data this.editForm = res.data
if(res?.data?.grantType==2){ if(res?.data?.receiveRule == 4){
let target = this.editFormData.find(item => item.name == 'stock') let target = this.editFormData.find(item => item.name == 'stock')
let targets = this.editFormData.find(item => item.name == 'approveFlag') let targets = this.editFormData.find(item => item.name == 'approveFlag')
let targetss = this.editFormData.find(item => item.name == 'receiveWay')
let targetsss = this.editFormData.find(item => item.name == 'phones')
target.isHide = true target.isHide = true
targets.isHide = true targets.isHide = true
targetss.isHide = true }
targetsss.isHide = false if(res?.data?.receiveRule == 1){
let targetss = this.editFormData.find(item => item.name == 'receiveWay')
targetss.label = '领取条件'
} }
let arr = [] let arr = []
res.data.receiveDetails && (arr = res.data.receiveDetails.split(',')) res.data.receiveDetails && (arr = res.data.receiveDetails.split(','))
...@@ -300,6 +318,23 @@ export default { ...@@ -300,6 +318,23 @@ export default {
border-radius: 4px; border-radius: 4px;
border: 1px solid #e5e5e5; border: 1px solid #e5e5e5;
} }
.detail-page {
#receiveRule{
.el-radio-group{
.is-checked {
.el-radio__input.is-checked .el-radio__inner{
border-color:#5850ff;
&::after{
background-color: #5850ff;
}
}
}
.el-radio__label{
color: #333333!important;
}
}
}
}
.marketing.edit-gift { .marketing.edit-gift {
// 礼包 // 礼包
.gift-block { .gift-block {
...@@ -475,4 +510,7 @@ export default { ...@@ -475,4 +510,7 @@ export default {
} }
} }
} }
.user {
margin-left: 144px;
}
</style> </style>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</GLTable> </GLTable>
<!-- 表格区域 end --> <!-- 表格区域 end -->
</div> </div>
<glsx-dialog class="qr-dialog" width="720px" title="生成二维码" btnOkLabel="下载" :isVisible.sync="isQrcodeVisible" @confirmDialog="handleCancelConfirm" @closeDialog="handleCancelClose"> <GLDialog class="qr-dialog" title="生成二维码" mode="mid" okText="下载" :visible.sync="isQrcodeVisible" @onOk="handleCancelConfirm" @onCancel="handleCancelClose">
<div class="qrcode-body"> <div class="qrcode-body">
<p>可生成对应发放员工的小程序领取二维码</p> <p>可生成对应发放员工的小程序领取二维码</p>
<el-select filterable v-model="curStaffId" @change="changeStaff" placeholder="请选择发放员工"> <el-select filterable v-model="curStaffId" @change="changeStaff" placeholder="请选择发放员工">
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
<el-image :src="curQrcode" alt=""></el-image> <el-image :src="curQrcode" alt=""></el-image>
</div> </div>
</div> </div>
</glsx-dialog> </GLDialog>
</div> </div>
</template> </template>
...@@ -58,12 +58,8 @@ ...@@ -58,12 +58,8 @@
import * as dayjs from 'dayjs' import * as dayjs from 'dayjs'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
import { aToExport, downloadIamge } from '@/common/constant' import { aToExport, downloadIamge } from '@/common/constant'
import glsxDialog from '@/components/glsx-dialog'
export default { export default {
name: 'giftList', name: 'giftList',
components: {
glsxDialog
},
data() { data() {
return { return {
isQrcodeVisible: false, isQrcodeVisible: false,
...@@ -138,7 +134,7 @@ export default { ...@@ -138,7 +134,7 @@ export default {
name: 'name', name: 'name',
type: 'input', type: 'input',
maxlength: 30, maxlength: 30,
placeholder: '请输入礼包名称或备注名称', placeholder: '请输入礼包/备注名称',
isClear: true isClear: true
}, },
{ {
...@@ -512,7 +508,7 @@ export default { ...@@ -512,7 +508,7 @@ export default {
.qr-dialog { .qr-dialog {
/deep/.el-dialog__body { /deep/.el-dialog__body {
padding: 20px; // padding: 20px;
.el-scrollbar__wrap { .el-scrollbar__wrap {
overflow: hidden; overflow: hidden;
} }
......
...@@ -123,7 +123,7 @@ export default { ...@@ -123,7 +123,7 @@ export default {
label: '礼包名称', label: '礼包名称',
name: 'giftName', name: 'giftName',
type: 'input', type: 'input',
placeholder: '请输入礼包名称或备注名称' placeholder: '请输入礼包/备注名称'
}, },
{ {
label: '是否为企微客户', label: '是否为企微客户',
...@@ -510,11 +510,14 @@ export default { ...@@ -510,11 +510,14 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.table-header { ::v-deep .table-header {
display: inline-flex !important; display: inline-flex !important;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: 0 !important; padding: 0 !important;
.el-button {
min-width: 0;
}
} }
.marketing /deep/ .el-table th div { .marketing /deep/ .el-table th div {
line-height: normal !important; line-height: normal !important;
......
...@@ -136,10 +136,6 @@ ...@@ -136,10 +136,6 @@
<el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox> <el-checkbox v-for="(item, index) in baseData.clueList" :label="item.confId" :key="index">{{ item.confName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</div> </div>
<!-- <template slot="customerServerSuffix" slot-scope="scope">
<el-button v-show="!scope.scope.optionList.length" type="text"></el-button>
<p style="color: #5850ff" @click="handleNoServer">请在首页-跟进专员模块里添加类型为“在线客服”的跟进专员</p>
</template> -->
<!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }"> <!-- <div slot="serviceTable" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} )` }">
<GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable> <GLTable v-show="editForm.customerServerUserId" :hasPage="false" :tableParams="tableParams" :tableData="customerServerList"></GLTable>
</div> --> </div> -->
...@@ -222,22 +218,6 @@ ...@@ -222,22 +218,6 @@
</el-form> </el-form>
</el-row> </el-row>
</relate-store-dialog> </relate-store-dialog>
<!-- 公告管理配置门店 -->
<!-- <relate-store-dialog v-if="relateStoreVisibles" ref="relateStores" :relateStoreVisible="relateStoreVisibles" :storeApi="storeApi" :storeSearchForm="storeSearchForms" :storeSelected="selectedLists" @handleRelateStoreConfirm="handleRelateStoreConfirms" @handleRelateStoreClose="handleRelateStoreCloses">
<el-row slot>
<el-form :model="storeSearchForms" ref="relate" :inline="true" label-width="90px">
<el-form-item label="商户ID:" prop="merchantId">
<el-input :size="size" v-model.trim="storeSearchForms.merchantId" placeholder="请输入商户ID" clearable></el-input>
</el-form-item>
<el-form-item label="门店名称:" prop="merchantName">
<el-input :size="size" v-model.trim="storeSearchForms.merchantName" placeholder="请输入门店名称" clearable></el-input>
</el-form-item>
<el-form-item>
<el-button :size="size" type="primary" @click="handleSearchStores">搜索</el-button>
</el-form-item>
</el-form>
</el-row>
</relate-store-dialog> -->
</div> </div>
</template> </template>
...@@ -287,12 +267,7 @@ export default { ...@@ -287,12 +267,7 @@ export default {
merchantId: '', merchantId: '',
merchantName: '' merchantName: ''
}, },
storeSearchForms: {
merchantId: '',
merchantName: ''
},
selectedList: [], selectedList: [],
selectedLists: [],
// 门店表格 // 门店表格
tableParams: { tableParams: {
tableOption: true, tableOption: true,
...@@ -438,42 +413,6 @@ export default { ...@@ -438,42 +413,6 @@ export default {
name: '', name: '',
addHtml: 'customerServerUserId' addHtml: 'customerServerUserId'
} }
// {
// label: '在线客服',
// name: 'customerServerUserId',
// type: 'select',
// optionList: [],
// optionId: 'userOneid',
// optionLabel: 'staffName',
// optionsName: 'consultantList',
// suffixSlot: 'customerServerSuffix',
// isClear: true,
// changeAttr: (value, targetItem) => {
// var tempObj = {
// customerServerName: '',
// customerServerUserTitle: ''
// }
// this.customerServerList = []
// this.editForm.customerServerId = ''
// this.editForm.customerServerName = ''
// this.editForm.customerServerUserTitle = ''
// if (value) {
// tempObj = this.baseData.consultantList.find(item => item.userOneid == value)
// this.editForm.customerServerId = tempObj.id
// this.editForm.customerServerName = tempObj.staffName
// this.editForm.customerServerUserTitle = tempObj.staffTitle
// this.customerServerList.push({
// customerServerName: tempObj.staffName,
// customerServerUserTitle: tempObj.staffTitle
// })
// }
// }
// }
// {
// label: '',
// addHtml: 'serviceTable'
// }
] ]
} }
], ],
...@@ -601,7 +540,6 @@ export default { ...@@ -601,7 +540,6 @@ export default {
}, },
// 选择门店 // 选择门店
handleRelateStoreClose(v) { handleRelateStoreClose(v) {
console.log('v',v);
this.state = v this.state = v
if(v == 'banner') { if(v == 'banner') {
this.selectedList = this.$common.utils.deepClone(this.editForm.bannerMerchantList) this.selectedList = this.$common.utils.deepClone(this.editForm.bannerMerchantList)
...@@ -610,11 +548,8 @@ export default { ...@@ -610,11 +548,8 @@ export default {
} }
this.relateStoreVisible = !this.relateStoreVisible this.relateStoreVisible = !this.relateStoreVisible
}, },
// handleRelateStoreCloses() {
// this.selectedLists = this.$common.utils.deepClone(this.editForm.noticeMerchantList)
// this.relateStoreVisibles = !this.relateStoreVisibles
// },
handleRelateStoreConfirm(selectedData) { handleRelateStoreConfirm(selectedData) {
console.log('selectedData',selectedData);
if(this.state == 'banner') { if(this.state == 'banner') {
this.editForm.bannerMerchantList = selectedData this.editForm.bannerMerchantList = selectedData
} else if(this.state == 'notice') { } else if(this.state == 'notice') {
...@@ -623,22 +558,14 @@ export default { ...@@ -623,22 +558,14 @@ export default {
this.selectedList = selectedData this.selectedList = selectedData
this.handleRelateStoreClose(this.state) this.handleRelateStoreClose(this.state)
}, },
// handleRelateStoreConfirms(selectedData) {
// this.editForm.noticeMerchantList = selectedData
// this.selectedLists = selectedData
// this.handleRelateStoreCloses()
// },
handleSearchStore() { handleSearchStore() {
this.$refs.relateStore.handleCurrentChange(1) this.$refs.relateStore.handleCurrentChange(1)
}, },
// handleSearchStores() {
// this.$refs.relateStores.handleCurrentChange(1)
// },
handleMerchantDelete(obj) { handleMerchantDelete(obj) {
this.$messageBox.confirm('是否删除该门店?', '删除', { this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
// type: 'error', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.bannerMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo) var idx = this.editForm.bannerMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
...@@ -651,7 +578,7 @@ export default { ...@@ -651,7 +578,7 @@ export default {
this.$messageBox.confirm('是否删除该门店?', '删除', { this.$messageBox.confirm('是否删除该门店?', '删除', {
confirmButtonText: '确定', confirmButtonText: '确定',
cancelButtonText: '取消', cancelButtonText: '取消',
// type: 'error', type: 'warning',
callback: action => { callback: action => {
if (action == 'confirm') { if (action == 'confirm') {
var idx = this.editForm.noticeMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo) var idx = this.editForm.noticeMerchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
......
<template> <template>
<div class="introduct"> <div class="introduct">
<el-dialog title="功能介绍" :visible.sync="introductionDialog" width="1080px" :before-close="handleClose"> <GLDialog bigTitle="功能介绍" mode="big" :visible.sync="introductionDialog" :before-close="handleClose" :hasFooter="false">
<p class="note">营销素材——将业务资料、经典案例、活动等以图文、PDF形式上传在营销素材中,企业成员可在企业微信聊天侧边栏或者嘀加企微管家工作台中一键发给客户。发送给客户的营销素材支持雷达追踪,将客户阅读行为记录到客户动态中,同时给客户打上指定标签并通知其对应的跟进员工。</p> <p class="note">营销素材——将业务资料、经典案例、活动等以图文、PDF形式上传在营销素材中,企业成员可在企业微信聊天侧边栏或者嘀加企微管家工作台中一键发给客户。发送给客户的营销素材支持雷达追踪,将客户阅读行为记录到客户动态中,同时给客户打上指定标签并通知其对应的跟进员工。</p>
<h3>我的优势</h3> <h3>我的优势</h3>
<p class="list">1、门店可以为不同的业务部门提供不同的营销素材,规范营销内容;</p> <p class="list">1、门店可以为不同的业务部门提供不同的营销素材,规范营销内容;</p>
...@@ -9,10 +9,7 @@ ...@@ -9,10 +9,7 @@
<div class="img_div"> <div class="img_div">
<img src="@/assets/material/introduction.png" alt=""> <img src="@/assets/material/introduction.png" alt="">
</div> </div>
<span slot="footer" class="dialog-footer"> </GLDialog>
<el-button type="primary" @click="handleClose" class="btn-close">关闭</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
......
<template> <template>
<div class="tag-main"> <div class="tag-main">
<el-dialog title="选择标签" :visible.sync="dialogVisible" width="50%" :before-close="handleClose"> <GLDialog bigTitle="选择标签" mode="big" :visible.sync="dialogVisible" :before-close="handleClose">
<div class="tag-panel"> <div class="tag-panel">
<div class="tag-panel-select"> <div class="tag-panel-select">
<div class="tag-title">预选标签</div> <div class="tag-title">预选标签</div>
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<el-button size="small" @click="dialogVisible = false">取 消</el-button> <el-button size="small" @click="dialogVisible = false">取 消</el-button>
<el-button size="small" type="primary" @click="handleSelect">确 定</el-button> <el-button size="small" type="primary" @click="handleSelect">确 定</el-button>
</span> </span>
</el-dialog> </GLDialog>
</div> </div>
</template> </template>
......
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
</span> </span>
</GLTable> </GLTable>
</div> </div>
<GLDialog :mode="mode" title="权益详情" :type="'error'" okText="关闭" @onOk="handleClose" @onCancel="handleClose" :visible.sync="isDialogVisible"> <GLDialog :mode="mode" title="权益详情" :hasFooter="hasFooter" :type="'error'" :visible.sync="isDialogVisible">
<div class="modal-body"> <div class="modal-body">
<div class="equity-name">汽车权益</div> <div class="equity-name">汽车权益</div>
<div class="equity-panel"> <div class="equity-panel">
...@@ -133,7 +133,7 @@ ...@@ -133,7 +133,7 @@
</div> </div>
</GLDialog> </GLDialog>
<!-- 推广弹窗 --> <!-- 推广弹窗 -->
<GLDialog :mode="mode" title="试用推广" :hasFooter="hasFooter" :type="'error'" @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"> <el-form class="proForm" :model="ruleForm" :rules="rules" ref="ruleForm" label-width="68px">
<div class="form"> <div class="form">
<div class="main-qrcode"> <div class="main-qrcode">
...@@ -172,7 +172,7 @@ export default { ...@@ -172,7 +172,7 @@ export default {
data() { data() {
return { return {
mode: 'mid', mode: 'mid',
hasFooter: true, hasFooter: false,
showGh: true, showGh: true,
promotionForm: { promotionForm: {
QRurl: '', QRurl: '',
...@@ -585,9 +585,6 @@ export default { ...@@ -585,9 +585,6 @@ export default {
width: 53px; width: 53px;
margin: 0 3px; margin: 0 3px;
} }
/deep/ .btn-three {
display: none;
}
.lineCtn { .lineCtn {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
...@@ -773,32 +770,9 @@ export default { ...@@ -773,32 +770,9 @@ export default {
.el-range-editor--small.el-input__inner { .el-range-editor--small.el-input__inner {
width: 215px; width: 215px;
} }
// /deep/ .container .el-input--small .el-input__inner {
// width: 215px;
// }
/deep/ .el-dialog__header .el-dialog__title {
// font-size: 16px;
// color: #000;
// font-weight: 700;
// height: 24px;
// line-height: 24px;
font-size: 20px;
font-weight: 500;
color: #333;
line-height: 28px;
}
// ::v-deep .el-dialog__body {
// border-top: 1px solid #e6e6e6;
// border-bottom: 1px solid #e6e6e6;
// padding: 20px 25px;
// }
/deep/.el-dialog__body { /deep/.el-dialog__body {
border-top: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
// padding: 20px 45px;
padding: 20px 20px 20px 45px;
.modal-body { .modal-body {
// overflow: auto;
max-height: 400px; max-height: 400px;
} }
.equity-panel { .equity-panel {
...@@ -852,10 +826,6 @@ export default { ...@@ -852,10 +826,6 @@ export default {
overflow: hidden; overflow: hidden;
} }
} }
/deep/ .el-dialog__footer {
padding: 20px;
text-align: center;
}
.pricesMerge { .pricesMerge {
display: flex; display: flex;
......
...@@ -540,8 +540,8 @@ export default { ...@@ -540,8 +540,8 @@ export default {
padding-bottom: 12px; padding-bottom: 12px;
} }
} }
::v-deep .el-dialog__footer { // ::v-deep .el-dialog__footer {
text-align: center; // text-align: center;
} // }
} }
</style> </style>
...@@ -293,24 +293,6 @@ export default { ...@@ -293,24 +293,6 @@ export default {
.el-range-editor--small.el-input__inner { .el-range-editor--small.el-input__inner {
width: 215px; width: 215px;
} }
/deep/.el-dialog__header {
padding-top: 20px;
padding-bottom: 20px;
}
/deep/ .el-dialog__body {
// border-bottom: 1px solid #e6e6e6;
// border-top: 1px solid #e6e6e6;
padding: 30px 20px;
.content-body {
.el-input--small .el-input__inner {
width: 300px;
}
}
}
/deep/ .el-dialog__footer {
// text-align: center;
padding-top: 12px;
padding-bottom: 12px;
}
</style> </style>
<!-- 订单详情 --> <!-- 订单详情 -->
<template> <template>
<div class="order-detail marketing edit-box"> <div class="order-detail marketing">
<div class="edit-box">
<div class="container m-b-20"> <div class="container m-b-20">
<p class="edit-title">订单信息</p> <p class="edit-title">订单信息</p>
<el-form label-width="100px" :inline="true"> <el-form label-width="100px" :inline="true">
...@@ -56,9 +57,10 @@ ...@@ -56,9 +57,10 @@
</el-form> </el-form>
</div> </div>
</div> </div>
<div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<el-button type="default" @click="handleCancel">返回</el-button>
</div> </div>
<GLFooter>
<el-button @click="handleCancel" size="medium">取消</el-button>
</GLFooter>
</div> </div>
</template> </template>
...@@ -71,8 +73,6 @@ export default { ...@@ -71,8 +73,6 @@ export default {
return { return {
size: 'small', size: 'small',
title: '查看订单', title: '查看订单',
footerLeft: '0',
footerWidth: '0',
editChildRef: 'editChildRef', editChildRef: 'editChildRef',
routeInfo: { routeInfo: {
orderCode: '' orderCode: ''
...@@ -201,8 +201,7 @@ export default { ...@@ -201,8 +201,7 @@ export default {
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.setMinHeight('.edit-box')
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
this.getInfo() this.getInfo()
}, },
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
<el-button :disabled="isDisabled" v-show="editForm.takeAllMerchant == '0'" type="default" @click="handleRelateStoreClose(scope)">{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}</el-button> <el-button :disabled="isDisabled" v-show="editForm.takeAllMerchant == '0'" type="default" @click="handleRelateStoreClose(scope)">{{ editForm.supplyMerchantList.length ? '更换门店' : '+选择门店' }}</el-button>
</div> </div>
<div slot="merchantTable" class="select-merchant" v-show="editForm.takeAllMerchant == '0'" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} - 10px )` }"> <div slot="merchantTable" class="select-merchant" v-show="editForm.takeAllMerchant == '0'" :style="{ 'margin-left': labelWidth, width: `calc(100% - ${labelWidth} - 10px )` }">
<GLTable v-show="editForm.supplyMerchantList.length" ref="merchantTableRef" :tableParams="tableParams" :tableData="editForm.supplyMerchantList"> <GLTable v-show="editForm.supplyMerchantList.length" ref="merchantTableRef" :tableParams="tableParams" :tableData="editForm.supplyMerchantList" :hasPage="false">
<span slot="auth-button" slot-scope="scope"> <span slot="auth-button" slot-scope="scope">
<el-button :disabled="isDisabled" type="text" @click="handleMerchantDelete(scope)">删除</el-button> <el-button :disabled="isDisabled" type="text" @click="handleMerchantDelete(scope)">删除</el-button>
</span> </span>
......
...@@ -105,14 +105,17 @@ ...@@ -105,14 +105,17 @@
<div slot="activityBigImg" class="edit-tips m-t-8">建议尺寸750*1258</div> <div slot="activityBigImg" class="edit-tips m-t-8">建议尺寸750*1258</div>
<div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div> <div slot="activityVideos" class="edit-tips m-t-8">最多上传6个视频</div>
<div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div> <div slot="posterImg" class="edit-tips m-t-8">建议尺寸640*1008</div>
<div class="form-describe flex-default" slot="formDescribe" v-for="(item, index) in formDescribeList" :key="index"> <div class="form-describe-box" slot="formDescribe">
<el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"> <div v-for="(item, index) in formDescribeList" :key="index" class="form-describe flex-default">
<el-button v-show="index == formDescribeList.length - 1 && formDescribeList.length < describeNum" slot="suffix" :size="size" type="text" @click="handleDescribeAdd"> <el-input class="describe-input" v-model="item.value" placeholder="请输入" maxlength="20"></el-input>
<span class="describe-plus">+</span> <p class="describe-delete">
<img v-show="!(index == 0 && formDescribeList.length == 1)" @click="handleDescribeDelete(index)" src="@/assets/icon-delete.png" />
</p>
</div>
<el-button class="describe-btn" v-show="formDescribeList.length < describeNum" :size="size" type="text" @click="handleDescribeAdd">
<img class="icon-add" src="@/assets/seckillActivity/icon-add.png" />
新增表单
</el-button> </el-button>
</el-input>
<el-button class="describe-delete" v-show="index != formDescribeList.length - 1 || index == describeNum - 1" icon="el-icon-delete" type="text" @click="handleDescribeDelete(index)"></el-button>
<!-- <el-button v-show="index == formDescribeList.length - 1 && formDescribeList.length < describeNum" :size="size" type="default" class="default-blue-btn el-icon-plus" @click="handleDescribeAdd">新增</el-button> -->
</div> </div>
</glsx-combi-form> </glsx-combi-form>
</div> </div>
...@@ -1356,20 +1359,40 @@ export default { ...@@ -1356,20 +1359,40 @@ export default {
padding: 20px 20px 0 20px; padding: 20px 20px 0 20px;
background: #f9f9f9; background: #f9f9f9;
} }
.edit-activity .form-describe { .edit-activity .form-describe-box {
width: 560px; width: 597px;
padding: 0 20px 20px;
background: #f9f9f9; background: #f9f9f9;
} }
.edit-activity .describe-btn {
color: #5850ff;
cursor: pointer;
padding: 0 0 20px 20px;
}
.edit-activity .form-describe-box .icon-add {
width: 20px;
height: 20px;
vertical-align: middle;
}
.edit-activity .form-describe {
padding: 0 20px 10px;
}
.edit-activity .form-describe:first-child { .edit-activity .form-describe:first-child {
padding: 20px; padding: 20px 20px 10px;
} }
.edit-activity .describe-input { .edit-activity .describe-input {
width: 474px; width: 474px;
} }
.edit-activity .describe-delete { .edit-activity .describe-delete {
line-height: 42px;
}
.edit-activity .describe-delete img {
width: 20px;
height: 20px;
color: #999999; color: #999999;
margin-left: 8px; margin-left: 8px;
padding: 0;
line-height: 32px;
cursor: pointer;
} }
.edit-activity .describe-plus { .edit-activity .describe-plus {
font-size: 18px; font-size: 18px;
......
File mode changed
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!