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 27745739
authored
Jul 18, 2022
by
张权
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
UI改版
1 parent
85abee3b
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
149 additions
and
39 deletions
src/assets/css/public.scss
src/views/beforeSale/equityList.vue
src/views/ghPreSale/equityList.vue
src/views/ghPreSale/writeOff/writeOffList.vue
src/assets/css/public.scss
View file @
2774573
...
@@ -180,8 +180,8 @@
...
@@ -180,8 +180,8 @@
}
}
.el-message.el-message--error.customMessage
{
.el-message.el-message--error.customMessage
{
&
>
p
{
&
>
p
{
&
>
p
{
&
>
p
{
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
}
}
...
@@ -233,3 +233,31 @@
...
@@ -233,3 +233,31 @@
color
:
#fff
!
important
;
color
:
#fff
!
important
;
}
}
}
}
.my-circule-tips
{
position
:
relative
!
important
;
}
.
my-circule-tips
:
:
before
{
position
:
absolute
;
top
:
0
;
right
:
-6px
;
display
:
inline-block
;
height
:
6px
;
width
:
6px
;
content
:
''
;
border-radius
:
100%
;
background-color
:
red
;
}
.newListPage
{
margin-top
:
17px
;
.wrap
{
background-color
:
#fff
;
padding
:
20px
;
}
}
.my-footer-btn
{
width
:
100%
;
display
:
flex
;
justify-content
:
center
;
}
src/views/beforeSale/equityList.vue
View file @
2774573
...
@@ -9,26 +9,19 @@
...
@@ -9,26 +9,19 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"find_wrap"
>
<div
class=
"find_wrap"
>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset"
:formData=
"searchFormData"
></GLCombiForm>
<!--
<GLCombiForm
ref=
"showSearch"
:formObj=
"searchForm"
:formData=
"searchFormData"
>
<span
slot=
"footer"
class=
"footer-btns"
>
<el-button
:size=
"size"
class=
"resetBtn"
@
click=
"handleReset"
>
重置
</el-button>
<el-button
:size=
"size"
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"handleExport"
>
导出
</el-button>
</span>
</GLCombiForm>
-->
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<div
class=
"table_wrapper"
>
<div
class=
"table_wrapper"
>
<el-button
:size=
"size"
style=
"float:right;margin-bottom:10px;"
@
click=
"handleExport"
>
导出
</el-button>
<el-button
:size=
"size"
style=
"float:right;margin-bottom:10px;"
@
click=
"handleExport"
>
导出
</el-button>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:paginationattrs=
"paginationattrs"
:getListApi=
"getListApi"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"equityRef"
:pageSizes=
"sizeList"
:paginationattrs=
"paginationattrs"
: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].includes(scope.scope.orderStatus)"
fn=
"查看"
type=
"text"
@
click=
"handleEdit(5, scope.scope)"
>
查看
</GLButton>
<!--
<GLButton
v-if=
"[2, 4, 5].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].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handlePdf(scope.scope)"
>
打印
</el-button>
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<GLButton
v-if=
"[0].includes(scope.scope.orderStatus)"
fn=
"编辑"
type=
"text"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
<GLButton
v-if=
"[2].includes(scope.scope.orderStatus)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<GLButton
v-if=
"[2].includes(scope.scope.orderStatus)"
fn=
"修改"
type=
"text"
@
click=
"handleEdit(3, scope.scope)"
>
修改
</GLButton>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<el-button
v-if=
"[2].includes(scope.scope.orderStatus)"
type=
"text"
@
click=
"handleBack(scope.scope)"
>
退单
</el-button>
<GLButton
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
<GLButton
v-if=
"[3, 4, 5].includes(scope.scope.orderStatus)"
fn=
"重新提单"
type=
"text"
@
click=
"handleEdit(4, scope.scope)"
>
重新提单
</GLButton>
-->
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
</GLTable>
</GLTable>
</div>
</div>
...
@@ -62,7 +55,6 @@
...
@@ -62,7 +55,6 @@
<
script
>
<
script
>
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
glsxDialog
from
'@/components/glsx-dialog'
import
glsxDialog
from
'@/components/glsx-dialog'
import
pdfDialog
from
'./pdfDialog'
import
pdfDialog
from
'./pdfDialog'
import
utils
from
'../../util/util'
import
utils
from
'../../util/util'
...
@@ -71,9 +63,105 @@ export default {
...
@@ -71,9 +63,105 @@ export default {
data
()
{
data
()
{
return
{
return
{
// :page-size="100"
// :page-size="100"
paginationattrs
:{
paginationattrs
:
{
'page-size'
:
5
'page-size'
:
5
},
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'查看'
},
condition
:
row
=>
{
return
[
2
,
4
,
5
].
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
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
handlePdf
(
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
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
fn
:
'修改'
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
3
,
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'退单'
},
condition
:
row
=>
{
return
[
2
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
handleBack
(
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'重新提单'
},
condition
:
row
=>
{
return
[
3
,
4
,
5
].
includes
(
row
.
scope
.
orderStatus
)
},
attrs
:
{
type
:
'text'
,
fn
:
'重新提单'
},
},
listeners
:
{
click
:
row
=>
this
.
handleEdit
(
4
,
row
.
scope
)
}
}
],
size
:
'small'
,
size
:
'small'
,
noCancel
:
true
,
noCancel
:
true
,
isBlock
:
true
,
isBlock
:
true
,
...
@@ -410,7 +498,7 @@ export default {
...
@@ -410,7 +498,7 @@ export default {
}
}
]
]
},
},
sizeList
:
[
5
,
10
,
20
,
30
,
40
],
sizeList
:
[
5
,
10
,
20
,
30
,
40
],
pageConf
:
{
pageSize
:
'pageCount'
,
pageNum
:
'pageSize'
,
totalCount
:
'total'
},
pageConf
:
{
pageSize
:
'pageCount'
,
pageNum
:
'pageSize'
,
totalCount
:
'total'
},
// 公共数据
// 公共数据
baseData
:
{
baseData
:
{
...
@@ -466,7 +554,6 @@ export default {
...
@@ -466,7 +554,6 @@ export default {
},
},
components
:
{
components
:
{
glsxCombiForm
,
// glsxDialog,
// glsxDialog,
pdfDialog
pdfDialog
},
},
...
@@ -637,9 +724,9 @@ export default {
...
@@ -637,9 +724,9 @@ export default {
handleEdit
(
addOrEdit
,
row
)
{
handleEdit
(
addOrEdit
,
row
)
{
if
(
addOrEdit
==
3
&&
!
this
.
userInfo
.
admin
&&
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
7
))
>
new
Date
(
row
.
successDate
))
{
if
(
addOrEdit
==
3
&&
!
this
.
userInfo
.
admin
&&
new
Date
(
new
Date
().
setDate
(
new
Date
().
getDate
()
-
7
))
>
new
Date
(
row
.
successDate
))
{
const
h
=
this
.
$createElement
const
h
=
this
.
$createElement
const
tip
=
addOrEdit
==
3
?
'修改申请'
:
'退单申请'
const
tip
=
addOrEdit
==
3
?
'修改申请'
:
'退单申请'
this
.
$message
({
this
.
$message
({
message
:
h
(
'p'
,
null
,
[
h
(
'p'
,
{
style
:
'text-align: center; line-height: 20px; color: #F56C6C;'
},
'为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交'
+
tip
)]),
message
:
h
(
'p'
,
null
,
[
h
(
'p'
,
{
style
:
'text-align: center; line-height: 20px; color: #F56C6C;'
},
'为保障客户权益,请邮件主送:operation@didihu.com.cn,抄送:liuqm@didihu.com.cn,jiangfj@didihu.com.cn提交'
+
tip
)]),
type
:
'error'
,
type
:
'error'
,
customClass
:
'customMessage'
customClass
:
'customMessage'
})
})
...
@@ -652,7 +739,7 @@ export default {
...
@@ -652,7 +739,7 @@ export default {
}
}
const
title
=
this
.
jumpTitle
(
addOrEdit
)
const
title
=
this
.
jumpTitle
(
addOrEdit
)
const
urlpara
=
encodeURIComponent
(
JSON
.
stringify
(
paraFormat
))
const
urlpara
=
encodeURIComponent
(
JSON
.
stringify
(
paraFormat
))
this
.
$router
.
push
({
path
:
'/beforeSale/editEquity/'
+
urlpara
,
query
:{
$title
:
title
}
})
this
.
$router
.
push
({
path
:
'/beforeSale/editEquity/'
+
urlpara
,
query
:
{
$title
:
title
}
})
// addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + urlpara) : this.$router.push('/beforeSale/editEquity/' + urlpara)
// addOrEdit == 1 ? this.$router.push('/beforeSale/editEquity/' + urlpara) : this.$router.push('/beforeSale/editEquity/' + urlpara)
},
},
...
@@ -687,7 +774,7 @@ export default {
...
@@ -687,7 +774,7 @@ export default {
this
.
$apis
.
beforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
getPriteApi
({
contractNo
:
row
.
contractNo
}).
then
(
res
=>
{
this
.
pdfUrl
=
res
this
.
pdfUrl
=
res
this
.
handlePdfClose
()
this
.
handlePdfClose
()
loading
.
close
();
loading
.
close
()
})
})
},
},
...
@@ -724,7 +811,7 @@ export default {
...
@@ -724,7 +811,7 @@ export default {
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
handleUpload
:
(
e
,
file
,
targetItem
)
=>
{
const
imgFile
=
e
.
target
.
result
const
imgFile
=
e
.
target
.
result
const
targetNameList
=
file
.
name
.
split
(
'.'
)
const
targetNameList
=
file
.
name
.
split
(
'.'
)
const
base64
=
targetNameList
[
targetNameList
.
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
const
base64
=
targetNameList
[
targetNameList
.
length
-
1
]
+
'@'
+
imgFile
.
split
(
','
)[
1
]
var
imgUrl
=
''
var
imgUrl
=
''
this
.
$apis
.
beforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
$apis
.
beforeSale
.
uploadImgApi
({
file
:
base64
,
fileType
:
'image'
}).
then
(
res
=>
{
this
.
uploadFile
(
res
,
targetItem
)
this
.
uploadFile
(
res
,
targetItem
)
...
@@ -832,22 +919,22 @@ export default {
...
@@ -832,22 +919,22 @@ export default {
switch
(
addOrEdit
)
{
switch
(
addOrEdit
)
{
case
1
:
case
1
:
title
=
'新增权益'
title
=
'新增权益'
break
;
break
case
2
:
case
2
:
title
=
'编辑'
title
=
'编辑'
break
;
break
case
3
:
case
3
:
title
=
'修改'
title
=
'修改'
break
;
break
case
4
:
case
4
:
title
=
'重新提单'
title
=
'重新提单'
break
;
break
case
5
:
case
5
:
title
=
'查看'
title
=
'查看'
break
;
break
default
:
default
:
title
=
'新增权益'
title
=
'新增权益'
break
;
break
}
}
return
title
return
title
}
}
...
@@ -926,11 +1013,11 @@ export default {
...
@@ -926,11 +1013,11 @@ export default {
.before-sale
.el-table
.cell
{
.before-sale
.el-table
.cell
{
line-height
:
16px
;
line-height
:
16px
;
}
}
.before-sale
.table-btns
{
//
.before-sale
.table-btns
{
display
:
grid
;
//
display
:
grid
;
grid-template-columns
:
repeat
(
auto-fill
,
33.33%
);
//
grid-template-columns
:
repeat
(
auto-fill
,
33.33%
);
grid-row-gap
:
10px
;
//
grid-row-gap
:
10px
;
}
//
}
.before-sale
.table-btns
.el-button
{
.before-sale
.table-btns
.el-button
{
//
padding
:
0
0
0
5px
;
//
padding
:
0
0
0
5px
;
border-radius
:
0
;
border-radius
:
0
;
...
...
src/views/ghPreSale/equityList.vue
View file @
2774573
This diff is collapsed.
Click to expand it.
src/views/ghPreSale/writeOff/writeOffList.vue
View file @
2774573
...
@@ -3,8 +3,7 @@
...
@@ -3,8 +3,7 @@
<GLButton
size=
"small"
style=
"margin-bottom: 10px;"
fn=
"新增核赔"
class=
"el-icon-plus"
type=
"primary"
@
click=
"addWriteOff(1)"
>
新增核赔
</GLButton>
<GLButton
size=
"small"
style=
"margin-bottom: 10px;"
fn=
"新增核赔"
class=
"el-icon-plus"
type=
"primary"
@
click=
"addWriteOff(1)"
>
新增核赔
</GLButton>
<div
class=
"contain equity-wrap"
>
<div
class=
"contain equity-wrap"
>
<div
class=
"search-wrap"
>
<div
class=
"search-wrap"
>
<GLCombiForm
ref=
"showSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset('reset')"
labelWidth=
"100px"
defaultWidth=
"230px"
:formObj=
"batchListSearch"
:formData=
"writeOffForm"
>
<GLCombiForm
ref=
"showSearch"
@
handleOk=
"handleSearch"
@
handleRest=
"handleReset('reset')"
labelWidth=
"100px"
defaultWidth=
"230px"
:formObj=
"batchListSearch"
:formData=
"writeOffForm"
></GLCombiForm>
</GLCombiForm>
</div>
</div>
<el-button
size=
"small"
style=
"float:right;margin-bottom:10px;"
@
click=
"handleExport"
class=
"selectBtn"
>
导出
</el-button>
<el-button
size=
"small"
style=
"float:right;margin-bottom:10px;"
@
click=
"handleExport"
class=
"selectBtn"
>
导出
</el-button>
<GLTable
ref=
"writeOffTable"
:pageSizes=
"sizeList"
:searchForm=
"searchForm"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:pageConf=
"batchPageConf"
:beforeSearchFn=
"beforeSearchFn"
>
<GLTable
ref=
"writeOffTable"
:pageSizes=
"sizeList"
:searchForm=
"searchForm"
:tableParams=
"batchTableParams"
:getListApi=
"getListApi"
:pageConf=
"batchPageConf"
:beforeSearchFn=
"beforeSearchFn"
>
...
@@ -17,7 +16,6 @@
...
@@ -17,7 +16,6 @@
</
template
>
</
template
>
<
script
type=
"text/ecmascript-6"
>
<
script
type=
"text/ecmascript-6"
>
import
glsxCombiForm
from
'@/components/glsx-combi-form'
import
util
from
'@/util/util'
import
util
from
'@/util/util'
export
default
{
export
default
{
name
:
'writeOffList'
,
name
:
'writeOffList'
,
...
@@ -111,9 +109,6 @@ export default {
...
@@ -111,9 +109,6 @@ export default {
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
batchPageConf
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
}
}
}
},
},
components
:
{
glsxCombiForm
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
handleView
({
writeOffCode
})
{
handleView
({
writeOffCode
})
{
...
...
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