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
Show 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 = {
...
@@ -221,5 +221,15 @@ module.exports = {
},
},
{
returnAll
:
true
}
{
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
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
2
const
index
=
0
/**
/**
*
*
0本地
0本地
...
@@ -49,7 +49,7 @@ const domain = {
...
@@ -49,7 +49,7 @@ const domain = {
}[
target
[
index
]]
}[
target
[
index
]]
const
djDomain
=
{
const
djDomain
=
{
ip
:
'http
://192.168.1.221:5003
'
,
ip
:
'http
s://dj.test.glsx.com.cn
'
,
// ip: 'http://192.168.2.80:8558',
// ip: 'http://192.168.2.80:8558',
dev
:
'http://dj.dev.glsx.com.cn'
,
dev
:
'http://dj.dev.glsx.com.cn'
,
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
beta
:
'https://dj.beta.glsx.com.cn'
,
//预发布 appid: wx9f91c1ec493eb425
...
...
init.js
View file @
dacabcd
...
@@ -35,7 +35,7 @@ uni.$dbManager = new DBManager()
...
@@ -35,7 +35,7 @@ uni.$dbManager = new DBManager()
uni
.
$track
=
new
Track
()
uni
.
$track
=
new
Track
()
console
.
log
(
'init.js'
,
HOST
[
'eva'
])
console
.
log
(
'init.js'
,
HOST
[
'eva'
])
uni
.
signHttpConfig
=
{
uni
.
signHttpConfig
=
{
baseURL
:
`
${
HOST
[
'eva'
]}
${
pathEnum
.
evaluation
}
`
,
baseURL
:
`
${
HOST
[
'eva'
]}
`
,
timeout
:
300000
,
timeout
:
300000
,
appId
:
signSecretKey
.
appKey
,
appId
:
signSecretKey
.
appKey
,
appSecret
:
signSecretKey
.
secret
,
appSecret
:
signSecretKey
.
secret
,
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
dacabcd
...
@@ -87,7 +87,7 @@
...
@@ -87,7 +87,7 @@
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
<uni-calendar
class=
"calendar"
:showMonth=
"false"
@
change=
"calendarChange"
/>
</
template
>
</
template
>
</GeneralPopup>
</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
>
<
template
#
content
>
<view>
<view>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
...
@@ -99,7 +99,7 @@
...
@@ -99,7 +99,7 @@
</
template
>
</
template
>
</GeneralPopup>
</GeneralPopup>
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
<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
>
<
template
#
content
>
<view>
<view>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
<image
class=
"tipsPopupBg"
:src=
"bg"
/>
...
@@ -192,7 +192,7 @@ export default {
...
@@ -192,7 +192,7 @@ export default {
exteriorColor
:
''
,
exteriorColor
:
''
,
productionDate
:
''
,
productionDate
:
''
,
guidePrice
:
0
,
guidePrice
:
0
,
buyNewCar
:
''
,
buyNewCar
:
0
,
hasAccident
:
0
,
hasAccident
:
0
,
overallRating
:
''
,
overallRating
:
''
,
conditionDescription
:
''
conditionDescription
:
''
...
@@ -387,12 +387,12 @@ export default {
...
@@ -387,12 +387,12 @@ export default {
showText
:
'shopMerchantName'
,
showText
:
'shopMerchantName'
,
radioList
:
[
radioList
:
[
{
{
value
:
'
0
'
,
value
:
'
1
'
,
name
:
'
售前
'
name
:
'
是
'
},
},
{
{
value
:
'
1
'
,
value
:
'
0
'
,
name
:
'
售后
'
name
:
'
否
'
}
}
]
]
},
},
...
@@ -410,12 +410,12 @@ export default {
...
@@ -410,12 +410,12 @@ export default {
showText
:
'shopMerchantName'
,
showText
:
'shopMerchantName'
,
radioList
:
[
radioList
:
[
{
{
value
:
'
0
'
,
value
:
'
1
'
,
name
:
'
售前
'
name
:
'
是
'
},
},
{
{
value
:
'
1
'
,
value
:
'
0
'
,
name
:
'
售后
'
name
:
'
否
'
}
}
]
]
},
},
...
@@ -602,8 +602,11 @@ export default {
...
@@ -602,8 +602,11 @@ export default {
let
selectedItem
let
selectedItem
// 为颜色字段添加特殊处理,使用name匹配
// 为颜色字段添加特殊处理,使用name匹配
if
(
field
.
key
===
'exteriorColor'
||
field
.
key
===
'interiorColor'
)
{
if
(
field
.
key
===
'exteriorColor'
||
field
.
key
===
'interiorColor'
)
{
console
.
log
(
that
.
formData
)
console
.
log
(
'targetValue'
,
targetValue
)
// 查找name匹配的选项
// 查找name匹配的选项
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
name
===
targetValue
)
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
name
===
targetValue
)
console
.
log
(
'selectedItem'
,
selectedItem
)
}
else
{
}
else
{
// 其他字段继续使用value匹配
// 其他字段继续使用value匹配
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
selectedItem
=
field
.
fieldPickerArray
.
find
(
item
=>
item
.
value
===
targetValue
.
toString
())
...
...
pages/evaluationForm/components/FormCell.vue
View file @
dacabcd
...
@@ -139,9 +139,9 @@ export default {
...
@@ -139,9 +139,9 @@ export default {
handleCell
(
field
)
{
handleCell
(
field
)
{
this
.
$emit
(
'handleCell'
,
field
)
this
.
$emit
(
'handleCell'
,
field
)
},
},
radioChange
(
e
)
{
radioChange
(
e
,
field
)
{
const
value
=
e
.
detail
.
value
const
value
=
e
.
detail
.
value
this
.
$emit
(
'radioChange'
,
value
)
this
.
$emit
(
'radioChange'
,
value
,
field
)
},
},
bindPickerChange
(
e
,
field
)
{
bindPickerChange
(
e
,
field
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
)
console
.
log
(
'picker发送选择改变,携带值为'
,
e
)
...
@@ -173,7 +173,7 @@ export default {
...
@@ -173,7 +173,7 @@ export default {
},
},
handleBlur
(
e
,
field
)
{
handleBlur
(
e
,
field
)
{
console
.
log
(
'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
(
field
.
targetObj
)
{
if
(
this
.
formData
[
field
.
targetObj
])
{
if
(
this
.
formData
[
field
.
targetObj
])
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
value
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
value
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
dacabcd
<!--针对弹窗穿透滚动,统一封装的popup-->
<!--针对弹窗穿透滚动,统一封装的popup-->
<
template
>
<
template
>
<page-meta
:page-style=
"'overflow:' + (show ? 'hidden' : 'visible')"
></page-meta>
<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"
>
<slot
name=
"header"
>
<view
class=
"popup-top-box flex align-center"
v-if=
"showTitle"
>
<view
class=
"popup-top-box flex align-center"
v-if=
"showTitle"
>
...
@@ -36,7 +36,7 @@ export default {
...
@@ -36,7 +36,7 @@ export default {
},
},
isMaskClick
:
{
isMaskClick
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
tru
e
default
:
fals
e
},
},
safeArea
:
{
safeArea
:
{
type
:
Boolean
,
type
:
Boolean
,
...
...
pages/evaluationForm/components/uploadMedia.vue
View file @
dacabcd
...
@@ -123,7 +123,8 @@ export default {
...
@@ -123,7 +123,8 @@ export default {
const
url
=
await
uploadFile
(
tempFilePath
)
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
console
.
log
(
'上传图片成功'
,
url
)
uni
.
hideLoading
()
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
})
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
name
:
field
.
label
})
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -153,10 +154,11 @@ export default {
...
@@ -153,10 +154,11 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
})
uni
.
showLoading
({
title
:
'上传中...'
})
// 上传所有选择的图片
// 上传所有选择的图片
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
for
(
const
tempFilePath
of
res
.
tempFilePaths
)
{
console
.
log
(
res
,
'上传所有选择的图片'
)
const
url
=
await
uploadFile
(
tempFilePath
)
const
url
=
await
uploadFile
(
tempFilePath
)
console
.
log
(
'上传图片成功'
,
url
)
console
.
log
(
'上传图片成功'
,
url
)
uni
.
hideLoading
()
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
})
this
.
addMedia
(
field
,
{
url
,
fileFormat
:
fileExtension
,
type
:
'image'
,
fileFormat
:
fileExtension
,
name
:
field
.
label
})
}
}
}
catch
(
error
)
{
}
catch
(
error
)
{
...
@@ -181,11 +183,12 @@ export default {
...
@@ -181,11 +183,12 @@ export default {
maxDuration
:
field
.
maxDuration
||
60
,
maxDuration
:
field
.
maxDuration
||
60
,
camera
:
'back'
,
camera
:
'back'
,
success
:
async
res
=>
{
success
:
async
res
=>
{
console
.
log
(
'拍摄视频成功'
,
res
)
try
{
try
{
uni
.
showLoading
({
title
:
'上传中...'
})
uni
.
showLoading
({
title
:
'上传中...'
})
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
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
,
{
this
.
addMedia
(
field
,
{
url
,
url
,
type
:
'video'
,
type
:
'video'
,
...
@@ -222,7 +225,7 @@ export default {
...
@@ -222,7 +225,7 @@ export default {
uni
.
showLoading
({
title
:
'上传中...'
})
uni
.
showLoading
({
title
:
'上传中...'
})
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
const
url
=
await
uploadFile
(
res
.
tempFilePath
)
console
.
log
(
'上传视频成功'
,
url
)
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
,
{
this
.
addMedia
(
field
,
{
url
,
url
,
type
:
'video'
,
type
:
'video'
,
...
...
pages/evaluationForm/confirmCar.vue
View file @
dacabcd
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
</view>
</view>
<view>
<view>
<view
class=
"flex align-center inputBox"
:class=
"
{ fullInput: field.fullInput }" v-if="field.key === 'carKeyUrl' || field.key === 'otherUrl'">
<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>
<text>
套
</text>
</view>
</view>
<view
class=
"upload-images-wrapper"
>
<view
class=
"upload-images-wrapper"
>
...
@@ -110,6 +110,7 @@ import GeneralPopup from './components/GeneralPopup.vue'
...
@@ -110,6 +110,7 @@ import GeneralPopup from './components/GeneralPopup.vue'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
max
}
from
'lodash'
export
default
{
export
default
{
components
:
{
components
:
{
FormCell
,
FormCell
,
...
@@ -148,7 +149,8 @@ export default {
...
@@ -148,7 +149,8 @@ export default {
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'handoverAddress'
,
targetKey
:
'handoverAddress'
,
type
:
'input'
type
:
'input'
,
maxlength
:
100
},
},
{
{
key
:
'sellerUserId'
,
key
:
'sellerUserId'
,
...
@@ -171,7 +173,7 @@ export default {
...
@@ -171,7 +173,7 @@ export default {
purchaseInvoiceUrl
:
''
,
purchaseInvoiceUrl
:
''
,
trafficScreenshotUrl
:
''
,
trafficScreenshotUrl
:
''
,
carKeyUrl
:
''
,
carKeyUrl
:
''
,
carKeyCount
:
0
,
carKeyCount
:
''
,
trafficInsuranceUrl
:
''
,
trafficInsuranceUrl
:
''
,
insuranceCardUrl
:
''
,
insuranceCardUrl
:
''
,
transferPhotoUrl
:
''
,
transferPhotoUrl
:
''
,
...
@@ -217,6 +219,7 @@ export default {
...
@@ -217,6 +219,7 @@ export default {
methods
:
{
methods
:
{
init
(
options
)
{
init
(
options
)
{
this
.
query
=
options
this
.
query
=
options
this
.
getEvalOrderSimpleDetail
()
},
},
backPage
()
{
backPage
()
{
this
.
$refs
.
notice
.
buttonsList
=
[
this
.
$refs
.
notice
.
buttonsList
=
[
...
@@ -240,6 +243,21 @@ export default {
...
@@ -240,6 +243,21 @@ export default {
]
]
this
.
$refs
.
notice
.
open
()
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
)
{
handleCell
(
field
)
{
console
.
log
(
'handleCell'
,
field
)
console
.
log
(
'handleCell'
,
field
)
this
.
currentField
=
field
this
.
currentField
=
field
...
@@ -285,10 +303,18 @@ export default {
...
@@ -285,10 +303,18 @@ export default {
uni
.
showToast
({
title
:
'请输入交车地点'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'请输入交车地点'
,
icon
:
'none'
})
return
return
}
}
if
(
this
.
formData
.
carKeyCount
<=
0
)
{
uni
.
showToast
({
title
:
'请输入车钥匙数量'
,
icon
:
'none'
})
return
}
const
requiredUploadFields
=
this
.
uploadFields
.
filter
(
field
=>
field
.
required
)
const
requiredUploadFields
=
this
.
uploadFields
.
filter
(
field
=>
field
.
required
)
for
(
const
field
of
requiredUploadFields
)
{
for
(
const
field
of
requiredUploadFields
)
{
const
images
=
this
.
getImages
(
field
,
'upload'
)
const
images
=
this
.
getImages
(
field
,
'upload'
)
if
(
field
.
key
===
'carKeyUrl'
)
{
uni
.
showToast
({
title
:
'请上车车钥匙图片'
,
icon
:
'none'
})
return
}
if
(
!
images
||
images
.
length
===
0
)
{
if
(
!
images
||
images
.
length
===
0
)
{
uni
.
showToast
({
title
:
`请上传
${
field
.
label
}
`
,
icon
:
'none'
})
uni
.
showToast
({
title
:
`请上传
${
field
.
label
}
`
,
icon
:
'none'
})
return
return
...
@@ -300,11 +326,13 @@ export default {
...
@@ -300,11 +326,13 @@ export default {
// this.uploadedImages
// this.uploadedImages
Object
.
keys
(
this
.
uploadedImages
).
forEach
(
key
=>
{
Object
.
keys
(
this
.
uploadedImages
).
forEach
(
key
=>
{
console
.
log
(
this
.
uploadedImages
)
if
(
Array
.
isArray
(
this
.
uploadedImages
[
key
]))
{
if
(
Array
.
isArray
(
this
.
uploadedImages
[
key
]))
{
// 将图片URL数组转换为逗号分隔的字符串
// 将图片URL数组转换为逗号分隔的字符串
const
imagesStr
=
this
.
uploadedImages
[
key
].
join
(
','
)
const
imagesStr
=
this
.
uploadedImages
[
key
].
join
(
','
)
// 更新formData中对应的字段
// 更新formData中对应的字段
this
.
formData
[
key
]
=
imagesStr
this
.
formData
[
key
]
=
imagesStr
console
.
log
(
'this.uploadedImages'
,
this
.
formData
)
}
}
})
})
const
res
=
await
uni
.
$api
.
evaluationApi
.
confirmDelivery
({
const
res
=
await
uni
.
$api
.
evaluationApi
.
confirmDelivery
({
...
...
pages/evaluationForm/index.vue
View file @
dacabcd
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<view>
暂无客户工单
</view>
<view>
暂无客户工单
</view>
</view>
</view>
</
template
>
</
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>
</z-paging>
</view>
</view>
</view>
</view>
...
...
pages/evaluationForm/signInfo.vue
View file @
dacabcd
...
@@ -22,8 +22,8 @@
...
@@ -22,8 +22,8 @@
</label>
</label>
</radio-group>
</radio-group>
</view>
</view>
<view
class=
"template-title flex"
@
click
.
stop=
"pdfPreview"
>
<view
class=
"template-title flex
align-center
"
@
click
.
stop=
"pdfPreview"
>
<view
class=
"sprite-icon icon-seeIcon"
></view>
<view
class=
"sprite-icon icon-seeIcon
mr-12
"
></view>
<text>
合同模板
</text>
<text>
合同模板
</text>
</view>
</view>
</view>
</view>
...
@@ -32,8 +32,11 @@
...
@@ -32,8 +32,11 @@
<view
v-if=
"formData.paymentType"
class=
"fromBox"
>
<view
v-if=
"formData.paymentType"
class=
"fromBox"
>
<FormCell
:formFields=
"formFields"
:formData=
"formData"
@
handleCell=
"handleCell"
@
inputChange=
"handleInputChange"
@
inputInvalid=
"handleInputInvalid"
@
blurChange=
"blurChange"
/>
<FormCell
:formFields=
"formFields"
:formData=
"formData"
@
handleCell=
"handleCell"
@
inputChange=
"handleInputChange"
@
inputInvalid=
"handleInputInvalid"
@
blurChange=
"blurChange"
/>
<view
class=
"upload-container mb-24"
>
<view
class=
"upload-container mb-24"
>
<view
class=
"form-item flex align-center justify-between"
>
<view
class=
"form-item flex align-start justify-between"
>
<view
class=
"from-label"
>
身份证正面
</view>
<view
class=
"from-label"
>
身份证正面
<text
class=
"requiredLabel"
>
*
</text>
</view>
<template>
<template>
<!-- 判断是否已上传 -->
<!-- 判断是否已上传 -->
<view
v-if=
"formData.idCardFrontUrl"
class=
"uploaded-item"
>
<view
v-if=
"formData.idCardFrontUrl"
class=
"uploaded-item"
>
...
@@ -51,8 +54,11 @@
...
@@ -51,8 +54,11 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<view
class=
"form-item flex align-center justify-between"
>
<view
class=
"form-item flex align-start justify-between"
>
<view
class=
"from-label"
>
身份证背面
</view>
<view
class=
"from-label"
>
身份证背面
<text
class=
"requiredLabel"
>
*
</text>
</view>
<
template
>
<
template
>
<view
v-if=
"formData.idCardBackUrl"
class=
"uploaded-item"
>
<view
v-if=
"formData.idCardBackUrl"
class=
"uploaded-item"
>
<image
:src=
"formData.idCardBackUrl"
mode=
"aspectFit"
></image>
<image
:src=
"formData.idCardBackUrl"
mode=
"aspectFit"
></image>
...
@@ -69,7 +75,7 @@
...
@@ -69,7 +75,7 @@
</view>
</view>
<FormCell
:formFields=
"formFields2"
:formData=
"formData"
@
handleCell=
"handleCell"
/>
<FormCell
:formFields=
"formFields2"
:formData=
"formData"
@
handleCell=
"handleCell"
/>
<view
class=
"upload-container"
>
<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>
<view
class=
"from-label"
>
身份证正面
</view>
<
template
>
<
template
>
<view
v-if=
"formData.payerIdCardFrontUrl"
class=
"uploaded-item"
>
<view
v-if=
"formData.payerIdCardFrontUrl"
class=
"uploaded-item"
>
...
@@ -84,7 +90,7 @@
...
@@ -84,7 +90,7 @@
</view>
</view>
</
template
>
</
template
>
</view>
</view>
<view
class=
"form-item flex align-
center
justify-between"
>
<view
class=
"form-item flex align-
start
justify-between"
>
<view
class=
"from-label"
>
身份证背面
</view>
<view
class=
"from-label"
>
身份证背面
</view>
<
template
>
<
template
>
<view
v-if=
"formData.payerIdCardBackUrl"
class=
"uploaded-item"
>
<view
v-if=
"formData.payerIdCardBackUrl"
class=
"uploaded-item"
>
...
@@ -101,7 +107,7 @@
...
@@ -101,7 +107,7 @@
</view>
</view>
</view>
</view>
<view
class=
"upload-container"
>
<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>
<view
class=
"from-label"
>
银行卡
</view>
<
template
>
<
template
>
<view
v-if=
"formData.payerBankCardUrl"
class=
"uploaded-item"
>
<view
v-if=
"formData.payerBankCardUrl"
class=
"uploaded-item"
>
...
@@ -130,7 +136,7 @@
...
@@ -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"
/>
<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=
"
number"
maxlength=
"1
"
/>
</label>
</label>
</checkbox-group>
</checkbox-group>
</
template
>
</
template
>
...
@@ -145,7 +151,7 @@
...
@@ -145,7 +151,7 @@
</view>
</view>
<view
class=
"footerBtn"
>
<view
class=
"footerBtn"
>
<view
class=
"btn cancle"
@
click
.
stop=
"backPage"
>
取消
</view>
<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>
</view>
<view
class=
"box-class1 mt-16"
v-else
>
<view
class=
"box-class1 mt-16"
v-else
>
...
@@ -258,6 +264,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
...
@@ -258,6 +264,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
max
}
from
'lodash'
export
default
{
export
default
{
components
:
{
components
:
{
FormCell
,
FormCell
,
...
@@ -380,7 +387,7 @@ export default {
...
@@ -380,7 +387,7 @@ export default {
purchaseInvoice
:
''
,
purchaseInvoice
:
''
,
trafficScreenshot
:
''
,
trafficScreenshot
:
''
,
carKey
:
''
,
carKey
:
''
,
carKeyCount
:
2
,
carKeyCount
:
1
,
trafficInsurance
:
''
,
trafficInsurance
:
''
,
insuranceCard
:
''
,
insuranceCard
:
''
,
transferPhoto
:
''
,
transferPhoto
:
''
,
...
@@ -416,7 +423,8 @@ export default {
...
@@ -416,7 +423,8 @@ export default {
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'handoverAddress'
,
targetKey
:
'handoverAddress'
,
type
:
'input'
type
:
'input'
,
maxlength
:
100
}
}
],
],
formFields2
:
[
formFields2
:
[
...
@@ -430,7 +438,8 @@ export default {
...
@@ -430,7 +438,8 @@ export default {
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'payeeName'
,
targetKey
:
'payeeName'
,
targetObj
:
''
,
targetObj
:
''
,
type
:
'input'
type
:
'input'
,
maxlength
:
50
},
},
{
{
key
:
'bankCardNumber'
,
key
:
'bankCardNumber'
,
...
@@ -442,7 +451,8 @@ export default {
...
@@ -442,7 +451,8 @@ export default {
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
targetKey
:
'bankCardNumber'
,
targetKey
:
'bankCardNumber'
,
targetObj
:
''
,
targetObj
:
''
,
type
:
'input'
type
:
'input'
,
maxlength
:
25
},
},
{
{
key
:
'bankOfDeposit'
,
key
:
'bankOfDeposit'
,
...
@@ -477,21 +487,33 @@ export default {
...
@@ -477,21 +487,33 @@ export default {
mounted
()
{
mounted
()
{
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
userInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
console
.
log
(
'userInfo'
,
this
.
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
.
formData
.
evalPrice
=
this
.
query
.
evalPrice
this
.
getEvalOrderSimpleDetail
()
console
.
log
(
'formData'
,
this
.
formData
)
console
.
log
(
'formData'
,
this
.
formData
)
},
},
methods
:
{
methods
:
{
init
(
options
)
{
init
(
options
)
{
this
.
query
=
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
)
{
calendarChange
(
date
)
{
this
.
selectDate
=
date
.
year
+
'-'
+
date
.
month
+
'-'
+
date
.
date
this
.
selectDate
=
date
.
year
+
'-'
+
date
.
month
+
'-'
+
date
.
date
},
},
...
@@ -554,7 +576,7 @@ export default {
...
@@ -554,7 +576,7 @@ export default {
{
{
key
:
'finalPrice'
,
key
:
'finalPrice'
,
label
:
'尾款金额'
,
label
:
'尾款金额'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
...
@@ -569,7 +591,7 @@ export default {
...
@@ -569,7 +591,7 @@ export default {
{
{
key
:
'evalPrice'
,
key
:
'evalPrice'
,
label
:
'评估价'
,
label
:
'评估价'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
...
@@ -643,7 +665,7 @@ export default {
...
@@ -643,7 +665,7 @@ export default {
{
{
key
:
'fullPrice'
,
key
:
'fullPrice'
,
label
:
'全款金额'
,
label
:
'全款金额'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
...
@@ -656,7 +678,7 @@ export default {
...
@@ -656,7 +678,7 @@ export default {
{
{
key
:
'evalPrice'
,
key
:
'evalPrice'
,
label
:
'评估价'
,
label
:
'评估价'
,
required
:
tru
e
,
required
:
fals
e
,
fullWidth
:
false
,
fullWidth
:
false
,
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
...
@@ -853,6 +875,63 @@ export default {
...
@@ -853,6 +875,63 @@ export default {
]
]
this
.
$refs
.
notice
.
open
()
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
()
{
comfirm
()
{
console
.
log
(
'this.formData'
,
this
.
formData
)
console
.
log
(
'this.formData'
,
this
.
formData
)
if
(
this
.
formData
.
paymentType
==
2
)
{
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