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
bddde292
Commit
bddde292
authored
Mar 22, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
切换页签j加tag
parent
120cd9bd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
16 deletions
+21
-16
saveAction.js
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
+3
-2
submitAction.js
...op/@gms/gms-plugin-billexpand/src/actions/submitAction.js
+2
-1
bill-form-runner.vue
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
+16
-13
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/saveAction.js
View file @
bddde292
...
@@ -112,11 +112,12 @@ export default {
...
@@ -112,11 +112,12 @@ export default {
bill
.
getMasterData
().
setValue
(
"billCode"
,
response
.
data
.
content
.
billData
.
billCode
);
bill
.
getMasterData
().
setValue
(
"billCode"
,
response
.
data
.
content
.
billData
.
billCode
);
const
id
=
response
.
data
.
content
.
billData
.
id
;
const
id
=
response
.
data
.
content
.
billData
.
id
;
initIndexZero
();
//处理上张下张
initIndexZero
();
//处理上张下张
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
GMS
.
vbus
.
$Message
.
success
(
"保存成功"
);
GMS
.
vbus
.
$Message
.
success
(
"保存成功"
);
if
(
param
.
param
&&
param
.
param
.
isApprove
)
{
if
(
param
.
param
&&
param
.
param
.
isApprove
)
{
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
''
})
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
''
}
,
curTagId
)
}
else
{
}
else
{
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
,
billId
:
id
})
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
,
billId
:
id
}
,
curTagId
)
}
}
// GMS.vbus.$emit("saveSuccess", buidData, param);
// GMS.vbus.$emit("saveSuccess", buidData, param);
}
else
{
}
else
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/submitAction.js
View file @
bddde292
...
@@ -86,7 +86,8 @@ export default {
...
@@ -86,7 +86,8 @@ export default {
const
id
=
data
.
content
.
billData
.
id
;
const
id
=
data
.
content
.
billData
.
id
;
minusIndex
();
//上张下张用
minusIndex
();
//上张下张用
GMS
.
$hideContainer
.
$Message
.
success
(
'提交成功'
);
GMS
.
$hideContainer
.
$Message
.
success
(
'提交成功'
);
GMS
.
vbus
.
$emit
(
"workflow-state-change"
,
90
)
let
curTagId
=
window
.
nros
.
context
.
getCurrTag
();
GMS
.
vbus
.
$emit
(
"workflow-state-change"
,
90
,
curTagId
);
}
else
if
(
code
===
201
)
{
}
else
if
(
code
===
201
)
{
GMS
.
$hideContainer
.
$Spin
.
hide
()
GMS
.
$hideContainer
.
$Spin
.
hide
()
data
.
message
&&
GMS
.
$hideContainer
.
$Message
.
error
({
data
.
message
&&
GMS
.
$hideContainer
.
$Message
.
error
({
...
...
develop/@rbc/runner-bill-form/src/views/bill-form-runner.vue
View file @
bddde292
...
@@ -57,7 +57,10 @@ export default {
...
@@ -57,7 +57,10 @@ export default {
this
.
$portalAPI
.
off
(
'on-close-tag'
,
this
.
checkBillChange
)
this
.
$portalAPI
.
off
(
'on-close-tag'
,
this
.
checkBillChange
)
},
},
methods
:
{
methods
:
{
changeFormState
(
param
){
changeFormState
(
param
,
curTagId
){
if
(
curTagId
!=
this
.
curTagId
){
return
}
if
(
param
&&
Object
.
prototype
.
toString
.
call
(
param
)
==
'[object Object]'
){
if
(
param
&&
Object
.
prototype
.
toString
.
call
(
param
)
==
'[object Object]'
){
const
{
state
,
billId
}
=
param
;
const
{
state
,
billId
}
=
param
;
if
(
billId
!==
undefined
)
{
if
(
billId
!==
undefined
)
{
...
@@ -70,6 +73,18 @@ export default {
...
@@ -70,6 +73,18 @@ export default {
this
.
init
=
true
;
this
.
init
=
true
;
});
});
},
},
changeData
(
billId
,
state
,
curTagId
)
{
if
(
curTagId
!=
this
.
curTagId
){
return
}
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
type
=
'load'
;
this
.
state
=
state
;
this
.
init
=
true
;
this
.
billId
=
billId
;
});
},
checkBillChange
(
cb
,
id
)
{
checkBillChange
(
cb
,
id
)
{
if
(
id
!=
this
.
curTagId
)
{
if
(
id
!=
this
.
curTagId
)
{
cb
(
true
)
cb
(
true
)
...
@@ -110,18 +125,6 @@ export default {
...
@@ -110,18 +125,6 @@ export default {
GMS
.
oldBillDataMap
[
this
.
curTagId
]
=
bill
.
getBuillData
()
GMS
.
oldBillDataMap
[
this
.
curTagId
]
=
bill
.
getBuillData
()
},
100
);
},
100
);
},
},
changeData
(
billId
,
state
,
curTagId
)
{
if
(
curTagId
!=
this
.
curTagId
){
return
}
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
type
=
'load'
;
this
.
state
=
state
;
this
.
init
=
true
;
this
.
billId
=
billId
;
});
},
},
},
};
};
</
script
>
</
script
>
...
...
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