Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-presale
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 ea171575
authored
Mar 03, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
配置隐藏显示
1 parent
eab0f9d1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
157 additions
and
63 deletions
src/views/beforeSale/equityList.vue
src/views/config/addConfig.vue
src/views/config/index.vue
src/views/beforeSale/equityList.vue
View file @
ea17157
...
@@ -374,7 +374,7 @@ export default {
...
@@ -374,7 +374,7 @@ export default {
{
{
label
:
'门店成本'
,
label
:
'门店成本'
,
prop
:
'costPrice'
,
prop
:
'costPrice'
,
width
:
'1
0
0px'
,
width
:
'1
6
0px'
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
costPrice
?
(
cellValue
.
costPrice
/
100
).
toFixed
(
2
)
:
'-'
return
cellValue
.
costPrice
?
(
cellValue
.
costPrice
/
100
).
toFixed
(
2
)
:
'-'
...
@@ -406,30 +406,30 @@ export default {
...
@@ -406,30 +406,30 @@ export default {
}
}
},
},
{
{
label
:
'
审核日期
'
,
label
:
'
状态描述
'
,
prop
:
'
auditDate
'
,
prop
:
'
erpErrorMsg
'
,
width
:
'200px'
,
width
:
'200px'
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
auditDate
?
dayjs
(
cellValue
.
auditDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-'
return
cellValue
.
erpErrorMsg
?
cellValue
.
erpErrorMsg
:
'-'
}
}
},
},
{
{
label
:
'
首续保
'
,
label
:
'
审核日期
'
,
prop
:
'
insuranceTyp
e'
,
prop
:
'
auditDat
e'
,
width
:
'
1
00px'
,
width
:
'
2
00px'
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
insuranceType
===
'i'
?
'首保'
:
'续保
'
return
cellValue
.
auditDate
?
dayjs
(
cellValue
.
auditDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
:
'-
'
}
}
},
},
{
{
label
:
'
失败原因
'
,
label
:
'
首续保
'
,
prop
:
'
erpErrorMsg
'
,
prop
:
'
insuranceType
'
,
width
:
'
20
0px'
,
width
:
'
11
0px'
,
line
:
1
,
line
:
1
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
erpErrorMsg
?
cellValue
.
erpErrorMsg
:
'-
'
return
cellValue
.
insuranceType
===
'i'
?
'无忧卡首保'
:
'无忧卡续保
'
}
}
},
},
{
{
...
...
src/views/config/addConfig.vue
View file @
ea17157
...
@@ -12,14 +12,14 @@
...
@@ -12,14 +12,14 @@
<el-table-column
prop=
"merchantName"
label=
"商户名称"
width=
"180"
></el-table-column>
<el-table-column
prop=
"merchantName"
label=
"商户名称"
width=
"180"
></el-table-column>
</el-table>
</el-table>
</el-form-item>
</el-form-item>
<template>
<template
v-if=
"showGh"
>
<el-form-item
class=
"special-config"
size=
"small"
label=
"特殊配置"
></el-form-item>
<el-form-item
class=
"special-config"
size=
"small"
label=
"特殊配置"
></el-form-item>
<el-form-item>
<el-form-item>
<el-checkbox
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
列表字段
</el-checkbox>
<el-checkbox
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
列表字段
</el-checkbox>
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
<el-checkbox
style=
"display: block; margin-left: 30px;"
v-model=
"costPrice"
@
change=
"checkCostPrice"
>
门店成本
</el-checkbox>
</el-form-item>
</el-form-item>
</
template
>
</
template
>
<
!-- <template
>
<
template
v-if=
"!showGh"
>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item
size=
"small"
label=
"配置可见产品及产品属性"
></el-form-item>
<el-form-item>
<el-form-item>
<el-checkbox
v-model=
"theftAll"
@
change=
"handleTheftAllChange"
>
盗抢全损无忧
</el-checkbox>
<el-checkbox
v-model=
"theftAll"
@
change=
"handleTheftAllChange"
>
盗抢全损无忧
</el-checkbox>
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<el-form-item>
<el-form-item>
<el-checkbox
v-model=
"carefree"
>
优享版
</el-checkbox>
<el-checkbox
v-model=
"carefree"
>
优享版
</el-checkbox>
</el-form-item>
</el-form-item>
</template>
-->
</
template
>
</el-form>
</el-form>
<!-- 弹窗 -->
<!-- 弹窗 -->
<relateStoreDialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"searchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
<relateStoreDialog
v-if=
"relateStoreVisible"
ref=
"relateStore"
:relateStoreVisible=
"relateStoreVisible"
:storeApi=
"storeApi"
:storeSearchForm=
"searchForm"
:storeSelected=
"selectedList"
@
handleRelateStoreConfirm=
"handleRelateStoreConfirm"
@
handleRelateStoreClose=
"handleRelateStoreClose"
>
...
@@ -161,12 +161,16 @@ export default {
...
@@ -161,12 +161,16 @@ export default {
collisions
:
collisionOptions
,
collisions
:
collisionOptions
,
collisionTerminate
:
false
,
collisionTerminate
:
false
,
costPrice
:
false
,
//选择门店成本
costPrice
:
false
,
//选择门店成本
showGh
:
true
}
}
},
},
components
:
{
components
:
{
relateStoreDialog
relateStoreDialog
},
},
created
(){
// this.diffHost()
},
mounted
()
{
mounted
()
{
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerLeft
=
document
.
querySelector
(
'.base-container-right'
).
offsetLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
this
.
footerWidth
=
document
.
documentElement
.
clientWidth
-
this
.
footerLeft
...
@@ -191,6 +195,18 @@ export default {
...
@@ -191,6 +195,18 @@ export default {
this
.
getStoreConfig
()
this
.
getStoreConfig
()
},
},
methods
:
{
methods
:
{
// 区分滴加和广汇
diffHost
(){
let
href
=
window
.
location
.
host
;
// 从域名判断是不是广汇的
let
gxurl1
=
'http://scrm.cgacar.com'
let
gxurl2
=
'https://scrm.cgacar.com'
if
(
href
==
gxurl1
||
href
==
gxurl2
)
{
this
.
showGh
=
true
}
else
{
this
.
showGh
=
false
}
},
handleRelateStoreClose
()
{
handleRelateStoreClose
()
{
this
.
relateStoreVisible
=
false
this
.
relateStoreVisible
=
false
},
},
...
...
src/views/config/index.vue
View file @
ea17157
<
template
>
<
template
>
<div
class=
"equity-wrap"
>
<div
class=
"equity-wrap"
>
<GLButton
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</GLButton>
<template
if=
"showTableOperate"
>
<!--
<el-button
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</el-button>
-->
<GLButton
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</GLButton>
<div
class=
"equity-wrap contain merchant-select"
>
<!--
<el-button
fn=
"开通配置"
class=
"addGood"
type=
"primary"
icon=
"el-icon-plus"
@
click=
"jump('add')"
>
开通配置
</el-button>
-->
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<div
class=
"equity-wrap contain merchant-select"
>
<el-row>
<el-form
:inline=
"true"
style=
"width: 100%"
:model=
"searchForm"
label-width=
"85px"
label-position=
"right"
>
<el-form-item
size=
"small"
label=
""
>
<el-row>
<el-input
placeholder=
"请输入内容"
v-model=
"selectInput"
class=
"input-with-select"
>
<el-form-item
size=
"small"
label=
""
>
<el-select
v-model=
"select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-input
placeholder=
"请输入内容"
v-model=
"selectInput"
class=
"input-with-select"
>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
<el-select
v-model=
"select"
slot=
"prepend"
placeholder=
"请选择"
>
<el-option
label=
"商户号"
value=
"2"
></el-option>
<el-option
label=
"商户名称"
value=
"1"
></el-option>
<el-option
label=
"商户号"
value=
"2"
></el-option>
</el-select>
</el-input>
</el-form-item>
<el-form-item
class=
"open-status"
size=
"small"
label=
"开通状态"
style=
"margin-left: -10px"
>
<el-select
size=
"small"
v-model=
"openFlag"
>
<el-option
v-for=
"item in openFlagList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
</el-select>
</el-select>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
<el-form-item
class=
"open-status"
size=
"small"
label=
"开通状态"
style=
"margin-left: -10px"
>
<el-button
size=
"small"
@
click=
"selConfig('reset')"
>
重置
</el-button>
<el-select
size=
"small"
v-model=
"openFlag"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"selConfig"
>
查询
</el-button>
<el-option
v-for=
"item in openFlagList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-button
size=
"small"
@
click=
"exportTable"
>
导出
</el-button>
</el-select>
</el-form-item>
</el-form-item>
</el-row>
<el-form-item
size=
"small"
class=
"fr-mr0"
>
</el-form>
<el-button
size=
"small"
@
click=
"selConfig('reset')"
>
重置
</el-button>
<div
class=
"row-btns"
style=
"margin-top: 20px"
>
<el-button
size=
"small"
type=
"primary"
@
click=
"selConfig"
>
查询
</el-button>
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<el-button
size=
"small"
@
click=
"exportTable"
>
导出
</el-button>
<!--
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
-->
</el-form-item>
<div
style=
"float: right"
>
</el-row>
<el-button
size=
"small"
@
click=
"batchOperation(1)"
>
批量开通
</el-button>
</el-form>
<el-button
size=
"small"
@
click=
"batchOperation(2)"
>
批量关闭
</el-button>
<div
class=
"row-btns"
style=
"margin-top: 20px"
>
</div>
<!--
<el-button
size=
"small"
@
click=
"toggleAll"
>
全选
</el-button>
-->
<!--
<el-checkbox
v-model=
"checkbox"
@
change=
"toggleAll"
style=
"margin-left:20px"
>
全选
</el-checkbox>
-->
<div
style=
"float: right"
>
<el-button
size=
"small"
@
click=
"batchOperation(1)"
>
批量开通
</el-button>
<el-button
size=
"small"
@
click=
"batchOperation(2)"
>
批量关闭
</el-button>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton>
<!--
<el-button
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</el-button>
-->
</span>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
</span>
</GLTable>
</div>
</div>
<GLTable
v-if=
"flag"
ref=
"table"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:getListApi=
"getConfigList"
:beforeSearchFn=
"check"
>
</
template
>
<span
slot=
"operate"
slot-scope=
"scope"
>
<!--
<GLButton
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</GLButton>
-->
<el-button
fn=
"修改配置"
type=
"text"
@
click=
"jump(scope.scope.merchantId)"
>
修改配置
</el-button>
</span>
<span
slot=
"openFlag"
slot-scope=
"scope"
>
<el-switch
:value=
"scope.scope.openFlag == 1"
active-color=
"#5850ff"
inactive-color=
"#eee"
@
change=
"changStatus(scope.scope.openFlag, scope.scope.id)"
></el-switch>
</span>
</GLTable>
</div>
</div>
</div>
</template>
</template>
...
@@ -64,6 +66,8 @@ export default {
...
@@ -64,6 +66,8 @@ export default {
// mixins: [searchMixin],
// mixins: [searchMixin],
data
()
{
data
()
{
return
{
return
{
showTableOperate
:
false
,
showGh
:
true
,
checkbox
:
false
,
checkbox
:
false
,
date_format
,
date_format
,
openFlag
:
''
,
openFlag
:
''
,
...
@@ -106,7 +110,84 @@ export default {
...
@@ -106,7 +110,84 @@ export default {
value
:
'0'
value
:
'0'
}
}
],
],
tableParams
:
{
tableParams
:
{},
goodsBrandList
:
[],
selectStatus
:
false
}
},
mounted
()
{
},
created
(){
// this.diffHost()
this
.
tableColData
()
},
methods
:
{
// 区分滴加和广汇
diffHost
(){
let
href
=
window
.
location
.
host
;
// 从域名判断是不是广汇的
let
gxurl1
=
'http://scrm.cgacar.com'
let
gxurl2
=
'https://scrm.cgacar.com'
if
(
href
==
gxurl1
||
href
==
gxurl2
)
{
this
.
showGh
=
true
}
else
{
this
.
showGh
=
false
}
},
tableColData
(){
const
tableParams
=
{
listName
:
'list'
,
mutiSelectName
:
'configIndex'
,
mutiSelectUniqueKey
:
'id'
,
tableOption
:
false
,
tableColumns
:
[
{
label
:
'商户名称'
,
prop
:
'merchantName'
},
{
label
:
'商户号'
,
prop
:
'merchantId'
},
{
label
:
'状态'
,
prop
:
'openFlag'
,
formatter
:
cell
=>
{
return
cell
.
openFlag
==
0
?
'未开通'
:
'已开通'
}
},
{
prop
:
'createdDate'
,
label
:
'开通时间'
,
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createdDate
)
}
},
{
label
:
'操作人'
,
prop
:
'updatedBy'
},
// {
// label: '操作',
// minWidth: '200',
// addHtml: 'operate'
// },
{
label
:
'开通开关'
,
addHtml
:
'openFlag'
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
openFlag
==
'1'
)
{
return
true
}
else
{
return
false
}
}
}
]
}
const
tableParamsOperate
=
{
listName
:
'list'
,
listName
:
'list'
,
mutiSelectName
:
'configIndex'
,
mutiSelectName
:
'configIndex'
,
mutiSelectUniqueKey
:
'id'
,
mutiSelectUniqueKey
:
'id'
,
...
@@ -155,13 +236,10 @@ export default {
...
@@ -155,13 +236,10 @@ export default {
}
}
}
}
]
]
},
}
goodsBrandList
:
[],
this
.
tableParams
=
this
.
showGh
?
tableParams
:
tableParamsOperate
selectStatus
:
false
this
.
showTableOperate
=
true
;
}
},
},
mounted
()
{},
methods
:
{
check
()
{
check
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
var
reg
=
/^
[
+
]{0,1}(\d
+
)
$/g
var
reg
=
/^
[
+
]{0,1}(\d
+
)
$/g
...
...
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