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 => { ...@@ -78,6 +78,17 @@ const getCardtypeList = params => {
returnAll: true 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> <template>
<div class="live-room marketing"> <div class="live-room marketing">
<div class="live-room container"> <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"> <!-- <div class="flex">
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right"> <el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row> <el-row>
...@@ -46,12 +47,15 @@ ...@@ -46,12 +47,15 @@
</el-form> </el-form>
</div> --> </div> -->
<div class="choseRow m-b-10"> <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 }} {{ item }}
</div> </div>
<el-button :size="size" class="default-blue-btn m-l-20" type="default" @click="handleExport">导出</el-button> <el-button :size="size" class="default-blue-btn m-l-20" type="default" @click="handleExport">导出</el-button>
</div> </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"> <div slot="orderType" slot-scope="scope" style="width: 200px">
<template v-if="scope.scope.orderType == 1"> <template v-if="scope.scope.orderType == 1">
<span>{{ scope.scope.packageType == 1 ? '门店套餐' : '集团套餐' }}</span> <span>{{ scope.scope.packageType == 1 ? '门店套餐' : '集团套餐' }}</span>
...@@ -68,15 +72,17 @@ ...@@ -68,15 +72,17 @@
</span> </span>
</GLTable> </GLTable>
</div> </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"> <div class="dialog-refund">
<img class="img" src="../../images/warn.png" /> <img class="img" src="../../images/warn.png" />
<div>该会员在升级黑卡会员期间,已购买过生活权益</div> <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>暂不支持退款</div>
</div> </div>
</GLDialog> </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"> <div class="dialog-form">
<label>说明:</label> <label>说明:</label>
<el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input> <el-input v-model.trim="refund" type="textarea" :rows="3" placeholder="请输入退款说明"></el-input>
...@@ -84,7 +90,6 @@ ...@@ -84,7 +90,6 @@
</GLDialog> </GLDialog>
</div> </div>
</template> </template>
<script> <script>
import { orderTypesList, orderStatusList, exportFn } from '@/common/constant' import { orderTypesList, orderStatusList, exportFn } from '@/common/constant'
import url from '@/assets/empty.png' import url from '@/assets/empty.png'
...@@ -102,6 +107,7 @@ export default { ...@@ -102,6 +107,7 @@ export default {
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店 accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url, url: url,
isReload: true, isReload: true,
showGh: false,
size: 'small', size: 'small',
searchForm: { searchForm: {
orderStatus: '', //默认查询全部 orderStatus: '', //默认查询全部
...@@ -157,7 +163,7 @@ export default { ...@@ -157,7 +163,7 @@ export default {
name: 'shareStaffName', name: 'shareStaffName',
type: 'input', type: 'input',
maxlength: 100 maxlength: 100
}, }
], ],
choseList: ['全部', '待收货', '已完成', '退款|售后'], choseList: ['全部', '待收货', '已完成', '退款|售后'],
currentIndex: 1, currentIndex: 1,
...@@ -290,6 +296,9 @@ export default { ...@@ -290,6 +296,9 @@ export default {
this.merchantModel = this.$globalState.session.merchantModel this.merchantModel = this.$globalState.session.merchantModel
this.accountLevel = this.$globalState.session.accountLevel this.accountLevel = this.$globalState.session.accountLevel
} }
// 取消判断
this.showGh = window.location.host.indexOf('cgacar') != -1
if (this.showGh) this.judgeGh()
// if (this.$isGroupUp) { // if (this.$isGroupUp) {
// let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人') // let idx = this.tableParams.tableColumns.findIndex(item => item.label == '推荐人')
// this.tableParams.tableColumns.splice(idx, 1) // this.tableParams.tableColumns.splice(idx, 1)
...@@ -299,6 +308,45 @@ export default { ...@@ -299,6 +308,45 @@ export default {
this.getOptionsList('searchFormData') this.getOptionsList('searchFormData')
}, },
methods: { 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) { getOptionsList(formName, hasAll = true, refreshSigle) {
if (refreshSigle) { if (refreshSigle) {
var item = this[formName].find(k => k.name == refreshSigle) var item = this[formName].find(k => k.name == refreshSigle)
...@@ -324,7 +372,6 @@ export default { ...@@ -324,7 +372,6 @@ export default {
}) })
} }
}, },
tabClick(index) { tabClick(index) {
this.currentIndex = index this.currentIndex = index
switch (index) { switch (index) {
...@@ -355,7 +402,6 @@ export default { ...@@ -355,7 +402,6 @@ export default {
} }
this.handleSearch() this.handleSearch()
}, },
getParams() { getParams() {
var params = JSON.parse(JSON.stringify(this.searchForm)) var params = JSON.parse(JSON.stringify(this.searchForm))
if (params.daterange) { if (params.daterange) {
...@@ -365,7 +411,6 @@ export default { ...@@ -365,7 +411,6 @@ export default {
delete params.daterange delete params.daterange
return params return params
}, },
beforeSearchFn() { beforeSearchFn() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
this.searchFormTable = this.getParams() this.searchFormTable = this.getParams()
...@@ -425,14 +470,12 @@ export default { ...@@ -425,14 +470,12 @@ export default {
} }
}) })
}, },
handleExport(row) { handleExport(row) {
var params = this.getParams() var params = this.getParams()
orderExportApi(params).then(res => { orderExportApi(params).then(res => {
exportFn(res) exportFn(res)
}) })
}, },
handleSearch() { handleSearch() {
this.$refs.memberOrderRef.refreshTable() this.$refs.memberOrderRef.refreshTable()
}, },
...@@ -468,7 +511,6 @@ export default { ...@@ -468,7 +511,6 @@ export default {
} }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// /deep/.el-input--small .el-input__inner { // /deep/.el-input--small .el-input__inner {
// width: 215px; // width: 215px;
...@@ -476,12 +518,13 @@ export default { ...@@ -476,12 +518,13 @@ export default {
.el-range-editor.is-active, .el-range-editor.is-active,
.el-range-editor.is-active:hover { .el-range-editor.is-active:hover {
border-color: #5850ff; border-color: #5850ff;
width: 215px; width: 215px;
} }
.el-range-editor--small.el-input__inner { .el-range-editor--small.el-input__inner {
width: 215px; width: 215px;
} }
.container { .container {
.choseRow { .choseRow {
display: flex; display: flex;
...@@ -489,6 +532,7 @@ export default { ...@@ -489,6 +532,7 @@ export default {
position: relative; position: relative;
width: 367px; width: 367px;
left: calc(100% - 367px); left: calc(100% - 367px);
.choseItem { .choseItem {
display: inline-block; display: inline-block;
cursor: pointer; cursor: pointer;
...@@ -505,43 +549,50 @@ export default { ...@@ -505,43 +549,50 @@ export default {
border-bottom: 1px solid #d5d5d5; border-bottom: 1px solid #d5d5d5;
// border-left: 1px solid #d5d5d5; // border-left: 1px solid #d5d5d5;
} }
.active { .active {
color: #ffffff; color: #ffffff;
background: #5850ff; background: #5850ff;
} }
} }
.choseItem:nth-child(1) { .choseItem:nth-child(1) {
border-left: 1px solid #d5d5d5; border-left: 1px solid #d5d5d5;
} }
} }
.refund-fill-box { .refund-fill-box {
.dialog-form { .dialog-form {
padding: 26px 36px 46px 36px; padding: 26px 36px 46px 36px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
label { label {
white-space: nowrap; white-space: nowrap;
} }
} }
} }
.refund-fill-boxss { .refund-fill-boxss {
/deep/ .btn-three { /deep/ .btn-three {
display: none; display: none;
} }
.dialog-refund { .dialog-refund {
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
align-items: center; align-items: center;
flex-direction: column; flex-direction: column;
padding-bottom: 19px; padding-bottom: 19px;
img { img {
width: 32px; width: 32px;
height: 32px; height: 32px;
padding-bottom: 12px; padding-bottom: 12px;
} }
} }
// ::v-deep .el-dialog__footer { // ::v-deep .el-dialog__footer {
// text-align: center; // 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!