Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
cloudSystem
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
8cf13b20
authored
Jul 04, 2025
by
liangjianmin
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
feat: 优化获取合同信息逻辑,简化按钮状态管理,提升用户体验
parent
312794d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
11 deletions
src/views/OrderTrack/goodsDetail.vue
src/views/OrderTrack/goodsDetail.vue
View file @
8cf13b20
...
@@ -438,17 +438,14 @@ export default {
...
@@ -438,17 +438,14 @@ export default {
this
.
contract_id
=
contractItem
.
contractId
;
this
.
contract_id
=
contractItem
.
contractId
;
this
.
disabled
=
true
;
// 重置按钮状态
this
.
disabled
=
true
;
// 重置按钮状态
this
.
signDialogVisible
=
true
;
this
.
signDialogVisible
=
true
;
// 等待DOM更新后检查初始滚动状态
//获取合同信息
this
.
$nextTick
(()
=>
{
this
.
$http
(
'POST'
,
"/api/purContract/getContractInfo"
,
{
contract_id
:
this
.
contract_id
}).
then
(
res
=>
{
var
contractContent
=
this
.
$refs
.
contractContent
;
if
(
res
.
code
===
0
)
{
if
(
contractContent
)
{
this
.
signContractData
=
res
.
data
;
// 如果内容高度小于等于容器高度,直接启用按钮
if
(
contractContent
.
scrollHeight
<=
contractContent
.
clientHeight
)
{
this
.
disabled
=
false
;
}
}
}
});
})
},
},
// 关闭签署合同弹窗
// 关闭签署合同弹窗
closeSignDialog
()
{
closeSignDialog
()
{
...
@@ -477,7 +474,7 @@ export default {
...
@@ -477,7 +474,7 @@ export default {
if
(
!
this
.
disabled
)
{
if
(
!
this
.
disabled
)
{
return
;
return
;
}
}
var
contractContent
=
this
.
$refs
.
contractContent
;
var
contractContent
=
this
.
$refs
.
contractContent
;
// 检查是否滚动到底部
// 检查是否滚动到底部
if
(
contractContent
.
scrollHeight
-
contractContent
.
scrollTop
===
contractContent
.
clientHeight
)
{
if
(
contractContent
.
scrollHeight
-
contractContent
.
scrollTop
===
contractContent
.
clientHeight
)
{
...
@@ -493,6 +490,7 @@ export default {
...
@@ -493,6 +490,7 @@ export default {
<
style
scoped
>
<
style
scoped
>
@import
"../../assets/css/goods/goods.min.css"
;
@import
"../../assets/css/goods/goods.min.css"
;
@import
"../../assets/css/public/contract.css"
;
@import
"../../assets/css/public/contract.css"
;
.el-button--primary.is-disabled
,
.el-button--primary.is-disabled
,
.el-button--primary.is-disabled
:active
,
.el-button--primary.is-disabled
:active
,
.el-button--primary.is-disabled
:focus
,
.el-button--primary.is-disabled
:focus
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment