Commit e44600e9 by 前端

Merge branch 'wangzh_dev_gh' into 'master'

Wangzh dev gh

See merge request !449
2 parents 5c7adb19 ee4ed6f0
......@@ -78,6 +78,17 @@ const getCardtypeList = params => {
returnAll: true
})
}
// 重置会员权益卡
const resetCard = params => {
params.method ='scrm.api.equity.card.reset'
return http({
url: '/rop-scrm-equity/router',
method: 'POST',
data: params,
returnAll: true
})
}
export { getCenterListApi, getMoreMerchant, updateCardContent, getCardContent, memberExportApi, getQrUrl ,getCardtypeList}
export {resetCard, getCenterListApi, getMoreMerchant, updateCardContent, getCardContent, memberExportApi, getQrUrl ,getCardtypeList}
<template>
<div class="live-room marketing">
<div class="live-room container">
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData" @handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<GLCombiForm ref="showSearch" :rowNumber="1" :formObj="searchForm" :formData="searchFormData"
@handleOk="handleSearch" @handleRest="handleReset"></GLCombiForm>
<!-- <div class="flex">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row>
......@@ -46,12 +47,15 @@
</el-form>
</div> -->
<div class="choseRow m-b-10">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in choseList" :key="index" @click="tabClick(index + 1)">
<div class="choseItem" :class="{ active: currentIndex == index + 1 }" v-for="(item, index) in choseList"
:key="index" @click="tabClick(index + 1)">
{{ item }}
</div>
<el-button :size="size" class="default-blue-btn m-l-20" type="default" @click="handleExport">导出</el-button>
</div>
<GLTable ref="memberOrderRef" v-if="isReload" :noDataImg="url" @setTableFinishFun="setTableFinishFun" :searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf" :beforeSearchFn="beforeSearchFn">
<GLTable ref="memberOrderRef" v-if="isReload" :noDataImg="url" @setTableFinishFun="setTableFinishFun"
:searchForm="searchFormTable" :tableParams="tableParams" :getListApi="getListApi" :pageConf="pageConf"
:beforeSearchFn="beforeSearchFn">
<div slot="orderType" slot-scope="scope" style="width: 200px">
<template v-if="scope.scope.orderType == 1">
<span>{{ scope.scope.packageType == 1 ? '门店套餐' : '集团套餐' }}</span>
......@@ -68,15 +72,17 @@
</span>
</GLTable>
</div>
<GLDialog class="refund-fill-boxss" mode="small" okText="确定" title="提示" :hasFooter="hasFooter" :type="'error'" @onOk="isShow = false" @onCancel="isShow = false" :visible.sync="isShow">
<GLDialog class="refund-fill-boxss" mode="small" okText="确定" title="提示" :hasFooter="hasFooter" :type="'error'"
@onOk="isShow = false" @onCancel="isShow = false" :visible.sync="isShow">
<div class="dialog-refund">
<img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div>
<div style="color: #FF4D4F;padding: 6px 0;">(时间:{{ orderDate }} 金额:{{ orderPrice }}元)</div>
<div style="color: #ff4d4f; padding: 6px 0">(时间:{{ orderDate }} 金额:{{ orderPrice }}元)</div>
<div>暂不支持退款</div>
</div>
</GLDialog>
<GLDialog class="refund-fill-box" mode="mid" title="退款确认" :hasFooter="hasFooter" :type="'error'" @onOk="refundConfirmDialog" @onCancel="refundVisible = false" :visible.sync="refundVisible">
<GLDialog class="refund-fill-box" mode="mid" title="退款确认" :hasFooter="hasFooter" :type="'error'"
@onOk="refundConfirmDialog" @onCancel="refundVisible = false" :visible.sync="refundVisible">
<div class="dialog-form">
<label>说明:</label>
<el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input>
......@@ -84,7 +90,6 @@
</GLDialog>
</div>
</template>
<script>
import { orderTypesList, orderStatusList, exportFn } from '@/common/constant'
import url from '@/assets/empty.png'
......@@ -102,6 +107,7 @@ export default {
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url,
isReload: true,
showGh: false,
size: 'small',
searchForm: {
orderStatus: '', //默认查询全部
......@@ -157,7 +163,7 @@ export default {
name: 'shareStaffName',
type: 'input',
maxlength: 100
},
}
],
choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 1,
......@@ -290,6 +296,9 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel
}
// 取消判断
this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) this.judgeGh()
// if (this.$isGroupUp) {
// let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
// this.tableParams.tableColumns.splice(idx, 1)
......@@ -299,6 +308,45 @@ export default {
this.getOptionsList('searchFormData')
},
methods: {
judgeGh() {
this.searchFormData.push(
{
label: '收款商户',
name: 'payMerchantName',
type: 'input',
maxlength: 100
},
{
label: '车牌号',
name: 'plateNum',
type: 'input',
maxlength: 100
},
{
label: '车架号',
name: 'standNo',
type: 'input',
maxlength: 100
}
)
this.tableParams.tableColumns.push(
{
label: '收款商户',
width: '140px',
prop: 'payMerchantName'
},
{
label: '车牌号',
width: '140px',
prop: 'plateNum'
},
{
label: '车架号',
width: '140px',
prop: 'standNo'
}
)
},
getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle)
......@@ -324,7 +372,6 @@ export default {
})
}
},
tabClick(index) {
this.currentIndex = index
switch (index) {
......@@ -355,7 +402,6 @@ export default {
}
this.handleSearch()
},
getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) {
......@@ -365,7 +411,6 @@ export default {
delete params.daterange
return params
},
beforeSearchFn() {
return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams()
......@@ -425,14 +470,12 @@ export default {
}
})
},
handleExport(row) {
var params = this.getParams()
orderExportApi(params).then(res => {
exportFn(res)
})
},
handleSearch() {
this.$refs.memberOrderRef.refreshTable()
},
......@@ -468,7 +511,6 @@ export default {
}
}
</script>
<style lang="scss" scoped>
// /deep/.el-input--small .el-input__inner {
// width: 215px;
......@@ -476,12 +518,13 @@ export default {
.el-range-editor.is-active,
.el-range-editor.is-active:hover {
border-color: #5850ff;
width: 215px;
}
.el-range-editor--small.el-input__inner {
width: 215px;
}
.container {
.choseRow {
display: flex;
......@@ -489,6 +532,7 @@ export default {
position: relative;
width: 367px;
left: calc(100% - 367px);
.choseItem {
display: inline-block;
cursor: pointer;
......@@ -505,43 +549,50 @@ export default {
border-bottom: 1px solid #d5d5d5;
// border-left: 1px solid #d5d5d5;
}
.active {
color: #ffffff;
background: #5850ff;
}
}
.choseItem:nth-child(1) {
border-left: 1px solid #d5d5d5;
}
}
.refund-fill-box {
.dialog-form {
padding: 26px 36px 46px 36px;
box-sizing: border-box;
display: flex;
label {
white-space: nowrap;
}
}
}
.refund-fill-boxss {
/deep/ .btn-three {
display: none;
}
.dialog-refund {
box-sizing: border-box;
display: flex;
align-items: center;
flex-direction: column;
padding-bottom: 19px;
img {
width: 32px;
height: 32px;
padding-bottom: 12px;
}
}
// ::v-deep .el-dialog__footer {
// text-align: center;
// }
}
</style>
}</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!