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 dacabcdd
authored
Oct 02, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复bug
1 parent
3028a257
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
177 additions
and
54 deletions
api/module/evaluation.js
assets/css/sprite.scss
assets/images/sprite.png
assets/spritesmith/seeIcon.png
env.js
init.js
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/FormCell.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/components/uploadMedia.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/index.vue
pages/evaluationForm/signInfo.vue
api/module/evaluation.js
View file @
dacabcd
...
...
@@ -221,5 +221,15 @@ module.exports = {
},
{
returnAll
:
true
}
)
},
/** 评估单简单详情 */
evalOrderSimpleDetail
(
data
)
{
return
gscPost
(
`/evalOrder/simpleDetail`
,
{
...
data
},
{
returnAll
:
true
}
)
}
}
assets/css/sprite.scss
View file @
dacabcd
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
dacabcd
2.79 MB
|
W:
|
H:
2.79 MB
|
W:
|
H:
2-up
Swipe
Onion skin
assets/spritesmith/seeIcon.png
View file @
dacabcd
736 Bytes
|
W:
|
H:
1.26 KB
|
W:
|
H:
2-up
Swipe
Onion skin
env.js
View file @
dacabcd
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
2
const
index
=
0
/**
*
0本地
...
...
@@ -49,7 +49,7 @@ const domain = {
}[
target
[
index
]]
const
djDomain
=
{
ip
:
'http
://192.168.1.221:5003
'
,
ip
:
'http
s://dj.test.glsx.com.cn
'
,
// ip: 'http://192.168.2.80:8558',
dev
:
'http://dj.dev.glsx.com.cn'
,
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
...
...
init.js
View file @
dacabcd
...
...
@@ -35,7 +35,7 @@ uni.$dbManager = new DBManager()
uni
.
$track
=
new
Track
()
console
.
log
(
'init.js'
,
HOST
[
'eva'
])
uni
.
signHttpConfig
=
{
baseURL
:
`
${
HOST
[
'eva'
]}
${
pathEnum
.
evaluation
}
`
,
baseURL
:
`
${
HOST
[
'eva'
]}
`
,
timeout
:
300000
,
appId
:
signSecretKey
.
appKey
,
appSecret
:
signSecretKey
.
secret
,
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
dacabcd
...
...
@@ -87,7 +87,7 @@
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
</
template
>
</GeneralPopup>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
@
confirm=
"confirmTips"
:noTitle=
"true"
>
<GeneralPopup
ref=
"tipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
:noTitle=
"true"
>
<
template
#
content
>
<view>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
...
...
@@ -99,7 +99,7 @@
</
template
>
</GeneralPopup>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
<GeneralPopup
ref=
"editTipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
@
confirm=
"confirmTips"
:noTitle=
"true"
>
<GeneralPopup
ref=
"editTipsPopup"
popupClass=
"tipsPopup"
type=
"center"
:showClose=
"true"
:showTitle=
"false"
:noTitle=
"true"
>
<
template
#
content
>
<view>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
...
...
@@ -192,7 +192,7 @@ export default {
exteriorColor
:
''
,
productionDate
:
''
,
guidePrice
:
0
,
buyNewCar
:
''
,
buyNewCar
:
0
,
hasAccident
:
0
,
overallRating
:
''
,
conditionDescription
:
''
...
...
@@ -387,12 +387,12 @@ export default {
showText
:
'shopMerchantName'
,
radioList
:
[
{
value
:
'
0
'
,
name
:
'
售前
'
value
:
'
1
'
,
name
:
'
是
'
},
{
value
:
'
1
'
,
name
:
'
售后
'
value
:
'
0
'
,
name
:
'
否
'
}
]
},
...
...
@@ -410,12 +410,12 @@ export default {
showText
:
'shopMerchantName'
,
radioList
:
[
{
value
:
'
0
'
,
name
:
'
售前
'
value
:
'
1
'
,
name
:
'
是
'
},
{
value
:
'
1
'
,
name
:
'
售后
'
value
:
'
0
'
,
name
:
'
否
'
}
]
},
...
...
@@ -602,8 +602,11 @@ export default {
let
selectedItem
// 为颜色字段添加特殊处理,使用name匹配
if
(
field
.
key
===
'exteriorColor'
||
field
.
key
===
'interiorColor'
)
{
console
.
log
(
that
.
formData
)
console
.
log
(
'targetValue'
,
targetValue
)
// 查找name匹配的选项
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
name
===
targetValue
)
console
.
log
(
'selectedItem'
,
selectedItem
)
}
else
{
// 其他字段继续使用value匹配
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
...
...
pages/evaluationForm/components/FormCell.vue
View file @
dacabcd
...
...
@@ -139,9 +139,9 @@ export default {
handleCell
(
field
)
{
this
.
$emit
(
'handleCell'
,
field
)
},
radioChange
(
e
)
{
radioChange
(
e
,
field
)
{
const
value
=
e
.
detail
.
value
this
.
$emit
(
'radioChange'
,
value
)
this
.
$emit
(
'radioChange'
,
value
,
field
)
},
bindPickerChange
(
e
,
field
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
)
...
...
@@ -173,7 +173,7 @@ export default {
},
handleBlur
(
e
,
field
)
{
console
.
log
(
'handleBlur'
,
e
,
field
)
let
value
=
e
.
target
.
_value
.
trim
()
||
e
.
detail
.
value
.
trim
()
let
value
=
e
.
target
?.
_value
?.
trim
()
||
e
.
target
?.
value
?
.
trim
()
if
(
field
.
targetObj
)
{
if
(
this
.
formData
[
field
.
targetObj
])
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
value
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
dacabcd
<!--针对弹窗穿透滚动,统一封装的popup-->
<
template
>
<page-meta
:page-style=
"'overflow:' + (show ? 'hidden' : 'visible')"
></page-meta>
<uni-popup
:class=
"['customPopup', popupClass, noTitle ? 'noTitle' : '']"
ref=
"publishPopup"
:type=
"type"
@
change=
"change"
:safe-area=
"safeArea"
:showClose=
"showClose"
>
<uni-popup
:class=
"['customPopup', popupClass, noTitle ? 'noTitle' : '']"
ref=
"publishPopup"
:type=
"type"
@
change=
"change"
:safe-area=
"safeArea"
:
is-mask-click=
"isMaskClick"
:
showClose=
"showClose"
>
<!-- 顶部标题栏插槽 -->
<slot
name=
"header"
>
<view
class=
"popup-top-box flex align-center"
v-if=
"showTitle"
>
...
...
@@ -36,7 +36,7 @@ export default {
},
isMaskClick
:
{
type
:
Boolean
,
default
:
tru
e
default
:
fals
e
},
safeArea
:
{
type
:
Boolean
,
...
...
pages/evaluationForm/components/uploadMedia.vue
View file @
dacabcd
...
...
@@ -123,7 +123,8 @@ export default {
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
uni
.
hideLoading
()
const
fileExtension
=
res
.
tempFiles
[
0
].
name
.
split
(
'.'
).
pop
().
toLowerCase
()
console
.
log
(
res
,
'上传所有选择的图片'
)
const
fileExtension
=
res
.
tempFiles
[
0
]?.
name
?
res
.
tempFiles
[
0
]?.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
:
res
.
tempFiles
[
0
]?.
path
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
name
:
field
.
label
})
}
}
catch
(
error
)
{
...
...
@@ -153,10 +154,11 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
})
// 上传所有选择的图片
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
console
.
log
(
res
,
'上传所有选择的图片'
)
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
uni
.
hideLoading
()
const
fileExtension
=
res
.
tempFiles
[
0
]
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
const
fileExtension
=
res
.
tempFiles
[
0
]
?.
name
?
res
.
tempFiles
[
0
]?.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
:
res
.
tempFiles
[
0
]?.
path
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
fileFormat
:
fileExtension
,
name
:
field
.
label
})
}
}
catch
(
error
)
{
...
...
@@ -181,11 +183,12 @@ export default {
maxDuration
:
field
.
maxDuration
||
60
,
camera
:
'back'
,
success
:
async
res
=>
{
console
.
log
(
'拍摄视频成功'
,
res
)
try
{
uni
.
showLoading
({
title
:
'上传中...'
})
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
const
fileExtension
=
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
const
fileExtension
=
res
.
name
?
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
:
res
.
tempFilePath
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
type
:
'video'
,
...
...
@@ -222,7 +225,7 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
})
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
const
fileExtension
=
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
const
fileExtension
=
res
.
name
?
res
.
name
.
split
(
'.'
).
pop
().
toLowerCase
()
:
res
.
tempFilePath
.
split
(
'.'
).
pop
().
toLowerCase
()
this
.
addMedia
(
field
,
{
url
,
type
:
'video'
,
...
...
pages/evaluationForm/confirmCar.vue
View file @
dacabcd
...
...
@@ -20,7 +20,7 @@
</view>
<view>
<view
class=
"flex align-center inputBox"
:class=
"
{ fullInput: field.fullInput }" v-if="field.key === 'carKeyUrl' || field.key === 'otherUrl'">
<input
type=
"
text"
v-model=
"formData[field.inputKey]"
placeholder=
"请输入
"
/>
<input
type=
"
number"
v-model=
"formData[field.inputKey]"
placeholder=
"请输入"
maxlength=
"1
"
/>
<text>
套
</text>
</view>
<view
class=
"upload-images-wrapper"
>
...
...
@@ -110,6 +110,7 @@ import GeneralPopup from './components/GeneralPopup.vue'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
dayjs
from
'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
max
}
from
'lodash'
export
default
{
components
:
{
FormCell
,
...
...
@@ -148,7 +149,8 @@ export default {
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'handoverAddress'
,
type
:
'input'
type
:
'input'
,
maxlength
:
100
},
{
key
:
'sellerUserId'
,
...
...
@@ -171,7 +173,7 @@ export default {
purchaseInvoiceUrl
:
''
,
trafficScreenshotUrl
:
''
,
carKeyUrl
:
''
,
carKeyCount
:
0
,
carKeyCount
:
''
,
trafficInsuranceUrl
:
''
,
insuranceCardUrl
:
''
,
transferPhotoUrl
:
''
,
...
...
@@ -217,6 +219,7 @@ export default {
methods
:
{
init
(
options
)
{
this
.
query
=
options
this
.
getEvalOrderSimpleDetail
()
},
backPage
()
{
this
.
$refs
.
notice
.
buttonsList
=
[
...
...
@@ -240,6 +243,21 @@ export default {
]
this
.
$refs
.
notice
.
open
()
},
async
getEvalOrderSimpleDetail
()
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderSimpleDetail
({
evalOrderNo
:
this
.
query
.
evalOrderNo
})
if
(
res
.
data
.
code
==
0
)
{
this
.
$set
(
this
.
formData
,
'handoverAddress'
,
res
.
data
.
data
.
evalCarBase
.
carProvinceName
+
'-'
+
res
.
data
.
data
.
evalCarBase
.
carCityName
)
// this.evalOrderSimpleDetail = res.data.data
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
data
.
msg
||
'请求失败'
,
icon
:
'none'
})
}
},
handleCell
(
field
)
{
console
.
log
(
'handleCell'
,
field
)
this
.
currentField
=
field
...
...
@@ -285,10 +303,18 @@ export default {
uni
.
showToast
({
title
:
'请输入交车地点'
,
icon
:
'none'
})
return
}
if
(
this
.
formData
.
carKeyCount
<=
0
)
{
uni
.
showToast
({
title
:
'请输入车钥匙数量'
,
icon
:
'none'
})
return
}
const
requiredUploadFields
=
this
.
uploadFields
.
filter
(
field
=>
field
.
required
)
for
(
const
field
of
requiredUploadFields
)
{
const
images
=
this
.
getImages
(
field
,
'upload'
)
if
(
field
.
key
===
'carKeyUrl'
)
{
uni
.
showToast
({
title
:
'请上车车钥匙图片'
,
icon
:
'none'
})
return
}
if
(
!
images
||
images
.
length
===
0
)
{
uni
.
showToast
({
title
:
`请上传
${
field
.
label
}
`
,
icon
:
'none'
})
return
...
...
@@ -300,11 +326,13 @@ export default {
// this.uploadedImages
Object
.
keys
(
this
.
uploadedImages
).
forEach
(
key
=>
{
console
.
log
(
this
.
uploadedImages
)
if
(
Array
.
isArray
(
this
.
uploadedImages
[
key
]))
{
// 将图片URL数组转换为逗号分隔的字符串
const
imagesStr
=
this
.
uploadedImages
[
key
].
join
(
','
)
// 更新formData中对应的字段
this
.
formData
[
key
]
=
imagesStr
console
.
log
(
'this.uploadedImages'
,
this
.
formData
)
}
})
const
res
=
await
uni
.
$api
.
evaluationApi
.
confirmDelivery
({
...
...
pages/evaluationForm/index.vue
View file @
dacabcd
...
...
@@ -17,7 +17,7 @@
<view>
暂无客户工单
</view>
</view>
</
template
>
<EvaluationCard
@
button-click=
"handleButtonClick"
v-for=
"(item, index) in dataList"
:key=
"index"
:carInfo=
"item"
@
toggle-goods-list=
"handleToggleGoodsList"
@
jump=
"jump"
@
refresh=
"search()"
:class=
"{ 'mb-40': index < dataList.length - 1 }"
></EvaluationCard>
<EvaluationCard
@
button-click=
"handleButtonClick"
v-for=
"(item, index) in dataList"
:key=
"index"
:carInfo=
"item"
@
refresh=
"search()"
:class=
"{ 'mb-40': index < dataList.length - 1 }"
></EvaluationCard>
</z-paging>
</view>
</view>
...
...
pages/evaluationForm/signInfo.vue
View file @
dacabcd
...
...
@@ -22,8 +22,8 @@
</label>
</radio-group>
</view>
<view
class=
"template-title flex"
@
click
.
stop=
"pdfPreview"
>
<view
class=
"sprite-icon icon-seeIcon"
></view>
<view
class=
"template-title flex
align-center
"
@
click
.
stop=
"pdfPreview"
>
<view
class=
"sprite-icon icon-seeIcon
mr-12
"
></view>
<text>
合同模板
</text>
</view>
</view>
...
...
@@ -32,8 +32,11 @@
<view
v-if=
"formData.paymentType"
class=
"fromBox"
>
<FormCell
:formFields=
"formFields"
:formData=
"formData"
@
handleCell=
"handleCell"
@
inputChange=
"handleInputChange"
@
inputInvalid=
"handleInputInvalid"
@
blurChange=
"blurChange"
/>
<view
class=
"upload-container mb-24"
>
<view
class=
"form-item flex align-center justify-between"
>
<view
class=
"from-label"
>
身份证正面
</view>
<view
class=
"form-item flex align-start justify-between"
>
<view
class=
"from-label"
>
身份证正面
<text
class=
"requiredLabel"
>
*
</text>
</view>
<template>
<!-- 判断是否已上传 -->
<view
v-if=
"formData.idCardFrontUrl"
class=
"uploaded-item"
>
...
...
@@ -51,8 +54,11 @@
</view>
</
template
>
</view>
<view
class=
"form-item flex align-center justify-between"
>
<view
class=
"from-label"
>
身份证背面
</view>
<view
class=
"form-item flex align-start justify-between"
>
<view
class=
"from-label"
>
身份证背面
<text
class=
"requiredLabel"
>
*
</text>
</view>
<
template
>
<view
v-if=
"formData.idCardBackUrl"
class=
"uploaded-item"
>
<image
:src=
"formData.idCardBackUrl"
mode=
"aspectFit"
></image>
...
...
@@ -69,7 +75,7 @@
</view>
<FormCell
:formFields=
"formFields2"
:formData=
"formData"
@
handleCell=
"handleCell"
/>
<view
class=
"upload-container"
>
<view
class=
"form-item flex align-
center
justify-between"
>
<view
class=
"form-item flex align-
start
justify-between"
>
<view
class=
"from-label"
>
身份证正面
</view>
<
template
>
<view
v-if=
"formData.payerIdCardFrontUrl"
class=
"uploaded-item"
>
...
...
@@ -84,7 +90,7 @@
</view>
</
template
>
</view>
<view
class=
"form-item flex align-
center
justify-between"
>
<view
class=
"form-item flex align-
start
justify-between"
>
<view
class=
"from-label"
>
身份证背面
</view>
<
template
>
<view
v-if=
"formData.payerIdCardBackUrl"
class=
"uploaded-item"
>
...
...
@@ -101,7 +107,7 @@
</view>
</view>
<view
class=
"upload-container"
>
<view
class=
"form-item flex align-
center
justify-between"
>
<view
class=
"form-item flex align-
start
justify-between"
>
<view
class=
"from-label"
>
银行卡
</view>
<
template
>
<view
v-if=
"formData.payerBankCardUrl"
class=
"uploaded-item"
>
...
...
@@ -130,7 +136,7 @@
<checkbox
class=
"sign-checkbox"
style=
"transform: scale(0.7)"
activeBackgroundColor=
"#4673FF"
iconColor=
"#fff"
:value=
"item.value"
:checked=
"item.checked"
:disabled=
"item.disabled"
/>
</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=
"
number"
maxlength=
"1
"
/>
</label>
</checkbox-group>
</
template
>
...
...
@@ -145,7 +151,7 @@
</view>
<view
class=
"footerBtn"
>
<view
class=
"btn cancle"
@
click
.
stop=
"backPage"
>
取消
</view>
<view
class=
"btn next"
@
click
.
stop=
"
comfirmPage = tru
e"
>
下一步
</view>
<view
class=
"btn next"
@
click
.
stop=
"
nextPag
e"
>
下一步
</view>
</view>
</view>
<view
class=
"box-class1 mt-16"
v-else
>
...
...
@@ -258,6 +264,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
dayjs
from
'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
max
}
from
'lodash'
export
default
{
components
:
{
FormCell
,
...
...
@@ -380,7 +387,7 @@ export default {
purchaseInvoice
:
''
,
trafficScreenshot
:
''
,
carKey
:
''
,
carKeyCount
:
2
,
carKeyCount
:
1
,
trafficInsurance
:
''
,
insuranceCard
:
''
,
transferPhoto
:
''
,
...
...
@@ -416,7 +423,8 @@ export default {
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
targetKey
:
'handoverAddress'
,
type
:
'input'
type
:
'input'
,
maxlength
:
100
}
],
formFields2
:
[
...
...
@@ -430,7 +438,8 @@ export default {
sourceKey
:
'uuid'
,
targetKey
:
'payeeName'
,
targetObj
:
''
,
type
:
'input'
type
:
'input'
,
maxlength
:
50
},
{
key
:
'bankCardNumber'
,
...
...
@@ -442,7 +451,8 @@ export default {
sourceKey
:
'uuid'
,
targetKey
:
'bankCardNumber'
,
targetObj
:
''
,
type
:
'input'
type
:
'input'
,
maxlength
:
25
},
{
key
:
'bankOfDeposit'
,
...
...
@@ -477,21 +487,33 @@ export default {
mounted
()
{
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
console
.
log
(
'userInfo'
,
this
.
userInfo
)
// 初始化表单数据
if
(
this
.
userInfo
)
{
this
.
formData
.
sellerMerchantName
=
this
.
userInfo
.
merchantName
||
''
this
.
formData
.
sellerName
=
this
.
userInfo
.
name
||
''
this
.
formData
.
sellerMerchantId
=
this
.
userInfo
.
merchantId
||
''
this
.
formData
.
sellerUserId
=
''
}
this
.
formData
.
evalPrice
=
this
.
query
.
evalPrice
this
.
getEvalOrderSimpleDetail
()
console
.
log
(
'formData'
,
this
.
formData
)
},
methods
:
{
init
(
options
)
{
this
.
query
=
options
},
async
getEvalOrderSimpleDetail
()
{
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderSimpleDetail
({
evalOrderNo
:
this
.
query
.
evalOrderNo
})
if
(
res
.
data
.
code
==
0
)
{
this
.
$set
(
this
.
formData
,
'partAName'
,
res
.
data
.
data
.
evalCarLicense
.
previousOwnerName
)
this
.
$set
(
this
.
formData
,
'payeeName'
,
res
.
data
.
data
.
evalCarLicense
.
previousOwnerName
)
this
.
$set
(
this
.
formData
,
'phone'
,
res
.
data
.
data
.
evalCarLicense
.
previousOwnerPhone
)
this
.
$set
(
this
.
formData
,
'address'
,
res
.
data
.
data
.
evalCarBase
.
carProvinceName
+
'-'
+
res
.
data
.
data
.
evalCarBase
.
carCityName
)
this
.
$set
(
this
.
formData
,
'handoverAddress'
,
res
.
data
.
data
.
evalCarBase
.
carProvinceName
+
'-'
+
res
.
data
.
data
.
evalCarBase
.
carCityName
)
// this.evalOrderSimpleDetail = res.data.data
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
data
.
msg
||
'请求失败'
,
icon
:
'none'
})
}
},
calendarChange
(
date
)
{
this
.
selectDate
=
date
.
year
+
'-'
+
date
.
month
+
'-'
+
date
.
date
},
...
...
@@ -554,7 +576,7 @@ export default {
{
key
:
'finalPrice'
,
label
:
'尾款金额'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
...
...
@@ -569,7 +591,7 @@ export default {
{
key
:
'evalPrice'
,
label
:
'评估价'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
...
...
@@ -643,7 +665,7 @@ export default {
{
key
:
'fullPrice'
,
label
:
'全款金额'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
...
...
@@ -656,7 +678,7 @@ export default {
{
key
:
'evalPrice'
,
label
:
'评估价'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
...
...
@@ -853,6 +875,63 @@ export default {
]
this
.
$refs
.
notice
.
open
()
},
nextPage
()
{
if
(
!
this
.
formData
.
paymentType
)
{
uni
.
showToast
({
title
:
'请选择合同类型'
,
icon
:
'none'
})
return
}
const
formFieldsRequired
=
this
.
formFields
.
filter
(
field
=>
field
.
required
)
for
(
const
field
of
formFieldsRequired
)
{
const
value
=
this
.
formData
[
field
.
targetKey
]
if
(
!
value
||
value
===
0
||
value
===
'0'
)
{
uni
.
showToast
({
title
:
`请填写
${
field
.
label
}
`
,
icon
:
'none'
})
return
}
}
const
formFields1Required
=
this
.
formFields1
.
filter
(
field
=>
field
.
required
)
for
(
const
field
of
formFields1Required
)
{
const
value
=
this
.
formData
[
field
.
targetKey
]
if
(
!
value
)
{
uni
.
showToast
({
title
:
`请填写
${
field
.
label
}
`
,
icon
:
'none'
})
return
}
}
const
formFields2Required
=
this
.
formFields2
.
filter
(
field
=>
field
.
required
)
for
(
const
field
of
formFields2Required
)
{
const
value
=
this
.
formData
[
field
.
targetKey
]
if
(
!
value
)
{
uni
.
showToast
({
title
:
`请填写
${
field
.
label
}
`
,
icon
:
'none'
})
return
}
}
if
(
!
this
.
formData
.
idCardFrontUrl
)
{
uni
.
showToast
({
title
:
'请上传身份证正面照片'
,
icon
:
'none'
})
return
}
if
(
!
this
.
formData
.
idCardBackUrl
)
{
uni
.
showToast
({
title
:
'请上传身份证反面照片'
,
icon
:
'none'
})
return
}
this
.
comfirmPage
=
true
},
comfirm
()
{
console
.
log
(
'this.formData'
,
this
.
formData
)
if
(
this
.
formData
.
paymentType
==
2
)
{
...
...
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