Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
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
王衍超
rbc-demo
Commits
22e70ecb
Commit
22e70ecb
authored
Mar 23, 2022
by
Joey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(@rbc/runner-bill-form): 单据加载时报错直接关掉页签
parent
a68abdd4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+12
-4
No files found.
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
22e70ecb
...
...
@@ -33,7 +33,8 @@ export default {
templateName
:
""
,
init
:
true
,
curTagId
:
null
,
hideButtonGroup
:
false
hideButtonGroup
:
false
,
forceClose
:
false
,
};
},
created
()
{
...
...
@@ -71,7 +72,7 @@ export default {
});
},
checkBillChange
(
cb
,
id
)
{
if
(
id
!=
this
.
curTagId
)
{
if
(
id
!=
this
.
curTagId
||
this
.
forceClose
)
{
cb
(
true
)
return
}
...
...
@@ -93,7 +94,15 @@ export default {
});
}
},
loadFinishFun
(
bill
)
{
loadFinishFun
(
bill
,
err
)
{
if
(
!
GMS
.
oldBillDataMap
)
GMS
.
oldBillDataMap
=
{}
if
(
err
)
{
setTimeout
(()
=>
{
this
.
forceClose
=
true
GMS
.
$hideContainer
.
$portalAPI
.
emit
(
'entry-tag-close'
,
nros
.
getCurrTag
())
},
0
);
return
}
this
.
curBill
=
bill
;
const
billState
=
bill
.
getMasterData
().
getValue
(
'billState'
)
let
readArr
=
this
.
templateName
.
endsWith
(
'_A'
)?[
92
]:[
90
,
92
];
//如果是审批界面话,90能编辑
...
...
@@ -106,7 +115,6 @@ export default {
}
setTimeout
(()
=>
{
GMS
.
oldBillData
=
bill
.
getBuillData
();
if
(
!
GMS
.
oldBillDataMap
)
GMS
.
oldBillDataMap
=
{}
GMS
.
oldBillDataMap
[
this
.
curTagId
]
=
bill
.
getBuillData
()
},
100
);
},
...
...
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