Commit ed6890d1 by 张立顺

修改showgh 字段初始值和判断

1 parent badb0566
<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,7 +72,8 @@
</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>
......@@ -76,7 +81,8 @@
<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>
......@@ -101,7 +107,7 @@ export default {
accountLevel: 0, //1,2,3,4工厂,省代,市代,门店
url: url,
isReload: true,
showGh: false,
showGh: true,
size: 'small',
searchForm: {
orderStatus: '', //默认查询全部
......@@ -290,8 +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()
// 取消判断
// 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)
......@@ -302,39 +309,43 @@ export default {
},
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'
})
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) {
......@@ -509,9 +520,11 @@ export default {
border-color: #5850ff;
width: 215px;
}
.el-range-editor--small.el-input__inner {
width: 215px;
}
.container {
.choseRow {
display: flex;
......@@ -519,6 +532,7 @@ export default {
position: relative;
width: 367px;
left: calc(100% - 367px);
.choseItem {
display: inline-block;
cursor: pointer;
......@@ -535,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>
\ No newline at end of file
}</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!