Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
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 0ddbc235
authored
Oct 10, 2025
by
wangzhihui
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化
1 parent
b101470e
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
87 additions
and
6 deletions
src/views/usedCarManagement/operateManagement/components/contract/detail.scss
src/views/usedCarManagement/operateManagement/components/contract/detail.vue
src/views/usedCarManagement/operateManagement/components/contract/detail.scss
View file @
0ddbc23
...
@@ -55,7 +55,7 @@
...
@@ -55,7 +55,7 @@
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
::v-deep
.el-form-item__content
{
::v-deep
.el-form-item__content
{
width
:
calc
(
100%
-
1
50
px
);
width
:
calc
(
100%
-
1
75
px
);
word-break
:
break-all
;
word-break
:
break-all
;
line-height
:
20px
;
line-height
:
20px
;
}
}
...
...
src/views/usedCarManagement/operateManagement/components/contract/detail.vue
View file @
0ddbc23
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
<el-form
<el-form
:ref=
"item.childRef"
:ref=
"item.childRef"
class=
"edit-sub-block"
class=
"edit-sub-block"
label-width=
"1
50
px"
label-width=
"1
75
px"
:inline=
"true"
:inline=
"true"
:model=
"detailInfo"
:model=
"detailInfo"
:rules=
"rules"
:rules=
"rules"
...
@@ -164,7 +164,7 @@
...
@@ -164,7 +164,7 @@
<el-form
<el-form
:ref=
"item.childRef"
:ref=
"item.childRef"
class=
"edit-sub-block"
class=
"edit-sub-block"
label-width=
"1
50
px"
label-width=
"1
75
px"
:inline=
"true"
:inline=
"true"
:model=
"detailInfo"
:model=
"detailInfo"
:rules=
"rules"
:rules=
"rules"
...
@@ -173,11 +173,36 @@
...
@@ -173,11 +173,36 @@
<
template
<
template
v-for=
"(customItem, customIndex) in detailInfo[item.key]"
v-for=
"(customItem, customIndex) in detailInfo[item.key]"
>
>
<el-col
:span=
"12"
:key=
"customIndex"
>
<el-col
:span=
"customItem[item.type] ? 24 : 12"
:key=
"customIndex"
>
<el-form-item
<el-form-item
:label=
"customItem[item.fieldLabel] + ':'"
:label=
"customItem[item.fieldLabel] + ':'"
>
>
<template>
<template
v-if=
"customItem[item.type]"
>
<div
class=
"photo-box"
v-if=
"customItem[item.fieldValue]"
>
<glsx-preview
:key=
"customIndex"
:image-url-arr=
"
customItem[item.fieldValue]
? customItem[item.fieldValue]
: []
"
:picOptions=
"
{
...picOptions,
type: customItem[item.otherType]
}"
limit="1"
>
</glsx-preview>
</div>
<template
v-else
>
-
</
template
>
</template>
<
template
v-else
>
<div
class=
"flex"
>
<div
class=
"flex"
>
{{
{{
customItem
[
item
.
fieldValue
]
customItem
[
item
.
fieldValue
]
...
@@ -203,7 +228,7 @@
...
@@ -203,7 +228,7 @@
>
>
<el-form
<el-form
class=
"edit-sub-block"
class=
"edit-sub-block"
label-width=
"1
50
px"
label-width=
"1
75
px"
:inline=
"true"
:inline=
"true"
>
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
...
@@ -285,10 +310,14 @@ import {
...
@@ -285,10 +310,14 @@ import {
electronicContractTypeOpt
,
electronicContractTypeOpt
,
oaFlowPaymentStatusOpt
oaFlowPaymentStatusOpt
}
from
"@/common/constants.js"
}
from
"@/common/constants.js"
import
preview
from
"../../../components/preview"
import
{
getContractDetail
,
getContractEdit
}
from
"@/api/usedCarManagement.js"
import
{
getContractDetail
,
getContractEdit
}
from
"@/api/usedCarManagement.js"
import
{
deepClone
}
from
"@/common/util"
import
{
deepClone
}
from
"@/common/util"
import
reportTrackPageMixin
from
"@/mixins/reportTrackPageMixin"
import
reportTrackPageMixin
from
"@/mixins/reportTrackPageMixin"
export
default
{
export
default
{
components
:
{
glsxPreview
:
preview
},
mixins
:
[
reportTrackPageMixin
],
mixins
:
[
reportTrackPageMixin
],
data
()
{
data
()
{
return
{
return
{
...
@@ -436,6 +465,7 @@ export default {
...
@@ -436,6 +465,7 @@ export default {
key
:
"fieldItems"
,
key
:
"fieldItems"
,
fieldLabel
:
"label"
,
fieldLabel
:
"label"
,
fieldValue
:
"value"
,
fieldValue
:
"value"
,
type
:
"otherType"
,
sign
:
2
,
sign
:
2
,
subTitle
:
"签署人信息"
,
subTitle
:
"签署人信息"
,
subData
:
[
subData
:
[
...
@@ -539,10 +569,61 @@ export default {
...
@@ -539,10 +569,61 @@ export default {
?
res
.
carBase
.
carSeriesName
+
" "
+
res
.
carBase
.
carTypeName
?
res
.
carBase
.
carSeriesName
+
" "
+
res
.
carBase
.
carTypeName
:
""
:
""
}
}
this
.
detailInfo
.
fieldItems
.
forEach
((
item
)
=>
{
// let arr = [
// "机动车登记本",
// "机动车行驶证",
// "购置税完税收据",
// "购车发票",
// "交管12123截图",
// "车钥匙",
// "交强险",
// "保险单商业保险单或卡",
// "过户授权委托书照片或视频",
// "其他"
// ]
// if (arr.includes(item.label)) {
// item.otherType = "image"
if
(
this
.
getFileType
(
item
.
value
)
==
"image"
)
{
item
.
otherType
=
"image"
item
.
value
=
item
.
value
.
split
(
","
)
}
else
if
(
this
.
getFileType
(
item
.
value
)
==
"video"
)
{
item
.
otherType
=
"video"
item
.
value
=
item
.
value
.
split
(
","
)
}
// item.value = item.value.split(",")
// }
})
this
.
loading
=
false
this
.
loading
=
false
console
.
log
(
this
.
detailInfo
,
"this.detailInfo"
)
console
.
log
(
this
.
detailInfo
,
"this.detailInfo"
)
})
})
},
},
getFileType
(
url
)
{
// 图片扩展名
const
imageExtensions
=
[
"jpg"
,
"jpeg"
,
"png"
,
"gif"
,
"bmp"
,
"webp"
,
"svg"
]
// 视频扩展名
const
videoExtensions
=
[
"mp4"
,
"avi"
,
"mov"
,
"wmv"
,
"flv"
,
"webm"
,
"mkv"
]
// 提取文件扩展名
const
extension
=
url
.
split
(
"."
).
pop
().
toLowerCase
().
split
(
"?"
)[
0
]
if
(
imageExtensions
.
includes
(
extension
))
{
return
"image"
}
else
if
(
videoExtensions
.
includes
(
extension
))
{
return
"video"
}
else
{
return
"unknown"
}
},
handleCancel
()
{
handleCancel
()
{
this
.
$router
.
push
(
"/operateManagement"
)
this
.
$router
.
push
(
"/operateManagement"
)
},
},
...
...
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