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 38f5fa34
authored
Oct 02, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 失败提示
1 parent
1ee07db5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
214 additions
and
105 deletions
api/module/evaluation.js
api/request/signHttp.js
assets/images/common/sign-no-data.png
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/index.vue
pages/evaluationForm/signInfo.vue
api/module/evaluation.js
View file @
38f5fa3
...
@@ -3,135 +3,223 @@ import { gscPost } from '../request/signHttp'
...
@@ -3,135 +3,223 @@ import { gscPost } from '../request/signHttp'
module
.
exports
=
{
module
.
exports
=
{
/** 评估单列表 */
/** 评估单列表 */
evalOrderList
(
data
)
{
evalOrderList
(
data
)
{
return
gscPost
(
`/evalOrder/page`
,
{
return
gscPost
(
...
data
`/evalOrder/page`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单详情 */
/** 评估单详情 */
evalOrderDetail
(
data
)
{
evalOrderDetail
(
data
)
{
return
gscPost
(
`/evalOrder/detail`
,
{
return
gscPost
(
...
data
`/evalOrder/detail`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单创建 */
/** 评估单创建 */
evalOrderCreate
(
data
)
{
evalOrderCreate
(
data
)
{
return
gscPost
(
`/evalOrder/create`
,
{
return
gscPost
(
...
data
`/evalOrder/create`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单分页状态数量 */
/** 评估单分页状态数量 */
evalOrderPageCount
(
data
)
{
evalOrderPageCount
(
data
)
{
return
gscPost
(
`/evalOrder/pageCount`
,
{
return
gscPost
(
...
data
`/evalOrder/pageCount`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单更新 */
/** 评估单更新 */
evalOrderUpdate
(
data
)
{
evalOrderUpdate
(
data
)
{
return
gscPost
(
`/evalOrder/edit`
,
{
return
gscPost
(
...
data
`/evalOrder/edit`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单重新报价 */
/** 评估单重新报价 */
evalOrderOwnerReQuote
(
data
)
{
evalOrderOwnerReQuote
(
data
)
{
return
gscPost
(
`/evalOrder/ownerReQuote`
,
{
return
gscPost
(
...
data
`/evalOrder/ownerReQuote`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 签订买卖合同 */
/** 签订买卖合同 */
evalOrderSignContract
(
data
)
{
evalOrderSignContract
(
data
)
{
return
gscPost
(
`/evalOrder/signingSaleContract`
,
{
return
gscPost
(
...
data
`/evalOrder/signingSaleContract`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单取消合同 */
/** 评估单取消合同 */
evalOrderCancelContract
(
data
)
{
evalOrderCancelContract
(
data
)
{
return
gscPost
(
`/evalOrder/cancelSaleContract`
,
{
return
gscPost
(
...
data
`/evalOrder/cancelSaleContract`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 评估单重新提交 */
/** 评估单重新提交 */
evalOrderConfirmVehicleDelivery
(
data
)
{
evalOrderConfirmVehicleDelivery
(
data
)
{
return
gscPost
(
`/confirmVehicleDelivery/reSubmit`
,
{
return
gscPost
(
...
data
`/confirmVehicleDelivery/reSubmit`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 确认交车 */
/** 确认交车 */
confirmDelivery
(
data
)
{
confirmDelivery
(
data
)
{
return
gscPost
(
`/confirmVehicleDelivery/confirmVehicleDelivery`
,
{
return
gscPost
(
...
data
`/confirmVehicleDelivery/confirmVehicleDelivery`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 支付定金 */
/** 支付定金 */
payDepositApplication
(
data
)
{
payDepositApplication
(
data
)
{
return
gscPost
(
`/applyPayment/payDepositApplication`
,
{
return
gscPost
(
...
data
`/applyPayment/payDepositApplication`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 发起代保管协议签署 */
/** 发起代保管协议签署 */
signAgreement
(
data
)
{
signAgreement
(
data
)
{
return
gscPost
(
`/applyPayment/payFinal`
,
{
return
gscPost
(
...
data
`/applyPayment/payFinal`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 检查代保管协议签署状态 */
/** 检查代保管协议签署状态 */
checkSignAgreement
(
data
)
{
checkSignAgreement
(
data
)
{
return
gscPost
(
`/applyPayment/checkSignAgreement`
,
{
return
gscPost
(
...
data
`/applyPayment/checkSignAgreement`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 检查车辆是否存在重复评估单 */
/** 检查车辆是否存在重复评估单 */
checkRepeat
(
data
)
{
checkRepeat
(
data
)
{
return
gscPost
(
`/evalOrder/checkRepeat`
,
{
return
gscPost
(
...
data
`/evalOrder/checkRepeat`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 车辆ocr识别 */
/** 车辆ocr识别 */
vinOcr
(
data
)
{
vinOcr
(
data
)
{
return
gscPost
(
`/evalOrder/vinOcr`
,
{
return
gscPost
(
...
data
`/evalOrder/vinOcr`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 行驶证ocr识别 */
/** 行驶证ocr识别 */
carLicenseOcr
(
data
)
{
carLicenseOcr
(
data
)
{
return
gscPost
(
`/evalOrder/carLicenseOcr`
,
{
return
gscPost
(
...
data
`/evalOrder/carLicenseOcr`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 获取合同详情 */
/** 获取合同详情 */
getContractDetail
(
data
)
{
getContractDetail
(
data
)
{
return
gscPost
(
`/evalElectronicContract/getDetail`
,
{
return
gscPost
(
...
data
`/evalElectronicContract/getDetail`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 获取保管人列表 */
/** 获取保管人列表 */
getCustodyAgreementList
(
data
)
{
getCustodyAgreementList
(
data
)
{
return
gscPost
(
`/custodyAgreement/custodyAgreementList`
,
{
return
gscPost
(
...
data
`/custodyAgreement/custodyAgreementList`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 新增保管人 */
/** 新增保管人 */
addCustodyAgreement
(
data
)
{
addCustodyAgreement
(
data
)
{
return
gscPost
(
`/custodyAgreement/addCustodyAgreement`
,
{
return
gscPost
(
...
data
`/custodyAgreement/addCustodyAgreement`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 发送代保管人协议 */
/** 发送代保管人协议 */
sendCustodyAgreement
(
data
)
{
sendCustodyAgreement
(
data
)
{
return
gscPost
(
`/custodyAgreement/sendCustodyAgreement`
,
{
return
gscPost
(
...
data
`/custodyAgreement/sendCustodyAgreement`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 销售协议预览 */
/** 销售协议预览 */
salesAgreementPreview
(
data
)
{
salesAgreementPreview
(
data
)
{
return
gscPost
(
`/evalOrder/salesAgreementPreview`
,
{
return
gscPost
(
...
data
`/evalOrder/salesAgreementPreview`
,
})
{
...
data
},
{
returnAll
:
true
}
)
},
},
/** 线上合同预览 */
/** 线上合同预览 */
viewOnlineContract
(
data
)
{
viewOnlineContract
(
data
)
{
return
gscPost
(
`/evalOrder/viewOnlineContract`
,
{
return
gscPost
(
...
data
`/evalOrder/viewOnlineContract`
,
})
{
...
data
},
{
returnAll
:
true
}
)
}
}
}
}
api/request/signHttp.js
View file @
38f5fa3
import
{
Request
}
from
'glsk-toolkit'
import
{
Request
}
from
'glsk-toolkit'
module
.
exports
=
{
module
.
exports
=
{
gscPost
:
(
url
,
data
,
_config
=
{})
=>
{
gscPost
:
(
url
,
data
,
_config
=
{})
=>
{
if
(
!
uni
.
$signHttp
)
uni
.
$signHttp
=
new
Request
(
uni
.
signHttpConfig
)
if
(
!
uni
.
$signHttp
)
uni
.
$signHttp
=
new
Request
(
uni
.
signHttpConfig
)
return
uni
.
$signHttp
.
post
(
url
,
data
,
_config
)
return
uni
.
$signHttp
.
post
(
url
,
data
,
_config
)
}
}
}
\ No newline at end of file
\ No newline at end of file
}
assets/images/common/sign-no-data.png
View file @
38f5fa3
47.4 KB
|
W:
|
H:
50.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
pages/evaluationForm/addEvaluationFrom.vue
View file @
38f5fa3
This diff is collapsed.
Click to expand it.
pages/evaluationForm/components/GeneralPopup.vue
View file @
38f5fa3
...
@@ -155,24 +155,28 @@ export default {
...
@@ -155,24 +155,28 @@ export default {
width
:
toRpx
(
848
);
width
:
toRpx
(
848
);
border-radius
:
toRpx
(
36
);
border-radius
:
toRpx
(
36
);
background-color
:
#fff
!important
;
background-color
:
#fff
!important
;
padding
:
0
toRpx
(
64
)
toRpx
(
48
);
padding
:
0
0
toRpx
(
48
);
overflow
:
hidden
;
overflow
:
hidden
;
.content
{
.content
{
min-height
:
32vh
;
min-height
:
32vh
;
max-height
:
80vh
;
max-height
:
80vh
;
overflow-y
:
auto
;
overflow-y
:
auto
;
padding
-bottom
:
toRpx
(
96
);
padding
:
0
toRpx
(
64
)
toRpx
(
64
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
background-color
:
#fff
;
background-color
:
#fff
;
.uni-input-placeholder
{
color
:
#999999
;
}
}
}
.popup-top-box
{
.popup-top-box
{
color
:
#1a1a1a
;
color
:
#1a1a1a
;
font-size
:
toRpx
(
40
);
font-size
:
toRpx
(
40
);
font-weight
:
500
;
font-weight
:
500
;
text-align
:
center
;
text-align
:
center
;
background-color
:
#fff
;
height
:
toRpx
(
136
);
height
:
toRpx
(
136
);
padding
:
0
toRpx
(
64
);
background
:
linear-gradient
(
180deg
,
#e6f0ff
0%
,
#ffffff
100%
);
.popup-top-box-title
{
.popup-top-box-title
{
flex
:
1
;
flex
:
1
;
text-align
:
center
;
text-align
:
center
;
...
@@ -184,12 +188,15 @@ export default {
...
@@ -184,12 +188,15 @@ export default {
.footer-box
{
.footer-box
{
width
:
100%
;
width
:
100%
;
margin-top
:
toRpx
(
16
);
margin-top
:
toRpx
(
16
);
padding
:
0
toRpx
(
64
);
border-radius
:
toRpx
(
42
);
border-radius
:
toRpx
(
42
);
}
}
}
}
::v-deep
.noTitle
.uni-popup__wrapper.center
{
::v-deep
.noTitle
.uni-popup__wrapper.center
{
padding
:
0
;
padding
:
0
;
.content
{
padding
:
0
;
}
.footer-box
{
.footer-box
{
padding
:
0
toRpx
(
64
);
padding
:
0
toRpx
(
64
);
}
}
...
...
pages/evaluationForm/confirmCar.vue
View file @
38f5fa3
...
@@ -253,14 +253,16 @@ export default {
...
@@ -253,14 +253,16 @@ export default {
supplementaryClauseText
:
this
.
formData
.
supplementaryClauseText
supplementaryClauseText
:
this
.
formData
.
supplementaryClauseText
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
this
.
$refs
.
addAgreementPopup
.
closePopup
()
if
(
res
.
data
.
code
==
0
)
{
this
.
formFields
.
forEach
(
item
=>
{
this
.
$refs
.
addAgreementPopup
.
closePopup
()
if
(
item
.
key
===
field
.
key
)
{
this
.
formFields
.
forEach
(
item
=>
{
item
.
isShowPreview
=
true
if
(
item
.
key
===
field
.
key
)
{
}
item
.
isShowPreview
=
true
})
}
this
.
pdfUrl
=
res
.
fileDownloadUrl
})
console
.
log
(
'this.pdfUrl'
,
this
.
pdfUrl
)
this
.
pdfUrl
=
res
.
fileDownloadUrl
console
.
log
(
'this.pdfUrl'
,
this
.
pdfUrl
)
}
})
})
})
})
}
else
if
(
field
.
type
===
'calendar'
)
{
}
else
if
(
field
.
type
===
'calendar'
)
{
...
@@ -304,12 +306,12 @@ export default {
...
@@ -304,12 +306,12 @@ export default {
...
this
.
formData
...
this
.
formData
})
})
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
)
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
title
:
'交车成功'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'交车成功'
,
icon
:
'none'
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
//
uni.navigateBack({
uni
.
navigateBack
({
//
delta: 1
delta
:
1
//
})
})
},
500
)
},
500
)
}
}
},
},
...
...
pages/evaluationForm/evaluationFormDetails.vue
View file @
38f5fa3
...
@@ -201,7 +201,7 @@
...
@@ -201,7 +201,7 @@
</view>
</view>
<view
v-for=
"(item, index) in detailsInfo.paymentList || []"
:key=
"index"
class=
"tableRow"
>
<view
v-for=
"(item, index) in detailsInfo.paymentList || []"
:key=
"index"
class=
"tableRow"
>
<view
class=
"tableCell"
>
{{ item.paymentType == 1 ? '定金' : item.paymentType == 2 ? '尾款' : '全款' }}
</view>
<view
class=
"tableCell"
>
{{ item.paymentType == 1 ? '定金' : item.paymentType == 2 ? '尾款' : '全款' }}
</view>
<view
class=
"tableCell"
>
{{ item.
paymentS
tatus == 1 ? '已支付' : '未支付' }}
</view>
<view
class=
"tableCell"
>
{{ item.
s
tatus == 1 ? '已支付' : '未支付' }}
</view>
<view
class=
"tableCell"
>
{{ item.payTime || '-' }}
</view>
<view
class=
"tableCell"
>
{{ item.payTime || '-' }}
</view>
<view
class=
"tableCell"
>
{{ item.paymentAmount ? '¥' + item.paymentAmount : '-' }}
</view>
<view
class=
"tableCell"
>
{{ item.paymentAmount ? '¥' + item.paymentAmount : '-' }}
</view>
</view>
</view>
...
@@ -546,8 +546,9 @@ export default {
...
@@ -546,8 +546,9 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
const
{
basic
=
{},
carInfo
=
{},
carLicense
=
{},
images
=
{}
}
=
res
if
(
res
.
data
.
code
==
0
)
{
that
.
detailsInfo
=
res
that
.
detailsInfo
=
res
.
data
.
data
}
})
})
},
},
switchTab
(
index
)
{
switchTab
(
index
)
{
...
@@ -613,11 +614,13 @@ export default {
...
@@ -613,11 +614,13 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
// const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/696fdf0c-0287-4bcd-9d4e-6b423f2fe5ba%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.docx'
if
(
res
.
data
.
code
==
0
)
{
const
url
=
`/pages/evaluationForm/components/pdfPreView?fileUrl=
${
res
.
contractUrl
}
&title=pdf&fileType=pdf&Signature=false`
// const pdfUrl = 'https://jinrong-huidan-test.oss-cn-shenzhen.aliyuncs.com/testdev/696fdf0c-0287-4bcd-9d4e-6b423f2fe5ba%E4%BA%8C%E6%89%8B%E8%BD%A6%E8%BD%AC%E8%AE%A9%E5%8D%8F%E8%AE%AE.docx'
uni
.
navigateTo
({
const
url
=
`/pages/evaluationForm/components/pdfPreView?fileUrl=
${
res
.
data
.
data
.
contractUrl
}
&title=pdf&fileType=pdf&Signature=false`
url
:
`
${
url
}
`
uni
.
navigateTo
({
})
url
:
`
${
url
}
`
})
}
})
})
}
}
}
}
...
...
pages/evaluationForm/index.vue
View file @
38f5fa3
This diff is collapsed.
Click to expand it.
pages/evaluationForm/signInfo.vue
View file @
38f5fa3
...
@@ -125,9 +125,9 @@
...
@@ -125,9 +125,9 @@
</view>
</view>
<
template
>
<
template
>
<checkbox-group
@
change=
"checkboxChange"
class=
"checkbox-group flex align-center"
>
<checkbox-group
@
change=
"checkboxChange"
class=
"checkbox-group flex align-center"
>
<label
class=
"uni-list-cell uni-list-cell-pd align-center flex ml-48"
v-for=
"item in checkboxList"
:key=
"item.value"
>
<label
class=
"uni-list-cell uni-list-cell-pd align-center flex ml-48
mb-16
"
v-for=
"item in checkboxList"
:key=
"item.value"
>
<view>
<view>
<checkbox
style=
"transform: scale(0.7)"
activeBackgroundColor=
"#4673FF"
iconColor=
"#fff"
:value=
"item.value"
:checked=
"item.checked"
:disabled=
"item.disabled"
/>
<checkbox
class=
"sign-checkbox"
style=
"transform: scale(0.7)"
activeBackgroundColor=
"#4673FF"
iconColor=
"#fff"
:value=
"item.value"
:checked=
"item.checked"
:disabled=
"item.disabled"
/>
</view>
</view>
<view
class=
"checkbox-name"
>
{{
item
.
name
}}
</view>
<view
class=
"checkbox-name"
>
{{
item
.
name
}}
</view>
<input
class=
"checkbox-input"
v-if=
"item.isShowInput"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
type=
"text"
/>
<input
class=
"checkbox-input"
v-if=
"item.isShowInput"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
type=
"text"
/>
...
@@ -859,14 +859,19 @@ export default {
...
@@ -859,14 +859,19 @@ export default {
delete
this
.
formData
.
depositPrice
delete
this
.
formData
.
depositPrice
delete
this
.
formData
.
finalPrice
delete
this
.
formData
.
finalPrice
}
}
uni
.
$api
.
evaluationApi
.
evalOrderSignContract
({
...
this
.
formData
,
evalOrderNo
:
this
.
query
.
evalOrderNo
})
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderSignContract
({
...
this
.
formData
,
evalOrderNo
:
this
.
query
.
evalOrderNo
})
uni
.
showToast
({
res
.
then
(
res
=>
{
title
:
'电子签约已发送,请注意查收短信'
,
console
.
log
(
'res:'
,
res
)
icon
:
'none'
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
title
:
'电子签约已发送,请注意查收短信'
,
icon
:
'none'
})
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
500
)
}
})
})
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
500
)
},
},
// 计算尾款:尾款 = 评估价 - 定金
// 计算尾款:尾款 = 评估价 - 定金
calculateFinalPrice
()
{
calculateFinalPrice
()
{
...
@@ -919,6 +924,12 @@ export default {
...
@@ -919,6 +924,12 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
::v-deep
.sign-checkbox
.uni-checkbox-input.uni-checkbox-input-disabled
{
background-color
:
#8cb6ff
!important
;
&::before
{
color
:
#fff
;
}
}
.sign-info
{
.sign-info
{
position
:
relative
;
position
:
relative
;
width
:
100vw
;
width
:
100vw
;
...
@@ -927,9 +938,7 @@ export default {
...
@@ -927,9 +938,7 @@ export default {
background-size
:
100%
;
background-size
:
100%
;
padding
:
toRpx
(
160
)
toRpx
(
64
)
toRpx
(
48
);
padding
:
toRpx
(
160
)
toRpx
(
64
)
toRpx
(
48
);
box-sizing
:
border-box
;
box-sizing
:
border-box
;
::v-deep
.uni-checkbox
.uni-checkbox-input.uni-checkbox-input-disabled
{
background-color
:
#4673ff
!important
;
}
.detail-content
{
.detail-content
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
...
...
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