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
80dbd26c
Commit
80dbd26c
authored
Jan 20, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
上张下张参数通过name获取
parent
f76c37a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
40 deletions
+10
-40
pageType.js
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
+6
-4
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+4
-36
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/pageType.js
View file @
80dbd26c
...
...
@@ -2,21 +2,23 @@ import { compareData } from "../components-control/util/dataChange.js";
export
default
{
execute
(
bill
,
param
)
{
// 首张、上张、下张、末张
let
actionName
=
null
;
//记录当前是哪个动作
if
(
param
.
name
.
split
(
'_action_gams'
))
{
actionName
=
param
.
name
.
split
(
'_action_gams'
)[
1
];
}
let
flag
=
GMS
.
queryObject
&&
GMS
.
queryObject
.
isReadOnly
?
true
:
compareData
(
GMS
.
oldBillData
,
bill
.
getBuillData
());
if
(
flag
)
{
if
(
Object
.
keys
(
param
.
param
).
length
>
0
)
{
this
.
getOtherPage
(
Object
.
keys
(
param
.
param
)[
0
]);
}
this
.
getOtherPage
(
actionName
);
}
else
{
GMS
.
$hideContainer
.
$Modal
.
confirm
({
title
:
"信息提示"
,
content
:
"信息发生变化,确认切换?"
,
onOk
:
()
=>
{
if
(
Object
.
keys
(
param
.
param
).
length
>
0
)
{
this
.
getOtherPage
(
Object
.
keys
(
param
.
param
)[
0
]
);
this
.
getOtherPage
(
actionName
);
}
},
onCancel
:
()
=>
{
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
80dbd26c
...
...
@@ -1473,15 +1473,7 @@ export default {
"discard"
:
false
,
"path"
:
"财务/通用"
,
"extends"
:
{
"param"
:
[
{
"type"
:
"Boolean"
,
"title"
:
"上张"
,
"key"
:
"upward"
,
"upward"
:
true
,
"isRequired"
:
true
,
}
]
"param"
:
[]
},
"description"
:
""
,
"title"
:
"上张[upward]"
,
...
...
@@ -1492,15 +1484,7 @@ export default {
"discard"
:
false
,
"path"
:
"财务/通用"
,
"extends"
:
{
"param"
:
[
{
"type"
:
"Boolean"
,
"title"
:
"下张"
,
"key"
:
"down"
,
"down"
:
true
,
"isRequired"
:
true
,
}
]
"param"
:
[]
},
"description"
:
""
,
"title"
:
"下张[down]"
,
...
...
@@ -1511,15 +1495,7 @@ export default {
"discard"
:
false
,
"path"
:
"财务/通用"
,
"extends"
:
{
"param"
:
[
{
"type"
:
"Boolean"
,
"title"
:
"首张"
,
"key"
:
"first"
,
"first"
:
true
,
"isRequired"
:
true
,
}
]
"param"
:
[]
},
"description"
:
""
,
"title"
:
"首张[first]"
,
...
...
@@ -1530,15 +1506,7 @@ export default {
"discard"
:
false
,
"path"
:
"财务/通用"
,
"extends"
:
{
"param"
:
[
{
"isRequired"
:
true
,
"type"
:
"Boolean"
,
"title"
:
"末张"
,
"key"
:
"last"
,
"last"
:
true
}
]
"param"
:
[]
},
"description"
:
""
,
"title"
:
"末张[last]"
,
...
...
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