Commit bbed93db by 李伟康

门店版按照配置显示隐藏

1 parent 1ad5bb2d
......@@ -56,9 +56,8 @@
></el-tab-pane>
</el-tabs>
</div>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
v-if="configShow"
class="default-blue-btn"
:size="size"
type="default"
......@@ -618,7 +617,7 @@ export default {
],
},
showTable: false,
channelType: 1
configShow: false
}
},
created () {
......@@ -668,13 +667,12 @@ export default {
addHtml: 'weChatName',
width: 210
},
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// prop: 'shareStaffName',
// width: 210,
// addHtml: 'shareStaffName'
// },
{
label: '推荐人',
prop: 'shareStaffName',
width: 210,
addHtml: 'shareStaffName'
},
{
label: '推荐人ID',
name: 'shareStaffId',
......@@ -687,15 +685,14 @@ export default {
width: 210,
addHtml: 'assignName'
},
// 2023.03.17屏蔽 ,广汇不屏蔽
// {
// label: '推荐人手机号',
// prop: 'shareStaffPhone',
// width: 160,
// formatter: cellValue => {
// return cellValue.shareStaffPhone || '-'
// }
// },
{
label: '推荐人手机号',
prop: 'shareStaffPhone',
width: 160,
formatter: cellValue => {
return cellValue.shareStaffPhone || '-'
}
},
{
label: '订单时间',
prop: 'createdDate',
......@@ -957,14 +954,13 @@ export default {
type: 'input',
maxlength: 50
},
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// name: 'shareStaffName',
// labelWidth: 56,
// type: 'input',
// maxlength: 100
// },
{
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
},
{
label: '推荐人类型',
name: 'shareStaffSource',
......@@ -995,14 +991,13 @@ export default {
type: 'input',
maxlength: 11
},
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人手机号',
// name: 'shareStaffPhone',
// labelWidth: 56,
// type: 'input',
// maxlength: 11
// },
{
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
},
{
label: '测试单',
name: 'orderType',
......@@ -1033,8 +1028,9 @@ export default {
]
try {
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['customerPhone', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses', 'vin', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
filterTableList = ['customerPhone', 'shareStaffName', 'otherInformation', 'assignName', 'shareStaffPhone', 'verificationDate', 'vinNo', 'afterSaleStatus'],
filterFormList = ['afterSaleStatuses','shareStaffName', 'vin', 'shareStaffSource', 'customerPhone', 'shareStaffPhone']
this.configShow = res != 1
if (res == 1) {
for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) {
......@@ -1052,40 +1048,9 @@ export default {
} catch (error) {
console.log(error)
}
if (channelType == 2) {
tableColumns.splice(4, 0, {
label: '推荐人',
prop: 'shareStaffName',
width: 210,
addHtml: 'shareStaffName'
})
tableColumns.splice(7, 0, {
label: '推荐人手机号',
prop: 'shareStaffPhone',
width: 160,
formatter: cellValue => {
return cellValue.shareStaffPhone || '-'
}
})
searchFormData.splice(10, 0, {
label: '推荐人',
name: 'shareStaffName',
labelWidth: 56,
type: 'input',
maxlength: 100
})
searchFormData.splice(15, 0, {
label: '推荐人手机号',
name: 'shareStaffPhone',
labelWidth: 56,
type: 'input',
maxlength: 11
})
}
this.tableParams.tableColumns = tableColumns
this.searchFormData = searchFormData
this.showTable = true
this.channelType = channelType
this.getOptionsList('searchFormData')
},
initParams () {
......
......@@ -195,7 +195,7 @@ export default {
{ confId: '2', confName: '企微' }
]
},
hideStatus: false
configShow: false
}
},
......@@ -224,11 +224,10 @@ export default {
label: '手机号码',
name: 'customerPhone'
},
// 2023.03.17屏蔽,广汇不屏蔽
// {
// label: '推荐人',
// name: 'shareStaffName'
// },
{
label: '推荐人',
name: 'shareStaffName'
},
{
label: '推荐人ID',
name: 'shareStaffId'
......@@ -287,11 +286,10 @@ export default {
name: 'goodsName'
}
]
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
{ channelType } = this.$globalState.session
let hideStatus = res == 1
if (hideStatus) {
const filterFormList = ['customerPhone', 'shareStaffTypeName', 'vin', 'shipAddress']
const res = await this.$apis.common.getCrowdfundingOrderConfig()
let configShow = res != 1
if (!configShow) {
const filterFormList = ['customerPhone','shareStaffName', 'shareStaffTypeName', 'vin', 'shipAddress']
for (let i = 0; i < detailFormData.length; i++) {
if (filterFormList.includes(detailFormData[i].name)) {
detailFormData.splice(i, 1)
......@@ -299,13 +297,7 @@ export default {
}
}
}
if (channelType == 2) {
detailFormData.splice(4, 0, {
label: '推荐人',
name: 'shareStaffName'
})
}
this.hideStatus = hideStatus
this.configShow = configShow
this.detailFormData = detailFormData
this.setMinHeight('.edit-box')
this.routeInfo = this.$route.query
......@@ -359,7 +351,7 @@ export default {
this.detailFormData.splice(idx, 1)
}
// 其他信息
if (!this.hideStatus) {
if (this.configShow) {
var formDescribeObj = {
label: '其他信息',
name: 'formDescribe',
......
......@@ -29,9 +29,8 @@
<div class="flex m-b-10 w-100-percent">
<span class="table-title"></span>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
v-if="configShow"
:size="size"
class="default-blue-btn"
type="default"
......@@ -76,7 +75,7 @@
slot="linkText"
slot-scope="scope"
>
<template v-if="scope.scope.incrementFlag == 'Y' || hideStatus">
<template v-if="scope.scope.incrementFlag == 'Y' || !configShow">
{{scope.scope[scope.prop] || 0 }}
</template>
<template v-else>
......@@ -117,7 +116,7 @@
:isShareVisible="isShareVisible"
:shareForm="shareForm"
@handleShareClose="handleShareClose"
:hideStatus="hideStatus"
:hideStatus="!configShow"
></crowdFundingShare>
</div>
</template>
......@@ -323,7 +322,7 @@ export default {
}
]
},
hideStatus: false
configShow: false
}
},
......@@ -467,8 +466,8 @@ export default {
{ channelType } = this.$globalState.session
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
filterTableList = ['paymentModel'],
hideStatus = res == 1
if (hideStatus) {
configShow = res != 1
if (!configShow) {
for (let i = 0; i < tableColumns.length; i++) {
if (filterTableList.includes(tableColumns[i].prop)) {
tableColumns.splice(i, 1)
......@@ -476,7 +475,7 @@ export default {
}
}
}
this.hideStatus = hideStatus
this.configShow = configShow
this.channelType = channelType
this.tableParams.tableColumns = tableColumns
},
......
......@@ -47,7 +47,7 @@
</div>
</div>
<!-- 可配置显示隐藏 👇 -->
<template v-if="showTable">
<template v-if="configShow">
<div class="data-board-box">
<p class="edit-title">员工排行榜</p>
<div class="p-20">
......@@ -114,9 +114,8 @@
<div class="p-20">
<div class="flex m-b-10 w-100-percent">
<span class="table-title">数据列表</span>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
v-if="configShow"
:size="size"
class="default-blue-btn"
type="default"
......@@ -179,9 +178,8 @@
单
</span>
</span>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if="channelType == 2"
v-if="configShow"
:size="size"
class="default-blue-btn"
type="default"
......@@ -390,8 +388,7 @@ export default {
dataBoard: {},
activityId: '',
liveInfo: {},
showTable: false,
channelType: 1
configShow: false
}
},
computed: {
......@@ -418,10 +415,8 @@ export default {
methods: {
async getCrowdfundingOrderConfig () {
const res = await this.$apis.common.getCrowdfundingOrderConfig(),
{ channelType } = this.$globalState.session
this.channelType = channelType
this.showTable = res != 1
const res = await this.$apis.common.getCrowdfundingOrderConfig()
this.configShow = res != 1
},
getLiveData () {
this.$apis.seckillActivity
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!