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 9640b2f4
authored
Oct 02, 2025
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.0.0-1014' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.0.0-1014
2 parents
ce437761
38f5fa34
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
573 additions
and
340 deletions
api/module/evaluation.js
api/request/signHttp.js
assets/images/common/sign-no-data.png
init.js
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/ButtonModule.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/components/evaluationCard.vue
pages/evaluationForm/components/pdfPreView.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/index.vue
pages/evaluationForm/signInfo.vue
api/module/evaluation.js
View file @
9640b2f
...
@@ -3,129 +3,223 @@ import { gscPost } from '../request/signHttp'
...
@@ -3,129 +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
)
{
return
gscPost
(
`/evalOrder/viewOnlineContract`
,
{
...
data
},
{
returnAll
:
true
}
)
}
}
}
}
api/request/signHttp.js
View file @
9640b2f
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 @
9640b2f
47.4 KB
|
W:
|
H:
50.8 KB
|
W:
|
H:
2-up
Swipe
Onion skin
init.js
View file @
9640b2f
...
@@ -68,6 +68,11 @@ uni.signHttpConfig = {
...
@@ -68,6 +68,11 @@ uni.signHttpConfig = {
},
},
error
:
(
error
,
config
)
=>
{
error
:
(
error
,
config
)
=>
{
console
.
log
(
'error事件触发'
,
error
,
config
)
console
.
log
(
'error事件触发'
,
error
,
config
)
uni
.
hideLoading
()
uni
.
showToast
({
title
:
error
.
msg
||
'请求失败'
,
icon
:
'none'
})
return
Promise
.
reject
(
error
)
return
Promise
.
reject
(
error
)
},
},
logout
:
config
=>
{
logout
:
config
=>
{
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
9640b2f
...
@@ -145,42 +145,42 @@ export default {
...
@@ -145,42 +145,42 @@ export default {
isExistSamePlate
:
false
,
isExistSamePlate
:
false
,
formData
:
{
formData
:
{
evalOrderBasicReqDTO
:
{
evalOrderBasicReqDTO
:
{
sellerUserId
:
'
S10001
'
,
sellerUserId
:
''
,
sellerName
:
'
李四
'
,
sellerName
:
''
,
sellerMerchantId
:
3001
,
sellerMerchantId
:
''
,
sellerMerchantName
:
'
园区店002
'
sellerMerchantName
:
''
},
},
carBaseReqDTO
:
{
carBaseReqDTO
:
{
carBrandId
:
101
,
carBrandId
:
''
,
carBrand
:
'
大众
'
,
carBrand
:
''
,
carChildsBrandId
:
201
,
carChildsBrandId
:
''
,
carChildsBrandName
:
'
上汽大众
'
,
carChildsBrandName
:
''
,
carSeriesId
:
301
,
carSeriesId
:
''
,
carSeriesName
:
'
帕萨特
'
,
carSeriesName
:
''
,
carTypeId
:
401
,
carTypeId
:
''
,
carTypeName
:
'
帕萨特2020款 330TSI
'
,
carTypeName
:
''
,
vin
:
''
,
vin
:
''
,
licensePlate
:
'
苏21920012
'
,
licensePlate
:
''
,
engineNumber
:
'
ENG20250922
'
,
engineNumber
:
''
,
registrationDate
:
'
2020-05-01
'
,
registrationDate
:
''
,
registrationProvinceId
:
32
,
registrationProvinceId
:
''
,
registrationProvinceName
:
'
江苏省
'
,
registrationProvinceName
:
''
,
registrationCityId
:
3201
,
registrationCityId
:
''
,
registrationCityName
:
'
南京市
'
,
registrationCityName
:
''
,
carProvinceId
:
32
,
carProvinceId
:
''
,
carProvinceName
:
'
江苏省
'
,
carProvinceName
:
''
,
carCityId
:
3201
,
carCityId
:
''
,
carCityName
:
'
南京市
'
,
carCityName
:
''
,
mileage
:
3500
0
,
mileage
:
0
,
usageType
:
1
,
usageType
:
1
,
ownerType
:
1
,
ownerType
:
1
,
sunroof
:
2
,
sunroof
:
2
,
vehicleCategory
:
1
,
vehicleCategory
:
1
,
emissionStandard
:
6
,
emissionStandard
:
6
,
interiorColor
:
'
黑色
'
,
interiorColor
:
''
,
exteriorColor
:
'
黑色
'
,
exteriorColor
:
''
,
productionDate
:
''
,
productionDate
:
''
,
guidePrice
:
23000
0
,
guidePrice
:
0
,
buyNewCar
:
1
,
buyNewCar
:
1
,
hasAccident
:
0
,
hasAccident
:
0
,
overallRating
:
'1'
,
overallRating
:
'1'
,
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
commercialInsuranceExpiry
:
''
,
commercialInsuranceExpiry
:
''
,
previousOwnerName
:
''
,
previousOwnerName
:
''
,
previousOwnerAddress
:
''
,
previousOwnerAddress
:
''
,
previousOwnerPhone
:
'
13059281290
'
previousOwnerPhone
:
''
},
},
imageList
:
[]
imageList
:
[]
},
},
...
@@ -310,25 +310,25 @@ export default {
...
@@ -310,25 +310,25 @@ export default {
targetNameKey
:
'exteriorColorName'
,
targetNameKey
:
'exteriorColorName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'
sellerUserId
'
,
targetKey
:
'
exteriorColor
'
,
targetObj
:
'
evalOrderBasic
ReqDTO'
,
targetObj
:
'
carBase
ReqDTO'
,
type
:
'pricek'
,
type
:
'pricek'
,
showText
:
'shopMerchantName'
,
showText
:
'shopMerchantName'
,
fieldPickerArray
:
[
fieldPickerArray
:
[
{
name
:
'黑色'
,
value
:
'1'
},
{
name
:
'黑色'
,
value
:
'1'
},
{
name
:
'白色'
,
value
:
'2'
},
{
name
:
'白色'
,
value
:
'2'
},
{
name
:
'银色'
,
value
:
'
2
'
},
{
name
:
'银色'
,
value
:
'
3
'
},
{
name
:
'灰色'
,
value
:
'
2
'
},
{
name
:
'灰色'
,
value
:
'
4
'
},
{
name
:
'红色'
,
value
:
'
2
'
},
{
name
:
'红色'
,
value
:
'
5
'
},
{
name
:
'蓝色'
,
value
:
'
2
'
},
{
name
:
'蓝色'
,
value
:
'
6
'
},
{
name
:
'绿色'
,
value
:
'
2
'
},
{
name
:
'绿色'
,
value
:
'
7
'
},
{
name
:
'棕色'
,
value
:
'
2
'
},
{
name
:
'棕色'
,
value
:
'
8
'
},
{
name
:
'金色'
,
value
:
'
2
'
},
{
name
:
'金色'
,
value
:
'
9
'
},
{
name
:
'橙色'
,
value
:
'
2
'
},
{
name
:
'橙色'
,
value
:
'
10
'
},
{
name
:
'紫色'
,
value
:
'
2
'
},
{
name
:
'紫色'
,
value
:
'
11
'
},
{
name
:
'黄色'
,
value
:
'2'
},
{
name
:
'黄色'
,
value
:
'
1
2'
},
{
name
:
'香槟色'
,
value
:
'
2
'
},
{
name
:
'香槟色'
,
value
:
'
13
'
},
{
name
:
'其他'
,
value
:
'
2
'
}
{
name
:
'其他'
,
value
:
'
14
'
}
]
]
},
},
{
{
...
@@ -339,25 +339,25 @@ export default {
...
@@ -339,25 +339,25 @@ export default {
targetNameKey
:
'interiorColorName'
,
targetNameKey
:
'interiorColorName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'
sellerUserId
'
,
targetKey
:
'
interiorColor
'
,
targetObj
:
'
evalOrderBasic
ReqDTO'
,
targetObj
:
'
carBase
ReqDTO'
,
type
:
'pricek'
,
type
:
'pricek'
,
showText
:
'shopMerchantName'
,
showText
:
'shopMerchantName'
,
fieldPickerArray
:
[
fieldPickerArray
:
[
{
name
:
'黑色'
,
value
:
'1'
},
{
name
:
'黑色'
,
value
:
'1'
},
{
name
:
'白色'
,
value
:
'2'
},
{
name
:
'白色'
,
value
:
'2'
},
{
name
:
'银色'
,
value
:
'
2
'
},
{
name
:
'银色'
,
value
:
'
3
'
},
{
name
:
'灰色'
,
value
:
'
2
'
},
{
name
:
'灰色'
,
value
:
'
4
'
},
{
name
:
'红色'
,
value
:
'
2
'
},
{
name
:
'红色'
,
value
:
'
5
'
},
{
name
:
'蓝色'
,
value
:
'
2
'
},
{
name
:
'蓝色'
,
value
:
'
6
'
},
{
name
:
'绿色'
,
value
:
'
2
'
},
{
name
:
'绿色'
,
value
:
'
7
'
},
{
name
:
'棕色'
,
value
:
'
2
'
},
{
name
:
'棕色'
,
value
:
'
8
'
},
{
name
:
'金色'
,
value
:
'
2
'
},
{
name
:
'金色'
,
value
:
'
9
'
},
{
name
:
'橙色'
,
value
:
'
2
'
},
{
name
:
'橙色'
,
value
:
'
10
'
},
{
name
:
'紫色'
,
value
:
'
2
'
},
{
name
:
'紫色'
,
value
:
'
11
'
},
{
name
:
'黄色'
,
value
:
'2'
},
{
name
:
'黄色'
,
value
:
'
1
2'
},
{
name
:
'香槟色'
,
value
:
'
2
'
},
{
name
:
'香槟色'
,
value
:
'
13
'
},
{
name
:
'其他'
,
value
:
'
2
'
}
{
name
:
'其他'
,
value
:
'
14
'
}
]
]
},
},
{
key
:
'productionDate'
,
label
:
'生产日期'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'productionDate'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'calendar'
},
{
key
:
'productionDate'
,
label
:
'生产日期'
,
required
:
true
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'productionDate'
,
targetObj
:
'carBaseReqDTO'
,
type
:
'calendar'
},
...
@@ -501,13 +501,6 @@ export default {
...
@@ -501,13 +501,6 @@ export default {
this
.
getDetail
(
this
.
query
.
evalOrderNo
)
this
.
getDetail
(
this
.
query
.
evalOrderNo
)
}
}
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
console
.
log
(
'userInfo'
,
this
.
userInfo
)
Object
.
assign
(
this
.
formData
.
evalOrderBasicReqDTO
,
{
sellerMerchantName
:
userInfo
.
merchantName
,
sellerName
:
userInfo
.
name
,
sellerMerchantId
:
userInfo
.
merchantId
,
sellerUserId
:
userInfo
.
uuid
})
uni
.
$track
.
add
({
eventCode
:
'app_add_evaluation_from'
})
uni
.
$track
.
add
({
eventCode
:
'app_add_evaluation_from'
})
},
},
methods
:
{
methods
:
{
...
@@ -547,64 +540,74 @@ export default {
...
@@ -547,64 +540,74 @@ 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
.
formData
.
evalOrderBasicReqDTO
=
{
...
basic
}
const
{
basic
=
{},
carInfo
=
{},
carLicense
=
{},
images
=
{}
}
=
res
.
data
.
data
that
.
formData
.
carBaseReqDTO
=
{
...
carInfo
}
that
.
formData
.
evalOrderBasicReqDTO
=
{
...
basic
}
that
.
formData
.
carLicenseReqDTO
=
{
...
carLicense
}
that
.
formData
.
carBaseReqDTO
=
{
...
carInfo
}
that
.
formData
.
imageList
=
[...
images
]
that
.
formData
.
carLicenseReqDTO
=
{
...
carLicense
}
that
.
formData
.
evalOrderNo
=
evalOrderNo
that
.
formData
.
imageList
=
[...
images
]
that
.
formData
.
evalOrderNo
=
evalOrderNo
that
.
formImagesData
=
{}
that
.
certificateImagesData
=
{}
that
.
formImagesData
=
{}
that
.
carVideoData
=
{}
that
.
certificateImagesData
=
{}
that
.
otherImagesData
=
{}
that
.
carVideoData
=
{}
that
.
otherImagesData
=
{}
// 根据 fileType 和 fileSubtype 分类存放图片
images
.
forEach
(
image
=>
{
// 根据 fileType 和 fileSubtype 分类存放图片
const
{
fileType
,
fileSubtype
,
fileUrl
}
=
image
images
.
forEach
(
image
=>
{
const
imageItem
=
{
url
:
fileUrl
}
const
{
fileType
,
fileSubtype
,
fileUrl
}
=
image
const
imageItem
=
{
url
:
fileUrl
}
// 根据 fileType 决定存放到哪个数据结构
let
targetData
=
null
// 根据 fileType 决定存放到哪个数据结构
switch
(
fileType
)
{
let
targetData
=
null
case
1
:
// 车辆图片
switch
(
fileType
)
{
targetData
=
that
.
formImagesData
case
1
:
// 车辆图片
break
targetData
=
that
.
formImagesData
case
2
:
// 证件资料
break
targetData
=
that
.
certificateImagesData
case
2
:
// 证件资料
break
targetData
=
that
.
certificateImagesData
case
3
:
// 车辆视频
break
targetData
=
that
.
carVideoData
case
3
:
// 车辆视频
break
targetData
=
that
.
carVideoData
case
4
:
// 其他图片
break
targetData
=
that
.
otherImagesData
case
4
:
// 其他图片
break
targetData
=
that
.
otherImagesData
default
:
break
return
default
:
}
return
}
// 根据 fileSubtype 组织数据
// 根据 fileSubtype 组织数据
if
(
!
targetData
[
fileSubtype
])
{
if
(
!
targetData
[
fileSubtype
])
{
targetData
[
fileSubtype
]
=
[]
targetData
[
fileSubtype
]
=
[]
}
}
targetData
[
fileSubtype
].
push
(
imageItem
)
targetData
[
fileSubtype
].
push
(
imageItem
)
})
})
that
.
formFields
.
forEach
(
field
=>
{
that
.
formFields
.
forEach
(
field
=>
{
if
(
field
.
fieldPickerArray
&&
field
.
targetObj
&&
field
.
targetKey
&&
field
.
targetNameKey
)
{
if
(
field
.
fieldPickerArray
&&
field
.
targetObj
&&
field
.
targetKey
&&
field
.
targetNameKey
)
{
const
targetValue
=
that
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
const
targetValue
=
that
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
console
.
log
(
'targetValue:'
,
targetValue
)
if
(
targetValue
!==
undefined
&&
targetValue
!==
null
&&
targetValue
!==
''
)
{
if
(
targetValue
!==
undefined
&&
targetValue
!==
null
&&
targetValue
!==
''
)
{
let
selectedItem
// 查找fieldPickerArray中对应的值
// 为颜色字段添加特殊处理,使用name匹配
const
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
if
(
field
.
key
===
'exteriorColor'
||
field
.
key
===
'interiorColor'
)
{
console
.
log
(
'selectedItem:'
,
selectedItem
)
// 查找name匹配的选项
if
(
selectedItem
)
{
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
name
===
targetValue
)
// 设置显示名称
}
else
{
that
.
$set
(
that
.
formData
[
field
.
targetObj
],
field
.
targetNameKey
,
selectedItem
.
name
)
// 其他字段继续使用value匹配
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
}
if
(
selectedItem
)
{
// 设置显示名称
that
.
$set
(
that
.
formData
[
field
.
targetObj
],
field
.
targetNameKey
,
selectedItem
.
name
)
// 同时确保值也正确设置,以便表单提交时使用正确的值
that
.
$set
(
that
.
formData
[
field
.
targetObj
],
field
.
targetKey
,
selectedItem
.
value
)
}
}
}
}
}
}
}
)
}
)
}
})
})
},
},
...
@@ -634,7 +637,7 @@ export default {
...
@@ -634,7 +637,7 @@ export default {
// 车架号验证 - 长度17且只能包含数字和大写字母
// 车架号验证 - 长度17且只能包含数字和大写字母
const
vin
=
this
.
formData
.
carBaseReqDTO
.
vin
const
vin
=
this
.
formData
.
carBaseReqDTO
.
vin
const
vinRegex
=
/^
[
A-Z0-9
]
{17}
$/
const
vinRegex
=
/^
[
A-Z0-9
]
+
$/
if
(
!
vinRegex
.
test
(
vin
))
{
if
(
!
vinRegex
.
test
(
vin
))
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -782,7 +785,7 @@ export default {
...
@@ -782,7 +785,7 @@ export default {
},
},
pickerChange
(
index
,
field
)
{
pickerChange
(
index
,
field
)
{
console
.
log
(
'pickerChange'
,
index
,
field
)
console
.
log
(
'pickerChange'
,
index
,
field
)
this
.
$set
(
this
.
formData
[
field
.
targetObj
],
field
.
targetKey
,
field
.
fieldPickerArray
[
index
].
value
)
this
.
$set
(
this
.
formData
[
field
.
targetObj
],
field
.
targetKey
,
field
.
key
==
'exteriorColor'
||
field
.
key
==
'interiorColor'
?
field
.
fieldPickerArray
[
index
].
name
:
field
.
fieldPickerArray
[
index
].
value
)
this
.
$set
(
this
.
formData
[
field
.
targetObj
],
field
.
targetNameKey
,
field
.
fieldPickerArray
[
index
].
name
)
this
.
$set
(
this
.
formData
[
field
.
targetObj
],
field
.
targetNameKey
,
field
.
fieldPickerArray
[
index
].
name
)
console
.
log
(
'pickerChange'
,
this
.
formData
)
console
.
log
(
'pickerChange'
,
this
.
formData
)
},
},
...
@@ -802,21 +805,32 @@ export default {
...
@@ -802,21 +805,32 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
if
(
res
.
result
==
1
)
{
if
(
res
.
data
.
code
==
0
)
{
this
.
isExistSamePlate
=
true
if
(
res
.
data
.
data
.
result
==
1
)
{
this
.
$refs
.
tipsPopup
this
.
isExistSamePlate
=
true
.
open
()
this
.
$refs
.
tipsPopup
.
then
(()
=>
{
.
open
()
uni
.
navigateTo
({
.
then
(()
=>
{
url
:
'/pages/evaluationForm/addEvaluationFrom?type=edit'
+
'&evalOrderNo='
+
res
.
evalOrderNo
uni
.
navigateTo
({
url
:
'/pages/evaluationForm/addEvaluationFrom?type=edit'
+
'&evalOrderNo='
+
res
.
data
.
data
.
evalOrderNo
})
})
.
catch
(()
=>
{
console
.
log
(
'用户点击了取消'
)
})
}
else
if
(
res
.
data
.
data
.
result
==
2
)
{
this
.
isExistSamePlate
=
false
this
.
$refs
.
tipsPopup
.
open
()
.
then
(()
=>
{
uni
.
navigateTo
({
url
:
'/pages/evaluationForm/evaluationFormDetails?evalOrderNo='
+
res
.
data
.
data
.
evalOrderNo
})
})
})
})
.
catch
(()
=>
{
.
catch
(()
=>
{
console
.
log
(
'用户点击了取消'
)
console
.
log
(
'用户点击了取消'
)
})
})
}
}
else
if
(
res
.
result
==
2
)
{
this
.
isExistSamePlate
=
false
this
.
$refs
.
tipsPopup
.
open
()
}
}
})
})
}
}
...
@@ -959,11 +973,11 @@ export default {
...
@@ -959,11 +973,11 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
if
(
res
.
status
==
1
)
{
if
(
res
.
data
.
data
.
status
==
1
)
{
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
vin
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
data
.
data
.
vin
uni
.
hideLoading
()
uni
.
hideLoading
()
}
else
{
}
else
{
uni
.
showToast
({
title
:
res
.
errorMessage
,
icon
:
'none'
})
uni
.
showToast
({
title
:
res
.
data
.
data
.
errorMessage
,
icon
:
'none'
})
uni
.
hideLoading
()
uni
.
hideLoading
()
}
}
})
})
...
@@ -980,16 +994,18 @@ export default {
...
@@ -980,16 +994,18 @@ export default {
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
status
==
1
)
{
if
(
res
.
data
.
data
.
status
==
1
)
{
this
.
formData
.
carBaseReqDTO
.
engineNumber
=
res
.
engineNumber
this
.
formData
.
carBaseReqDTO
.
engineNumber
=
res
.
data
.
data
.
engineNumber
this
.
formData
.
carBaseReqDTO
.
licensePlate
=
res
.
licensePlate
this
.
formData
.
carBaseReqDTO
.
licensePlate
=
res
.
data
.
data
.
licensePlate
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
vin
this
.
formData
.
carBaseReqDTO
.
vin
=
res
.
data
.
data
.
vin
this
.
formData
.
carBaseReqDTO
.
registrationDate
=
res
.
registrationDate
this
.
formData
.
carBaseReqDTO
.
registrationDate
=
res
.
data
.
data
.
registrationDate
this
.
formData
.
carLicenseReqDTO
.
previousOwnerAddress
=
res
.
previousOwnerAddress
this
.
formData
.
carLicenseReqDTO
.
previousOwnerAddress
=
res
.
data
.
data
.
previousOwnerAddress
this
.
formData
.
carLicenseReqDTO
.
previousOwnerName
=
res
.
previousOwnerName
this
.
formData
.
carLicenseReqDTO
.
previousOwnerName
=
res
.
data
.
data
.
previousOwnerName
this
.
formData
.
carLicenseReqDTO
.
carSeriesName
=
res
.
data
.
data
.
carSeriesName
this
.
formData
.
carLicenseReqDTO
.
carTypeName
=
res
.
data
.
data
.
carTypeName
}
else
{
}
else
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
errorMessage
,
icon
:
'none'
})
uni
.
showToast
({
title
:
res
.
data
.
data
.
errorMessage
,
icon
:
'none'
})
}
}
})
})
},
},
...
@@ -1039,27 +1055,31 @@ export default {
...
@@ -1039,27 +1055,31 @@ export default {
if
(
this
.
query
.
type
===
'add'
)
{
if
(
this
.
query
.
type
===
'add'
)
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
)
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
)
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
title
:
'新增成功'
,
title
:
'新增成功'
,
icon
:
'none'
icon
:
'none'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
backPage
()
uni
.
navigateBack
({
delta
:
1
})
},
300
)
},
300
)
}
}
}
else
if
(
this
.
query
.
type
===
'edit'
)
{
}
else
if
(
this
.
query
.
type
===
'edit'
)
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderUpdate
(
this
.
formData
)
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderUpdate
(
this
.
formData
)
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
uni
.
showToast
({
title
:
'编辑成功'
,
title
:
'编辑成功'
,
icon
:
'none'
icon
:
'none'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
backPage
()
uni
.
navigateBack
({
delta
:
1
})
},
300
)
},
300
)
}
}
}
}
...
@@ -1164,6 +1184,9 @@ export default {
...
@@ -1164,6 +1184,9 @@ export default {
// 否则直接赋值到formData
// 否则直接赋值到formData
setValue
(
this
.
formData
,
key
,
chooseContent
[
key
]
||
chooseContent
)
setValue
(
this
.
formData
,
key
,
chooseContent
[
key
]
||
chooseContent
)
}
}
console
.
log
(
this
.
userInfo
)
this
.
$set
(
this
.
formData
.
evalOrderBasicReqDTO
,
'sellerMerchantId'
,
this
.
userInfo
.
shopMerchantId
||
''
)
this
.
$set
(
this
.
formData
.
evalOrderBasicReqDTO
,
'sellerMerchantName'
,
this
.
userInfo
.
shopMerchantName
||
''
)
console
.
log
(
'formData'
,
this
.
formData
)
console
.
log
(
'formData'
,
this
.
formData
)
...
...
pages/evaluationForm/components/ButtonModule.vue
View file @
9640b2f
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<view
v-if=
"subStatus == 2 || subStatus == 3"
class=
"common-btn gray-btn ml-24"
@
click=
"handleClick('paying')"
>
支付中
</view>
<view
v-if=
"subStatus == 2 || subStatus == 3"
class=
"common-btn gray-btn ml-24"
@
click=
"handleClick('paying')"
>
支付中
</view>
<view
v-if=
"status == 40 && !subStatus && paymentType == 1"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('payFull')"
>
支付尾款
</view>
<view
v-if=
"status == 40 && !subStatus && paymentType == 1"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('payFull')"
>
支付尾款
</view>
<view
v-if=
"status == 50 && !subStatus"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('confirmDelivery')"
>
确认交车
</view>
<view
v-if=
"status == 50 && !subStatus"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('confirmDelivery')"
>
确认交车
</view>
<view
v-if=
"status ==
1
"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('reSubmit')"
>
重新提交
</view>
<view
v-if=
"status ==
'-1'
"
class=
"common-btn blue-btn ml-24"
@
click=
"handleClick('reSubmit')"
>
重新提交
</view>
</div>
</div>
</
template
>
</
template
>
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
9640b2f
...
@@ -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/components/evaluationCard.vue
View file @
9640b2f
...
@@ -45,7 +45,8 @@
...
@@ -45,7 +45,8 @@
<text
class=
"common-label"
>
评估价格
</text>
<text
class=
"common-label"
>
评估价格
</text>
<view
class=
"price ml-16"
:class=
"
{ 'text-blue': carInfo.evalPriceDisplay
&&
carInfo.status != 10 }">
<view
class=
"price ml-16"
:class=
"
{ 'text-blue': carInfo.evalPriceDisplay
&&
carInfo.status != 10 }">
{{
carInfo
.
status
==
10
?
'评估中'
:
carInfo
.
evalPriceDisplay
}}
{{
carInfo
.
status
==
10
?
'评估中'
:
carInfo
.
evalPriceDisplay
}}
<text
v-if=
"carInfo.evalPriceDisplay && carInfo.status != 10"
class=
"text-gray"
>
(定金:
{{
carInfo
.
depositPrice
}}
元 | 尾款:
{{
carInfo
.
finalPrice
}}
元)
</text>
<text
v-if=
"carInfo.paymentType == 1 && carInfo.status != 10"
class=
"text-gray"
>
(定金:
{{
carInfo
.
depositPrice
}}
元 | 尾款:
{{
carInfo
.
finalPrice
}}
元)
</text>
<text
v-if=
"carInfo.paymentType == 2 && carInfo.status != 10"
class=
"text-gray"
>
(全款:
{{
carInfo
.
evalPrice
}}
元 )
</text>
</view>
</view>
</view>
</view>
<ButtonModule
@
button-click=
"$emit('button-click',
{ ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType">
</ButtonModule>
<ButtonModule
@
button-click=
"$emit('button-click',
{ ...$event, ...carInfo })" :status="carInfo.status" :subStatus="carInfo.subStatus" :paymentType="carInfo.paymentType">
</ButtonModule>
...
...
pages/evaluationForm/components/pdfPreView.vue
View file @
9640b2f
...
@@ -22,14 +22,18 @@ export default {
...
@@ -22,14 +22,18 @@ export default {
return
{
return
{
url
:
''
,
url
:
''
,
title
:
''
,
title
:
''
,
fileType
:
'pdf'
fileType
:
'pdf'
,
Signature
:
true
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
)
console
.
log
(
options
)
this
.
fileType
=
options
.
fileType
||
'pdf'
this
.
fileType
=
options
.
fileType
||
'pdf'
this
.
Signature
=
options
.
Signature
===
'false'
?
false
:
(
options
.
Signature
||
true
);
if
(
this
.
fileType
===
'docx'
)
{
if
(
this
.
fileType
===
'docx'
)
{
this
.
url
=
options
.
fileUrl
this
.
url
=
options
.
fileUrl
}
else
if
(
!
this
.
Signature
)
{
this
.
url
=
options
.
fileUrl
}
else
{
}
else
{
this
.
url
=
options
.
fileUrl
+
'&OSSAccessKeyId='
+
options
.
OSSAccessKeyId
+
'&Signature='
+
options
.
Signature
this
.
url
=
options
.
fileUrl
+
'&OSSAccessKeyId='
+
options
.
OSSAccessKeyId
+
'&Signature='
+
options
.
Signature
}
}
...
...
pages/evaluationForm/confirmCar.vue
View file @
9640b2f
...
@@ -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
)
{
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 @
9640b2f
...
@@ -128,7 +128,7 @@
...
@@ -128,7 +128,7 @@
</StepperNavigation>
</StepperNavigation>
</view>
</view>
<view
v-else-if=
"activeTab === 4"
>
<view
v-else-if=
"activeTab === 4"
>
<view
class=
"mb-32 upload-box"
>
<view
class=
"mb-32 upload-box"
v-if=
"detailsInfo.signingInfo.saleContract"
>
<view
class=
"tab-panel-title"
>
车辆买卖协议
</view>
<view
class=
"tab-panel-title"
>
车辆买卖协议
</view>
<view
class=
"gridBoxNoPadding"
>
<view
class=
"gridBoxNoPadding"
>
<view
v-for=
"(item, index) in vehicleItems"
:key=
"index"
:class=
"['flex align-start', { 'full-width': item.fullWidth }]"
>
<view
v-for=
"(item, index) in vehicleItems"
:key=
"index"
:class=
"['flex align-start', { 'full-width': item.fullWidth }]"
>
...
@@ -136,7 +136,7 @@
...
@@ -136,7 +136,7 @@
<view
v-if=
"item.type == 'image'"
>
<view
v-if=
"item.type == 'image'"
>
<image
:src=
"formatValue(item, detailsInfo)"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 1)"
></image>
<image
:src=
"formatValue(item, detailsInfo)"
@
click
.
stop=
"previewMedia(formatValue(item, detailsInfo), 1)"
></image>
</view>
</view>
<view
v-else-if=
"item.type == 'link'"
class=
"flex-1"
>
<view
v-else-if=
"item.type == 'link'"
class=
"flex-1"
@
click
.
stop=
"pdfPreview(detailsInfo.signingInfo.saleContract.contractNo)"
>
<view
class=
"pdf-box flex align-center justify-between"
>
<view
class=
"pdf-box flex align-center justify-between"
>
<view
class=
"flex align-center"
>
<view
class=
"flex align-center"
>
<view
class=
"sprite-icon icon-pdf"
></view>
<view
class=
"sprite-icon icon-pdf"
></view>
...
@@ -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
)
{
...
@@ -605,6 +606,22 @@ export default {
...
@@ -605,6 +606,22 @@ export default {
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`
${
url
}
`
url
:
`
${
url
}
`
})
})
},
pdfPreview
(
contractNo
)
{
uni
.
$api
.
evaluationApi
.
viewOnlineContract
({
contractNo
:
contractNo
})
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
// 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'
const
url
=
`/pages/evaluationForm/components/pdfPreView?fileUrl=
${
res
.
data
.
data
.
contractUrl
}
&title=pdf&fileType=pdf&Signature=false`
uni
.
navigateTo
({
url
:
`
${
url
}
`
})
}
})
}
}
}
}
}
}
...
...
pages/evaluationForm/index.vue
View file @
9640b2f
...
@@ -31,7 +31,11 @@
...
@@ -31,7 +31,11 @@
客户意向报价
客户意向报价
<text
class=
"requiredLabel"
>
*
</text>
<text
class=
"requiredLabel"
>
*
</text>
</view>
</view>
<input
class=
"intention-input mb-48"
type=
"number"
maxlength=
"6"
placeholder=
"请输入"
v-model=
"requoteObj.customerTargetPrice"
/>
<view
class=
"flex align-center intention-input-cell mb-48"
>
<input
class=
"flex-1"
type=
"number"
maxlength=
"6"
placeholder=
"请输入"
v-model=
"requoteObj.customerTargetPrice"
/>
<text>
元
</text>
</view>
<view
class=
"requote-label mb-24"
>
<view
class=
"requote-label mb-24"
>
客户意向报价
客户意向报价
<text
class=
"requiredLabel"
>
*
</text>
<text
class=
"requiredLabel"
>
*
</text>
...
@@ -106,11 +110,11 @@
...
@@ -106,11 +110,11 @@
<text
class=
"amount-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
'定金'
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'尾款'
:
'全款'
}}
金额
</text>
<text
class=
"amount-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
'定金'
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'尾款'
:
'全款'
}}
金额
</text>
<text
class=
"amount-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
finalPrice
:
payPopupObj
.
evalPrice
}}
元
</text>
<text
class=
"amount-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
!=
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
finalPrice
:
payPopupObj
.
evalPrice
}}
元
</text>
</view>
</view>
<view
class=
"flex align-center mt-28 mb-16"
>
<view
class=
"flex align-center mt-28 mb-16"
v-if=
"payPopupObj.paymentType == 1"
>
<text
class=
"popup-cell-title light-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'已支付定金'
:
'待支付尾款'
}}
</text>
<text
class=
"popup-cell-title light-title"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
'已支付定金'
:
'待支付尾款'
}}
</text>
<text
class=
"popup-cell-value light-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
finalPrice
}}
元
</text>
<text
class=
"popup-cell-value light-value"
>
{{
payPopupObj
.
paymentType
==
1
&&
payPopupObj
.
status
==
40
?
payPopupObj
.
depositPrice
:
payPopupObj
.
finalPrice
}}
元
</text>
</view>
</view>
<view
class=
"flex align-center mb-40"
>
<view
class=
"flex align-center mb-40"
:class=
"payPopupObj.paymentType == 2 ? 'mt-28' : ''"
>
<text
class=
"popup-cell-title"
>
评估价
</text>
<text
class=
"popup-cell-title"
>
评估价
</text>
<text
class=
"popup-cell-value"
>
{{
payPopupObj
.
evalPrice
}}
元
</text>
<text
class=
"popup-cell-value"
>
{{
payPopupObj
.
evalPrice
}}
元
</text>
</view>
</view>
...
@@ -129,7 +133,7 @@
...
@@ -129,7 +133,7 @@
</view>
</view>
</
template
>
</
template
>
</GeneralPopup>
</GeneralPopup>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
@
confirm=
"confirmTips"
>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
@
confirm=
"confirmTips"
:noTitle=
"true"
>
<
template
#
content
>
<
template
#
content
>
<view>
<view>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
...
@@ -261,10 +265,10 @@ export default {
...
@@ -261,10 +265,10 @@ export default {
currentPage
:
pageNo
,
currentPage
:
pageNo
,
pageSize
:
10
pageSize
:
10
})
})
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
// this.dataList = res.records
// this.dataList = res.records
this
.
$refs
.
paging
.
complete
(
res
.
records
)
this
.
$refs
.
paging
.
complete
(
res
.
data
.
data
.
records
)
}
else
{
}
else
{
this
.
$refs
.
paging
.
complete
(
false
)
this
.
$refs
.
paging
.
complete
(
false
)
console
.
log
(
err
)
console
.
log
(
err
)
...
@@ -282,11 +286,13 @@ export default {
...
@@ -282,11 +286,13 @@ export default {
})
})
.
then
(
res
=>
{
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
console
.
log
(
'res:'
,
res
)
this
.
typeList
.
forEach
(
item
=>
{
if
(
res
.
data
.
code
==
0
)
{
item
.
count
=
res
[
item
.
keyNum
]
||
0
this
.
typeList
.
forEach
(
item
=>
{
})
item
.
count
=
res
.
data
.
data
[
item
.
keyNum
]
||
0
// this.$set(this.typeList, item.count, res[item.keyNum])
})
console
.
log
(
'this.typeList:'
,
this
.
typeList
)
// this.$set(this.typeList, item.count, res[item.keyNum])
console
.
log
(
'this.typeList:'
,
this
.
typeList
)
}
})
})
},
},
addEvaluationForm
(
e
)
{
addEvaluationForm
(
e
)
{
...
@@ -317,6 +323,21 @@ export default {
...
@@ -317,6 +323,21 @@ export default {
this
.
amountRequestedPopupTitle
=
e
.
status
==
40
&&
e
.
paymentType
==
1
?
'申请尾款支付'
:
'申请全款支付'
this
.
amountRequestedPopupTitle
=
e
.
status
==
40
&&
e
.
paymentType
==
1
?
'申请尾款支付'
:
'申请全款支付'
}
else
if
(
e
.
type
===
'details'
)
{
}
else
if
(
e
.
type
===
'details'
)
{
this
.
jumpToDetails
(
e
)
this
.
jumpToDetails
(
e
)
}
else
if
(
e
.
type
===
'reSubmit'
)
{
this
.
reSubmit
(
e
)
}
},
async
reSubmit
(
e
)
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderConfirmVehicleDelivery
({
evalOrderNo
:
e
.
evalOrderNo
})
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
title
:
'重新提交成功'
,
icon
:
'none'
})
this
.
currentPage
=
1
this
.
search
()
}
}
},
},
jumpToDetails
(
e
)
{
jumpToDetails
(
e
)
{
...
@@ -327,54 +348,61 @@ export default {
...
@@ -327,54 +348,61 @@ export default {
async
amountRequested
(
e
)
{
async
amountRequested
(
e
)
{
const
that
=
this
const
that
=
this
const
contractDetail
=
await
uni
.
$api
.
evaluationApi
.
getContractDetail
({
const
res
=
await
uni
.
$api
.
evaluationApi
.
getContractDetail
({
contractNo
:
e
.
saleContractNo
contractNo
:
e
.
saleContractNo
})
})
console
.
log
(
'res:'
,
contractDetail
)
if
(
res
.
data
.
code
==
0
)
{
this
.
payPopupObj
=
{
...
that
.
payPopupObj
,
...
JSON
.
parse
(
contractDetail
.
electronicContractField
),
...
e
}
const
contractDetail
=
res
.
data
.
data
that
.
$refs
.
amountRequestedPopup
.
open
().
then
(
async
()
=>
{
console
.
log
(
'res:'
,
contractDetail
)
if
(
e
.
type
==
'payDeposit'
)
{
this
.
payPopupObj
=
{
...
that
.
payPopupObj
,
...
JSON
.
parse
(
contractDetail
.
electronicContractField
),
...
e
}
await
uni
.
$api
.
evaluationApi
.
payDepositApplication
({
that
.
$refs
.
amountRequestedPopup
.
open
().
then
(
async
()
=>
{
evalOrderNo
:
e
.
evalOrderNo
if
(
e
.
type
==
'payDeposit'
)
{
})
const
res
=
await
uni
.
$api
.
evaluationApi
.
payDepositApplication
({
uni
.
showToast
({
title
:
'定金已申请,请等待付款审批'
,
icon
:
'none'
})
that
.
currentPage
=
1
that
.
search
()
}
else
{
uni
.
$api
.
evaluationApi
.
checkSignAgreement
({
evalOrderNo
:
e
.
evalOrderNo
evalOrderNo
:
e
.
evalOrderNo
})
})
.
then
(
async
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
console
.
log
(
'res:'
,
res
)
uni
.
showToast
({
if
(
!
res
.
false
)
{
title
:
'定金已申请,请等待付款审批'
,
that
.
$refs
.
signAgreementPopup
.
open
().
then
(()
=>
{
icon
:
'none'
uni
.
$api
.
evaluationApi
.
sendCustodyAgreement
({
...
that
.
signAgreementObj
,
evalOrderNo
:
e
.
evalOrderNo
}).
then
(
res
=>
{
})
if
(
res
)
{
that
.
currentPage
=
1
uni
.
showToast
({
that
.
search
()
title
:
'代保管协议已发送'
,
}
icon
:
'none'
}
else
{
})
uni
.
$api
.
evaluationApi
that
.
currentPage
=
1
.
checkSignAgreement
({
that
.
search
()
evalOrderNo
:
e
.
evalOrderNo
}
})
.
then
(
async
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
!
res
.
false
)
{
that
.
$refs
.
signAgreementPopup
.
open
().
then
(()
=>
{
uni
.
$api
.
evaluationApi
.
sendCustodyAgreement
({
...
that
.
signAgreementObj
,
evalOrderNo
:
e
.
evalOrderNo
}).
then
(
res
=>
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
title
:
'代保管协议已发送'
,
icon
:
'none'
})
that
.
currentPage
=
1
that
.
search
()
}
})
})
})
})
}
else
{
}
else
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
signAgreement
({
await
uni
.
$api
.
evaluationApi
.
signAgreement
({
evalOrderNo
:
e
.
evalOrderNo
evalOrderNo
:
e
.
evalOrderNo
})
})
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
e
.
status
==
40
&&
e
.
paymentType
==
1
?
'尾款款项已申请,完成代保管协议电子签约后将安排支付尾款'
:
'全款款项已申请,完成代保管协议电子签约后将安排支付全款'
,
title
:
e
.
status
==
40
&&
e
.
paymentType
==
1
?
'尾款款项已申请,完成代保管协议电子签约后将安排支付尾款'
:
'全款款项已申请,完成代保管协议电子签约后将安排支付全款'
,
icon
:
'none'
icon
:
'none'
})
})
}
}
})
}
}
})
})
}
})
}
},
},
confirmDelivery
(
e
)
{
confirmDelivery
(
e
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
...
@@ -410,7 +438,7 @@ export default {
...
@@ -410,7 +438,7 @@ export default {
return
return
}
}
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderOwnerReQuote
(
this
.
requoteObj
)
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderOwnerReQuote
(
this
.
requoteObj
)
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'重新报价成功'
,
title
:
'重新报价成功'
,
icon
:
'none'
icon
:
'none'
...
@@ -423,11 +451,18 @@ export default {
...
@@ -423,11 +451,18 @@ export default {
cancelSign
(
e
)
{
cancelSign
(
e
)
{
this
.
cancelSignObj
.
evalOrderNo
=
e
.
evalOrderNo
this
.
cancelSignObj
.
evalOrderNo
=
e
.
evalOrderNo
this
.
$refs
.
cancleSignPopup
.
open
().
then
(()
=>
{
this
.
$refs
.
cancleSignPopup
.
open
().
then
(()
=>
{
if
(
!
this
.
cancelSignObj
.
cancelReason
)
{
uni
.
showToast
({
title
:
'请输入取消签约原因'
,
icon
:
'none'
})
return
}
this
.
$refs
.
tipsPopup
this
.
$refs
.
tipsPopup
.
open
()
.
open
()
.
then
(()
=>
{
.
then
(()
=>
{
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderCancelContract
(
this
.
cancelSignObj
)
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderCancelContract
(
this
.
cancelSignObj
)
if
(
res
)
{
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'取消签约成功'
,
title
:
'取消签约成功'
,
icon
:
'none'
icon
:
'none'
...
@@ -445,11 +480,29 @@ export default {
...
@@ -445,11 +480,29 @@ export default {
this
.
$refs
.
orderPopup
.
open
()
this
.
$refs
.
orderPopup
.
open
()
},
},
async
addSignAgreement
()
{
async
addSignAgreement
()
{
if
(
!
this
.
addSignAgreementObj
.
custodianName
)
{
uni
.
showToast
({
title
:
'请输入签约保管人'
,
icon
:
'none'
})
return
Promise
.
reject
()
}
if
(
!
this
.
addSignAgreementObj
.
custodianIdentityCode
)
{
uni
.
showToast
({
title
:
'请输入身份证号'
,
icon
:
'none'
})
return
Promise
.
reject
()
}
if
(
!
this
.
addSignAgreementObj
.
custodianPhone
)
{
uni
.
showToast
({
title
:
'请输入手机号'
,
icon
:
'none'
})
return
Promise
.
reject
()
}
if
(
!
this
.
addSignAgreementObj
.
custodianAddress
)
{
uni
.
showToast
({
title
:
'请输入地址'
,
icon
:
'none'
})
return
Promise
.
reject
()
}
this
.
$refs
.
addSignAgreementPopup
.
open
().
then
(()
=>
{
this
.
$refs
.
addSignAgreementPopup
.
open
().
then
(()
=>
{
uni
.
$api
.
evaluationApi
.
addCustodyAgreement
(
this
.
addSignAgreementObj
).
then
(
res
=>
{
uni
.
$api
.
evaluationApi
.
addCustodyAgreement
(
this
.
addSignAgreementObj
).
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
this
.
currentPage
=
1
console
.
log
(
'res:'
,
res
)
this
.
search
()
this
.
currentPage
=
1
this
.
search
()
}
})
})
})
})
},
},
...
@@ -462,6 +515,37 @@ export default {
...
@@ -462,6 +515,37 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
::v-deep
.tipsPopup
.uni-popup__wrapper
{
width
:
toRpx
(
848
);
border-radius
:
toRpx
(
42
);
background
:
rgb
(
255
,
255
,
255
)
!important
;
.tipsPopupBg
{
border-radius
:
toRpx
(
42
)
toRpx
(
42
)
0
0
;
width
:
100%
;
height
:
toRpx
(
244
);
}
.title
{
color
:
#333333
;
font-size
:
toRpx
(
40
);
font-weight
:
500
;
text-align
:
center
;
margin-top
:
toRpx
(
48
);
}
.tipsConent
{
color
:
#666666
;
font-size
:
toRpx
(
32
);
font-weight
:
400
;
padding
:
toRpx
(
16
)
toRpx
(
64
);
line-height
:
toRpx
(
48
);
text
{
color
:
#347bff
;
}
}
.footer-box
{
height
:
toRpx
(
154
);
}
}
.evaluation-form-list
{
.evaluation-form-list
{
position
:
relative
;
position
:
relative
;
width
:
100vw
;
width
:
100vw
;
...
@@ -574,6 +658,13 @@ export default {
...
@@ -574,6 +658,13 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
}
}
.intention-input-cell
{
height
:
toRpx
(
96
);
border-radius
:
toRpx
(
16
);
background
:
#f4f5f7
;
padding
:
toRpx
(
24
);
box-sizing
:
border-box
;
}
::v-deep
.feedback-textarea
{
::v-deep
.feedback-textarea
{
height
:
toRpx
(
288
);
height
:
toRpx
(
288
);
border-radius
:
toRpx
(
16
);
border-radius
:
toRpx
(
16
);
...
...
pages/evaluationForm/signInfo.vue
View file @
9640b2f
...
@@ -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"
/>
...
@@ -380,7 +380,7 @@ export default {
...
@@ -380,7 +380,7 @@ export default {
purchaseInvoice
:
''
,
purchaseInvoice
:
''
,
trafficScreenshot
:
''
,
trafficScreenshot
:
''
,
carKey
:
''
,
carKey
:
''
,
carKeyCount
:
0
,
carKeyCount
:
2
,
trafficInsurance
:
''
,
trafficInsurance
:
''
,
insuranceCard
:
''
,
insuranceCard
:
''
,
transferPhoto
:
''
,
transferPhoto
:
''
,
...
@@ -465,16 +465,10 @@ export default {
...
@@ -465,16 +465,10 @@ export default {
// 监听定金变化,自动计算尾款
// 监听定金变化,自动计算尾款
'formData.depositPrice'
:
{
'formData.depositPrice'
:
{
handler
(
newValue
)
{
handler
(
newValue
)
{
console
.
log
(
newValue
)
this
.
calculateFinalPrice
()
this
.
calculateFinalPrice
()
},
},
immediate
:
true
immediate
:
true
},
// 监听尾款变化,自动计算定金
'formData.finalPrice'
:
{
handler
(
newValue
)
{
this
.
calculateDepositPrice
()
},
immediate
:
true
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -631,6 +625,8 @@ export default {
...
@@ -631,6 +625,8 @@ export default {
}
}
]
]
if
(
value
===
1
)
{
if
(
value
===
1
)
{
this
.
formData
.
finalPrice
=
0
this
.
formData
.
depositPrice
=
0
// 定金+尾款模式
// 定金+尾款模式
// 如果之前有填写全款金额,则将其分配给定金和尾款
// 如果之前有填写全款金额,则将其分配给定金和尾款
if
(
this
.
formData
.
fullPrice
>
0
)
{
if
(
this
.
formData
.
fullPrice
>
0
)
{
...
@@ -642,6 +638,7 @@ export default {
...
@@ -642,6 +638,7 @@ export default {
this
.
formData
.
fullPrice
=
this
.
query
.
evalPrice
this
.
formData
.
fullPrice
=
this
.
query
.
evalPrice
}
}
}
else
if
(
value
===
2
)
{
}
else
if
(
value
===
2
)
{
console
.
log
(
'this.formData'
,
this
.
formData
)
this
.
formFields
=
[
this
.
formFields
=
[
{
{
key
:
'fullPrice'
,
key
:
'fullPrice'
,
...
@@ -715,11 +712,6 @@ export default {
...
@@ -715,11 +712,6 @@ export default {
}
}
]
]
// 全款模式
// 如果之前有填写定金和尾款,则计算总和作为全款金额
if
(
this
.
formData
.
depositPrice
>
0
||
this
.
formData
.
finalPrice
>
0
)
{
this
.
formData
.
fullPrice
=
parseInt
(
this
.
formData
.
depositPrice
||
0
)
+
parseInt
(
this
.
formData
.
finalPrice
||
0
)
}
// 确保评估价已设置
// 确保评估价已设置
if
(
this
.
query
.
evalPrice
&&
!
this
.
formData
.
fullPrice
)
{
if
(
this
.
query
.
evalPrice
&&
!
this
.
formData
.
fullPrice
)
{
this
.
formData
.
fullPrice
=
this
.
query
.
evalPrice
this
.
formData
.
fullPrice
=
this
.
query
.
evalPrice
...
@@ -862,17 +854,28 @@ export default {
...
@@ -862,17 +854,28 @@ export default {
this
.
$refs
.
notice
.
open
()
this
.
$refs
.
notice
.
open
()
},
},
comfirm
()
{
comfirm
()
{
uni
.
$api
.
evaluationApi
.
evalOrderSignContract
({
...
this
.
formData
,
evalOrderNo
:
this
.
query
.
evalOrderNo
})
console
.
log
(
'this.formData'
,
this
.
formData
)
uni
.
showToast
({
if
(
this
.
formData
.
paymentType
==
2
)
{
title
:
'电子签约已发送,请注意查收短信'
,
delete
this
.
formData
.
depositPrice
icon
:
'none'
delete
this
.
formData
.
finalPrice
}
const
res
=
uni
.
$api
.
evaluationApi
.
evalOrderSignContract
({
...
this
.
formData
,
evalOrderNo
:
this
.
query
.
evalOrderNo
})
res
.
then
(
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
uni
.
showToast
({
title
:
'电子签约已发送,请注意查收短信'
,
icon
:
'none'
})
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
500
)
}
})
})
setTimeout
(()
=>
{
uni
.
navigateBack
()
},
500
)
},
},
// 计算尾款:尾款 = 评估价 - 定金
// 计算尾款:尾款 = 评估价 - 定金
calculateFinalPrice
()
{
calculateFinalPrice
()
{
console
.
log
(
' 计算尾款:尾款 = 评估价 - 定金'
,
this
.
formData
)
const
depositPrice
=
parseFloat
(
this
.
formData
.
depositPrice
)
||
0
const
depositPrice
=
parseFloat
(
this
.
formData
.
depositPrice
)
||
0
const
evalPrice
=
parseFloat
(
this
.
formData
.
evalPrice
)
||
0
const
evalPrice
=
parseFloat
(
this
.
formData
.
evalPrice
)
||
0
const
finalPrice
=
evalPrice
-
depositPrice
const
finalPrice
=
evalPrice
-
depositPrice
...
@@ -890,25 +893,7 @@ export default {
...
@@ -890,25 +893,7 @@ export default {
})
})
}
}
},
},
// 计算定金:定金 = 评估价 - 尾款
calculateDepositPrice
()
{
const
finalPrice
=
parseFloat
(
this
.
formData
.
finalPrice
)
||
0
const
evalPrice
=
parseFloat
(
this
.
formData
.
evalPrice
)
||
0
const
depositPrice
=
evalPrice
-
finalPrice
// 确保定金不为负数
if
(
depositPrice
>=
0
)
{
this
.
formData
.
depositPrice
=
depositPrice
}
else
{
// 尾款不能大于评估价
this
.
formData
.
finalPrice
=
evalPrice
this
.
formData
.
depositPrice
=
0
uni
.
showToast
({
title
:
'尾款不能大于评估价'
,
icon
:
'none'
})
}
},
// 处理输入事件
// 处理输入事件
handleInputChange
(
e
,
field
)
{
handleInputChange
(
e
,
field
)
{
const
value
=
e
.
detail
.
value
const
value
=
e
.
detail
.
value
...
@@ -939,6 +924,12 @@ export default {
...
@@ -939,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
;
...
@@ -947,9 +938,7 @@ export default {
...
@@ -947,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