Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f172d81f
authored
Oct 11, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 确认交车
1 parent
3d1dbf1e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/confirmCar.vue
View file @
f172d81
...
...
@@ -368,6 +368,11 @@ export default {
uni
.
showToast
({
title
:
'请输入车钥匙数量'
,
icon
:
'none'
})
return
}
console
.
log
(
'this.formData'
,
this
.
getImages
({
key
:
'otherUrl'
},
'upload'
))
if
(
this
.
formData
.
otherText
&&
(
!
this
.
getImages
({
key
:
'otherUrl'
},
'upload'
)
||
this
.
getImages
({
key
:
'otherUrl'
},
'upload'
).
length
==
0
))
{
uni
.
showToast
({
title
:
'请输入其他图片'
,
icon
:
'none'
})
return
}
const
requiredUploadFields
=
this
.
uploadFields
.
filter
(
field
=>
field
.
required
)
...
...
@@ -662,6 +667,9 @@ export default {
content
:
'确定要删除这张图片吗?'
,
success
:
res
=>
{
if
(
res
.
confirm
&&
Array
.
isArray
(
this
.
uploadedImages
[
key
]))
{
if
(
key
===
'otherUrl'
)
{
this
.
formData
.
otherUrl
=
''
}
// 使用splice确保响应式更新
this
.
uploadedImages
[
key
].
splice
(
index
,
1
)
// 如果数组为空,可以选择删除该字段
...
...
@@ -674,7 +682,7 @@ export default {
},
// 预览PDF
previewPdf
(
field
)
{
const
url
=
`/pages/evaluationForm/components/pdfPreView?fileUrl=
${
this
.
pdfUrl
}
&title=pdf&fileUrltype=pdf
&Signature=true
`
const
url
=
`/pages/evaluationForm/components/pdfPreView?fileUrl=
${
this
.
pdfUrl
}
&title=pdf&fileUrltype=pdf`
uni
.
navigateTo
({
url
:
`
${
url
}
`
})
...
...
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