Commit 262275f4 by chenyu

update: update

parent a0fd2246
......@@ -34,12 +34,14 @@ Vue.prototype.$tips = function({ message = '提示', type = 'success' }) {
/* eslint-disable no-new */
limit({
createApp() {
new Vue({
el: '#app',
router,
store,
components: { App },
template: '<App/>'
window.getLimit(router, 'marketing').then(() => {
new Vue({
el: '#app',
router,
store,
components: { App },
template: '<App/>'
});
});
}
});
......@@ -5,7 +5,7 @@
<el-date-picker v-if="$route.meta.type !== 'bad'" class="w250" v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="refresh"></el-date-picker>
<el-input v-model="listParams.searchName" class="w350" placeholder="订单号/门店名称/会员姓名/卡号/导购名称" clearable @change="refresh"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button icon="iconfont icon-icon_yunxiazai fz14" v-if="$route.meta.type !== 'bad'" class="fr" type="primary" @click="exportLatestEvaluate"> 下载Excel</el-button>
<el-button icon="el-icon-setting fz14" class="fr mr10 setting" @click="auto.visible = true" type="primary"></el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingEvaluationNewestAuto)" :limit-code="$buttonCode.marketingEvaluationNewestAuto" icon="el-icon-setting fz14" class="fr mr10 setting" @click="auto.visible = true" type="primary"></el-button>
</div>
<div class="filter--box">
<el-select size="small" v-if="$route.meta.type === 'bad'" class="vertical-middle pl10 w150" v-model="badStatus" placeholder="选择差评类型" @change="$router.push('/evaluation/bad/' + badStatus)">
......@@ -19,11 +19,13 @@
<el-checkbox class="vertical-middle" size="small" border v-if="$route.meta.type !== 'bad'" :true-label="1" :false-label="0" v-model="listParams.hasReply" @change="refresh">有追评</el-checkbox>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%" element-loading-text="拼命加载中">
<el-table-column :show-overflow-tooltip="false" width="90" align="left" prop="showStatus" fixed="left" label="服务号显示">
<template slot-scope="scope">
<el-switch v-model="scope.row.showStatus" :active-value="1" :inactive-value="0" @change="changeShow(scope.row)"> </el-switch>
</template>
</el-table-column>
<template v-if="$getButtonLimit($buttonCode.marketingEvaluationNewestShow)">
<el-table-column :show-overflow-tooltip="false" width="90" align="left" prop="showStatus" fixed="left" label="服务号显示">
<template slot-scope="scope">
<el-switch :limit-code="$buttonCode.marketingEvaluationNewestShow" v-model="scope.row.showStatus" :active-value="1" :inactive-value="0" @change="changeShow(scope.row)"> </el-switch>
</template>
</el-table-column>
</template>
<el-table-column :show-overflow-tooltip="false" width="160" align="left" prop="createTime" label="首次评价时间">
<template slot-scope="scope">
<p>{{ formatDateTimeByType(scope.row.createTime, 'yyyy-MM-dd-HH-mm') }}</p>
......@@ -74,24 +76,25 @@
</el-popover>
</template>
</el-table-column>
<el-table-column :show-overflow-tooltip="false" width="80" align="center" prop="replyStatus" label="回复">
<template slot-scope="scope">
<el-button type="text" @click="replyData(scope.row)">
<template v-if="scope.row.replyStatus !== 1 && scope.row.content">
立即回复
</template>
<i v-if="scope.row.replyStatus === 1" class="el-icon-message fz20 danger-color cursor"></i>
</el-button>
</template>
</el-table-column>
<template v-if="$getButtonLimit($buttonCode.marketingEvaluationNewestReply)">
<el-table-column :show-overflow-tooltip="false" width="80" align="center" prop="replyStatus" label="回复">
<template slot-scope="scope">
<el-button :limit-code="$buttonCode.marketingEvaluationNewestReply" type="text" @click="replyData(scope.row)">
<template v-if="scope.row.replyStatus !== 1 && scope.row.content">
立即回复
</template>
<i v-if="scope.row.replyStatus === 1" class="el-icon-message fz20 danger-color cursor"></i>
</el-button>
</template>
</el-table-column>
</template>
<el-table-column label="操作" align="left" width="140px" fixed="right">
<template slot-scope="scope">
<span class="fz13" v-if="scope.row.isBad === 0">好评</span>
<span class="fz13" v-if="scope.row.visiteStatus === 0 && scope.row.isBad === 1">
<el-button type="text" @click="allocateData(scope.row)">分配</el-button>
<el-button type="text" @click="disAllocateData(scope.row)">不分配</el-button>
<span class="fz13" v-if="$getButtonLimit($buttonCode.marketingEvaluationNewestAssign) && scope.row.visiteStatus === 0 && scope.row.isBad === 1">
<el-button :limit-code="$buttonCode.marketingEvaluationNewestAssign" type="text" @click="allocateData(scope.row)">分配</el-button>
<el-button :limit-code="$buttonCode.marketingEvaluationNewestAssign" type="text" @click="disAllocateData(scope.row)">不分配</el-button>
</span>
<span class="fz13" v-if="scope.row.visiteStatus === 1">已分配</span>
<span class="fz13" v-if="scope.row.visiteStatus === 2">回访结束 <el-button type="text" @click="teleData(scope.row)">查看话务分配</el-button></span>
......
......@@ -8,7 +8,7 @@
<el-date-picker class="w250" v-model="dateTime" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="search"></el-date-picker>
<el-input v-model="listParams.storeSearch" class="w200" placeholder="门店名称/code" clearable @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-input v-model="listParams.memberSearch" class="w200" placeholder="会员昵称/手机号" clearable @change="search"><i slot="prefix" class="el-input__icon el-icon-search"></i></el-input>
<el-button icon="iconfont icon-icon_yunxiazai fz14" class="fr" type="primary" @click="exportSuggestionExcel"> 下载Excel</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingEvaluationSuggestionExc)" :limit-code="$buttonCode.marketingEvaluationSuggestionExc" icon="iconfont icon-icon_yunxiazai fz14" class="fr" type="primary" @click="exportSuggestionExcel"> 下载Excel</el-button>
</div>
<el-table tooltipEffect="light" :data="tableList" style="width: 100%" element-loading-text="拼命加载中">
<el-table-column :show-overflow-tooltip="true" min-width="120" align="left" :key="Math.random()" prop="createTime" label="评价时间">
......@@ -45,7 +45,7 @@
</el-table-column>
<el-table-column label="操作" align="left" width="140px" fixed="right">
<template slot-scope="scope">
<el-button type="text" v-if="scope.row.status === 1" @click="$router.push('/evaluation/suggestion/' + scope.row.problemId)">立即处理</el-button>
<el-button type="text" v-if="$getButtonLimit($buttonCode.marketingEvaluationsuggestionEdi) && scope.row.status === 1" :limit-code="$buttonCode.marketingEvaluationsuggestionEdi" @click="$router.push('/evaluation/suggestion/' + scope.row.problemId)">立即处理</el-button>
<el-button type="text" v-else-if="scope.row.status === 4" @click="$router.push('/evaluation/suggestion/info/' + scope.row.problemId)">已解决</el-button>
<span type="text" v-else>--</span>
</template>
......
......@@ -3,8 +3,8 @@
<div class="dm-wrap">
<h3 class="dm-title__label--outer">账户余额</h3>
<span class="fz22 danger-color vertical-middle pr20">{{ (recharge.balance / 100) | amount }}</span>
<el-button class="ml10 vertical-middle" size="mini" type="primary" @click="$router.push('/recharge/do')">充值</el-button>
<el-button style="padding: 3px 0" type="text" @click="$router.push('/recharge/record')">记录</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingRechargeBoardRecharge)" :limit-code="$buttonCode.marketingRechargeBoardRecharge" class="ml10 vertical-middle" size="mini" type="primary" @click="$router.push('/recharge/do')">充值</el-button>
<el-button v-if="$getButtonLimit($buttonCode.marketingRechargeBoardRecord)" :limit-code="$buttonCode.marketingRechargeBoardRecord" style="padding: 3px 0" type="text" @click="$router.push('/recharge/record')">记录</el-button>
</div>
<div class="dm-wrap">
<h3 class="dm-title__label--outer">今日消费</h3>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment