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 777da28d
authored
Oct 10, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 样式和确认交车交互
1 parent
13449441
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
177 additions
and
69 deletions
api/module/evaluation.js
components/OrderPopup/components/AgreementList.vue
pages/evaluationForm/addEvaluationFrom.vue
pages/evaluationForm/components/FormCell.vue
pages/evaluationForm/components/GeneralPopup.vue
pages/evaluationForm/components/SelectCity.vue
pages/evaluationForm/components/evaluationCard.vue
pages/evaluationForm/components/uploadMedia.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/evaluationFormDetails.vue
pages/evaluationForm/index.vue
pages/evaluationForm/signInfo.vue
api/module/evaluation.js
View file @
777da28
...
@@ -231,5 +231,12 @@ module.exports = {
...
@@ -231,5 +231,12 @@ module.exports = {
},
},
{
returnAll
:
true
}
{
returnAll
:
true
}
)
)
},
/**省市区 */
apiRegion
(
data
)
{
const
queryString
=
Object
.
keys
(
data
)
.
map
(
key
=>
`
${
encodeURIComponent
(
key
)}
=
${
encodeURIComponent
(
data
[
key
])}
`
)
.
join
(
'&'
)
return
gscPost
(
`/evalOrder/apiRegion/search
${
queryString
?
'?'
+
queryString
:
''
}
`
,
{
...
data
},
{
returnAll
:
true
})
}
}
}
}
components/OrderPopup/components/AgreementList.vue
View file @
777da28
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<template
v-for=
"(i, index) in list"
>
<template
v-for=
"(i, index) in list"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: currentId ? i.id == currentId : i.id == data[params.idKey] }]">
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: currentId ? i.id == currentId : i.id == data[params.idKey] }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
name
}}
{{
i
.
name
+
' | '
+
i
.
conversionPhone
}}
</view>
</view>
</
template
>
</
template
>
</view>
</view>
...
...
pages/evaluationForm/addEvaluationFrom.vue
View file @
777da28
...
@@ -60,7 +60,7 @@
...
@@ -60,7 +60,7 @@
</view>
</view>
<view
class=
"upload-section"
>
<view
class=
"upload-section"
>
<view
class=
"section-title"
>
其他图片
</view>
<view
class=
"section-title"
>
其他图片
</view>
<UploadMedia
:upload-fields=
"uploadOtherFields"
:mediaData
.
sync=
"otherImagesData"
:grid-columns=
"1"
/>
<UploadMedia
:upload-fields=
"uploadOtherFields"
:mediaData
.
sync=
"otherImagesData"
:grid-columns=
"1"
class=
"other-upload"
/>
</view>
</view>
</view>
</view>
</view>
</view>
...
@@ -146,7 +146,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
...
@@ -146,7 +146,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
import
SelectCity
from
'./components/SelectCity.vue'
import
SelectCity
from
'./components/SelectCity.vue'
import
UploadMedia
from
'./components/uploadMedia.vue'
import
UploadMedia
from
'./components/uploadMedia.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
{
debounc
e
}
from
'lodash'
import
{
throttl
e
}
from
'lodash'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
{
sign
,
md532
,
md516
}
from
'utils/common'
import
{
sign
,
md532
,
md516
}
from
'utils/common'
...
@@ -545,7 +545,7 @@ export default {
...
@@ -545,7 +545,7 @@ export default {
{
key
:
31
,
label
:
'发动机工况'
,
required
:
false
,
accept
:
'video'
},
{
key
:
31
,
label
:
'发动机工况'
,
required
:
false
,
accept
:
'video'
},
{
key
:
32
,
label
:
'车况解说'
,
required
:
false
,
accept
:
'video'
}
{
key
:
32
,
label
:
'车况解说'
,
required
:
false
,
accept
:
'video'
}
],
],
uploadOtherFields
:
[{
key
:
41
,
label
:
'其他图片'
,
required
:
false
,
accept
:
'image'
,
maxCount
:
30
}],
uploadOtherFields
:
[{
key
:
41
,
label
:
'其他图片'
,
required
:
false
,
accept
:
'image'
,
maxCount
:
30
,
fullwidth
:
true
}],
currentField
:
null
,
currentField
:
null
,
query
:
{}
query
:
{}
}
}
...
@@ -1378,13 +1378,9 @@ export default {
...
@@ -1378,13 +1378,9 @@ export default {
this
.
scrollToTop
()
this
.
scrollToTop
()
}
}
},
},
bindPickerChange
:
function
(
e
)
{
console
.
log
(
'picker发送选择改变,携带值为'
,
e
.
detail
.
value
)
this
.
index
=
e
.
detail
.
value
},
// 提交表单逻辑
// 提交表单逻辑
submitForm
:
debounc
e
(
async
function
()
{
submitForm
:
throttl
e
(
async
function
()
{
// 表单提交验证
// 表单提交验证
if
(
this
.
currentStep
===
3
)
{
if
(
this
.
currentStep
===
3
)
{
const
leftFront45Image
=
this
.
formImagesData
[
'11'
]
// key为11的是左前45度图片
const
leftFront45Image
=
this
.
formImagesData
[
'11'
]
// key为11的是左前45度图片
...
@@ -1421,6 +1417,8 @@ export default {
...
@@ -1421,6 +1417,8 @@ export default {
title
:
'提交中...'
title
:
'提交中...'
})
})
console
.
log
(
'提交的表单数据:'
,
this
.
formData
)
console
.
log
(
'提交的表单数据:'
,
this
.
formData
)
const
guidePrice
=
this
.
formData
.
carBaseReqDTO
.
guidePrice
this
.
formData
.
carBaseReqDTO
.
guidePrice
=
!
isNaN
(
Number
(
guidePrice
))
?
Number
(
guidePrice
).
toFixed
(
2
)
:
'0.00'
if
(
this
.
query
.
type
===
'add'
)
{
if
(
this
.
query
.
type
===
'add'
)
{
uni
.
showLoading
()
uni
.
showLoading
()
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
)
const
res
=
await
uni
.
$api
.
evaluationApi
.
evalOrderCreate
(
this
.
formData
)
...
...
pages/evaluationForm/components/FormCell.vue
View file @
777da28
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
<text
class=
"requiredLabel"
v-if=
"field.required"
>
*
</text>
<text
class=
"requiredLabel"
v-if=
"field.required"
>
*
</text>
</view>
</view>
<template
v-if=
"field.type === 'input'"
class=
"flex align-center"
>
<template
v-if=
"field.type === 'input'"
class=
"flex align-center"
>
<input
class=
"formInput"
:class=
"field.disabled ? 'formInputDisabled' : ''"
:min=
"field.min"
:max=
"field.max"
v-if=
"field.targetObj"
:type=
"field.inputType"
:disabled=
"field.disabled"
:placeholder=
"field.placeholder || '请输入'"
:maxlength=
"field.maxlength || 100"
v-model=
"formData[field.targetObj][field.targetKey]"
:pattern=
"field.pattern || ''"
@
input=
"e => handleInput(e, field)"
@
blur=
"e => handleBlur(e, field)"
/>
<input
class=
"formInput"
:class=
"field.disabled ? 'formInputDisabled' : ''"
:min=
"field.min"
:max=
"field.max"
v-if=
"field.targetObj"
:type=
"field.inputType
|| 'text'
"
:disabled=
"field.disabled"
:placeholder=
"field.placeholder || '请输入'"
:maxlength=
"field.maxlength || 100"
v-model=
"formData[field.targetObj][field.targetKey]"
:pattern=
"field.pattern || ''"
@
input=
"e => handleInput(e, field)"
@
blur=
"e => handleBlur(e, field)"
/>
<input
class=
"formInput"
:class=
"field.disabled ? 'formInputDisabled' : ''"
:min=
"field.min"
:max=
"field.max"
v-else
type=
"text"
:type=
"field.inputType"
:disabled=
"field.disabled"
:placeholder=
"field.placeholder || '请输入'"
v-model=
"formData[field.targetKey]"
:maxlength=
"field.maxlength || 100"
:pattern=
"field.pattern || ''"
@
input=
"e => handleInput(e, field)"
@
blur=
"e => handleBlur(e, field)"
/>
<input
class=
"formInput"
:class=
"field.disabled ? 'formInputDisabled' : ''"
:min=
"field.min"
:max=
"field.max"
v-else
type=
"text"
:type=
"field.inputType
|| 'text'
"
:disabled=
"field.disabled"
:placeholder=
"field.placeholder || '请输入'"
v-model=
"formData[field.targetKey]"
:maxlength=
"field.maxlength || 100"
:pattern=
"field.pattern || ''"
@
input=
"e => handleInput(e, field)"
@
blur=
"e => handleBlur(e, field)"
/>
<view
v-if=
"field.isScan"
class=
"flex align-center scanBtn justify-center"
@
click
.
stop=
"scan('vinOcr')"
>
<view
v-if=
"field.isScan"
class=
"flex align-center scanBtn justify-center"
@
click
.
stop=
"scan('vinOcr')"
>
<view
class=
"sprite-icon icon-scanIconX"
></view>
<view
class=
"sprite-icon icon-scanIconX"
></view>
</view>
</view>
...
@@ -149,7 +149,57 @@ export default {
...
@@ -149,7 +149,57 @@ export default {
this
.
$emit
(
'update:formData'
,
data
)
this
.
$emit
(
'update:formData'
,
data
)
},
},
handleInput
(
e
,
field
)
{
handleInput
(
e
,
field
)
{
const
value
=
e
.
detail
.
value
console
.
log
(
'e'
,
e
)
const
value
=
e
.
target
?.
_value
||
e
.
target
?.
value
if
(
field
.
key
===
'vin'
||
field
.
key
===
'engineNumber'
||
field
.
key
===
'idCard'
)
{
let
filteredValue
=
value
.
replace
(
/
[^
A-Za-z0-9
]
/g
,
''
)
console
.
log
(
'filteredValue'
,
filteredValue
)
console
.
log
(
'value'
,
value
)
console
.
log
(
filteredValue
!==
value
)
if
(
filteredValue
!==
value
)
{
if
(
field
.
targetObj
)
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
filteredValue
// this.$set(this.formData[field.targetObj], field.targetKey, filteredValue)
}
else
{
this
.
formData
[
field
.
targetKey
]
=
filteredValue
// this.$set(this.formData, field.targetKey, filteredValue)
}
}
else
{
filteredValue
=
value
}
}
if
(
field
.
key
===
'keyCount'
||
field
.
key
===
'transferCount'
)
{
// 过滤掉所有非数字字符
const
filteredValue
=
value
.
replace
(
/
[^
0-9
]
/g
,
''
)
// 限制只能输入一位数字
const
singleDigitValue
=
filteredValue
.
slice
(
0
,
1
)
if
(
singleDigitValue
!==
value
)
{
value
=
singleDigitValue
if
(
field
.
targetObj
)
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
value
}
else
{
this
.
formData
[
field
.
targetKey
]
=
value
}
this
.
$emit
(
'formDataChange'
,
this
.
formData
)
return
}
}
if
(
field
.
key
===
'depositPrice'
)
{
// 过滤掉所有非数字字符
const
filteredValue
=
value
.
replace
(
/
[^
1-9
]
/g
,
''
)
if
(
filteredValue
!==
value
)
{
value
=
filteredValue
if
(
field
.
targetObj
)
{
this
.
formData
[
field
.
targetObj
][
field
.
targetKey
]
=
value
}
else
{
this
.
formData
[
field
.
targetKey
]
=
value
}
this
.
$emit
(
'formDataChange'
,
this
.
formData
)
return
}
}
// 如果有正则验证规则,执行验证
// 如果有正则验证规则,执行验证
if
(
field
.
pattern
)
{
if
(
field
.
pattern
)
{
const
reg
=
new
RegExp
(
field
.
pattern
)
const
reg
=
new
RegExp
(
field
.
pattern
)
...
...
pages/evaluationForm/components/GeneralPopup.vue
View file @
777da28
...
@@ -90,15 +90,15 @@ export default {
...
@@ -90,15 +90,15 @@ export default {
},
},
methods
:
{
methods
:
{
open
()
{
open
()
{
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
resolve
=
resolve
this
.
reject
=
reject
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
console
.
log
(
this
.
$refs
.
publishPopup
)
console
.
log
(
this
.
$refs
.
publishPopup
)
if
(
this
.
$refs
.
publishPopup
)
{
if
(
this
.
$refs
.
publishPopup
)
{
this
.
$refs
.
publishPopup
.
open
()
this
.
$refs
.
publishPopup
.
open
()
}
}
})
})
return
new
Promise
((
resolve
,
reject
)
=>
{
this
.
resolve
=
resolve
this
.
reject
=
reject
})
})
},
},
change
(
e
)
{
change
(
e
)
{
...
...
pages/evaluationForm/components/SelectCity.vue
View file @
777da28
<
template
>
<
template
>
<GeneralPopup
ref=
"cityPopup"
popupClass=
"cityPopup"
:list=
"list"
:title=
"title"
@
confirm=
"handleConfirm"
>
<GeneralPopup
ref=
"cityPopup"
popupClass=
"cityPopup"
:list=
"list"
:title=
"title"
@
confirm=
"handleConfirm"
:autoClose=
"false"
>
<template
v-slot:content
>
<template
v-slot:content
>
<view
v-if=
"isLoading"
class=
"loading-container"
>
<view
v-if=
"isLoading"
class=
"loading-container"
>
<view
class=
"loading-spinner"
></view>
<view
class=
"loading-spinner"
></view>
...
@@ -100,14 +100,18 @@ export default {
...
@@ -100,14 +100,18 @@ export default {
loadCityData
()
{
loadCityData
()
{
let
that
=
this
let
that
=
this
this
.
isLoading
=
true
this
.
isLoading
=
true
uni
.
request
({
uni
.
$api
.
evaluationApi
url
:
'http://eshield.test.glsx.com.cn/nesi/apiRegion/search?keyword=全国&sub_admin=3&extensions_code=1'
,
.
apiRegion
({
method
:
'GET'
,
keyword
:
'全国'
,
data
:
{},
sub_admin
:
3
,
dataType
:
'json'
,
extensions_code
:
1
success
(
result
)
{
})
console
.
log
(
'请求结果:'
,
JSON
.
parse
(
result
.
data
.
data
))
.
then
(
res
=>
{
let
{
status
,
districts
}
=
JSON
.
parse
(
result
.
data
.
data
)
console
.
log
(
'请求结果:'
,
res
)
let
{
data
}
=
res
if
(
data
.
code
==
0
)
{
console
.
log
(
'请求结果:'
,
JSON
.
parse
(
data
.
data
))
let
{
status
,
districts
}
=
JSON
.
parse
(
data
.
data
)
if
(
status
===
0
&&
districts
)
{
if
(
status
===
0
&&
districts
)
{
that
.
provinceData
=
districts
[
0
].
districts
that
.
provinceData
=
districts
[
0
].
districts
console
.
log
(
'provinceData'
,
that
.
provinceData
)
console
.
log
(
'provinceData'
,
that
.
provinceData
)
...
@@ -116,9 +120,7 @@ export default {
...
@@ -116,9 +120,7 @@ export default {
console
.
error
(
'Invalid city data format:'
,
result
)
console
.
error
(
'Invalid city data format:'
,
result
)
}
}
that
.
isLoading
=
false
that
.
isLoading
=
false
},
}
else
{
fail
(
error
)
{
console
.
log
(
error
,
'error'
)
that
.
isLoading
=
false
that
.
isLoading
=
false
}
}
})
})
...
@@ -280,8 +282,15 @@ export default {
...
@@ -280,8 +282,15 @@ export default {
}
}
},
},
handleConfirm
()
{
handleConfirm
()
{
console
.
log
(
this
.
selectionResult
)
if
(
this
.
selectedCity
)
{
this
.
$emit
(
'city-selected'
,
this
.
selectionResult
)
this
.
$emit
(
'city-selected'
,
this
.
selectionResult
)
this
.
$refs
.
cityPopup
.
closePopup
()
}
else
{
uni
.
showToast
({
title
:
'请选择城市'
,
icon
:
'none'
})
}
}
}
}
}
}
}
...
...
pages/evaluationForm/components/evaluationCard.vue
View file @
777da28
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<text
class=
"common-label flex-shrink-0"
>
工单时间
</text>
<text
class=
"common-label flex-shrink-0"
>
工单时间
</text>
<view
class=
"common-value text-ellipsis ml-16"
>
{{
carInfo
.
evalOrderTime
}}
</view>
<view
class=
"common-value text-ellipsis ml-16"
>
{{
carInfo
.
evalOrderTime
}}
</view>
</view>
</view>
<view
class=
"info-item flex align-center"
v-if=
"
carInfo.status != 10 && carInfo.status != 20
"
>
<view
class=
"info-item flex align-center"
v-if=
"
(carInfo.status != 10 && carInfo.status != 20 && carInfo.status != -1) || (carInfo.previousStatus != 10 && carInfo.status == -1)
"
>
<text
class=
"common-label flex-shrink-0"
>
签约时间
</text>
<text
class=
"common-label flex-shrink-0"
>
签约时间
</text>
<view
class=
"common-value text-ellipsis ml-16"
>
{{
carInfo
.
signingSaleDate
}}
</view>
<view
class=
"common-value text-ellipsis ml-16"
>
{{
carInfo
.
signingSaleDate
}}
</view>
</view>
</view>
...
@@ -44,7 +44,7 @@
...
@@ -44,7 +44,7 @@
<view
class=
"flex"
>
<view
class=
"flex"
>
<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
.
previousStatus
==
10
&&
carInfo
.
status
==
-
1
)
?
'评估中'
:
carInfo
.
evalPriceDisplay
}}
<text
v-if=
"carInfo.paymentType == 1 && carInfo.status != 10"
class=
"text-gray ml-16"
>
(定金:
{{
carInfo
.
depositPrice
}}
元 | 尾款:
{{
carInfo
.
finalPrice
}}
元)
</text>
<text
v-if=
"carInfo.paymentType == 1 && carInfo.status != 10"
class=
"text-gray ml-16"
>
(定金:
{{
carInfo
.
depositPrice
}}
元 | 尾款:
{{
carInfo
.
finalPrice
}}
元)
</text>
<text
v-if=
"carInfo.paymentType == 2 && carInfo.status != 10"
class=
"text-gray ml-16"
>
(全款:
{{
carInfo
.
evalPrice
}}
元 )
</text>
<text
v-if=
"carInfo.paymentType == 2 && carInfo.status != 10"
class=
"text-gray ml-16"
>
(全款:
{{
carInfo
.
evalPrice
}}
元 )
</text>
</view>
</view>
...
...
pages/evaluationForm/components/uploadMedia.vue
View file @
777da28
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
{{
field
.
label
}}
{{
field
.
label
}}
<text
class=
"requiredLabel"
v-if=
"field.required"
>
*
</text>
<text
class=
"requiredLabel"
v-if=
"field.required"
>
*
</text>
</view>
</view>
<view
class=
"upload-images-wrapper"
>
<view
class=
"upload-images-wrapper"
:class=
"
{ flexWarp: field.fullwidth }"
>
<!-- 上传按钮,当未达到最大限制时显示 -->
<!-- 上传按钮,当未达到最大限制时显示 -->
<view
v-if=
"!hasReachedMax(field)"
class=
"upload-item"
@
click=
"handleMediaUpload(field)"
>
<view
v-if=
"!hasReachedMax(field)"
class=
"upload-item"
@
click=
"handleMediaUpload(field)"
>
<view
class=
"upload-placeholder"
>
<view
class=
"upload-placeholder"
>
...
@@ -451,6 +451,8 @@ export default {
...
@@ -451,6 +451,8 @@ export default {
display
:
flex
;
display
:
flex
;
gap
:
toRpx
(
16
);
gap
:
toRpx
(
16
);
flex
:
1
;
flex
:
1
;
}
.flexWarp
{
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
&
.fullwidth
{
&
.fullwidth
{
...
...
pages/evaluationForm/confirmCar.vue
View file @
777da28
...
@@ -24,7 +24,7 @@
...
@@ -24,7 +24,7 @@
<text>
套
</text>
<text>
套
</text>
</view>
</view>
<view
class=
"flex align-center inputBox"
:class=
"
{ fullInput: field.fullInput }" v-if="field.key === 'otherUrl'">
<view
class=
"flex align-center inputBox"
:class=
"
{ fullInput: field.fullInput }" v-if="field.key === 'otherUrl'">
<input
type=
"text"
v-model=
"formData[field.inputKey]"
placeholder=
"请输入"
maxlength=
"
100
"
/>
<input
type=
"text"
v-model=
"formData[field.inputKey]"
placeholder=
"请输入"
maxlength=
"
28
"
/>
</view>
</view>
<view
class=
"upload-images-wrapper"
>
<view
class=
"upload-images-wrapper"
>
<!-- 显示已上传的图片列表 -->
<!-- 显示已上传的图片列表 -->
...
@@ -94,7 +94,7 @@
...
@@ -94,7 +94,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<GeneralPopup
ref=
"addAgreementPopup"
popupClass=
"addAgreementPopup"
type=
"center"
title=
"补充协议条款"
>
<GeneralPopup
ref=
"addAgreementPopup"
popupClass=
"addAgreementPopup"
type=
"center"
title=
"补充协议条款"
@
confirm=
"confirmAddAgreement"
>
<template
v-slot:content
>
<template
v-slot:content
>
<textarea
placeholder=
"请输入 (200字以内)"
v-model=
"formData.supplementaryClauseText"
maxlength=
"200"
/>
<textarea
placeholder=
"请输入 (200字以内)"
v-model=
"formData.supplementaryClauseText"
maxlength=
"200"
/>
</
template
>
</
template
>
...
@@ -123,7 +123,7 @@ import GeneralPopup from './components/GeneralPopup.vue'
...
@@ -123,7 +123,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
{
debounc
e
}
from
'lodash'
import
{
throttl
e
}
from
'lodash'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -134,6 +134,7 @@ export default {
...
@@ -134,6 +134,7 @@ export default {
},
},
data
()
{
data
()
{
return
{
return
{
currentField
:
null
,
videoProcess
:
'?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'
,
videoProcess
:
'?x-oss-process=video/snapshot,t_7000,f_jpg,w_800,h_600,m_fast'
,
bg
:
require
(
'@/assets/images/boutique/tipsPopupBg.png'
),
bg
:
require
(
'@/assets/images/boutique/tipsPopupBg.png'
),
userInfo
:
{},
userInfo
:
{},
...
@@ -143,7 +144,7 @@ export default {
...
@@ -143,7 +144,7 @@ export default {
confirmCarImages
:
{},
confirmCarImages
:
{},
custodianName
:
''
,
custodianName
:
''
,
pdfUrl
:
''
,
pdfUrl
:
''
,
showTips
:
'《车辆交接单》已发送至签约车主,请提醒车主完成签署。'
,
showTips
:
'《车辆交接
确认
单》已发送至签约车主,请提醒车主完成签署。'
,
successDate
:
''
,
successDate
:
''
,
show
:
false
,
show
:
false
,
value1
:
dayjs
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
value1
:
dayjs
().
format
(
'YYYY-MM-DD HH:mm:ss'
),
...
@@ -280,6 +281,7 @@ export default {
...
@@ -280,6 +281,7 @@ export default {
// this.$set(this.formData, 'handoverAddress', 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)
console
.
log
(
'res.data.data'
,
JSON
.
parse
(
res
.
data
.
data
.
custodyContract
.
electronicContractField
))
console
.
log
(
'res.data.data'
,
JSON
.
parse
(
res
.
data
.
data
.
custodyContract
.
electronicContractField
))
this
.
custodianName
=
JSON
.
parse
(
res
.
data
.
data
.
custodyContract
.
electronicContractField
).
custodianName
||
''
this
.
custodianName
=
JSON
.
parse
(
res
.
data
.
data
.
custodyContract
.
electronicContractField
).
custodianName
||
''
this
.
formData
.
handoverTime
=
dayjs
().
format
(
'YYYY-MM-DD HH:mm:00'
)
// this.evalOrderSimpleDetail = res.data.data
// this.evalOrderSimpleDetail = res.data.data
}
else
{
}
else
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -289,12 +291,7 @@ export default {
...
@@ -289,12 +291,7 @@ export default {
})
})
}
}
},
},
handleCell
(
field
)
{
confirmAddAgreement
()
{
console
.
log
(
'handleCell'
,
field
)
this
.
currentField
=
field
if
(
field
.
type
===
'pdf'
)
{
this
.
$refs
.
addAgreementPopup
.
open
().
then
(()
=>
{
console
.
log
(
'this.supplementaryClauseText'
,
this
.
supplementaryClauseText
)
uni
.
showLoading
()
uni
.
showLoading
()
uni
.
$api
.
evaluationApi
uni
.
$api
.
evaluationApi
.
salesAgreementPreview
({
.
salesAgreementPreview
({
...
@@ -306,7 +303,7 @@ export default {
...
@@ -306,7 +303,7 @@ export default {
uni
.
hideLoading
()
uni
.
hideLoading
()
this
.
$refs
.
addAgreementPopup
.
closePopup
()
this
.
$refs
.
addAgreementPopup
.
closePopup
()
this
.
formFields
.
forEach
(
item
=>
{
this
.
formFields
.
forEach
(
item
=>
{
if
(
item
.
key
===
f
ield
.
key
)
{
if
(
item
.
key
===
this
.
currentF
ield
.
key
)
{
item
.
isShowPreview
=
true
item
.
isShowPreview
=
true
}
}
})
})
...
@@ -320,12 +317,22 @@ export default {
...
@@ -320,12 +317,22 @@ export default {
})
})
}
}
})
})
},
handleCell
(
field
)
{
const
that
=
this
console
.
log
(
'handleCell'
,
field
)
that
.
currentField
=
field
if
(
field
.
type
===
'pdf'
)
{
that
.
$nextTick
(()
=>
{
that
.
$refs
.
addAgreementPopup
.
open
()
// that.$set(that.formData, 'supplementaryClauseText', '3243434')
console
.
log
(
'this.supplementaryClauseText'
,
that
.
formData
.
supplementaryClauseText
)
})
})
}
else
if
(
field
.
type
===
'calendar'
)
{
}
else
if
(
field
.
type
===
'calendar'
)
{
th
is
.
show
=
true
th
at
.
show
=
true
}
}
},
},
confirmDelivery
:
debounc
e
(
function
(
e
)
{
confirmDelivery
:
throttl
e
(
function
(
e
)
{
if
(
!
this
.
formData
.
handoverTime
)
{
if
(
!
this
.
formData
.
handoverTime
)
{
uni
.
showToast
({
title
:
'请选择交车时间'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'请选择交车时间'
,
icon
:
'none'
})
return
return
...
@@ -335,7 +342,7 @@ export default {
...
@@ -335,7 +342,7 @@ export default {
uni
.
showToast
({
title
:
'请输入交车地点'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'请输入交车地点'
,
icon
:
'none'
})
return
return
}
}
if
(
this
.
formData
.
carKeyCount
<
0
)
{
if
(
this
.
formData
.
carKeyCount
<
0
||
this
.
formData
.
carKeyCount
==
''
)
{
uni
.
showToast
({
title
:
'请输入车钥匙数量'
,
icon
:
'none'
})
uni
.
showToast
({
title
:
'请输入车钥匙数量'
,
icon
:
'none'
})
return
return
}
}
...
@@ -353,7 +360,7 @@ export default {
...
@@ -353,7 +360,7 @@ export default {
return
return
}
}
}
}
this
.
showTips
=
`《车辆交接
单》
${
this
.
formData
.
supplementaryClauseText
?
'、《二手车买卖
补充协议》'
:
''
}
已发送至签约车主,请提醒车主完成签署。`
this
.
showTips
=
`《车辆交接
确认单》
${
this
.
formData
.
supplementaryClauseText
?
'、《二手车
补充协议》'
:
''
}
已发送至签约车主,请提醒车主完成签署。`
this
.
$refs
.
tipsPopup
.
open
()
this
.
$refs
.
tipsPopup
.
open
()
},
1500
),
},
1500
),
async
confirmTips
()
{
async
confirmTips
()
{
...
@@ -365,7 +372,12 @@ export default {
...
@@ -365,7 +372,12 @@ export default {
// 将图片URL数组转换为逗号分隔的字符串
// 将图片URL数组转换为逗号分隔的字符串
const
imagesStr
=
this
.
uploadedImages
[
key
].
join
(
','
)
const
imagesStr
=
this
.
uploadedImages
[
key
].
join
(
','
)
// 更新formData中对应的字段
// 更新formData中对应的字段
if
(
imagesStr
.
includes
(
this
.
videoProcess
))
{
this
.
formData
[
key
]
=
imagesStr
.
replace
(
this
.
videoProcess
,
''
)
}
else
{
this
.
formData
[
key
]
=
imagesStr
this
.
formData
[
key
]
=
imagesStr
}
console
.
log
(
'this.uploadedImages'
,
this
.
formData
)
console
.
log
(
'this.uploadedImages'
,
this
.
formData
)
}
}
})
})
...
...
pages/evaluationForm/evaluationFormDetails.vue
View file @
777da28
...
@@ -155,7 +155,8 @@
...
@@ -155,7 +155,8 @@
<view
class=
"mb-32 upload-box"
v-if=
"detailsInfo.signingInfo.saleContract"
>
<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 }, { 'align-center': item.type == 'link' }]"
>
<
template
v-for=
"(item, index) in vehicleItems"
>
<view
v-if=
"!detailsInfo.signingInfo.saleContract.depositPrice ? item.key !== 'signingInfo.saleContract.depositPrice' && item.key !== 'signingInfo.saleContract.finalPrice' : item.key !== 'signingInfo.saleContract.fullPrice'"
:key=
"index"
:class=
"['flex align-start',
{ 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<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>
...
@@ -170,6 +171,7 @@
...
@@ -170,6 +171,7 @@
</view>
</view>
<view
v-else
>
{{
formatValue
(
item
,
detailsInfo
)
}}
</view>
<view
v-else
>
{{
formatValue
(
item
,
detailsInfo
)
}}
</view>
</view>
</view>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"mb-32 upload-box"
>
<view
class=
"mb-32 upload-box"
>
...
@@ -260,8 +262,13 @@
...
@@ -260,8 +262,13 @@
<
template
v-for=
"(item, index) in uploadFieldsItems"
>
<
template
v-for=
"(item, index) in uploadFieldsItems"
>
<view
v-if=
"formatValue(item, detailsInfo)"
:key=
"index"
:class=
"['flex align-start',
{ 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
v-if=
"formatValue(item, detailsInfo)"
:key=
"index"
:class=
"['flex align-start',
{ 'full-width': item.fullWidth }, { 'align-center': item.type == 'link' }]">
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<view
v-if=
"item.type == 'image'"
>
<view
v-if=
"item.type == 'image'"
class=
"flex-1"
>
<template
v-if=
"item.key === 'carHandoverInfo.handoverPhotoMore'"
>
<image
@
click
.
stop=
"previewMedia(url, 1)"
v-for=
"(url, idx) in splitMediaUrls(formatValue(item, detailsInfo))"
:key=
"idx"
:src=
"url"
mode=
"aspectFill"
style=
"margin-right: 10px"
></image>
</
template
>
<
template
v-else
>
<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>
</
template
>
</view>
</view>
<view
v-else-if=
"item.type == 'link'"
class=
"flex-1"
>
<view
v-else-if=
"item.type == 'link'"
class=
"flex-1"
>
<view
class=
"pdf-box flex align-center justify-between"
>
<view
class=
"pdf-box flex align-center justify-between"
>
...
@@ -321,9 +328,13 @@
...
@@ -321,9 +328,13 @@
<
template
v-slot=
"{ step, indexContent }"
>
<
template
v-slot=
"{ step, indexContent }"
>
<view
class=
"tableContent"
>
<view
class=
"tableContent"
>
<view
class=
"gridBoxNoPadding mb-16"
v-if=
"indexContent != detailsInfo.editLogList.length - 1"
>
<view
class=
"gridBoxNoPadding mb-16"
v-if=
"indexContent != detailsInfo.editLogList.length - 1"
>
<view
v-for=
"(item, index) in editItems"
:key=
"index"
:class=
"['flex align-center',
{ 'full-width': item.fullWidth }]">
<view
:class=
"['flex align-center']"
>
<view
class=
"title-label-see mr-16"
>
{{
item
.
label
}}
</view>
<view
class=
"title-label-see mr-16"
>
订单状态
</view>
<view>
{{
detailsInfo
.
editLogList
[
indexContent
][
item
.
key
]
||
'-'
}}
</view>
<view
:class=
"['bg-transparent', statusClass(detailsInfo.editLogList[indexContent].status)]"
>
{{
statusMap
[
detailsInfo
.
editLogList
[
indexContent
].
status
].
name
||
'-'
}}
</view>
</view>
<view
:class=
"['flex align-center']"
>
<view
class=
"title-label-see mr-16"
>
编辑人员
</view>
<view>
{{
detailsInfo
.
editLogList
[
indexContent
].
editor
||
'-'
}}
</view>
</view>
</view>
<view>
<view>
<view
class=
"title-label-see mr-16"
>
变更内容
</view>
<view
class=
"title-label-see mr-16"
>
变更内容
</view>
...
@@ -500,6 +511,7 @@ export default {
...
@@ -500,6 +511,7 @@ export default {
{
label
:
'签约时间'
,
key
:
'signingInfo.saleContract.signTime'
},
{
label
:
'签约时间'
,
key
:
'signingInfo.saleContract.signTime'
},
{
label
:
'定金金额'
,
key
:
'signingInfo.saleContract.depositPrice'
},
{
label
:
'定金金额'
,
key
:
'signingInfo.saleContract.depositPrice'
},
{
label
:
'尾款金额'
,
key
:
'signingInfo.saleContract.finalPrice'
},
{
label
:
'尾款金额'
,
key
:
'signingInfo.saleContract.finalPrice'
},
{
label
:
'全款金额'
,
key
:
'signingInfo.saleContract.fullPrice'
},
{
label
:
'签约车主'
,
key
:
'signingInfo.saleContract.partAName'
},
{
label
:
'签约车主'
,
key
:
'signingInfo.saleContract.partAName'
},
{
label
:
'手机号码'
,
key
:
'signingInfo.saleContract.phone'
},
{
label
:
'手机号码'
,
key
:
'signingInfo.saleContract.phone'
},
{
label
:
'身份证号'
,
key
:
'signingInfo.saleContract.idCard'
},
{
label
:
'身份证号'
,
key
:
'signingInfo.saleContract.idCard'
},
...
@@ -699,6 +711,7 @@ export default {
...
@@ -699,6 +711,7 @@ export default {
if
(
item
.
map
&&
this
[
item
.
map
])
{
if
(
item
.
map
&&
this
[
item
.
map
])
{
return
this
[
item
.
map
][
rawValue
]
||
rawValue
return
this
[
item
.
map
][
rawValue
]
||
rawValue
}
}
console
.
log
(
'rawValue:'
,
rawValue
,
item
.
key
,
item
)
return
rawValue
===
0
?
0
:
item
.
type
===
'image'
||
item
.
accept
===
'video'
?
rawValue
:
rawValue
||
'-'
return
rawValue
===
0
?
0
:
item
.
type
===
'image'
||
item
.
accept
===
'video'
?
rawValue
:
rawValue
||
'-'
},
},
...
@@ -710,6 +723,13 @@ export default {
...
@@ -710,6 +723,13 @@ export default {
const
obj
=
this
.
detailsInfo
.
images
.
find
(
img
=>
img
.
fileSubtype
===
subtype
)
||
null
const
obj
=
this
.
detailsInfo
.
images
.
find
(
img
=>
img
.
fileSubtype
===
subtype
)
||
null
return
obj
return
obj
},
},
getImageByKey
(
subtype
)
{
if
(
subtype
===
41
||
subtype
===
22
)
{
return
this
.
detailsInfo
.
images
.
filter
(
img
=>
img
.
fileSubtype
===
subtype
)
}
const
obj
=
this
.
detailsInfo
.
images
.
find
(
img
=>
img
.
fileSubtype
===
subtype
)
||
null
return
obj
},
getImageLabel
(
fileSubtype
)
{
getImageLabel
(
fileSubtype
)
{
return
this
.
fileSuibtype
[
fileSubtype
]?.
name
||
`未知类型(
${
fileSubtype
}
)`
return
this
.
fileSuibtype
[
fileSubtype
]?.
name
||
`未知类型(
${
fileSubtype
}
)`
},
},
...
@@ -1089,7 +1109,11 @@ export default {
...
@@ -1089,7 +1109,11 @@ export default {
height
:
toRpx
(
44
);
height
:
toRpx
(
44
);
line-height
:
toRpx
(
44
);
line-height
:
toRpx
(
44
);
}
}
.bg-transparent
{
background-color
:
transparent
!important
;
font-size
:
toRpx
(
28
);
font-weight
:
500
;
}
//
状态颜色
//
状态颜色
.status-10
{
.status-10
{
color
:
#f59619
;
color
:
#f59619
;
...
...
pages/evaluationForm/index.vue
View file @
777da28
This diff is collapsed.
Click to expand it.
pages/evaluationForm/signInfo.vue
View file @
777da28
...
@@ -146,7 +146,7 @@
...
@@ -146,7 +146,7 @@
</view>
</view>
<view
class=
"checkbox-name"
>
{{
item
.
name
}}
</view>
<view
class=
"checkbox-name"
>
{{
item
.
name
}}
</view>
<input
class=
"checkbox-input"
v-if=
"item.isShowInput && item.key != 'other'"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
type=
"number"
maxlength=
"1"
/>
<input
class=
"checkbox-input"
v-if=
"item.isShowInput && item.key != 'other'"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
type=
"number"
maxlength=
"1"
/>
<input
class=
"checkbox-input"
@
click
.
stop=
""
v-if=
"item.isShowInput && item.key == 'other'"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
maxlength=
"
100
"
@
blur=
"e => handleBlur(e, item)"
/>
<input
class=
"checkbox-input"
@
click
.
stop=
""
v-if=
"item.isShowInput && item.key == 'other'"
v-model=
"formData[item.inputValue]"
placeholder=
"请输入"
maxlength=
"
28
"
@
blur=
"e => handleBlur(e, item)"
/>
</label>
</label>
</checkbox-group>
</checkbox-group>
</
template
>
</
template
>
...
@@ -175,9 +175,11 @@
...
@@ -175,9 +175,11 @@
<view
class=
"flex align-center"
>
<view
class=
"flex align-center"
>
<view
class=
"title-label-see mr-16"
>
<view
class=
"title-label-see mr-16"
>
{{ formData.paymentType == 1 ? '定金金额' : '全款金额' }}
{{ formData.paymentType == 1 ? '定金金额' : '全款金额' }}
</view>
<view>
{{ formData.paymentType == 1 ? formData.depositPrice : formData.fullPrice }}
<text>
元
</text>
<text>
元
</text>
</view>
</view>
<view>
{{ formData.paymentType == 1 ? formData.depositPrice : formData.fullPrice }}
</view>
</view>
</view>
<view
class=
"flex align-center"
>
<view
class=
"flex align-center"
>
<view
class=
"title-label-see mr-16"
>
评估价
</view>
<view
class=
"title-label-see mr-16"
>
评估价
</view>
...
@@ -276,7 +278,7 @@ import { uploadFile } from '@/utils/ossUploadFile/uploadFile.js'
...
@@ -276,7 +278,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
{
debounc
e
}
from
'lodash'
import
{
throttl
e
}
from
'lodash'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
import
permision
from
'@/js_sdk/wa-permission/permission.js'
export
default
{
export
default
{
components
:
{
components
:
{
...
@@ -477,7 +479,7 @@ export default {
...
@@ -477,7 +479,7 @@ export default {
label
:
'开户行'
,
label
:
'开户行'
,
required
:
true
,
required
:
true
,
fullWidth
:
false
,
fullWidth
:
false
,
placeholder
:
'工商银行XXX分行XXX支行'
,
placeholder
:
'
如:
工商银行XXX分行XXX支行'
,
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
...
@@ -497,7 +499,9 @@ export default {
...
@@ -497,7 +499,9 @@ export default {
'formData.depositPrice'
:
{
'formData.depositPrice'
:
{
handler
(
newValue
)
{
handler
(
newValue
)
{
console
.
log
(
newValue
)
console
.
log
(
newValue
)
if
(
newValue
)
{
this
.
calculateFinalPrice
()
this
.
calculateFinalPrice
()
}
},
},
immediate
:
true
immediate
:
true
}
}
...
@@ -523,6 +527,7 @@ export default {
...
@@ -523,6 +527,7 @@ export default {
methods
:
{
methods
:
{
init
(
options
)
{
init
(
options
)
{
this
.
query
=
options
this
.
query
=
options
this
.
formData
.
handoverTime
=
dayjs
().
format
(
'YYYY-MM-DD HH:mm:00'
)
},
},
async
getEvalOrderSimpleDetail
()
{
async
getEvalOrderSimpleDetail
()
{
uni
.
showLoading
()
uni
.
showLoading
()
...
@@ -591,6 +596,8 @@ export default {
...
@@ -591,6 +596,8 @@ export default {
console
.
log
(
'radioChange'
,
e
)
console
.
log
(
'radioChange'
,
e
)
const
value
=
Number
(
e
.
detail
.
value
)
const
value
=
Number
(
e
.
detail
.
value
)
this
.
formData
.
paymentType
=
value
this
.
formData
.
paymentType
=
value
if
(
value
===
1
)
{
this
.
formFields
=
[
this
.
formFields
=
[
{
{
key
:
'depositPrice'
,
key
:
'depositPrice'
,
...
@@ -648,8 +655,11 @@ export default {
...
@@ -648,8 +655,11 @@ export default {
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
inputType
:
'text'
,
targetKey
:
'partAName'
,
targetKey
:
'partAName'
,
type
:
'input'
type
:
'input'
,
maxlength
:
50
,
disabled
:
false
},
},
{
{
key
:
'phone'
,
key
:
'phone'
,
...
@@ -689,7 +699,6 @@ export default {
...
@@ -689,7 +699,6 @@ export default {
maxlength
:
100
maxlength
:
100
}
}
]
]
if
(
value
===
1
)
{
this
.
formData
.
finalPrice
=
''
this
.
formData
.
finalPrice
=
''
this
.
formData
.
depositPrice
=
''
this
.
formData
.
depositPrice
=
''
...
@@ -711,6 +720,7 @@ export default {
...
@@ -711,6 +720,7 @@ export default {
targetKey
:
'fullPrice'
,
targetKey
:
'fullPrice'
,
targetObj
:
''
,
targetObj
:
''
,
cell
:
'元'
,
cell
:
'元'
,
isCell
:
true
,
disabled
:
true
,
disabled
:
true
,
type
:
'input'
type
:
'input'
},
},
...
@@ -736,8 +746,10 @@ export default {
...
@@ -736,8 +746,10 @@ export default {
targetNameKey
:
'sellerName'
,
targetNameKey
:
'sellerName'
,
sourceNameKey
:
'staffName'
,
sourceNameKey
:
'staffName'
,
sourceKey
:
'uuid'
,
sourceKey
:
'uuid'
,
inputType
:
'text'
,
targetKey
:
'partAName'
,
targetKey
:
'partAName'
,
type
:
'input'
,
type
:
'input'
,
disabled
:
false
,
maxlength
:
50
maxlength
:
50
},
},
{
{
...
@@ -993,7 +1005,8 @@ export default {
...
@@ -993,7 +1005,8 @@ export default {
})
})
return
return
}
}
if
(
this
.
formData
.
depositPrice
>=
this
.
formData
.
evalPrice
)
{
console
.
log
(
'this.formData:'
,
this
.
formData
)
if
(
Number
(
this
.
formData
.
depositPrice
)
>=
Number
(
this
.
formData
.
evalPrice
))
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'定金要小于评估价'
,
title
:
'定金要小于评估价'
,
icon
:
'none'
icon
:
'none'
...
@@ -1078,7 +1091,7 @@ export default {
...
@@ -1078,7 +1091,7 @@ export default {
this
.
title
=
'确认签约信息'
this
.
title
=
'确认签约信息'
this
.
comfirmPage
=
true
this
.
comfirmPage
=
true
},
},
comfirm
:
debounc
e
(
function
(
e
)
{
comfirm
:
throttl
e
(
function
(
e
)
{
console
.
log
(
'this.formData'
,
this
.
formData
)
console
.
log
(
'this.formData'
,
this
.
formData
)
if
(
this
.
formData
.
paymentType
==
2
)
{
if
(
this
.
formData
.
paymentType
==
2
)
{
delete
this
.
formData
.
depositPrice
delete
this
.
formData
.
depositPrice
...
@@ -1117,7 +1130,7 @@ export default {
...
@@ -1117,7 +1130,7 @@ export default {
this
.
formData
.
finalPrice
=
finalPrice
this
.
formData
.
finalPrice
=
finalPrice
}
else
{
}
else
{
// 定金不能大于评估价
// 定金不能大于评估价
this
.
formData
.
depositPrice
=
evalPrice
this
.
formData
.
depositPrice
=
''
this
.
formData
.
finalPrice
=
0
this
.
formData
.
finalPrice
=
0
uni
.
showToast
({
uni
.
showToast
({
title
:
'定金不能大于评估价'
,
title
:
'定金不能大于评估价'
,
...
@@ -1127,14 +1140,7 @@ export default {
...
@@ -1127,14 +1140,7 @@ export default {
},
},
// 处理输入事件
// 处理输入事件
handleInputChange
(
e
,
field
)
{
handleInputChange
(
e
,
field
)
{},
const
value
=
e
.
detail
.
value
// 确保输入为数字
if
([
'depositPrice'
,
'finalPrice'
,
'evalPrice'
].
includes
(
field
.
targetKey
))
{
const
numValue
=
parseFloat
(
value
)
||
0
this
.
$set
(
this
.
formData
,
field
.
targetKey
,
numValue
)
}
},
// 处理无效输入
// 处理无效输入
handleInputInvalid
(
field
,
originalValue
)
{
handleInputInvalid
(
field
,
originalValue
)
{
...
...
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