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 806687b2
authored
Oct 01, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 新增修复
1 parent
ce18be0d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
134 additions
and
41 deletions
api/request/signHttp.js
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/ButtonModule.vue
pages/evaluationForm/components/SelectCity.vue
pages/evaluationForm/components/pdfPreView.vue
pages/evaluationForm/components/uploadMedia.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/index.vue
pages/evaluationForm/signInfo.vue
api/request/signHttp.js
View file @
806687b
...
...
@@ -42,7 +42,11 @@ const request = new Request({
},
error
:
(
error
,
config
)
=>
{
console
.
log
(
'error事件触发'
,
error
,
config
)
return
Promise
.
reject
(
error
)
uni
.
hideLoading
()
uni
.
showToast
({
title
:
error
.
msg
||
'请求失败'
,
icon
:
'none'
})
},
logout
:
config
=>
{
console
.
log
(
'logout事件触发'
,
config
)
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
806687b
...
...
@@ -208,7 +208,7 @@ export default {
{
key
:
'engineNumber'
,
label
:
'发动机号'
,
required
:
true
,
maxlength
:
20
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'engineNumber'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'input'
,
showText
:
'shopMerchantName'
},
{
key
:
'registrationCity'
,
label
:
'上牌城市'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'registrationCityId'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'select'
,
showText
:
'shopMerchantName'
,
isCity
:
true
},
{
key
:
'registrationDate'
,
label
:
'上牌时间'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'registrationDate'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'calendar'
,
showText
:
'shopMerchantName'
},
{
key
:
'carCity'
,
label
:
'车辆所在地'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'
sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'carCityId
'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'select'
,
isCarCity
:
true
},
{
key
:
'carCity'
,
label
:
'车辆所在地'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'
carCityName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'carCityName
'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'select'
,
isCarCity
:
true
},
{
key
:
'mileage'
,
label
:
'表显里程'
,
inputType
:
'number'
,
min
:
0
,
max
:
999999
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'mileage'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'input'
,
showText
:
'shopMerchantName'
,
pattern
:
'^[0-9]{0,6}$'
},
{
key
:
'usageType'
,
...
...
@@ -533,6 +533,58 @@ export default {
that
.
formData
.
carLicenseReqDTO
=
{
...
carLicense
}
that
.
formData
.
imageList
=
[...
images
]
that
.
formData
.
evalOrderNo
=
evalOrderNo
that
.
formImagesData
=
{}
that
.
certificateImagesData
=
{}
that
.
carVideoData
=
{}
that
.
otherImagesData
=
{}
// 根据 fileType 和 fileSubtype 分类存放图片
images
.
forEach
(
image
=>
{
const
{
fileType
,
fileSubtype
,
fileUrl
}
=
image
const
imageItem
=
{
url
:
fileUrl
}
// 根据 fileType 决定存放到哪个数据结构
let
targetData
=
null
switch
(
fileType
)
{
case
1
:
// 车辆图片
targetData
=
that
.
formImagesData
break
case
2
:
// 证件资料
targetData
=
that
.
certificateImagesData
break
case
3
:
// 车辆视频
targetData
=
that
.
carVideoData
break
case
4
:
// 其他图片
targetData
=
that
.
otherImagesData
break
default
:
return
}
// 根据 fileSubtype 组织数据
if
(
!
targetData
[
fileSubtype
])
{
targetData
[
fileSubtype
]
=
[]
}
targetData
[
fileSubtype
].
push
(
imageItem
)
})
that
.
formFields
.
forEach
(
field
=>
{
if
(
field
.
fieldPickerArray
&&
field
.
targetObj
&&
field
.
targetKey
&&
field
.
targetNameKey
)
{
const
targetValue
=
that
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
console
.
log
(
'targetValue:'
,
targetValue
)
if
(
targetValue
!==
undefined
&&
targetValue
!==
null
&&
targetValue
!==
''
)
{
// 查找fieldPickerArray中对应的值
const
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
console
.
log
(
'selectedItem:'
,
selectedItem
)
if
(
selectedItem
)
{
// 设置显示名称
that
.
$set
(
that
.
formData
[
field
.
targetObj
],
field
.
targetNameKey
,
selectedItem
.
name
)
}
}
}
})
})
},
...
...
@@ -965,19 +1017,28 @@ export default {
})
console
.
log
(
'提交的表单数据:'
,
this
.
formData
)
if
(
this
.
query
.
type
===
'add'
)
{
await
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
)
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'新增成功'
,
icon
:
'success'
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
).
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
})
if
(
res
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'新增成功'
,
icon
:
'none'
})
this
.
backPage
()
}
}
else
if
(
this
.
query
.
type
===
'edit'
)
{
await
uni
.
$api
.
evaluationApi
.
evalOrderUpdate
(
this
.
formData
)
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'编辑成功'
,
icon
:
'success'
})
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderUpdate
(
this
.
formData
)
console
.
log
(
'res:'
,
res
)
if
(
res
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'编辑成功'
,
icon
:
'none'
})
this
.
backPage
()
}
}
},
...
...
@@ -1005,15 +1066,16 @@ export default {
}
// 从URL中提取文件名和格式
const
urlParts
=
item
.
url
.
split
(
'/'
)
const
fileName
=
urlParts
[
urlParts
.
length
-
1
]
const
fileFormat
=
fileName
.
split
(
'.'
).
pop
().
toLowerCase
()
const
fileName
=
item
.
name
const
fileFormat
=
item
.
fileFormat
// 创建新的图片对象并添加到imageList
this
.
formData
.
imageList
.
push
({
fileType
:
fileType
,
fileSubtype
:
parseInt
(
fileSubtype
,
10
),
// 确保是数字类型
fileUrl
:
item
.
url
fileUrl
:
item
.
url
,
fileFormat
:
fileFormat
,
fileName
:
fileName
})
})
})
...
...
pages/evaluationForm/components/ButtonModule.vue
View file @
806687b
<
template
>
<div
class=
"button-module flex"
>
<view
class=
"common-btn"
@
click=
"handleClick('details')"
>
详情
</view>
<view
v-if=
"
subStatus == ''
&& status != 100"
class=
"common-btn ml-24"
@
click=
"handleClick('edit')"
>
编辑
</view>
<view
v-if=
"
!subStatus
&& status != 100"
class=
"common-btn ml-24"
@
click=
"handleClick('edit')"
>
编辑
</view>
<view
v-if=
"status == 20 && !subStatus"
class=
"common-btn ml-24"
@
click=
"handleClick('requote')"
>
重新报价
</view>
<view
v-if=
"status == 20 && !subStatus"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('sign')"
>
客户签约
</view>
<view
v-if=
"status == 20 && subStatus == 1"
class=
"common-btn gray-btn ml-24"
@
click=
"handleClick('signing')"
>
签约中
</view>
...
...
@@ -20,8 +20,8 @@ export default {
name
:
'ButtonModule'
,
props
:
{
status
:
{
type
:
String
,
default
:
'10'
type
:
Number
,
default
:
10
},
subStatus
:
{
type
:
String
,
...
...
pages/evaluationForm/components/SelectCity.vue
View file @
806687b
...
...
@@ -3,7 +3,7 @@
<template
v-slot:content
>
<StepTab
:steps=
"steps"
:currentStep=
"currentStep"
:clickable=
"true"
@
step-change=
"onStepChange"
:isShowStepNumber=
"false"
></StepTab>
<view
class=
"list-component"
>
<SortByNameList
:items=
"currentStepData"
:activeValue=
"currentSelectedId"
:activeField=
"'
id
'"
:itemNameField=
"'name'"
:groupKeyField=
"'letter'"
:itemsPerRow=
"3"
:itemSpacing=
"32"
@
item-click=
"handleItemClick"
/>
<SortByNameList
:items=
"currentStepData"
:activeValue=
"currentSelectedId"
:activeField=
"'
name
'"
:itemNameField=
"'name'"
:groupKeyField=
"'letter'"
:itemsPerRow=
"3"
:itemSpacing=
"32"
@
item-click=
"handleItemClick"
/>
</view>
</
template
>
</GeneralPopup>
...
...
@@ -164,7 +164,7 @@ export default {
// 处理项目点击事件
handleItemClick
(
item
)
{
console
.
log
(
'Item clicked:'
,
item
)
this
.
currentSelectedId
=
item
.
id
this
.
currentSelectedId
=
item
.
id
||
item
.
name
if
(
this
.
currentStep
===
0
)
{
this
.
selectedBrand
=
item
...
...
pages/evaluationForm/components/pdfPreView.vue
View file @
806687b
...
...
@@ -8,7 +8,7 @@
</view>
<!--
<web-view
:src=
"url"
></web-view>
-->
<view>
<lk-preview-office
:url=
"url"
fileType=
"pdf
"
></lk-preview-office>
<lk-preview-office
:url=
"url"
:fileType=
"fileType
"
></lk-preview-office>
</view>
</view>
</
template
>
...
...
@@ -21,13 +21,19 @@ export default {
data
()
{
return
{
url
:
''
,
title
:
''
title
:
''
,
fileType
:
'pdf'
}
},
onLoad
(
options
)
{
console
.
log
(
options
)
this
.
fileType
=
options
.
fileType
||
'pdf'
if
(
this
.
fileType
===
'docx'
)
{
this
.
url
=
options
.
fileUrl
}
else
{
this
.
url
=
options
.
fileUrl
+
'&OSSAccessKeyId='
+
options
.
OSSAccessKeyId
+
'&Signature='
+
options
.
Signature
}
this
.
title
=
options
.
fileName
console
.
log
(
this
.
url
)
// else this.setWv()
...
...
pages/evaluationForm/components/uploadMedia.vue
View file @
806687b
...
...
@@ -13,10 +13,10 @@
<!-- 视频显示 -->
<view
v-else
class=
"video-container"
@
click
.
stop=
"previewMedia(media, 2)"
>
<!--
<video
:src=
"media.url || media"
mode=
"aspectFill"
controls
class=
"uploaded-media"
></video>
-->
<image
src=
"https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/vcpfile/jiashizheng20250822113512001.png "
mode=
"aspectFill"
class=
"uploaded-media
"
@
click
.
stop=
"previewMedia(media, 1)"
></image>
<
!--
<cover-
view
class=
"video-play-icon"
>
<
uni-icons
type=
"play"
size=
"24"
color=
"#fff"
></uni-icons
>
</
cover-view>
--
>
<image
:src=
"media.url + videoProcess"
mode=
"aspectFill
"
@
click
.
stop=
"previewMedia(media, 1)"
></image>
<view
class=
"video-play-icon"
>
<
view
class=
"sprites-icon icon-play"
></view
>
</
view
>
</view>
<cover-view
class=
"delete-icon"
@
click
.
stop=
"deleteMedia(field.key, index)"
>
<uni-icons
type=
"clear"
size=
"16"
color=
"#fff"
></uni-icons>
...
...
@@ -64,6 +64,11 @@ export default {
}
}
},
data
()
{
return
{
videoProcess
:
'?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'
}
},
methods
:
{
// 处理媒体上传
handleMediaUpload
(
field
)
{
...
...
@@ -115,7 +120,8 @@ export default {
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
this
.
addMedia
(
field
,
{
url
,
type
:
'image'
})
const
fileExtension
=
res
.
tempFiles
[
0
].
name
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
name
:
field
.
label
})
}
}
catch
(
error
)
{
console
.
log
(
'上传图片失败'
,
error
)
...
...
@@ -138,12 +144,14 @@ export default {
sizeType
:
[
'compressed'
],
sourceType
:
[
'album'
],
success
:
async
res
=>
{
console
.
log
(
'选择图片成功'
,
res
)
try
{
// 上传所有选择的图片
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
this
.
addMedia
(
field
,
{
url
,
type
:
'image'
})
const
fileExtension
=
res
.
tempFiles
[
0
].
name
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
fileFormat
:
fileExtension
,
name
:
field
.
label
})
}
}
catch
(
error
)
{
console
.
log
(
'上传图片失败'
,
error
)
...
...
@@ -169,9 +177,12 @@ export default {
try
{
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
const
fileExtension
=
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
type
:
'video'
,
fileFormat
:
fileExtension
,
name
:
field
.
label
,
duration
:
res
.
duration
,
size
:
res
.
size
})
...
...
@@ -195,14 +206,18 @@ export default {
sourceType
:
[
'album'
],
maxDuration
:
field
.
maxDuration
||
60
,
success
:
async
res
=>
{
console
.
log
(
'选择视频成功'
,
res
)
try
{
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
const
fileExtension
=
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
type
:
'video'
,
name
:
field
.
label
,
duration
:
res
.
duration
,
size
:
res
.
size
size
:
res
.
size
,
fileFormat
:
fileExtension
})
}
catch
(
error
)
{
console
.
log
(
'上传视频失败'
,
error
)
...
...
pages/evaluationForm/confirmCar.vue
View file @
806687b
...
...
@@ -203,11 +203,18 @@ export default {
{
key
:
'handoverPhotoBack'
,
label
:
'后面'
,
required
:
false
,
maxCount
:
1
},
{
key
:
'handoverPhotoRightSide'
,
label
:
'右侧面'
,
required
:
false
,
maxCount
:
1
},
{
key
:
'handoverPhotoMore'
,
label
:
'其他'
,
required
:
false
,
maxCount
:
5
,
fullwidth
:
true
}
]
],
query
:
null
}
},
computed
:
{},
onLoad
(
options
)
{
this
.
init
(
options
)
},
methods
:
{
init
(
options
)
{
this
.
query
=
options
},
backPage
()
{
uni
.
navigateBack
({
delta
:
1
...
...
@@ -222,7 +229,7 @@ export default {
uni
.
$api
.
evaluationApi
.
salesAgreementPreview
({
evalOrderNo
:
this
.
$route
.
query
.
evalOrderNo
,
evalOrderNo
:
this
.
query
.
evalOrderNo
,
supplementaryClauseText
:
this
.
formData
.
supplementaryClauseText
})
.
then
(
res
=>
{
...
...
@@ -255,7 +262,7 @@ export default {
})
uni
.
$api
.
evaluationApi
.
confirmDelivery
({
evalOrderNo
:
this
.
$route
.
query
.
evalOrderNo
,
evalOrderNo
:
this
.
query
.
evalOrderNo
,
...
this
.
formData
})
.
then
(
res
=>
{
...
...
pages/evaluationForm/evaluationFormDetails.vue
View file @
806687b
...
...
@@ -168,7 +168,7 @@
</view>
</view>
</view>
<view
class=
"mb-32 upload-box"
>
<view
class=
"mb-32 upload-box"
v-if=
"detailsInfo.signingInfo.custodyContract"
>
<view
class=
"tab-panel-title"
>
车辆代管协议
</view>
<view
class=
"gridBoxNoPadding"
>
<view
v-for=
"(item, index) in vehicleManagementItems"
:key=
"index"
:class=
"['flex align-center', { 'full-width': item.fullWidth }]"
>
...
...
pages/evaluationForm/index.vue
View file @
806687b
...
...
@@ -78,22 +78,22 @@
签约保管人
<text
class=
"requiredLabel"
>
*
</text>
</view>
<input
class=
"intention-input mb-48"
type=
"idcard"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianName"
/>
<input
class=
"intention-input mb-48"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianName"
/>
<view
class=
"requote-label mb-24"
>
身份证号
<text
class=
"requiredLabel"
>
*
</text>
</view>
<input
class=
"intention-input mb-48"
type=
"idcard"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianIdentityCode"
/>
<input
class=
"intention-input mb-48"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianIdentityCode"
/>
<view
class=
"requote-label mb-24"
>
手机号
<text
class=
"requiredLabel"
>
*
</text>
</view>
<input
class=
"intention-input mb-48"
type=
"
idcard
"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianPhone"
/>
<input
class=
"intention-input mb-48"
type=
"
number
"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianPhone"
/>
<view
class=
"requote-label mb-24"
>
地址
<text
class=
"requiredLabel"
>
*
</text>
</view>
<input
class=
"intention-input mb-48"
type=
"idcard"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianAddress"
/>
<input
class=
"intention-input mb-48"
placeholder=
"请输入"
v-model=
"addSignAgreementObj.custodianAddress"
/>
</view>
</
template
>
</GeneralPopup>
...
...
@@ -239,7 +239,6 @@ export default {
this
.
search
()
},
async
queryList
(
pageNo
,
pageSize
)
{
console
.
log
(
'queryList出大两侧'
)
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderList
({
t
:
{
...
this
.
searchValue
,
status
:
this
.
typeList
[
this
.
tabIndex
].
key
},
currentPage
:
pageNo
,
...
...
pages/evaluationForm/signInfo.vue
View file @
806687b
This diff is collapsed.
Click to expand it.
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