Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
weChatFlowApprove
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
刘川
weChatFlowApprove
Commits
ad63356d
Commit
ad63356d
authored
Nov 21, 2025
by
李驰骋
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
要货审批通用页面调整
parent
97b9b88f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
55 additions
and
8 deletions
+55
-8
ShipApproval.vue
src/views/ship-approval/ShipApproval.vue
+55
-8
No files found.
src/views/ship-approval/ShipApproval.vue
View file @
ad63356d
...
...
@@ -365,17 +365,17 @@ export default {
isReadonly
()
{
return
false
},
firstApprovalNode
()
{
var
node
=
this
.
findFirstApprovalNode
()
return
node
;
},
isFirstApprovalNode
()
{
if
(
this
.
tablePathData
.
length
>
1
&&
this
.
tablePathData
[
1
].
statusId
===
'executing'
)
{
return
true
}
return
false
const
node
=
this
.
firstApprovalNode
return
node
&&
node
.
statusId
===
'executing'
},
firstApprovalOpinion
()
{
if
(
this
.
tablePathData
.
length
>
1
)
{
return
this
.
tablePathData
[
1
].
opinion
||
''
}
return
''
const
node
=
this
.
firstApprovalNode
return
node
?
(
node
.
opinion
||
''
)
:
''
}
},
created
()
{
...
...
@@ -387,6 +387,36 @@ export default {
this
.
initDetail
()
}
},
mounted
()
{
// 强制刷新,解决企业微信缓存问题
// 在mounted中执行,确保DOM已加载
this
.
$nextTick
(()
=>
{
if
(
typeof
window
!==
'undefined'
&&
window
.
location
)
{
try
{
const
searchParams
=
new
URLSearchParams
(
window
.
location
.
search
)
if
(
!
searchParams
.
has
(
'_t'
))
{
searchParams
.
set
(
'_t'
,
Date
.
now
().
toString
())
const
newUrl
=
window
.
location
.
pathname
+
'?'
+
searchParams
.
toString
()
+
(
window
.
location
.
hash
||
''
)
window
.
history
.
replaceState
({},
''
,
newUrl
)
// 强制重新加载页面资源(仅在企业微信环境下)
if
(
window
.
navigator
.
userAgent
.
indexOf
(
'wxwork'
)
!==
-
1
)
{
// 企业微信环境,尝试清除可能的缓存
const
links
=
document
.
querySelectorAll
(
'link[rel="stylesheet"]'
)
links
.
forEach
(
link
=>
{
if
(
link
.
href
)
{
const
href
=
new
URL
(
link
.
href
,
window
.
location
.
origin
)
href
.
searchParams
.
set
(
'_v'
,
Date
.
now
().
toString
())
link
.
href
=
href
.
toString
()
}
})
}
}
}
catch
(
e
)
{
console
.
warn
(
'缓存控制处理失败:'
,
e
)
}
}
})
},
methods
:
{
handlePicker
()
{
this
.
showPicker
=
this
.
flag
...
...
@@ -649,6 +679,23 @@ export default {
1
:
'是'
}[
val
*
1
]
},
findFirstApprovalNode
()
{
const
data
=
this
.
tablePathData
if
(
!
Array
.
isArray
(
data
)
||
data
.
length
===
0
)
{
return
null
}
let
startIndex
=
1
if
(
data
.
length
>
1
&&
data
[
1
].
subProcUnitId
===
'shunt'
)
{
startIndex
=
2
}
for
(
let
i
=
startIndex
;
i
<
data
.
length
;
i
++
)
{
const
node
=
data
[
i
]
if
(
node
)
{
return
node
}
}
return
null
},
onClickLeft
()
{
window
.
opener
=
null
window
.
open
(
''
,
'_self'
,
''
)
...
...
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