Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-services
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 59b03b61
authored
Jun 30, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
服务中心UI改版,售前和数字化不改
1 parent
7b0562ef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
189 additions
and
19 deletions
src/views/expert/index.vue
src/views/ghPreSale/equityList.vue
src/views/expert/index.vue
View file @
59b03b6
...
@@ -31,13 +31,14 @@
...
@@ -31,13 +31,14 @@
<div>
<div>
<GLTable
:noDataImg=
"url"
:class=
"[{ hasDataTable: !hasData }]"
ref=
"expertTable"
:hasNum=
"false"
:pageConf=
"batchPageConf"
:searchForm=
"batchListSearch"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
>
<GLTable
:noDataImg=
"url"
:class=
"[{ hasDataTable: !hasData }]"
ref=
"expertTable"
:hasNum=
"false"
:pageConf=
"batchPageConf"
:searchForm=
"batchListSearch"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
>
<span
slot=
"status"
slot-scope=
"scope"
>
<span
slot=
"status"
slot-scope=
"scope"
>
<!-- <el-switch :value="scope.scope.status == 0" active-color="#5850ff" inactive-color="#eee" @change="changStatus(scope.scope.status, scope.scope.id)"></el-switch>
{{ scope.scope.status == 0 ? '启用' : '停用' }} -->
<GLButton
v-if=
"userType != 2"
class=
"switch"
mode=
"el-switch"
fn=
"禁用"
:value=
"scope.scope.status == 0"
active-color=
"#5850ff"
inactive-color=
"#eee"
:active-text=
"scope.scope.status == 0 ? '启用' : '停用'"
@
change=
"changStatus(scope.scope.status, scope.scope.id)"
>
{{ scope.scope.status == 0 ? '启用' : '停用' }}
</GLButton>
<GLButton
v-if=
"userType != 2"
class=
"switch"
mode=
"el-switch"
fn=
"禁用"
:value=
"scope.scope.status == 0"
active-color=
"#5850ff"
inactive-color=
"#eee"
:active-text=
"scope.scope.status == 0 ? '启用' : '停用'"
@
change=
"changStatus(scope.scope.status, scope.scope.id)"
>
{{ scope.scope.status == 0 ? '启用' : '停用' }}
</GLButton>
</span>
</span>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<
!-- <
div class="table-btns" slot="table-btns" slot-scope="scope">
<GLButton v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton>
<GLButton v-if="userType != 2" fn="编辑" type="text" @click="selectClientType(scope.scope.businessTypeName, scope.scope.id)">编辑</GLButton>
<GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton>
<GLButton v-if="userType != 2" fn="删除" type="text" @click="handleDel(scope.scope)">删除</GLButton>
</div> -->
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
<div
v-if=
"!hasData"
class=
"default-box"
>
<div
v-if=
"!hasData"
class=
"default-box"
>
...
@@ -91,6 +92,40 @@ export default {
...
@@ -91,6 +92,40 @@ export default {
staffName
:
''
,
staffName
:
''
,
businessType
:
''
businessType
:
''
},
},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
condition
:
row
=>
{
return
this
.
userType
!=
2
},
attrs
:
{
type
:
'text'
,
fn
:
'编辑'
},
listeners
:
{
click
:
row
=>
this
.
selectClientType
(
row
.
scope
.
businessTypeName
,
row
.
scope
.
id
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'删除'
},
condition
:
row
=>
{
return
this
.
userType
!=
2
},
attrs
:
{
type
:
'text'
,
fn
:
'删除'
},
listeners
:
{
click
:
row
=>
this
.
handleDel
(
row
.
scope
)
}
}
],
expertForm
:
[
expertForm
:
[
{
{
label
:
'门店'
,
label
:
'门店'
,
...
@@ -128,7 +163,6 @@ export default {
...
@@ -128,7 +163,6 @@ export default {
{
{
label
:
'所属门店/部门'
,
label
:
'所属门店/部门'
,
prop
:
'departmentName'
,
prop
:
'departmentName'
,
width
:
'200'
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
departmentName
||
'-'
return
cellValue
.
departmentName
||
'-'
}
}
...
@@ -143,7 +177,6 @@ export default {
...
@@ -143,7 +177,6 @@ export default {
{
{
label
:
'客户类型'
,
label
:
'客户类型'
,
prop
:
'businessTypeName'
,
prop
:
'businessTypeName'
,
width
:
200
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
businessTypeName
||
'-'
return
cellValue
.
businessTypeName
||
'-'
}
}
...
@@ -151,7 +184,6 @@ export default {
...
@@ -151,7 +184,6 @@ export default {
{
{
label
:
'欢迎语'
,
label
:
'欢迎语'
,
prop
:
'isWelcomeWord'
,
prop
:
'isWelcomeWord'
,
width
:
200
,
formatter
:
cellValue
=>
{
formatter
:
cellValue
=>
{
return
cellValue
.
isWelcomeWord
==
-
1
?
'无'
:
'有'
return
cellValue
.
isWelcomeWord
==
-
1
?
'无'
:
'有'
}
}
...
@@ -160,12 +192,10 @@ export default {
...
@@ -160,12 +192,10 @@ export default {
label
:
'状态'
,
label
:
'状态'
,
prop
:
'status'
,
prop
:
'status'
,
addHtml
:
'status'
,
addHtml
:
'status'
,
width
:
'100'
},
},
{
{
label
:
'操作'
,
label
:
'操作'
,
prop
:
''
,
prop
:
''
,
width
:
'100px'
,
fixed
:
'right'
,
fixed
:
'right'
,
addHtml
:
'table-btns'
addHtml
:
'table-btns'
}
}
...
...
src/views/ghPreSale/equityList.vue
View file @
59b03b6
...
@@ -25,18 +25,15 @@
...
@@ -25,18 +25,15 @@
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<div
class=
"table-btns"
slot=
"table-btns"
slot-scope=
"scope"
>
<GLButton
v-if=
"[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<GLButton
v-if=
"[2, 4, 5,7,8,9,10,11,12].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<!--
<el-button
v-if=
"[2, 4, 5].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</el-button>
-->
<el-button
v-if=
"[2,8,10,11,12].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2,8,10,11,12].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)"
style=
"position: relative;"
type=
"text"
@
click=
"handleUpload(scope.scope)"
>
上传资料
<span
v-show=
"scope.scope.dataPerfection == 0"
class=
"circule-tips"
></span></el-button>
<el-button
v-if=
"[2,7,8,9,10,11,12].includes(scope.scope.orderStatus)"
style=
"position: relative;"
type=
"text"
@
click=
"handleUpload(scope.scope)"
>
上传资料
<span
v-show=
"scope.scope.dataPerfection == 0"
class=
"circule-tips"
></span></el-button>
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<!--
<el-button
v-if=
"[0].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</el-button>
-->
<GLButton
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<!--
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</el-button>
-->
<el-button
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<GLButton
v-if=
"[1,3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<GLButton
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)&&(!scope.scope.hasPrint || userInfo.admin)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<el-button
v-if=
"userInfo.admin"
type=
"text"
@
click=
"showFailModal(scope.scope)"
>
失败
</el-button>
<el-button
v-if=
"[2,8,10,11].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<GLButton
v-if=
"[1,3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<el-button
v-if=
"userInfo.admin"
type=
"text"
@
click=
"showFailModal(scope.scope)"
>
失败
</el-button>
</div>
</div>
<!-- s -->
</GLTable>
</GLTable>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
...
@@ -111,6 +108,135 @@ export default {
...
@@ -111,6 +108,135 @@ export default {
value
:
3
,
value
:
3
,
label
:
'ERP退单失败'
label
:
'ERP退单失败'
},],
},],
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'查看'
},
condition
:
row
=>
{
return
[
2
,
4
,
5
,
7
,
8
,
9
,
10
,
11
,
12
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
fn
:
'查看'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
5
,
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'打印'
},
condition
:
row
=>
{
return
[
2
,
8
,
10
,
11
,
12
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
handlePdf
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'上传资料'
},
condition
:
row
=>
{
return
[
2
,
7
,
8
,
9
,
10
,
11
,
12
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
class
:
row
=>
{
return
row
.
scope
.
dataPerfection
==
0
?
'el-button el-button--text circule-tips'
:
'el-button el-button--text'
}
},
listeners
:
{
click
:
row
=>
this
.
handleUpload
(
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
condition
:
row
=>
{
return
[
0
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
fn
:
'编辑'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
2
,
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'修改'
},
condition
:
row
=>
{
return
[
2
,
8
,
10
,
11
].
includes
(
row
.
scope
.
orderStatus
)
&&
(
!
row
.
scope
.
hasPrint
||
this
.
userInfo
.
admin
)
},
attrs
:
{
type
:
'text'
,
fn
:
'修改'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
3
,
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'退单'
},
condition
:
row
=>
{
return
[
2
,
8
,
10
,
11
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
handleBack
(
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'重新提单'
},
condition
:
row
=>
{
return
[
1
,
3
,
4
,
5
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
fn
:
'重新提单'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
4
,
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'失败'
},
condition
:
row
=>
{
return
this
.
userInfo
.
admin
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
showFailModal
(
row
.
scope
)
}
},
],
isShowFail
:
false
,
isShowFail
:
false
,
showPage
:
0
,
showPage
:
0
,
openCostPrice
:
0
,
//是否展示门店成本
openCostPrice
:
0
,
//是否展示门店成本
...
@@ -1424,6 +1550,20 @@ export default {
...
@@ -1424,6 +1550,20 @@ export default {
margin-right
:
8px
;
margin-right
:
8px
;
}
}
//
/
deep
/
.circule-tips
{
//
position
:
relative
!important
;
//
}
//
/
deep
/
.circule-tips
::before
{
//
position
:
absolute
;
//
top
:
0
;
//
right
:
-6px
;
//
display
:
inline-block
;
//
height
:
6px
;
//
width
:
6px
;
//
content
:
''
;
//
border-radius
:
100%
;
//
background-color
:
red
;
//
}
.before-sale
.circule-tips
{
.before-sale
.circule-tips
{
position
:
absolute
;
position
:
absolute
;
top
:
0
;
top
:
0
;
...
...
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