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 627664a5
authored
Nov 28, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:按钮逻辑显示
1 parent
b27823b3
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
62 additions
and
50 deletions
env.js
pages/evaluationForm/components/ButtonModule.vue
pages/evaluationForm/confirmCar.vue
pages/evaluationForm/index.vue
env.js
View file @
627664a
const
target
=
[
'ip'
,
'dev'
,
'uat'
,
'prod'
,
'beta'
]
const
index
=
1
const
index
=
4
/**
*
0本地
...
...
pages/evaluationForm/components/ButtonModule.vue
View file @
627664a
...
...
@@ -7,11 +7,11 @@
<view
v-if=
"subStatus == 1"
class=
"common-btn gray-btn ml-24"
@
click
.
stop=
"handleClick('signing')"
>
签约中
</view>
<view
v-if=
"subStatus == 2 || subStatus == 3"
class=
"common-btn gray-btn ml-24"
@
click
.
stop=
"handleClick('paying')"
>
支付中
</view>
<view
v-if=
"status == 30 && !subStatus"
class=
"common-btn ml-24"
@
click
.
stop=
"handleClick('cancelSign', 'app_evaluate_cancel_sign')"
>
取消签约
</view>
<view
v-if=
"status == 31 && !subStatus"
class=
"common-btn
ml-24"
@
click
.
stop=
"handleClick('cancelSign
', 'app_evaluate_cancel_sign')"
>
确认代保管
</view>
<view
v-if=
"status == 31 && !subStatus"
class=
"common-btn
blue-btn ml-24"
@
click
.
stop=
"handleClick('signAgreement
', 'app_evaluate_cancel_sign')"
>
确认代保管
</view>
<view
v-if=
"status == 30 && !subStatus && paymentType == 1"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('payDeposit', 'app_evaluate_pay_deposit')"
>
支付定金
</view>
<view
v-if=
"(status == 30 && !subStatus && paymentType == 2 && previousStatus == '-1') || (status == 31 && !subStatus && paymentType == 2 && previousStatus == 30)"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('payFull', 'app_evaluate_pay_full')"
>
支付全款
</view>
<view
v-if=
"status == 3
1 && !subStatus && paymentType == 1 && (previousStatus == 40 || previousStatus == '-1')
"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('payFull', 'app_evaluate_pay_final')"
>
支付尾款
</view>
<view
v-if=
"status == 3
2 && !subStatus && paymentType == 1
"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('payFull', 'app_evaluate_pay_final')"
>
支付尾款
</view>
<view
v-if=
"(status == 30 && !subStatus && paymentType == 2 && previousStatus == 20) || (status == 40 && !subStatus && previousStatus == 30 && paymentType == 1)"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('confirmDelivery', 'app_evaluate_confirm_delivery')"
>
确认交车
</view>
<view
v-if=
"status == '-1'"
class=
"common-btn blue-btn ml-24"
@
click
.
stop=
"handleClick('reSubmit', 'app_evaluate_re_submit')"
>
重新提交
</view>
</div>
...
...
pages/evaluationForm/confirmCar.vue
View file @
627664a
...
...
@@ -106,7 +106,7 @@
<view
class=
"title"
>
确认交车提醒
</view>
<view
class=
"tipsConent"
>
<view>
{{
showTips
}}
</view>
<
view>
请确定车辆已经交付:代保管人
{{
custodianName
}}
。
</view
>
<
!--
<view>
请确定车辆已经交付:代保管人
{{
custodianName
}}
。
</view>
--
>
</view>
</view>
</
template
>
...
...
@@ -281,7 +281,7 @@ export default {
if
(
res
.
data
.
code
==
0
)
{
// 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
))
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
}
else
{
...
...
pages/evaluationForm/index.vue
View file @
627664a
...
...
@@ -247,7 +247,8 @@ export default {
{
name
:
'银行转账'
,
value
:
'1'
},
{
name
:
'冲账'
,
value
:
'2'
}
],
currentRadio
:
0
currentRadio
:
0
,
signAgreementObjDetail
:
null
}
},
mounted
()
{
...
...
@@ -387,6 +388,8 @@ export default {
this
.
jumpToDetails
(
e
)
}
else
if
(
e
.
type
===
'reSubmit'
)
{
this
.
reSubmit
(
e
)
}
else
if
(
e
.
type
===
'signAgreement'
)
{
this
.
signAgreement
(
e
)
}
},
async
reSubmit
(
e
)
{
...
...
@@ -467,46 +470,27 @@ export default {
}
}
else
{
uni
.
showLoading
()
uni
.
$api
.
evaluationApi
.
checkSignAgreement
({
evalOrderNo
:
this
.
payPopupObj
.
evalOrderNo
const
res
=
await
uni
.
$api
.
evaluationApi
.
signAgreement
({
evalOrderNo
:
this
.
payPopupObj
.
evalOrderNo
,
paymentMethod
:
this
.
payPopupObj
.
paymentMethod
})
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
this
.
payPopupObj
.
status
==
40
&&
this
.
payPopupObj
.
paymentType
==
1
?
'尾款已申请,请等待付款审批'
:
'全款已申请,请等待付款审批'
,
icon
:
'none'
})
.
then
(
async
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
console
.
log
(
'res.data.data:'
,
res
.
data
.
data
)
if
(
!
res
.
data
.
data
)
{
this
.
signAgreementObj
=
{
evalOrderNo
:
''
,
custodianName
:
''
,
custodianIdentityCode
:
''
,
custodianAddress
:
''
,
custodianPhone
:
''
}
that
.
$refs
.
signAgreementPopup
.
open
()
}
else
{
uni
.
showLoading
()
const
res
=
await
uni
.
$api
.
evaluationApi
.
signAgreement
({
evalOrderNo
:
this
.
payPopupObj
.
evalOrderNo
,
paymentMethod
:
this
.
payPopupObj
.
paymentMethod
})
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
this
.
payPopupObj
.
status
==
40
&&
this
.
payPopupObj
.
paymentType
==
1
?
'尾款已申请,请等待付款审批'
:
'全款已申请,请等待付款审批'
,
icon
:
'none'
})
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
data
.
msg
||
'请求失败'
,
icon
:
'none'
})
}
}
}
setTimeout
(()
=>
{
that
.
currentPage
=
1
that
.
search
()
},
1000
)
}
else
{
uni
.
hideLoading
()
uni
.
showToast
({
title
:
res
.
data
.
msg
||
'请求失败'
,
icon
:
'none'
})
}
}
},
async
confirmSignAgreement
()
{
...
...
@@ -519,18 +503,18 @@ export default {
return
}
uni
.
showLoading
()
uni
.
$api
.
evaluationApi
.
sendCustodyAgreement
({
...
that
.
signAgreementObj
,
evalOrderNo
:
this
.
payPopupObj
.
evalOrderNo
}).
then
(
res
=>
{
uni
.
$api
.
evaluationApi
.
sendCustodyAgreement
({
...
that
.
signAgreementObj
,
evalOrderNo
:
this
.
signAgreementObjDetail
.
evalOrderNo
}).
then
(
res
=>
{
console
.
log
(
res
,
'res'
)
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
// uni.showToast({
// title: '电子签约已发送,请注意查收短信,全款款项已申请,完成代保管协议电子签约后将安排支付全款',
// icon: 'none'
// })
uni
.
showToast
({
title
:
this
.
payPopupObj
.
status
==
40
&&
this
.
payPopupObj
.
paymentType
==
1
?
'尾款款项已申请,完成代保管协议电子签约后将安排支付尾款'
:
'全款款项已申请,完成代保管协议电子签约后将安排支付全款
'
,
title
:
'电子签约已发送,请注意查收短信
'
,
icon
:
'none'
})
// uni.showToast({
// title: this.payPopupObj.status == 40 && this.payPopupObj.paymentType == 1 ? '尾款款项已申请,完成代保管协议电子签约后将安排支付尾款' : '全款款项已申请,完成代保管协议电子签约后将安排支付全款',
// icon: 'none'
// })
this
.
$refs
.
signAgreementPopup
.
closePopup
()
setTimeout
(()
=>
{
that
.
currentPage
=
1
...
...
@@ -640,6 +624,34 @@ export default {
// this.$refs.cancleSignPopup.closePopup()
})
},
signAgreement
(
e
)
{
this
.
signAgreementObjDetail
=
e
const
that
=
this
uni
.
showLoading
()
uni
.
$api
.
evaluationApi
.
checkSignAgreement
({
evalOrderNo
:
e
.
evalOrderNo
})
.
then
(
async
res
=>
{
console
.
log
(
'res:'
,
res
)
if
(
res
.
data
.
code
==
0
)
{
uni
.
hideLoading
()
console
.
log
(
'res.data.data:'
,
res
.
data
.
data
)
if
(
!
res
.
data
.
data
)
{
this
.
signAgreementObj
=
{
evalOrderNo
:
''
,
custodianName
:
''
,
custodianIdentityCode
:
''
,
custodianAddress
:
''
,
custodianPhone
:
''
}
// that.addSignAgreementObj.evalOrderNo = e.evalOrderNo
that
.
$refs
.
signAgreementPopup
.
open
()
}
else
{
}
}
})
},
cancelSign
(
e
)
{
this
.
cancelSignObj
.
evalOrderNo
=
e
.
evalOrderNo
this
.
$refs
.
cancleSignPopup
.
open
()
...
...
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