Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit bbed93db
authored
Mar 21, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
门店版按照配置显示隐藏
1 parent
1ad5bb2d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
57 additions
and
106 deletions
src/views/orderManage/index.vue
src/views/orderManage/orderDetail.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/dataBoard.vue
src/views/orderManage/index.vue
View file @
bbed93d
...
...
@@ -56,9 +56,8 @@
></el-tab-pane>
</el-tabs>
</div>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if=
"c
hannelType == 2
"
v-if=
"c
onfigShow
"
class=
"default-blue-btn"
:size=
"size"
type=
"default"
...
...
@@ -618,7 +617,7 @@ export default {
],
},
showTable
:
false
,
c
hannelType
:
1
c
onfigShow
:
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
()
{
...
...
src/views/orderManage/orderDetail.vue
View file @
bbed93d
...
...
@@ -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'
,
...
...
src/views/seckillActivity/crowdFundList.vue
View file @
bbed93d
...
...
@@ -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=
"c
hannelType == 2
"
v-if=
"c
onfigShow
"
: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
},
...
...
src/views/seckillActivity/dataBoard.vue
View file @
bbed93d
...
...
@@ -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=
"c
hannelType == 2
"
v-if=
"c
onfigShow
"
:size=
"size"
class=
"default-blue-btn"
type=
"default"
...
...
@@ -179,9 +178,8 @@
单
</span>
</span>
<!-- 2023.03.17屏蔽,广汇不屏蔽 -->
<el-button
v-if=
"c
hannelType == 2
"
v-if=
"c
onfigShow
"
: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
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment