Commit 006ed4c3 by 前端

Merge branch 'ybw_dev_v2.1.0' into 'develop'

2022/5/5上线封版

See merge request !4
2 parents df7b0fa0 8734e0c0
...@@ -31,7 +31,7 @@ export default { ...@@ -31,7 +31,7 @@ export default {
} }
#app { #app {
background: #f4f5fa; background: #f4f5fa;
padding: 0px 20px 20px 40px; // padding: 0px 20px 20px 20px;
position: absolute; position: absolute;
box-sizing: border-box; box-sizing: border-box;
width: 100%; width: 100%;
...@@ -43,7 +43,7 @@ export default { ...@@ -43,7 +43,7 @@ export default {
// 分页全局 // 分页全局
.pagination_box { .pagination_box {
display:flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
</style> </style>
...@@ -61,7 +61,7 @@ const getPriteApi = params => { ...@@ -61,7 +61,7 @@ const getPriteApi = params => {
method: 'GET', method: 'GET',
data: params, data: params,
sign: true, sign: true,
returnAll:true returnAll: true
}) })
} }
...@@ -351,5 +351,25 @@ const failHttpByAdmin = params => { ...@@ -351,5 +351,25 @@ const failHttpByAdmin = params => {
}) })
} }
// 获取活码列表-
const activeCodeList = params => {
params.method = 'entmicro.api.code.getFreeChannelCode'
return http({
url: 'rop-scrm-entmicro/router',
method: 'POST',
data: params,
sign: true
})
}
// 更新活码
const updateActiveCode = params => {
params.method = 'scrm.api.equity.service.merchant.qrcode.update'
return http({
url: 'rop-scrm-equity/router',
method: 'POST',
data: params,
sign: true
})
}
export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, delImgApi, getSalesPersonApi,judgeSetting,failHttpByAdmin } export default { getUserInfoApi, getCountNoDataApi, getListApi, getMerchantApi, getExportApi, getPriteApi, getCarBrandListApi, getCarChildListApi, getCarTypeListApi, getCarSeriesListApi, getHotlineApi, getDefaultCarbrandApi, updateHotlineApi, updateCarBrandApi, getProListApi, getPackageListApi, getEquityApi, updateEquityApi, createCodeApi, getOrderAttrApi, getAllOrderValueApi, verifyOrderApi, checkOrderApi, updateOrderApi, uploadImgApi, backOrderApi, aduitOrderApi, delImgApi, getSalesPersonApi, judgeSetting, failHttpByAdmin, activeCodeList, updateActiveCode }
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div class="funnel_box"> <div class="funnel_box">
<div class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</div> <div class="h13_title">发券总数:{{ chartInfo.getTotal || 0 }}(张)</div>
<div class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</div> <div class="h13_title">核销总数:{{ chartInfo.usedTotal || 0 }}(张)</div>
<div class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(张)</div> <div class="h13_title">转化订单数:{{ chartInfo.upgradeTotal || 0 }}(笔)</div>
</div> </div>
<img class="funnel_icon" src="../../assets/funnel_icon.png" /> <img class="funnel_icon" src="../../assets/funnel_icon.png" />
<div class="funnel_box2"> <div class="funnel_box2">
...@@ -206,14 +206,14 @@ export default { ...@@ -206,14 +206,14 @@ export default {
flex-direction: column; flex-direction: column;
align-items: flex-start; align-items: flex-start;
justify-content: center; justify-content: center;
.wrapper{ .wrapper {
box-sizing: border-box; box-sizing: border-box;
>p{ > p {
line-height: 20px; line-height: 20px;
white-space: nowrap; white-space: nowrap;
} }
} }
.spcP{ .spcP {
padding-top: 20px; padding-top: 20px;
} }
} }
......
...@@ -25,13 +25,13 @@ ...@@ -25,13 +25,13 @@
<div class="f-size"> <div class="f-size">
<i v-show="editNotify.code == '0'" class="el-icon-success"></i> <i v-show="editNotify.code == '0'" class="el-icon-success"></i>
<i v-show="editNotify.code != '0'" class="el-icon-error"></i> <i v-show="editNotify.code != '0'" class="el-icon-error"></i>
<span>{{editNotify.code == '0' ? '操作成功' : editNotify.message}}</span> <span>{{ editNotify.code == '0' ? '操作成功' : editNotify.message }}</span>
</div> </div>
</el-dialog> </el-dialog>
<el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title"> <el-dialog :visible.sync="isSecondVisible" width="400px" class="tips-dialog" top="30%" :title="secondObj.title">
<div class="f-size"> <div class="f-size">
<i class="el-icon-warning"></i> <i class="el-icon-warning"></i>
<span>{{secondObj.txt}}</span> <span>{{ secondObj.txt }}</span>
</div> </div>
<span slot="footer" class="dialog-footer"> <span slot="footer" class="dialog-footer">
<el-button :size="size" @click="handleSecondCancel">取 消</el-button> <el-button :size="size" @click="handleSecondCancel">取 消</el-button>
...@@ -93,27 +93,31 @@ export default { ...@@ -93,27 +93,31 @@ export default {
} }
}, },
searchFormData: [ searchFormData: [
{ {
type: 'selectInput', type: 'selectInput',
selectName: 'nameOrNoOrVin', selectName: 'nameOrNoOrVin',
isClear: true, isClear: true,
inputWidth: '320px', inputWidth: '320px',
selectWidth: '110px', selectWidth: '110px',
selectOption: [{ selectOption: [
label: '客户姓名', {
name: 'customerName' label: '客户姓名',
}, { name: 'customerName'
label: '合同号', },
name: 'contractNo' {
}, { label: '合同号',
label: '车架号', name: 'contractNo'
name: 'vin' },
}], {
handleSelectChange: (value) => { label: '车架号',
this.searchSelectObj.nameOrNoOrVin.value = '' name: 'vin'
} }
}, ],
{ handleSelectChange: value => {
this.searchSelectObj.nameOrNoOrVin.value = ''
}
},
{
label: '服务状态', label: '服务状态',
name: 'orderStatus', name: 'orderStatus',
type: 'select', type: 'select',
...@@ -167,7 +171,7 @@ export default { ...@@ -167,7 +171,7 @@ export default {
this.searchFormData[idx].isHide = false this.searchFormData[idx].isHide = false
this.searchForm[this.levelToShow['2']] = '' this.searchForm[this.levelToShow['2']] = ''
var tempIdx = '' var tempIdx = ''
for(var i = 3; i <= 4; i++) { for (var i = 3; i <= 4; i++) {
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
...@@ -241,7 +245,7 @@ export default { ...@@ -241,7 +245,7 @@ export default {
width: '200px', width: '200px',
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
return [2, 4, 5].includes(cellValue.orderStatus) ? (cellValue.contractNo || '-') : '-' return [2, 4, 5].includes(cellValue.orderStatus) ? cellValue.contractNo || '-' : '-'
} }
}, },
{ {
...@@ -356,7 +360,7 @@ export default { ...@@ -356,7 +360,7 @@ export default {
line: 1, line: 1,
formatter: cellValue => { formatter: cellValue => {
var auditStatusTxt = '-' var auditStatusTxt = '-'
if([2, 4, 5].includes(cellValue.orderStatus)) { if ([2, 4, 5].includes(cellValue.orderStatus)) {
auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-' auditStatusTxt = this.baseData.auditStatusList.map(item => item.confId).includes(cellValue.auditStatus) ? this.baseData.auditStatusList.find(item => item.confId == cellValue.auditStatus).confName : '-'
} }
return auditStatusTxt return auditStatusTxt
...@@ -477,7 +481,7 @@ export default { ...@@ -477,7 +481,7 @@ export default {
}) })
this.$apis.beforeSale.getUserInfoApi({}).then(res => { this.$apis.beforeSale.getUserInfoApi({}).then(res => {
this.userInfo = res this.userInfo = res
if(res.merchantAccountLevel != 4) { if (res.merchantAccountLevel != 4) {
var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1]) var idx = this.searchFormData.findIndex(item => item.name == this.levelToShow[this.userInfo.admin ? res.merchantAccountLevel : res.merchantAccountLevel + 1])
this.searchFormData[idx].isHide = false this.searchFormData[idx].isHide = false
this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName) this.getMerchantList('', '', this.searchFormData[idx].name, this.searchFormData[idx].optionsName)
...@@ -513,8 +517,8 @@ export default { ...@@ -513,8 +517,8 @@ export default {
...tempParams ...tempParams
} }
// 商户-merchantId // 商户-merchantId
for(var i = 1; i <= 4; i++) { for (var i = 1; i <= 4; i++) {
if(this.searchForm[this.levelToShow[i]]) { if (this.searchForm[this.levelToShow[i]]) {
params.merchantId = this.searchForm[this.levelToShow[i]] params.merchantId = this.searchForm[this.levelToShow[i]]
params.accountLevel = i params.accountLevel = i
} }
...@@ -582,9 +586,12 @@ export default { ...@@ -582,9 +586,12 @@ export default {
this.isTipVisible = true this.isTipVisible = true
this.editNotify = res this.editNotify = res
clearTimeout(this.timer) clearTimeout(this.timer)
this.timer = setTimeout(() => { this.timer = setTimeout(
this.isTipVisible = false () => {
}, this.editNotify.code == '0' ? 1500 : 3000) this.isTipVisible = false
},
this.editNotify.code == '0' ? 1500 : 3000
)
if (res.code == '0') { if (res.code == '0') {
this.handleSearch() this.handleSearch()
} }
...@@ -599,14 +606,15 @@ export default { ...@@ -599,14 +606,15 @@ export default {
handleAudit(row) { handleAudit(row) {
var txt = row.auditStatus ? '撤销' : '审核通过' var txt = row.auditStatus ? '撤销' : '审核通过'
// this.isTipVisible = !this.isTipVisible // this.isTipVisible = !this.isTipVisible
this.secondConfirm(txt, '是否确认'+ txt +'?', 'beforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 }) this.secondConfirm(txt, '是否确认' + txt + '?', 'beforeSale', 'aduitOrderApi', { contractNo: row.contractNo, auditStatus: row.auditStatus ? 0 : 1 })
}, },
// 导出 // 导出
handleExport() { handleExport() {
var params = this.getParams() var params = this.getParams()
this.$apis.beforeSale.getExportApi(params).then(res => { this.$apis.beforeSale.getExportApi(params).then(res => {
// window.open(res) // window.open(res)
// eslint-disable-next-line no-undef
let tempaa = utils.getExplorer() let tempaa = utils.getExplorer()
if (tempaa == 'QQ') { if (tempaa == 'QQ') {
window.open(res) window.open(res)
...@@ -643,8 +651,8 @@ export default { ...@@ -643,8 +651,8 @@ export default {
} }
var tempIdx = '' var tempIdx = ''
var addNum = this.userInfo.admin ? 1 : 2 var addNum = this.userInfo.admin ? 1 : 2
if(this.userInfo.merchantAccountLevel != 4) { if (this.userInfo.merchantAccountLevel != 4) {
for(var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) { for (var i = this.userInfo.merchantAccountLevel + addNum; i <= 4; i++) {
tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + '']) tempIdx = this.searchFormData.findIndex(item => item.name == this.levelToShow[i + ''])
this.searchFormData[tempIdx].isHide = true this.searchFormData[tempIdx].isHide = true
this.searchForm[this.levelToShow[i + '']] = '' this.searchForm[this.levelToShow[i + '']] = ''
...@@ -676,8 +684,8 @@ export default { ...@@ -676,8 +684,8 @@ export default {
width: calc(100% - 210px); width: calc(100% - 210px);
height: 30px; height: 30px;
font-size: 12px; font-size: 12px;
background-color: #FFF0BB; background-color: #fff0bb;
border: 1px solid #FFCA78; border: 1px solid #ffca78;
padding: 4px 10px; padding: 4px 10px;
border-radius: 2px; border-radius: 2px;
} }
......
...@@ -36,24 +36,24 @@ ...@@ -36,24 +36,24 @@
<el-radio v-model="wayRadio" :label="1">小程序领取</el-radio> <el-radio v-model="wayRadio" :label="1">小程序领取</el-radio>
</div> </div>
<div class="radio_panel"> <div class="radio_panel">
<el-image :class="wayRadio == 2 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.qrcodeUrl" :preview-src-list="[settingData.qrcodeUrl]"></el-image> <el-image :class="wayRadio == 2 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.qrcodeUrl" :preview-src-list="[settingData.qrcodeUrl]"></el-image>
</div> </div>
</div> </div>
<div v-if="!settingData.liveCodeUrl" class="box"> <div v-if="!settingData.liveCodeUrl" class="box">
<div class="radio_title"> <div class="radio_title">
<el-radio v-model="wayRadio" :label="2">加企微领取</el-radio> <el-radio v-model="wayRadio" :label="2">加企微领取</el-radio>
</div> </div>
<el-button :disabled="wayRadio==1" size="small" @click="openActiveModal" class="custom_blue">选择活码</el-button> <el-button :disabled="wayRadio == 1" size="small" @click="openActiveModal" class="custom_blue">选择活码</el-button>
</div> </div>
<div v-if="settingData.liveCodeUrl || this.activeId" class="box"> <div v-if="settingData.liveCodeUrl || this.activeId" class="box">
<div class="radio_title"> <div class="radio_title">
<el-radio v-model="wayRadio" :label="2" @change="selectActivedRadio">加企微领取</el-radio> <el-radio v-model="wayRadio" :label="2" @change="selectActivedRadio">加企微领取</el-radio>
</div> </div>
<div class="radio_panel"> <div class="radio_panel">
<el-image :class="wayRadio == 1 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.liveCodeUrl" :preview-src-list="[settingData.liveCodeUrl]"></el-image> <el-image :class="wayRadio == 1 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.liveCodeUrl" :preview-src-list="[settingData.liveCodeUrl]"></el-image>
</div> </div>
<div class="radio_tip">{{ settingData.liveCodeName }}</div> <div class="radio_tip">{{ settingData.liveCodeName }}</div>
<div v-show="wayRadio==2" class="radio_edit" @click="toEditActived">修改</div> <div v-show="wayRadio == 2" class="radio_edit" @click="toEditActived">修改</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
{ {
label: '使用专员', label: '使用专员',
prop: 'staffName', prop: 'staffName',
width: '130px', width: '130px'
}, },
{ {
label: '标签', label: '标签',
...@@ -195,7 +195,7 @@ export default { ...@@ -195,7 +195,7 @@ export default {
{ {
label: '回复活动', label: '回复活动',
prop: 'marketingName', prop: 'marketingName',
formatter: (cellValue) => { formatter: cellValue => {
return `【${cellValue.marketingName}】` return `【${cellValue.marketingName}】`
} }
} }
...@@ -250,7 +250,7 @@ export default { ...@@ -250,7 +250,7 @@ export default {
getHotline() { getHotline() {
this.$apis.beforeSale.getHotlineApi({}).then(res => { this.$apis.beforeSale.getHotlineApi({}).then(res => {
this.editForm.hotline = res.serviceHotline this.editForm.hotline = res.serviceHotline
this.wayRadio = res.codeType?res.codeType:1 this.wayRadio = res.codeType ? res.codeType : 1
this.settingData = res this.settingData = res
}) })
}, },
...@@ -288,7 +288,7 @@ export default { ...@@ -288,7 +288,7 @@ export default {
}) })
}, },
handleConfirm() { handleConfirm() {
if(this.wayRadio==1 || (this.activeId&&this.wayRadio==2)){ if (this.wayRadio == 1 || (this.activeId && this.wayRadio == 2)) {
this.comfimSelect() this.comfimSelect()
} }
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
...@@ -333,14 +333,14 @@ export default { ...@@ -333,14 +333,14 @@ export default {
this.dialogTableVisible = true this.dialogTableVisible = true
}, },
// 列表确定活码 // 列表确定活码
toConfimActived(){ toConfimActived() {
this.comfimSelect() this.comfimSelect()
}, },
comfimSelect() { comfimSelect() {
if (this.activeId == -1 && this.wayRadio == 2) { if (this.activeId == -1 && this.wayRadio == 2) {
return return
} }
if(!this.tableData.length&&this.dialogTableVisible){ if (!this.tableData.length && this.dialogTableVisible) {
this.dialogTableVisible = false this.dialogTableVisible = false
return return
} }
...@@ -384,17 +384,17 @@ export default { ...@@ -384,17 +384,17 @@ export default {
this.activeInfo = item this.activeInfo = item
}, },
// 跳转到新建活码渠道 // 跳转到新建活码渠道
jumpToCreated(){ jumpToCreated() {
this.$history.push('/drainage/channel/addCode') this.$history.push('/drainage/channel/addCode')
}, },
// 选择企微 // 选择企微
selectActivedRadio(e){ selectActivedRadio(e) {
if(this.settingData.liveCodeUrl){ if (this.settingData.liveCodeUrl) {
this.activeId = this.settingData.liveCodeUrl this.activeId = this.settingData.liveCodeUrl
this.activeInfo = { this.activeInfo = {
codeName: this.settingData.liveCodeName, codeName: this.settingData.liveCodeName,
id: this.settingData.liveCodeId id: this.settingData.liveCodeId
} }
} }
} }
} }
...@@ -404,12 +404,11 @@ export default { ...@@ -404,12 +404,11 @@ export default {
.edit-equity { .edit-equity {
margin-top: 17px; margin-top: 17px;
width: 100%; width: 100%;
height: calc(100% - 108px); // height: calc(100% - 108px);
min-height: 600px;
} }
.edit-container { .edit-container {
width: 100%; width: 100%;
height: 100%; height: 76vh;
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
} }
...@@ -641,13 +640,13 @@ export default { ...@@ -641,13 +640,13 @@ export default {
// top: 7px; // top: 7px;
// } // }
} }
.dialog-footer{ .dialog-footer {
position: relative; position: relative;
.created_btn{ .created_btn {
position: absolute; position: absolute;
left: 0px; left: 0px;
height: 50%; height: 50%;
transform: translate(0,-50%); transform: translate(0, -50%);
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
......
<!-- 店面服务设置 --> <!-- 店面服务设置 -->
<template> <template>
<div class="before-sale edit-equity mall-server"> <div class="before-sale edit-equity mall-server">
<template v-if="showPage==1"> <template v-if="showPage == 1">
<div class="container edit-container mall-server-box"> <div class="container edit-container mall-server-box">
<p class="edit-title">{{ title }}</p> <p class="edit-title">{{ title }}</p>
<glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form> <glsx-combi-form class="edit-form-container" ref="editFormRef" labelWidth="144px" :isBlock="isBlock" :formRef="editChildRef" :formObj="editForm" :formData="editFormData" :formRules="editRule"></glsx-combi-form>
...@@ -17,17 +17,56 @@ ...@@ -17,17 +17,56 @@
</el-select> </el-select>
</template> </template>
</glsx-combi-form> </glsx-combi-form>
<div style="margin-left: 140px"> <!-- v1.1.0新增活码 -->
<div class="new_container">
<p class="title">针对包含“车主生活权益服务”的服务套餐,提供两种领取该服务的方式供门店选择。</p>
<div class="point_title">
<span class="point_icon"></span>
<span class="point_text">方式1:小程序领取。(车主直接登录小程序领取)</span>
</div>
<div style="height: 8px"></div>
<div class="point_title">
<span class="point_icon"></span>
<span class="point_text">方式2:加企微领取。(创建自动回复配有领取链接的活码,客户扫码加企微,自动回复小程序领取)</span>
</div>
<div class="radio_wrap">
<div class="box">
<div class="radio_title">
<el-radio v-model="wayRadio" :label="1">小程序领取</el-radio>
</div>
<div class="radio_panel">
<el-image :class="wayRadio == 2 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.qrcodeUrl" :preview-src-list="[settingData.qrcodeUrl]"></el-image>
</div>
</div>
<div v-if="!settingData.liveCodeUrl" class="box">
<div class="radio_title">
<el-radio v-model="wayRadio" :label="2">加企微领取</el-radio>
</div>
<el-button :disabled="wayRadio == 1" size="small" @click="openActiveModal" class="custom_blue">选择活码</el-button>
</div>
<div v-if="settingData.liveCodeUrl || this.activeId" class="box">
<div class="radio_title">
<el-radio v-model="wayRadio" :label="2" @change="selectActivedRadio">加企微领取</el-radio>
</div>
<div class="radio_panel">
<el-image :class="wayRadio == 1 ? 'opcaSty' : ''" style="width: 88px; height: 88px" :src="settingData.liveCodeUrl" :preview-src-list="[settingData.liveCodeUrl]"></el-image>
</div>
<div class="radio_tip">{{ settingData.liveCodeName }}</div>
<div v-show="wayRadio == 2" class="radio_edit" @click="toEditActived">修改</div>
</div>
</div>
</div>
<!-- <div style="margin-left: 140px">
<p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p> <p>针对包含“车主生活权益服务”的服务套餐,提供通过扫描小程序码进行领取“车主生活权益服务”。</p>
<img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" /> <img style="margin-top: 20px;" class="qrcodeImg" :src="qrcodeUrl" />
</div> </div> -->
</div> </div>
<!-- <div class="footer" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }"> --> <div class="fixed_bottom" :style="{ left: footerLeft + 'px', width: footerWidth + 'px' }">
<div class="footer"> <!-- <div class="footer"> -->
<el-button size="small" type="primary" @click="handleConfirm">确定</el-button> <el-button size="small" type="primary" @click="handleConfirm">确定</el-button>
</div> </div>
</template> </template>
<template v-if="showPage==2"> <template v-if="showPage == 2">
<div class="nodata_widget"> <div class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper"> <div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" /> <img src="../../assets/nodata_icon.png" />
...@@ -36,6 +75,40 @@ ...@@ -36,6 +75,40 @@
</div> </div>
</div> </div>
</template> </template>
<el-dialog width="60%" height="50%" :visible.sync="dialogTableVisible">
<div slot="title" class="customTitle">
<div class="title1">选择渠道活码</div>
<span class="h9_title">仅查询自动回复中活动类型为“无忧服务”的活码</span>
</div>
<GLTable ref="table1" max-height="500" :tableTotal="tableTotal" layout="prev, pager, next" :hasNum="false" :tableData="tableData" :tableParams="tableParams">
<div slot="qrCode" slot-scope="scope">
<el-radio v-model="activeId" :label="scope.scope.qrCode" @change="selectActived($event, scope.scope)">&nbsp;</el-radio>
</div>
<div slot="tagging" slot-scope="scope" class="tag-panel">
<el-popover trigger="hover" placement="top" v-if="scope.scope.taggingList && scope.scope.taggingList.length > 3">
<div :title="item.name" class="accountType-row accountType-row-tag" v-for="(item, index) in scope.scope.taggingList" :key="index">
{{ item ? item.name : '' }}
</div>
<div slot="reference" class="name-wrapper">
<div v-for="(item, index) in scope.scope.taggingList" :key="index" v-show="index < 4">
<div :title="item.name" class="accountType-row accountType-row-tag">{{ index == 3 && scope.scope.taggingList.length > 3 ? '...(' + scope.scope.taggingList.length + ')' : item ? item.name : '' }}</div>
</div>
</div>
</el-popover>
<template v-if="scope.scope.taggingList && scope.scope.taggingList.length <= 3 && scope.scope.taggingList.length > 0">
<div v-for="(item, index) in scope.scope.taggingList" :key="index">
<div :title="item.name" class="accountType-row accountType-row-tag">{{ item ? item.name : '' }}</div>
</div>
</template>
<div v-if="!scope.scope.taggingList || (scope.scope.taggingList && scope.scope.taggingList.length == 0)">--</div>
</div>
</GLTable>
<span slot="footer" class="dialog-footer flex_cc">
<span v-if="!tableData.length" @click="jumpToCreated" class="created_btn">创建活码</span>
<el-button size="mini" @click="dialogTableVisible = false">取消</el-button>
<el-button size="mini" type="primary" @click="toConfimActived">确定</el-button>
</span>
</el-dialog>
</div> </div>
</template> </template>
...@@ -87,8 +160,48 @@ export default { ...@@ -87,8 +160,48 @@ export default {
carBrandOptions: [], carBrandOptions: [],
carChildOptions: [] carChildOptions: []
}, },
showPage:0, showPage: 0,
nodataHeight: 0, nodataHeight: 0,
wayRadio: 1,
dialogTableVisible: false,
tabletotal: 0,
tableData: [],
tableParams: {
tableOption: false,
btnId: new Date().getTime() + parseInt(Math.random() * 1000),
tableColumns: [
{
label: '',
prop: 'qrCode',
width: '40px',
addHtml: 'qrCode'
},
{
label: '渠道名称',
prop: 'codeName'
},
{
label: '使用专员',
prop: 'staffName',
width: '130px'
},
{
label: '标签',
prop: 'tagging',
addHtml: 'tagging',
width: '150px'
},
{
label: '回复活动',
prop: 'marketingName',
formatter: cellValue => {
return `【${cellValue.marketingName}】`
}
}
]
},
activeId: '',
settingData: {}
} }
}, },
...@@ -110,10 +223,13 @@ export default { ...@@ -110,10 +223,13 @@ export default {
}, },
mounted() { mounted() {
if(this.showPage==2){ if (this.showPage == 2) {
return return
} }
this.getHotline() this.getHotline()
this.getActiveCode()
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// this.getDefaultCarbrand() // this.getDefaultCarbrand()
}, },
...@@ -121,7 +237,8 @@ export default { ...@@ -121,7 +237,8 @@ export default {
getHotline() { getHotline() {
this.$apis.ghBeforeSale.getHotlineApi({}).then(res => { this.$apis.ghBeforeSale.getHotlineApi({}).then(res => {
this.editForm.hotline = res.serviceHotline this.editForm.hotline = res.serviceHotline
this.qrcodeUrl = res.qrcodeUrl this.wayRadio = res.codeType ? res.codeType : 1
this.settingData = res
}) })
}, },
getDefaultCarbrand() { getDefaultCarbrand() {
...@@ -158,6 +275,9 @@ export default { ...@@ -158,6 +275,9 @@ export default {
}) })
}, },
handleConfirm() { handleConfirm() {
if (this.wayRadio == 1 || (this.activeId && this.wayRadio == 2)) {
this.comfimSelect()
}
this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => { this.$refs.editFormRef.$refs[this.editChildRef].validate(valid => {
if (valid) { if (valid) {
var params = this.$common.utils.deepClone(this.editForm) var params = this.$common.utils.deepClone(this.editForm)
...@@ -171,6 +291,98 @@ export default { ...@@ -171,6 +291,98 @@ export default {
}) })
} }
}) })
},
// 获取活码
getActiveCode() {
let para = {
pageNum: this.dialogTableVisible ? this.$refs.table1.page.pageNum : 1,
pageSize: this.dialogTableVisible ? this.$refs.table1.page.pageSize : 10
}
this.$apis.ghBeforeSale.activeCodeList(para).then(res => {
this.tableData = res.data
this.tableData.forEach(item => {
item.tagging = item.tagging || []
this.$set(item, 'taggingList', [])
const tagging = eval(item.tagging)
tagging.forEach(itm => {
let name = itm.name.split(',')
name.forEach((tag, index) => {
item.taggingList.push({ name: tag })
})
})
})
})
},
openActiveModal() {
if (this.wayRadio == 1) {
return
}
this.dialogTableVisible = true
},
// 列表确定活码
toConfimActived() {
this.comfimSelect()
},
comfimSelect() {
if (this.activeId == -1 && this.wayRadio == 2) {
return
}
if (!this.tableData.length && this.dialogTableVisible) {
this.dialogTableVisible = false
return
}
const { session } = this.$globalState
let para = {}
if (this.wayRadio == 1) {
para = {
merchantId: session.merchantId,
codeType: this.wayRadio
}
} else {
para = {
merchantId: session.merchantId,
liveCodeUrl: this.activeId,
codeType: this.wayRadio,
liveCodeName: this.activeInfo.codeName,
liveCodeId: this.activeInfo.id
}
}
this.$apis.ghBeforeSale.updateActiveCode(para).then(res => {
this.dialogTableVisible = false
this.settingData.liveCodeUrl = this.activeId
this.getHotline()
})
},
// 修改活码
toEditActived() {
this.tableData.forEach(item => {
if (item.id == this.settingData.liveCodeId) {
this.activeId = item.qrCode
this.activeInfo = {
codeName: item.codeName,
id: item.id
}
}
})
this.dialogTableVisible = true
},
// 选择活码
selectActived(e, item) {
this.activeInfo = item
},
// 跳转到新建活码渠道
jumpToCreated() {
this.$history.push('/drainage/channel/addCode')
},
// 选择企微
selectActivedRadio(e) {
if (this.settingData.liveCodeUrl) {
this.activeId = this.settingData.liveCodeUrl
this.activeInfo = {
codeName: this.settingData.liveCodeName,
id: this.settingData.liveCodeId
}
}
} }
} }
} }
...@@ -181,9 +393,10 @@ export default { ...@@ -181,9 +393,10 @@ export default {
background: #ffffff; background: #ffffff;
box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1); box-shadow: 0 10px 20px 0 rgba(88, 80, 255, 0.1);
padding: 20px; padding: 20px;
height: 76vh;
} }
.before-sale{ .before-sale {
padding-top: 17px; padding-top: 17px;
} }
...@@ -263,11 +476,11 @@ export default { ...@@ -263,11 +476,11 @@ export default {
height: 160px; height: 160px;
} }
.mall-server{ .mall-server {
height: calc(100% - 94px); height: calc(100% - 94px);
} }
.mall-server-box{ .mall-server-box {
height: 100%; height: 100%;
} }
.nodata_widget { .nodata_widget {
...@@ -295,4 +508,155 @@ export default { ...@@ -295,4 +508,155 @@ export default {
} }
} }
} }
.fixed_bottom {
position: fixed;
width: 100%;
bottom: 0px;
height: 78px;
display: flex;
align-items: center;
justify-content: center;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.new_container {
box-sizing: border-box;
padding-left: 76px;
margin-top: 36px;
.title {
// width: 594px;
height: 22px;
font-size: 16px;
font-weight: 500;
color: #333333;
line-height: 22px;
margin-bottom: 16px;
}
.point_title {
display: flex;
align-items: center;
font-size: 14px;
font-weight: 400;
color: #666666;
line-height: 20px;
.point_icon {
width: 5px;
height: 5px;
background: #5850ff;
border-radius: 50%;
margin-right: 4px;
}
}
.radio_wrap {
margin-top: 28px;
display: flex;
.box {
margin-right: 122px;
.radio_panel {
margin-top: 10px;
width: 88px;
height: 88px;
border-radius: 2px;
border: 1px solid #dbdbdb;
> img {
width: 88px;
height: 88px;
}
.opcaSty {
opacity: 0.2;
}
}
.radio_tip {
font-size: 12px;
font-weight: 400;
color: #333333;
line-height: 17px;
margin: 4px 0;
}
.radio_edit {
font-size: 12px;
font-weight: 400;
color: #5850ff;
line-height: 17px;
cursor: pointer;
}
.custom_blue {
margin-top: 10px;
width: 96px;
background: #ffffff;
color: #5850ff;
border: 1px solid #5850ff;
}
}
}
}
.customTitle {
display: flex;
align-items: center;
.title1 {
font-size: 20px;
font-weight: 600;
color: #333333;
line-height: 28px;
margin-right: 8px;
}
}
.accountType-row {
text-align: left;
position: relative;
font-size: 14px;
line-height: 14px;
padding-left: 15px;
border-radius: 4px;
border: 1px solid #e8e8ea;
padding: 6px;
display: inline-block;
margin-bottom: 5px;
margin-right: 5px;
&-tag {
display: inline-block;
border: 1px solid #e8e8ea;
background: #fafbfe;
text-align: center;
font-size: 14px;
font-weight: 400;
color: #666;
max-width: 150px;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
i {
color: #75acff;
}
// &::before {
// content: '';
// position: absolute;
// width: 6px;
// height: 6px;
// background: #5850ff;
// border-radius: 8px;
// left: 0px;
// top: 7px;
// }
}
.dialog-footer {
position: relative;
.created_btn {
position: absolute;
left: 0px;
height: 50%;
transform: translate(0, -50%);
cursor: pointer;
font-size: 16px;
font-weight: 600;
text-decoration: underline;
color: #5850ff;
line-height: 26px;
}
}
.edit-equity /deep/ .el-dialog__body {
height: 520px;
}
</style> </style>
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
<div class="cell_wrapper flex_sc flex_esc"> <div class="cell_wrapper flex_sc flex_esc">
<el-button size="mini" @click="toshowDialog">查看礼券</el-button> <el-button size="mini" @click="toshowDialog">查看礼券</el-button>
<!-- <el-button size="mini" @click="toExport">导出数据</el-button> --> <!-- <el-button size="mini" @click="toExport">导出数据</el-button> -->
<GLButton size="mini" fn="导出礼券" @click="toExport">导出数据</GLButton> <GLButton size="mini" fn="导出礼券" @click="toExport">导出数据</GLButton>
</div> </div>
<div style="height: 2px"></div> <div style="height: 2px"></div>
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
...@@ -291,26 +291,28 @@ export default { ...@@ -291,26 +291,28 @@ export default {
// 手机号 // 手机号
params.customerPhone = this.phoneNum params.customerPhone = this.phoneNum
} }
this.toGetCouponsList(params) this.$refs.table.page.pageNum = 1
this.newHttpParam = params
this.toGetCouponsList(true)
}, },
toshowDialog() { toshowDialog() {
this.dialogTableVisible = true this.dialogTableVisible = true
}, },
toGetCouponsList(params = {}) { toGetCouponsList() {
let method = findCoupons() let method = findCoupons()
let para = { let para = {
routerMethod: method, routerMethod: method,
currentPage: this.$refs.table.page.pageNum, currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize, pageSize: this.$refs.table.page.pageSize,
...params ...this.newHttpParam
} }
converterApi(para).then(res => { converterApi(para).then(res => {
this.httpParam = { this.httpParam = {
currentPage: this.$refs.table.page.pageNum, currentPage: this.$refs.table.page.pageNum,
pageSize: this.$refs.table.page.pageSize, pageSize: this.$refs.table.page.pageSize,
...params ...this.newHttpParam
} }
if(!res){ if (!res) {
return return
} }
this.tableData = res.list.map(item => { this.tableData = res.list.map(item => {
...@@ -414,7 +416,7 @@ export default { ...@@ -414,7 +416,7 @@ export default {
width: 156px; width: 156px;
} }
} }
.flex_esc{ .flex_esc {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
} }
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
</div> </div>
</template> </template>
</div> </div>
<div v-if="showCase" class="sec_con"> <div v-if="showCase" class="sec_con" :style="[{ height: curShowCaseIndex == 0 ? '490px' : '400px' }]">
<div class="case_content"> <div class="case_content">
<caseOne v-if="curShowCaseIndex == 0"></caseOne> <caseOne v-if="curShowCaseIndex == 0"></caseOne>
<caseThree v-if="curShowCaseIndex == 1"></caseThree> <caseThree v-if="curShowCaseIndex == 1"></caseThree>
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
data() { data() {
return { return {
imagBaseURL, imagBaseURL,
code:'https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png', code: 'https://img01.glsx.com.cn/weapp/resource/saas/scrm/lianghh.png',
num1: '', num1: '',
num2: 1, num2: 1,
checked: false, checked: false,
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
.sec_con { .sec_con {
box-sizing: border-box; box-sizing: border-box;
margin-top: 10px; margin-top: 10px;
height: 400px; height: 490px;
background: #ffffff; background: #ffffff;
position: relative; position: relative;
.bg_icon { .bg_icon {
...@@ -569,18 +569,18 @@ export default { ...@@ -569,18 +569,18 @@ export default {
} }
} }
} }
::v-deep .video-dialog{ ::v-deep .video-dialog {
.el-dialog__header{ .el-dialog__header {
border-bottom: none; border-bottom: none;
background-color: #000; background-color: #000;
.el-dialog__headerbtn{ .el-dialog__headerbtn {
top:15px; top: 15px;
font-size: 24px; font-size: 24px;
} }
} }
.el-dialog__body{ .el-dialog__body {
padding: 0; padding: 0;
display: flex; display: flex;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<div class="right_widget"> <div class="right_widget">
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
<!-- <el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button> --> <!-- <el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button> -->
<GLButton class="cell_btn_max" size="mini" fn="导出分账订单" @click="toExport">导出数据</GLButton> <GLButton class="cell_btn_max" size="mini" fn="导出分账订单" @click="toExport">导出数据</GLButton>
</div> </div>
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button> <el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
...@@ -191,7 +191,7 @@ export default { ...@@ -191,7 +191,7 @@ export default {
{ {
label: '车架号', label: '车架号',
prop: 'standNo', prop: 'standNo',
width: '110px' width: '160px'
}, },
{ {
label: '分账账户', label: '分账账户',
...@@ -201,7 +201,7 @@ export default { ...@@ -201,7 +201,7 @@ export default {
{ {
label: '总分账金额(元)', label: '总分账金额(元)',
prop: 'divisionMoney', prop: 'divisionMoney',
width: '110px' width: '150px'
}, },
{ {
label: '导流方名称', label: '导流方名称',
...@@ -623,4 +623,4 @@ export default { ...@@ -623,4 +623,4 @@ export default {
// .table_wrap /deep/ .el-table tbody tr:hover > td { // .table_wrap /deep/ .el-table tbody tr:hover > td {
// background: #f4f3ff !important; // background: #f4f3ff !important;
// } // }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -12,8 +12,8 @@ ...@@ -12,8 +12,8 @@
<p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p> <p class="h20_title">累计产值:总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<p class="h20_title">昨日产值:当前时间前一天的产值</p> <p class="h20_title">昨日产值:当前时间前一天的产值</p>
<p class="h20_title">今日产值:当前时间的实时产值</p> <p class="h20_title">今日产值:当前时间的实时产值</p>
<p v-if="accountLevel!=4" class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p> <!-- <p v-if="accountLevel != 4" class="h20_title">平均单店产值:一个门店的平均产值=累计产值/开通精品升级的门店数</p>
<p v-if="accountLevel==4" class="h20_title">行业均值(单店):一个门店的平均产值=所有门店的累计产值/开通精品升级的门店数。</p> <p v-if="accountLevel == 4" class="h20_title">行业均值(单店):一个门店的平均产值=所有门店的累计产值/开通精品升级的门店数。</p> -->
<p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p> <p class="h20_title">冠军店:显示统计时间范围内产值最高的店及占比,占比=冠军店产值/总产值</p>
<p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p> <p class="h20_title">累计利润:统计时间范围内该店的导流方分润金额的总和</p>
<p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p> <p class="h20_title">昨日利润:当前时间前一天的导流方分润金额</p>
...@@ -34,8 +34,8 @@ ...@@ -34,8 +34,8 @@
<p style="height: 15px"></p> <p style="height: 15px"></p>
<p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p> <p class="h13_title">今日产值:{{ productValueInfo.todayDivisionMoney ? '¥' : '' }}{{ productValueInfo.todayDivisionMoney || '---' }}</p>
</div> </div>
<span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> <!-- <span class="text_tip_price2 h13_title">行业均值(单店):{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> -->
<span class="text_tip_price3 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span> <span class="text_tip_price2 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span> <span class="text_tip_price4 h13_title">今日利润:{{ productValueInfo.todayProfitMoney ? '¥' : '' }}{{ productValueInfo.todayProfitMoney || '---' }}</span>
<span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span> <span class="text_tip_price11 h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</template> </template>
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
<span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span> <span class="h13_title">昨日利润:{{ productValueInfo.yesterdayProfitMoney ? '¥' : '' }}{{ productValueInfo.yesterdayProfitMoney || '---' }}</span>
</div> </div>
<span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span> <span class="text_tip_price7 h13_title">累计利润:{{ productValueInfo.profitMoney ? '¥' : '' }}{{ productValueInfo.profitMoney || '---' }}</span>
<span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> <!-- <span class="text_tip_price6 h13_title">平均单店产值:{{ productValueInfo.totalDivisionMoney ? '¥' : '' }}{{ productValueInfo.totalDivisionMoney || '---' }}</span> -->
<span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span> <span v-if="firsStore" class="text_tip_price5 h13_title">冠军店:{{ firsStore.merchantName }}(占{{ persent }}%)</span>
</template> </template>
</div> </div>
...@@ -378,7 +378,7 @@ export default { ...@@ -378,7 +378,7 @@ export default {
'merchantAccountLevelList[0]': temp 'merchantAccountLevelList[0]': temp
} }
get4SList(para).then(res => { get4SList(para).then(res => {
if(res){ if (res) {
this.storeList = res.list || [] this.storeList = res.list || []
} }
}) })
...@@ -728,4 +728,4 @@ export default { ...@@ -728,4 +728,4 @@ export default {
height: 9px; height: 9px;
} }
} }
</style>
\ No newline at end of file \ No newline at end of file
</style>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<div class="right_widget"> <div class="right_widget">
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
<!-- <el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button> --> <!-- <el-button class="cell_btn_max" size="mini" @click="toExport">导出数据</el-button> -->
<GLButton class="cell_btn_max" size="mini" fn="导出精品升级订单" @click="toExport">导出数据</GLButton> <GLButton class="cell_btn_max" size="mini" fn="导出精品升级订单" @click="toExport">导出数据</GLButton>
</div> </div>
<div class="cell_wrapper flex_sc"> <div class="cell_wrapper flex_sc">
<el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button> <el-button class="cell_btn" size="mini" @click="clearFind">重置</el-button>
...@@ -170,7 +170,7 @@ ...@@ -170,7 +170,7 @@
</div> </div>
</div> </div>
<div class="table_wrap"> <div class="table_wrap">
<el-table id="initTable" class="hightline" :data="tableData"> <el-table ref="subTable" id="initTable" class="hightline" :data="tableData">
<!-- //实现高亮竖线 --> <!-- //实现高亮竖线 -->
<el-table-column fixed="left" width="5"> <el-table-column fixed="left" width="5">
<template slot-scope="scope"> <template slot-scope="scope">
...@@ -716,6 +716,9 @@ export default { ...@@ -716,6 +716,9 @@ export default {
changTableCoulum(e) { changTableCoulum(e) {
const { session } = this.$globalState const { session } = this.$globalState
localStorage.setItem(`menuList${session.merchantId}`, JSON.stringify(e)) localStorage.setItem(`menuList${session.merchantId}`, JSON.stringify(e))
this.$nextTick(() => {
this.$refs.subTable.doLayout()
})
}, },
// 查看明细 // 查看明细
openDetail(item) { openDetail(item) {
...@@ -896,8 +899,7 @@ export default { ...@@ -896,8 +899,7 @@ export default {
this.detailImageList.push(this.detailImage) this.detailImageList.push(this.detailImage)
this.dialogVisible = true this.dialogVisible = true
}) })
}, }
} }
} }
</script> </script>
...@@ -1067,10 +1069,10 @@ export default { ...@@ -1067,10 +1069,10 @@ export default {
.right_select /deep/ .el-select .el-tag__close.el-icon-close { .right_select /deep/ .el-select .el-tag__close.el-icon-close {
display: none; display: none;
} }
.table_wrap /deep/ .el-table__row>td{ .table_wrap /deep/ .el-table__row > td {
border-right: none; border-right: none;
} }
.table_wrap /deep/ .el-table th.is-leaf:first-child{ .table_wrap /deep/ .el-table th.is-leaf:first-child {
border-right: none; border-right: none;
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!